@secondlayer/shared 15.6.1 → 17.0.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.
Files changed (64) hide show
  1. package/dist/src/archive/range-digest.d.ts +2 -36
  2. package/dist/src/archive/semantic-digest-builder.d.ts +2 -36
  3. package/dist/src/classify/index.js +1 -4
  4. package/dist/src/classify/index.js.map +3 -3
  5. package/dist/src/coverage/index.d.ts +2 -36
  6. package/dist/src/crypto/secondlayer-webhook.js +1 -4
  7. package/dist/src/crypto/secondlayer-webhook.js.map +3 -3
  8. package/dist/src/db/index.d.ts +8 -152
  9. package/dist/src/db/index.js +3 -70
  10. package/dist/src/db/index.js.map +6 -6
  11. package/dist/src/db/queries/chain-reorgs.d.ts +2 -36
  12. package/dist/src/db/queries/chain-reorgs.js +3 -70
  13. package/dist/src/db/queries/chain-reorgs.js.map +6 -6
  14. package/dist/src/db/queries/contracts.d.ts +2 -36
  15. package/dist/src/db/queries/contracts.js.map +2 -2
  16. package/dist/src/db/queries/instance.d.ts +2 -36
  17. package/dist/src/db/queries/instance.js +1 -4
  18. package/dist/src/db/queries/instance.js.map +3 -3
  19. package/dist/src/db/queries/integrity.d.ts +2 -36
  20. package/dist/src/db/queries/integrity.js +1 -4
  21. package/dist/src/db/queries/integrity.js.map +3 -3
  22. package/dist/src/db/queries/subgraph-gaps.d.ts +2 -36
  23. package/dist/src/db/queries/subgraph-operations.d.ts +2 -36
  24. package/dist/src/db/queries/subgraphs.d.ts +2 -36
  25. package/dist/src/db/queries/sync-scope.d.ts +2 -36
  26. package/dist/src/db/queries/webhook-replays.d.ts +2 -36
  27. package/dist/src/db/queries/webhooks.d.ts +2 -36
  28. package/dist/src/db/schema.d.ts +3 -37
  29. package/dist/src/db/schema.js.map +2 -2
  30. package/dist/src/email/index.js +1 -4
  31. package/dist/src/email/index.js.map +3 -3
  32. package/dist/src/env.d.ts +2 -8
  33. package/dist/src/env.js +1 -5
  34. package/dist/src/env.js.map +3 -3
  35. package/dist/src/index-http.d.ts +1 -0
  36. package/dist/src/index-http.js.map +2 -2
  37. package/dist/src/index.d.ts +13 -164
  38. package/dist/src/index.js +6 -81
  39. package/dist/src/index.js.map +8 -8
  40. package/dist/src/insights/index.d.ts +2 -36
  41. package/dist/src/insights/index.js +1 -4
  42. package/dist/src/insights/index.js.map +3 -3
  43. package/dist/src/leader.js +3 -70
  44. package/dist/src/leader.js.map +6 -6
  45. package/dist/src/logger.js +1 -4
  46. package/dist/src/logger.js.map +3 -3
  47. package/dist/src/node/local-client.d.ts +2 -36
  48. package/dist/src/node/tx-summary.js +1 -4
  49. package/dist/src/node/tx-summary.js.map +3 -3
  50. package/dist/src/queue/listener.js +3 -70
  51. package/dist/src/queue/listener.js.map +6 -6
  52. package/dist/src/runtime/index.js +1 -2
  53. package/dist/src/runtime/index.js.map +3 -3
  54. package/dist/src/schemas/chain-triggers.js +2 -8
  55. package/dist/src/schemas/chain-triggers.js.map +3 -3
  56. package/dist/src/schemas/index.d.ts +1 -2
  57. package/dist/src/schemas/index.js +4 -11
  58. package/dist/src/schemas/index.js.map +4 -4
  59. package/dist/src/schemas/webhooks.d.ts +1 -2
  60. package/dist/src/schemas/webhooks.js +4 -11
  61. package/dist/src/schemas/webhooks.js.map +4 -4
  62. package/migrations/0205_sbtc_deposit_recipient.ts +75 -0
  63. package/migrations/0206_drop_pox4_calls.ts +32 -0
  64. package/package.json +2 -2
