@secondlayer/shared 16.0.0 → 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.
- package/dist/src/archive/range-digest.d.ts +0 -36
- package/dist/src/archive/semantic-digest-builder.d.ts +0 -36
- package/dist/src/classify/index.js +1 -4
- package/dist/src/classify/index.js.map +3 -3
- package/dist/src/coverage/index.d.ts +0 -36
- package/dist/src/crypto/secondlayer-webhook.js +1 -4
- package/dist/src/crypto/secondlayer-webhook.js.map +3 -3
- package/dist/src/db/index.d.ts +1 -151
- package/dist/src/db/index.js +1 -70
- package/dist/src/db/index.js.map +6 -6
- package/dist/src/db/queries/chain-reorgs.d.ts +0 -36
- package/dist/src/db/queries/chain-reorgs.js +1 -70
- package/dist/src/db/queries/chain-reorgs.js.map +6 -6
- package/dist/src/db/queries/contracts.d.ts +0 -36
- package/dist/src/db/queries/contracts.js.map +2 -2
- package/dist/src/db/queries/instance.d.ts +0 -36
- package/dist/src/db/queries/instance.js +1 -4
- package/dist/src/db/queries/instance.js.map +3 -3
- package/dist/src/db/queries/integrity.d.ts +0 -36
- package/dist/src/db/queries/integrity.js +1 -4
- package/dist/src/db/queries/integrity.js.map +3 -3
- package/dist/src/db/queries/subgraph-gaps.d.ts +0 -36
- package/dist/src/db/queries/subgraph-operations.d.ts +0 -36
- package/dist/src/db/queries/subgraphs.d.ts +0 -36
- package/dist/src/db/queries/sync-scope.d.ts +0 -36
- package/dist/src/db/queries/webhook-replays.d.ts +0 -36
- package/dist/src/db/queries/webhooks.d.ts +0 -36
- package/dist/src/db/schema.d.ts +1 -37
- package/dist/src/db/schema.js.map +2 -2
- package/dist/src/email/index.js +1 -4
- package/dist/src/email/index.js.map +3 -3
- package/dist/src/env.d.ts +2 -8
- package/dist/src/env.js +1 -5
- package/dist/src/env.js.map +3 -3
- package/dist/src/index.d.ts +2 -158
- package/dist/src/index.js +1 -71
- package/dist/src/index.js.map +6 -6
- package/dist/src/insights/index.d.ts +0 -36
- package/dist/src/insights/index.js +1 -4
- package/dist/src/insights/index.js.map +3 -3
- package/dist/src/leader.js +1 -70
- package/dist/src/leader.js.map +6 -6
- package/dist/src/logger.js +1 -4
- package/dist/src/logger.js.map +3 -3
- package/dist/src/node/local-client.d.ts +0 -36
- package/dist/src/node/tx-summary.js +1 -4
- package/dist/src/node/tx-summary.js.map +3 -3
- package/dist/src/queue/listener.js +1 -70
- package/dist/src/queue/listener.js.map +6 -6
- package/dist/src/runtime/index.js +1 -2
- package/dist/src/runtime/index.js.map +3 -3
- package/migrations/0206_drop_pox4_calls.ts +32 -0
- package/package.json +1 -1
|
@@ -486,41 +486,6 @@ interface ChainReorgsTable {
|
|
|
486
486
|
new_canonical_event_index: number;
|
|
487
487
|
created_at: Generated<Date>;
|
|
488
488
|
}
|
|
489
|
-
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";
|
|
490
|
-
interface Pox4CallsTable {
|
|
491
|
-
cursor: string;
|
|
492
|
-
block_height: number;
|
|
493
|
-
block_time: Date;
|
|
494
|
-
burn_block_height: number;
|
|
495
|
-
tx_id: string;
|
|
496
|
-
tx_index: number;
|
|
497
|
-
function_name: Pox4FunctionName;
|
|
498
|
-
caller: string;
|
|
499
|
-
stacker: string | null;
|
|
500
|
-
delegate_to: string | null;
|
|
501
|
-
amount_ustx: string | null;
|
|
502
|
-
lock_period: number | null;
|
|
503
|
-
pox_addr_version: number | null;
|
|
504
|
-
pox_addr_hashbytes: string | null;
|
|
505
|
-
pox_addr_btc: string | null;
|
|
506
|
-
start_cycle: number | null;
|
|
507
|
-
end_cycle: number | null;
|
|
508
|
-
signer_key: string | null;
|
|
509
|
-
signer_signature: string | null;
|
|
510
|
-
auth_id: string | null;
|
|
511
|
-
max_amount: string | null;
|
|
512
|
-
reward_cycle: number | null;
|
|
513
|
-
aggregated_amount_ustx: string | null;
|
|
514
|
-
aggregated_signer_index: number | null;
|
|
515
|
-
auth_period: number | null;
|
|
516
|
-
auth_topic: string | null;
|
|
517
|
-
auth_allowed: boolean | null;
|
|
518
|
-
result_ok: boolean;
|
|
519
|
-
result_raw: string;
|
|
520
|
-
canonical: Generated<boolean>;
|
|
521
|
-
source_cursor: string;
|
|
522
|
-
created_at: Generated<Date>;
|
|
523
|
-
}
|
|
524
489
|
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";
|
|
525
490
|
interface Pox5EventsTable {
|
|
526
491
|
cursor: string;
|
|
@@ -938,7 +903,6 @@ interface Database {
|
|
|
938
903
|
decoded_events: DecodedEventsTable;
|
|
939
904
|
decoder_checkpoints: DecoderCheckpointsTable;
|
|
940
905
|
chain_reorgs: ChainReorgsTable;
|
|
941
|
-
pox4_calls: Pox4CallsTable;
|
|
942
906
|
pox5_events: Pox5EventsTable;
|
|
943
907
|
pox5_cycles: Pox5CyclesTable;
|
|
944
908
|
pox5_cycle_signers: Pox5CycleSignersTable;
|
|
@@ -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",
|
|
@@ -1160,5 +1091,5 @@ export {
|
|
|
1160
1091
|
readChainReorgsSince
|
|
1161
1092
|
};
|
|
1162
1093
|
|
|
1163
|
-
//# debugId=
|
|
1094
|
+
//# debugId=534E26A677D1E46964756E2164756E21
|
|
1164
1095
|
//# sourceMappingURL=chain-reorgs.js.map
|