@laceio/sdk 0.1.0 → 0.1.1-canary.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 (408) hide show
  1. package/dist/{Ed25519PublicKey-lvu1s54U.cjs → Address-AMKTo-dA.cjs} +17150 -61
  2. package/dist/{Ed25519PublicKey-CjnuAYRR.js → Address-_c_-9hLC.js} +16955 -264
  3. package/dist/{Bip32Account-r3KAhCgU.js → Bip32Account-CaW1zC9Y.js} +4 -5
  4. package/dist/{Bip32Account-Cz3h0ZUa.cjs → Bip32Account-DOaGmKpv.cjs} +4 -5
  5. package/dist/Cardano-B-gyqBBD.js +311 -0
  6. package/dist/Cardano-BQ_af0Y3.cjs +322 -0
  7. package/dist/Ed25519PublicKey-B3QcR0J2.cjs +88 -0
  8. package/dist/Ed25519PublicKey-DIE19xHg.js +83 -0
  9. package/dist/InMemoryKeyAgent-Bc_xZY-v.cjs +652 -0
  10. package/dist/InMemoryKeyAgent-D8T3vtXy.js +631 -0
  11. package/dist/{PaymentAddress-DhbtuYb7.cjs → PaymentAddress-B4n1KZMx.cjs} +1 -2
  12. package/dist/{PaymentAddress-xSmGUQ-8.js → PaymentAddress-Cml3EA1n.js} +1 -2
  13. package/dist/Percent-Cfuw5YyL.cjs +11 -0
  14. package/dist/Percent-DpvyJ_93.js +5 -0
  15. package/dist/SodiumBip32Ed25519-BaD-kjyx.cjs +380 -0
  16. package/dist/SodiumBip32Ed25519-DCikAMsl.js +363 -0
  17. package/dist/{TransactionBuilder-CeJTNzm-.cjs → TransactionBuilder-BakTJvsJ.cjs} +59 -89
  18. package/dist/{TransactionBuilder-DGNDM4kt.js → TransactionBuilder-D2ErwVWv.js} +5 -71
  19. package/dist/_md-6zV2Cme0.cjs +684 -0
  20. package/dist/_md-gbUqlhqd.js +399 -0
  21. package/dist/_web-crypto-random-bytes-BvzwTYPG.js +197 -0
  22. package/dist/acc-module-NL_8mEHH.cjs +27654 -0
  23. package/dist/acc-module-ur8CkBd1.js +27624 -0
  24. package/dist/account-call-B7cF8ly4.cjs +293 -0
  25. package/dist/account-call-BF4rBcNw.js +3 -0
  26. package/dist/account-call-CoCq3V55.js +252 -0
  27. package/dist/account-call-DFcD257E.cjs +4 -0
  28. package/dist/account-guards-BeKbV9D1.cjs +41 -0
  29. package/dist/account-guards-qnFXuXSE.js +36 -0
  30. package/dist/{activity-type.stable-ClO9j_PH.cjs → activity-type-BPXxdHBP.cjs} +2 -1
  31. package/dist/{activity-type.stable-Ml0SOYv9.js → activity-type-C1geyPsH.js} +2 -1
  32. package/dist/address-OxwXIwbF.js +15502 -0
  33. package/dist/address-book-address-validator-BqYM0Uyp.cjs +41 -0
  34. package/dist/{address-book-address-validator-BhqRfmlL.cjs → address-book-address-validator-CGIcqn5W.cjs} +5 -4
  35. package/dist/{address-book-address-validator-VqIOB8PY.js → address-book-address-validator-FkkYim3z.js} +6 -4
  36. package/dist/address-book-address-validator-RSx2Jozy.js +39 -0
  37. package/dist/address-lECYBd9-.cjs +13043 -0
  38. package/dist/{apply-vkey-witnesses-Ctzk7eye.cjs → apply-vkey-witnesses-1jyczTkw.cjs} +1 -1
  39. package/dist/{apply-vkey-witnesses-Dfo7XfhL.js → apply-vkey-witnesses-Byb40-yJ.js} +1 -1
  40. package/dist/artefact-loader-Cqc9eSkL.cjs +182 -0
  41. package/dist/artefact-loader-D0T2f6F7.js +159 -0
  42. package/dist/auto-dismiss-failure-on-success-BWJceNXd.cjs +37 -0
  43. package/dist/auto-dismiss-failure-on-success-Bpod-v4r.js +31 -0
  44. package/dist/bip32-EPpcFrpH.cjs +3851 -0
  45. package/dist/{bip32ed25519-D2In8WzR.cjs → bip32ed25519-CRiG-Kjg.cjs} +5 -4
  46. package/dist/{bip32ed25519-qsLH_eWO.js → bip32ed25519-E-fCUZNv.js} +6 -4
  47. package/dist/bip39-DZomfqeY.js +9 -0
  48. package/dist/bip39-MAck9iod.cjs +26 -0
  49. package/dist/bitcoin-data-provider-D0OT_Uiu.cjs +26 -0
  50. package/dist/bitcoin-data-provider-LN_8oamW.js +21 -0
  51. package/dist/bitcoin.cjs +48 -0
  52. package/dist/bitcoin.d.ts +29805 -1
  53. package/dist/bitcoin.js +22 -0
  54. package/dist/{blake2b-BGHUWMsV.js → blake2b-BL-eR5G2.js} +6 -4
  55. package/dist/{blake2b-DspUqw68.cjs → blake2b-Iy324FwH.cjs} +5 -4
  56. package/dist/{blockfrost-tx-submit-provider-BUEOmdvc.js → blockfrost-tx-submit-provider-BHDLgOIE.js} +9 -162
  57. package/dist/{blockfrost-tx-submit-provider-B5dWbdrZ.cjs → blockfrost-tx-submit-provider-BxC19smv.cjs} +7 -171
  58. package/dist/{blockingWithLatestFrom-BhaE7pnA.js → blockingWithLatestFrom-FUfZFEUG.js} +1 -1
  59. package/dist/{blockingWithLatestFrom-DkuT3G2a.cjs → blockingWithLatestFrom-bmCPgA3c.cjs} +1 -1
  60. package/dist/bn-BFq5a4dk.cjs +2553 -0
  61. package/dist/{SodiumBip32Ed25519-BEfo1Q9m.js → browser-D5jRKv_L.js} +4 -401
  62. package/dist/bytes.vo-CziaOsba.js +24 -0
  63. package/dist/bytes.vo-hecRu3YZ.cjs +35 -0
  64. package/dist/{cardano-network-id-to-network-type-PXvn1ycQ.cjs → cardano-network-id-to-network-type-BwG_d6QP.cjs} +1 -1
  65. package/dist/{cardano-network-id-to-network-type-DHgKhDAK.js → cardano-network-id-to-network-type-CYJheetp.js} +1 -1
  66. package/dist/{cardano-network-id.vo-CbNNKd-k.cjs → cardano-network-id.vo-C5VuBXT3.cjs} +2 -2
  67. package/dist/{cardano-network-id.vo-CTYe-Oix.js → cardano-network-id.vo-CeLJqmb_.js} +2 -2
  68. package/dist/{cardano-tx-id.vo-BMwemq5x.js → cardano-tx-id.vo-DJ70NC0-.js} +1 -1
  69. package/dist/{cardano-tx-id.vo-NY-gCOWJ.cjs → cardano-tx-id.vo-lnyO9XaW.cjs} +1 -1
  70. package/dist/cardano.cjs +31 -24
  71. package/dist/cardano.d.ts +27602 -8121
  72. package/dist/cardano.js +21 -13
  73. package/dist/client-Bw2foG5E.cjs +808 -0
  74. package/dist/const-BB3MccLt.js +153 -0
  75. package/dist/{const-BErUlcZw.cjs → const-BWBAzOmN.cjs} +1 -1
  76. package/dist/const-CSWmOyzn.cjs +42 -0
  77. package/dist/{const-Dy8Ctnpd.cjs → const-D3mCkwrM.cjs} +5 -5
  78. package/dist/const-DW7z3R5k.js +13 -0
  79. package/dist/{const-DeUA7zYl.js → const-DbuUHSzR.js} +5 -5
  80. package/dist/const-DgBzKfz6.cjs +31995 -0
  81. package/dist/{const-DVW6DGkZ.js → const-xGSNCtwQ.js} +1 -1
  82. package/dist/contract-BsIGhsYa.js +171 -0
  83. package/dist/contract-DD6CGnpB.cjs +189 -0
  84. package/dist/create-add-accounts-2mQA0ST2.js +102 -0
  85. package/dist/create-add-accounts-B6mR2NMn.cjs +114 -0
  86. package/dist/{delegation-tx-builder-CF0VunDW.cjs → delegation-tx-builder-Cp30jtj9.cjs} +9 -8
  87. package/dist/{delegation-tx-builder-C8LQxU2R.js → delegation-tx-builder-DUMikSTg.js} +9 -7
  88. package/dist/{deregistration-tx-builder-DcUXA3Ls.cjs → deregistration-tx-builder-B-ZeY-dR.cjs} +10 -9
  89. package/dist/{deregistration-tx-builder-BOBPP8m_.js → deregistration-tx-builder-CRLrK99U.js} +10 -8
  90. package/dist/device-commitment-hex.vo-BIUYUNz1.cjs +31 -0
  91. package/dist/device-commitment-hex.vo-D9FsYLn7.js +26 -0
  92. package/dist/device-key-BToCoS4D.js +2394 -0
  93. package/dist/device-key-D6euvxFi.cjs +2489 -0
  94. package/dist/device-readers-BHJeNR8I.js +3 -0
  95. package/dist/device-readers-Dw7uTNM5.cjs +167 -0
  96. package/dist/device-readers-b4g2j3QL.js +144 -0
  97. package/dist/device-readers-cxcJcWq5.cjs +7 -0
  98. package/dist/dist-B00GN41m.js +141 -0
  99. package/dist/dist-BA1xnF9O.cjs +4413 -0
  100. package/dist/dist-BmHOXLe8.cjs +3814 -0
  101. package/dist/dist-Br0OVXKt.cjs +535 -0
  102. package/dist/dist-C1JK9C1I.cjs +3452 -0
  103. package/dist/dist-DKEViNEI.cjs +1306 -0
  104. package/dist/dist-Dwqx184a.cjs +43175 -0
  105. package/dist/dist-MJof_Ky1.cjs +145 -0
  106. package/dist/dist-p84sVVJ9.cjs +1394 -0
  107. package/dist/{earn-rewards-tx-builder-BRlTueHS.js → earn-rewards-tx-builder-8G_rouIk.js} +9 -7
  108. package/dist/{earn-rewards-tx-builder-RgO0QUY8.cjs → earn-rewards-tx-builder-cOUNV58E.cjs} +9 -8
  109. package/dist/enc-key-circuits-0Dud78IB.js +13 -0
  110. package/dist/enc-key-circuits-yjPHbuo_.cjs +24 -0
  111. package/dist/english-BZ_ebp2-.cjs +2057 -0
  112. package/dist/envelopes-B3QCzo5p.js +2658 -0
  113. package/dist/envelopes-BdE1xlgz.cjs +2777 -0
  114. package/dist/errors-BA3b8aVu.cjs +584 -0
  115. package/dist/errors-pkQdxW-7.js +392 -0
  116. package/dist/experimental.cjs +6820 -0
  117. package/dist/experimental.d.ts +63552 -0
  118. package/dist/experimental.js +6670 -0
  119. package/dist/fees-6C2uEWFK.js +653 -0
  120. package/dist/fees-DtC71fOx.cjs +820 -0
  121. package/dist/gated-call-BrPjKolT.js +3 -0
  122. package/dist/gated-call-CcsuW9L5.js +691 -0
  123. package/dist/gated-call-DdDrxEq5.cjs +732 -0
  124. package/dist/gated-call-Dk7PazhG.cjs +4 -0
  125. package/dist/grant-rules-B7eDuD5G.cjs +5468 -0
  126. package/dist/grant-rules-qLrKUIR3.js +5217 -0
  127. package/dist/grant-status-CDmZpx32.js +296 -0
  128. package/dist/grant-status-CQtwjLsA.cjs +337 -0
  129. package/dist/grants-Bnb-3Hkv.cjs +16 -0
  130. package/dist/grants-CIb6nOV7.cjs +273 -0
  131. package/dist/grants-CYY0AquW.js +202 -0
  132. package/dist/grants-DOsFSotP.js +4 -0
  133. package/dist/{group-cardano-addresses-by-account-C-1GHUu8.cjs → group-cardano-addresses-by-account-BGOtPV-Y.cjs} +4 -40
  134. package/dist/{group-cardano-addresses-by-account-p4dXmCoj.js → group-cardano-addresses-by-account-TqvESg9x.js} +6 -37
  135. package/dist/{guarded-transaction-signer-DZSGHp1K.js → guarded-transaction-signer-BbVDE9Nn.js} +12 -18
  136. package/dist/{guarded-transaction-signer-BLSezbfV.cjs → guarded-transaction-signer-DTLjAkif.cjs} +26 -26
  137. package/dist/hex-BVtOKJki.cjs +263 -0
  138. package/dist/hex-CGYJPK_Z.js +192 -0
  139. package/dist/http-client-B7_kBTYn.js +155 -0
  140. package/dist/http-client-DYQ_7Rdf.cjs +167 -0
  141. package/dist/identity-DxPhxkZs.js +239 -0
  142. package/dist/identity-y41Yle03.cjs +274 -0
  143. package/dist/in-memory-wallet-integration-5BKiAvPT.js +20861 -0
  144. package/dist/{in-memory-wallet-integration-CUTa68ET.js → in-memory-wallet-integration-BCOqDgbt.js} +10 -107
  145. package/dist/in-memory-wallet-integration-Bi8I9Dso.js +128 -0
  146. package/dist/in-memory-wallet-integration-Bsl2ONua.cjs +239 -0
  147. package/dist/in-memory-wallet-integration-DZ0CAyvY.cjs +20865 -0
  148. package/dist/{in-memory-wallet-integration-Dw_S7amX.cjs → in-memory-wallet-integration-DsFm8gLk.cjs} +21 -112
  149. package/dist/{in-memory-wallet-integration-Z4Bp_DTv.cjs → in-memory-wallet-integration-aW_SF-go.cjs} +8 -5
  150. package/dist/{in-memory-wallet-integration-B6cbAlvD.js → in-memory-wallet-integration-mIEc8EfR.js} +9 -5
  151. package/dist/index.cjs +95 -58
  152. package/dist/index.d.ts +45152 -13448
  153. package/dist/index.js +55 -28
  154. package/dist/{init-CVi8J0zk.cjs → init-5SfWgCYD.cjs} +3 -3
  155. package/dist/{init-Ci7aqWCf2.cjs → init-8NVWbo302.cjs} +2 -2
  156. package/dist/init-B-C7n6u6.js +5 -0
  157. package/dist/{init-BFMWRf-L.js → init-B-ppfGO-.js} +1 -1
  158. package/dist/{init-IiR093Jw.cjs → init-B2OUhY5T.cjs} +2 -2
  159. package/dist/{init-DXnus199.cjs → init-B6Eg_o6G.cjs} +5 -5
  160. package/dist/{init-4hDl5bpr.js → init-BAWMHL1k.js} +2 -2
  161. package/dist/init-BC2CZZOu2.cjs +2002 -0
  162. package/dist/{init-a228hXnS.cjs → init-BF-a2p6E.cjs} +65 -73
  163. package/dist/{init-fFirX8OY.cjs → init-BFxlQAD8.cjs} +1 -1
  164. package/dist/init-BJE1ry0O.js +17 -0
  165. package/dist/{init-BVnI4z2J.js → init-BPKBVOHU.js} +2 -2
  166. package/dist/{init-bdqZBd-o.js → init-BSP_xcpB.js} +2 -2
  167. package/dist/{init-CFNOn3lo.js → init-BSd7mznK.js} +3 -3
  168. package/dist/{init-MjR4swi6.js → init-BUJTT0MN.js} +36 -43
  169. package/dist/init-BUpFzYsD.cjs +143 -0
  170. package/dist/{init-BvpYHyLH.cjs → init-BZ-WyAIL.cjs} +3 -3
  171. package/dist/init-BZdfdLX7.js +422 -0
  172. package/dist/{init-CJeOys1w.cjs → init-B_HWNXMD.cjs} +2 -2
  173. package/dist/init-BbIMt6xU.cjs +6 -0
  174. package/dist/{init-BYdN1aqE.cjs → init-BewG6swt.cjs} +2 -2
  175. package/dist/{init-BX0AZAVH2.js → init-Bilqsbng.js} +2 -2
  176. package/dist/{init-Tpn9VkFu.cjs → init-BpwlQ6wF.cjs} +1 -1
  177. package/dist/{init-D5-P0HXK.js → init-BtQOzUjX.js} +1 -1
  178. package/dist/{init-BvGz3qUd2.js → init-CCTscPaY2.js} +2 -2
  179. package/dist/{init-D4hPipCD.cjs → init-CH0yyBof.cjs} +1 -1
  180. package/dist/init-CaIkrXal.cjs +121 -0
  181. package/dist/init-CkZy4IMf.cjs +107 -0
  182. package/dist/{init-Drr2f_Pr.js → init-CmfcY7SV.js} +1 -1
  183. package/dist/{init-Kf3_OLv6.js → init-CnJAlks_.js} +1 -1
  184. package/dist/{init-Cdjt_z-b.cjs → init-CqqmtAIK.cjs} +4 -4
  185. package/dist/{init-Bb0avZeZ.js → init-Cu2znmIc.js} +5 -5
  186. package/dist/init-Cz5LAizN.js +2001 -0
  187. package/dist/init-D4WM3-Mn.cjs +18 -0
  188. package/dist/init-DMi2FGpf.cjs +424 -0
  189. package/dist/{init-lcaUSOOG.js → init-DPTJohPd.js} +1 -1
  190. package/dist/{init-BTYLMF9F2.cjs → init-DexLSprL2.cjs} +258 -61
  191. package/dist/init-DfKPgD21.js +106 -0
  192. package/dist/init-DgzRsI-C.js +141 -0
  193. package/dist/init-Dj4Cn7-P.js +4789 -0
  194. package/dist/init-DktAnYI0.cjs +2354 -0
  195. package/dist/{init-DFwhgert.cjs → init-DmyuM9Lo.cjs} +1 -1
  196. package/dist/{init-CX_zLXc6.js → init-IBnizp1U.js} +5 -5
  197. package/dist/init-MDKB6tGI2.cjs +4790 -0
  198. package/dist/{init-DbZ5byj42.js → init-TbB38KNt2.js} +258 -60
  199. package/dist/init-X6m_cqDy.js +2353 -0
  200. package/dist/{init-DvVgKCaP2.cjs → init-bzvl1JhF.cjs} +2 -2
  201. package/dist/{init-BgrY29gW.js → init-dsYkC_0B.js} +4 -4
  202. package/dist/{init-B5BsI3DR.cjs → init-kvn5FlPS.cjs} +7 -7
  203. package/dist/init-vfy9DW_E.js +119 -0
  204. package/dist/{init-BE_6Jyc4.js → init-w7xl6LsP.js} +3 -3
  205. package/dist/{init-DEsWVyn5.cjs → init-wgiBUmyW.cjs} +1 -1
  206. package/dist/{is-retriable-error-DWv_ob-f.js → is-retriable-error-CmFR20pe.js} +1 -1
  207. package/dist/{is-retriable-error-Dtb4JGjd.cjs → is-retriable-error-D2yo0_lS.cjs} +1 -1
  208. package/dist/jubjub-authoriser-A2c8vmkN.js +84 -0
  209. package/dist/jubjub-authoriser-D3ZDgzcF.cjs +85 -0
  210. package/dist/key-source-CcLTx8HK.js +2761 -0
  211. package/dist/key-source-D2tTAag-.cjs +806 -0
  212. package/dist/{key-value-store-DTX1quRS.js → key-value-store-DZcNDB3n.js} +1 -1
  213. package/dist/{key-value-store-B-XRIwaM.cjs → key-value-store-Htj4RgMe.cjs} +1 -1
  214. package/dist/keyDerivation-DcKRUCVh.cjs +274 -0
  215. package/dist/keyDerivation-QGesIMbS.js +4077 -0
  216. package/dist/{lace-context-FpU3iG3f.cjs → lace-context-BN0b_ury.cjs} +4 -4
  217. package/dist/{lace-context-BQvvxVLm.js → lace-context-DMRJ87Vg.js} +4 -4
  218. package/dist/lib-BC-62Byh.cjs +2359 -0
  219. package/dist/lib-JYqcAX0c.js +2354 -0
  220. package/dist/midnight-account-id.vo--Vcx34Xk.cjs +10 -0
  221. package/dist/midnight-account-id.vo-BuB8fiVO.js +5 -0
  222. package/dist/midnight-engine-B7D2hbHo.js +5 -0
  223. package/dist/midnight-engine-D5ikN_5F.cjs +6 -0
  224. package/dist/midnight-wallet-BOdFD6SX.cjs +24 -0
  225. package/dist/midnight-wallet-CAqZrNVe.js +18 -0
  226. package/dist/midnight.cjs +1412 -0
  227. package/dist/midnight.d.ts +28609 -0
  228. package/dist/midnight.js +1355 -0
  229. package/dist/modules-cardano-BiL9hoM3.js +996 -0
  230. package/dist/modules-cardano-UeXks3sd.cjs +1109 -0
  231. package/dist/node-relay-BOuvdZvC.cjs +49 -0
  232. package/dist/node-relay-CLtc5n1v.js +48 -0
  233. package/dist/outputs-5qdW8s-f.js +196 -0
  234. package/dist/outputs-BEM1GPMf.cjs +339 -0
  235. package/dist/{SodiumBip32Ed25519-BQUcrQWX.cjs → pbkdf2-B1veireP.cjs} +6 -411
  236. package/dist/pending-operation-CfTUNQVD.cjs +26 -0
  237. package/dist/pending-operation-Ljijb1Uh.js +21 -0
  238. package/dist/providers-1on_fwJO.cjs +364 -0
  239. package/dist/providers-C1MsxfMA.js +341 -0
  240. package/dist/redacted-4SJPqt-G.js +81 -0
  241. package/dist/redacted-DwxIDdIF.cjs +86 -0
  242. package/dist/{reselect-DPML1uFN.cjs → reselect-kP4DaAII.cjs} +1 -1
  243. package/dist/{retry-config-oNtfdyrG.cjs → retry-config-BGv5q5QM.cjs} +1 -1
  244. package/dist/{retry-config-VdbuqBsI.js → retry-config-Bu5Yn5ua.js} +1 -1
  245. package/dist/safe-buffer-CqGpSFCQ.js +43 -0
  246. package/dist/safe-buffer-DbXbwhUQ.cjs +48 -0
  247. package/dist/sdk-1SRu8Ype.cjs +1445 -0
  248. package/dist/sdk-BneJm7ey.js +1249 -0
  249. package/dist/sdk-init-9TG1ZvHF.cjs +3795 -0
  250. package/dist/sdk-init-Ce3mD-8F.js +1047 -0
  251. package/dist/secret-box-CSmRp6Tt.js +3777 -0
  252. package/dist/secret-box-ZfbYwBgS.cjs +6970 -0
  253. package/dist/send-proof-progress-DtAcrMP6.cjs +33 -0
  254. package/dist/send-proof-progress-Dx2cUz1B.js +22 -0
  255. package/dist/sha2-DaRJZOjk.cjs +390 -0
  256. package/dist/sha2-c4sB6peD.js +378 -0
  257. package/dist/side-effects-C3BhLrdP.js +768 -0
  258. package/dist/side-effects-DG0R-KFc.cjs +804 -0
  259. package/dist/sign-bitcoin-transaction-with-seed-C7vq9om8.js +147 -0
  260. package/dist/sign-bitcoin-transaction-with-seed-Ds1dwzan.cjs +158 -0
  261. package/dist/signer--2I6poMD.js +2 -0
  262. package/dist/signer-CX21Ups_.cjs +121 -0
  263. package/dist/signer-Cnn9q9oY.js +92 -0
  264. package/dist/signer-DbSxjk0F.cjs +7 -0
  265. package/dist/signer-factory-B5oFuUZ-.cjs +130 -0
  266. package/dist/signer-factory-BAt8FPNc.cjs +281 -0
  267. package/dist/signer-factory-BGE4nL4k.js +129 -0
  268. package/dist/signer-factory-C4pgsiJi.js +281 -0
  269. package/dist/{signer-factory-DySc1wRX.cjs → signer-factory-D95jQIPV.cjs} +9 -6
  270. package/dist/{signer-factory-D4HrwFPl.js → signer-factory-PrpsGX-8.js} +10 -6
  271. package/dist/{slice-BZTQgYSs.js → slice-B-xJcuT1.js} +4 -4
  272. package/dist/slice-B4QOYaOG.cjs +105 -0
  273. package/dist/{slice-CtIMw2YT.cjs → slice-B9QKuhi0.cjs} +3 -3
  274. package/dist/slice-BKnGkAkd.cjs +9031 -0
  275. package/dist/{slice-Bhwmqn1p.cjs → slice-Bf4enJKZ.cjs} +8 -8
  276. package/dist/{slice-DaNVz7_l.js → slice-ByNWnxKS.js} +8 -8
  277. package/dist/{slice-C2UDQrdt.js → slice-C1zOeseG.js} +449 -355
  278. package/dist/{slice-DFLyKRm5.cjs → slice-C4toRM6A.cjs} +2 -2
  279. package/dist/{slice-Cx4dULDA.cjs → slice-C8YVv4Qn.cjs} +1 -1
  280. package/dist/{slice-jnpOgiSZ.cjs → slice-CaMfviYu.cjs} +3 -3
  281. package/dist/{slice-DFvrwUur.js → slice-CgeRsYRg.js} +6 -6
  282. package/dist/slice-Cwt8jShq.js +9013 -0
  283. package/dist/{slice-zNEspZND.js → slice-D0VzpMbY.js} +2 -2
  284. package/dist/slice-D14F78Ca.js +87 -0
  285. package/dist/{slice-F6A1YKOF.cjs → slice-DLflttAu.cjs} +479 -366
  286. package/dist/{slice-C96EdeY1.js → slice-DcO-iNz2.js} +1 -1
  287. package/dist/{slice-C19quNWM.cjs → slice-DimtxfAT.cjs} +2 -2
  288. package/dist/{slice-KiNoGwD9.js → slice-DlTEqIoI.js} +1 -1
  289. package/dist/{slice-ws8PccRX.js → slice-Dn0WojD7.js} +3 -3
  290. package/dist/{slice-BLSxLmie.cjs → slice-Dongunf7.cjs} +4 -4
  291. package/dist/{slice-B6vPum19.js → slice-DpufJAjJ.js} +2 -2
  292. package/dist/{slice-exhhmucR.cjs → slice-DtitVc9L.cjs} +7 -7
  293. package/dist/{slice-Bjj2t2ut.cjs → slice-WMMMc1Xv.cjs} +2 -2
  294. package/dist/slice-a8VuIqzS.cjs +378 -0
  295. package/dist/slice-bRASyM-m.js +354 -0
  296. package/dist/{slice-CBFrgHSH.js → slice-hNyKbDry.js} +3 -3
  297. package/dist/{InMemoryKeyAgent-pyB2gA-N.cjs → src-BayYMIjw.cjs} +20 -8228
  298. package/dist/{InMemoryKeyAgent-D-3HejxN.js → src-CgINPlSx.js} +29 -4811
  299. package/dist/store-AUlTfcI_.js +37 -0
  300. package/dist/store-C7AneHEY.cjs +66 -0
  301. package/dist/submit-BuBCVi-l.cjs +87 -0
  302. package/dist/submit-D37lxFrK.js +70 -0
  303. package/dist/submit-bitcoin-tx-DFLnhidO.js +983 -0
  304. package/dist/submit-bitcoin-tx-sih2hSfb.cjs +1049 -0
  305. package/dist/{subtractValueQuantities-DfZg6oiG.js → subtractValueQuantities-BuDJVxq6.js} +3 -22
  306. package/dist/{subtractValueQuantities-C8qDTtgH.cjs → subtractValueQuantities-CqR606HV.cjs} +2 -32
  307. package/dist/{sync-operation-utils-BrQyWFS_.cjs → sync-operation-utils--Z_IQfyW.cjs} +0 -66
  308. package/dist/{sync-operation-utils-CAaCGvEN.js → sync-operation-utils-BimBpvI3.js} +1 -37
  309. package/dist/token-color.vo-CItgoOjw.js +26 -0
  310. package/dist/token-color.vo-Ca4hUXfh.cjs +37 -0
  311. package/dist/token-id-mapper-BVau2RXa.js +16 -0
  312. package/dist/token-id-mapper-CSeLzM4o.cjs +18 -0
  313. package/dist/{token-id-mapper-pDaTxpw2.js → token-id-mapper-ClBeIdJR.js} +2 -2
  314. package/dist/{token-id-mapper-DYcd8hhQ.cjs → token-id-mapper-D0wFdbOy.cjs} +2 -2
  315. package/dist/types-BhzypKMS.cjs +15 -0
  316. package/dist/types-DTE1ctDB.js +10 -0
  317. package/dist/types-DXSxXGz0.js +12 -0
  318. package/dist/types-Dls6Z5gV.cjs +23 -0
  319. package/dist/{util-P4PX2muj.cjs → util-D1YlKzrc.cjs} +2 -2
  320. package/dist/{util-CQSJU0wT.js → util-DHxtzUzY.js} +2 -2
  321. package/dist/{utils-Bv4OHT4S.cjs → utils-DYf4iZKX.cjs} +7 -1
  322. package/dist/{utils-DrtzChYN.js → utils-DcnoETEP.js} +2 -2
  323. package/dist/utils-Du0YXRcU.cjs +112 -0
  324. package/dist/utils-fF_rnZe3.js +65 -0
  325. package/dist/v8Signatures-ClGpA8mS.cjs +71 -0
  326. package/dist/{vote-delegation-tx-builder-69gOEkCB.cjs → vote-delegation-tx-builder-BjZxCOd3.cjs} +9 -8
  327. package/dist/{vote-delegation-tx-builder-BRJ_pf-c.js → vote-delegation-tx-builder-DRJwPXkD.js} +9 -7
  328. package/dist/watch-FGE4B_Ge.js +13056 -0
  329. package/dist/watch-imlsRZDp.cjs +52207 -0
  330. package/package.json +95 -3
  331. package/dist/Address-4KjeDt_x.cjs +0 -17269
  332. package/dist/Address-_VPkf7Xh.js +0 -17101
  333. package/dist/account-guards.stable-BKyYPj4z.cjs +0 -10
  334. package/dist/account-guards.stable-BdmQ43vC.js +0 -5
  335. package/dist/init-BR9ZIbED.cjs +0 -378
  336. package/dist/init-B_k1RUN_.cjs +0 -21
  337. package/dist/init-Bs3b5ZQH.js +0 -378
  338. package/dist/init-ChfcrHgG2.cjs +0 -4354
  339. package/dist/init-D1uUMMpG.js +0 -19
  340. package/dist/init-DV1OSZiK.js +0 -4352
  341. package/dist/modules-cardano-BINzpXpk.js +0 -5454
  342. package/dist/modules-cardano-Dt8OwoQb.cjs +0 -5640
  343. package/dist/slice-Caf98m0d2.js +0 -107
  344. package/dist/slice-PM6llajQ2.cjs +0 -125
  345. /package/dist/{BigIntMath-CoJWXt1h.cjs → BigIntMath-CBciEQn2.cjs} +0 -0
  346. /package/dist/{BigIntMath-BWUJOsOW.js → BigIntMath-X3EniYDo.js} +0 -0
  347. /package/dist/{ChainId-sdLmlIRk.cjs → ChainId-CNPSU9nn.cjs} +0 -0
  348. /package/dist/{ChainId-CKbm87yQ.js → ChainId-CeoG8Sov.js} +0 -0
  349. /package/dist/{_polyfill-node.process-4fnlkbBi.cjs → _polyfill-node.process-5UxyjoHG.cjs} +0 -0
  350. /package/dist/{account-id.vo-Xpgnu-av.cjs → account-id.vo-DYZBZQsz.cjs} +0 -0
  351. /package/dist/{account-id.vo-DP0BtOoF.js → account-id.vo-KDTWJ-W5.js} +0 -0
  352. /package/dist/{actions-BNagEO6m.cjs → actions-BnHFVSr_.cjs} +0 -0
  353. /package/dist/{actions-BWTyAr7B.js → actions-Cwj0ApZf.js} +0 -0
  354. /package/dist/{asyncoption-po7-RiA5.cjs → asyncoption-CYcZNBRM.cjs} +0 -0
  355. /package/dist/{asyncoption-CzIVH5Y1.js → asyncoption-DZQGfznq.js} +0 -0
  356. /package/dist/{bignum.vo-DhhZ9HP1.js → bignum.vo-Co6tMH2q.js} +0 -0
  357. /package/dist/{bignum.vo-CpkrIXjH.cjs → bignum.vo-Du-bpvar.cjs} +0 -0
  358. /package/dist/{blockchain-network-id.vo-CbgrAY_K.js → blockchain-network-id.vo-C6Jowh8t.js} +0 -0
  359. /package/dist/{blockchain-network-id.vo-5iC6Kffo.cjs → blockchain-network-id.vo-DEQ14dYj.cjs} +0 -0
  360. /package/dist/{composite-signer-factory-DABpCe1_.js → composite-signer-factory-D9RWY-1V.js} +0 -0
  361. /package/dist/{composite-signer-factory-BizuNPP7.cjs → composite-signer-factory-v4Pxn8bA.cjs} +0 -0
  362. /package/dist/{error-ggOihIfv.cjs → error-B6wj9nPv.cjs} +0 -0
  363. /package/dist/{error-DHKO2iS4.js → error-CvEYL98P.js} +0 -0
  364. /package/dist/{esm-browser-DnXNvpcn.cjs → esm-browser-CZbMeVod.cjs} +0 -0
  365. /package/dist/{esm-browser-BBVQuyQv.js → esm-browser-DpAD_RKv.js} +0 -0
  366. /package/dist/{feature-flag-key.vo-DoGK5Bfh.js → feature-flag-key.vo-9reURsOQ.js} +0 -0
  367. /package/dist/{feature-flag-key.vo-CP1Z9s8e.cjs → feature-flag-key.vo-KTIdnzYX.cjs} +0 -0
  368. /package/dist/{first-state-of-status-Bx4-QQ5m.cjs → first-state-of-status-9ICeDNSa.cjs} +0 -0
  369. /package/dist/{first-state-of-status-D7XzEuSa.js → first-state-of-status-BscbKj_t.js} +0 -0
  370. /package/dist/{init-4319psUJ.cjs → init-BT67pd9x.cjs} +0 -0
  371. /package/dist/{init-AFUM1TSg.js → init-CHk1fvJ2.js} +0 -0
  372. /package/dist/{init-ZX90nEJe2.js → init-DIyNx6DZ.js} +0 -0
  373. /package/dist/{init-CTQ2g6Xt.js → init-DtxxFaCx.js} +0 -0
  374. /package/dist/{init-Dt1Xifg_2.cjs → init-J8QobR93.cjs} +0 -0
  375. /package/dist/{init-BNewLCqw.cjs → init-xzZPlQwB.cjs} +0 -0
  376. /package/dist/{is-redux-persist-state-DxJSsvxB.cjs → is-redux-persist-state-C5luvPEH.cjs} +0 -0
  377. /package/dist/{is-redux-persist-state-Bl2n4VMr.js → is-redux-persist-state-CjcqyCoh.js} +0 -0
  378. /package/dist/{isNotNil-CZxBMfL5.js → isNotNil-Be7gCY0m.js} +0 -0
  379. /package/dist/{isNotNil-C_SO1tcC.cjs → isNotNil-CrYIUFry.cjs} +0 -0
  380. /package/dist/{logging-BvMDKgl0.js → logging-BAMMfn5j.js} +0 -0
  381. /package/dist/{logging-Bh9ikph3.cjs → logging-CbxgIX9V.cjs} +0 -0
  382. /package/dist/{metadatum-B-sxBnSY.cjs → metadatum-BGvFqGPt.cjs} +0 -0
  383. /package/dist/{metadatum-Ego4jVas.js → metadatum-BVocMYy_.js} +0 -0
  384. /package/dist/{repo-slice-BzZQUTj8.cjs → repo-slice-BB_W-6OL.cjs} +0 -0
  385. /package/dist/{repo-slice-vCcQJotS.js → repo-slice-BQlssw9M.js} +0 -0
  386. /package/dist/{reselect-BPkMzw3k.js → reselect-JIgawvPe.js} +0 -0
  387. /package/dist/{serializable-BxFUShKY.js → serializable-F7OtYl8d.js} +0 -0
  388. /package/dist/{serializable-DWgkHhv_.cjs → serializable-n3UoxbZc.cjs} +0 -0
  389. /package/dist/{slice-DY-DNtSi.js → slice-5dGBAz6w.js} +0 -0
  390. /package/dist/{slice-BEFoeqgr.cjs → slice-BzJgg9FS.cjs} +0 -0
  391. /package/dist/{src-CPmX4KUh.cjs → src-CeBNkonz.cjs} +0 -0
  392. /package/dist/{src-XOZXPKxe.js → src-Cv1ifqbe.js} +0 -0
  393. /package/dist/{time-CQPt4FdU.js → time-ByoKevdZ.js} +0 -0
  394. /package/dist/{time-Blvoyh9G.cjs → time-qD7edGU0.cjs} +0 -0
  395. /package/dist/{time.vo-Xln4yGBU.js → time.vo-C17-tYq3.js} +0 -0
  396. /package/dist/{time.vo-rwWwJzmP.cjs → time.vo-TmYE-_Y2.cjs} +0 -0
  397. /package/dist/{toEmpty-CzmoZVLN.cjs → toEmpty-Db6V94Mf.cjs} +0 -0
  398. /package/dist/{toEmpty-DzLd-ZCi.js → toEmpty-Djj-QbpI.js} +0 -0
  399. /package/dist/{token-id.vo-l8fuSpem.cjs → token-id.vo-CZ622zcZ.cjs} +0 -0
  400. /package/dist/{token-id.vo-DMKSaMlc.js → token-id.vo-IDI9C_Qm.js} +0 -0
  401. /package/dist/{types-B61DQoFW.js → types-By-XeXWg.js} +0 -0
  402. /package/dist/{types-CUC-Kcqh.cjs → types-Cn6WlQV6.cjs} +0 -0
  403. /package/dist/{util-BV3iGOrz.cjs → util-Cp1h58uD.cjs} +0 -0
  404. /package/dist/{util-BsQKLorV.js → util-DHppXj7U.js} +0 -0
  405. /package/dist/{util-selector-CKIyoAOz.js → util-selector-BWmHpo92.js} +0 -0
  406. /package/dist/{util-selector-C9H5RsNw.cjs → util-selector-glXkO-jR.cjs} +0 -0
  407. /package/dist/{while-active-CNXeLxre.js → while-active-CDBnUlQA.js} +0 -0
  408. /package/dist/{while-active-BsDWSNrO.cjs → while-active-I2TlHtm7.cjs} +0 -0