@@ -487,41 +487,6 @@ interface ChainReorgsTable {
487
487
  new_canonical_event_index: number;
488
488
  created_at: Generated<Date>;
489
489
  }
490
- type Pox4FunctionName = "stack-stx" | "delegate-stx" | "stack-extend" | "stack-increase" | "revoke-delegate-stx" | "delegate-stack-stx" | "delegate-stack-extend" | "delegate-stack-increase" | "stack-aggregation-commit" | "stack-aggregation-commit-indexed" | "stack-aggregation-increase" | "set-signer-key-authorization";
491
- interface Pox4CallsTable {
492
- cursor: string;
493
- block_height: number;
494
- block_time: Date;
495
- burn_block_height: number;
496
- tx_id: string;
497
- tx_index: number;
498
- function_name: Pox4FunctionName;
499
- caller: string;
500
- stacker: string | null;
501
- delegate_to: string | null;
502
- amount_ustx: string | null;
503
- lock_period: number | null;
504
- pox_addr_version: number | null;
505
- pox_addr_hashbytes: string | null;
506
- pox_addr_btc: string | null;
507
- start_cycle: number | null;
508
- end_cycle: number | null;
509
- signer_key: string | null;
510
- signer_signature: string | null;
511
- auth_id: string | null;
512
- max_amount: string | null;
513
- reward_cycle: number | null;
514
- aggregated_amount_ustx: string | null;
515
- aggregated_signer_index: number | null;
516
- auth_period: number | null;
517
- auth_topic: string | null;
518
- auth_allowed: boolean | null;
519
- result_ok: boolean;
520
- result_raw: string;
521
- canonical: Generated<boolean>;
522
- source_cursor: string;
523
- created_at: Generated<Date>;
524
- }
525
490
  type Pox5EventTopic = "set-bond-admin" | "set-pause-admin" | "pause-rewards" | "setup-bond" | "add-to-allowlist" | "register-for-bond" | "update-bond-registration" | "register-signer" | "stake" | "stake-update" | "announce-l1-early-exit" | "unstake-sbtc" | "unstake" | "calculate-rewards" | "bond-distribution" | "claim-rewards" | "claim-staker-rewards-for-signer" | "grant-signer-key" | "revoke-signer-grant";
