@secondlayer/shared 15.6.1 → 16.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 (42) hide show
  1. package/dist/src/archive/range-digest.d.ts +2 -0
  2. package/dist/src/archive/semantic-digest-builder.d.ts +2 -0
  3. package/dist/src/coverage/index.d.ts +2 -0
  4. package/dist/src/db/index.d.ts +7 -1
  5. package/dist/src/db/index.js +3 -1
  6. package/dist/src/db/index.js.map +4 -4
  7. package/dist/src/db/queries/chain-reorgs.d.ts +2 -0
  8. package/dist/src/db/queries/chain-reorgs.js +3 -1
  9. package/dist/src/db/queries/chain-reorgs.js.map +4 -4
  10. package/dist/src/db/queries/contracts.d.ts +2 -0
  11. package/dist/src/db/queries/contracts.js.map +2 -2
  12. package/dist/src/db/queries/instance.d.ts +2 -0
  13. package/dist/src/db/queries/integrity.d.ts +2 -0
  14. package/dist/src/db/queries/subgraph-gaps.d.ts +2 -0
  15. package/dist/src/db/queries/subgraph-operations.d.ts +2 -0
  16. package/dist/src/db/queries/subgraphs.d.ts +2 -0
  17. package/dist/src/db/queries/sync-scope.d.ts +2 -0
  18. package/dist/src/db/queries/webhook-replays.d.ts +2 -0
  19. package/dist/src/db/queries/webhooks.d.ts +2 -0
  20. package/dist/src/db/schema.d.ts +2 -0
  21. package/dist/src/db/schema.js.map +2 -2
  22. package/dist/src/index-http.d.ts +1 -0
  23. package/dist/src/index-http.js.map +2 -2
  24. package/dist/src/index.d.ts +11 -6
  25. package/dist/src/index.js +6 -11
  26. package/dist/src/index.js.map +6 -6
  27. package/dist/src/insights/index.d.ts +2 -0
  28. package/dist/src/leader.js +3 -1
  29. package/dist/src/leader.js.map +4 -4
  30. package/dist/src/node/local-client.d.ts +2 -0
  31. package/dist/src/queue/listener.js +3 -1
  32. package/dist/src/queue/listener.js.map +4 -4
  33. package/dist/src/schemas/chain-triggers.js +2 -8
  34. package/dist/src/schemas/chain-triggers.js.map +3 -3
  35. package/dist/src/schemas/index.d.ts +1 -2
  36. package/dist/src/schemas/index.js +4 -11
  37. package/dist/src/schemas/index.js.map +4 -4
  38. package/dist/src/schemas/webhooks.d.ts +1 -2
  39. package/dist/src/schemas/webhooks.js +4 -11
  40. package/dist/src/schemas/webhooks.js.map +4 -4
  41. package/migrations/0205_sbtc_deposit_recipient.ts +75 -0
  42. package/package.json +2 -2
@@ -610,6 +610,8 @@ interface SbtcEventsTable {
610
610
  request_id: number | null;
611
611
  amount: string | null;
612
612
  sender: string | null;
613
+ /** Stacks principal a `completed-deposit` minted sBTC to. */
614
+ recipient: string | null;
613
615
  recipient_btc_version: number | null;
614
616
  recipient_btc_hashbytes: string | null;
615
617
  bitcoin_txid: string | null;
@@ -610,6 +610,8 @@ interface SbtcEventsTable {
610
610
  request_id: number | null;
611
611
  amount: string | null;
612
612
  sender: string | null;
613
+ /** Stacks principal a `completed-deposit` minted sBTC to. */
614
+ recipient: string | null;
613
615
  recipient_btc_version: number | null;
614
616
  recipient_btc_hashbytes: string | null;
615
617
  bitcoin_txid: string | null;
@@ -927,6 +927,8 @@ interface SbtcEventsTable {
927
927
  request_id: number | null;
928
928
  amount: string | null;
929
929
  sender: string | null;
930
+ /** Stacks principal a `completed-deposit` minted sBTC to. */
931
+ recipient: string | null;
930
932
  recipient_btc_version: number | null;
931
933
  recipient_btc_hashbytes: string | null;
932
934
  bitcoin_txid: string | null;
@@ -611,6 +611,8 @@ interface SbtcEventsTable {
611
611
  request_id: number | null;
612
612
  amount: string | null;
613
613
  sender: string | null;
614
+ /** Stacks principal a `completed-deposit` minted sBTC to. */
615
+ recipient: string | null;
614
616
  recipient_btc_version: number | null;
615
617
  recipient_btc_hashbytes: string | null;
616
618
  bitcoin_txid: string | null;
@@ -1591,7 +1593,7 @@ declare const SOURCE_READ_COLUMNS: {
1591
1593
  readonly mempool_transactions: readonly ["contract_id", "function_args", "function_name", "raw_tx", "received_at", "sender", "seq", "tx_id", "type"]
1592
1594
  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
1595
  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"]
1596
+ 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
1597
  readonly sbtc_token_events: readonly ["amount", "block_height", "block_time", "canonical", "cursor", "event_index", "event_type", "memo", "recipient", "sender", "tx_id", "tx_index"]
1596
1598
  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
1599
  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"]
@@ -2002,6 +2004,10 @@ declare const SOURCE_READ_TYPES: {
2002
2004
  readonly type: "int"
2003
2005
  readonly nullable: true
2004
2006
  }
2007
+ readonly recipient: {
2008
+ readonly type: "text"
2009
+ readonly nullable: true
2010
+ }
2005
2011
  readonly recipient_btc_hashbytes: {
2006
2012
  readonly type: "text"
2007
2013
  readonly nullable: true
@@ -348,6 +348,7 @@ var SOURCE_READ_COLUMNS = {
348
348
  "governance_new_contract",
349
349
  "max_fee",
350
350
  "output_index",
351
+ "recipient",
351
352
  "recipient_btc_hashbytes",
352
353
  "recipient_btc_version",
353
354
  "request_id",
@@ -591,6 +592,7 @@ var SOURCE_READ_TYPES = {
591
592
  governance_new_contract: { type: "text", nullable: true },
592
593
  max_fee: { type: "text", nullable: true },
593
594
  output_index: { type: "int", nullable: true },
595
+ recipient: { type: "text", nullable: true },
594
596
  recipient_btc_hashbytes: { type: "text", nullable: true },
595
597
  recipient_btc_version: { type: "int", nullable: true },
596
598
  request_id: { type: "int", nullable: true },
@@ -1069,5 +1071,5 @@ export {
1069
1071
  sql2 as sql
1070
1072
  };
1071
1073
 
1072
- //# debugId=9F87BBC92FD19A1764756E2164756E21
1074
+ //# debugId=2C47EF7535A74AF964756E2164756E21
1073
1075
  //# sourceMappingURL=index.js.map