@laceio/sdk 0.1.1-canary.1 → 0.1.1-canary.2

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 (438) hide show
  1. package/dist/{TransactionBuilder-BakTJvsJ.cjs → TransactionBuilder-CCjOn7NA.cjs} +108 -108
  2. package/dist/{TransactionBuilder-D2ErwVWv.js → TransactionBuilder-CIzdw18M.js} +87 -88
  3. package/dist/{_polyfill-buffer-patch-BycQkEkK.cjs → _polyfill-buffer-patch-CM8X7JiY.cjs} +6 -6
  4. package/dist/{_polyfill-buffer-patch-JcrfT1gU.js → _polyfill-buffer-patch-yNxN4d5E.js} +1 -1
  5. package/dist/{_polyfill-node.process-5UxyjoHG.cjs → _polyfill-node.process-rf9LjCyG.cjs} +3 -3
  6. package/dist/{_web-crypto-random-bytes-BvzwTYPG.js → _web-crypto-random-bytes-Bo-GTcRS.js} +2 -2
  7. package/dist/{acc-module-NL_8mEHH.cjs → acc-module-4iIUv6My.cjs} +4 -4
  8. package/dist/{acc-module-ur8CkBd1.js → acc-module-Cmj8EsIb.js} +1 -1
  9. package/dist/account-BlYkEmcs.cjs +11 -0
  10. package/dist/account-DVX0F5_M.js +6 -0
  11. package/dist/{account-call-BDdWqMAY.js → account-call-D68oF6bh.js} +5 -5
  12. package/dist/{account-call-CYYoAS1E.cjs → account-call-DIIa2rK_.cjs} +5 -5
  13. package/dist/account-call-NgLhYein.cjs +4 -0
  14. package/dist/account-call-n-Nkp35e.js +3 -0
  15. package/dist/{account-guards-BeKbV9D1.cjs → account-guards-BtjTGxDZ.cjs} +4 -3
  16. package/dist/{account-guards-qnFXuXSE.js → account-guards-D9Lu5T3W.js} +3 -3
  17. package/dist/account-tokens-CtN2BaFy.js +16 -0
  18. package/dist/account-tokens-DXr8DlpW.cjs +21 -0
  19. package/dist/{actions-BnHFVSr_.cjs → actions-B2BJ4RTy.cjs} +1 -1
  20. package/dist/{address-OxwXIwbF.js → address-B9ntKL8K.js} +8 -1749
  21. package/dist/{address-lECYBd9-.cjs → address-BXp-mY8H.cjs} +107 -1880
  22. package/dist/{address-book-address-validator-CGIcqn5W.cjs → address-book-address-validator-BjOWerRE.cjs} +6 -9
  23. package/dist/{address-book-address-validator-FkkYim3z.js → address-book-address-validator-ByIZOdO-.js} +5 -9
  24. package/dist/{address-book-address-validator-BqYM0Uyp.cjs → address-book-address-validator-DK0dnsRS.cjs} +7 -7
  25. package/dist/{address-book-address-validator-RSx2Jozy.js → address-book-address-validator-Di_ywo8M.js} +6 -6
  26. package/dist/{apply-vkey-witnesses-Byb40-yJ.js → apply-vkey-witnesses-BKx3lcs0.js} +2 -2
  27. package/dist/{apply-vkey-witnesses-1jyczTkw.cjs → apply-vkey-witnesses-ZnFS0jnJ.cjs} +3 -2
  28. package/dist/{artefact-loader-nlsYFjxU.js → artefact-loader-54uK5RAa.js} +2 -2
  29. package/dist/{artefact-loader-De9WJH1J.cjs → artefact-loader-DZPYrq-6.cjs} +2 -2
  30. package/dist/{auto-dismiss-failure-on-success-BWJceNXd.cjs → auto-dismiss-failure-on-success-C-qoJuid.cjs} +2 -2
  31. package/dist/{auto-dismiss-failure-on-success-Bpod-v4r.js → auto-dismiss-failure-on-success-s8MGDEIu.js} +1 -1
  32. package/dist/bip32ed25519-B7Yat217.cjs +8 -0
  33. package/dist/bip32ed25519-FQ8qvdcq.js +7 -0
  34. package/dist/bitcoin.cjs +19 -22
  35. package/dist/bitcoin.d.ts +201 -224
  36. package/dist/bitcoin.js +19 -21
  37. package/dist/blake2b-BiQTw3GC.js +7 -0
  38. package/dist/blake2b-DEeVUdKR.cjs +8 -0
  39. package/dist/{blockfrost-tx-submit-provider-BHDLgOIE.js → blockfrost-tx-submit-provider-CBWQ0wK9.js} +23 -132
  40. package/dist/{blockfrost-tx-submit-provider-BxC19smv.cjs → blockfrost-tx-submit-provider-CLNQ5ycR.cjs} +32 -153
  41. package/dist/{blockingWithLatestFrom-FUfZFEUG.js → blockingWithLatestFrom-Cd8c8EPG.js} +1 -1
  42. package/dist/{blockingWithLatestFrom-bmCPgA3c.cjs → blockingWithLatestFrom-D8kBPBMX.cjs} +3 -3
  43. package/dist/{bn-BFq5a4dk.cjs → bn-d3nSOIf7.cjs} +4 -4
  44. package/dist/{browser-D5jRKv_L.js → browser-B1eMbDwh.js} +40 -39
  45. package/dist/{bytes.vo-CziaOsba.js → bytes.vo-BB7_4JK6.js} +1 -2
  46. package/dist/{bytes.vo-hecRu3YZ.cjs → bytes.vo-BNRquqaO.cjs} +1 -2
  47. package/dist/cardano-DfPwhwm-.js +3 -0
  48. package/dist/{cardano-network-id-to-network-type-CYJheetp.js → cardano-network-id-to-network-type-BWwzeEtM.js} +2 -2
  49. package/dist/{cardano-network-id-to-network-type-BwG_d6QP.cjs → cardano-network-id-to-network-type-C0ufJOyE.cjs} +3 -2
  50. package/dist/{cardano-network-id.vo-C5VuBXT3.cjs → cardano-network-id.vo-BEvFd_74.cjs} +5 -4
  51. package/dist/{cardano-network-id.vo-CeLJqmb_.js → cardano-network-id.vo-wfLiAxpY.js} +5 -4
  52. package/dist/cardano-tx-id.vo-BXLo1b7Q.js +5 -0
  53. package/dist/cardano-tx-id.vo-D3ASTIMd.cjs +11 -0
  54. package/dist/cardano.cjs +24 -25
  55. package/dist/cardano.d.ts +8083 -12530
  56. package/dist/cardano.js +17 -23
  57. package/dist/{client-Bw2foG5E.cjs → client-DXBLHk7K.cjs} +7 -7
  58. package/dist/codecs-Cswkg7Tm.cjs +4051 -0
  59. package/dist/codecs-Dc1Krpbt.js +3903 -0
  60. package/dist/{const-BB3MccLt.js → const-BfEnY8fg.js} +2 -2
  61. package/dist/{const-CSWmOyzn.cjs → const-BhYOdznB.cjs} +3 -3
  62. package/dist/{const-DbuUHSzR.js → const-CBGn60yu.js} +8 -8
  63. package/dist/{const-DW7z3R5k.js → const-CUnCl5U0.js} +3 -3
  64. package/dist/{const-xGSNCtwQ.js → const-CjmfjBP3.js} +1 -1
  65. package/dist/{const-DgBzKfz6.cjs → const-DLrX5SD9.cjs} +4 -4
  66. package/dist/{const-BWBAzOmN.cjs → const-iwzZEE_w.cjs} +1 -1
  67. package/dist/{const-D3mCkwrM.cjs → const-oMF-TLow.cjs} +9 -8
  68. package/dist/{contract-2KVxlHyu.cjs → contract-C_CBwwiC.cjs} +9 -9
  69. package/dist/{contract-DjQqqZLo.js → contract-s_x-9-lz.js} +9 -9
  70. package/dist/{create-add-accounts-2mQA0ST2.js → create-add-accounts-Brqk84vF.js} +2 -2
  71. package/dist/{create-add-accounts-B6mR2NMn.cjs → create-add-accounts-DzXIh7Ot.cjs} +3 -3
  72. package/dist/{delegation-tx-builder-DUMikSTg.js → delegation-tx-builder-BR6bt1fE.js} +8 -12
  73. package/dist/{delegation-tx-builder-Cp30jtj9.cjs → delegation-tx-builder-DVwGfiV0.cjs} +9 -12
  74. package/dist/{deregistration-tx-builder-CRLrK99U.js → deregistration-tx-builder-BhJRGj1M.js} +10 -15
  75. package/dist/{deregistration-tx-builder-B-ZeY-dR.cjs → deregistration-tx-builder-Cv_09HGf.cjs} +11 -15
  76. package/dist/{device-readers-DzkDMjPn.cjs → device-readers-70i7tQqU.cjs} +4 -3
  77. package/dist/device-readers-B7--ezKM.js +4 -0
  78. package/dist/{device-readers-CVqmvmLZ.js → device-readers-BWOmz9eD.js} +5 -5
  79. package/dist/{device-readers-XMZMfFvZ.cjs → device-readers-CIgYZN7f.cjs} +5 -5
  80. package/dist/{dist-Dwqx184a.cjs → dist-BMi5ZjEq.cjs} +12 -12
  81. package/dist/{dist-Br0OVXKt.cjs → dist-BtIq4XFn.cjs} +3 -3
  82. package/dist/{dist-p84sVVJ9.cjs → dist-C3SHC_Ho.cjs} +3 -3
  83. package/dist/{dist-BmHOXLe8.cjs → dist-CykEjYEX.cjs} +10 -10
  84. package/dist/{dist-C1JK9C1I.cjs → dist-Dcsxh3be.cjs} +9 -9
  85. package/dist/{dist-BA1xnF9O.cjs → dist-DqJfSlTd.cjs} +9 -9
  86. package/dist/{dist-DKEViNEI.cjs → dist-nTZ70qj7.cjs} +11 -11
  87. package/dist/{earn-rewards-tx-builder-cOUNV58E.cjs → earn-rewards-tx-builder-52gJiJYa.cjs} +10 -13
  88. package/dist/{earn-rewards-tx-builder-8G_rouIk.js → earn-rewards-tx-builder-RYzKsZ6-.js} +9 -13
  89. package/dist/{envelopes-CfWTR2uy.js → envelopes-BkH1Qdxk.js} +2 -2
  90. package/dist/{envelopes-BmL7onAK.cjs → envelopes-ETZEJS_O.cjs} +2 -2
  91. package/dist/{error-B6wj9nPv.cjs → error-Cb3EnD0u.cjs} +12 -12
  92. package/dist/{error-CvEYL98P.js → error-DIZOY2Lw.js} +2 -2
  93. package/dist/{errors-BA3b8aVu.cjs → errors-BZ8hnhCM.cjs} +1 -1
  94. package/dist/esm-HBSUQw3w.js +384 -0
  95. package/dist/esm-LZuaZjMf.cjs +389 -0
  96. package/dist/{esm-browser-DpAD_RKv.js → esm-browser-MG97cre9.js} +1 -1
  97. package/dist/{esm-browser-CZbMeVod.cjs → esm-browser-bweqfBlL.cjs} +6 -6
  98. package/dist/experimental.cjs +418 -220
  99. package/dist/experimental.d.ts +45554 -24877
  100. package/dist/experimental.js +348 -158
  101. package/dist/{first-state-of-status-9ICeDNSa.cjs → first-state-of-status-CbT7hPa4.cjs} +1 -1
  102. package/dist/gated-call-Boy6rXdC.js +3 -0
  103. package/dist/{gated-call-DLC5PBlN.cjs → gated-call-DJWY299W.cjs} +6 -6
  104. package/dist/{gated-call-DQhT7v2J.js → gated-call-DjoRPqn1.js} +6 -6
  105. package/dist/gated-call-SomdJ5nj.cjs +4 -0
  106. package/dist/{grant-rules-fYt80KB1.cjs → grant-rules-7Zqi_3BN.cjs} +4 -4
  107. package/dist/{grant-rules-rG1kJq6l.js → grant-rules-_xJHAT2M.js} +3 -3
  108. package/dist/{device-key-BToCoS4D.js → grant-status-B2y49iIu.js} +333 -39
  109. package/dist/{device-key-D6euvxFi.cjs → grant-status-DOr3t_u8.cjs} +394 -63
  110. package/dist/{grants-C5wpNvZJ.cjs → grants--b0LQQzZ.cjs} +5 -5
  111. package/dist/{grants-ngFtS52g.js → grants-BIs6qm3b.js} +5 -5
  112. package/dist/{grants-qpXC94Rk.js → grants-CSgfYlOO.js} +4 -3
  113. package/dist/{grants-DY3sN9We.cjs → grants-D61131nK.cjs} +5 -4
  114. package/dist/{group-cardano-addresses-by-account-TqvESg9x.js → group-cardano-addresses-by-account-CxCqFDrX.js} +3 -7
  115. package/dist/{group-cardano-addresses-by-account-BGOtPV-Y.cjs → group-cardano-addresses-by-account-D06r7daZ.cjs} +4 -14
  116. package/dist/{guarded-transaction-signer-BbVDE9Nn.js → guarded-transaction-signer-BSEx83R-.js} +26 -28
  117. package/dist/{guarded-transaction-signer-DTLjAkif.cjs → guarded-transaction-signer-BhnTBjf6.cjs} +38 -40
  118. package/dist/{hex-BVtOKJki.cjs → hex-D9ITYbwt.cjs} +10 -10
  119. package/dist/{hex-CGYJPK_Z.js → hex-mkXcV3pN.js} +8 -9
  120. package/dist/{http-client-DYQ_7Rdf.cjs → http-client-B3N-TMxu.cjs} +3 -3
  121. package/dist/{http-client-B7_kBTYn.js → http-client-TRlhDZGh.js} +2 -2
  122. package/dist/{identity-y41Yle03.cjs → identity-BMLuufva.cjs} +16 -27
  123. package/dist/{identity-DxPhxkZs.js → identity-DII6f-h7.js} +16 -22
  124. package/dist/in-memory-wallet-integration-B0blZBxM.js +6 -0
  125. package/dist/{in-memory-wallet-integration-DZ0CAyvY.cjs → in-memory-wallet-integration-B2xzxORj.cjs} +30 -154
  126. package/dist/{in-memory-wallet-integration-BCOqDgbt.js → in-memory-wallet-integration-BKu985Jz.js} +16 -17
  127. package/dist/{in-memory-wallet-integration-DsFm8gLk.cjs → in-memory-wallet-integration-CH4rcg92.cjs} +21 -20
  128. package/dist/{in-memory-wallet-integration-Bi8I9Dso.js → in-memory-wallet-integration-CUKesGG1.js} +15 -13
  129. package/dist/{in-memory-wallet-integration-Bsl2ONua.cjs → in-memory-wallet-integration-CoPx69lQ.cjs} +15 -14
  130. package/dist/{in-memory-wallet-integration-aW_SF-go.cjs → in-memory-wallet-integration-CwPCDMIe.cjs} +4 -10
  131. package/dist/{in-memory-wallet-integration-5BKiAvPT.js → in-memory-wallet-integration-TM9bBphA.js} +14 -137
  132. package/dist/index.cjs +62 -51
  133. package/dist/index.d.ts +10936 -15383
  134. package/dist/index.js +41 -44
  135. package/dist/{init-Cu2znmIc.js → init-0zzs9aqU.js} +4 -6
  136. package/dist/{init-CH0yyBof.cjs → init-5KcGcBb5.cjs} +2 -2
  137. package/dist/{init-BT67pd9x.cjs → init-Atisw4x2.cjs} +1 -1
  138. package/dist/{init-BUJTT0MN.js → init-B-YE57gg.js} +58 -380
  139. package/dist/{init-CCTscPaY2.js → init-B3-1ghyx.js} +2 -2
  140. package/dist/{init-BbIMt6xU.cjs → init-B5X_sGj9.cjs} +2 -2
  141. package/dist/{init-DexLSprL2.cjs → init-BEjCRHxU.cjs} +30 -31
  142. package/dist/{init-DgzRsI-C.js → init-BJn-8_hf.js} +3 -3
  143. package/dist/{init-DnELgrhn.cjs → init-BTzOjA8x.cjs} +2 -2
  144. package/dist/{init-xzZPlQwB.cjs → init-BgNobbNq.cjs} +1 -1
  145. package/dist/{init-8NVWbo302.cjs → init-BopV9ed4.cjs} +3 -3
  146. package/dist/{init-Cz5LAizN.js → init-Bp6yJk31.js} +68 -927
  147. package/dist/{init-5SfWgCYD.cjs → init-BrdVzxei.cjs} +4 -4
  148. package/dist/init-Bu4iXcTH.cjs +34 -0
  149. package/dist/{init-BZ-WyAIL.cjs → init-C-G32J12.cjs} +5 -6
  150. package/dist/{init-BZdfdLX7.js → init-C00gw1zi.js} +9 -9
  151. package/dist/{init-B-ppfGO-.js → init-C2RgrfZe.js} +1 -1
  152. package/dist/{init-BtQOzUjX.js → init-C8URA2OX.js} +1 -1
  153. package/dist/{init-Dj4Cn7-P.js → init-CIjZaQvL.js} +97 -1302
  154. package/dist/{init-IBnizp1U.js → init-CNM5m7M2.js} +5 -5
  155. package/dist/{init-TbB38KNt2.js → init-COMH3Hfo.js} +28 -27
  156. package/dist/{init-D4WM3-Mn.cjs → init-CR7BfztQ.cjs} +9 -9
  157. package/dist/{init-B_HWNXMD.cjs → init-CSDpdu0Q.cjs} +3 -3
  158. package/dist/{init-BPKBVOHU.js → init-CX0AMQUn.js} +2 -2
  159. package/dist/{Address-_c_-9hLC.js → init-CjT-WZcW.cjs} +2029 -16899
  160. package/dist/{init-B-C7n6u6.js → init-Cp8EJGbm.js} +1 -1
  161. package/dist/init-CpIadSUb.js +33 -0
  162. package/dist/{init-CnJAlks_.js → init-CyAY4Lzl.js} +1 -1
  163. package/dist/{init-CkZy4IMf.cjs → init-D5UiYI12.cjs} +4 -5
  164. package/dist/{init-BpwlQ6wF.cjs → init-D6BxBs7e.cjs} +2 -2
  165. package/dist/{init-CS98M3iD.js → init-D74mn8nH2.js} +2 -3
  166. package/dist/{init-CmfcY7SV.js → init-DA7zmptx.js} +1 -1
  167. package/dist/init-DAikR9qU.js +1177 -0
  168. package/dist/{init-wgiBUmyW.cjs → init-DFMiP2ZH.cjs} +2 -2
  169. package/dist/{init-dsYkC_0B.js → init-DFjT8YvT.js} +4 -4
  170. package/dist/{init-BUpFzYsD.cjs → init-DGjXwWs2.cjs} +4 -4
  171. package/dist/{init-CaIkrXal.cjs → init-DHrCbpkW.cjs} +8 -8
  172. package/dist/{init-DJzEpODO.js → init-DU5yYX5u.js} +16 -15
  173. package/dist/{init-B6Eg_o6G.cjs → init-DUF4ar8P.cjs} +8 -8
  174. package/dist/init-DWvkFDkc.cjs +1176 -0
  175. package/dist/{init-BC2CZZOu2.cjs → init-DY1unoGb.cjs} +72 -933
  176. package/dist/{init-vfy9DW_E.js → init-DlqJuHhl.js} +5 -5
  177. package/dist/{init-w7xl6LsP.js → init-Dnsv155v.js} +3 -3
  178. package/dist/{init-kVOOiU0-.cjs → init-DrkOb-wd.cjs} +3 -4
  179. package/dist/{init-BJE1ry0O.js → init-DuYENxci.js} +8 -8
  180. package/dist/{init-CqqmtAIK.cjs → init-Dv3zKj0r.cjs} +5 -5
  181. package/dist/{init-BFxlQAD8.cjs → init-Dy-05ktr.cjs} +2 -2
  182. package/dist/{init-MDKB6tGI2.cjs → init-E7c40ddW.cjs} +124 -1329
  183. package/dist/{init-B2OUhY5T.cjs → init-EP0CUWNK.cjs} +6 -6
  184. package/dist/{init-BSd7mznK.js → init-Fw89ZmrR.js} +3 -4
  185. package/dist/{init-DMi2FGpf.cjs → init-GsT2AEa4.cjs} +15 -15
  186. package/dist/{init-DfKPgD21.js → init-KQnIdm39.js} +2 -4
  187. package/dist/{init-BSP_xcpB.js → init-NCjgwCZy.js} +3 -3
  188. package/dist/{init-kvn5FlPS.cjs → init-NdhG_VrF.cjs} +5 -7
  189. package/dist/{init-BAWMHL1k.js → init-Y3mkB4XS.js} +2 -2
  190. package/dist/{init-DypZuehC.cjs → init-ZjNDDC-T.cjs} +17 -16
  191. package/dist/{init-BewG6swt.cjs → init-rmt7-fQE.cjs} +3 -3
  192. package/dist/{init-CwLZXfTl.js → init-vqxOQNZi.js} +1 -1
  193. package/dist/{init-CSURGyW_.cjs → init-zUoRG_EC2.cjs} +1 -1
  194. package/dist/{is-retriable-error-CmFR20pe.js → is-retriable-error-BUiVJDwH.js} +2 -2
  195. package/dist/{is-retriable-error-D2yo0_lS.cjs → is-retriable-error-Dpt860if.cjs} +13 -12
  196. package/dist/{jubjub-authoriser-BBJcD2uC.js → jubjub-authoriser-BxE3oN2y.js} +9 -8
  197. package/dist/{jubjub-authoriser-BlXt4Z-D.cjs → jubjub-authoriser-C6SDEP9I.cjs} +10 -9
  198. package/dist/{key-source-D2tTAag-.cjs → key-source-5oUBFiC7.cjs} +11 -234
  199. package/dist/{key-source-CcLTx8HK.js → key-source-B08HukZg.js} +3 -214
  200. package/dist/{key-value-store-DZcNDB3n.js → key-value-store--W3SrMaw.js} +1 -1
  201. package/dist/{key-value-store-Htj4RgMe.cjs → key-value-store-C2Xt5Emp.cjs} +6 -6
  202. package/dist/{keyDerivation-QGesIMbS.js → keyDerivation-D3k9XyHg.js} +5 -5
  203. package/dist/{keyDerivation-DcKRUCVh.cjs → keyDerivation-u0nBA93T.cjs} +8 -8
  204. package/dist/{lace-context-DMRJ87Vg.js → lace-context-BZciB9c7.js} +4 -4
  205. package/dist/{lace-context-BN0b_ury.cjs → lace-context-DgR6vLli.cjs} +7 -7
  206. package/dist/{lib-JYqcAX0c.js → lib--iqvW4O_.js} +1 -1
  207. package/dist/{lib-BC-62Byh.cjs → lib-Yk6Upl5D.cjs} +20 -20
  208. package/dist/{Address-AMKTo-dA.cjs → libsodium-wrappers-BhbOA8dQ.js} +34 -17214
  209. package/dist/{midnight-engine-B7D2hbHo.js → midnight-engine-DpemplKO.js} +1 -1
  210. package/dist/{midnight-engine-D5ikN_5F.cjs → midnight-engine-xU1wotne.cjs} +2 -2
  211. package/dist/{midnight-wallet-BOdFD6SX.cjs → midnight-wallet-XTZc2li7.cjs} +1 -1
  212. package/dist/midnight.cjs +48 -54
  213. package/dist/midnight.d.ts +233 -256
  214. package/dist/midnight.js +29 -34
  215. package/dist/{modules-cardano-Baqj2GZH.cjs → modules-cardano-CtWLntet.cjs} +41 -45
  216. package/dist/{modules-cardano-4IgYsKeN.js → modules-cardano-D2dkeKHY.js} +35 -39
  217. package/dist/{node-relay-CkgpDObu.js → node-relay-Cv0cNknM.js} +2 -2
  218. package/dist/{node-relay-BEtqi_vU.cjs → node-relay-DblH5fKv.cjs} +3 -3
  219. package/dist/{fees-6C2uEWFK.js → outputs-Bd2yZVjx.js} +207 -140
  220. package/dist/{fees-DtC71fOx.cjs → outputs-CJoQBIA2.cjs} +330 -160
  221. package/dist/{pbkdf2-B1veireP.cjs → pbkdf2-CIW-oWrm.cjs} +79 -64
  222. package/dist/{providers--Hg9iF5v.cjs → providers-BLgJ0uQs.cjs} +4 -4
  223. package/dist/{providers-DQ5_3h2l.js → providers-CwnT4vEE.js} +4 -4
  224. package/dist/{redacted-4SJPqt-G.js → redacted-BmE2aXqr.js} +1 -1
  225. package/dist/{redacted-DwxIDdIF.cjs → redacted-CRZJLS3w.cjs} +1 -1
  226. package/dist/{repo-slice-BB_W-6OL.cjs → repo-slice-7X4AYYVm.cjs} +1 -1
  227. package/dist/{reselect-kP4DaAII.cjs → reselect-Bd94u0K-.cjs} +1 -1
  228. package/dist/{retry-config-BGv5q5QM.cjs → retry-config-BaCfVC1H.cjs} +6 -6
  229. package/dist/{retry-config-Bu5Yn5ua.js → retry-config-Dmgt28wM.js} +1 -1
  230. package/dist/{safe-buffer-CqGpSFCQ.js → safe-buffer-B_vMqJWU.js} +2 -2
  231. package/dist/{safe-buffer-DbXbwhUQ.cjs → safe-buffer-DYOwEfHB.cjs} +4 -4
  232. package/dist/{sdk-Cf__6dDe.js → sdk-DIcjlgLF.js} +44 -52
  233. package/dist/{sdk-Bm9-P0L-.cjs → sdk-Dgal10kG.cjs} +68 -74
  234. package/dist/{sdk-init-9TG1ZvHF.cjs → sdk-init-BKkqFtWZ.cjs} +33 -37
  235. package/dist/{sdk-init-Ce3mD-8F.js → sdk-init-DNd-oQXp.js} +19 -22
  236. package/dist/seam-cardano-B_etH4F4.js +8 -0
  237. package/dist/secret-box-DUR0ACYz.js +1346 -0
  238. package/dist/secret-box-DrjLZuS1.cjs +1352 -0
  239. package/dist/{send-proof-progress-DtAcrMP6.cjs → send-proof-progress-dDoqIohG.cjs} +1 -1
  240. package/dist/serializable-BHdKIgk3.js +16 -0
  241. package/dist/serializable-BxHkoPdk.cjs +22 -0
  242. package/dist/{side-effects-C3BhLrdP.js → side-effects-BnqYz7Nl.js} +13 -13
  243. package/dist/{side-effects-DG0R-KFc.cjs → side-effects-CngaeXi0.cjs} +16 -16
  244. package/dist/{sign-bitcoin-transaction-with-seed-C7vq9om8.js → sign-bitcoin-transaction-with-seed-D4z62-jV.js} +5 -5
  245. package/dist/{sign-bitcoin-transaction-with-seed-Ds1dwzan.cjs → sign-bitcoin-transaction-with-seed-DsLYXnCY.cjs} +7 -7
  246. package/dist/{signer-DbSxjk0F.cjs → signer-3fk8lZtE.cjs} +2 -2
  247. package/dist/{signer-CX21Ups_.cjs → signer-CsL28DrK.cjs} +1 -1
  248. package/dist/{signer-Cnn9q9oY.js → signer-DGluibtn.js} +1 -1
  249. package/dist/{signer--2I6poMD.js → signer-RqB5pu3K.js} +1 -1
  250. package/dist/{signer-factory-PrpsGX-8.js → signer-factory-B7PMe3lQ.js} +6 -11
  251. package/dist/{signer-factory-C4pgsiJi.js → signer-factory-BA7WFJVZ.js} +15 -14
  252. package/dist/{signer-factory-B5oFuUZ-.cjs → signer-factory-CORIG4Yl.cjs} +10 -10
  253. package/dist/{signer-factory-BGE4nL4k.js → signer-factory-Cd2TwD50.js} +8 -8
  254. package/dist/{signer-factory-BAt8FPNc.cjs → signer-factory-Cwd6o-lG.cjs} +16 -16
  255. package/dist/{signer-factory-D95jQIPV.cjs → signer-factory-DduwpsQj.cjs} +5 -11
  256. package/dist/{slice-DLflttAu.cjs → slice-6sP0Qs5V.cjs} +74 -275
  257. package/dist/{slice-CaMfviYu.cjs → slice-7G2xxYKJ.cjs} +5 -5
  258. package/dist/{slice-WMMMc1Xv.cjs → slice-B4CdYoPu.cjs} +3 -3
  259. package/dist/{slice-a8VuIqzS.cjs → slice-BOyAAaj0.cjs} +8 -8
  260. package/dist/{slice-Dongunf7.cjs → slice-Bg6HEr3K.cjs} +5 -5
  261. package/dist/{slice-C4toRM6A.cjs → slice-BiRsDKOK.cjs} +7 -7
  262. package/dist/{slice-DcO-iNz2.js → slice-Bk0Sv05J.js} +1 -1
  263. package/dist/{slice-bRASyM-m.js → slice-BnTJeMOb.js} +6 -6
  264. package/dist/{slice-B9QKuhi0.cjs → slice-Bs2aMERu.cjs} +4 -4
  265. package/dist/{slice-DtitVc9L.cjs → slice-C34iOOUH.cjs} +9 -9
  266. package/dist/{slice-Bf4enJKZ.cjs → slice-C9TT5KhY.cjs} +20 -21
  267. package/dist/{slice-B-xJcuT1.js → slice-CK07EBCo.js} +4 -4
  268. package/dist/{slice-Dn0WojD7.js → slice-CU80pbiu.js} +3 -3
  269. package/dist/{slice-C1zOeseG.js → slice-CqVNnz-j.js} +54 -245
  270. package/dist/{slice-DpufJAjJ.js → slice-CwyYrh1H.js} +2 -2
  271. package/dist/{slice-CgeRsYRg.js → slice-D-9aPKG-.js} +6 -6
  272. package/dist/{slice-ByNWnxKS.js → slice-DBpJ2QGf.js} +7 -8
  273. package/dist/{slice-RQRLciQc.cjs → slice-DQv_RhsI.cjs} +1 -1
  274. package/dist/{slice-DlTEqIoI.js → slice-Da426sf9.js} +1 -1
  275. package/dist/{slice-C8YVv4Qn.cjs → slice-DayJvMRD.cjs} +2 -2
  276. package/dist/{slice-DimtxfAT.cjs → slice-DnG-yvpI.cjs} +3 -3
  277. package/dist/{slice-BzJgg9FS.cjs → slice-Dqw1ecum.cjs} +1 -1
  278. package/dist/{slice-D0VzpMbY.js → slice-DyNs7oWp.js} +2 -2
  279. package/dist/{slice-hNyKbDry.js → slice-GwiiJRoq.js} +3 -3
  280. package/dist/{slice-B4QOYaOG.cjs → slice-HjLXJyQG2.cjs} +1 -1
  281. package/dist/{src-BayYMIjw.cjs → src-BDzYIksE.cjs} +18 -73
  282. package/dist/{src-CgINPlSx.js → src-BFoefPv_.js} +7 -57
  283. package/dist/{store-C7AneHEY.cjs → store-B1Lq3cEf.cjs} +2 -2
  284. package/dist/{store-AUlTfcI_.js → store-DuBG8qh5.js} +2 -2
  285. package/dist/{submit-bitcoin-tx-CE0AD-xH.js → submit-bitcoin-tx-BkZIeF4b.js} +26 -26
  286. package/dist/{submit-bitcoin-tx-CK10OTfQ.cjs → submit-bitcoin-tx-DZNQgihl.cjs} +28 -28
  287. package/dist/{toEmpty-Db6V94Mf.cjs → toEmpty-CYAbupM4.cjs} +1 -1
  288. package/dist/{token-id-mapper-CSeLzM4o.cjs → token-id-mapper-Bnds3xKH.cjs} +2 -2
  289. package/dist/{token-id-mapper-BVau2RXa.js → token-id-mapper-CnKHQ8DV.js} +1 -1
  290. package/dist/{token-id-mapper-D0wFdbOy.cjs → token-id-mapper-IApjwuJb.cjs} +3 -3
  291. package/dist/{token-id-mapper-ClBeIdJR.js → token-id-mapper-qx7XfH0b.js} +2 -2
  292. package/dist/tokens-Cevp7rdU.cjs +62 -0
  293. package/dist/tokens-Diw4MLRM.js +44 -0
  294. package/dist/unwrap-provider-result-BZSiwabU.js +32 -0
  295. package/dist/unwrap-provider-result-ZqfBsTkk.cjs +39 -0
  296. package/dist/{util-D1YlKzrc.cjs → util-BeG7WXzM.cjs} +6 -6
  297. package/dist/{util-Cp1h58uD.cjs → util-CzeB3hfa.cjs} +6 -6
  298. package/dist/{util-DHxtzUzY.js → util-D1e0skzp.js} +4 -4
  299. package/dist/{utils-DcnoETEP.js → utils-BfBEUvWA.js} +1 -1
  300. package/dist/{utils-Du0YXRcU.cjs → utils-BfMdr_1w.cjs} +3 -3
  301. package/dist/{utils-fF_rnZe3.js → utils-CvAW5Yw7.js} +3 -3
  302. package/dist/{utils-DYf4iZKX.cjs → utils-DsElZgCI.cjs} +1 -1
  303. package/dist/{v8Signatures-ClGpA8mS.cjs → v8Signatures-CO_Uloy7.cjs} +1 -1
  304. package/dist/{vote-delegation-tx-builder-DRJwPXkD.js → vote-delegation-tx-builder-CQjGvVNZ.js} +9 -13
  305. package/dist/{vote-delegation-tx-builder-BjZxCOd3.cjs → vote-delegation-tx-builder-CtdIgaIt.cjs} +10 -13
  306. package/dist/{watch-imlsRZDp.cjs → watch-Cz1J42um.cjs} +155 -157
  307. package/dist/{watch-FGE4B_Ge.js → watch-Z53L4yoK.js} +14 -16
  308. package/dist/{while-active-I2TlHtm7.cjs → while-active-Dsowp0Fi.cjs} +1 -1
  309. package/package.json +2 -4
  310. package/dist/BigIntMath-CBciEQn2.cjs +0 -26
  311. package/dist/BigIntMath-X3EniYDo.js +0 -21
  312. package/dist/Bip32Account-CaW1zC9Y.js +0 -78
  313. package/dist/Bip32Account-DOaGmKpv.cjs +0 -83
  314. package/dist/Cardano-B-gyqBBD.js +0 -311
  315. package/dist/Cardano-BQ_af0Y3.cjs +0 -322
  316. package/dist/ChainId-CNPSU9nn.cjs +0 -50
  317. package/dist/ChainId-CeoG8Sov.js +0 -33
  318. package/dist/Ed25519PublicKey-B3QcR0J2.cjs +0 -88
  319. package/dist/Ed25519PublicKey-DIE19xHg.js +0 -83
  320. package/dist/InMemoryKeyAgent-Bc_xZY-v.cjs +0 -652
  321. package/dist/InMemoryKeyAgent-D8T3vtXy.js +0 -631
  322. package/dist/PaymentAddress-B4n1KZMx.cjs +0 -138
  323. package/dist/PaymentAddress-Cml3EA1n.js +0 -103
  324. package/dist/Percent-Cfuw5YyL.cjs +0 -11
  325. package/dist/Percent-DpvyJ_93.js +0 -5
  326. package/dist/SodiumBip32Ed25519-BaD-kjyx.cjs +0 -380
  327. package/dist/SodiumBip32Ed25519-DCikAMsl.js +0 -363
  328. package/dist/_md-6zV2Cme0.cjs +0 -684
  329. package/dist/_md-gbUqlhqd.js +0 -399
  330. package/dist/account-call-BExOpZoo.js +0 -3
  331. package/dist/account-call-Cvj7viaq.cjs +0 -4
  332. package/dist/bip32ed25519-CRiG-Kjg.cjs +0 -13
  333. package/dist/bip32ed25519-E-fCUZNv.js +0 -13
  334. package/dist/bip39-DZomfqeY.js +0 -9
  335. package/dist/bip39-MAck9iod.cjs +0 -26
  336. package/dist/blake2b-BL-eR5G2.js +0 -13
  337. package/dist/blake2b-Iy324FwH.cjs +0 -13
  338. package/dist/cardano-tx-id.vo-DJ70NC0-.js +0 -5
  339. package/dist/cardano-tx-id.vo-lnyO9XaW.cjs +0 -10
  340. package/dist/device-readers-BPDz2oqa.js +0 -3
  341. package/dist/dist-B00GN41m.js +0 -141
  342. package/dist/dist-MJof_Ky1.cjs +0 -145
  343. package/dist/equals-3gajbRxE.cjs +0 -12
  344. package/dist/equals-C-FatJfx.js +0 -5
  345. package/dist/errors-CAOTqN4_.js +0 -109
  346. package/dist/errors-lg3enbYs.cjs +0 -169
  347. package/dist/gated-call-DdNOQh_Z.js +0 -3
  348. package/dist/gated-call-wAB15GtN.cjs +0 -4
  349. package/dist/grant-status-CDmZpx32.js +0 -296
  350. package/dist/grant-status-CQtwjLsA.cjs +0 -337
  351. package/dist/in-memory-wallet-integration-mIEc8EfR.js +0 -11
  352. package/dist/init-BF-a2p6E.cjs +0 -2421
  353. package/dist/isNotNil-Be7gCY0m.js +0 -4
  354. package/dist/isNotNil-CrYIUFry.cjs +0 -9
  355. package/dist/logging-BAMMfn5j.js +0 -25
  356. package/dist/logging-CbxgIX9V.cjs +0 -30
  357. package/dist/metadatum-BGvFqGPt.cjs +0 -58
  358. package/dist/metadatum-BVocMYy_.js +0 -47
  359. package/dist/outputs-5qdW8s-f.js +0 -196
  360. package/dist/outputs-BEM1GPMf.cjs +0 -339
  361. package/dist/secret-box-CSmRp6Tt.js +0 -3777
  362. package/dist/secret-box-ZfbYwBgS.cjs +0 -6970
  363. package/dist/serializable-F7OtYl8d.js +0 -236
  364. package/dist/serializable-n3UoxbZc.cjs +0 -242
  365. package/dist/sha2-DaRJZOjk.cjs +0 -390
  366. package/dist/sha2-c4sB6peD.js +0 -378
  367. package/dist/subtractValueQuantities-BuDJVxq6.js +0 -140
  368. package/dist/subtractValueQuantities-CqR606HV.cjs +0 -165
  369. package/dist/time-ByoKevdZ.js +0 -16
  370. package/dist/time-qD7edGU0.cjs +0 -27
  371. package/dist/types-By-XeXWg.js +0 -53
  372. package/dist/types-Cn6WlQV6.cjs +0 -100
  373. /package/dist/{account-id.vo-DYZBZQsz.cjs → account-id.vo-DwqFjK5u.cjs} +0 -0
  374. /package/dist/{account-id.vo-KDTWJ-W5.js → account-id.vo-OPz2v-JZ.js} +0 -0
  375. /package/dist/{actions-Cwj0ApZf.js → actions-iLXdgL5Y.js} +0 -0
  376. /package/dist/{activity-type-BPXxdHBP.cjs → activity-type-Ch6ljxBy.cjs} +0 -0
  377. /package/dist/{activity-type-C1geyPsH.js → activity-type-GsJGWs-3.js} +0 -0
  378. /package/dist/{asyncoption-DZQGfznq.js → asyncoption-CruEYOBI.js} +0 -0
  379. /package/dist/{asyncoption-CYcZNBRM.cjs → asyncoption-i0VbqVTq.cjs} +0 -0
  380. /package/dist/{bignum.vo-Co6tMH2q.js → bignum.vo-CEXOIew0.js} +0 -0
  381. /package/dist/{bignum.vo-Du-bpvar.cjs → bignum.vo-hx2kuqlA.cjs} +0 -0
  382. /package/dist/{bip32-EPpcFrpH.cjs → bip32-D6wd_QMn.cjs} +0 -0
  383. /package/dist/{bitcoin-data-provider-LN_8oamW.js → bitcoin-data-provider-BYPSmuZS.js} +0 -0
  384. /package/dist/{bitcoin-data-provider-D0OT_Uiu.cjs → bitcoin-data-provider-w1oEDSU3.cjs} +0 -0
  385. /package/dist/{blockchain-network-id.vo-DEQ14dYj.cjs → blockchain-network-id.vo-BAKEwGjG.cjs} +0 -0
  386. /package/dist/{blockchain-network-id.vo-C6Jowh8t.js → blockchain-network-id.vo-CiVykuqG.js} +0 -0
  387. /package/dist/{composite-signer-factory-D9RWY-1V.js → composite-signer-factory-CR8YHA1y.js} +0 -0
  388. /package/dist/{composite-signer-factory-v4Pxn8bA.cjs → composite-signer-factory-m5cVs9h_.cjs} +0 -0
  389. /package/dist/{device-commitment-hex.vo-D9FsYLn7.js → device-commitment-hex.vo-5wFtQvDS.js} +0 -0
  390. /package/dist/{device-commitment-hex.vo-BIUYUNz1.cjs → device-commitment-hex.vo-CT3RmAug.cjs} +0 -0
  391. /package/dist/{enc-key-circuits-yjPHbuo_.cjs → enc-key-circuits-C8fGAMEF.cjs} +0 -0
  392. /package/dist/{enc-key-circuits-0Dud78IB.js → enc-key-circuits-DA2Xs3vZ.js} +0 -0
  393. /package/dist/{english-BZ_ebp2-.cjs → english-Byb9M0E_.cjs} +0 -0
  394. /package/dist/{errors-pkQdxW-7.js → errors-DIJTAsLa.js} +0 -0
  395. /package/dist/{feature-flag-key.vo-9reURsOQ.js → feature-flag-key.vo-DN_-4-sG.js} +0 -0
  396. /package/dist/{feature-flag-key.vo-KTIdnzYX.cjs → feature-flag-key.vo-RlfHL3hq.cjs} +0 -0
  397. /package/dist/{first-state-of-status-BscbKj_t.js → first-state-of-status-unPynOuM.js} +0 -0
  398. /package/dist/{grant-circuits-BKJrMSNo.cjs → grant-circuits-_1x--moV.cjs} +0 -0
  399. /package/dist/{grant-circuits-D53wmGyr.js → grant-circuits-swuzEdUl.js} +0 -0
  400. /package/dist/{init-DtxxFaCx.js → init-829HRYcz.js} +0 -0
  401. /package/dist/{init-B0hAl9w6.js → init-DHaMxHM1.js} +0 -0
  402. /package/dist/{init-CHk1fvJ2.js → init-atCFur0v.js} +0 -0
  403. /package/dist/{is-redux-persist-state-C5luvPEH.cjs → is-redux-persist-state-BCFnSm36.cjs} +0 -0
  404. /package/dist/{is-redux-persist-state-CjcqyCoh.js → is-redux-persist-state-yBfq0h_E.js} +0 -0
  405. /package/dist/{midnight-account-id.vo--Vcx34Xk.cjs → midnight-account-id.vo-0x9X-r3l.cjs} +0 -0
  406. /package/dist/{midnight-account-id.vo-BuB8fiVO.js → midnight-account-id.vo-DjCAGcqc.js} +0 -0
  407. /package/dist/{midnight-wallet-CAqZrNVe.js → midnight-wallet-DIsAlSn6.js} +0 -0
  408. /package/dist/{pending-operation-CfTUNQVD.cjs → pending-operation-B0_P78Jo.cjs} +0 -0
  409. /package/dist/{pending-operation-Ljijb1Uh.js → pending-operation-BIS6mpjB.js} +0 -0
  410. /package/dist/{repo-slice-BQlssw9M.js → repo-slice-RxFm0zDZ.js} +0 -0
  411. /package/dist/{reselect-JIgawvPe.js → reselect-CGoLzEPv.js} +0 -0
  412. /package/dist/{chunk-9hOWP6kD.cjs → rolldown-runtime-Br2OG8yv.cjs} +0 -0
  413. /package/dist/{chunk-D6g4UhsZ.js → rolldown-runtime-OvD0k9op.js} +0 -0
  414. /package/dist/{send-proof-progress-Dx2cUz1B.js → send-proof-progress-DTK3ZuYB.js} +0 -0
  415. /package/dist/{slice-DJelVt0i.js → slice-C4uXUT7S.js} +0 -0
  416. /package/dist/{slice-D14F78Ca.js → slice-CxKWDuBP.js} +0 -0
  417. /package/dist/{slice-5dGBAz6w.js → slice-obCSLm1x.js} +0 -0
  418. /package/dist/{src-Cv1ifqbe.js → src-BlxEp6Mm.js} +0 -0
  419. /package/dist/{src-CeBNkonz.cjs → src-Cqp0B2M_.cjs} +0 -0
  420. /package/dist/{submit-BuBCVi-l.cjs → submit-BBYjnZu8.cjs} +0 -0
  421. /package/dist/{submit-D37lxFrK.js → submit-D_yxYM_T.js} +0 -0
  422. /package/dist/{sync-operation-utils--Z_IQfyW.cjs → sync-operation-utils-C9kcmjKH.cjs} +0 -0
  423. /package/dist/{sync-operation-utils-BimBpvI3.js → sync-operation-utils-KT5Y9yFK.js} +0 -0
  424. /package/dist/{time.vo-TmYE-_Y2.cjs → time.vo-D3wWRw9L.cjs} +0 -0
  425. /package/dist/{time.vo-C17-tYq3.js → time.vo-tNheinXm.js} +0 -0
  426. /package/dist/{toEmpty-Djj-QbpI.js → toEmpty-8Zax1MPd.js} +0 -0
  427. /package/dist/{token-id.vo-IDI9C_Qm.js → token-id.vo-Bvwhr3ZE.js} +0 -0
  428. /package/dist/{token-id.vo-CZ622zcZ.cjs → token-id.vo-DXv5uS9n.cjs} +0 -0
  429. /package/dist/{types-DXSxXGz0.js → types-B8uiJn-X.js} +0 -0
  430. /package/dist/{types-DTE1ctDB.js → types-CJT6XF2c.js} +0 -0
  431. /package/dist/{types-Dls6Z5gV.cjs → types-CLRUYpfe.cjs} +0 -0
  432. /package/dist/{types-BhzypKMS.cjs → types-DWbVZpnF.cjs} +0 -0
  433. /package/dist/{types-46lh8O9r.js → types-T0cjaR75.js} +0 -0
  434. /package/dist/{types-BhhNR1_B.cjs → types-Zj78LtYu.cjs} +0 -0
  435. /package/dist/{util-DHppXj7U.js → util-C8a4fA9p.js} +0 -0
  436. /package/dist/{util-selector-BWmHpo92.js → util-selector-BSTsxgne.js} +0 -0
  437. /package/dist/{util-selector-glXkO-jR.cjs → util-selector-BWPH68_l.cjs} +0 -0
  438. /package/dist/{while-active-CDBnUlQA.js → while-active-B0lWy_6l.js} +0 -0
