@secondlayer/stacks 2.22.0 → 3.0.1
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/shared/stacks-86ngngnk.cjs +271 -0
- package/dist/shared/stacks-86ngngnk.cjs.map +12 -0
- package/dist/shared/stacks-qc25xx02.js +259 -0
- package/dist/shared/stacks-qc25xx02.js.map +12 -0
- package/dist/src/accounts/index.js +1 -2
- package/dist/src/accounts/index.js.map +2 -2
- package/dist/src/actions/index.js +1 -2
- package/dist/src/actions/index.js.map +1 -1
- package/dist/src/bitcoin/index.js +1 -2
- package/dist/src/bitcoin/index.js.map +2 -2
- package/dist/src/bns/index.js +1 -2
- package/dist/src/bns/index.js.map +2 -2
- package/dist/src/chains/index.js +1 -2
- package/dist/src/chains/index.js.map +1 -1
- package/dist/src/clarity/index.js +1 -2
- package/dist/src/clarity/index.js.map +1 -1
- package/dist/src/filters/index.cjs +1 -261
- package/dist/src/filters/index.cjs.map +3 -6
- package/dist/src/filters/index.d.cts +52 -27
- package/dist/src/filters/index.d.ts +52 -27
- package/dist/src/filters/index.js +15 -249
- package/dist/src/filters/index.js.map +3 -6
- package/dist/src/index.cjs +2 -75
- package/dist/src/index.cjs.map +3 -8
- package/dist/src/index.d.cts +401 -164
- package/dist/src/index.d.ts +401 -164
- package/dist/src/index.js +5 -78
- package/dist/src/index.js.map +3 -8
- package/dist/src/postconditions/index.js +1 -2
- package/dist/src/postconditions/index.js.map +1 -1
- package/dist/src/pox/index.cjs +71 -14
- package/dist/src/pox/index.cjs.map +4 -4
- package/dist/src/pox/index.d.cts +437 -1
- package/dist/src/pox/index.d.ts +437 -1
- package/dist/src/pox/index.js +71 -15
- package/dist/src/pox/index.js.map +4 -4
- package/dist/src/pox5/index.cjs +70 -33
- package/dist/src/pox5/index.cjs.map +3 -3
- package/dist/src/pox5/index.d.cts +899 -1
- package/dist/src/pox5/index.d.ts +899 -1
- package/dist/src/pox5/index.js +70 -34
- package/dist/src/pox5/index.js.map +3 -3
- package/dist/src/sbtc/index.js +1 -2
- package/dist/src/sbtc/index.js.map +2 -2
- package/dist/src/stackingdao/index.js +1 -2
- package/dist/src/stackingdao/index.js.map +2 -2
- package/dist/src/subscriptions/index.js +1 -2
- package/dist/src/subscriptions/index.js.map +1 -1
- package/dist/src/transactions/index.js +1 -2
- package/dist/src/transactions/index.js.map +1 -1
- package/dist/src/utils/index.js +1 -2
- package/dist/src/utils/index.js.map +2 -2
- package/dist/src/x402/index.js +1 -2
- package/dist/src/x402/index.js.map +2 -2
- package/package.json +3 -5
- package/dist/shared/stacks-cfazrteq.js +0 -20
- package/dist/shared/stacks-cfazrteq.js.map +0 -9
package/dist/src/pox/index.d.cts
CHANGED
|
@@ -188,6 +188,442 @@ interface DelegationInfo {
|
|
|
188
188
|
untilBurnHt: bigint | null;
|
|
189
189
|
poxAddr: PoxAddress | null;
|
|
190
190
|
}
|
|
191
|
+
declare const POX_ABI: {
|
|
192
|
+
readonly functions: readonly [{
|
|
193
|
+
readonly name: "get-pox-info"
|
|
194
|
+
readonly access: "read-only"
|
|
195
|
+
readonly args: readonly []
|
|
196
|
+
readonly outputs: {
|
|
197
|
+
readonly response: {
|
|
198
|
+
readonly ok: {
|
|
199
|
+
readonly tuple: readonly [{
|
|
200
|
+
readonly name: "reward-cycle-id"
|
|
201
|
+
readonly type: "uint128"
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "min-amount-ustx"
|
|
204
|
+
readonly type: "uint128"
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "prepare-cycle-length"
|
|
207
|
+
readonly type: "uint128"
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "first-burnchain-block-height"
|
|
210
|
+
readonly type: "uint128"
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "reward-cycle-length"
|
|
213
|
+
readonly type: "uint128"
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "total-liquid-supply-ustx"
|
|
216
|
+
readonly type: "uint128"
|
|
217
|
+
}]
|
|
218
|
+
}
|
|
219
|
+
readonly error: "none"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "get-stacker-info"
|
|
224
|
+
readonly access: "read-only"
|
|
225
|
+
readonly args: readonly [{
|
|
226
|
+
readonly name: "stacker"
|
|
227
|
+
readonly type: "principal"
|
|
228
|
+
}]
|
|
229
|
+
readonly outputs: {
|
|
230
|
+
readonly optional: {
|
|
231
|
+
readonly tuple: readonly [{
|
|
232
|
+
readonly name: "pox-addr"
|
|
233
|
+
readonly type: {
|
|
234
|
+
readonly tuple: readonly [{
|
|
235
|
+
readonly name: "version"
|
|
236
|
+
readonly type: {
|
|
237
|
+
readonly buff: {
|
|
238
|
+
readonly length: 1
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "hashbytes"
|
|
243
|
+
readonly type: {
|
|
244
|
+
readonly buff: {
|
|
245
|
+
readonly length: 32
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}]
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "lock-period"
|
|
252
|
+
readonly type: "uint128"
|
|
253
|
+
}, {
|
|
254
|
+
readonly name: "first-reward-cycle"
|
|
255
|
+
readonly type: "uint128"
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "reward-set-indexes"
|
|
258
|
+
readonly type: {
|
|
259
|
+
readonly list: {
|
|
260
|
+
readonly type: "uint128"
|
|
261
|
+
readonly length: 12
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "delegated-to"
|
|
266
|
+
readonly type: {
|
|
267
|
+
readonly optional: "principal"
|
|
268
|
+
}
|
|
269
|
+
}]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "get-delegation-info"
|
|
274
|
+
readonly access: "read-only"
|
|
275
|
+
readonly args: readonly [{
|
|
276
|
+
readonly name: "stacker"
|
|
277
|
+
readonly type: "principal"
|
|
278
|
+
}]
|
|
279
|
+
readonly outputs: {
|
|
280
|
+
readonly optional: {
|
|
281
|
+
readonly tuple: readonly [{
|
|
282
|
+
readonly name: "amount-ustx"
|
|
283
|
+
readonly type: "uint128"
|
|
284
|
+
}, {
|
|
285
|
+
readonly name: "delegated-to"
|
|
286
|
+
readonly type: "principal"
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "until-burn-ht"
|
|
289
|
+
readonly type: {
|
|
290
|
+
readonly optional: "uint128"
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "pox-addr"
|
|
294
|
+
readonly type: {
|
|
295
|
+
readonly optional: {
|
|
296
|
+
readonly tuple: readonly [{
|
|
297
|
+
readonly name: "version"
|
|
298
|
+
readonly type: {
|
|
299
|
+
readonly buff: {
|
|
300
|
+
readonly length: 1
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "hashbytes"
|
|
305
|
+
readonly type: {
|
|
306
|
+
readonly buff: {
|
|
307
|
+
readonly length: 32
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}]
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}]
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "can-stack-stx"
|
|
318
|
+
readonly access: "read-only"
|
|
319
|
+
readonly args: readonly [{
|
|
320
|
+
readonly name: "pox-addr"
|
|
321
|
+
readonly type: {
|
|
322
|
+
readonly tuple: readonly [{
|
|
323
|
+
readonly name: "version"
|
|
324
|
+
readonly type: {
|
|
325
|
+
readonly buff: {
|
|
326
|
+
readonly length: 1
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "hashbytes"
|
|
331
|
+
readonly type: {
|
|
332
|
+
readonly buff: {
|
|
333
|
+
readonly length: 32
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}]
|
|
337
|
+
}
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "amount-ustx"
|
|
340
|
+
readonly type: "uint128"
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "first-reward-cycle"
|
|
343
|
+
readonly type: "uint128"
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "num-cycles"
|
|
346
|
+
readonly type: "uint128"
|
|
347
|
+
}]
|
|
348
|
+
readonly outputs: {
|
|
349
|
+
readonly response: {
|
|
350
|
+
readonly ok: "bool"
|
|
351
|
+
readonly error: "int128"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "stack-stx"
|
|
356
|
+
readonly access: "public"
|
|
357
|
+
readonly args: readonly [{
|
|
358
|
+
readonly name: "amount-ustx"
|
|
359
|
+
readonly type: "uint128"
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "pox-addr"
|
|
362
|
+
readonly type: {
|
|
363
|
+
readonly tuple: readonly [{
|
|
364
|
+
readonly name: "version"
|
|
365
|
+
readonly type: {
|
|
366
|
+
readonly buff: {
|
|
367
|
+
readonly length: 1
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "hashbytes"
|
|
372
|
+
readonly type: {
|
|
373
|
+
readonly buff: {
|
|
374
|
+
readonly length: 32
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}]
|
|
378
|
+
}
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "start-burn-ht"
|
|
381
|
+
readonly type: "uint128"
|
|
382
|
+
}, {
|
|
383
|
+
readonly name: "lock-period"
|
|
384
|
+
readonly type: "uint128"
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "signer-sig"
|
|
387
|
+
readonly type: {
|
|
388
|
+
readonly optional: {
|
|
389
|
+
readonly buff: {
|
|
390
|
+
readonly length: 65
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "signer-key"
|
|
396
|
+
readonly type: {
|
|
397
|
+
readonly buff: {
|
|
398
|
+
readonly length: 33
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "max-amount"
|
|
403
|
+
readonly type: "uint128"
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "auth-id"
|
|
406
|
+
readonly type: "uint128"
|
|
407
|
+
}]
|
|
408
|
+
readonly outputs: {
|
|
409
|
+
readonly response: {
|
|
410
|
+
readonly ok: {
|
|
411
|
+
readonly tuple: readonly [{
|
|
412
|
+
readonly name: "stacker"
|
|
413
|
+
readonly type: "principal"
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "lock-amount"
|
|
416
|
+
readonly type: "uint128"
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "signer-key"
|
|
419
|
+
readonly type: {
|
|
420
|
+
readonly buff: {
|
|
421
|
+
readonly length: 33
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "unlock-burn-height"
|
|
426
|
+
readonly type: "uint128"
|
|
427
|
+
}]
|
|
428
|
+
}
|
|
429
|
+
readonly error: "int128"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}, {
|
|
433
|
+
readonly name: "delegate-stx"
|
|
434
|
+
readonly access: "public"
|
|
435
|
+
readonly args: readonly [{
|
|
436
|
+
readonly name: "amount-ustx"
|
|
437
|
+
readonly type: "uint128"
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "delegate-to"
|
|
440
|
+
readonly type: "principal"
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "until-burn-ht"
|
|
443
|
+
readonly type: {
|
|
444
|
+
readonly optional: "uint128"
|
|
445
|
+
}
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "pox-addr"
|
|
448
|
+
readonly type: {
|
|
449
|
+
readonly optional: {
|
|
450
|
+
readonly tuple: readonly [{
|
|
451
|
+
readonly name: "version"
|
|
452
|
+
readonly type: {
|
|
453
|
+
readonly buff: {
|
|
454
|
+
readonly length: 1
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "hashbytes"
|
|
459
|
+
readonly type: {
|
|
460
|
+
readonly buff: {
|
|
461
|
+
readonly length: 32
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}]
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}]
|
|
468
|
+
readonly outputs: {
|
|
469
|
+
readonly response: {
|
|
470
|
+
readonly ok: "bool"
|
|
471
|
+
readonly error: "int128"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "revoke-delegate-stx"
|
|
476
|
+
readonly access: "public"
|
|
477
|
+
readonly args: readonly []
|
|
478
|
+
readonly outputs: {
|
|
479
|
+
readonly response: {
|
|
480
|
+
readonly ok: {
|
|
481
|
+
readonly optional: {
|
|
482
|
+
readonly tuple: readonly [{
|
|
483
|
+
readonly name: "amount-ustx"
|
|
484
|
+
readonly type: "uint128"
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "delegated-to"
|
|
487
|
+
readonly type: "principal"
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "until-burn-ht"
|
|
490
|
+
readonly type: {
|
|
491
|
+
readonly optional: "uint128"
|
|
492
|
+
}
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "pox-addr"
|
|
495
|
+
readonly type: {
|
|
496
|
+
readonly optional: {
|
|
497
|
+
readonly tuple: readonly [{
|
|
498
|
+
readonly name: "version"
|
|
499
|
+
readonly type: {
|
|
500
|
+
readonly buff: {
|
|
501
|
+
readonly length: 1
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "hashbytes"
|
|
506
|
+
readonly type: {
|
|
507
|
+
readonly buff: {
|
|
508
|
+
readonly length: 32
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}]
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}]
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
readonly error: "int128"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "stack-extend"
|
|
522
|
+
readonly access: "public"
|
|
523
|
+
readonly args: readonly [{
|
|
524
|
+
readonly name: "extend-count"
|
|
525
|
+
readonly type: "uint128"
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "pox-addr"
|
|
528
|
+
readonly type: {
|
|
529
|
+
readonly tuple: readonly [{
|
|
530
|
+
readonly name: "version"
|
|
531
|
+
readonly type: {
|
|
532
|
+
readonly buff: {
|
|
533
|
+
readonly length: 1
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "hashbytes"
|
|
538
|
+
readonly type: {
|
|
539
|
+
readonly buff: {
|
|
540
|
+
readonly length: 32
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}]
|
|
544
|
+
}
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "signer-sig"
|
|
547
|
+
readonly type: {
|
|
548
|
+
readonly optional: {
|
|
549
|
+
readonly buff: {
|
|
550
|
+
readonly length: 65
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}, {
|
|
555
|
+
readonly name: "signer-key"
|
|
556
|
+
readonly type: {
|
|
557
|
+
readonly buff: {
|
|
558
|
+
readonly length: 33
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
readonly name: "max-amount"
|
|
563
|
+
readonly type: "uint128"
|
|
564
|
+
}, {
|
|
565
|
+
readonly name: "auth-id"
|
|
566
|
+
readonly type: "uint128"
|
|
567
|
+
}]
|
|
568
|
+
readonly outputs: {
|
|
569
|
+
readonly response: {
|
|
570
|
+
readonly ok: {
|
|
571
|
+
readonly tuple: readonly [{
|
|
572
|
+
readonly name: "stacker"
|
|
573
|
+
readonly type: "principal"
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "unlock-burn-height"
|
|
576
|
+
readonly type: "uint128"
|
|
577
|
+
}]
|
|
578
|
+
}
|
|
579
|
+
readonly error: "int128"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "stack-increase"
|
|
584
|
+
readonly access: "public"
|
|
585
|
+
readonly args: readonly [{
|
|
586
|
+
readonly name: "increase-by"
|
|
587
|
+
readonly type: "uint128"
|
|
588
|
+
}, {
|
|
589
|
+
readonly name: "signer-sig"
|
|
590
|
+
readonly type: {
|
|
591
|
+
readonly optional: {
|
|
592
|
+
readonly buff: {
|
|
593
|
+
readonly length: 65
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "signer-key"
|
|
599
|
+
readonly type: {
|
|
600
|
+
readonly buff: {
|
|
601
|
+
readonly length: 33
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}, {
|
|
605
|
+
readonly name: "max-amount"
|
|
606
|
+
readonly type: "uint128"
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "auth-id"
|
|
609
|
+
readonly type: "uint128"
|
|
610
|
+
}]
|
|
611
|
+
readonly outputs: {
|
|
612
|
+
readonly response: {
|
|
613
|
+
readonly ok: {
|
|
614
|
+
readonly tuple: readonly [{
|
|
615
|
+
readonly name: "stacker"
|
|
616
|
+
readonly type: "principal"
|
|
617
|
+
}, {
|
|
618
|
+
readonly name: "total-locked"
|
|
619
|
+
readonly type: "uint128"
|
|
620
|
+
}]
|
|
621
|
+
}
|
|
622
|
+
readonly error: "int128"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}]
|
|
626
|
+
};
|
|
191
627
|
declare const POX_CONTRACTS: {
|
|
192
628
|
readonly mainnet: {
|
|
193
629
|
readonly address: "SP000000000000000000002Q6VF78"
|
|
@@ -271,4 +707,4 @@ type PoxActions = {
|
|
|
271
707
|
* });
|
|
272
708
|
*/
|
|
273
709
|
declare function pox(): (client: Client) => PoxActions;
|
|
274
|
-
export { validateLockPeriod, rewardCycleToBurnHeight, pox, parseBtcAddress, burnHeightToRewardCycle, StackerInfo, StackStxParams, StackIncreaseParams, StackExtendParams, PoxInfo, PoxAddress, PoxActions, POX_CONTRACTS, POX_ADDRESS_VERSION, MIN_LOCK_PERIOD, MAX_LOCK_PERIOD, DelegationInfo, DelegateStxParams };
|
|
710
|
+
export { validateLockPeriod, rewardCycleToBurnHeight, pox, parseBtcAddress, burnHeightToRewardCycle, StackerInfo, StackStxParams, StackIncreaseParams, StackExtendParams, PoxInfo, PoxAddress, PoxActions, POX_CONTRACTS, POX_ADDRESS_VERSION, POX_ABI, MIN_LOCK_PERIOD, MAX_LOCK_PERIOD, DelegationInfo, DelegateStxParams };
|