@secondlayer/stacks 6.0.0 → 6.1.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.
Files changed (217) hide show
  1. package/dist/shared/stacks-esm-0pc6tmf0.js +50 -0
  2. package/dist/shared/{stacks-qex691bh.js.map → stacks-esm-0pc6tmf0.js.map} +2 -2
  3. package/dist/shared/{stacks-qt8ehebn.js → stacks-esm-16d82wyc.js} +10 -10
  4. package/dist/shared/{stacks-qt8ehebn.js.map → stacks-esm-16d82wyc.js.map} +2 -2
  5. package/dist/shared/{stacks-qs5fzts5.js → stacks-esm-7a0ehykf.js} +43 -43
  6. package/dist/shared/{stacks-qs5fzts5.js.map → stacks-esm-7a0ehykf.js.map} +2 -2
  7. package/dist/shared/{stacks-4hs8r4q2.js → stacks-esm-7v18h5dk.js} +4 -4
  8. package/dist/shared/{stacks-xjkn3en1.cjs.map → stacks-esm-7v18h5dk.js.map} +2 -2
  9. package/dist/shared/{stacks-71k0vmct.js → stacks-esm-8f5catbf.js} +126 -126
  10. package/dist/shared/{stacks-71k0vmct.js.map → stacks-esm-8f5catbf.js.map} +2 -2
  11. package/dist/shared/{stacks-wxfd6r4b.js → stacks-esm-8jt6k8p3.js} +13 -13
  12. package/dist/shared/{stacks-wxfd6r4b.js.map → stacks-esm-8jt6k8p3.js.map} +2 -2
  13. package/dist/shared/{stacks-x0qqwrev.js → stacks-esm-a20wyky3.js} +92 -92
  14. package/dist/shared/{stacks-agk106zs.cjs.map → stacks-esm-a20wyky3.js.map} +2 -2
  15. package/dist/shared/{stacks-gjz26k6b.js → stacks-esm-b54n1jdx.js} +102 -58
  16. package/dist/shared/stacks-esm-b54n1jdx.js.map +12 -0
  17. package/dist/shared/{stacks-9c1yam8b.js → stacks-esm-cmtj5vky.js} +162 -162
  18. package/dist/shared/{stacks-9c1yam8b.js.map → stacks-esm-cmtj5vky.js.map} +2 -2
  19. package/dist/shared/{stacks-z90xdr1x.js → stacks-esm-e2qhfgke.js} +36 -36
  20. package/dist/shared/{stacks-z90xdr1x.js.map → stacks-esm-e2qhfgke.js.map} +2 -2
  21. package/dist/shared/{stacks-v03zef3g.js → stacks-esm-ea4m4bk7.js} +117 -117
  22. package/dist/shared/{stacks-v03zef3g.js.map → stacks-esm-ea4m4bk7.js.map} +2 -2
  23. package/dist/shared/{stacks-69nq48jp.js → stacks-esm-hkw1kvd4.js} +140 -140
  24. package/dist/shared/{stacks-69nq48jp.js.map → stacks-esm-hkw1kvd4.js.map} +2 -2
  25. package/dist/shared/{stacks-qcae5852.js → stacks-esm-k108pemv.js} +4 -4
  26. package/dist/shared/{stacks-qcae5852.js.map → stacks-esm-k108pemv.js.map} +2 -2
  27. package/dist/shared/stacks-esm-kbz5s6v8.js +84 -0
  28. package/dist/shared/{stacks-4d7c3x27.js.map → stacks-esm-kbz5s6v8.js.map} +2 -2
  29. package/dist/shared/{stacks-kg1npstf.js → stacks-esm-mt1thm7k.js} +9 -9
  30. package/dist/shared/{stacks-kg1npstf.js.map → stacks-esm-mt1thm7k.js.map} +2 -2
  31. package/dist/shared/{stacks-yvb7rvwk.js → stacks-esm-n1mekwnb.js} +9 -9
  32. package/dist/shared/{stacks-8vzxax5e.cjs.map → stacks-esm-n1mekwnb.js.map} +2 -2
  33. package/dist/shared/{stacks-mftyrc60.js → stacks-esm-nt5hf8ht.js} +34 -34
  34. package/dist/shared/{stacks-mftyrc60.js.map → stacks-esm-nt5hf8ht.js.map} +2 -2
  35. package/dist/shared/{stacks-51ybf135.js → stacks-esm-phgy8yqf.js} +210 -210
  36. package/dist/shared/{stacks-51ybf135.js.map → stacks-esm-phgy8yqf.js.map} +2 -2
  37. package/dist/shared/{stacks-mbt36bzt.js → stacks-esm-pxv6ny92.js} +116 -116
  38. package/dist/shared/{stacks-mbt36bzt.js.map → stacks-esm-pxv6ny92.js.map} +2 -2
  39. package/dist/shared/{stacks-8brgfvqx.js → stacks-esm-qfzxhdqz.js} +19 -19
  40. package/dist/shared/{stacks-8brgfvqx.js.map → stacks-esm-qfzxhdqz.js.map} +2 -2
  41. package/dist/shared/{stacks-fd4rx56e.js → stacks-esm-snj9s2q8.js} +43 -43
  42. package/dist/shared/{stacks-fd4rx56e.js.map → stacks-esm-snj9s2q8.js.map} +2 -2
  43. package/dist/shared/{stacks-yajyej2y.js → stacks-esm-ss9ap75h.js} +28 -28
  44. package/dist/shared/{stacks-yajyej2y.js.map → stacks-esm-ss9ap75h.js.map} +2 -2
  45. package/dist/shared/{stacks-1m3m1agc.js → stacks-esm-t88hc019.js} +18 -18
  46. package/dist/shared/{stacks-1m3m1agc.js.map → stacks-esm-t88hc019.js.map} +2 -2
  47. package/dist/shared/stacks-esm-tdrdye4y.js +48 -0
  48. package/dist/shared/{stacks-enpj9krt.cjs.map → stacks-esm-tdrdye4y.js.map} +2 -2
  49. package/dist/src/accounts/index.cjs +565 -9
  50. package/dist/src/accounts/index.cjs.map +10 -4
  51. package/dist/src/accounts/index.d.cts +1 -1
  52. package/dist/src/accounts/index.d.ts +1 -1
  53. package/dist/src/accounts/index.js +26 -26
  54. package/dist/src/accounts/index.js.map +2 -2
  55. package/dist/src/actions/index.cjs +3860 -44
  56. package/dist/src/actions/index.cjs.map +65 -3
  57. package/dist/src/actions/index.d.cts +1 -1
  58. package/dist/src/actions/index.d.ts +1 -1
  59. package/dist/src/actions/index.js +102 -103
  60. package/dist/src/actions/index.js.map +1 -1
  61. package/dist/src/bitcoin/index.cjs +2506 -31
  62. package/dist/src/bitcoin/index.cjs.map +31 -3
  63. package/dist/src/bitcoin/index.d.cts +92 -92
  64. package/dist/src/bitcoin/index.d.ts +92 -92
  65. package/dist/src/bitcoin/index.js +88 -90
  66. package/dist/src/bitcoin/index.js.map +2 -2
  67. package/dist/src/bns/index.cjs +4435 -10
  68. package/dist/src/bns/index.cjs.map +50 -3
  69. package/dist/src/bns/index.d.cts +1 -1
  70. package/dist/src/bns/index.d.ts +1 -1
  71. package/dist/src/bns/index.js +39 -41
  72. package/dist/src/bns/index.js.map +2 -2
  73. package/dist/src/chains/index.cjs +141 -5
  74. package/dist/src/chains/index.cjs.map +5 -3
  75. package/dist/src/chains/index.d.cts +1 -1
  76. package/dist/src/chains/index.d.ts +1 -1
  77. package/dist/src/chains/index.js +12 -12
  78. package/dist/src/chains/index.js.map +1 -1
  79. package/dist/src/clarity/index.cjs +2021 -1
  80. package/dist/src/clarity/index.cjs.map +24 -3
  81. package/dist/src/clarity/index.d.cts +1 -1
  82. package/dist/src/clarity/index.d.ts +1 -1
  83. package/dist/src/clarity/index.js +170 -171
  84. package/dist/src/clarity/index.js.map +1 -1
  85. package/dist/src/connect/index.cjs +19 -19
  86. package/dist/src/connect/index.cjs.map +2 -2
  87. package/dist/src/connect/index.d.cts +1 -1
  88. package/dist/src/connect/index.d.ts +1 -1
  89. package/dist/src/connect/index.js +19 -19
  90. package/dist/src/connect/index.js.map +2 -2
  91. package/dist/src/connect/walletconnect/index.cjs +6 -46
  92. package/dist/src/connect/walletconnect/index.cjs.map +3 -4
  93. package/dist/src/connect/walletconnect/index.d.cts +1 -1
  94. package/dist/src/connect/walletconnect/index.d.ts +1 -1
  95. package/dist/src/connect/walletconnect/index.js +6 -46
  96. package/dist/src/connect/walletconnect/index.js.map +3 -4
  97. package/dist/src/filters/index.cjs +727 -1
  98. package/dist/src/filters/index.cjs.map +11 -3
  99. package/dist/src/filters/index.d.cts +76 -13
  100. package/dist/src/filters/index.d.ts +76 -13
  101. package/dist/src/filters/index.js +30 -26
  102. package/dist/src/filters/index.js.map +1 -1
  103. package/dist/src/index.cjs +4000 -126
  104. package/dist/src/index.cjs.map +69 -4
  105. package/dist/src/index.d.cts +658 -607
  106. package/dist/src/index.d.ts +658 -607
  107. package/dist/src/index.js +219 -219
  108. package/dist/src/index.js.map +2 -2
  109. package/dist/src/postconditions/index.cjs +1728 -1
  110. package/dist/src/postconditions/index.cjs.map +20 -3
  111. package/dist/src/postconditions/index.d.cts +1 -1
  112. package/dist/src/postconditions/index.d.ts +1 -1
  113. package/dist/src/postconditions/index.js +16 -17
  114. package/dist/src/postconditions/index.js.map +1 -1
  115. package/dist/src/pox/index.cjs +3866 -11
  116. package/dist/src/pox/index.cjs.map +48 -3
  117. package/dist/src/pox/index.d.cts +1 -1
  118. package/dist/src/pox/index.d.ts +1 -1
  119. package/dist/src/pox/index.js +40 -41
  120. package/dist/src/pox/index.js.map +2 -2
  121. package/dist/src/pox5/index.cjs +4124 -95
  122. package/dist/src/pox5/index.cjs.map +55 -4
  123. package/dist/src/pox5/index.d.cts +9 -1
  124. package/dist/src/pox5/index.d.ts +9 -1
  125. package/dist/src/pox5/index.js +210 -209
  126. package/dist/src/pox5/index.js.map +3 -3
  127. package/dist/src/sbtc/index.cjs +3719 -16
  128. package/dist/src/sbtc/index.cjs.map +47 -3
  129. package/dist/src/sbtc/index.d.cts +1 -1
  130. package/dist/src/sbtc/index.d.ts +1 -1
  131. package/dist/src/sbtc/index.js +39 -40
  132. package/dist/src/sbtc/index.js.map +2 -2
  133. package/dist/src/simnet/index.cjs +16 -16
  134. package/dist/src/simnet/index.cjs.map +2 -2
  135. package/dist/src/simnet/index.d.cts +1 -1
  136. package/dist/src/simnet/index.d.ts +1 -1
  137. package/dist/src/simnet/index.js +16 -16
  138. package/dist/src/simnet/index.js.map +2 -2
  139. package/dist/src/stackingdao/index.cjs +3747 -3
  140. package/dist/src/stackingdao/index.cjs.map +45 -3
  141. package/dist/src/stackingdao/index.d.cts +1 -1
  142. package/dist/src/stackingdao/index.d.ts +1 -1
  143. package/dist/src/stackingdao/index.js +26 -27
  144. package/dist/src/stackingdao/index.js.map +2 -2
  145. package/dist/src/subscriptions/index.cjs +160 -6
  146. package/dist/src/subscriptions/index.cjs.map +6 -3
  147. package/dist/src/subscriptions/index.d.cts +1 -1
  148. package/dist/src/subscriptions/index.d.ts +1 -1
  149. package/dist/src/subscriptions/index.js +14 -15
  150. package/dist/src/subscriptions/index.js.map +1 -1
  151. package/dist/src/transactions/index.cjs +2189 -49
  152. package/dist/src/transactions/index.cjs.map +23 -3
  153. package/dist/src/transactions/index.d.cts +1 -1
  154. package/dist/src/transactions/index.d.ts +1 -1
  155. package/dist/src/transactions/index.js +104 -105
  156. package/dist/src/transactions/index.js.map +1 -1
  157. package/dist/src/utils/index.cjs +503 -69
  158. package/dist/src/utils/index.cjs.map +9 -3
  159. package/dist/src/utils/index.d.cts +1 -1
  160. package/dist/src/utils/index.d.ts +1 -1
  161. package/dist/src/utils/index.js +131 -131
  162. package/dist/src/utils/index.js.map +2 -2
  163. package/package.json +1 -1
  164. package/dist/shared/stacks-02actsrx.cjs +0 -17
  165. package/dist/shared/stacks-02actsrx.cjs.map +0 -10
  166. package/dist/shared/stacks-03vfm21t.cjs +0 -222
  167. package/dist/shared/stacks-03vfm21t.cjs.map +0 -12
  168. package/dist/shared/stacks-24h5k94q.cjs +0 -74
  169. package/dist/shared/stacks-24h5k94q.cjs.map +0 -11
  170. package/dist/shared/stacks-37kz5t9f.cjs +0 -764
  171. package/dist/shared/stacks-37kz5t9f.cjs.map +0 -23
  172. package/dist/shared/stacks-3mt2q2na.cjs +0 -65
  173. package/dist/shared/stacks-3mt2q2na.cjs.map +0 -9
  174. package/dist/shared/stacks-4d7c3x27.js +0 -84
  175. package/dist/shared/stacks-4hs8r4q2.js.map +0 -10
  176. package/dist/shared/stacks-8vzxax5e.cjs +0 -45
  177. package/dist/shared/stacks-agk106zs.cjs +0 -267
  178. package/dist/shared/stacks-bdgh9n83.cjs +0 -212
  179. package/dist/shared/stacks-bdgh9n83.cjs.map +0 -11
  180. package/dist/shared/stacks-dpxnxhqb.cjs +0 -51
  181. package/dist/shared/stacks-dpxnxhqb.cjs.map +0 -11
  182. package/dist/shared/stacks-ee53k9j2.cjs +0 -651
  183. package/dist/shared/stacks-ee53k9j2.cjs.map +0 -13
  184. package/dist/shared/stacks-enpj9krt.cjs +0 -38
  185. package/dist/shared/stacks-f35mnrmg.cjs +0 -164
  186. package/dist/shared/stacks-f35mnrmg.cjs.map +0 -10
  187. package/dist/shared/stacks-fhzwsn5d.cjs +0 -261
  188. package/dist/shared/stacks-fhzwsn5d.cjs.map +0 -12
  189. package/dist/shared/stacks-gjz26k6b.js.map +0 -12
  190. package/dist/shared/stacks-gza2n1zs.cjs +0 -73
  191. package/dist/shared/stacks-gza2n1zs.cjs.map +0 -11
  192. package/dist/shared/stacks-kem68d80.cjs +0 -156
  193. package/dist/shared/stacks-kem68d80.cjs.map +0 -10
  194. package/dist/shared/stacks-n98w7g57.cjs +0 -234
  195. package/dist/shared/stacks-n98w7g57.cjs.map +0 -10
  196. package/dist/shared/stacks-p337hp6m.cjs +0 -336
  197. package/dist/shared/stacks-p337hp6m.cjs.map +0 -25
  198. package/dist/shared/stacks-q34k4vnc.cjs +0 -286
  199. package/dist/shared/stacks-q34k4vnc.cjs.map +0 -12
  200. package/dist/shared/stacks-qex691bh.js +0 -50
  201. package/dist/shared/stacks-rryme9bv.cjs +0 -569
  202. package/dist/shared/stacks-rryme9bv.cjs.map +0 -13
  203. package/dist/shared/stacks-s5vej5z6.cjs +0 -410
  204. package/dist/shared/stacks-s5vej5z6.cjs.map +0 -15
  205. package/dist/shared/stacks-sdqkapct.cjs +0 -67
  206. package/dist/shared/stacks-sdqkapct.cjs.map +0 -12
  207. package/dist/shared/stacks-v2rfr46a.js +0 -48
  208. package/dist/shared/stacks-v2rfr46a.js.map +0 -10
  209. package/dist/shared/stacks-vea7nde7.cjs +0 -731
  210. package/dist/shared/stacks-vea7nde7.cjs.map +0 -13
  211. package/dist/shared/stacks-wk8yp13j.cjs +0 -33
  212. package/dist/shared/stacks-wk8yp13j.cjs.map +0 -11
  213. package/dist/shared/stacks-x0qqwrev.js.map +0 -12
  214. package/dist/shared/stacks-xjkn3en1.cjs +0 -42
  215. package/dist/shared/stacks-xnrywjf1.cjs +0 -131
  216. package/dist/shared/stacks-xnrywjf1.cjs.map +0 -11
  217. package/dist/shared/stacks-yvb7rvwk.js.map +0 -10