@@ -1,27 +1,27 @@
1
- const require_Address = require("./Address-AMKTo-dA.cjs");
2
- const require_fees = require("./fees-DtC71fOx.cjs");
3
- const require_subtractValueQuantities = require("./subtractValueQuantities-CqR606HV.cjs");
4
- const require_ChainId = require("./ChainId-CNPSU9nn.cjs");
1
+ require("./rolldown-runtime-Br2OG8yv.cjs");
2
+ let _laceio_cardano_crypto = require("@laceio/cardano/crypto");
3
+ let _laceio_cardano_core = require("@laceio/cardano/core");
4
+ let _laceio_cardano_tx_construction = require("@laceio/cardano/tx-construction");
5
5
  //#region ../../packages/contract/cardano-context/src/common/time.ts
6
6
  /**
7
7
  * Predefined slot configurations for different Cardano networks.
8
8
  */
9
9
  const SLOT_CONFIG_NETWORK = {
10
- [require_ChainId.NetworkMagics.Mainnet]: {
10
+ [_laceio_cardano_core.Cardano.NetworkMagics.Mainnet]: {
11
11
  zeroTime: 1596059091e3,
12
12
  zeroSlot: 4492800,
13
13
  slotLength: 1e3,
14
14
  startEpoch: 208,
15
15
  epochLength: 432e3
16
16
  },
17
- [require_ChainId.NetworkMagics.Preview]: {
17
+ [_laceio_cardano_core.Cardano.NetworkMagics.Preview]: {
18
18
  zeroTime: 1666656e6,
19
19
  zeroSlot: 0,
20
20
  slotLength: 1e3,
21
21
  startEpoch: 0,
22
22
  epochLength: 86400
23
23
  },
24
- [require_ChainId.NetworkMagics.Preprod]: {
24
+ [_laceio_cardano_core.Cardano.NetworkMagics.Preprod]: {
25
25
  zeroTime: 16557696e5,
26
26
  zeroSlot: 86400,
27
27
  slotLength: 1e3,
@@ -63,7 +63,7 @@ const unixTimeToEnclosingSlot = (unixTime, slotConfig) => {
63
63
  const resolveSlotNo = (network, milliseconds = Date.now()) => {
64
64
  const slotConfig = SLOT_CONFIG_NETWORK[network];
65
65
  if (!slotConfig) throw new Error("Slot config of network magic is not supported: " + network);
66
- return require_Address.Slot(unixTimeToEnclosingSlot(milliseconds, slotConfig));
66
+ return _laceio_cardano_core.Cardano.Slot(unixTimeToEnclosingSlot(milliseconds, slotConfig));
67
67
  };
68
68
  //#endregion
69
69
  //#region ../../packages/contract/cardano-context/src/signing/getUniqueSigners.ts
@@ -85,7 +85,7 @@ const addIf = (set, v) => {
85
85
  * @param cred - The credential object to inspect.
86
86
  */
87
87
  const addCredentialKeyHash = (out, cred) => {
88
- if (cred?.type === require_Address.CredentialType.KeyHash && cred.hash) out.add(cred.hash);
88
+ if (cred?.type === _laceio_cardano_core.Cardano.CredentialType.KeyHash && cred.hash) out.add(cred.hash);
89
89
  };
90
90
  /**
91
91
  * Extracts the payment key hash from a Cardano address.
@@ -97,21 +97,21 @@ const addCredentialKeyHash = (out, cred) => {
97
97
  * @returns The key hash if present, otherwise `undefined`.
98
98
  */
99
99
  const paymentKeyHashFromAddress = (inputAddress) => {
100
- const addressObject = typeof inputAddress === "string" ? require_Address.Address.fromBech32(inputAddress) : inputAddress;
100
+ const addressObject = typeof inputAddress === "string" ? _laceio_cardano_core.Cardano.Address.fromBech32(inputAddress) : inputAddress;
101
101
  const asBase = addressObject.asBase();
102
102
  if (asBase) {
103
103
  const cred = asBase.getPaymentCredential();
104
- if (cred?.type === require_Address.CredentialType.KeyHash) return cred.hash;
104
+ if (cred?.type === _laceio_cardano_core.Cardano.CredentialType.KeyHash) return cred.hash;
105
105
  }
106
106
  const asEnterprise = addressObject.asEnterprise();
107
107
  if (asEnterprise) {
108
108
  const cred = asEnterprise.getPaymentCredential();
109
- if (cred?.type === require_Address.CredentialType.KeyHash) return cred.hash;
109
+ if (cred?.type === _laceio_cardano_core.Cardano.CredentialType.KeyHash) return cred.hash;
110
110
  }
111
111
  const asPointer = addressObject.asPointer();
112
112
  if (asPointer) {
113
113
  const cred = asPointer.getPaymentCredential();
114
- if (cred?.type === require_Address.CredentialType.KeyHash) return cred.hash;
114
+ if (cred?.type === _laceio_cardano_core.Cardano.CredentialType.KeyHash) return cred.hash;
115
115
  }
116
116
  };
117
117
  /**
@@ -148,7 +148,7 @@ const addInputSignersFromInputs = (out, txBody, resolvedInputs) => {
148
148
  */
149
149
  const addWithdrawals = (out, withdrawals) => {
150
150
  for (const withdrawal of withdrawals ?? []) {
151
- const credential = require_Address.Address.fromString(withdrawal.stakeAddress)?.asReward()?.getPaymentCredential();
151
+ const credential = _laceio_cardano_core.Cardano.Address.fromString(withdrawal.stakeAddress)?.asReward()?.getPaymentCredential();
152
152
  addCredentialKeyHash(out, credential);
153
153
  }
154
154
  };
@@ -163,29 +163,29 @@ const addWithdrawals = (out, withdrawals) => {
163
163
  */
164
164
  const addCertificates = (out, certs) => {
165
165
  for (const certificate of certs ?? []) switch (certificate.__typename) {
166
- case require_Address.CertificateType.VoteDelegation:
167
- case require_Address.CertificateType.StakeVoteDelegation:
168
- case require_Address.CertificateType.StakeRegistrationDelegation:
169
- case require_Address.CertificateType.VoteRegistrationDelegation:
170
- case require_Address.CertificateType.StakeVoteRegistrationDelegation:
171
- case require_Address.CertificateType.Registration:
172
- case require_Address.CertificateType.Unregistration:
173
- case require_Address.CertificateType.StakeDeregistration:
174
- case require_Address.CertificateType.StakeDelegation:
166
+ case _laceio_cardano_core.Cardano.CertificateType.VoteDelegation:
167
+ case _laceio_cardano_core.Cardano.CertificateType.StakeVoteDelegation:
168
+ case _laceio_cardano_core.Cardano.CertificateType.StakeRegistrationDelegation:
169
+ case _laceio_cardano_core.Cardano.CertificateType.VoteRegistrationDelegation:
170
+ case _laceio_cardano_core.Cardano.CertificateType.StakeVoteRegistrationDelegation:
171
+ case _laceio_cardano_core.Cardano.CertificateType.Registration:
172
+ case _laceio_cardano_core.Cardano.CertificateType.Unregistration:
173
+ case _laceio_cardano_core.Cardano.CertificateType.StakeDeregistration:
174
+ case _laceio_cardano_core.Cardano.CertificateType.StakeDelegation:
175
175
  addCredentialKeyHash(out, certificate.stakeCredential);
176
176
  break;
177
- case require_Address.CertificateType.RegisterDelegateRepresentative:
178
- case require_Address.CertificateType.UnregisterDelegateRepresentative:
179
- case require_Address.CertificateType.UpdateDelegateRepresentative:
177
+ case _laceio_cardano_core.Cardano.CertificateType.RegisterDelegateRepresentative:
178
+ case _laceio_cardano_core.Cardano.CertificateType.UnregisterDelegateRepresentative:
179
+ case _laceio_cardano_core.Cardano.CertificateType.UpdateDelegateRepresentative:
180
180
  addCredentialKeyHash(out, certificate.dRepCredential);
181
181
  break;
182
- case require_Address.CertificateType.StakeRegistration:
183
- case require_Address.CertificateType.PoolRegistration:
184
- case require_Address.CertificateType.PoolRetirement:
185
- case require_Address.CertificateType.MIR:
186
- case require_Address.CertificateType.GenesisKeyDelegation:
187
- case require_Address.CertificateType.AuthorizeCommitteeHot:
188
- case require_Address.CertificateType.ResignCommitteeCold:
182
+ case _laceio_cardano_core.Cardano.CertificateType.StakeRegistration:
183
+ case _laceio_cardano_core.Cardano.CertificateType.PoolRegistration:
184
+ case _laceio_cardano_core.Cardano.CertificateType.PoolRetirement:
185
+ case _laceio_cardano_core.Cardano.CertificateType.MIR:
186
+ case _laceio_cardano_core.Cardano.CertificateType.GenesisKeyDelegation:
187
+ case _laceio_cardano_core.Cardano.CertificateType.AuthorizeCommitteeHot:
188
+ case _laceio_cardano_core.Cardano.CertificateType.ResignCommitteeCold:
189
189
  default: break;
190
190
  }
191
191
  };
@@ -209,21 +209,21 @@ const addVotingProcedures = (out, votingProcedures) => {
209
209
  * @param scripts - Optional list of scripts to process.
210
210
  */
211
211
  const getNativeScriptKeyPaths = (out, scripts) => {
212
- const nativeScripts = scripts?.filter(require_Address.isNativeScript);
212
+ const nativeScripts = scripts?.filter(_laceio_cardano_core.Cardano.isNativeScript);
213
213
  if (!nativeScripts?.length) return;
214
214
  for (const nativeScript of nativeScripts) switch (nativeScript.kind) {
215
- case require_Address.NativeScriptKind.RequireSignature:
215
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireSignature:
216
216
  out.add(nativeScript.keyHash);
217
217
  break;
218
- case require_Address.NativeScriptKind.RequireAllOf:
219
- case require_Address.NativeScriptKind.RequireAnyOf:
220
- case require_Address.NativeScriptKind.RequireNOf:
218
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireAllOf:
219
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireAnyOf:
220
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireNOf:
221
221
  getNativeScriptKeyPaths(out, nativeScript.scripts);
222
222
  break;
223
- case require_Address.NativeScriptKind.RequireTimeBefore:
224
- case require_Address.NativeScriptKind.RequireTimeAfter: break;
225
- case require_Address.NativeScriptKind.RequireGuard:
226
- if (nativeScript.credential.type === require_Address.CredentialType.KeyHash) out.add(nativeScript.credential.hash);
223
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireTimeBefore:
224
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireTimeAfter: break;
225
+ case _laceio_cardano_core.Cardano.NativeScriptKind.RequireGuard:
226
+ if (nativeScript.credential.type === _laceio_cardano_core.Cardano.CredentialType.KeyHash) out.add(nativeScript.credential.hash);
227
227
  break;
228
228
  }
229
229
  };
@@ -299,7 +299,7 @@ const MAX_OUTPUT_COIN = 45000000000000000n;
299
299
  * @param utxos - The list of UTxOs to aggregate.
300
300
  * @returns A value representing the combined total of all UTxOs.
301
301
  */
302
- const totalValueOf = (utxos) => require_fees.coalesceValueQuantities(utxos.map(([, out]) => out.value));
302
+ const totalValueOf = (utxos) => (0, _laceio_cardano_core.coalesceValueQuantities)(utxos.map(([, out]) => out.value));
303
303
  /**
304
304
  * Checks whether a value is exactly zero for both ADA and all assets.
305
305
  *
@@ -335,7 +335,7 @@ const assertCoversTarget = (change) => {
335
335
  * @returns `true` if the serialized value would exceed `maxValueSize`.
336
336
  */
337
337
  const isOversizedValue = (assets, maxValueSize) => {
338
- return require_Address.Value.fromCore({
338
+ return _laceio_cardano_core.Serialization.Value.fromCore({
339
339
  coins: MAX_OUTPUT_COIN,
340
340
  assets
341
341
  }).toCbor().length / 2 > maxValueSize;
@@ -410,7 +410,7 @@ const moveLargestCoinUtxo = (selection, remaining) => {
410
410
  const buildChangeOutputs = ({ selection, remaining, targetValue, changeAddress, protocolParameters }) => {
411
411
  const finalSelection = [...selection];
412
412
  const finalRemaining = [...remaining];
413
- let change = require_subtractValueQuantities.subtractValueQuantities([totalValueOf(finalSelection), targetValue]);
413
+ let change = (0, _laceio_cardano_core.subtractValueQuantities)([totalValueOf(finalSelection), targetValue]);
414
414
  assertCoversTarget(change);
415
415
  if (isZeroValue$1(change)) return {
416
416
  selection: finalSelection,
@@ -425,7 +425,7 @@ const buildChangeOutputs = ({ selection, remaining, targetValue, changeAddress,
425
425
  for (let iteration = 0;; iteration++) {
426
426
  if (iteration >= maxIterations) throw new Error("Change construction exceeded the UTxO pool bound; the top-up loop failed to terminate");
427
427
  parts = splitChangeAssets(change.assets, protocolParameters.maxValueSize);
428
- minAdaPerPart = parts.map((assets) => require_fees.minAdaRequired({
428
+ minAdaPerPart = parts.map((assets) => (0, _laceio_cardano_tx_construction.minAdaRequired)({
429
429
  address: changeAddress,
430
430
  value: {
431
431
  coins: 0n,
@@ -434,7 +434,7 @@ const buildChangeOutputs = ({ selection, remaining, targetValue, changeAddress,
434
434
  }, coinsPerUtxoByte));
435
435
  totalMinAda = minAdaPerPart.reduce((total, minAda) => total + minAda, 0n);
436
436
  if (change.coins >= totalMinAda) break;
437
- change = require_fees.coalesceValueQuantities([change, moveLargestCoinUtxo(finalSelection, finalRemaining)]);
437
+ change = (0, _laceio_cardano_core.coalesceValueQuantities)([change, moveLargestCoinUtxo(finalSelection, finalRemaining)]);
438
438
  }
439
439
  const remainder = change.coins - totalMinAda;
440
440
  return {
@@ -482,7 +482,7 @@ var EvaluatedFeeShortfallError = class extends Error {
482
482
  * @returns The combined value of all inputs (missing inputs contribute zero).
483
483
  */
484
484
  const coalesceValueQuantitiesInInputs = (inputs, resolvedInputs) => {
485
- return require_fees.coalesceValueQuantities(inputs.map((input) => {
485
+ return (0, _laceio_cardano_core.coalesceValueQuantities)(inputs.map((input) => {
486
486
  const utxo = resolvedInputs.find((element) => element[0].txId === input.txId && element[0].index === input.index);
487
487
  return utxo ? utxo[1].value : {
488
488
  coins: 0n,
@@ -510,7 +510,7 @@ const isZeroValue = (value) => {
510
510
  * @returns A structurally equivalent (detached) copy.
511
511
  */
512
512
  const cloneTx = (tx) => {
513
- return require_Address.Transaction.fromCore(tx).toCore();
513
+ return _laceio_cardano_core.Serialization.Transaction.fromCore(tx).toCore();
514
514
  };
515
515
  /**
516
516
  * Computes the size, in bytes, of a CBOR array header for a given element count.
@@ -559,7 +559,7 @@ const computeVkWitnessesCost = (signatureCount, minFeeCoefficient) => {
559
559
  */
560
560
  const assertChangeOutputsMeetMinAda = (changeOutputs, protocolParameters) => {
561
561
  for (const changeOutput of changeOutputs) {
562
- const minUtxoValue = require_fees.minAdaRequired(changeOutput, BigInt(protocolParameters.coinsPerUtxoByte));
562
+ const minUtxoValue = (0, _laceio_cardano_tx_construction.minAdaRequired)(changeOutput, BigInt(protocolParameters.coinsPerUtxoByte));
563
563
  if (changeOutput.value.coins < minUtxoValue) throw new Error(`Change output is below the minimum UTxO value: holds ${changeOutput.value.coins} lovelace, requires ${minUtxoValue}`);
564
564
  }
565
565
  };
@@ -584,7 +584,7 @@ const assertChangeOutputsMeetMinAda = (changeOutputs, protocolParameters) => {
584
584
  */
585
585
  const runBalancingLoop = ({ unbalancedTx, availableUtxo, preSelectedUtxo, collateralUtxos, referenceUtxos, protocolParameters, coinSelector, changeAddress }) => {
586
586
  let isBalanced = false;
587
- const implicitCoin = require_subtractValueQuantities.computeImplicitCoin(protocolParameters, unbalancedTx.body);
587
+ const implicitCoin = _laceio_cardano_core.Cardano.util.computeImplicitCoin(protocolParameters, unbalancedTx.body);
588
588
  let fee = unbalancedTx.body.fee;
589
589
  const mint = unbalancedTx.body.mint;
590
590
  const donation = unbalancedTx.body.donation ?? 0n;
@@ -596,7 +596,7 @@ const runBalancingLoop = ({ unbalancedTx, availableUtxo, preSelectedUtxo, collat
596
596
  const body = balancedTx.body;
597
597
  const outputs = body.outputs;
598
598
  balancedTx.body.fee = fee;
599
- const requiredInputValue = require_subtractValueQuantities.subtractValueQuantities([require_fees.coalesceValueQuantities(outputs.map((output) => output.value)), {
599
+ const requiredInputValue = (0, _laceio_cardano_core.subtractValueQuantities)([(0, _laceio_cardano_core.coalesceValueQuantities)(outputs.map((output) => output.value)), {
600
600
  coins: (implicitCoin.withdrawals ?? 0n) + (implicitCoin.reclaimDeposit ?? 0n) - (implicitCoin.deposit ?? 0n) - (fee + donation),
601
601
  assets: mint ?? /* @__PURE__ */ new Map()
602
602
  }]);
@@ -623,7 +623,7 @@ const runBalancingLoop = ({ unbalancedTx, availableUtxo, preSelectedUtxo, collat
623
623
  assertChangeOutputsMeetMinAda(changeOutputs, protocolParameters);
624
624
  body.outputs.push(...changeOutputs);
625
625
  const vkWitnessesCost = computeVkWitnessesCost(getUniqueSignerKeyHashes(balancedTx, [...selection, ...collateralUtxos ?? []]).size, BigInt(protocolParameters.minFeeCoefficient));
626
- const computedFee = require_fees.minFee(balancedTx, [...selection, ...referenceUtxos ?? []], protocolParameters) + vkWitnessesCost;
626
+ const computedFee = (0, _laceio_cardano_tx_construction.minFee)(balancedTx, [...selection, ...referenceUtxos ?? []], protocolParameters) + vkWitnessesCost;
627
627
  if (computedFee > fee) {
628
628
  fee = computedFee;
629
629
  body.fee = fee;
@@ -748,7 +748,7 @@ const correctFeeAfterEvaluation = ({ balancedTx, evaluatedRedeemers, resolvedInp
748
748
  }
749
749
  };
750
750
  return {
751
- requiredFee: require_fees.minFee({
751
+ requiredFee: (0, _laceio_cardano_tx_construction.minFee)({
752
752
  ...balancedTx,
753
753
  body: {
754
754
  ...balancedTx.body,
@@ -808,7 +808,7 @@ const correctFeeAfterEvaluation = ({ balancedTx, evaluatedRedeemers, resolvedInp
808
808
  * @returns `true` if balanced; otherwise `false`.
809
809
  */
810
810
  const isTransactionBalanced = ({ transaction, resolvedInputs, protocolParameters }) => {
811
- const implicitCoin = require_subtractValueQuantities.computeImplicitCoin(protocolParameters, transaction.body);
811
+ const implicitCoin = _laceio_cardano_core.Cardano.util.computeImplicitCoin(protocolParameters, transaction.body);
812
812
  const mint = transaction.body.mint ?? /* @__PURE__ */ new Map();
813
813
  const donation = transaction.body.donation ?? 0n;
814
814
  const fee = transaction.body.fee;
@@ -818,7 +818,7 @@ const isTransactionBalanced = ({ transaction, resolvedInputs, protocolParameters
818
818
  };
819
819
  const outputs = transaction.body.outputs;
820
820
  const inputs = transaction.body.inputs;
821
- return isZeroValue(require_subtractValueQuantities.subtractValueQuantities([require_subtractValueQuantities.subtractValueQuantities([require_fees.coalesceValueQuantities(outputs.map((output) => output.value)), coalesceValueQuantitiesInInputs(inputs, resolvedInputs)]), implicitValue]));
821
+ return isZeroValue((0, _laceio_cardano_core.subtractValueQuantities)([(0, _laceio_cardano_core.subtractValueQuantities)([(0, _laceio_cardano_core.coalesceValueQuantities)(outputs.map((output) => output.value)), coalesceValueQuantitiesInInputs(inputs, resolvedInputs)]), implicitValue]));
822
822
  };
823
823
  //#endregion
824
824
  //#region ../../packages/contract/cardano-context/src/tx-builder/reference-scripts.ts
@@ -840,7 +840,7 @@ const referenceScriptSize = (inputs, resolvedInputs) => {
840
840
  let size = 0;
841
841
  for (const input of inputs) {
842
842
  const script = resolvedInputs.find(([txIn]) => txIn.txId === input.txId && txIn.index === input.index)?.[1].scriptReference;
843
- if (script) size += require_Address.Script.fromCore(script).toCbor().length / 2;
843
+ if (script) size += _laceio_cardano_core.Serialization.Script.fromCore(script).toCbor().length / 2;
844
844
  }
845
845
  return size;
846
846
  };
@@ -869,7 +869,7 @@ const referenceScriptFee = (size, { minFeeRefScriptCostPerByte }) => {
869
869
  * @param utxos - The list of UTxOs to aggregate.
870
870
  * @returns A value representing the combined total of all UTxOs.
871
871
  */
872
- const valueOf = (utxos) => require_fees.coalesceValueQuantities(utxos.map(([, out]) => out.value));
872
+ const valueOf = (utxos) => (0, _laceio_cardano_core.coalesceValueQuantities)(utxos.map(([, out]) => out.value));
873
873
  /**
874
874
  * Retrieves the quantity of a specific native asset from a given {@link Cardano.Value}.
875
875
  *
@@ -976,7 +976,7 @@ var LargeFirstCoinSelector = class {
976
976
  const amt = getAssetAmount(u[1].value, id);
977
977
  if (amt <= 0n) return false;
978
978
  selection.push(u);
979
- current = require_fees.coalesceValueQuantities([current, u[1].value]);
979
+ current = (0, _laceio_cardano_core.coalesceValueQuantities)([current, u[1].value]);
980
980
  have += amt;
981
981
  return true;
982
982
  });
@@ -991,7 +991,7 @@ var LargeFirstCoinSelector = class {
991
991
  const ada = u[1].value.coins ?? 0n;
992
992
  if (ada <= 0n) return false;
993
993
  selection.push(u);
994
- current = require_fees.coalesceValueQuantities([current, u[1].value]);
994
+ current = (0, _laceio_cardano_core.coalesceValueQuantities)([current, u[1].value]);
995
995
  deficit -= ada;
996
996
  return true;
997
997
  });
@@ -1183,7 +1183,7 @@ const makeChange = (params) => {
1183
1183
  maps = splitOversizedMaps(maps, protocolParameters.maxValueSize);
1184
1184
  maps.sort((a, b) => a.assets.size - b.assets.size);
1185
1185
  const coinsPerUtxoByte = BigInt(protocolParameters.coinsPerUtxoByte);
1186
- const minAdas = maps.map((map) => require_fees.minAdaRequired({
1186
+ const minAdas = maps.map((map) => (0, _laceio_cardano_tx_construction.minAdaRequired)({
1187
1187
  address: changeAddress,
1188
1188
  value: {
1189
1189
  coins: 0n,
@@ -1623,7 +1623,7 @@ var RoundRobinRandomCoinSelector = class {
1623
1623
  //#region ../../packages/contract/cardano-context/src/tx-builder/script-data-hash.ts
1624
1624
  const CBOR_EMPTY_MAP = new Uint8Array([160]);
1625
1625
  const hexToBytes = (hex) => Uint8Array.from(hex.match(/.{1,2}/g)?.map((byte) => Number.parseInt(byte, 16)) ?? []);
1626
- const encodeDatumsSet = (datums) => hexToBytes(require_Address.CborSet.fromCore(datums, require_Address.PlutusData.fromCore).toCbor());
1626
+ const encodeDatumsSet = (datums) => hexToBytes(_laceio_cardano_core.Serialization.CborSet.fromCore(datums, _laceio_cardano_core.Serialization.PlutusData.fromCore).toCbor());
1627
1627
  /**
1628
1628
  * Conway-era script-data hash. Reproduces the ledger's `hashScriptIntegrity`
1629
1629
  * preimage — redeemers ‖ datums ‖ language views — encoding redeemers and
@@ -1643,23 +1643,23 @@ const computeConwayScriptDataHash = (params) => {
1643
1643
  const hasRedeemers = redeemers.length > 0;
1644
1644
  const hasDatums = (datums?.length ?? 0) > 0;
1645
1645
  if (!hasRedeemers && !hasDatums) return void 0;
1646
- const requiredCostModels = new require_Address.Costmdls();
1646
+ const requiredCostModels = new _laceio_cardano_core.Serialization.Costmdls();
1647
1647
  for (const language of usedLanguages) {
1648
1648
  const costModel = costModels.get(language);
1649
- if (!costModel) throw new Error(`Missing cost model for Plutus${require_Address.PlutusLanguageVersion[language]} in the protocol parameters`);
1650
- requiredCostModels.insert(new require_Address.CostModel(language, costModel));
1649
+ if (!costModel) throw new Error(`Missing cost model for Plutus${_laceio_cardano_core.Cardano.PlutusLanguageVersion[language]} in the protocol parameters`);
1650
+ requiredCostModels.insert(new _laceio_cardano_core.Serialization.CostModel(language, costModel));
1651
1651
  }
1652
- const writer = new require_Address.CborWriter();
1652
+ const writer = new _laceio_cardano_core.Serialization.CborWriter();
1653
1653
  if (hasDatums && !hasRedeemers) {
1654
1654
  writer.writeEncodedValue(CBOR_EMPTY_MAP);
1655
1655
  writer.writeEncodedValue(encodeDatumsSet(datums));
1656
1656
  writer.writeEncodedValue(CBOR_EMPTY_MAP);
1657
1657
  } else {
1658
- writer.writeEncodedValue(hexToBytes(require_Address.Redeemers.fromCore(redeemers).toCbor()));
1658
+ writer.writeEncodedValue(hexToBytes(_laceio_cardano_core.Serialization.Redeemers.fromCore(redeemers).toCbor()));
1659
1659
  if (hasDatums) writer.writeEncodedValue(encodeDatumsSet(datums));
1660
1660
  writer.writeEncodedValue(hexToBytes(requiredCostModels.languageViewsEncoding()));
1661
1661
  }
1662
- return require_Address.blake2b.hash(writer.encodeAsHex(), 32);
1662
+ return _laceio_cardano_crypto.blake2b.hash(writer.encodeAsHex(), 32);
1663
1663
  };
1664
1664
  //#endregion
1665
1665
  //#region ../../packages/contract/cardano-context/src/tx-builder/TransactionBuilder.ts
@@ -1686,7 +1686,7 @@ const DUMMY_SCRIPT_INTEGRITY_HASH = "0".repeat(64);
1686
1686
  * The reward-account payment credential hash, used to canonically order script
1687
1687
  * withdrawals (mirrors `@cardano-sdk/tx-construction`'s `rewardAccountCredential`).
1688
1688
  */
1689
- const rewardAccountCredentialHash = (rewardAccount) => require_Address.Address.fromBech32(rewardAccount).asReward()?.getPaymentCredential().hash ?? "";
1689
+ const rewardAccountCredentialHash = (rewardAccount) => _laceio_cardano_core.Cardano.Address.fromBech32(rewardAccount).asReward()?.getPaymentCredential().hash ?? "";
1690
1690
  /** Hex comparator matching `@cardano-sdk/tx-construction`'s `compareHex`. */
1691
1691
  const compareHex = (a, b) => a === b ? 0 : a < b ? -1 : 1;
1692
1692
  /**
@@ -1754,9 +1754,9 @@ var TransactionBuilder = class {
1754
1754
  * @param params - Protocol parameters to be used during balancing and fee/min-ADA calculations.
1755
1755
  */
1756
1756
  constructor(networkMagic, params) {
1757
- require_Address.setInConwayEra(true);
1757
+ (0, _laceio_cardano_core.setInConwayEra)(true);
1758
1758
  this.params = params;
1759
- this.transaction = new require_Address.Transaction(new require_Address.TransactionBody(require_Address.CborSet.fromCore([], require_Address.TransactionInput.fromCore), [], 0n, void 0), require_Address.TransactionWitnessSet.fromCore({ signatures: /* @__PURE__ */ new Map() }));
1759
+ this.transaction = new _laceio_cardano_core.Serialization.Transaction(new _laceio_cardano_core.Serialization.TransactionBody(_laceio_cardano_core.Serialization.CborSet.fromCore([], _laceio_cardano_core.Serialization.TransactionInput.fromCore), [], 0n, void 0), _laceio_cardano_core.Serialization.TransactionWitnessSet.fromCore({ signatures: /* @__PURE__ */ new Map() }));
1760
1760
  this.networkMagic = networkMagic;
1761
1761
  }
1762
1762
  /**
@@ -1792,7 +1792,7 @@ var TransactionBuilder = class {
1792
1792
  */
1793
1793
  setNetwork(networkMagic) {
1794
1794
  const body = this.transaction.body();
1795
- const networkId = networkMagic === require_ChainId.NetworkMagics.Mainnet ? require_ChainId.NetworkId.Mainnet : require_ChainId.NetworkId.Testnet;
1795
+ const networkId = networkMagic === _laceio_cardano_core.Cardano.NetworkMagics.Mainnet ? _laceio_cardano_core.Cardano.NetworkId.Mainnet : _laceio_cardano_core.Cardano.NetworkId.Testnet;
1796
1796
  body.setNetworkId(networkId);
1797
1797
  this.networkMagic = networkMagic;
1798
1798
  this.transaction.setBody(body);
@@ -1841,7 +1841,7 @@ var TransactionBuilder = class {
1841
1841
  const inputs = body.inputs();
1842
1842
  const values = [...inputs.values()];
1843
1843
  if (values.find((value) => Number(value.index()) == utxo[0].index && value.transactionId() == utxo[0].txId)) throw new Error("Cannot add duplicate input to the transaction");
1844
- values.push(require_Address.TransactionInput.fromCore(utxo[0]));
1844
+ values.push(_laceio_cardano_core.Serialization.TransactionInput.fromCore(utxo[0]));
1845
1845
  inputs.setValues(values);
1846
1846
  body.setInputs(inputs);
1847
1847
  this.transaction.setBody(body);
@@ -1889,7 +1889,7 @@ var TransactionBuilder = class {
1889
1889
  addOutput(output) {
1890
1890
  const body = this.transaction.body();
1891
1891
  const outputs = body.outputs();
1892
- outputs.push(require_Address.TransactionOutput.fromCore(output));
1892
+ outputs.push(_laceio_cardano_core.Serialization.TransactionOutput.fromCore(output));
1893
1893
  body.setOutputs(outputs);
1894
1894
  this.transaction.setBody(body);
1895
1895
  return this;
@@ -1945,7 +1945,7 @@ var TransactionBuilder = class {
1945
1945
  */
1946
1946
  attachScript(script) {
1947
1947
  this.scripts.push(script);
1948
- if (script.__type === require_Address.ScriptType.Plutus) this.scriptVersions.add(script.version);
1948
+ if (script.__type === _laceio_cardano_core.Cardano.ScriptType.Plutus) this.scriptVersions.add(script.version);
1949
1949
  return this;
1950
1950
  }
1951
1951
  /**
@@ -1959,7 +1959,7 @@ var TransactionBuilder = class {
1959
1959
  */
1960
1960
  mintAssets(assets, redeemer) {
1961
1961
  this.mint = new Map([...this.mint ?? [], ...assets]);
1962
- for (const assetId of assets.keys()) this.mintRedeemers.set(require_Address.AssetId.getPolicyId(assetId), redeemer);
1962
+ for (const assetId of assets.keys()) this.mintRedeemers.set(_laceio_cardano_core.Cardano.AssetId.getPolicyId(assetId), redeemer);
1963
1963
  return this;
1964
1964
  }
1965
1965
  /**
@@ -2019,7 +2019,7 @@ var TransactionBuilder = class {
2019
2019
  const existing = this.transaction.auxiliaryData()?.toCore();
2020
2020
  const blob = new Map(existing?.blob);
2021
2021
  blob.set(label, metadatum);
2022
- this.transaction.setAuxiliaryData(require_Address.AuxiliaryData.fromCore({
2022
+ this.transaction.setAuxiliaryData(_laceio_cardano_core.Serialization.AuxiliaryData.fromCore({
2023
2023
  ...existing,
2024
2024
  blob
2025
2025
  }));
@@ -2037,7 +2037,7 @@ var TransactionBuilder = class {
2037
2037
  */
2038
2038
  addStakeDelegationCertificate(poolId, stakeCredential, script) {
2039
2039
  const certificate = {
2040
- __typename: require_Address.CertificateType.StakeDelegation,
2040
+ __typename: _laceio_cardano_core.Cardano.CertificateType.StakeDelegation,
2041
2041
  poolId,
2042
2042
  stakeCredential
2043
2043
  };
@@ -2054,7 +2054,7 @@ var TransactionBuilder = class {
2054
2054
  */
2055
2055
  addStakeRegistrationDelegationCertificate(poolId, stakeCredential, deposit) {
2056
2056
  const certificate = {
2057
- __typename: require_Address.CertificateType.StakeRegistrationDelegation,
2057
+ __typename: _laceio_cardano_core.Cardano.CertificateType.StakeRegistrationDelegation,
2058
2058
  poolId,
2059
2059
  stakeCredential,
2060
2060
  deposit
@@ -2075,7 +2075,7 @@ var TransactionBuilder = class {
2075
2075
  */
2076
2076
  addNewStakeAddressCertificate(stakeCredential, deposit, script) {
2077
2077
  const certificate = {
2078
- __typename: require_Address.CertificateType.Registration,
2078
+ __typename: _laceio_cardano_core.Cardano.CertificateType.Registration,
2079
2079
  stakeCredential,
2080
2080
  deposit
2081
2081
  };
@@ -2091,7 +2091,7 @@ var TransactionBuilder = class {
2091
2091
  */
2092
2092
  addStakeDeregistrationCertificate(stakeCredential, deposit) {
2093
2093
  const certificate = {
2094
- __typename: require_Address.CertificateType.Unregistration,
2094
+ __typename: _laceio_cardano_core.Cardano.CertificateType.Unregistration,
2095
2095
  stakeCredential,
2096
2096
  deposit
2097
2097
  };
@@ -2108,7 +2108,7 @@ var TransactionBuilder = class {
2108
2108
  */
2109
2109
  addVoteDelegationCertificate(stakeCredential, dRep) {
2110
2110
  const certificate = {
2111
- __typename: require_Address.CertificateType.VoteDelegation,
2111
+ __typename: _laceio_cardano_core.Cardano.CertificateType.VoteDelegation,
2112
2112
  stakeCredential,
2113
2113
  dRep
2114
2114
  };
@@ -2126,7 +2126,7 @@ var TransactionBuilder = class {
2126
2126
  */
2127
2127
  addVoteRegistrationDelegationCertificate(dRep, stakeCredential, deposit) {
2128
2128
  const certificate = {
2129
- __typename: require_Address.CertificateType.VoteRegistrationDelegation,
2129
+ __typename: _laceio_cardano_core.Cardano.CertificateType.VoteRegistrationDelegation,
2130
2130
  dRep,
2131
2131
  stakeCredential,
2132
2132
  deposit
@@ -2192,7 +2192,7 @@ var TransactionBuilder = class {
2192
2192
  if (this.availableUtxos.length === 0 && this.preSelectedUtxos.length === 0) throw new Error("No available UTXOs to select from");
2193
2193
  if (!this.changeAddress) throw new Error("Change address is not set");
2194
2194
  const hasRedeemers = this.spendRedeemers.size > 0 || this.mintRedeemers.size > 0 || this.certificateRedeemers.size > 0 || this.withdrawalRedeemers.size > 0;
2195
- const hasPlutusScripts = this.scripts.some((script) => script.__type === require_Address.ScriptType.Plutus) || hasRedeemers && this.referencedPlutusScripts().length > 0;
2195
+ const hasPlutusScripts = this.scripts.some((script) => script.__type === _laceio_cardano_core.Cardano.ScriptType.Plutus) || hasRedeemers && this.referencedPlutusScripts().length > 0;
2196
2196
  if (hasPlutusScripts && !this.plutusContext) throw new Error("Plutus context is not set — call setPlutusContext() before build()");
2197
2197
  if (this.certificateRedeemers.size > 0 && !hasPlutusScripts) throw new Error("Certificate redeemer requires a Plutus script — call attachScript() or reference a UTxO that carries it before build()");
2198
2198
  this.assertNoAttachedScriptIsReferenced();
@@ -2247,12 +2247,12 @@ var TransactionBuilder = class {
2247
2247
  fallbackCoinSelector: this.coinSelector instanceof LargeFirstCoinSelector ? void 0 : new LargeFirstCoinSelector(),
2248
2248
  changeAddress: this.changeAddress
2249
2249
  });
2250
- if (!hasPlutusScripts) return require_Address.Transaction.fromCore(balancedTx);
2250
+ if (!hasPlutusScripts) return _laceio_cardano_core.Serialization.Transaction.fromCore(balancedTx);
2251
2251
  const finalTx = await this.finalizePlutusTx(balancedTx, selection, reservedCollateral);
2252
- return require_Address.Transaction.fromCore(finalTx);
2252
+ return _laceio_cardano_core.Serialization.Transaction.fromCore(finalTx);
2253
2253
  }
2254
2254
  addCertificate(certificate, stakeCredential, script) {
2255
- if (script && stakeCredential.type !== require_Address.CredentialType.ScriptHash) throw new Error(`Certificate redeemer requires a script-hash stake credential, got key hash ${stakeCredential.hash}`);
2255
+ if (script && stakeCredential.type !== _laceio_cardano_core.Cardano.CredentialType.ScriptHash) throw new Error(`Certificate redeemer requires a script-hash stake credential, got key hash ${stakeCredential.hash}`);
2256
2256
  this.certificates.push(certificate);
2257
2257
  if (script) this.certificateRedeemers.set(certificate, script.redeemer);
2258
2258
  return this;
@@ -2262,7 +2262,7 @@ var TransactionBuilder = class {
2262
2262
  return this.referenceUtxos.some((referenced) => utxoRefKey(referenced) === key);
2263
2263
  }
2264
2264
  referencedPlutusScripts() {
2265
- return this.referenceUtxos.flatMap(([, { scriptReference }]) => scriptReference?.__type === require_Address.ScriptType.Plutus ? [scriptReference] : []);
2265
+ return this.referenceUtxos.flatMap(([, { scriptReference }]) => scriptReference?.__type === _laceio_cardano_core.Cardano.ScriptType.Plutus ? [scriptReference] : []);
2266
2266
  }
2267
2267
  /**
2268
2268
  * The hashes of the scripts the redeemers run: the spent inputs' payment
@@ -2271,12 +2271,12 @@ var TransactionBuilder = class {
2271
2271
  */
2272
2272
  redeemedScriptHashes(spent) {
2273
2273
  const hashes = new Set(this.mintRedeemers.keys());
2274
- for (const rewardAccount of this.withdrawalRedeemers.keys()) hashes.add(require_Address.RewardAccount.toHash(rewardAccount));
2274
+ for (const rewardAccount of this.withdrawalRedeemers.keys()) hashes.add(_laceio_cardano_core.Cardano.RewardAccount.toHash(rewardAccount));
2275
2275
  for (const certificate of this.certificateRedeemers.keys()) if ("stakeCredential" in certificate && certificate.stakeCredential) hashes.add(certificate.stakeCredential.hash);
2276
2276
  for (const key of this.spendRedeemers.keys()) {
2277
2277
  const output = spent.find((utxo) => utxoRefKey(utxo) === key)?.[1];
2278
- const payment = output && require_Address.Address.fromString(output.address)?.getProps().paymentPart;
2279
- if (payment?.type === require_Address.CredentialType.ScriptHash) hashes.add(payment.hash);
2278
+ const payment = output && _laceio_cardano_core.Cardano.Address.fromString(output.address)?.getProps().paymentPart;
2279
+ if (payment?.type === _laceio_cardano_core.Cardano.CredentialType.ScriptHash) hashes.add(payment.hash);
2280
2280
  }
2281
2281
  return hashes;
2282
2282
  }
@@ -2288,7 +2288,7 @@ var TransactionBuilder = class {
2288
2288
  usedLanguages(spent) {
2289
2289
  const languages = new Set(this.scriptVersions);
2290
2290
  const redeemed = this.redeemedScriptHashes(spent);
2291
- for (const script of this.referencedPlutusScripts()) if (redeemed.has(require_Address.Script.fromCore(script).hash())) languages.add(script.version);
2291
+ for (const script of this.referencedPlutusScripts()) if (redeemed.has(_laceio_cardano_core.Serialization.Script.fromCore(script).hash())) languages.add(script.version);
2292
2292
  return [...languages];
2293
2293
  }
2294
2294
  /**
@@ -2299,14 +2299,14 @@ var TransactionBuilder = class {
2299
2299
  assertNoAttachedScriptIsReferenced() {
2300
2300
  const referencedScripts = this.referenceUtxos.filter(([, output]) => output.scriptReference);
2301
2301
  if (referencedScripts.length === 0) return;
2302
- const attachedHashes = new Set(this.scripts.map((script) => require_Address.Script.fromCore(script).hash()));
2302
+ const attachedHashes = new Set(this.scripts.map((script) => _laceio_cardano_core.Serialization.Script.fromCore(script).hash()));
2303
2303
  for (const [txIn, output] of referencedScripts) {
2304
- const hash = require_Address.Script.fromCore(output.scriptReference).hash();
2304
+ const hash = _laceio_cardano_core.Serialization.Script.fromCore(output.scriptReference).hash();
2305
2305
  if (attachedHashes.has(hash)) throw new Error(`Reference input ${txIn.txId}#${txIn.index} carries attached script ${hash}`);
2306
2306
  }
2307
2307
  }
2308
2308
  applyAuxiliaryDataHash() {
2309
- const auxDataHash = require_subtractValueQuantities.computeAuxiliaryDataHash(this.transaction.auxiliaryData()?.toCore());
2309
+ const auxDataHash = _laceio_cardano_core.Cardano.computeAuxiliaryDataHash(this.transaction.auxiliaryData()?.toCore());
2310
2310
  if (auxDataHash) {
2311
2311
  const body = this.transaction.body();
2312
2312
  body.setAuxiliaryDataHash(auxDataHash);
@@ -2346,10 +2346,10 @@ var TransactionBuilder = class {
2346
2346
  executionUnits: perRedeemer
2347
2347
  }));
2348
2348
  return [
2349
- ...seeded(require_Address.RedeemerPurpose.spend, this.spendRedeemers.values()),
2350
- ...seeded(require_Address.RedeemerPurpose.mint, this.mintRedeemers.values()),
2351
- ...seeded(require_Address.RedeemerPurpose.certificate, this.certificateRedeemers.values()),
2352
- ...seeded(require_Address.RedeemerPurpose.withdrawal, this.withdrawalRedeemers.values())
2349
+ ...seeded(_laceio_cardano_core.Cardano.RedeemerPurpose.spend, this.spendRedeemers.values()),
2350
+ ...seeded(_laceio_cardano_core.Cardano.RedeemerPurpose.mint, this.mintRedeemers.values()),
2351
+ ...seeded(_laceio_cardano_core.Cardano.RedeemerPurpose.certificate, this.certificateRedeemers.values()),
2352
+ ...seeded(_laceio_cardano_core.Cardano.RedeemerPurpose.withdrawal, this.withdrawalRedeemers.values())
2353
2353
  ];
2354
2354
  }
2355
2355
  /**
@@ -2373,25 +2373,25 @@ var TransactionBuilder = class {
2373
2373
  for (const [key, data] of this.spendRedeemers) {
2374
2374
  const index = sortedInputs.findIndex((input) => `${input.txId}#${input.index}` === key);
2375
2375
  if (index < 0) throw new Error(`Spend redeemer input not found in transaction: ${key}`);
2376
- redeemers.push(this.seedRedeemerAt(require_Address.RedeemerPurpose.spend, index, data));
2376
+ redeemers.push(this.seedRedeemerAt(_laceio_cardano_core.Cardano.RedeemerPurpose.spend, index, data));
2377
2377
  }
2378
- const policyIds = [...new Set([...body.mint?.keys() ?? []].map(require_Address.AssetId.getPolicyId))].sort(compareHex);
2378
+ const policyIds = [...new Set([...body.mint?.keys() ?? []].map(_laceio_cardano_core.Cardano.AssetId.getPolicyId))].sort(compareHex);
2379
2379
  for (const [policyId, data] of this.mintRedeemers) {
2380
2380
  const index = policyIds.indexOf(policyId);
2381
2381
  if (index < 0) throw new Error(`Mint redeemer policy not present in transaction mint: ${policyId}`);
2382
- redeemers.push(this.seedRedeemerAt(require_Address.RedeemerPurpose.mint, index, data));
2382
+ redeemers.push(this.seedRedeemerAt(_laceio_cardano_core.Cardano.RedeemerPurpose.mint, index, data));
2383
2383
  }
2384
2384
  const bodyCertificates = body.certificates ?? [];
2385
2385
  for (const [certificate, data] of this.certificateRedeemers) {
2386
2386
  const index = this.certificates.indexOf(certificate);
2387
2387
  if (bodyCertificates[index]?.__typename !== certificate.__typename) throw new Error(`Certificate redeemer not present in transaction certificates: ${certificate.__typename}#${index}`);
2388
- redeemers.push(this.seedRedeemerAt(require_Address.RedeemerPurpose.certificate, index, data));
2388
+ redeemers.push(this.seedRedeemerAt(_laceio_cardano_core.Cardano.RedeemerPurpose.certificate, index, data));
2389
2389
  }
2390
2390
  const scriptRewardAccounts = (body.withdrawals ?? []).map((withdrawal) => withdrawal.stakeAddress).filter((rewardAccount) => this.withdrawalRedeemers.has(rewardAccount)).sort((a, b) => compareHex(rewardAccountCredentialHash(a), rewardAccountCredentialHash(b)));
2391
2391
  for (const [rewardAccount, data] of this.withdrawalRedeemers) {
2392
2392
  const index = scriptRewardAccounts.indexOf(rewardAccount);
2393
2393
  if (index < 0) throw new Error(`Withdrawal redeemer not present in transaction withdrawals: ${rewardAccount}`);
2394
- redeemers.push(this.seedRedeemerAt(require_Address.RedeemerPurpose.withdrawal, index, data));
2394
+ redeemers.push(this.seedRedeemerAt(_laceio_cardano_core.Cardano.RedeemerPurpose.withdrawal, index, data));
2395
2395
  }
2396
2396
  return redeemers;
2397
2397
  }
@@ -2467,14 +2467,14 @@ var TransactionBuilder = class {
2467
2467
  for (const utxo of sorted) {
2468
2468
  if (selected.length >= maxInputs) break;
2469
2469
  selected.push(utxo);
2470
- const total = require_fees.coalesceValueQuantities(selected.map(([, out]) => out.value));
2470
+ const total = (0, _laceio_cardano_core.coalesceValueQuantities)(selected.map(([, out]) => out.value));
2471
2471
  if (total.coins < coverAmount) continue;
2472
2472
  const returnCoin = total.coins - coverAmount;
2473
2473
  const hasAssets = (total.assets?.size ?? 0) > 0;
2474
2474
  if (returnCoin === 0n && !hasAssets) return selected;
2475
2475
  const returnValue = { coins: returnCoin };
2476
2476
  if (hasAssets) returnValue.assets = total.assets;
2477
- if (returnCoin >= require_fees.minAdaRequired({
2477
+ if (returnCoin >= (0, _laceio_cardano_tx_construction.minAdaRequired)({
2478
2478
  address: returnAddress,
2479
2479
  value: returnValue
2480
2480
  }, BigInt(this.params.coinsPerUtxoByte))) return selected;
@@ -2494,7 +2494,7 @@ var TransactionBuilder = class {
2494
2494
  */
2495
2495
  buildCollateralFields(reservedCollateral, amount) {
2496
2496
  const returnAddress = this.collateralReturnAddress;
2497
- const collateralValue = require_fees.coalesceValueQuantities(reservedCollateral.map(([, out]) => out.value));
2497
+ const collateralValue = (0, _laceio_cardano_core.coalesceValueQuantities)(reservedCollateral.map(([, out]) => out.value));
2498
2498
  const returnCoin = collateralValue.coins - amount;
2499
2499
  if (returnCoin < 0n) throw new InsufficientCollateralError(`Collateral inputs hold ${collateralValue.coins} lovelace but the required collateral is ${amount}`);
2500
2500
  const hasAssets = (collateralValue.assets?.size ?? 0) > 0;
@@ -2505,7 +2505,7 @@ var TransactionBuilder = class {
2505
2505
  address: returnAddress,
2506
2506
  value: returnValue
2507
2507
  };
2508
- const minReturn = require_fees.minAdaRequired(collateralReturn, BigInt(this.params.coinsPerUtxoByte));
2508
+ const minReturn = (0, _laceio_cardano_tx_construction.minAdaRequired)(collateralReturn, BigInt(this.params.coinsPerUtxoByte));
2509
2509
  if (returnCoin < minReturn) {
2510
2510
  if (hasAssets) throw new InsufficientCollateralError(`Collateral return needs ${minReturn} lovelace but only ${returnCoin} is available`);
2511
2511
  return { totalCollateral: collateralValue.coins };