@@ -1,30 +1,31 @@
1
1
  const require_chunk = require("./chunk-9hOWP6kD.cjs");
2
- const require_errors = require("./errors-lg3enbYs.cjs");
3
- const require__polyfill_buffer_patch = require("./_polyfill-buffer-patch-BycQkEkK.cjs");
4
- const require_Address = require("./Address-4KjeDt_x.cjs");
5
- const require_serializable = require("./serializable-DWgkHhv_.cjs");
6
- const require_subtractValueQuantities = require("./subtractValueQuantities-C8qDTtgH.cjs");
7
- const require_metadatum = require("./metadatum-B-sxBnSY.cjs");
8
- const require_ChainId = require("./ChainId-sdLmlIRk.cjs");
9
- const require_PaymentAddress = require("./PaymentAddress-DhbtuYb7.cjs");
10
- const require_util = require("./util-P4PX2muj.cjs");
11
- const require_time_vo = require("./time.vo-rwWwJzmP.cjs");
12
- const require_bignum_vo = require("./bignum.vo-CpkrIXjH.cjs");
13
- const require_util_selector = require("./util-selector-C9H5RsNw.cjs");
14
- const require_sync_operation_utils = require("./sync-operation-utils-BrQyWFS_.cjs");
15
- const require_slice = require("./slice-Bjj2t2ut.cjs");
16
- const require_slice$1 = require("./slice-CtIMw2YT.cjs");
17
- const require_lace_context = require("./lace-context-FpU3iG3f.cjs");
18
- const require_account_id_vo = require("./account-id.vo-Xpgnu-av.cjs");
19
- const require_slice$2 = require("./slice-Bhwmqn1p.cjs");
20
- const require_activity_type_stable = require("./activity-type.stable-ClO9j_PH.cjs");
21
- const require_slice$3 = require("./slice-exhhmucR.cjs");
22
- const require_slice$4 = require("./slice-jnpOgiSZ.cjs");
23
- const require_slice$5 = require("./slice-BLSxLmie.cjs");
24
- const require_token_id_vo = require("./token-id.vo-l8fuSpem.cjs");
25
- const require_cardano_network_id_vo = require("./cardano-network-id.vo-CbNNKd-k.cjs");
2
+ const require_Address = require("./Address-AMKTo-dA.cjs");
3
+ const require_serializable = require("./serializable-n3UoxbZc.cjs");
4
+ const require_Percent = require("./Percent-Cfuw5YyL.cjs");
5
+ const require_fees = require("./fees-DtC71fOx.cjs");
6
+ const require_util = require("./util-D1YlKzrc.cjs");
7
+ const require_time_vo = require("./time.vo-TmYE-_Y2.cjs");
8
+ const require_bignum_vo = require("./bignum.vo-Du-bpvar.cjs");
9
+ const require_util_selector = require("./util-selector-glXkO-jR.cjs");
10
+ const require_store = require("./store-C7AneHEY.cjs");
11
+ const require_feature_flag_key_vo = require("./feature-flag-key.vo-KTIdnzYX.cjs");
12
+ const require_slice = require("./slice-WMMMc1Xv.cjs");
13
+ const require_slice$1 = require("./slice-B9QKuhi0.cjs");
14
+ const require_lace_context = require("./lace-context-BN0b_ury.cjs");
15
+ const require_account_id_vo = require("./account-id.vo-DYZBZQsz.cjs");
16
+ const require_slice$2 = require("./slice-Bf4enJKZ.cjs");
17
+ const require_activity_type = require("./activity-type-BPXxdHBP.cjs");
18
+ const require_slice$3 = require("./slice-DtitVc9L.cjs");
19
+ const require_slice$4 = require("./slice-CaMfviYu.cjs");
20
+ const require_slice$5 = require("./slice-Dongunf7.cjs");
21
+ const require_token_id_vo = require("./token-id.vo-CZ622zcZ.cjs");
22
+ const require_cardano_network_id_vo = require("./cardano-network-id.vo-C5VuBXT3.cjs");
23
+ const require_sync_operation_utils = require("./sync-operation-utils--Z_IQfyW.cjs");
24
+ const require_const = require("./const-D3mCkwrM.cjs");
25
+ const require_identity = require("./identity-y41Yle03.cjs");
26
+ const require_hex = require("./hex-BVtOKJki.cjs");
27
+ const require_grant_status = require("./grant-status-CQtwjLsA.cjs");
26
28
  let ts_custom_error = require("ts-custom-error");