package/dist/src/index.js CHANGED
@@ -1,117 +1,117 @@
1
+ import"../shared/stacks-esm-7a0ehykf.js";
1
2
  import {
2
- on
3
- } from "../shared/stacks-gjz26k6b.js";
3
+ TransactionError2,
4
+ BroadcastError2,
5
+ TransactionAbortedError2,
6
+ TransactionDroppedError2,
7
+ WaitForTransactionTimeoutError2,
8
+ SerializationError2,
9
+ SigningError2
10
+ } from "../shared/stacks-esm-hkw1kvd4.js";
11
+ import"../shared/stacks-esm-phgy8yqf.js";
4
12
  import {
5
- providerToAccount
6
- } from "../shared/stacks-qcae5852.js";
13
+ AddressVersion2,
14
+ ZERO_ADDRESS2,
15
+ TESTNET_ZERO_ADDRESS2,
16
+ MICROSTX_PER_STX2,
17
+ isValidAddress2,
18
+ parseContractId2,
19
+ isAddressEqual2,
20
+ getContractAddress2
21
+ } from "../shared/stacks-esm-kbz5s6v8.js";
7
22
  import {
8
- defineChain,
9
- devnet,
10
- mainnet,
11
- mocknet,
12
- testnet
13
- } from "../shared/stacks-qt8ehebn.js";
23
+ makeMultiSigAddress2,
24
+ finalizeMultiSig2,
25
+ buildTokenTransfer2,
26
+ buildContractCall2,
27
+ buildContractDeploy2
28
+ } from "../shared/stacks-esm-cmtj5vky.js";
29
+ import"../shared/stacks-esm-tdrdye4y.js";
14
30
  import {
15
- SimulationError,
16
- deployContract,
17
- getAccountHistory,
18
- getAccountInfo,
19
- getBlock,
20
- getContractAbi,
21
- getContractSource,
22
- getMempoolStats,
23
- getNftHoldings,
24
- getRawBlock,
25
- signMessage,
26
- signTransactionAction,
27
- simulateCall,
28
- simulateTransaction,
29
- sponsorTransaction,
30
- transferStx
31
- } from "../shared/stacks-mbt36bzt.js";
31
+ getAccountHistory2,
32
+ getAccountInfo2,
33
+ getBlock2,
34
+ getContractAbi2,
35
+ getContractSource2,
36
+ getMempoolStats2,
37
+ getNftHoldings2,
38
+ getRawBlock2,
39
+ SimulationError2,
40
+ simulateCall2,
41
+ simulateTransaction2,
42
+ deployContract2,
43
+ signMessage2,
44
+ signTransactionAction2,
45
+ sponsorTransaction2,
46
+ transferStx2
47
+ } from "../shared/stacks-esm-pxv6ny92.js";
32
48
  import {
33
- getBalance,
34
- getDataVar,
35
- multicall
36
- } from "../shared/stacks-1m3m1agc.js";
49
+ on2
50
+ } from "../shared/stacks-esm-b54n1jdx.js";
37
51
  import {
38
- HttpRequestError,
39
- IndexSourceConfigError,
40
- TimeoutError,
41
- broadcastWithNonceReset,
42
- buildRequestFn,
43
- callContract,
44
- createNonceManager,
45
- createTransport,
46
- estimateFee,
47
- extendedApiSource,
48
- getBlockHeight,
49
- getMapEntry,
50
- getNonce,
51
- getTransaction,
52
- indexNotFound,
53
- indexRequestFn,
54
- indexTxSource,
55
- isNonceConflictError,
56
- jsonRpcSource,
57
- memoryStore,
58
- reconcileNonce,
59
- resolveNonce,
60
- sendTransaction,
61
- setUnsignedFee,
62
- startNonceReconciler,
63
- waitForTransactionReceipt
64
- } from "../shared/stacks-v03zef3g.js";
52
+ mainnet2,
53
+ testnet2,
54
+ devnet2,
55
+ mocknet2,
56
+ defineChain2
57
+ } from "../shared/stacks-esm-16d82wyc.js";
65
58
  import {
66
- MalformedResponseError,
67
- ReadContractError,
68
- readContract
69
- } from "../shared/stacks-qex691bh.js";
59
+ providerToAccount2
60
+ } from "../shared/stacks-esm-k108pemv.js";
70
61
  import {
71
- WebSocketError,
72
- watchAddress,
73
- watchAddressBalance,
74
- watchBlocks,
75
- watchMempool,
76
- watchNftEvent,
77
- watchTransaction
78
- } from "../shared/stacks-wxfd6r4b.js";
79
- import"../shared/stacks-v2rfr46a.js";
62
+ getBalance2,
63
+ getDataVar2,
64
+ multicall2
65
+ } from "../shared/stacks-esm-t88hc019.js";
80
66
  import {
81
- buildContractCall,
82
- buildContractDeploy,
83
- buildTokenTransfer,
84
- finalizeMultiSig,
85
- makeMultiSigAddress
86
- } from "../shared/stacks-9c1yam8b.js";
87
- import"../shared/stacks-51ybf135.js";
67
+ estimateFee2,
68
+ getBlockHeight2,
69
+ HttpRequestError2,
70
+ getMapEntry2,
71
+ getNonce2,
72
+ TimeoutError2,
73
+ createTransport,
74
+ buildRequestFn,
75
+ IndexSourceConfigError2,
76
+ indexRequestFn,
77
+ indexNotFound,
78
+ extendedApiSource2,
79
+ indexTxSource2,
80
+ getTransaction2,
81
+ waitForTransactionReceipt2,
82
+ sendTransaction2,
83
+ jsonRpcSource2,
84
+ memoryStore2,
85
+ createNonceManager2,
86
+ resolveNonce2,
87
+ reconcileNonce2,
88
+ startNonceReconciler2,
89
+ isNonceConflictError2,
90
+ broadcastWithNonceReset2,
91
+ setUnsignedFee,
92
+ callContract2
93
+ } from "../shared/stacks-esm-ea4m4bk7.js";
88
94
  import {
89
- BroadcastError,
90
- SerializationError,
91
- SigningError,
92
- TransactionAbortedError,
93
- TransactionDroppedError,
94
- TransactionError,
95
- WaitForTransactionTimeoutError
96
- } from "../shared/stacks-69nq48jp.js";
95
+ MalformedResponseError2,
96
+ ReadContractError2,
97
+ readContract2
98
+ } from "../shared/stacks-esm-0pc6tmf0.js";
97
99
  import {
98
- BaseError
99
- } from "../shared/stacks-4hs8r4q2.js";
100
+ WebSocketError2,
101
+ watchBlocks2,
102
+ watchMempool2,
103
+ watchTransaction2,
104
+ watchAddress2,
105
+ watchAddressBalance2,
106
+ watchNftEvent2
107
+ } from "../shared/stacks-esm-8jt6k8p3.js";
100
108
  import {
101
- formatStx,
102
- parseStx
103
- } from "../shared/stacks-yvb7rvwk.js";
109
+ BaseError2
110
+ } from "../shared/stacks-esm-7v18h5dk.js";
104
111
  import {
105
- AddressVersion,
106
- MICROSTX_PER_STX,
107
- TESTNET_ZERO_ADDRESS,
108
- ZERO_ADDRESS,
109
- getContractAddress,
110
- isAddressEqual,
111
- isValidAddress,
112
- parseContractId
113
- } from "../shared/stacks-4d7c3x27.js";
114
- import"../shared/stacks-qs5fzts5.js";
112
+ formatStx2,
113
+ parseStx2
114
+ } from "../shared/stacks-esm-n1mekwnb.js";
115
115
 
