From ad509b59aebd5794245d6cb47bfd94d1a7ceab8c Mon Sep 17 00:00:00 2001 From: belopash Date: Mon, 4 Nov 2024 13:06:02 +0500 Subject: [PATCH] changes --- ....json => portal-api_2024-11-04-08-07.json} | 2 +- .../portal-api_2024-10-29-13-16.json | 10 -------- ....json => portal-api_2024-11-04-08-07.json} | 0 .../portal-api_2024-11-04-08-10.json | 10 ++++++++ ....json => portal-api_2024-11-04-08-10.json} | 4 ++-- evm/evm-processor/src/ds-archive/client.ts | 23 ++----------------- util/http-client/src/client.ts | 1 - .../util-internal-archive-client/package.json | 2 +- .../src/client.ts | 2 +- util/util-internal-ingest-tools/package.json | 2 +- .../util-internal-ingest-tools/src/archive.ts | 2 +- 11 files changed, 19 insertions(+), 39 deletions(-) rename common/changes/@subsquid/evm-processor/{portal-api_2024-11-02-09-34.json => portal-api_2024-11-04-08-07.json} (77%) delete mode 100644 common/changes/@subsquid/http-client/portal-api_2024-10-29-13-16.json rename common/changes/@subsquid/portal-client/{portal-api_2024-11-02-09-34.json => portal-api_2024-11-04-08-07.json} (100%) create mode 100644 common/changes/@subsquid/util-internal-archive-layout/portal-api_2024-11-04-08-10.json rename common/changes/@subsquid/util-internal/{portal-api_2024-11-02-09-34.json => portal-api_2024-11-04-08-10.json} (63%) diff --git a/common/changes/@subsquid/evm-processor/portal-api_2024-11-02-09-34.json b/common/changes/@subsquid/evm-processor/portal-api_2024-11-04-08-07.json similarity index 77% rename from common/changes/@subsquid/evm-processor/portal-api_2024-11-02-09-34.json rename to common/changes/@subsquid/evm-processor/portal-api_2024-11-04-08-07.json index 149e8155c..bf92fe610 100644 --- a/common/changes/@subsquid/evm-processor/portal-api_2024-11-02-09-34.json +++ b/common/changes/@subsquid/evm-processor/portal-api_2024-11-04-08-07.json @@ -2,7 +2,7 @@ "changes": [ { "packageName": "@subsquid/evm-processor", - "comment": "portal api", + "comment": "add SQD Portal support", "type": "minor" } ], diff --git a/common/changes/@subsquid/http-client/portal-api_2024-10-29-13-16.json b/common/changes/@subsquid/http-client/portal-api_2024-10-29-13-16.json deleted file mode 100644 index 69eb7d1fe..000000000 --- a/common/changes/@subsquid/http-client/portal-api_2024-10-29-13-16.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@subsquid/http-client", - "comment": "add streaming support", - "type": "minor" - } - ], - "packageName": "@subsquid/http-client" -} \ No newline at end of file diff --git a/common/changes/@subsquid/portal-client/portal-api_2024-11-02-09-34.json b/common/changes/@subsquid/portal-client/portal-api_2024-11-04-08-07.json similarity index 100% rename from common/changes/@subsquid/portal-client/portal-api_2024-11-02-09-34.json rename to common/changes/@subsquid/portal-client/portal-api_2024-11-04-08-07.json diff --git a/common/changes/@subsquid/util-internal-archive-layout/portal-api_2024-11-04-08-10.json b/common/changes/@subsquid/util-internal-archive-layout/portal-api_2024-11-04-08-10.json new file mode 100644 index 000000000..4228d4d46 --- /dev/null +++ b/common/changes/@subsquid/util-internal-archive-layout/portal-api_2024-11-04-08-10.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@subsquid/util-internal-archive-layout", + "comment": "export `.splitLines()`", + "type": "minor" + } + ], + "packageName": "@subsquid/util-internal-archive-layout" +} \ No newline at end of file diff --git a/common/changes/@subsquid/util-internal/portal-api_2024-11-02-09-34.json b/common/changes/@subsquid/util-internal/portal-api_2024-11-04-08-10.json similarity index 63% rename from common/changes/@subsquid/util-internal/portal-api_2024-11-02-09-34.json rename to common/changes/@subsquid/util-internal/portal-api_2024-11-04-08-10.json index ec32315de..4bbc96001 100644 --- a/common/changes/@subsquid/util-internal/portal-api_2024-11-02-09-34.json +++ b/common/changes/@subsquid/util-internal/portal-api_2024-11-04-08-10.json @@ -2,8 +2,8 @@ "changes": [ { "packageName": "@subsquid/util-internal", - "comment": "", - "type": "none" + "comment": "add `.wait() to `AsyncQueue``", + "type": "minor" } ], "packageName": "@subsquid/util-internal" diff --git a/evm/evm-processor/src/ds-archive/client.ts b/evm/evm-processor/src/ds-archive/client.ts index 703d734fb..8d2f55466 100644 --- a/evm/evm-processor/src/ds-archive/client.ts +++ b/evm/evm-processor/src/ds-archive/client.ts @@ -1,31 +1,12 @@ -import {addErrorContext, assertNotNull, unexpectedCase} from '@subsquid/util-internal' +import {addErrorContext} from '@subsquid/util-internal' import {ArchiveClient} from '@subsquid/util-internal-archive-client' import {archiveIngest} from '@subsquid/util-internal-ingest-tools' import {Batch, DataSource} from '@subsquid/util-internal-processor-tools' import {getRequestAt, RangeRequest} from '@subsquid/util-internal-range' -import {cast} from '@subsquid/util-internal-validation' import assert from 'assert' import {Bytes32} from '../interfaces/base' -import {FieldSelection} from '../interfaces/data' import {DataRequest} from '../interfaces/data-request' -import { - Block, - BlockHeader, - Log, - StateDiff, - StateDiffAdd, - StateDiffChange, - StateDiffDelete, - StateDiffNoChange, - Trace, - TraceCall, - TraceCreate, - TraceReward, - TraceSuicide, - Transaction -} from '../mapping/entities' -import {setUpRelations} from '../mapping/relations' -import {getBlockValidator} from './schema' +import {Block} from '../mapping/entities' import {mapBlock} from './mapping' diff --git a/util/http-client/src/client.ts b/util/http-client/src/client.ts index 57697f5b2..274d263bf 100644 --- a/util/http-client/src/client.ts +++ b/util/http-client/src/client.ts @@ -328,7 +328,6 @@ export class HttpClient { if (error instanceof HttpResponse) { switch(error.status) { case 429: - case 500: case 502: case 503: case 504: diff --git a/util/util-internal-archive-client/package.json b/util/util-internal-archive-client/package.json index 426efbdb8..8a317de92 100644 --- a/util/util-internal-archive-client/package.json +++ b/util/util-internal-archive-client/package.json @@ -34,4 +34,4 @@ "@types/node": "^18.18.14", "typescript": "~5.3.2" } -} \ No newline at end of file +} diff --git a/util/util-internal-archive-client/src/client.ts b/util/util-internal-archive-client/src/client.ts index 4af638504..73fbc8b19 100644 --- a/util/util-internal-archive-client/src/client.ts +++ b/util/util-internal-archive-client/src/client.ts @@ -103,4 +103,4 @@ export class ArchiveClient { } } } -} \ No newline at end of file +} diff --git a/util/util-internal-ingest-tools/package.json b/util/util-internal-ingest-tools/package.json index f05ef2f56..41fe6ec0f 100644 --- a/util/util-internal-ingest-tools/package.json +++ b/util/util-internal-ingest-tools/package.json @@ -33,4 +33,4 @@ "@types/node": "^18.18.14", "typescript": "~5.3.2" } -} \ No newline at end of file +} diff --git a/util/util-internal-ingest-tools/src/archive.ts b/util/util-internal-ingest-tools/src/archive.ts index 351a21074..b470c7d96 100644 --- a/util/util-internal-ingest-tools/src/archive.ts +++ b/util/util-internal-ingest-tools/src/archive.ts @@ -61,4 +61,4 @@ export function archiveIngest(args: ArchiveIngestOptions): Asyn ingest(), batch => Promise.resolve(batch) ) -} \ No newline at end of file +}