diff --git a/evm/evm-processor/CHANGELOG.json b/evm/evm-processor/CHANGELOG.json index 00629b1ac..3709206f4 100644 --- a/evm/evm-processor/CHANGELOG.json +++ b/evm/evm-processor/CHANGELOG.json @@ -1,6 +1,40 @@ { "name": "@subsquid/evm-processor", "entries": [ + { + "version": "1.17.0", + "tag": "@subsquid/evm-processor_v1.17.0", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "minor": [ + { + "comment": "fix debug trace validation for failed `CREATE` case and make `EvmTraceCreateResult.address` non-optional again" + } + ], + "patch": [ + { + "comment": "Handle Avalanche RPC inconsistency issues" + } + ], + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-client\" from `^0.1.0` to `^0.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-ingest-tools\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-processor-tools\" from `^4.0.1` to `^4.0.2`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "1.16.0", "tag": "@subsquid/evm-processor_v1.16.0", diff --git a/evm/evm-processor/CHANGELOG.md b/evm/evm-processor/CHANGELOG.md index 9a6d3f528..0d61bb7dd 100644 --- a/evm/evm-processor/CHANGELOG.md +++ b/evm/evm-processor/CHANGELOG.md @@ -1,6 +1,17 @@ # Change Log - @subsquid/evm-processor -This log was last generated on Wed, 21 Feb 2024 19:22:05 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 1.17.0 +Thu, 29 Feb 2024 15:27:11 GMT + +### Minor changes + +- fix debug trace validation for failed `CREATE` case and make `EvmTraceCreateResult.address` non-optional again + +### Patches + +- Handle Avalanche RPC inconsistency issues ## 1.16.0 Wed, 21 Feb 2024 19:22:05 GMT diff --git a/evm/evm-processor/package.json b/evm/evm-processor/package.json index c128c436f..78648e82a 100644 --- a/evm/evm-processor/package.json +++ b/evm/evm-processor/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/evm-processor", - "version": "1.16.0", + "version": "1.17.0", "description": "Data fetcher and mappings executor for EVM-based chains", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -18,14 +18,14 @@ }, "dependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-archive-client": "^0.1.0", + "@subsquid/util-internal-archive-client": "^0.1.1", "@subsquid/util-internal-hex": "^1.2.2", - "@subsquid/util-internal-ingest-tools": "^1.1.0", - "@subsquid/util-internal-processor-tools": "^4.0.1", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-ingest-tools": "^1.1.1", + "@subsquid/util-internal-processor-tools": "^4.0.2", + "@subsquid/util-internal-range": "^0.2.0", "@subsquid/util-internal-validation": "^0.3.0", "@subsquid/util-timeout": "^2.3.2" }, diff --git a/evm/evm-processor/src/ds-rpc/rpc.ts b/evm/evm-processor/src/ds-rpc/rpc.ts index ea7bf4bd4..eff5fb307 100644 --- a/evm/evm-processor/src/ds-rpc/rpc.ts +++ b/evm/evm-processor/src/ds-rpc/rpc.ts @@ -2,8 +2,8 @@ import {Logger} from '@subsquid/logger' import {CallOptions, RpcClient, RpcError} from '@subsquid/rpc-client' import {RpcErrorInfo} from '@subsquid/rpc-client/lib/interfaces' import {groupBy, last} from '@subsquid/util-internal' -import {assertIsValid, BlockConsistencyError, getBlockName, trimInvalid} from '@subsquid/util-internal-ingest-tools' -import {FiniteRange, SplitRequest} from '@subsquid/util-internal-range' +import {assertIsValid, BlockConsistencyError, trimInvalid} from '@subsquid/util-internal-ingest-tools' +import {FiniteRange, rangeToArray, SplitRequest} from '@subsquid/util-internal-range' import {array, DataValidationError, GetSrcType, nullable, Validator} from '@subsquid/util-internal-validation' import assert from 'assert' import {Bytes, Bytes32, Qty} from '../interfaces/base' @@ -105,28 +105,76 @@ export class Rpc { } async getColdSplit(req: SplitRequest): Promise { - let result = await this.getBlockSplit(req) + let blocks = await this.getColdBlockBatch( + rangeToArray(req.range), + req.request.transactions ?? false, + 1 + ) + return this.addColdRequestedData(blocks, req.request, 1) + } + + private async addColdRequestedData(blocks: Block[], req: DataRequest, depth: number): Promise { + let result = blocks.map(b => ({...b})) + + await this.addRequestedData(result, req) + if (depth > 9) { + assertIsValid(result) + return result + } + + let missing: number[] = [] for (let i = 0; i < result.length; i++) { - if (result[i] == null) throw new BlockConsistencyError({height: req.range.from + i}) - if (i > 0 && result[i - 1]!.hash !== result[i]!.block.parentHash) - throw new BlockConsistencyError( - result[i]!, - `given block is not a parent of ${getBlockName(result[i-1]!)}` - ) + if (result[i]._isInvalid) { + missing.push(i) + } } - let blocks = result as Block[] + if (missing.length == 0) return result - await this.addRequestedData(blocks, req.request) + let missed = await this.addColdRequestedData( + missing.map(i => blocks[i]), + req, + depth + 1 + ) - assertIsValid(blocks) + for (let i = 0; i < missing.length; i++) { + result[missing[i]] = missed[i] + } - return blocks + return result + } + + private async getColdBlockBatch(numbers: number[], withTransactions: boolean, depth: number): Promise { + let result = await this.getBlockBatch(numbers, withTransactions) + let missing: number[] = [] + for (let i = 0; i < result.length; i++) { + if (result[i] == null) { + missing.push(i) + } + } + + if (missing.length == 0) return result as Block[] + + if (depth > 9) throw new BlockConsistencyError({ + height: numbers[missing[0]] + }, `failed to get finalized block after ${depth} attempts`) + + let missed = await this.getColdBlockBatch( + missing.map(i => numbers[i]), + withTransactions, + depth + 1 + ) + + for (let i = 0; i < missing.length; i++) { + result[missing[i]] = missed[i] + } + + return result as Block[] } async getHotSplit(req: SplitRequest & {finalizedHeight: number}): Promise { - let blocks = await this.getBlockSplit(req) + let blocks = await this.getBlockBatch(rangeToArray(req.range), req.request.transactions ?? false) let chain: Block[] = [] @@ -142,18 +190,22 @@ export class Rpc { return trimInvalid(chain) } - private async getBlockSplit(req: SplitRequest): Promise<(Block | undefined)[]> { - let call = [] - for (let i = req.range.from; i <= req.range.to; i++) { - call.push({ + private async getBlockBatch(numbers: number[], withTransactions: boolean): Promise<(Block | undefined)[]> { + let call = numbers.map(height => { + return { method: 'eth_getBlockByNumber', - params: [toQty(i), req.request.transactions || false] - }) - } + params: [toQty(height), withTransactions] + } + }) let blocks = await this.batchCall(call, { validateResult: getResultValidator( - req.request.transactions ? nullable(GetBlockWithTransactions) : nullable(GetBlockNoTransactions) - ) + withTransactions ? nullable(GetBlockWithTransactions) : nullable(GetBlockNoTransactions) + ), + validateError: info => { + // Avalanche + if (info.message.includes('cannot query unfinalized data')) return null + throw new RpcError(info) + } }) return blocks.map(toBlock) } @@ -204,7 +256,15 @@ export class Rpc { fromBlock: toQty(from), toBlock: toQty(to) }], { - validateResult: getResultValidator(array(Log)) + validateResult: getResultValidator(array(Log)), + validateError: info => { + if (info.message.includes('after last accepted block')) { + // Regular RVM networks simply return an empty array in case + // of out of range request, but Avalanche returns an error. + return [] + } + throw new RpcError(info) + } }).catch(async err => { let range = asTryAnotherRangeError(err) if (range && range.from == from && from <= range.to && range.to < to) { diff --git a/evm/evm-processor/src/ds-rpc/schema.ts b/evm/evm-processor/src/ds-rpc/schema.ts index 73ebeb35d..c2e49d812 100644 --- a/evm/evm-processor/src/ds-rpc/schema.ts +++ b/evm/evm-processor/src/ds-rpc/schema.ts @@ -116,7 +116,7 @@ function getDebugFrameValidator(fields: FieldSelection['trace']) { input: BYTES, gasUsed: QTY, output: withDefault('0x', BYTES), - to: BYTES + to: withDefault('0x0000000000000000000000000000000000000000', BYTES) }) }) diff --git a/evm/evm-processor/src/interfaces/evm.ts b/evm/evm-processor/src/interfaces/evm.ts index 3fe6436ef..b14872f66 100644 --- a/evm/evm-processor/src/interfaces/evm.ts +++ b/evm/evm-processor/src/interfaces/evm.ts @@ -101,7 +101,7 @@ export interface EvmTraceCreateAction { export interface EvmTraceCreateResult { gasUsed: bigint code: Bytes - address?: Bytes20 + address: Bytes20 } diff --git a/evm/evm-processor/src/mapping/schema.ts b/evm/evm-processor/src/mapping/schema.ts index 16cc7ad8d..b17f2a60b 100644 --- a/evm/evm-processor/src/mapping/schema.ts +++ b/evm/evm-processor/src/mapping/schema.ts @@ -126,7 +126,7 @@ export function getTraceFrameValidator(fields: FieldSelection['trace'], forArchi }, { gasUsed: QTY, code: withDefault('0x', BYTES), - address: option(BYTES) + address: withDefault('0x0000000000000000000000000000000000000000', BYTES) }) let TraceCreate = object({ diff --git a/evm/evm-typegen/package.json b/evm/evm-typegen/package.json index 7ea7a4b07..693e1d973 100644 --- a/evm/evm-typegen/package.json +++ b/evm/evm-typegen/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-code-printer": "^1.2.2", "@subsquid/util-internal-commander": "^1.3.2", diff --git a/graphql/graphql-server/package.json b/graphql/graphql-server/package.json index e3fa3f09c..071c6ae3a 100644 --- a/graphql/graphql-server/package.json +++ b/graphql/graphql-server/package.json @@ -26,7 +26,7 @@ "@graphql-tools/schema": "^10.0.2", "@subsquid/openreader": "^4.5.0", "@subsquid/typeorm-config": "^4.1.0", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-commander": "^1.3.2", "@subsquid/util-internal-http-server": "^1.2.2", diff --git a/graphql/openreader/package.json b/graphql/openreader/package.json index 079ac61cc..da9966a62 100644 --- a/graphql/openreader/package.json +++ b/graphql/openreader/package.json @@ -27,7 +27,7 @@ "dependencies": { "@graphql-tools/merge": "^9.0.1", "@subsquid/graphiql-console": "^0.3.0", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-commander": "^1.3.2", "@subsquid/util-internal-hex": "^1.2.2", diff --git a/substrate/substrate-data-raw/CHANGELOG.json b/substrate/substrate-data-raw/CHANGELOG.json index 0c7359c5c..49bab6d13 100644 --- a/substrate/substrate-data-raw/CHANGELOG.json +++ b/substrate/substrate-data-raw/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@subsquid/substrate-data-raw", "entries": [ + { + "version": "1.1.1", + "tag": "@subsquid/substrate-data-raw_v1.1.1", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/util-internal-ingest-tools\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + }, + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + } + ] + } + }, { "version": "1.1.0", "tag": "@subsquid/substrate-data-raw_v1.1.0", diff --git a/substrate/substrate-data-raw/CHANGELOG.md b/substrate/substrate-data-raw/CHANGELOG.md index 4fa41b8d8..90ce5a942 100644 --- a/substrate/substrate-data-raw/CHANGELOG.md +++ b/substrate/substrate-data-raw/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/substrate-data-raw -This log was last generated on Thu, 04 Jan 2024 17:31:35 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 1.1.1 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 1.1.0 Thu, 04 Jan 2024 17:31:35 GMT diff --git a/substrate/substrate-data-raw/package.json b/substrate/substrate-data-raw/package.json index 9b27a5100..b319f5297 100644 --- a/substrate/substrate-data-raw/package.json +++ b/substrate/substrate-data-raw/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/substrate-data-raw", - "version": "1.1.0", + "version": "1.1.1", "description": "Raw RPC data fetcher for substrate based chains", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -17,12 +17,12 @@ }, "dependencies": { "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-ingest-tools": "^1.1.0", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-ingest-tools": "^1.1.1", + "@subsquid/util-internal-range": "^0.2.0", "@subsquid/util-timeout": "^2.3.2" }, "peerDependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0" }, "devDependencies": { diff --git a/substrate/substrate-data/CHANGELOG.json b/substrate/substrate-data/CHANGELOG.json index 140df5fb9..58f143ec9 100644 --- a/substrate/substrate-data/CHANGELOG.json +++ b/substrate/substrate-data/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@subsquid/substrate-data", "entries": [ + { + "version": "4.0.2", + "tag": "@subsquid/substrate-data_v4.0.2", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/substrate-data-raw\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-ingest-tools\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "4.0.1", "tag": "@subsquid/substrate-data_v4.0.1", diff --git a/substrate/substrate-data/CHANGELOG.md b/substrate/substrate-data/CHANGELOG.md index c9be8309c..962b10a35 100644 --- a/substrate/substrate-data/CHANGELOG.md +++ b/substrate/substrate-data/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/substrate-data -This log was last generated on Thu, 04 Jan 2024 17:31:35 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 4.0.2 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 4.0.1 Thu, 04 Jan 2024 17:31:35 GMT diff --git a/substrate/substrate-data/package.json b/substrate/substrate-data/package.json index 6a3b68bb5..468cff333 100644 --- a/substrate/substrate-data/package.json +++ b/substrate/substrate-data/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/substrate-data", - "version": "4.0.1", + "version": "4.0.2", "description": "Data fetcher and parser for substrate based chains", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -17,11 +17,11 @@ }, "dependencies": { "@subsquid/scale-codec": "^4.0.1", - "@subsquid/substrate-data-raw": "^1.1.0", + "@subsquid/substrate-data-raw": "^1.1.1", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-hex": "^1.2.2", - "@subsquid/util-internal-ingest-tools": "^1.1.0", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-ingest-tools": "^1.1.1", + "@subsquid/util-internal-range": "^0.2.0", "@subsquid/util-xxhash": "^1.2.2", "@substrate/calc": "^0.2.8", "blake2b": "^2.1.4" diff --git a/substrate/substrate-dump/CHANGELOG.json b/substrate/substrate-dump/CHANGELOG.json index 2ac6ecf1f..646922dd4 100644 --- a/substrate/substrate-dump/CHANGELOG.json +++ b/substrate/substrate-dump/CHANGELOG.json @@ -1,6 +1,27 @@ { "name": "@subsquid/substrate-dump", "entries": [ + { + "version": "0.3.2", + "tag": "@subsquid/substrate-dump_v0.3.2", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/substrate-data-raw\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-layout\" from `^0.1.1` to `^0.1.2`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "0.3.1", "tag": "@subsquid/substrate-dump_v0.3.1", diff --git a/substrate/substrate-dump/CHANGELOG.md b/substrate/substrate-dump/CHANGELOG.md index ac98ad7da..a529d5082 100644 --- a/substrate/substrate-dump/CHANGELOG.md +++ b/substrate/substrate-dump/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/substrate-dump -This log was last generated on Thu, 04 Jan 2024 17:31:35 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 0.3.2 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 0.3.1 Thu, 04 Jan 2024 17:31:35 GMT diff --git a/substrate/substrate-dump/package.json b/substrate/substrate-dump/package.json index 2ecd87386..b5b3ccdba 100644 --- a/substrate/substrate-dump/package.json +++ b/substrate/substrate-dump/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/substrate-dump", - "version": "0.3.1", + "version": "0.3.2", "description": "Raw data archiving tool for substrate based chains", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -18,17 +18,17 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", - "@subsquid/substrate-data-raw": "^1.1.0", + "@subsquid/substrate-data-raw": "^1.1.1", "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-archive-layout": "^0.1.1", + "@subsquid/util-internal-archive-layout": "^0.1.2", "@subsquid/util-internal-commander": "^1.3.2", "@subsquid/util-internal-counters": "^1.3.2", "@subsquid/util-internal-fs": "^0.1.2", "@subsquid/util-internal-hex": "^1.2.2", "@subsquid/util-internal-prometheus-server": "^1.2.2", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-range": "^0.2.0", "commander": "^11.1.0", "prom-client": "^14.2.0" }, diff --git a/substrate/substrate-ingest/CHANGELOG.json b/substrate/substrate-ingest/CHANGELOG.json index 5eaa18e1f..4e2fb73af 100644 --- a/substrate/substrate-ingest/CHANGELOG.json +++ b/substrate/substrate-ingest/CHANGELOG.json @@ -1,6 +1,30 @@ { "name": "@subsquid/substrate-ingest", "entries": [ + { + "version": "3.5.1", + "tag": "@subsquid/substrate-ingest_v3.5.1", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/substrate-data\" from `^4.0.1` to `^4.0.2`" + }, + { + "comment": "Updating dependency \"@subsquid/substrate-data-raw\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-layout\" from `^0.1.1` to `^0.1.2`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "3.5.0", "tag": "@subsquid/substrate-ingest_v3.5.0", diff --git a/substrate/substrate-ingest/CHANGELOG.md b/substrate/substrate-ingest/CHANGELOG.md index 934ab4dfe..47f52f168 100644 --- a/substrate/substrate-ingest/CHANGELOG.md +++ b/substrate/substrate-ingest/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/substrate-ingest -This log was last generated on Fri, 01 Dec 2023 16:55:51 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 3.5.1 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 3.5.0 Fri, 01 Dec 2023 16:55:51 GMT diff --git a/substrate/substrate-ingest/package.json b/substrate/substrate-ingest/package.json index b11c2403e..8fed30e61 100644 --- a/substrate/substrate-ingest/package.json +++ b/substrate/substrate-ingest/package.json @@ -1,7 +1,7 @@ { "name": "@subsquid/substrate-ingest", "description": "Data decoder and fetcher for substrate based chains", - "version": "3.5.0", + "version": "3.5.1", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", "publishConfig": { @@ -19,20 +19,20 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", - "@subsquid/substrate-data": "^4.0.1", - "@subsquid/substrate-data-raw": "^1.1.0", + "@subsquid/substrate-data": "^4.0.2", + "@subsquid/substrate-data-raw": "^1.1.1", "@subsquid/substrate-runtime": "^1.0.3", "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-archive-layout": "^0.1.1", + "@subsquid/util-internal-archive-layout": "^0.1.2", "@subsquid/util-internal-commander": "^1.3.2", "@subsquid/util-internal-counters": "^1.3.2", "@subsquid/util-internal-fs": "^0.1.2", "@subsquid/util-internal-hex": "^1.2.2", "@subsquid/util-internal-http-server": "^1.2.2", "@subsquid/util-internal-json": "^1.2.2", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-range": "^0.2.0", "commander": "^11.1.0" }, "devDependencies": { diff --git a/substrate/substrate-metadata-explorer/package.json b/substrate/substrate-metadata-explorer/package.json index 2facd4f33..85344d468 100644 --- a/substrate/substrate-metadata-explorer/package.json +++ b/substrate/substrate-metadata-explorer/package.json @@ -20,7 +20,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-commander": "^1.3.2", diff --git a/substrate/substrate-metadata-service/package.json b/substrate/substrate-metadata-service/package.json index acb18013c..6535c930e 100644 --- a/substrate/substrate-metadata-service/package.json +++ b/substrate/substrate-metadata-service/package.json @@ -18,7 +18,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-commander": "^1.3.2", "@subsquid/util-internal-fs": "^0.1.2", diff --git a/substrate/substrate-processor/CHANGELOG.json b/substrate/substrate-processor/CHANGELOG.json index dcb04b00c..09c9e8263 100644 --- a/substrate/substrate-processor/CHANGELOG.json +++ b/substrate/substrate-processor/CHANGELOG.json @@ -1,6 +1,36 @@ { "name": "@subsquid/substrate-processor", "entries": [ + { + "version": "8.2.1", + "tag": "@subsquid/substrate-processor_v8.2.1", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/substrate-data\" from `^4.0.1` to `^4.0.2`" + }, + { + "comment": "Updating dependency \"@subsquid/substrate-data-raw\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-client\" from `^0.1.0` to `^0.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-ingest-tools\" from `^1.1.0` to `^1.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-processor-tools\" from `^4.0.1` to `^4.0.2`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "8.2.0", "tag": "@subsquid/substrate-processor_v8.2.0", diff --git a/substrate/substrate-processor/CHANGELOG.md b/substrate/substrate-processor/CHANGELOG.md index 52ba1f578..c30d707ae 100644 --- a/substrate/substrate-processor/CHANGELOG.md +++ b/substrate/substrate-processor/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/substrate-processor -This log was last generated on Wed, 21 Feb 2024 19:22:05 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 8.2.1 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 8.2.0 Wed, 21 Feb 2024 19:22:05 GMT diff --git a/substrate/substrate-processor/package.json b/substrate/substrate-processor/package.json index 3881ed534..a497cfcf5 100644 --- a/substrate/substrate-processor/package.json +++ b/substrate/substrate-processor/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/substrate-processor", - "version": "8.2.0", + "version": "8.2.1", "description": "Data fetcher and mappings executor for substrate chains", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -17,17 +17,17 @@ }, "dependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", - "@subsquid/substrate-data": "^4.0.1", - "@subsquid/substrate-data-raw": "^1.1.0", + "@subsquid/substrate-data": "^4.0.2", + "@subsquid/substrate-data-raw": "^1.1.1", "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-archive-client": "^0.1.0", + "@subsquid/util-internal-archive-client": "^0.1.1", "@subsquid/util-internal-hex": "^1.2.2", - "@subsquid/util-internal-ingest-tools": "^1.1.0", + "@subsquid/util-internal-ingest-tools": "^1.1.1", "@subsquid/util-internal-json": "^1.2.2", - "@subsquid/util-internal-processor-tools": "^4.0.1", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-processor-tools": "^4.0.2", + "@subsquid/util-internal-range": "^0.2.0", "@subsquid/util-internal-validation": "~0.3.0" }, "peerDependencies": { diff --git a/substrate/substrate-typegen/package.json b/substrate/substrate-typegen/package.json index 15ca6ebfc..e3fdfcdcb 100644 --- a/substrate/substrate-typegen/package.json +++ b/substrate/substrate-typegen/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/substrate-metadata-explorer": "^3.1.2", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-code-printer": "^1.2.2", diff --git a/test/astar-erc20/package.json b/test/astar-erc20/package.json index d8d6943a0..76a9650ac 100644 --- a/test/astar-erc20/package.json +++ b/test/astar-erc20/package.json @@ -10,7 +10,7 @@ "@subsquid/frontier": "^4.0.2", "@subsquid/graphql-server": "^4.5.0", "@subsquid/substrate-runtime": "^1.0.3", - "@subsquid/substrate-processor": "^8.2.0", + "@subsquid/substrate-processor": "^8.2.1", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.2.6", "@subsquid/util-internal-json": "^1.2.2", diff --git a/test/balances/package.json b/test/balances/package.json index ea2305f62..c25624cc0 100644 --- a/test/balances/package.json +++ b/test/balances/package.json @@ -8,7 +8,7 @@ "dependencies": { "@subsquid/graphql-server": "^4.5.0", "@subsquid/ss58": "^2.0.2", - "@subsquid/substrate-processor": "^8.2.0", + "@subsquid/substrate-processor": "^8.2.1", "@subsquid/substrate-runtime": "^1.0.3", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.2.6", diff --git a/test/erc20-transfers/package.json b/test/erc20-transfers/package.json index 1cdd43ec4..b8040ea42 100644 --- a/test/erc20-transfers/package.json +++ b/test/erc20-transfers/package.json @@ -6,9 +6,9 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/evm-processor": "^1.16.0", - "@subsquid/evm-utils": "../../evm/evm-utils", "@subsquid/graphql-server": "^4.5.0", + "@subsquid/evm-utils": "../../evm/evm-utils", + "@subsquid/evm-processor": "^1.17.0", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.2.6", "dotenv": "^16.3.1", diff --git a/test/shibuya-psp22/package.json b/test/shibuya-psp22/package.json index dd0dbf685..bcfe0eccd 100644 --- a/test/shibuya-psp22/package.json +++ b/test/shibuya-psp22/package.json @@ -9,7 +9,7 @@ "@subsquid/ss58": "^2.0.2", "@subsquid/graphql-server": "^4.5.0", "@subsquid/substrate-runtime": "^1.0.3", - "@subsquid/substrate-processor": "^8.2.0", + "@subsquid/substrate-processor": "^8.2.1", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.2.6", "@subsquid/ink-abi": "^3.0.2", diff --git a/typeorm/typeorm-config/package.json b/typeorm/typeorm-config/package.json index 37e398be2..0551c749b 100644 --- a/typeorm/typeorm-config/package.json +++ b/typeorm/typeorm-config/package.json @@ -16,7 +16,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal-ts-node": "^0.0.0", "@subsquid/util-naming": "^1.2.2" }, diff --git a/util/chain-status-service/package.json b/util/chain-status-service/package.json index 7fc43d987..43cf13564 100644 --- a/util/chain-status-service/package.json +++ b/util/chain-status-service/package.json @@ -13,7 +13,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/rpc-client": "^4.6.0", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-http-server": "^1.2.2", diff --git a/util/commands/package.json b/util/commands/package.json index de559f64b..702570129 100644 --- a/util/commands/package.json +++ b/util/commands/package.json @@ -19,7 +19,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-config": "^2.2.2", "glob": "^10.3.10", diff --git a/util/http-client/package.json b/util/http-client/package.json index 96bb5e6e8..72e3bec3c 100644 --- a/util/http-client/package.json +++ b/util/http-client/package.json @@ -18,7 +18,7 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "node-fetch": "^3.3.2" }, diff --git a/util/logger/CHANGELOG.json b/util/logger/CHANGELOG.json index c460f8291..a625a044d 100644 --- a/util/logger/CHANGELOG.json +++ b/util/logger/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@subsquid/logger", "entries": [ + { + "version": "1.3.3", + "tag": "@subsquid/logger_v1.3.3", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "patch": [ + { + "comment": "fix README typos" + } + ] + } + }, { "version": "1.3.2", "tag": "@subsquid/logger_v1.3.2", diff --git a/util/logger/CHANGELOG.md b/util/logger/CHANGELOG.md index c77adab88..3754ff16a 100644 --- a/util/logger/CHANGELOG.md +++ b/util/logger/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @subsquid/logger -This log was last generated on Fri, 01 Dec 2023 16:55:51 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 1.3.3 +Thu, 29 Feb 2024 15:27:11 GMT + +### Patches + +- fix README typos ## 1.3.2 Fri, 01 Dec 2023 16:55:51 GMT diff --git a/util/logger/README.md b/util/logger/README.md index 7b3cfd1db..d3e555fe8 100644 --- a/util/logger/README.md +++ b/util/logger/README.md @@ -18,7 +18,7 @@ log.info({foo: 1, bar: 2}, 'message and some additional attributes') log.info({a: 1, b: 2, c: 3, array: [4, 5], obj: {foo: 'foo', bar: "bar"}}) // pass an Error object inplace of attributes -log.warn(new Error('Some error occured')) +log.warn(new Error('Some error occurred')) // Error together with some other attributes and message log.error({err: new Error('Another error'), a: 1, b: 2}, 'weird') diff --git a/util/logger/package.json b/util/logger/package.json index f2bcd1cac..001323c32 100644 --- a/util/logger/package.json +++ b/util/logger/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/logger", - "version": "1.3.2", + "version": "1.3.3", "description": "Lightweight library for structured logging", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", diff --git a/util/logger/src/demo.ts b/util/logger/src/demo.ts index e8fb6fb5e..6365c5c2d 100644 --- a/util/logger/src/demo.ts +++ b/util/logger/src/demo.ts @@ -11,7 +11,7 @@ log.info({foo: 1, bar: 2}, 'message and some additional attributes') log.info({a: 1, b: 2, c: 3, array: [4, 5, 6], obj: {foo: 'foo', bar: "bar"}}) // pass an Error object inplace of attributes -log.warn(new Error('Some error occured')) +log.warn(new Error('Some error occurred')) // Error together with some other attributes and message log.error({err: new Error('Another error'), a: 1, b: 2}, 'weird') diff --git a/util/rpc-client/package.json b/util/rpc-client/package.json index 8a610a6ff..15c31f453 100644 --- a/util/rpc-client/package.json +++ b/util/rpc-client/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-binary-heap": "^1.0.0", "@subsquid/util-internal-counters": "^1.3.2", diff --git a/util/util-internal-archive-client/CHANGELOG.json b/util/util-internal-archive-client/CHANGELOG.json index 10f4efd13..e73e82411 100644 --- a/util/util-internal-archive-client/CHANGELOG.json +++ b/util/util-internal-archive-client/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@subsquid/util-internal-archive-client", "entries": [ + { + "version": "0.1.1", + "tag": "@subsquid/util-internal-archive-client_v0.1.1", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + }, + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + } + ] + } + }, { "version": "0.1.0", "tag": "@subsquid/util-internal-archive-client_v0.1.0", diff --git a/util/util-internal-archive-client/CHANGELOG.md b/util/util-internal-archive-client/CHANGELOG.md index e3fe0d9b2..eebb519ec 100644 --- a/util/util-internal-archive-client/CHANGELOG.md +++ b/util/util-internal-archive-client/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/util-internal-archive-client -This log was last generated on Fri, 01 Dec 2023 16:55:51 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 0.1.1 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 0.1.0 Fri, 01 Dec 2023 16:55:51 GMT diff --git a/util/util-internal-archive-client/package.json b/util/util-internal-archive-client/package.json index 792e0b2c3..e53152482 100644 --- a/util/util-internal-archive-client/package.json +++ b/util/util-internal-archive-client/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/util-internal-archive-client", - "version": "0.1.0", + "version": "0.1.1", "description": "ArrowSquid archive API", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -17,11 +17,11 @@ }, "dependencies": { "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-range": "^0.1.0" + "@subsquid/util-internal-range": "^0.2.0" }, "peerDependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2" + "@subsquid/logger": "^1.3.3" }, "peerDependenciesMeta": { "@subsquid/logger": { @@ -30,7 +30,7 @@ }, "devDependencies": { "@subsquid/http-client": "^1.3.2", - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@types/node": "^18.18.14", "typescript": "~5.3.2" } diff --git a/util/util-internal-archive-layout/CHANGELOG.json b/util/util-internal-archive-layout/CHANGELOG.json index e2efdb27f..0e3407a07 100644 --- a/util/util-internal-archive-layout/CHANGELOG.json +++ b/util/util-internal-archive-layout/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@subsquid/util-internal-archive-layout", "entries": [ + { + "version": "0.1.2", + "tag": "@subsquid/util-internal-archive-layout_v0.1.2", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "0.1.1", "tag": "@subsquid/util-internal-archive-layout_v0.1.1", diff --git a/util/util-internal-archive-layout/CHANGELOG.md b/util/util-internal-archive-layout/CHANGELOG.md index 86b497f30..e9487edbd 100644 --- a/util/util-internal-archive-layout/CHANGELOG.md +++ b/util/util-internal-archive-layout/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/util-internal-archive-layout -This log was last generated on Fri, 01 Dec 2023 16:55:51 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 0.1.2 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 0.1.1 Fri, 01 Dec 2023 16:55:51 GMT diff --git a/util/util-internal-archive-layout/package.json b/util/util-internal-archive-layout/package.json index 7c6feee49..811f9b6e4 100644 --- a/util/util-internal-archive-layout/package.json +++ b/util/util-internal-archive-layout/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/util-internal-archive-layout", - "version": "0.1.1", + "version": "0.1.2", "description": "Utilities for Subsquid Archive filesystem layout", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -18,7 +18,7 @@ "dependencies": { "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-hex": "^1.2.2", - "@subsquid/util-internal-range": "^0.1.0" + "@subsquid/util-internal-range": "^0.2.0" }, "peerDependencies": { "@subsquid/util-internal-fs": "^0.1.2" diff --git a/util/util-internal-ingest-tools/CHANGELOG.json b/util/util-internal-ingest-tools/CHANGELOG.json index b82eff322..24a67661c 100644 --- a/util/util-internal-ingest-tools/CHANGELOG.json +++ b/util/util-internal-ingest-tools/CHANGELOG.json @@ -1,6 +1,27 @@ { "name": "@subsquid/util-internal-ingest-tools", "entries": [ + { + "version": "1.1.1", + "tag": "@subsquid/util-internal-ingest-tools_v1.1.1", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-client\" from `^0.1.0` to `^0.1.1`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-archive-client\" from `^0.1.0` to `^0.1.1`" + } + ] + } + }, { "version": "1.1.0", "tag": "@subsquid/util-internal-ingest-tools_v1.1.0", diff --git a/util/util-internal-ingest-tools/CHANGELOG.md b/util/util-internal-ingest-tools/CHANGELOG.md index cbbe77113..18d4ff0bb 100644 --- a/util/util-internal-ingest-tools/CHANGELOG.md +++ b/util/util-internal-ingest-tools/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/util-internal-ingest-tools -This log was last generated on Thu, 28 Dec 2023 19:59:01 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 1.1.1 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 1.1.0 Thu, 28 Dec 2023 19:59:01 GMT diff --git a/util/util-internal-ingest-tools/package.json b/util/util-internal-ingest-tools/package.json index 0633ed1a2..380bc631e 100644 --- a/util/util-internal-ingest-tools/package.json +++ b/util/util-internal-ingest-tools/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/util-internal-ingest-tools", - "version": "1.1.0", + "version": "1.1.1", "description": "Common tools for data fetching", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -16,12 +16,12 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", - "@subsquid/util-internal-range": "^0.1.0" + "@subsquid/util-internal-range": "^0.2.0" }, "peerDependencies": { - "@subsquid/util-internal-archive-client": "^0.1.0" + "@subsquid/util-internal-archive-client": "^0.1.1" }, "peerDependenciesMeta": { "@subsquid/util-internal-archive-client": { @@ -29,7 +29,7 @@ } }, "devDependencies": { - "@subsquid/util-internal-archive-client": "^0.1.0", + "@subsquid/util-internal-archive-client": "^0.1.1", "@types/node": "^18.18.14", "typescript": "~5.3.2" } diff --git a/util/util-internal-processor-tools/CHANGELOG.json b/util/util-internal-processor-tools/CHANGELOG.json index f058de58f..4943c9e2d 100644 --- a/util/util-internal-processor-tools/CHANGELOG.json +++ b/util/util-internal-processor-tools/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@subsquid/util-internal-processor-tools", "entries": [ + { + "version": "4.0.2", + "tag": "@subsquid/util-internal-processor-tools_v4.0.2", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "dependency": [ + { + "comment": "Updating dependency \"@subsquid/logger\" from `^1.3.2` to `^1.3.3`" + }, + { + "comment": "Updating dependency \"@subsquid/util-internal-range\" from `^0.1.0` to `^0.2.0`" + } + ] + } + }, { "version": "4.0.1", "tag": "@subsquid/util-internal-processor-tools_v4.0.1", diff --git a/util/util-internal-processor-tools/CHANGELOG.md b/util/util-internal-processor-tools/CHANGELOG.md index 40536b9bb..dfa363e40 100644 --- a/util/util-internal-processor-tools/CHANGELOG.md +++ b/util/util-internal-processor-tools/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - @subsquid/util-internal-processor-tools -This log was last generated on Tue, 23 Jan 2024 16:47:41 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 4.0.2 +Thu, 29 Feb 2024 15:27:11 GMT + +_Version update only_ ## 4.0.1 Tue, 23 Jan 2024 16:47:41 GMT diff --git a/util/util-internal-processor-tools/package.json b/util/util-internal-processor-tools/package.json index 91082fcd9..af63ac188 100644 --- a/util/util-internal-processor-tools/package.json +++ b/util/util-internal-processor-tools/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/util-internal-processor-tools", - "version": "4.0.1", + "version": "4.0.2", "description": "Common tools for data fetching and mapping execution", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", @@ -16,11 +16,11 @@ "build": "rm -rf lib && tsc" }, "dependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@subsquid/util-internal": "^3.0.0", "@subsquid/util-internal-counters": "^1.3.2", "@subsquid/util-internal-prometheus-server": "^1.2.2", - "@subsquid/util-internal-range": "^0.1.0", + "@subsquid/util-internal-range": "^0.2.0", "prom-client": "^14.2.0" }, "devDependencies": { diff --git a/util/util-internal-range/CHANGELOG.json b/util/util-internal-range/CHANGELOG.json index 3aad33b8c..96c50aa4f 100644 --- a/util/util-internal-range/CHANGELOG.json +++ b/util/util-internal-range/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@subsquid/util-internal-range", "entries": [ + { + "version": "0.2.0", + "tag": "@subsquid/util-internal-range_v0.2.0", + "date": "Thu, 29 Feb 2024 15:27:11 GMT", + "comments": { + "minor": [ + { + "comment": "add `rangeToArray()` function" + } + ] + } + }, { "version": "0.1.0", "tag": "@subsquid/util-internal-range_v0.1.0", diff --git a/util/util-internal-range/CHANGELOG.md b/util/util-internal-range/CHANGELOG.md index 92a3e5954..c58693e25 100644 --- a/util/util-internal-range/CHANGELOG.md +++ b/util/util-internal-range/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @subsquid/util-internal-range -This log was last generated on Fri, 01 Dec 2023 16:55:51 GMT and should not be manually modified. +This log was last generated on Thu, 29 Feb 2024 15:27:11 GMT and should not be manually modified. + +## 0.2.0 +Thu, 29 Feb 2024 15:27:11 GMT + +### Minor changes + +- add `rangeToArray()` function ## 0.1.0 Fri, 01 Dec 2023 16:55:51 GMT diff --git a/util/util-internal-range/package.json b/util/util-internal-range/package.json index f054bb178..a22a6127f 100644 --- a/util/util-internal-range/package.json +++ b/util/util-internal-range/package.json @@ -1,6 +1,6 @@ { "name": "@subsquid/util-internal-range", - "version": "0.1.0", + "version": "0.2.0", "description": "Interval arithmetic for block ranges", "license": "GPL-3.0-or-later", "repository": "git@github.com:subsquid/squid.git", diff --git a/util/util-internal-range/src/util.ts b/util/util-internal-range/src/util.ts index 5ed9f4ea5..27fcd6d4e 100644 --- a/util/util-internal-range/src/util.ts +++ b/util/util-internal-range/src/util.ts @@ -151,3 +151,12 @@ export function mapRangeRequestList(requests: RangeRequestList, f: (req } }) } + + +export function rangeToArray(range: FiniteRange): number[] { + let result: number[] = new Array(range.to - range.from + 1) + for (let i = 0; i < result.length; i++) { + result[i] = range.from + i + } + return result +} diff --git a/util/util-internal-validation/package.json b/util/util-internal-validation/package.json index 45de5b38d..6669173b6 100644 --- a/util/util-internal-validation/package.json +++ b/util/util-internal-validation/package.json @@ -17,7 +17,7 @@ }, "dependencies": {}, "peerDependencies": { - "@subsquid/logger": "^1.3.2" + "@subsquid/logger": "^1.3.3" }, "peerDependenciesMeta": { "@subsquid/logger": { @@ -25,7 +25,7 @@ } }, "devDependencies": { - "@subsquid/logger": "^1.3.2", + "@subsquid/logger": "^1.3.3", "@types/node": "^18.18.14", "typescript": "~5.3.2" }