116
116
  // src/clients/createClient.ts
117
117
  var BASE_KEYS = new Set([
@@ -151,32 +151,32 @@ function createClient(config) {
151
151
  // src/clients/decorators/public.ts
152
152
  function publicActions(client) {
153
153
  return {
154
- getNonce: (params) => getNonce(client, params),
155
- getBalance: (params) => getBalance(client, params),
156
- getAccountInfo: (params) => getAccountInfo(client, params),
157
- getBlock: (params) => getBlock(client, params),
158
- getRawBlock: (params) => getRawBlock(client, params),
159
- getBlockHeight: () => getBlockHeight(client),
160
- readContract: (params) => readContract(client, params),
161
- getContractAbi: (params) => getContractAbi(client, params),
162
- getContractSource: (params) => getContractSource(client, params),
163
- getDataVar: (params) => getDataVar(client, params),
164
- getMapEntry: (params) => getMapEntry(client, params),
165
- estimateFee: (params) => estimateFee(client, params),
166
- multicall: (params) => multicall(client, params),
167
- simulateCall: (params) => simulateCall(client, params),
168
- simulateTransaction: (params) => simulateTransaction(client, params),
169
- getTransaction: (params) => getTransaction(client, params),
170
- getAccountHistory: (params) => getAccountHistory(client, params),
171
- getMempoolStats: () => getMempoolStats(client),
172
- getNftHoldings: (params) => getNftHoldings(client, params),
173
- waitForTransactionReceipt: (params) => waitForTransactionReceipt(client, params),
174
- watchBlocks: (params) => watchBlocks(client, params),
175
- watchMempool: (params) => watchMempool(client, params),
176
- watchTransaction: (params) => watchTransaction(client, params),
177
- watchAddress: (params) => watchAddress(client, params),
178
- watchAddressBalance: (params) => watchAddressBalance(client, params),
179
- watchNftEvent: (params) => watchNftEvent(client, params)
154
+ getNonce: (params) => getNonce2(client, params),
155
+ getBalance: (params) => getBalance2(client, params),
156
+ getAccountInfo: (params) => getAccountInfo2(client, params),
157
+ getBlock: (params) => getBlock2(client, params),
158
+ getRawBlock: (params) => getRawBlock2(client, params),
159
+ getBlockHeight: () => getBlockHeight2(client),
160
+ readContract: (params) => readContract2(client, params),
161
+ getContractAbi: (params) => getContractAbi2(client, params),
162
+ getContractSource: (params) => getContractSource2(client, params),
163
+ getDataVar: (params) => getDataVar2(client, params),
164
+ getMapEntry: (params) => getMapEntry2(client, params),
165
+ estimateFee: (params) => estimateFee2(client, params),
166
+ multicall: (params) => multicall2(client, params),
167
+ simulateCall: (params) => simulateCall2(client, params),
168
+ simulateTransaction: (params) => simulateTransaction2(client, params),
169
+ getTransaction: (params) => getTransaction2(client, params),
170
+ getAccountHistory: (params) => getAccountHistory2(client, params),
171
+ getMempoolStats: () => getMempoolStats2(client),
172
+ getNftHoldings: (params) => getNftHoldings2(client, params),
173
+ waitForTransactionReceipt: (params) => waitForTransactionReceipt2(client, params),
174
+ watchBlocks: (params) => watchBlocks2(client, params),
175
+ watchMempool: (params) => watchMempool2(client, params),
176
+ watchTransaction: (params) => watchTransaction2(client, params),
177
+ watchAddress: (params) => watchAddress2(client, params),
178
+ watchAddressBalance: (params) => watchAddressBalance2(client, params),
179
+ watchNftEvent: (params) => watchNftEvent2(client, params)
180
180
  };
181
181
  }
182
182
 
@@ -187,13 +187,13 @@ function createPublicClient(config) {
187
187
  // src/clients/decorators/wallet.ts
188
188
  function walletActions(client) {
189
189
  return {
190
- sendTransaction: (params) => sendTransaction(client, params),
191
- signTransaction: (params) => signTransactionAction(client, params),
192
- transferStx: (params) => transferStx(client, params),
193
- callContract: (params) => callContract(client, params),
194
- deployContract: (params) => deployContract(client, params),
195
- signMessage: (params) => signMessage(client, params),
196
- sponsorTransaction: (params) => sponsorTransaction(client, params)
190
+ sendTransaction: (params) => sendTransaction2(client, params),
191
+ signTransaction: (params) => signTransactionAction2(client, params),
192
+ transferStx: (params) => transferStx2(client, params),
193
+ callContract: (params) => callContract2(client, params),
194
+ deployContract: (params) => deployContract2(client, params),
195
+ signMessage: (params) => signMessage2(client, params),
196
+ sponsorTransaction: (params) => sponsorTransaction2(client, params)
197
197
  };
198
198
  }
199
199
 
@@ -207,18 +207,18 @@ function multisigActions(client) {
207
207
  if (!msConfig)
208
208
  throw new Error("multisigActions requires a multi-sig client");
209
209
  const { signers, requiredSignatures, hashMode } = msConfig;
210
- async function resolveNonce2(nonce) {
210
+ async function resolveNonce(nonce) {
211
211
  if (nonce !== undefined)
212
212
  return nonce;
213
- const address = makeMultiSigAddress(signers, requiredSignatures, client.chain);
213
+ const address = makeMultiSigAddress2(signers, requiredSignatures, client.chain);
214
214
  if (client.nonceManager)
215
215
  return client.nonceManager.consume({ client, address });
216
- return getNonce(client, { address });
216
+ return getNonce2(client, { address });
217
217
  }
218
218
  return {
219
219
  async transferStx(params) {
220
- const nonce = await resolveNonce2(params.nonce);
221
- const unsigned = buildTokenTransfer({
220
+ const nonce = await resolveNonce(params.nonce);
221
+ const unsigned = buildTokenTransfer2({
222
222
  recipient: params.to,
223
223
  amount: params.amount,
224
224
  memo: params.memo,
@@ -232,7 +232,7 @@ function multisigActions(client) {
232
232
  postConditions: params.postConditions
233
233
  });
234
234
  if (params.fee === undefined) {
235
- const estimates = await estimateFee(client, { transaction: unsigned });
235
+ const estimates = await estimateFee2(client, { transaction: unsigned });
236
236
  const mid = estimates[1] ?? estimates[0];
237
237
  if (mid) {
238
238
  setUnsignedFee(unsigned, BigInt(mid.fee));
@@ -241,9 +241,9 @@ function multisigActions(client) {
241
241
  return unsigned;
242
242
  },
243
243
  async callContract(params) {
244
- const [contractAddress, contractName] = parseContractId(params.contract);
245
- const nonce = await resolveNonce2(params.nonce);
246
- const unsigned = buildContractCall({
244
+ const [contractAddress, contractName] = parseContractId2(params.contract);
245
+ const nonce = await resolveNonce(params.nonce);
246
+ const unsigned = buildContractCall2({
247
247
  contractAddress,
248
248
  contractName,
249
249
  functionName: params.functionName,
@@ -258,7 +258,7 @@ function multisigActions(client) {
258
258
  postConditions: params.postConditions
259
259
  });
260
260
  if (params.fee === undefined) {
261
- const estimates = await estimateFee(client, { transaction: unsigned });
261
+ const estimates = await estimateFee2(client, { transaction: unsigned });
262
262
  const mid = estimates[1] ?? estimates[0];
263
263
  if (mid) {
264
264
  setUnsignedFee(unsigned, BigInt(mid.fee));
@@ -267,8 +267,8 @@ function multisigActions(client) {
267
267
  return unsigned;
268
268
  },
269
269
  async deployContract(params) {
270
- const nonce = await resolveNonce2(params.nonce);
271
- const unsigned = buildContractDeploy({
270
+ const nonce = await resolveNonce(params.nonce);
271
+ const unsigned = buildContractDeploy2({
272
272
  contractName: params.contractName,
273
273
  codeBody: params.codeBody,
274
274
  clarityVersion: params.clarityVersion,
@@ -282,7 +282,7 @@ function multisigActions(client) {
282
282
  postConditions: params.postConditions
283
283
  });
284
284
  if (params.fee === undefined) {
285
- const estimates = await estimateFee(client, { transaction: unsigned });
285
+ const estimates = await estimateFee2(client, { transaction: unsigned });
286
286
  const mid = estimates[1] ?? estimates[0];
287
287
  if (mid) {
288
288
  setUnsignedFee(unsigned, BigInt(mid.fee));
@@ -291,8 +291,8 @@ function multisigActions(client) {
291
291
  return unsigned;
292
292
  },
293
293
  async sendTransaction(params) {
294
- const finalized = finalizeMultiSig(params.transaction, signers);
295
- return sendTransaction(client, {
294
+ const finalized = finalizeMultiSig2(params.transaction, signers);
295
+ return sendTransaction2(client, {
296
296
  transaction: finalized,
297
297
  attachment: params.attachment
298
298
  });
@@ -406,14 +406,14 @@ function resolveFetch(fetchImpl) {
406
406
  return f;
407
407
  }
408
408
  function nextFreeNonce(confirmed, pending) {
409
- const taken = new Set(pending.filter((n2) => n2 >= confirmed).map((n2) => n2.toString()));
409
+ const taken = new Set(pending.filter((n) => n >= confirmed).map((n) => n.toString()));
410
410
  let n = confirmed;
411
411
  while (taken.has(n.toString()))
412
412
  n += 1n;
413
413
  return n;
414
414
  }
415
415
  function mempoolAwareSource(params) {
416
- const getConfirmed = params.getConfirmed ?? (({ client, address }) => getNonce(client, { address }));
416
+ const getConfirmed = params.getConfirmed ?? (({ client, address }) => getNonce2(client, { address }));
417
417
  return {
418
418
  async get({ client, address }) {
419
419
  const confirmed = await getConfirmed({ client, address });
@@ -421,7 +421,7 @@ function mempoolAwareSource(params) {
421
421
  try {
422
422
  pending = await params.getPending({ client, address });
423
423
  } catch (error) {
424
- if (error instanceof IndexSourceConfigError)
424
+ if (error instanceof IndexSourceConfigError2)
425
425
  throw error;
426
426
  return confirmed;
427
427
  }
@@ -574,7 +574,7 @@ class WebSocketChannel {
574
574
  };
575
575
  const onError = (e) => {
576
576
  this.ws?.removeEventListener("open", onOpen);
577
- reject(new WebSocketError("WebSocket connection failed", {
577
+ reject(new WebSocketError2("WebSocket connection failed", {
578
578
  details: String(e)
579
579
  }));
580
580
  };
@@ -590,7 +590,7 @@ class WebSocketChannel {
590
590
  resolve();
591
591
  }, { once: true });
592
592
  this.ws.addEventListener("error", (e) => {
593
- reject(new WebSocketError("WebSocket connection failed", {
593
+ reject(new WebSocketError2("WebSocket connection failed", {
594
594
  details: String(e)
595
595
  }));
596
596
  }, { once: true });
@@ -618,7 +618,7 @@ class WebSocketChannel {
618
618
  return;
619
619
  this.pending.delete(rpc.id);
620
620
  if (rpc.error) {
621
- p.reject(new WebSocketError(rpc.error.message, {
621
+ p.reject(new WebSocketError2(rpc.error.message, {
622
622
  details: `JSON-RPC error ${rpc.error.code}`
623
623
  }));
624
624
  } else {
@@ -642,7 +642,7 @@ class WebSocketChannel {
642
642
  handleDisconnect() {
643
643
  this.ws = null;
644
644
  for (const [, p] of this.pending) {
645
- p.reject(new WebSocketError("WebSocket disconnected"));
645
+ p.reject(new WebSocketError2("WebSocket disconnected"));
646
646
  }
647
647
  this.pending.clear();
648
648
  if (this.reconnect && this.subs.size > 0 && this.reconnectAttempt < this.reconnectMaxAttempts) {
@@ -675,7 +675,7 @@ class WebSocketChannel {
675
675
  sendRpc(method, params) {
676
676
  return new Promise((resolve, reject) => {
677
677
  if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
678
- return reject(new WebSocketError("WebSocket not connected"));
678
+ return reject(new WebSocketError2("WebSocket not connected"));
679
679
  }
680
680
  const id = this.nextId++;
681
681
  const msg = {
@@ -690,7 +690,7 @@ class WebSocketChannel {
690
690
  }
691
691
  async subscribe(params, callback) {
692
692
  if (this.destroyed) {
693
- throw new WebSocketError("WebSocket channel has been destroyed");
693
+ throw new WebSocketError2("WebSocket channel has been destroyed");
694
694
  }
695
695
  await this.connect();
696
696
  const key = subKey(params);
@@ -730,7 +730,7 @@ class WebSocketChannel {
730
730
  if (this.reconnectTimer)
731
731
  clearTimeout(this.reconnectTimer);
732
732
  for (const [, p] of this.pending) {
733
- p.reject(new WebSocketError("WebSocket channel destroyed"));
733
+ p.reject(new WebSocketError2("WebSocket channel destroyed"));
734
734
  }
735
735
  this.pending.clear();
736
736
  this.subs.clear();
@@ -764,67 +764,67 @@ function webSocket(url, config) {
764
764
  };
765
765
  }
766
766
  export {
767
- webSocket,
768
- walletActions,
769
- waitForTransactionReceipt,
770
- testnet,
771
- startNonceReconciler,
772
- resolveNonce,
773
- redisStore,
774
- reconcileNonce,
775
- publicActions,
776
- providerToAccount,
777
- postgresStore,
778
- parseStx,
779
- on,
780
- nextFreeNonce,
781
- multisigActions,
782
- mocknet,
783
- mempoolAwareSource,
784
- memoryStore,
785
- mainnet,
786
- jsonRpcSource,
787
- isValidAddress,
788
- isNonceConflictError,
789
- isAddressEqual,
790
- indexTxSource,
791
- indexSource,
792
- http,
793
- hiroNonceSource,
794
- getTransaction,
795
- getContractAddress,
796
- formatStx,
797
- fallback,
798
- extendedApiSource,
799
- devnet,
800
- defineChain,
801
- custom,
802
- createWalletClient,
803
- createPublicClient,
804
- createNonceManager,
805
- createMultiSigClient,
767
+ AddressVersion2 as AddressVersion,
768
+ BaseError2 as BaseError,
769
+ BroadcastError2 as BroadcastError,
770
+ HttpRequestError2 as HttpRequestError,
771
+ IndexSourceConfigError2 as IndexSourceConfigError,
772
+ MICROSTX_PER_STX2 as MICROSTX_PER_STX,
773
+ MalformedResponseError2 as MalformedResponseError,
774
+ ReadContractError2 as ReadContractError,
775
+ SerializationError2 as SerializationError,
776
+ SigningError2 as SigningError,
777
+ SimulationError2 as SimulationError,
778
+ TESTNET_ZERO_ADDRESS2 as TESTNET_ZERO_ADDRESS,
779
+ TimeoutError2 as TimeoutError,
780
+ TransactionAbortedError2 as TransactionAbortedError,
781
+ TransactionDroppedError2 as TransactionDroppedError,
782
+ TransactionError2 as TransactionError,
783
+ WaitForTransactionTimeoutError2 as WaitForTransactionTimeoutError,
784
+ WebSocketError2 as WebSocketError,
785
+ ZERO_ADDRESS2 as ZERO_ADDRESS,
786
+ broadcastWithNonceReset2 as broadcastWithNonceReset,
806
787
  createClient,
807
- broadcastWithNonceReset,
808
- ZERO_ADDRESS,
809
- WebSocketError,
810
- WaitForTransactionTimeoutError,
811
- TransactionError,
812
- TransactionDroppedError,
813
- TransactionAbortedError,
814
- TimeoutError,
815
- TESTNET_ZERO_ADDRESS,
816
- SimulationError,
817
- SigningError,
818
- SerializationError,
819
- ReadContractError,
820
- MalformedResponseError,
821
- MICROSTX_PER_STX,
822
- IndexSourceConfigError,
823
- HttpRequestError,
824
- BroadcastError,
825
- BaseError,
826
- AddressVersion
788
+ createMultiSigClient,
789
+ createNonceManager2 as createNonceManager,
790
+ createPublicClient,
791
+ createWalletClient,
792
+ custom,
793
+ defineChain2 as defineChain,
794
+ devnet2 as devnet,
795
+ extendedApiSource2 as extendedApiSource,
796
+ fallback,
797
+ formatStx2 as formatStx,
798
+ getContractAddress2 as getContractAddress,
799
+ getTransaction2 as getTransaction,
800
+ hiroNonceSource,
801
+ http,
802
+ indexSource,
803
+ indexTxSource2 as indexTxSource,
804
+ isAddressEqual2 as isAddressEqual,
805
+ isNonceConflictError2 as isNonceConflictError,
806
+ isValidAddress2 as isValidAddress,
807
+ jsonRpcSource2 as jsonRpcSource,
808
+ mainnet2 as mainnet,
809
+ memoryStore2 as memoryStore,
810
+ mempoolAwareSource,
811
+ mocknet2 as mocknet,
812
+ multisigActions,
813
+ nextFreeNonce,
814
+ on2 as on,
815
+ parseStx2 as parseStx,
816
+ postgresStore,
817
+ providerToAccount2 as providerToAccount,
818
+ publicActions,
819
+ reconcileNonce2 as reconcileNonce,
820
+ redisStore,
821
+ resolveNonce2 as resolveNonce,
822
+ startNonceReconciler2 as startNonceReconciler,
823
+ testnet2 as testnet,
824
+ waitForTransactionReceipt2 as waitForTransactionReceipt,
825
+ walletActions,
826
+ webSocket
827
827
  };
828
828
 
829
- //# debugId=D599764E5AE4BABA64756E2164756E21
829
+ //# debugId=BDDC9DB421CA489464756E2164756E21
830
830
  //# sourceMappingURL=index.js.map