27
- require("lodash/sum.js");
28
29
  let lodash_groupBy_js = require("lodash/groupBy.js");
29
30
  lodash_groupBy_js = require_chunk.__toESM(lodash_groupBy_js);
30
31
  let lodash_last_js = require("lodash/last.js");
@@ -33,6 +34,7 @@ let lodash_memoize_js = require("lodash/memoize.js");
33
34
  lodash_memoize_js = require_chunk.__toESM(lodash_memoize_js);
34
35
  let lodash_orderBy_js = require("lodash/orderBy.js");
35
36
  lodash_orderBy_js = require_chunk.__toESM(lodash_orderBy_js);
37
+ let rxjs = require("rxjs");
36
38
  let _reduxjs_toolkit = require("@reduxjs/toolkit");
37
39
  let lodash_uniqBy = require("lodash/uniqBy.js");
38
40
  lodash_uniqBy = require_chunk.__toESM(lodash_uniqBy);
@@ -42,310 +44,6 @@ let lodash_sum = require("lodash/sum.js");
42
44
  lodash_sum = require_chunk.__toESM(lodash_sum);
43
45
  let lodash_flatMap = require("lodash/flatMap.js");
44
46
  lodash_flatMap = require_chunk.__toESM(lodash_flatMap);
45
- //#region ../../node_modules/@cardano-sdk/util/dist/esm/Percent.js
46
- const Percent = (value) => value;
47
- //#endregion
48
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/computeMinUtxoValue.js
49
- const computeMinUtxoValue = (coinsPerUtxoWord) => coinsPerUtxoWord * 29n;
50
- //#endregion
51
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/StakePool.js
52
- var StakePoolStatus;
53
- (function(StakePoolStatus) {
54
- StakePoolStatus["Activating"] = "activating";
55
- StakePoolStatus["Active"] = "active";
56
- StakePoolStatus["Retired"] = "retired";
57
- StakePoolStatus["Retiring"] = "retiring";
58
- })(StakePoolStatus || (StakePoolStatus = {}));
59
- var StakePoolEpochRewards = class {};
60
- //#endregion
61
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/PoolParameters.js
62
- const PoolMdVk = (target) => require_Address.typedBech32(target, "poolmd_vk", 52);
63
- //#endregion
64
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/ExtendedStakePoolMetadata.js
65
- var ExtendedPoolStatus;
66
- (function(ExtendedPoolStatus) {
67
- ExtendedPoolStatus["Active"] = "active";
68
- ExtendedPoolStatus["Retired"] = "retired";
69
- ExtendedPoolStatus["Offline"] = "offline";
70
- ExtendedPoolStatus["Experimental"] = "experimental";
71
- ExtendedPoolStatus["Private"] = "private";
72
- })(ExtendedPoolStatus || (ExtendedPoolStatus = {}));
73
- //#endregion
74
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/Address/PaymentCredential.js
75
- require__polyfill_buffer_patch.init__polyfill_buffer_patch();
76
- const PaymentCredential = (value) => {
77
- try {
78
- return require_Address.typedBech32(value, ["addr_vkh"], 45);
79
- } catch {
80
- return require_Address.typedBech32(value, ["script"], 45);
81
- }
82
- };
83
- PaymentCredential.fromCredential = (credential) => {
84
- const words = require_Address.bech32.toWords(require__polyfill_buffer_patch.import_buffer.Buffer.from(credential.hash, "hex"));
85
- const prefix = credential.type === require_Address.CredentialType.KeyHash ? "addr_vkh" : "script";
86
- return require_Address.bech32.encode(prefix, words, 1023);
87
- };
88
- //#endregion
89
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/DelegationsAndRewards.js
90
- var StakeCredentialStatus;
91
- (function(StakeCredentialStatus) {
92
- StakeCredentialStatus["Registering"] = "REGISTERING";
93
- StakeCredentialStatus["Registered"] = "REGISTERED";
94
- StakeCredentialStatus["Unregistering"] = "UNREGISTERING";
95
- StakeCredentialStatus["Unregistered"] = "UNREGISTERED";
96
- })(StakeCredentialStatus || (StakeCredentialStatus = {}));
97
- const DelegationMetadataLabel = 6862n;
98
- const portfolioMetadataFromCip17 = (cip17) => {
99
- const portfolio = { ...cip17 };
100
- portfolio.pools = cip17.pools.map((pool) => ({
101
- id: pool.id,
102
- weight: pool.weight
103
- }));
104
- return portfolio;
105
- };
106
- const cip17FromMetadatum = (portfolio) => {
107
- const cip17 = require_metadatum.metadatumToJson(portfolio);
108
- for (const pool of cip17.pools) pool.weight = Number(pool.weight);
109
- return cip17;
110
- };
111
- //#endregion
112
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/PlutusData.js
113
- var PlutusListEncoding;
114
- (function(PlutusListEncoding) {
115
- PlutusListEncoding[PlutusListEncoding["FixedLength"] = 0] = "FixedLength";
116
- PlutusListEncoding[PlutusListEncoding["IndefiniteLength"] = 159] = "IndefiniteLength";
117
- })(PlutusListEncoding || (PlutusListEncoding = {}));
118
- var PlutusMapEncoding;
119
- (function(PlutusMapEncoding) {
120
- PlutusMapEncoding[PlutusMapEncoding["FixedLength"] = 0] = "FixedLength";
121
- PlutusMapEncoding[PlutusMapEncoding["IndefiniteLength"] = 191] = "IndefiniteLength";
122
- })(PlutusMapEncoding || (PlutusMapEncoding = {}));
123
- //#endregion
124
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/UtilityTypes.js
125
- var import_fraction = /* @__PURE__ */ require_chunk.__toESM(require_Address.require_fraction(), 1);
126
- const toFractionJs = (value) => {
127
- if (typeof value === "number") return new import_fraction.default(value);
128
- const { numerator, denominator } = value;
129
- return new import_fraction.default(numerator, denominator);
130
- };
131
- const FractionUtils = {
132
- toFraction(value) {
133
- const { n: numerator, d: denominator } = toFractionJs(value);
134
- return {
135
- denominator,
136
- numerator
137
- };
138
- },
139
- toNumber(value) {
140
- return toFractionJs(value).valueOf();
141
- }
142
- };
143
- //#endregion
144
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/Cip1854ExtendedAccountPublicKey.js
145
- require__polyfill_buffer_patch.init__polyfill_buffer_patch();
146
- const MAX_BECH32_LENGTH_LIMIT = 1023;
147
- const bip32PublicKeyPrefix = "acct_shared_xvk";
148
- const Cip1854ExtendedAccountPublicKey = (value) => {
149
- try {
150
- require_Address.assertIsBech32WithPrefix(value, [bip32PublicKeyPrefix]);
151
- } catch {
152
- throw new require_errors.InvalidStringError(value, "Expected key to be a bech32 encoded string");
153
- }
154
- return value;
155
- };
156
- Cip1854ExtendedAccountPublicKey.fromBip32PublicKeyHex = (value) => {
157
- const words = require_Address.bech32.toWords(require__polyfill_buffer_patch.import_buffer.Buffer.from(value, "hex"));
158
- return Cip1854ExtendedAccountPublicKey(require_Address.bech32.encode(bip32PublicKeyPrefix, words, MAX_BECH32_LENGTH_LIMIT));
159
- };
160
- Cip1854ExtendedAccountPublicKey.toBip32PublicKeyHex = (value) => {
161
- const { words } = require_Address.bech32.decode(value, MAX_BECH32_LENGTH_LIMIT);
162
- return require_Address.Bip32PublicKeyHex(require__polyfill_buffer_patch.import_buffer.Buffer.from(require_Address.bech32.fromWords(words)).toString("hex"));
163
- };
164
- //#endregion
165
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/estimateStakePoolAPY.js
166
- const MILLISECONDS_PER_DAY = 1e3 * 60 * 60 * 24;
167
- const estimateStakePoolAPY = (rewardsHistory) => {
168
- if (rewardsHistory.length === 0) return null;
169
- const { activeStake, epochLength, memberRewards, pledge } = rewardsHistory.reduce((previous, current) => ({
170
- activeStake: previous.activeStake + current.activeStake,
171
- epochLength: previous.epochLength + current.epochLength,
172
- memberRewards: previous.memberRewards + current.memberRewards,
173
- pledge: previous.pledge + current.activeStake
174
- }));
175
- return Percent(Number(memberRewards) / Number(activeStake - pledge) / (epochLength / MILLISECONDS_PER_DAY) * 365);
176
- };
177
- //#endregion
178
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/resolveInputValue.js
179
- const resolveInputValue = (input, transactions) => {
180
- return transactions.find((transaction) => transaction.id === input.txId)?.body.outputs[input.index]?.value;
181
- };
182
- //#endregion
183
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/phase2Validation.js
184
- const isPhase2ValidationErrTx = ({ inputSource }) => inputSource === require_Address.InputSource.collaterals;
185
- //#endregion
186
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/addressesShareAnyKey.js
187
- const getAddressKeyIDs = (input) => {
188
- const address = typeof input === "string" ? require_Address.Address.fromString(input) : input;
189
- if (!address) throw new require_errors.InvalidStringError("Expected either bech32 or base58 address");
190
- switch (address.getType()) {
191
- case require_Address.AddressType.BasePaymentKeyStakeKey:
192
- case require_Address.AddressType.BasePaymentKeyStakeScript:
193
- case require_Address.AddressType.BasePaymentScriptStakeKey:
194
- case require_Address.AddressType.BasePaymentScriptStakeScript: {
195
- const baseAddr = address.asBase();
196
- return {
197
- paymentId: { credential: baseAddr.getPaymentCredential() },
198
- stakeId: { credential: baseAddr.getStakeCredential() }
199
- };
200
- }
201
- case require_Address.AddressType.Byron: return { paymentId: { byronRoot: address.asByron().getRoot() } };
202
- case require_Address.AddressType.EnterpriseKey:
203
- case require_Address.AddressType.EnterpriseScript: return { paymentId: { credential: address.asEnterprise().getPaymentCredential() } };
204
- case require_Address.AddressType.PointerKey:
205
- case require_Address.AddressType.PointerScript: {
206
- const pointerAddr = address.asPointer();
207
- return {
208
- paymentId: { credential: pointerAddr.getPaymentCredential() },
209
- stakeId: { pointer: pointerAddr.getStakePointer() }
210
- };
211
- }
212
- case require_Address.AddressType.RewardKey:
213
- case require_Address.AddressType.RewardScript: return { stakeId: { credential: address.asReward().getPaymentCredential() } };
214
- }
215
- };
216
- const isPaymentIdPresentAndEquals = (id1, id2) => {
217
- if (!id1 || !id2) return false;
218
- if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
219
- if ("byronRoot" in id1 && "byronRoot" in id2) return id1.byronRoot === id2.byronRoot;
220
- return false;
221
- };
222
- const isStakeIdPresentAndEquals = (id1, id2) => {
223
- if (!id1 || !id2) return false;
224
- if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
225
- if ("pointer" in id1 && "pointer" in id2) return id1.pointer.slot === id2.pointer.slot && id1.pointer.txIndex === id2.pointer.txIndex && id1.pointer.certIndex === id2.pointer.certIndex;
226
- return false;
227
- };
228
- const addressesShareAnyKey = (address1, address2) => {
229
- if (address1 === address2) return true;
230
- const ids1 = getAddressKeyIDs(address1);
231
- const ids2 = getAddressKeyIDs(address2);
232
- return isPaymentIdPresentAndEquals(ids1.paymentId, ids2.paymentId) || isStakeIdPresentAndEquals(ids1.stakeId, ids2.stakeId);
233
- };
234
- //#endregion
235
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/isScriptAddress.js
236
- const isScriptAddress = (address) => {
237
- if (!require_Address.Address.isValidBech32(address)) return false;
238
- const baseAddress = require_Address.Address.fromBech32(address).asBase();
239
- const paymentCredential = baseAddress?.getPaymentCredential();
240
- const stakeCredential = baseAddress?.getStakeCredential();
241
- return paymentCredential?.type === require_Address.CredentialType.ScriptHash && stakeCredential?.type === require_Address.CredentialType.ScriptHash;
242
- };
243
- //#endregion
244
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/index.js
245
- var util_exports = /* @__PURE__ */ require_chunk.__exportAll({
246
- addressesShareAnyKey: () => addressesShareAnyKey,
247
- computeImplicitCoin: () => require_subtractValueQuantities.computeImplicitCoin,
248
- computeMinUtxoValue: () => computeMinUtxoValue,
249
- estimateStakePoolAPY: () => estimateStakePoolAPY,
250
- isAnyPlutusDataCollection: () => require_Address.isAnyPlutusDataCollection,
251
- isConstrPlutusData: () => require_Address.isConstrPlutusData,
252
- isPhase2ValidationErrTx: () => isPhase2ValidationErrTx,
253
- isPlutusBigInt: () => require_Address.isPlutusBigInt,
254
- isPlutusBoundedBytes: () => require_Address.isPlutusBoundedBytes,
255
- isPlutusList: () => require_Address.isPlutusList,
256
- isPlutusMap: () => require_Address.isPlutusMap,
257
- isScriptAddress: () => isScriptAddress,
258
- resolveInputValue: () => resolveInputValue,
259
- tryConvertPlutusMapToUtf8Record: () => require_Address.tryConvertPlutusMapToUtf8Record
260
- });
261
- //#endregion
262
- //#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/index.js
263
- var Cardano_exports = /* @__PURE__ */ require_chunk.__exportAll({
264
- Address: () => require_Address.Address,
265
- AddressType: () => require_Address.AddressType,
266
- AssetFingerprint: () => require_Address.AssetFingerprint,
267
- AssetId: () => require_Address.AssetId,
268
- AssetName: () => require_Address.AssetName,
269
- BaseAddress: () => require_Address.BaseAddress,
270
- BlockId: () => require_Address.BlockId,
271
- BlockNo: () => require_Address.BlockNo,
272
- BlockSize: () => require_Address.BlockSize,
273
- ByronAddress: () => require_Address.ByronAddress,
274
- ByronAddressType: () => require_Address.ByronAddressType,
275
- CertIndex: () => require_Address.CertIndex,
276
- CertificateType: () => require_Address.CertificateType,
277
- ChainIds: () => require_ChainId.ChainIds,
278
- Cip1854ExtendedAccountPublicKey: () => Cip1854ExtendedAccountPublicKey,
279
- CredentialType: () => require_Address.CredentialType,
280
- DRepID: () => require_PaymentAddress.DRepID,
281
- DelegationMetadataLabel: () => DelegationMetadataLabel,
282
- EnterpriseAddress: () => require_Address.EnterpriseAddress,
283
- EpochNo: () => require_Address.EpochNo,
284
- ExtendedPoolStatus: () => ExtendedPoolStatus,
285
- FractionUtils: () => FractionUtils,
286
- GenesisDelegate: () => require_Address.GenesisDelegate,
287
- GovernanceActionType: () => require_Address.GovernanceActionType,
288
- InputSource: () => require_Address.InputSource,
289
- MirCertificateKind: () => require_Address.MirCertificateKind,
290
- MirCertificatePot: () => require_Address.MirCertificatePot,
291
- NativeScriptKind: () => require_Address.NativeScriptKind,
292
- NetworkId: () => require_ChainId.NetworkId,
293
- NetworkMagics: () => require_ChainId.NetworkMagics,
294
- PaymentAddress: () => require_PaymentAddress.PaymentAddress,
295
- PaymentCredential: () => PaymentCredential,
296
- PlutusLanguageVersion: () => require_Address.PlutusLanguageVersion,
297
- PlutusListEncoding: () => PlutusListEncoding,
298
- PlutusMapEncoding: () => PlutusMapEncoding,
299
- PointerAddress: () => require_Address.PointerAddress,
300
- PolicyId: () => require_Address.PolicyId,
301
- PoolId: () => require_Address.PoolId,
302
- PoolIdHex: () => require_Address.PoolIdHex,
303
- PoolMdVk: () => PoolMdVk,
304
- PostConwayStakeRegistrationCertificateTypes: () => require_Address.PostConwayStakeRegistrationCertificateTypes,
305
- RedeemerPurpose: () => require_Address.RedeemerPurpose,
306
- RegAndDeregCertificateTypes: () => require_Address.RegAndDeregCertificateTypes,
307
- RewardAccount: () => require_Address.RewardAccount,
308
- RewardAddress: () => require_Address.RewardAddress,
309
- ScriptType: () => require_Address.ScriptType,
310
- Slot: () => require_Address.Slot,
311
- SlotLeader: () => require_Address.SlotLeader,
312
- StakeCredentialCertificateTypes: () => require_Address.StakeCredentialCertificateTypes,
313
- StakeCredentialStatus: () => StakeCredentialStatus,
314
- StakeDelegationCertificateTypes: () => require_Address.StakeDelegationCertificateTypes,
315
- StakePoolEpochRewards: () => StakePoolEpochRewards,
316
- StakePoolStatus: () => StakePoolStatus,
317
- StakeRegistrationCertificateTypes: () => require_Address.StakeRegistrationCertificateTypes,
318
- TransactionId: () => require_Address.TransactionId,
319
- TxIndex: () => require_Address.TxIndex,
320
- Vote: () => require_Address.Vote,
321
- VoteDelegationCredentialCertificateTypes: () => require_Address.VoteDelegationCredentialCertificateTypes,
322
- VoterType: () => require_Address.VoterType,
323
- VrfVkBech32: () => require_Address.VrfVkBech32,
324
- VrfVkHex: () => require_Address.VrfVkHex,
325
- addressNetworkId: () => require_PaymentAddress.addressNetworkId,
326
- cip17FromMetadatum: () => cip17FromMetadatum,
327
- computeAuxiliaryDataHash: () => require_subtractValueQuantities.computeAuxiliaryDataHash,
328
- createDelegationCert: () => require_Address.createDelegationCert,
329
- createRewardAccount: () => require_Address.createRewardAccount,
330
- createStakeDeregistrationCert: () => require_Address.createStakeDeregistrationCert,
331
- createStakeRegistrationCert: () => require_Address.createStakeRegistrationCert,
332
- includesAnyCertificate: () => require_Address.includesAnyCertificate,
333
- inputsWithAddresses: () => require_PaymentAddress.inputsWithAddresses,
334
- isAddress: () => require_Address.isAddress,
335
- isAddressWithin: () => require_PaymentAddress.isAddressWithin,
336
- isCertType: () => require_Address.isCertType,
337
- isDRepAlwaysAbstain: () => require_Address.isDRepAlwaysAbstain,
338
- isDRepAlwaysNoConfidence: () => require_Address.isDRepAlwaysNoConfidence,
339
- isDRepCredential: () => require_Address.isDRepCredential,
340
- isDrepInfo: () => require_Address.isDrepInfo,
341
- isNativeScript: () => require_Address.isNativeScript,
342
- isPlutusScript: () => require_Address.isPlutusScript,
343
- isRewardAccount: () => require_PaymentAddress.isRewardAccount,
344
- portfolioMetadataFromCip17: () => portfolioMetadataFromCip17,
345
- stakeKeyCertificates: () => require_Address.stakeKeyCertificates,
346
- util: () => util_exports
347
- });
348
- //#endregion
349
47
  //#region ../../node_modules/@cardano-sdk/core/dist/esm/util/slotCalc.js
