@secondlayer/shared 16.0.0 → 17.1.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 (65) hide show
  1. package/dist/src/archive/range-digest.d.ts +0 -36
  2. package/dist/src/archive/semantic-digest-builder.d.ts +0 -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 +0 -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 +1 -151
  9. package/dist/src/db/index.js +1 -70
  10. package/dist/src/db/index.js.map +6 -6
  11. package/dist/src/db/queries/chain-reorgs.d.ts +0 -36
  12. package/dist/src/db/queries/chain-reorgs.js +1 -70
  13. package/dist/src/db/queries/chain-reorgs.js.map +6 -6
  14. package/dist/src/db/queries/contracts.d.ts +0 -36
  15. package/dist/src/db/queries/contracts.js.map +2 -2
  16. package/dist/src/db/queries/instance.d.ts +0 -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 +0 -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 +0 -36
  23. package/dist/src/db/queries/subgraph-operations.d.ts +0 -36
  24. package/dist/src/db/queries/subgraphs.d.ts +0 -36
  25. package/dist/src/db/queries/sync-scope.d.ts +0 -36
  26. package/dist/src/db/queries/webhook-replays.d.ts +0 -36
  27. package/dist/src/db/queries/webhooks.d.ts +0 -36
  28. package/dist/src/db/schema.d.ts +1 -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.d.ts +19 -158
  36. package/dist/src/index.js +51 -77
  37. package/dist/src/index.js.map +10 -8
  38. package/dist/src/insights/index.d.ts +0 -36
  39. package/dist/src/insights/index.js +1 -4
  40. package/dist/src/insights/index.js.map +3 -3
  41. package/dist/src/leader.js +1 -70
  42. package/dist/src/leader.js.map +6 -6
  43. package/dist/src/logger.js +1 -4
  44. package/dist/src/logger.js.map +3 -3
  45. package/dist/src/node/local-client.d.ts +0 -36
  46. package/dist/src/node/tx-summary.d.ts +7 -1
  47. package/dist/src/node/tx-summary.js +17 -5
  48. package/dist/src/node/tx-summary.js.map +4 -4
  49. package/dist/src/queue/listener.js +1 -70
  50. package/dist/src/queue/listener.js.map +6 -6
  51. package/dist/src/runtime/index.js +1 -2
  52. package/dist/src/runtime/index.js.map +3 -3
  53. package/dist/src/schemas/index.js +28 -7
  54. package/dist/src/schemas/index.js.map +5 -4
  55. package/dist/src/schemas/webhooks.js +28 -7
  56. package/dist/src/schemas/webhooks.js.map +5 -4
  57. package/dist/src/streams-rows/index.d.ts +35 -12
  58. package/dist/src/streams-rows/index.js +25 -21
  59. package/dist/src/streams-rows/index.js.map +5 -5
  60. package/migrations/0206_drop_pox4_calls.ts +32 -0
  61. package/migrations/0207_bns_buy_listing_price.ts +39 -0
  62. package/migrations/0208_pox5_calculate_rewards_cycle.ts +31 -0
  63. package/migrations/0209_chain_reorgs_index_block_hash.ts +51 -0
  64. package/migrations/0210_mempool_evict_superseded_nonces.ts +71 -0
  65. package/package.json +1 -1
@@ -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",
@@ -522,38 +487,6 @@ var SOURCE_READ_TYPES = {
522
487
  tx_id: { type: "text" },
523
488
  type: { type: "text" }
524
489
  },
525
- pox4_calls: {
526
- aggregated_amount_ustx: { type: "text", nullable: true },
527
- aggregated_signer_index: { type: "int", nullable: true },
528
- amount_ustx: { type: "text", nullable: true },
529
- auth_allowed: { type: "boolean", nullable: true },
530
- auth_id: { type: "text", nullable: true },
531
- auth_period: { type: "int", nullable: true },
532
- auth_topic: { type: "text", nullable: true },
533
- block_height: { type: "int" },
534
- block_time: { type: "timestamp" },
535
- burn_block_height: { type: "int" },
536
- caller: { type: "text" },
537
- canonical: { type: "boolean" },
538
- cursor: { type: "text" },
539
- delegate_to: { type: "text", nullable: true },
540
- end_cycle: { type: "int", nullable: true },
541
- function_name: { type: "text" },
542
- lock_period: { type: "int", nullable: true },
543
- max_amount: { type: "text", nullable: true },
544
- pox_addr_btc: { type: "text", nullable: true },
545
- pox_addr_hashbytes: { type: "text", nullable: true },
546
- pox_addr_version: { type: "int", nullable: true },
547
- result_ok: { type: "boolean" },
548
- reward_cycle: { type: "int", nullable: true },
549
- signer_key: { type: "text", nullable: true },
550
- signer_signature: { type: "text", nullable: true },
551
- source_cursor: { type: "text" },
552
- stacker: { type: "text", nullable: true },
553
- start_cycle: { type: "int", nullable: true },
554
- tx_id: { type: "text" },
555
- tx_index: { type: "int" }
556
- },
557
490
  pox5_events: {
558
491
  amount_sats: { type: "text", nullable: true },
559
492
  amount_ustx: { type: "text", nullable: true },
@@ -728,7 +661,6 @@ var SOURCE_READ_PKS = {
728
661
  decoded_events: ["cursor"],
729
662
  transactions: ["tx_id"],
730
663
  mempool_transactions: ["seq"],
731
- pox4_calls: ["cursor"],
732
664
  pox5_events: ["cursor"],
733
665
  sbtc_events: ["cursor"],
734
666
  sbtc_token_events: ["cursor"],
@@ -801,7 +733,6 @@ var TABLE_TO_DB = {
801
733
  stage_failures: "source",
802
734
  decoded_events: "source",
803
735
  decoder_checkpoints: "source",
804
- pox4_calls: "source",
805
736
  pox5_events: "source",
806
737
  pox5_cycles: "source",
807
738
  pox5_cycle_signers: "source",
@@ -1071,5 +1002,5 @@ export {
1071
1002
  sql2 as sql
1072
1003
  };
1073
1004
 
1074
- //# debugId=2C47EF7535A74AF964756E2164756E21
1005
+ //# debugId=9711D00105A2FE4564756E2164756E21
1075
1006
  //# sourceMappingURL=index.js.map