526
491
  interface Pox5EventsTable {
527
492
  cursor: string;
@@ -611,6 +576,8 @@ interface SbtcEventsTable {
611
576
  request_id: number | null;
612
577
  amount: string | null;
613
578
  sender: string | null;
579
+ /** Stacks principal a `completed-deposit` minted sBTC to. */
580
+ recipient: string | null;
614
581
  recipient_btc_version: number | null;
615
582
  recipient_btc_hashbytes: string | null;
616
583
  bitcoin_txid: string | null;
@@ -937,7 +904,6 @@ interface Database {
937
904
  decoded_events: DecodedEventsTable;
938
905
  decoder_checkpoints: DecoderCheckpointsTable;
939
906
  chain_reorgs: ChainReorgsTable;
940
- pox4_calls: Pox4CallsTable;
941
907
  pox5_events: Pox5EventsTable;
942
908
  pox5_cycles: Pox5CyclesTable;
943
909
  pox5_cycle_signers: Pox5CycleSignersTable;
@@ -1589,9 +1555,8 @@ declare const SOURCE_READ_COLUMNS: {
1589
1555
  readonly decoded_events: readonly ["amount", "asset_identifier", "block_height", "canonical", "contract_id", "cursor", "event_index", "event_type", "memo", "payload", "recipient", "sender", "tx_id", "tx_index", "value"]
1590
1556
  readonly transactions: readonly ["block_height", "contract_id", "function_args", "function_name", "raw_result", "raw_tx", "sender", "status", "tx_id", "tx_index", "type"]
1591
1557
  readonly mempool_transactions: readonly ["contract_id", "function_args", "function_name", "raw_tx", "received_at", "sender", "seq", "tx_id", "type"]
1592
- readonly pox4_calls: readonly ["aggregated_amount_ustx", "aggregated_signer_index", "amount_ustx", "auth_allowed", "auth_id", "auth_period", "auth_topic", "block_height", "block_time", "burn_block_height", "caller", "canonical", "cursor", "delegate_to", "end_cycle", "function_name", "lock_period", "max_amount", "pox_addr_btc", "pox_addr_hashbytes", "pox_addr_version", "result_ok", "reward_cycle", "signer_key", "signer_signature", "source_cursor", "stacker", "start_cycle", "tx_id", "tx_index"]
1593
1558
  readonly pox5_events: readonly ["amount_sats", "amount_ustx", "block_height", "block_time", "bond_index", "canonical", "cursor", "data", "event_index", "first_reward_cycle", "is_l1_lock", "reward_cycle", "signer", "signer_key", "signer_manager", "staker", "topic", "tx_id", "tx_index", "unlock_burn_height", "unlock_cycle"]
1594
- readonly sbtc_events: readonly ["amount", "bitcoin_txid", "block_height", "block_time", "burn_hash", "burn_height", "canonical", "cursor", "event_index", "fee", "governance_contract_type", "governance_new_contract", "max_fee", "output_index", "recipient_btc_hashbytes", "recipient_btc_version", "request_id", "sender", "signer_address", "signer_aggregate_pubkey", "signer_bitmap", "signer_keys_count", "signer_threshold", "sweep_txid", "topic", "tx_id", "tx_index"]
1559
+ readonly sbtc_events: readonly ["amount", "bitcoin_txid", "block_height", "block_time", "burn_hash", "burn_height", "canonical", "cursor", "event_index", "fee", "governance_contract_type", "governance_new_contract", "max_fee", "output_index", "recipient", "recipient_btc_hashbytes", "recipient_btc_version", "request_id", "sender", "signer_address", "signer_aggregate_pubkey", "signer_bitmap", "signer_keys_count", "signer_threshold", "sweep_txid", "topic", "tx_id", "tx_index"]
1595
1560
  readonly sbtc_token_events: readonly ["amount", "block_height", "block_time", "canonical", "cursor", "event_index", "event_type", "memo", "recipient", "sender", "tx_id", "tx_index"]
1596
1561
  readonly bns_name_events: readonly ["block_height", "block_time", "bns_id", "canonical", "cursor", "event_index", "fqn", "hashed_salted_fqn_preorder", "imported_at", "name", "namespace", "owner", "preordered_by", "registered_at", "renewal_height", "stx_burn", "topic", "tx_id", "tx_index"]
1597
1562
  readonly bns_namespace_events: readonly ["block_height", "block_time", "canonical", "cursor", "event_index", "launched_at", "lifetime", "manager", "manager_frozen", "manager_transfers_disabled", "namespace", "price_frozen", "price_function", "revealed_at", "status", "tx_id", "tx_index"]
@@ -1761,117 +1726,6 @@ declare const SOURCE_READ_TYPES: {
1761
1726
  readonly type: "text"
1762
1727
  }
1763
1728
  }
1764
- readonly pox4_calls: {
1765
- readonly aggregated_amount_ustx: {
1766
- readonly type: "text"
1767
- readonly nullable: true
1768
- }
1769
- readonly aggregated_signer_index: {
1770
- readonly type: "int"
1771
- readonly nullable: true
1772
- }
1773
- readonly amount_ustx: {
1774
- readonly type: "text"
1775
- readonly nullable: true
1776
- }
1777
- readonly auth_allowed: {
1778
- readonly type: "boolean"
1779
- readonly nullable: true
1780
- }
1781
- readonly auth_id: {
1782
- readonly type: "text"
1783
- readonly nullable: true
1784
- }
1785
- readonly auth_period: {
1786
- readonly type: "int"
1787
- readonly nullable: true
1788
- }
1789
- readonly auth_topic: {
1790
- readonly type: "text"
1791
- readonly nullable: true
1792
- }
1793
- readonly block_height: {
1794
- readonly type: "int"
1795
- }
1796
- readonly block_time: {
1797
- readonly type: "timestamp"
1798
- }
1799
- readonly burn_block_height: {
1800
- readonly type: "int"
1801
- }
1802
- readonly caller: {
1803
- readonly type: "text"
1804
- }
1805
- readonly canonical: {
1806
- readonly type: "boolean"
1807
- }
1808
- readonly cursor: {
1809
- readonly type: "text"
1810
- }
1811
- readonly delegate_to: {
1812
- readonly type: "text"
1813
- readonly nullable: true
1814
- }
1815
- readonly end_cycle: {
1816
- readonly type: "int"
1817
- readonly nullable: true
1818
- }
1819
- readonly function_name: {
1820
- readonly type: "text"
1821
- }
1822
- readonly lock_period: {
1823
- readonly type: "int"
1824
- readonly nullable: true
1825
- }
1826
- readonly max_amount: {
1827
- readonly type: "text"
1828
- readonly nullable: true
1829
- }
1830
- readonly pox_addr_btc: {
1831
- readonly type: "text"
1832
- readonly nullable: true
1833
- }
1834
- readonly pox_addr_hashbytes: {
1835
- readonly type: "text"
1836
- readonly nullable: true
1837
- }
1838
- readonly pox_addr_version: {
1839
- readonly type: "int"
1840
- readonly nullable: true
1841
- }
1842
- readonly result_ok: {
1843
- readonly type: "boolean"
1844
- }
1845
- readonly reward_cycle: {
1846
- readonly type: "int"
1847
- readonly nullable: true
1848
- }
1849
- readonly signer_key: {
1850
- readonly type: "text"
1851
- readonly nullable: true
1852
- }
1853
- readonly signer_signature: {
1854
- readonly type: "text"
1855
- readonly nullable: true
1856
- }
1857
- readonly source_cursor: {
1858
- readonly type: "text"
1859
- }
1860
- readonly stacker: {
1861
- readonly type: "text"
1862
- readonly nullable: true
1863
- }
1864
- readonly start_cycle: {
1865
- readonly type: "int"
1866
- readonly nullable: true
1867
- }
1868
- readonly tx_id: {
1869
- readonly type: "text"
1870
- }
1871
- readonly tx_index: {
1872
- readonly type: "int"
1873
- }
1874
- }
1875
1729
  readonly pox5_events: {
1876
1730
  readonly amount_sats: {
1877
1731
  readonly type: "text"
@@ -2002,6 +1856,10 @@ declare const SOURCE_READ_TYPES: {
2002
1856
  readonly type: "int"
2003
1857
  readonly nullable: true
2004
1858
  }
1859
+ readonly recipient: {
1860
+ readonly type: "text"
1861
+ readonly nullable: true
1862
+ }
2005
1863
  readonly recipient_btc_hashbytes: {
2006
1864
  readonly type: "text"
2007
1865
  readonly nullable: true
@@ -2389,7 +2247,6 @@ declare const SOURCE_READ_PKS: {
2389
2247
  readonly decoded_events: readonly ["cursor"]
2390
2248
  readonly transactions: readonly ["tx_id"]
2391
2249
  readonly mempool_transactions: readonly ["seq"]
2392
- readonly pox4_calls: readonly ["cursor"]
2393
2250
  readonly pox5_events: readonly ["cursor"]
2394
2251
  readonly sbtc_events: readonly ["cursor"]
2395
2252
  readonly sbtc_token_events: readonly ["cursor"]
@@ -2495,7 +2352,6 @@ declare const TABLE_TO_DB: {
2495
2352
  stage_failures: string
2496
2353
  decoded_events: string
2497
2354
  decoder_checkpoints: string
2498
- pox4_calls: string
2499
2355
  pox5_events: string
2500
2356
  pox5_cycles: string
2501
2357
  pox5_cycle_signers: string
@@ -2655,4 +2511,4 @@ declare function closeDb(): Promise<void>;
2655
2511
  * actual work is done.
2656
2512
  */
2657
2513
  declare function closeDbOrTimeout(timeoutMs?: number, closeFn?: () => Promise<void>): Promise<void>;
2658
- export { ABI_STATUSES, AbiStatus, Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeyStatus, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, CliDeviceLogin, CliDeviceLoginStatus, CliDeviceLoginsTable, CliDeviceProduct, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadReason, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, GapReason, HostedStackStateTable, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUpdateSubscriber, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InsightMutesTable, InsightsTable, InstancesTable, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NumericAsText, OBSERVER_JOURNAL_STATUSES, OauthClient, OauthClientsTable, OauthCodesTable, OauthGrant, OauthGrantsTable, OauthRefreshRetiredTable, OauthRequestStatus, OauthRequestsTable, OauthTokenKind, OauthTokensTable, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, PushPrefs, PushPrefsTable, PushSentTable, PushSubscription, PushSubscriptionsTable, RepairMode, RetryState, RunStatus, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, Subgraph, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSendsTable, UpdateSubgraph, UpdateSubgraphOperation, UpdateSubscriber, UpdateSubscribersTable, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UsageLedgerRow, UsageLedgerTable, VmEvent, VmEventsArchiveTable, VmEventsTable, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDeliveryHoursTable, WebhookFormat, WebhookIncidentAlert, WebhookIncidentAlertsTable, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookPauseReason, WebhookReplay, WebhookReplayStatus, WebhookReplaysTable, WebhookStatus, WebhooksTable, applicationDatabaseUrl, assertDbSplit, closeDb, closeDbOrTimeout, configuredSourceUrl, configuredTargetUrl, describeDbUrl, getDb, getDbSplitStatus, getMigrationRole, getRawClient, getSourceDb, getTargetDb, jsonb, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
2514
+ export { ABI_STATUSES, AbiStatus, Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeyStatus, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, CliDeviceLogin, CliDeviceLoginStatus, CliDeviceLoginsTable, CliDeviceProduct, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadReason, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, GapReason, HostedStackStateTable, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUpdateSubscriber, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InsightMutesTable, InsightsTable, InstancesTable, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NumericAsText, OBSERVER_JOURNAL_STATUSES, OauthClient, OauthClientsTable, OauthCodesTable, OauthGrant, OauthGrantsTable, OauthRefreshRetiredTable, OauthRequestStatus, OauthRequestsTable, OauthTokenKind, OauthTokensTable, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, PendingForkBlocksTable, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, PushPrefs, PushPrefsTable, PushSentTable, PushSubscription, PushSubscriptionsTable, RepairMode, RetryState, RunStatus, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, Subgraph, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSendsTable, UpdateSubgraph, UpdateSubgraphOperation, UpdateSubscriber, UpdateSubscribersTable, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UsageLedgerRow, UsageLedgerTable, VmEvent, VmEventsArchiveTable, VmEventsTable, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDeliveryHoursTable, WebhookFormat, WebhookIncidentAlert, WebhookIncidentAlertsTable, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookPauseReason, WebhookReplay, WebhookReplayStatus, WebhookReplaysTable, WebhookStatus, WebhooksTable, applicationDatabaseUrl, assertDbSplit, closeDb, closeDbOrTimeout, configuredSourceUrl, configuredTargetUrl, describeDbUrl, getDb, getDbSplitStatus, getMigrationRole, getRawClient, getSourceDb, getTargetDb, jsonb, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
@@ -63,9 +63,6 @@ function stacksNetwork(env = process.env) {
63
63
  function isProductionEnv() {
64
64
  return process.env["NODE_ENV"] === "production";
65
65
  }
66
- function isPox4DecoderEnabled(env = process.env) {
67
- return env.POX4_DECODER_ENABLED !== "false";
68
- }
69
66
  function isPox5DecoderEnabled(env = process.env) {
70
67
  return env.POX5_DECODER_ENABLED !== "false";
71
68
  }
@@ -278,38 +275,6 @@ var SOURCE_READ_COLUMNS = {
278
275
  "tx_id",
279
276
  "type"
280
277
  ],
281
- pox4_calls: [
282
- "aggregated_amount_ustx",
283
- "aggregated_signer_index",
284
- "amount_ustx",
285
- "auth_allowed",
286
- "auth_id",
287
- "auth_period",
288
- "auth_topic",
289
- "block_height",
290
- "block_time",
291
- "burn_block_height",
292
- "caller",
293
- "canonical",
294
- "cursor",
295
- "delegate_to",
296
- "end_cycle",
297
- "function_name",
298
- "lock_period",
299
- "max_amount",
300
- "pox_addr_btc",
301
- "pox_addr_hashbytes",
302
- "pox_addr_version",
303
- "result_ok",
304
- "reward_cycle",
305
- "signer_key",
306
- "signer_signature",
307
- "source_cursor",
308
- "stacker",
309
- "start_cycle",
310
- "tx_id",
311
- "tx_index"
312
- ],
313
278
  pox5_events: [
314
279
  "amount_sats",
315
280
  "amount_ustx",
@@ -348,6 +313,7 @@ var SOURCE_READ_COLUMNS = {
348
313
  "governance_new_contract",
349
314
  "max_fee",
350
315
  "output_index",
316
+ "recipient",
351
317
  "recipient_btc_hashbytes",
352
318
  "recipient_btc_version",
353
319
  "request_id",
@@ -521,38 +487,6 @@ var SOURCE_READ_TYPES = {
521
487
  tx_id: { type: "text" },
522
488
  type: { type: "text" }
523
489
  },
524
- pox4_calls: {
525
- aggregated_amount_ustx: { type: "text", nullable: true },
526
- aggregated_signer_index: { type: "int", nullable: true },
527
- amount_ustx: { type: "text", nullable: true },
528
- auth_allowed: { type: "boolean", nullable: true },
529
- auth_id: { type: "text", nullable: true },
530
- auth_period: { type: "int", nullable: true },
531
- auth_topic: { type: "text", nullable: true },
532
- block_height: { type: "int" },
533
- block_time: { type: "timestamp" },
534
- burn_block_height: { type: "int" },
535
- caller: { type: "text" },
536
- canonical: { type: "boolean" },
537
- cursor: { type: "text" },
538
- delegate_to: { type: "text", nullable: true },
539
- end_cycle: { type: "int", nullable: true },
540
- function_name: { type: "text" },
541
- lock_period: { type: "int", nullable: true },
542
- max_amount: { type: "text", nullable: true },
543
- pox_addr_btc: { type: "text", nullable: true },
544
- pox_addr_hashbytes: { type: "text", nullable: true },
545
- pox_addr_version: { type: "int", nullable: true },
546
- result_ok: { type: "boolean" },
547
- reward_cycle: { type: "int", nullable: true },
548
- signer_key: { type: "text", nullable: true },
549
- signer_signature: { type: "text", nullable: true },
550
- source_cursor: { type: "text" },
551
- stacker: { type: "text", nullable: true },
552
- start_cycle: { type: "int", nullable: true },
553
- tx_id: { type: "text" },
554
- tx_index: { type: "int" }
555
- },
556
490
  pox5_events: {
557
491
  amount_sats: { type: "text", nullable: true },
558
492
  amount_ustx: { type: "text", nullable: true },
@@ -591,6 +525,7 @@ var SOURCE_READ_TYPES = {
591
525
  governance_new_contract: { type: "text", nullable: true },
592
526
  max_fee: { type: "text", nullable: true },
593
527
  output_index: { type: "int", nullable: true },
528
+ recipient: { type: "text", nullable: true },
594
529
  recipient_btc_hashbytes: { type: "text", nullable: true },
595
530
  recipient_btc_version: { type: "int", nullable: true },
596
531
  request_id: { type: "int", nullable: true },
@@ -726,7 +661,6 @@ var SOURCE_READ_PKS = {
726
661
  decoded_events: ["cursor"],
727
662
  transactions: ["tx_id"],
728
663
  mempool_transactions: ["seq"],
729
- pox4_calls: ["cursor"],
730
664
  pox5_events: ["cursor"],
731
665
  sbtc_events: ["cursor"],
732
666
  sbtc_token_events: ["cursor"],
@@ -799,7 +733,6 @@ var TABLE_TO_DB = {
799
733
  stage_failures: "source",
800
734
  decoded_events: "source",
801
735
  decoder_checkpoints: "source",
802
- pox4_calls: "source",
803
736
  pox5_events: "source",
804
737
  pox5_cycles: "source",
805
738
  pox5_cycle_signers: "source",
@@ -1069,5 +1002,5 @@ export {
1069
1002
  sql2 as sql
1070
1003
  };
1071
1004
 
1072
- //# debugId=9F87BBC92FD19A1764756E2164756E21
1005
+ //# debugId=9711D00105A2FE4564756E2164756E21
1073
1006
  //# sourceMappingURL=index.js.map