350
48
  var EraSummaryError = class extends ts_custom_error.CustomError {};
351
49
  const createSlotEpochCalcImpl = (eraSummaries) => {
@@ -428,8 +126,8 @@ const selectGlobalSyncStatus = (0, _reduxjs_toolkit.createSelector)([require_sli
428
126
  */
429
127
  const selectAverageSyncProgress = (0, _reduxjs_toolkit.createSelector)([require_slice$5.syncSelectors.sync.selectSyncStatusByAccount], (syncStatusByAccount) => {
430
128
  const accountsWithPendingSync = Object.values(syncStatusByAccount).filter((account) => account.pendingSync);
431
- if (accountsWithPendingSync.length === 0) return Percent(1);
432
- return Percent((0, lodash_sum.default)(accountsWithPendingSync.map((account) => {
129
+ if (accountsWithPendingSync.length === 0) return require_Percent.Percent(1);
130
+ return require_Percent.Percent((0, lodash_sum.default)(accountsWithPendingSync.map((account) => {
433
131
  const determinateOperations = Object.values(account.pendingSync.operations).filter((op) => op.status === "InProgress" && "type" in op && op.type === "Determinate");
434
132
  if (determinateOperations.length === 0) return 0;
435
133
  return (0, lodash_sum.default)(determinateOperations.map((op) => "progress" in op ? op.progress : 0)) / determinateOperations.length;
@@ -477,13 +175,13 @@ const selectActiveNetworkHasEverSynced = (0, _reduxjs_toolkit.createSelector)([r
477
175
  * Returns 1 when the active account has no pending sync or when there is no active account.
478
176
  */
479
177
  const selectActiveAccountSyncProgress = (0, _reduxjs_toolkit.createSelector)([require_slice$5.syncSelectors.sync.selectSyncStatusByAccount, require_lace_context.walletsSelectors.wallets.selectActiveAccountContext], (syncStatusByAccount, activeAccountContext) => {
480
- if (!activeAccountContext) return Percent(1);
178
+ if (!activeAccountContext) return require_Percent.Percent(1);
481
179
  const accountStatus = syncStatusByAccount[activeAccountContext.accountId];
482
- if (!accountStatus?.pendingSync) return Percent(1);
180
+ if (!accountStatus?.pendingSync) return require_Percent.Percent(1);
483
181
  const determinateOperations = Object.values(accountStatus.pendingSync.operations).filter((op) => op.status === "InProgress" && "type" in op && op.type === "Determinate");
484
- if (determinateOperations.length === 0) return Percent(0);
182
+ if (determinateOperations.length === 0) return require_Percent.Percent(0);
485
183
  const progress = (0, lodash_sum.default)(determinateOperations.map((op) => "progress" in op ? op.progress : 0)) / determinateOperations.length;
486
- return Percent(Math.min(progress, .99));
184
+ return require_Percent.Percent(Math.min(progress, .99));
487
185
  });
488
186
  //#endregion
489
187
  //#region ../../packages/contract/sync/src/store/index.ts
@@ -496,8 +194,8 @@ const syncSelectors = { sync: {
496
194
  selectHasEverSynced,
497
195
  selectActiveNetworkHasEverSynced
498
196
  } };
499
- var store_default = require_sync_operation_utils.inferStoreContext({
500
- load: async () => Promise.resolve().then(() => require("./init-CJeOys1w.cjs")),
197
+ var store_default = require_store.inferStoreContext({
198
+ load: async () => Promise.resolve().then(() => require("./init-B_HWNXMD.cjs")),
501
199
  context: {
502
200
  actions: require_slice$5.syncActions,
503
201
  selectors: syncSelectors
@@ -507,7 +205,7 @@ var store_default = require_sync_operation_utils.inferStoreContext({
507
205
  //#region ../../packages/contract/cardano-context/src/apply-in-flight-utxo-adjustments.ts
508
206
  const outpointKey = (ref) => `${ref.txId}#${ref.index}`;
509
207
  const getCardanoInFlight = (activity) => {
510
- if (activity.type !== require_activity_type_stable.ActivityType.Pending) return void 0;
208
+ if (activity.type !== require_activity_type.ActivityType.Pending) return void 0;
511
209
  return activity.blockchainSpecific?.Cardano;
512
210
  };
513
211
  /**
@@ -562,31 +260,428 @@ const applyInFlightUtxoAdjustments = (availableUtxo, accountAddresses, pendingAc
562
260
  return result;
563
261
  };
564
262
  //#endregion
565
- //#region ../../packages/contract/cardano-context/src/extensions/index.stable.ts
566
- /** A test for the account tokens of an account: no token is one. */
567
- const isAccountTokenOf = (_rewardAccount) => (_assetId) => false;
568
- /** Whether the activities the features classify apply: never, as there are none. */
569
- const isExtensionActivityFeatureEnabled = (_featureFlags) => false;
570
- /** The activity a feature classifies from the transaction body: none. */
571
- const classifyExtensionActivity = (_body) => void 0;
572
- /** The reducers the features add to the store: none. */
573
- const extensionReducers = {};
574
- /** The action creators the features add to the store: none. */
575
- const extensionActions = {};
576
- /** The selectors the features add to the store: none. */
577
- const extensionSelectors = {};
578
- /** The action creators the features add to the Cardano context's scope: none. */
579
- const extensionCardanoContextActions = {};
580
- /** The selectors the features add to the Cardano context's scope: none. */
581
- const createExtensionCardanoContextSelectors = (_core) => ({});
582
- const NO_ACCOUNT_IDS = /* @__PURE__ */ new Set();
583
- /** The ids of the accounts whose UTxOs only their own builders spend: none. */
584
- const selectAccountIdsExcludedFromSpending = () => NO_ACCOUNT_IDS;
585
- /** The side effect that tracks the tokens of an account kind a feature adds: none. */
586
- const extensionAccountTokens = (_account) => void 0;
587
- //#endregion
588
263
  //#region ../../packages/contract/cardano-context/src/value-objects/reward-activity-id.vo.ts
589
264
  const RewardActivityId = (reward, rewardAccount) => `reward-${reward.epoch}-${rewardAccount}-${reward.poolId}`;
265
+ //#endregion
266
+ //#region ../../packages/contract/cardano-context/src/custody/account-token.ts
267
+ const NEVER = () => false;
268
+ /**
269
+ * A test for the account tokens of the custody account that owns
270
+ * `rewardAccount`: assets under a supported account validator's policy
271
+ * named after the account's stake script hash. That is the state NFT, named
272
+ * by the hash alone, and every grant token, named by the hash and a slot.
273
+ * Matches nothing for a key-hash reward account, so it never touches a key
274
+ * account's assets.
275
+ *
276
+ * Account tokens only mark the control UTxO and the grant UTxOs, and the
277
+ * validator keeps them at the account address. They are no holding, so
278
+ * balances, activities and token metadata leave them out.
279
+ */
280
+ const isCardanoCustodyAccountTokenOf = (rewardAccount) => {
281
+ const stakeCredential = require_Address.Address.fromBech32(rewardAccount).asReward()?.getPaymentCredential();
282
+ if (stakeCredential?.type !== require_Address.CredentialType.ScriptHash) return NEVER;
283
+ const stakeScriptHash = stakeCredential.hash;
284
+ return (assetId) => require_fees.parseCustodyAccountTokenName(require_Address.AssetId.getAssetName(assetId))?.stakeScriptHash === stakeScriptHash && require_hex.findCustodyContractVersion(require_Address.AssetId.getPolicyId(assetId)).ok;
285
+ };
286
+ //#endregion
287
+ //#region ../../packages/contract/cardano-context/src/custody/build-actions.ts
288
+ /**
289
+ * Request, completion and failure of a custody transaction build, which a
290
+ * blockchain module answers. Payloads carry `bigint` and Cardano values, so
291
+ * each travels encoded as `Serializable` (ADR 08) and `requestId` stays
292
+ * plain for correlation without decoding.
293
+ */
294
+ const cardanoCustodyBuildActions = {
295
+ buildCustodyTransaction: (0, _reduxjs_toolkit.createAction)("cardanoContext/buildCustodyTransaction", (request) => ({ payload: {
296
+ requestId: request.requestId,
297
+ request: require_serializable.Serializable.to(request)
298
+ } })),
299
+ buildCustodyTransactionCompleted: (0, _reduxjs_toolkit.createAction)("cardanoContext/buildCustodyTransactionCompleted", ({ requestId, result }) => ({ payload: {
300
+ requestId,
301
+ result: require_serializable.Serializable.to(result)
302
+ } })),
303
+ buildCustodyTransactionFailed: (0, _reduxjs_toolkit.createAction)("cardanoContext/buildCustodyTransactionFailed", ({ requestId, error }) => ({ payload: {
304
+ requestId,
305
+ error: require_serializable.Serializable.to(error)
306
+ } })),
307
+ probeCustodyCreatorIndex: (0, _reduxjs_toolkit.createAction)("cardanoContext/probeCustodyCreatorIndex"),
308
+ probeCustodyCreatorIndexCompleted: (0, _reduxjs_toolkit.createAction)("cardanoContext/probeCustodyCreatorIndexCompleted"),
309
+ probeCustodyCreatorIndexFailed: (0, _reduxjs_toolkit.createAction)("cardanoContext/probeCustodyCreatorIndexFailed")
310
+ };
311
+ //#endregion
312
+ //#region ../../packages/contract/cardano-context/src/night-designation-feature-flag.ts
313
+ /** The feature flag that turns the cNIGHT designation feature on. */
314
+ const FEATURE_FLAG_CNIGHT_DESIGNATION = require_feature_flag_key_vo.FeatureFlagKey("CNIGHT_DESIGNATION");
315
+ //#endregion
316
+ //#region ../../packages/contract/cardano-context/src/store/helpers/night-designation-script-addresses.ts
317
+ const SCRIPT_ADDRESSES = new Set(["addr1w9e7ft4rrdd4rkdseguxr9hudfxyytm5ckh2qy0yhz7lfeg9lvhq7", "addr_test1wplxjzranravtp574s2wz00md7vz9rzpucu252je68u9a8qzjheng"]);
318
+ const NFT_POLICY_IDS = new Set(["73e4aea31b5b51d9b0ca386196fc6a4c422f74c5aea011e4b8bdf4e5", "7e69087d98fac5869eac14e13dfb6f98228c41e638aa2a59d1f85e9c"]);
319
+ const isScriptAddress = (address) => SCRIPT_ADDRESSES.has(String(address));
320
+ const hasNightDesignationNftPolicyId = (policyId) => NFT_POLICY_IDS.has(String(policyId));
321
+ /**
322
+ * Inspect the tx body to determine the night-designation action.
323
+ *
324
+ * Designate: NFT mint with positive quantity (no existing UTxO to
325
+ * spend).
326
+ *
327
+ * Deregister: NFT mint with negative quantity (existing UTxO is
328
+ * spent, NFT is burned).
329
+ *
330
+ * Update: no NFT mint, but the script address appears in BOTH
331
+ * inputs (spending the existing UTxO) and outputs (paying it back
332
+ * with a new datum). This is the fallback when there's no
333
+ * discriminating mint entry.
334
+ */
335
+ const inferAction = (inputs, outputs, mint) => {
336
+ if (mint) for (const [assetId, quantity] of mint) {
337
+ if (!hasNightDesignationNftPolicyId(String(assetId).slice(0, 56))) continue;
338
+ if (quantity > BigInt(0)) return "designate";
339
+ if (quantity < BigInt(0)) return "deregister";
340
+ }
341
+ const hasSpentScript = inputs.some((input) => isScriptAddress(input.address));
342
+ const hasProducedScript = outputs.some((output) => isScriptAddress(output.address));
343
+ if (hasSpentScript && hasProducedScript) return "update";
344
+ if (hasProducedScript) return "designate";
345
+ return "deregister";
346
+ };
347
+ /**
348
+ * Returns the classification for a tx that touches the
349
+ * cNIGHT-designation script address, or `undefined` if neither
350
+ * inputs nor outputs match. Deterministic — depends only on the
351
+ * tx body + the static registry above.
352
+ *
353
+ * Inputs catch update / deregister (spending the existing
354
+ * registration UTxO). Outputs catch designate (paying the new
355
+ * registration UTxO) and the producing leg of update.
356
+ */
357
+ const classifyTxAsNightDesignation = (inputs, outputs = [], mint) => {
358
+ if (!(inputs.some((input) => isScriptAddress(input.address)) || outputs.some((output) => isScriptAddress(output.address)))) return void 0;
359
+ return { action: inferAction(inputs, outputs, mint) };
360
+ };
361
+ //#endregion
362
+ //#region ../../packages/contract/cardano-context/src/store/night-designation-flow/state-machine.ts
363
+ const initialState$4 = { status: "Idle" };
364
+ const nightDesignationFlowMachine = require_slice$2.createStateMachine("nightDesignationFlow", initialState$4, {
365
+ Idle: {
366
+ designationRequested: (_, { accountId, action, dustPubkeyHex }) => ({
367
+ status: "Building",
368
+ accountId,
369
+ action,
370
+ ...dustPubkeyHex === void 0 ? {} : { dustPubkeyHex }
371
+ }),
372
+ buildCompleted: (previousState, _) => previousState,
373
+ confirmationCompleted: (previousState, _) => previousState,
374
+ reset: () => initialState$4
375
+ },
376
+ Building: {
377
+ buildCompleted: (previousState, { accountId, result }) => {
378
+ if (accountId !== previousState.accountId) return previousState;
379
+ if (result.success) return {
380
+ status: "Summary",
381
+ accountId: previousState.accountId,
382
+ action: previousState.action,
383
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
384
+ fees: result.fees,
385
+ serializedTx: result.serializedTx
386
+ };
387
+ return {
388
+ status: "Error",
389
+ accountId: previousState.accountId,
390
+ action: previousState.action,
391
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
392
+ error: result.error,
393
+ errorTranslationKeys: result.errorTranslationKeys
394
+ };
395
+ },
396
+ reset: () => initialState$4
397
+ },
398
+ Summary: {
399
+ confirmed: (previousState) => ({
400
+ status: "AwaitingConfirmation",
401
+ accountId: previousState.accountId,
402
+ action: previousState.action,
403
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
404
+ fees: previousState.fees,
405
+ serializedTx: previousState.serializedTx
406
+ }),
407
+ reset: () => initialState$4
408
+ },
409
+ AwaitingConfirmation: {
410
+ confirmationCompleted: (previousState, { result }) => {
411
+ if (result.success) return {
412
+ status: "Processing",
413
+ accountId: previousState.accountId,
414
+ action: previousState.action,
415
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
416
+ fees: previousState.fees,
417
+ serializedTx: result.serializedTx
418
+ };
419
+ return {
420
+ status: "Error",
421
+ accountId: previousState.accountId,
422
+ action: previousState.action,
423
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
424
+ error: result.error,
425
+ errorTranslationKeys: result.errorTranslationKeys
426
+ };
427
+ },
428
+ reset: (previousState) => previousState
429
+ },
430
+ Processing: {
431
+ processingResulted: (previousState, { result }) => {
432
+ if (result.success) return {
433
+ status: "Success",
434
+ accountId: previousState.accountId,
435
+ action: previousState.action,
436
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
437
+ fees: previousState.fees,
438
+ txId: result.txId
439
+ };
440
+ return {
441
+ status: "Error",
442
+ accountId: previousState.accountId,
443
+ action: previousState.action,
444
+ ...previousState.dustPubkeyHex === void 0 ? {} : { dustPubkeyHex: previousState.dustPubkeyHex },
445
+ error: result.error,
446
+ errorTranslationKeys: result.errorTranslationKeys
447
+ };
448
+ },
449
+ reset: (previousState) => previousState
450
+ },
451
+ Success: { reset: () => initialState$4 },
452
+ Error: { reset: () => initialState$4 }
453
+ });
454
+ //#endregion
455
+ //#region ../../packages/contract/cardano-context/src/store/night-designation-flow/slice.ts
456
+ const slice$4 = require_slice$2.createStateMachineSlice(nightDesignationFlowMachine, { selectors: { selectState: (state) => state } });
457
+ const nightDesignationFlowReducers = { [slice$4.name]: slice$4.reducer };
458
+ const nightDesignationFlowActions = { nightDesignationFlow: slice$4.actions };
459
+ const nightDesignationFlowSelectors = { nightDesignationFlow: slice$4.selectors };
460
+ const slice$3 = (0, _reduxjs_toolkit.createSlice)({
461
+ name: "nightDesignationIndex",
462
+ initialState: { byAccount: {} },
463
+ reducers: {
464
+ refreshRequested: (state, { payload }) => {
465
+ const entry = state.byAccount[payload.accountId];
466
+ state.byAccount[payload.accountId] = {
467
+ ...entry,
468
+ refreshing: true,
469
+ failed: false
470
+ };
471
+ },
472
+ refreshCompleted: (state, { payload }) => {
473
+ const entry = state.byAccount[payload.accountId];
474
+ state.byAccount[payload.accountId] = {
475
+ ...entry?.settling === void 0 ? {} : { settling: entry.settling },
476
+ snapshot: payload.snapshot,
477
+ refreshing: false,
478
+ failed: false
479
+ };
480
+ },
481
+ refreshFailed: (state, { payload }) => {
482
+ const entry = state.byAccount[payload.accountId];
483
+ state.byAccount[payload.accountId] = {
484
+ ...entry,
485
+ refreshing: false,
486
+ failed: true
487
+ };
488
+ },
489
+ settlingStarted: (state, { payload }) => {
490
+ const entry = state.byAccount[payload.accountId];
491
+ state.byAccount[payload.accountId] = {
492
+ refreshing: false,
493
+ failed: false,
494
+ ...entry,
495
+ settling: { txId: payload.txId }
496
+ };
497
+ },
498
+ settlingEnded: (state, { payload }) => {
499
+ const entry = state.byAccount[payload.accountId];
500
+ if (entry === void 0) return;
501
+ delete entry.settling;
502
+ }
503
+ },
504
+ selectors: { selectIndexByAccount: (state) => state.byAccount }
505
+ });
506
+ const nightDesignationIndexReducers = { [slice$3.name]: slice$3.reducer };
507
+ const nightDesignationIndexActions = { nightDesignationIndex: slice$3.actions };
508
+ const nightDesignationIndexSelectors = { nightDesignationIndex: slice$3.selectors };
509
+ //#endregion
510
+ //#region ../../packages/contract/cardano-context/src/store/helpers/account-tokens.ts
511
+ /** Tokens of one address: its value, with `rewards` added to the lovelace. */
512
+ const toAccountTokens = (value, rewards) => [{
513
+ tokenId: require_const.LOVELACE_TOKEN_ID,
514
+ available: require_bignum_vo.BigNumber(value.coins + rewards),
515
+ pending: require_bignum_vo.BigNumber(0n)
516
+ }, ...[...value.assets?.entries() || []].map(([assetId, quantity]) => ({
517
+ tokenId: require_token_id_vo.TokenId(assetId),
518
+ available: require_bignum_vo.BigNumber(quantity),
519
+ pending: require_bignum_vo.BigNumber(0n)
520
+ }))];
521
+ //#endregion
522
+ //#region ../../packages/contract/cardano-context/src/extensions/custody-account-tokens.ts
523
+ /**
524
+ * A custody account holds what its owner can spend through Lace while it is
525
+ * live: plain funds without a reference script, own reserves and withdrawable
526
+ * rewards. No Lace builder spends a plain fund carrying a reference script or
527
+ * a foreign reserve, the control UTxO's lovelace is the state's minimum and
528
+ * the owner's fee reserve, grant UTxOs hold lovelace only a sweep frees,
529
+ * stranded deposits cannot be spent, and account tokens are no holding, so
530
+ * none of them reaches the tokens store.
531
+ */
532
+ const computeCustodyAccountTokens = (account) => (_, { cardanoContext: { selectCardanoCustodyAccountState$ } }, { actions }) => selectCardanoCustodyAccountState$.pipe((0, rxjs.map)((selectAccountState) => selectAccountState(account.accountId)), (0, rxjs.distinctUntilChanged)(), (0, rxjs.map)((accountState) => actions.tokens.setAccountTokens({
533
+ blockchainName: "Cardano",
534
+ accountId: account.accountId,
535
+ byAddress: accountState?.status === "live" ? [{
536
+ address: require_util.CardanoPaymentAddress(account.blockchainSpecific.address),
537
+ tokens: toAccountTokens(require_fees.coalesceValueQuantities([...accountState.funds.filter(([, txOut]) => txOut.scriptReference === void 0), ...accountState.reserves.own].map(([, txOut]) => txOut.value)), accountState.withdrawableRewards)
538
+ }] : []
539
+ })));
540
+ //#endregion
541
+ //#region ../../packages/contract/cardano-context/src/extensions/custody-account-tokens-of-addresses.ts
542
+ /**
543
+ * A test for the account tokens of the custody accounts among
544
+ * `accountAddresses`: the state NFT and the grant tokens only mark a custody
545
+ * account's control and grant UTxOs, so they are never a holding the
546
+ * activity reports. Key addresses match nothing.
547
+ */
548
+ const isOwnCustodyAccountToken = (accountAddresses) => {
549
+ const tests = accountAddresses.flatMap((address) => {
550
+ const parsed = require_Address.Address.fromString(address);
551
+ const stakeCredential = parsed?.asBase()?.getStakeCredential();
552
+ if (!parsed || stakeCredential?.type !== require_Address.CredentialType.ScriptHash) return [];
553
+ return [isCardanoCustodyAccountTokenOf(require_Address.RewardAccount.fromCredential(stakeCredential, parsed.getNetworkId()))];
554
+ });
555
+ return (tokenId) => tests.some((isAccountToken) => isAccountToken(tokenId));
556
+ };
557
+ //#endregion
558
+ //#region ../../packages/contract/cardano-context/src/extensions/custody-selectors.ts
559
+ const haveSameAccounts = (a, b) => a.length === b.length && a.every((account, index) => account === b[index]);
560
+ /**
561
+ * Every Cardano custody account in the repository, on every network. Keeps
562
+ * its reference until a custody account changes, so the selectors built on
563
+ * it do not recompute on unrelated wallet updates.
564
+ */
565
+ const selectCardanoCustodyAccounts = (0, _reduxjs_toolkit.createSelector)(require_lace_context.walletsSelectors.wallets.selectAll, (wallets) => wallets.flatMap((wallet) => wallet.accounts.filter(require_identity.isCardanoCustodyAccount)), { memoizeOptions: { resultEqualityCheck: haveSameAccounts } });
566
+ /**
567
+ * The ids of the Cardano custody accounts, whose UTxOs only the custody
568
+ * builders may spend.
569
+ */
570
+ const selectCustodyAccountIds = (0, _reduxjs_toolkit.createSelector)(selectCardanoCustodyAccounts, (accounts) => new Set(accounts.map(({ accountId }) => accountId)));
571
+ /**
572
+ * The custody account selectors of the Cardano context:
573
+ * `selectCardanoCustodyAccountState`, `selectSettledCardanoCustodyAccountState`
574
+ * and `selectCardanoCustodyGrantStatuses`, built on the core selectors.
575
+ */
576
+ const createCardanoCustodySelectors = (core) => {
577
+ const selectVerifiedCardanoCustodyAccount = (0, _reduxjs_toolkit.createSelector)((0, _reduxjs_toolkit.createSelector)(selectCardanoCustodyAccounts, (_, accountId) => accountId, (custodyAccounts, accountId) => custodyAccounts.find((account) => account.accountId === accountId)), (account) => account && require_identity.verifyCardanoCustodyAccountIdentity(account.blockchainSpecific).ok ? account : void 0);
578
+ const selectAccountUtxosWithInFlightOf = (0, _reduxjs_toolkit.createSelector)(core.selectAccountUtxosWithInFlight, (_, accountId) => accountId, (utxosByAccount, accountId) => utxosByAccount[accountId]);
579
+ const selectRewardAccountDetailsOf = (0, _reduxjs_toolkit.createSelector)(core.selectRewardAccountDetails, (_, accountId) => accountId, (detailsByAccount, accountId) => detailsByAccount[accountId]);
580
+ const selectCardanoCustodyProtocolParameters = (0, _reduxjs_toolkit.createSelector)(core.selectAllNetworkInfo, selectVerifiedCardanoCustodyAccount, (networkInfo, account) => account && networkInfo[require_cardano_network_id_vo.CardanoNetworkId(account.blockchainSpecific.chainId.networkMagic)]?.protocolParameters);
581
+ /**
582
+ * Classifies a Cardano custody account's UTxOs into its control state,
583
+ * grants, reserves, plain funds and stranded deposits, with the control
584
+ * output's minimum and headroom (see {@link CardanoCustodyAccountState}). It
585
+ * reads the in-flight view, so a submitted operation's outputs replace the
586
+ * UTxOs it spends at once.
587
+ *
588
+ * `undefined` when the id names no custody account, when the account's
589
+ * stored identity is not the one its contract derives, while nothing is
590
+ * known of its UTxOs, from a fetch or a pending transaction, or while the
591
+ * protocol parameters of its network are unknown: unknown UTxOs do not make
592
+ * an account `notCreated`.
593
+ */
594
+ const selectCardanoCustodyAccountState = require_util_selector.markParameterizedSelector((0, _reduxjs_toolkit.createSelector)(selectVerifiedCardanoCustodyAccount, selectAccountUtxosWithInFlightOf, selectRewardAccountDetailsOf, selectCardanoCustodyProtocolParameters, (account, utxos, rewardAccountDetails, protocolParameters) => account && utxos && protocolParameters ? require_grant_status.classifyCardanoCustodyAccount({
595
+ account: account.blockchainSpecific,
596
+ utxos,
597
+ withdrawableRewards: BigInt(rewardAccountDetails?.rewardAccountInfo.withdrawableAmount ?? 0),
598
+ protocolParameters
599
+ }) : void 0));
600
+ const selectSettledCardanoCustodyAccountState = require_util_selector.markParameterizedSelector((0, _reduxjs_toolkit.createSelector)(selectVerifiedCardanoCustodyAccount, (0, _reduxjs_toolkit.createSelector)(core.selectAccountUtxos, (_, accountId) => accountId, (utxosByAccount, accountId) => utxosByAccount[accountId]), selectCardanoCustodyProtocolParameters, (account, utxos, protocolParameters) => account && utxos && protocolParameters ? require_grant_status.classifyCardanoCustodyAccount({
601
+ account: account.blockchainSpecific,
602
+ utxos,
603
+ withdrawableRewards: 0n,
604
+ protocolParameters
605
+ }) : void 0));
606
+ return {
607
+ selectCardanoCustodyAccountState,
608
+ selectSettledCardanoCustodyAccountState,
609
+ selectCardanoCustodyGrantStatuses: require_util_selector.markParameterizedSelector((0, _reduxjs_toolkit.createSelector)(selectSettledCardanoCustodyAccountState, selectCardanoCustodyAccountState, selectCardanoCustodyProtocolParameters, selectVerifiedCardanoCustodyAccount, (0, _reduxjs_toolkit.createSelector)(core.selectTip, core.selectEraSummaries, (tip, eraSummaries) => {
610
+ if (!tip || !eraSummaries || eraSummaries.length === 0) return void 0;
611
+ try {
612
+ return createSlotTimeCalc(eraSummaries)(tip.slot).getTime();
613
+ } catch {
614
+ return;
615
+ }
616
+ }), (confirmed, inFlight, protocolParameters, account, now) => inFlight?.status === "live" && account && protocolParameters && now !== void 0 ? require_grant_status.classifyCardanoCustodyGrants({
617
+ confirmed: confirmed?.status === "live" ? {
618
+ state: confirmed.state,
619
+ grants: confirmed.grants
620
+ } : void 0,
621
+ inFlight: {
622
+ state: inFlight.state,
623
+ grants: inFlight.grants
624
+ },
625
+ now,
626
+ protocolParameters,
627
+ networkId: account.blockchainSpecific.chainId.networkId
628
+ }) : void 0))
629
+ };
630
+ };
631
+ //#endregion
632
+ //#region ../../packages/contract/cardano-context/src/extensions/index.ts
633
+ /** The activity metadata a pending activity carries for its feature. */
634
+ const pendingActivityExtensionMetadata = ({ custody }) => custody ? { custody } : {};
635
+ /**
636
+ * A test for the account tokens of the custody accounts among the addresses:
637
+ * tokens that only mark an account's own UTxOs and are no holding.
638
+ */
639
+ const isOwnAccountToken = isOwnCustodyAccountToken;
640
+ /** A test for the account tokens of the account that owns `rewardAccount`. */
641
+ const isAccountTokenOf = isCardanoCustodyAccountTokenOf;
642
+ /**
643
+ * Whether the activities the features classify apply: while the cNIGHT
644
+ * designation feature is on.
645
+ */
646
+ const isExtensionActivityFeatureEnabled = (featureFlags) => featureFlags.some((flag) => flag.key === FEATURE_FLAG_CNIGHT_DESIGNATION);
647
+ /**
648
+ * The type and metadata of an activity a feature classifies from the
649
+ * transaction body alone: a cNIGHT designation, matched by its script
650
+ * addresses.
651
+ */
652
+ const classifyExtensionActivity = (body) => {
653
+ const nightDesignation = classifyTxAsNightDesignation(body.inputs, body.outputs, body.mint);
654
+ return nightDesignation ? {
655
+ type: require_activity_type.ActivityType.NightDesignation,
656
+ metadata: { nightDesignation: { action: nightDesignation.action } }
657
+ } : void 0;
658
+ };
659
+ /** The reducers the features add to the store. */
660
+ const extensionReducers = {
661
+ ...nightDesignationFlowReducers,
662
+ ...nightDesignationIndexReducers
663
+ };
664
+ /** The action creators the features add to the store, by scope. */
665
+ const extensionActions = {
666
+ ...nightDesignationFlowActions,
667
+ ...nightDesignationIndexActions
668
+ };
669
+ /** The selectors the features add to the store, by scope. */
670
+ const extensionSelectors = {
671
+ ...nightDesignationFlowSelectors,
672
+ ...nightDesignationIndexSelectors
673
+ };
674
+ /** The action creators the features add to the Cardano context's scope. */
675
+ const extensionCardanoContextActions = cardanoCustodyBuildActions;
676
+ /** The selectors the features add to the Cardano context's scope. */
677
+ const createExtensionCardanoContextSelectors = (core) => createCardanoCustodySelectors(core);
678
+ /**
679
+ * The ids of the accounts whose UTxOs only their own builders may spend:
680
+ * custody accounts, whose UTxOs the custody script locks.
681
+ */
682
+ const selectAccountIdsExcludedFromSpending = selectCustodyAccountIds;
683
+ /** The side effect that tracks the tokens of an account kind a feature adds. */
684
+ const extensionAccountTokens = (account) => require_identity.isCardanoCustodyAccount(account) ? computeCustodyAccountTokens(account) : void 0;
590
685
  const EXPLOIT_DESCRIPTORS = { deterministicNonce202606: {
591
686
  severity: "critical",
592
687
  blockchains: ["Cardano"],
@@ -925,7 +1020,7 @@ const mapRewardToActivity = ({ reward, eraSummaries, rewardAccount, accountId })
925
1020
  tokenId: require_token_id_vo.TokenId("lovelace"),
926
1021
  amount: require_bignum_vo.BigNumber(BigInt(reward.rewards))
927
1022
  }],
928
- type: require_activity_type_stable.ActivityType.Rewards,
1023
+ type: require_activity_type.ActivityType.Rewards,
929
1024
  blockchainSpecific: {
930
1025
  poolId: reward.poolId ? require_Address.PoolId(reward.poolId) : void 0,
931
1026
  epoch: reward.epoch + 2
@@ -1623,10 +1718,10 @@ const cardanoContextSelectors = {
1623
1718
  ...extensionSelectors
1624
1719
  };
1625
1720
  //#endregion
1626
- Object.defineProperty(exports, "Cardano_exports", {
1721
+ Object.defineProperty(exports, "applyInFlightUtxoAdjustments", {
1627
1722
  enumerable: true,
1628
1723
  get: function() {
1629
- return Cardano_exports;
1724
+ return applyInFlightUtxoAdjustments;
1630
1725
  }
1631
1726
  });
1632
1727
  Object.defineProperty(exports, "cardanoContextActions", {
@@ -1653,6 +1748,12 @@ Object.defineProperty(exports, "classifyExtensionActivity", {
1653
1748
  return classifyExtensionActivity;
1654
1749
  }
1655
1750
  });
1751
+ Object.defineProperty(exports, "createSlotTimeCalc", {
1752
+ enumerable: true,
1753
+ get: function() {
1754
+ return createSlotTimeCalc;
1755
+ }
1756
+ });
1656
1757
  Object.defineProperty(exports, "extensionAccountTokens", {
1657
1758
  enumerable: true,
1658
1759
  get: function() {
@@ -1677,10 +1778,10 @@ Object.defineProperty(exports, "isExtensionActivityFeatureEnabled", {
1677
1778
  return isExtensionActivityFeatureEnabled;
1678
1779
  }
1679
1780
  });
1680
- Object.defineProperty(exports, "isPhase2ValidationErrTx", {
1781
+ Object.defineProperty(exports, "isOwnAccountToken", {
1681
1782
  enumerable: true,
1682
1783
  get: function() {
1683
- return isPhase2ValidationErrTx;
1784
+ return isOwnAccountToken;
1684
1785
  }
1685
1786
  });
1686
1787
  Object.defineProperty(exports, "isRewardActivity", {
@@ -1695,9 +1796,21 @@ Object.defineProperty(exports, "mapRewardToActivity", {
1695
1796
  return mapRewardToActivity;
1696
1797
  }
1697
1798
  });
1799
+ Object.defineProperty(exports, "pendingActivityExtensionMetadata", {
1800
+ enumerable: true,
1801
+ get: function() {
1802
+ return pendingActivityExtensionMetadata;
1803
+ }
1804
+ });
1698
1805
  Object.defineProperty(exports, "store_default", {
1699
1806
  enumerable: true,
1700
1807
  get: function() {
1701
1808
  return store_default;
1702
1809
  }
1703
1810
  });
1811
+ Object.defineProperty(exports, "toAccountTokens", {
1812
+ enumerable: true,
1813
+ get: function() {
1814
+ return toAccountTokens;
1815
+ }
1816
+ });