@secondlayer/shared 11.19.2 → 11.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/archive/range-digest.d.ts +22 -1
- package/dist/src/archive/semantic-digest-builder.d.ts +22 -1
- package/dist/src/coverage/index.d.ts +22 -1
- package/dist/src/db/index.d.ts +27 -2
- package/dist/src/db/index.js +3 -1
- package/dist/src/db/index.js.map +3 -3
- package/dist/src/db/queries/chain-reorgs.d.ts +22 -1
- package/dist/src/db/queries/chain-reorgs.js +3 -1
- package/dist/src/db/queries/chain-reorgs.js.map +3 -3
- package/dist/src/db/queries/contracts.d.ts +22 -1
- package/dist/src/db/queries/instance.d.ts +22 -1
- package/dist/src/db/queries/integrity.d.ts +22 -1
- package/dist/src/db/queries/subgraph-gaps.d.ts +22 -1
- package/dist/src/db/queries/subgraph-operations.d.ts +22 -1
- package/dist/src/db/queries/subgraphs.d.ts +29 -2
- package/dist/src/db/queries/subgraphs.js +30 -1
- package/dist/src/db/queries/subgraphs.js.map +5 -4
- package/dist/src/db/queries/sync-scope.d.ts +22 -1
- package/dist/src/db/queries/webhooks.d.ts +22 -1
- package/dist/src/db/schema.d.ts +25 -2
- package/dist/src/index-http.d.ts +12 -1
- package/dist/src/index-http.js +29 -2
- package/dist/src/index-http.js.map +3 -3
- package/dist/src/index.d.ts +34 -2
- package/dist/src/index.js +9 -1
- package/dist/src/index.js.map +4 -4
- package/dist/src/leader.d.ts +4 -1
- package/dist/src/leader.js +3 -1
- package/dist/src/leader.js.map +3 -3
- package/dist/src/node/local-client.d.ts +32 -2
- package/dist/src/node/local-client.js +4 -2
- package/dist/src/node/local-client.js.map +3 -3
- package/dist/src/queue/listener.js +3 -1
- package/dist/src/queue/listener.js.map +3 -3
- package/dist/src/schemas/index.d.ts +8 -1
- package/dist/src/schemas/index.js +7 -1
- package/dist/src/schemas/index.js.map +3 -3
- package/dist/src/schemas/subgraphs.d.ts +8 -1
- package/dist/src/schemas/subgraphs.js +8 -2
- package/dist/src/schemas/subgraphs.js.map +3 -3
- package/dist/src/types.d.ts +0 -1
- package/migrations/0153_vm_events_height_ordinal_pk.ts +80 -0
- package/migrations/0154_state_writes.ts +62 -0
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -86,7 +86,6 @@ interface EventsArchiveTable {
|
|
|
86
86
|
archived_at: Generated<Date>;
|
|
87
87
|
}
|
|
88
88
|
interface VmEventsTable {
|
|
89
|
-
id: Generated<string>;
|
|
90
89
|
tx_id: string;
|
|
91
90
|
block_height: number;
|
|
92
91
|
ordinal: number;
|
|
@@ -96,6 +95,7 @@ interface VmEventsTable {
|
|
|
96
95
|
}
|
|
97
96
|
interface VmEventsArchiveTable {
|
|
98
97
|
archive_id: Generated<string>;
|
|
98
|
+
/** `block_height:ordinal`; rows archived before migration 0153 hold the old uuid. */
|
|
99
99
|
id: string;
|
|
100
100
|
tx_id: string;
|
|
101
101
|
block_height: number;
|
|
@@ -106,6 +106,25 @@ interface VmEventsArchiveTable {
|
|
|
106
106
|
orphaned_block_hash: string | null;
|
|
107
107
|
archived_at: Generated<Date>;
|
|
108
108
|
}
|
|
109
|
+
interface StateWritesTable {
|
|
110
|
+
block_height: number;
|
|
111
|
+
ordinal: number;
|
|
112
|
+
tx_index: number | null;
|
|
113
|
+
key: string;
|
|
114
|
+
value_hex: string;
|
|
115
|
+
}
|
|
116
|
+
interface StateWritesArchiveTable {
|
|
117
|
+
archive_id: Generated<string>;
|
|
118
|
+
/** `block_height:ordinal`. */
|
|
119
|
+
id: string;
|
|
120
|
+
block_height: number;
|
|
121
|
+
ordinal: number;
|
|
122
|
+
tx_index: number | null;
|
|
123
|
+
key: string;
|
|
124
|
+
value_hex: string;
|
|
125
|
+
orphaned_block_hash: string | null;
|
|
126
|
+
archived_at: Generated<Date>;
|
|
127
|
+
}
|
|
109
128
|
interface DeadLetterEventsTable {
|
|
110
129
|
id: Generated<string>;
|
|
111
130
|
block_height: number;
|
|
@@ -767,9 +786,11 @@ interface Database {
|
|
|
767
786
|
transactions: TransactionsTable;
|
|
768
787
|
events: EventsTable;
|
|
769
788
|
vm_events: VmEventsTable;
|
|
789
|
+
state_writes: StateWritesTable;
|
|
770
790
|
transactions_archive: TransactionsArchiveTable;
|
|
771
791
|
events_archive: EventsArchiveTable;
|
|
772
792
|
vm_events_archive: VmEventsArchiveTable;
|
|
793
|
+
state_writes_archive: StateWritesArchiveTable;
|
|
773
794
|
dead_letter_events: DeadLetterEventsTable;
|
|
774
795
|
mempool_transactions: MempoolTransactionsTable;
|
|
775
796
|
index_progress: IndexProgressTable;
|
|
@@ -939,6 +960,8 @@ type UpdateEvent = Updateable<EventsTable>;
|
|
|
939
960
|
type VmEvent = Selectable<VmEventsTable>;
|
|
940
961
|
type InsertVmEvent = Insertable<VmEventsTable>;
|
|
941
962
|
type UpdateVmEvent = Updateable<VmEventsTable>;
|
|
963
|
+
type StateWrite = Selectable<StateWritesTable>;
|
|
964
|
+
type InsertStateWrite = Insertable<StateWritesTable>;
|
|
942
965
|
type IndexProgress = Selectable<IndexProgressTable>;
|
|
943
966
|
type InsertIndexProgress = Insertable<IndexProgressTable>;
|
|
944
967
|
type UpdateIndexProgress = Updateable<IndexProgressTable>;
|
|
@@ -2070,9 +2093,11 @@ declare const TABLE_TO_DB: {
|
|
|
2070
2093
|
transactions: string
|
|
2071
2094
|
events: string
|
|
2072
2095
|
vm_events: string
|
|
2096
|
+
state_writes: string
|
|
2073
2097
|
transactions_archive: string
|
|
2074
2098
|
events_archive: string
|
|
2075
2099
|
vm_events_archive: string
|
|
2100
|
+
state_writes_archive: string
|
|
2076
2101
|
dead_letter_events: string
|
|
2077
2102
|
mempool_transactions: string
|
|
2078
2103
|
index_progress: string
|
|
@@ -2416,6 +2441,13 @@ interface DeploySubgraphResponse {
|
|
|
2416
2441
|
breakingChanges: string[]
|
|
2417
2442
|
};
|
|
2418
2443
|
}
|
|
2444
|
+
/** Prefix of the `last_error` a billing-paused subgraph carries, e.g.
|
|
2445
|
+
* `billing_paused: spend_cap_reached`. Stable: the processor writes it and
|
|
2446
|
+
* the watchdog and CLI key off it. */
|
|
2447
|
+
declare const BILLING_PAUSED_PREFIX = "billing_paused: ";
|
|
2448
|
+
/** The billing code in a subgraph's `last_error`, or `null` when it isn't a
|
|
2449
|
+
* billing pause. */
|
|
2450
|
+
declare function billingPausedCode(lastError: string | null | undefined): string | null;
|
|
2419
2451
|
interface SubgraphSummary {
|
|
2420
2452
|
name: string;
|
|
2421
2453
|
version: string;
|
|
@@ -3329,4 +3361,4 @@ declare function publicKeyPemFromPrivate(privateKeyPem: string): string;
|
|
|
3329
3361
|
declare function ed25519KeyId(publicKeyPem: string): string;
|
|
3330
3362
|
declare function signEd25519(payload: string, privateKey: KeyObject): string;
|
|
3331
3363
|
declare function verifyEd25519(payload: string, signatureBase64: string, publicKey: KeyObject): boolean;
|
|
3332
|
-
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, ForbiddenError, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FILTER_OPERATORS, WEBHOOK_FORMATS, WEBHOOK_RUNTIMES, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFilter, WebhookFilterClause, WebhookFilterClauseSchema, WebhookFilterOperator, WebhookFilterOperatorSchema, WebhookFilterPrimitive, WebhookFilterPrimitiveSchema, WebhookFilterSchema, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookRuntime, WebhookRuntimeSchema, WebhookSchemaColumn, WebhookSchemaTable, WebhookSchemaTables, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, blockEndCursor, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getRawClientFor, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql, validateWebhookFilterForTable };
|
|
3364
|
+
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, BILLING_PAUSED_PREFIX, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, ForbiddenError, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FILTER_OPERATORS, WEBHOOK_FORMATS, WEBHOOK_RUNTIMES, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFilter, WebhookFilterClause, WebhookFilterClauseSchema, WebhookFilterOperator, WebhookFilterOperatorSchema, WebhookFilterPrimitive, WebhookFilterPrimitiveSchema, WebhookFilterSchema, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookRuntime, WebhookRuntimeSchema, WebhookSchemaColumn, WebhookSchemaTable, WebhookSchemaTables, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, billingPausedCode, blockEndCursor, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getRawClientFor, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql, validateWebhookFilterForTable };
|
package/dist/src/index.js
CHANGED
|
@@ -803,9 +803,11 @@ var TABLE_TO_DB = {
|
|
|
803
803
|
transactions: "source",
|
|
804
804
|
events: "source",
|
|
805
805
|
vm_events: "source",
|
|
806
|
+
state_writes: "source",
|
|
806
807
|
transactions_archive: "source",
|
|
807
808
|
events_archive: "source",
|
|
808
809
|
vm_events_archive: "source",
|
|
810
|
+
state_writes_archive: "source",
|
|
809
811
|
dead_letter_events: "source",
|
|
810
812
|
mempool_transactions: "source",
|
|
811
813
|
index_progress: "source",
|
|
@@ -1248,6 +1250,10 @@ var DeploySubgraphRequestSchema = z2.object({
|
|
|
1248
1250
|
sourceCode: z2.string().max(1048576, "source code exceeds 1MB limit").optional(),
|
|
1249
1251
|
dryRun: z2.boolean().optional()
|
|
1250
1252
|
});
|
|
1253
|
+
var BILLING_PAUSED_PREFIX = "billing_paused: ";
|
|
1254
|
+
function billingPausedCode(lastError) {
|
|
1255
|
+
return lastError?.startsWith(BILLING_PAUSED_PREFIX) ? lastError.slice(BILLING_PAUSED_PREFIX.length) : null;
|
|
1256
|
+
}
|
|
1251
1257
|
// src/schemas/webhooks.ts
|
|
1252
1258
|
import { z as z3 } from "zod";
|
|
1253
1259
|
var WEBHOOK_FORMATS = [
|
|
@@ -2176,6 +2182,7 @@ function verifyEd25519(payload, signatureBase64, publicKey) {
|
|
|
2176
2182
|
export {
|
|
2177
2183
|
AuthenticationError,
|
|
2178
2184
|
AuthorizationError,
|
|
2185
|
+
BILLING_PAUSED_PREFIX,
|
|
2179
2186
|
CHAIN_TRIGGER_FIELDS,
|
|
2180
2187
|
CHAIN_TRIGGER_TYPES,
|
|
2181
2188
|
CODE_TO_STATUS,
|
|
@@ -2222,6 +2229,7 @@ export {
|
|
|
2222
2229
|
WebhookStatusSchema,
|
|
2223
2230
|
applicationDatabaseUrl,
|
|
2224
2231
|
assertDbSplit,
|
|
2232
|
+
billingPausedCode,
|
|
2225
2233
|
blockEndCursor,
|
|
2226
2234
|
closeDb,
|
|
2227
2235
|
closeDbOrTimeout,
|
|
@@ -2264,5 +2272,5 @@ export {
|
|
|
2264
2272
|
validateWebhookFilterForTable
|
|
2265
2273
|
};
|
|
2266
2274
|
|
|
2267
|
-
//# debugId=
|
|
2275
|
+
//# debugId=7E87D9FDD1A5A0B364756E2164756E21
|
|
2268
2276
|
//# sourceMappingURL=index.js.map
|