@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
@@ -0,0 +1,1445 @@
1
+ const require_chunk = require("./chunk-9hOWP6kD.cjs");
2
+ const require__polyfill_buffer_patch = require("./_polyfill-buffer-patch-BycQkEkK.cjs");
3
+ const require_Address = require("./Address-AMKTo-dA.cjs");
4
+ const require_isNotNil = require("./isNotNil-CrYIUFry.cjs");
5
+ const require_logging = require("./logging-CbxgIX9V.cjs");
6
+ const require_slice = require("./slice-DLflttAu.cjs");
7
+ const require_src$1 = require("./src-BayYMIjw.cjs");
8
+ const require_secret_box = require("./secret-box-ZfbYwBgS.cjs");
9
+ const require_bytes_vo = require("./bytes.vo-hecRu3YZ.cjs");
10
+ const require_util_selector = require("./util-selector-glXkO-jR.cjs");
11
+ const require_util = require("./util-Cp1h58uD.cjs");
12
+ const require_store = require("./store-C7AneHEY.cjs");
13
+ const require_slice$1 = require("./slice-C4toRM6A.cjs");
14
+ const require_redacted = require("./redacted-DwxIDdIF.cjs");
15
+ const require_feature_flag_key_vo = require("./feature-flag-key.vo-KTIdnzYX.cjs");
16
+ const require_slice$2 = require("./slice-DimtxfAT.cjs");
17
+ const require_slice$3 = require("./slice-B9QKuhi0.cjs");
18
+ const require_lace_context = require("./lace-context-BN0b_ury.cjs");
19
+ const require_slice$4 = require("./slice-Bf4enJKZ.cjs");
20
+ const require_slice$5 = require("./slice-DtitVc9L.cjs");
21
+ const require_slice$6 = require("./slice-CaMfviYu.cjs");
22
+ const require_const = require("./const-D3mCkwrM.cjs");
23
+ const require_slice$7 = require("./slice-BKnGkAkd.cjs");
24
+ const require_actions = require("./actions-BnHFVSr_.cjs");
25
+ let rxjs = require("rxjs");
26
+ let _reduxjs_toolkit = require("@reduxjs/toolkit");
27
+ let lodash_merge = require("lodash/merge.js");
28
+ lodash_merge = require_chunk.__toESM(lodash_merge);
29
+ let redux_observable = require("redux-observable");
30
+ let redux_persist = require("redux-persist");
31
+ let lodash_uniq = require("lodash/uniq.js");
32
+ lodash_uniq = require_chunk.__toESM(lodash_uniq);
33
+ let ts_log = require("ts-log");
34
+ //#region ../../packages/lib/vendor/node_modules/@cardano-sdk/key-management/dist/esm/util/bip39.js
35
+ var import_src = /* @__PURE__ */ require_chunk.__toESM(require_src$1.require_src(), 1);
36
+ const joinMnemonicWords = (mnenomic) => mnenomic.join(" ");
37
+ import_src.validateMnemonic;
38
+ //#endregion
39
+ //#region ../../packages/lib/core/src/encrypt-recovery-phrase.ts
40
+ /**
41
+ * SBV1 (Argon2id + ChaCha20-Poly1305) encryption of a mnemonic recovery phrase:
42
+ * encrypt the utf8 bytes of the space-joined words with the passphrase, returning
43
+ * hex. New wallets are sealed with SBV1; `SecretBox.open` still reads legacy
44
+ * EMIP-003 blobs through the `@lace-lib/vendor` seam (ADR 37/38).
45
+ */
46
+ const encryptRecoveryPhrase = async (words, passphrase) => require_bytes_vo.HexBytes.fromByteArray(await require_secret_box.SecretBox.seal(require_bytes_vo.ByteArray.fromUTF8(joinMnemonicWords(words)), passphrase));
47
+ //#endregion
48
+ //#region ../../packages/lib/core/src/value-objects/wallet-id.vo.ts
49
+ const WALLET_ID_BYTES = 16;
50
+ const doubleBlake2b128 = (inputHex) => {
51
+ const digest = require_Address.blake2b.hash(inputHex, WALLET_ID_BYTES);
52
+ return WalletId(require_Address.blake2b.hash(digest, WALLET_ID_BYTES));
53
+ };
54
+ /**
55
+ * Types a string as a wallet identifier. It checks nothing; the `deriveFrom…`
56
+ * functions derive the identifier a wallet's keys give it.
57
+ */
58
+ const WalletId = (walletId) => walletId;
59
+ /** Derive a walletId from an extended account public key (xpub). */
60
+ WalletId.deriveFromBip32PublicKey = (xpubHex) => doubleBlake2b128(xpubHex);
61
+ /**
62
+ * Derive a walletId from a hardware device's BIP-32 master key fingerprint
63
+ * (`xfpHex` — 8 hex chars / 4 bytes), domain-separated by `vendorTag` (the device
64
+ * family: `'ledger'`, `'trezor'`).
65
+ *
66
+ * The xfp identifies the master key itself, so it is invariant across derivation
67
+ * paths and across mainnet/testnet (whose account xpubs differ): one physical
68
+ * device is one wallet whichever network its open app served. The vendor tag is
69
+ * what keeps one seed restored onto two device families two wallets — the xfp
70
+ * alone is identical for both. Same double blake2b-128 as the xpub mints, so every
71
+ * id shares one 32-hex format and one collision domain.
72
+ */
73
+ WalletId.deriveFromHardwareFingerprint = (vendorTag, xfpHex) => doubleBlake2b128(require__polyfill_buffer_patch.import_buffer.Buffer.from(`${vendorTag}:${xfpHex.toLowerCase()}`, "utf8").toString("hex"));
74
+ /** Derive a walletId from a mnemonic — the utf8 bytes of the space-joined words. */
75
+ WalletId.deriveFromMnemonic = (words) => doubleBlake2b128(require__polyfill_buffer_patch.import_buffer.Buffer.from(joinMnemonicWords(words), "utf8").toString("hex"));
76
+ //#endregion
77
+ //#region ../../packages/contract/module/src/redux-persist-storage.ts
78
+ /** The name of the contract a module implements to provide key-value storage. */
79
+ const STORAGE_CONTRACT_NAME = "storage-dependency";
80
+ /**
81
+ * Adapts a key-value storage factory to the redux-persist `Storage` interface,
82
+ * keeping persisted state in the `redux` collection.
83
+ */
84
+ const createReduxPersistStorage = (keyValueStorageFactory) => {
85
+ const keyValueStorage = keyValueStorageFactory({ collectionId: "redux" });
86
+ return {
87
+ getItem: async (key) => (0, rxjs.firstValueFrom)(keyValueStorage.getValues([key]).pipe((0, rxjs.map)(([value]) => value), (0, rxjs.defaultIfEmpty)(void 0))),
88
+ removeItem: async (key) => (0, rxjs.firstValueFrom)(keyValueStorage.setValue(key, void 0)),
89
+ setItem: async (key, value) => (0, rxjs.firstValueFrom)(keyValueStorage.setValue(key, value))
90
+ };
91
+ };
92
+ /**
93
+ * Finds the module implementing the storage contract, initializes its store on
94
+ * its own and returns the key-value storage factory it provides.
95
+ *
96
+ * @throws Error when no module implements the storage contract or it provides no `createKeyValueStorage`.
97
+ */
98
+ const findStorageModule = async (props, { logger, ...rest }) => {
99
+ const storageModule = props.modules.find((m) => m.implements.contracts.some((contract) => contract.name === STORAGE_CONTRACT_NAME));
100
+ if (!storageModule) throw new Error("No storage module found");
101
+ const storageModuleStore = await storageModule.store?.load();
102
+ if (!storageModuleStore) throw new Error(`Module '${storageModule.moduleName}' must implement 'createKeyValueStorage' in store sideEffectDependencies`);
103
+ const dependencies = {
104
+ ...rest,
105
+ logger: require_logging.contextLogger(require_logging.contextLogger(logger, storageModule.moduleName), "redux-storage"),
106
+ reduxPersistStorage: {}
107
+ };
108
+ const keyValueStorageFactory = (await storageModuleStore.default({
109
+ ...props,
110
+ loadModules: () => {
111
+ throw new Error("Storage module \"store\" cannot load other modules");
112
+ }
113
+ }, dependencies)).sideEffectDependencies?.createKeyValueStorage;
114
+ if (!keyValueStorageFactory) throw new Error(`Module '${storageModule.moduleName}' must implement 'createKeyValueStorage' in store sideEffectDependencies`);
115
+ return keyValueStorageFactory;
116
+ };
117
+ //#endregion
118
+ //#region ../../packages/contract/module/src/create-store.ts
119
+ const SERIALIZABLE_CHECK_WARN_AFTER_MS = 128;
120
+ const IMMUTABLE_CHECK_WARN_AFTER_MS = 256;
121
+ const createActionObservables = (action$, actions) => {
122
+ return Object.fromEntries(Object.entries(actions).map(([scope, actionCreators]) => [scope, Object.fromEntries(Object.entries(actionCreators).map(([actionCreatorName, actionCreator]) => [`${actionCreatorName}$`, action$.pipe((0, rxjs.filter)((0, _reduxjs_toolkit.isAnyOf)(actionCreator)), (0, rxjs.share)())]))]));
123
+ };
124
+ /**
125
+ * Maps scoped selectors to observables of the state, keyed `<selectorName>$`.
126
+ * A parameterized selector yields a function of its parameter instead of a
127
+ * value. Each observable emits on change and replays its latest value.
128
+ */
129
+ const createStateObservables = (state$, selectors) => {
130
+ return Object.fromEntries(Object.entries(selectors).map(([scope, selectors]) => [scope, Object.fromEntries(Object.entries(selectors).map(([selectorName, selector]) => {
131
+ const selectorFunction = selector;
132
+ return [`${selectorName}$`, state$.pipe((0, rxjs.map)((state) => {
133
+ if (selectorFunction[require_util_selector.IS_PARAMETERIZED] === true) return (parameter) => selectorFunction(state, parameter);
134
+ if (selectorFunction.length > 1) return (parameter) => selectorFunction(state, parameter);
135
+ return selectorFunction(state);
136
+ }), (0, rxjs.distinctUntilChanged)(), (0, rxjs.shareReplay)(1))];
137
+ }))]));
138
+ };
139
+ const rehydrateStore = async (store) => new Promise((resolve) => {
140
+ const persistor = (0, redux_persist.persistStore)(store, null, () => {
141
+ resolve(persistor);
142
+ });
143
+ });
144
+ const mergeStoreExports = (storeExports, getter) => (0, lodash_merge.default)({}, ...storeExports.map(getter).filter(require_isNotNil.isNotNil));
145
+ /**
146
+ * Builds the app's Redux store from every loaded module store: combines their
147
+ * reducers, middleware and side effects, rehydrates persisted slices, and
148
+ * starts the side effects.
149
+ */
150
+ const createStore = async (createStoreProps, createStoreDependencies) => {
151
+ const { loadModules, runtime, lastEnhancer } = createStoreProps;
152
+ const { logger, reduxPersistStorage, sideEffectDependenciesOverride } = createStoreDependencies;
153
+ const stores = await loadModules("store");
154
+ const storeExports = await Promise.all(stores.map(async (s) => s.load().then(async (module) => module.default(createStoreProps, createStoreDependencies))));
155
+ const selectors = stores.map((s) => s.context.selectors).filter((selectors) => !!selectors).reduce(Object.assign, {});
156
+ const actions = stores.map((s) => s.context.actions).reduce(Object.assign, {});
157
+ const persistConfigs = mergeStoreExports(storeExports, (s) => s.persistConfig);
158
+ const preloadedState = mergeStoreExports(storeExports, (s) => s.preloadedState);
159
+ const reducer = (0, _reduxjs_toolkit.combineReducers)(Object.assign({}, ...storeExports.map((m) => m.reducers ? Object.fromEntries(Object.entries(m.reducers).map(([key, reducer]) => [key, key in persistConfigs ? (0, redux_persist.persistReducer)({
160
+ key,
161
+ storage: reduxPersistStorage,
162
+ ...persistConfigs[key]
163
+ }, reducer) : reducer])) : void 0)));
164
+ const initialState = reducer(void 0, { type: "@@lace/initial-state-snapshot" });
165
+ const toEpic = (sideEffect) => (action$, state$, dependencies) => sideEffect(createActionObservables(action$, actions), createStateObservables(state$, selectors), dependencies).pipe(createStoreProps.noEpicDelay ? (a) => a : (0, rxjs.delay)(0));
166
+ let actionObservables;
167
+ let stateObservables;
168
+ let state$ = null;
169
+ const captureObservables = (actions, state) => {
170
+ actionObservables = actions;
171
+ stateObservables = state;
172
+ return rxjs.NEVER;
173
+ };
174
+ const rootEpic = (0, redux_observable.combineEpics)(...[...storeExports.flatMap(({ sideEffects }) => sideEffects).filter(require_isNotNil.isNotNil), captureObservables].map(toEpic), (_, stateObservable$) => {
175
+ state$ = stateObservable$;
176
+ return rxjs.NEVER;
177
+ });
178
+ let persistor;
179
+ const defaultDependencies = {
180
+ actions,
181
+ selectors,
182
+ createKeyValueStorage: () => {
183
+ throw new Error("This must be overridden by storage module");
184
+ },
185
+ __getState: () => {
186
+ if (!state$) throw new Error("__getState() is not available during SideEffect initialization");
187
+ return state$.value;
188
+ },
189
+ flushPersistedState: () => (0, rxjs.from)(persistor?.flush() ?? Promise.resolve()),
190
+ runtime,
191
+ logger,
192
+ loadModules
193
+ };
194
+ const epicMiddleware = (0, redux_observable.createEpicMiddleware)({ dependencies: Object.assign(defaultDependencies, ...storeExports.map(({ sideEffectDependencies }) => sideEffectDependencies), sideEffectDependenciesOverride ?? {}) });
195
+ const middleware = storeExports.map(({ middleware }) => middleware).filter(require_isNotNil.isNotNil).flat();
196
+ const store = (0, _reduxjs_toolkit.configureStore)({
197
+ reducer,
198
+ preloadedState,
199
+ devTools: createStoreProps.devTools || false,
200
+ middleware: (getDefaultMiddleware) => getDefaultMiddleware({
201
+ immutableCheck: { warnAfter: IMMUTABLE_CHECK_WARN_AFTER_MS },
202
+ serializableCheck: {
203
+ ignoredActions: [
204
+ "accountManagement/attemptAddAccount",
205
+ "accountManagement/attemptAddInMemoryWalletAccount",
206
+ "txExecutor/tx-phase-completed",
207
+ "sendFlow/processingResulted",
208
+ "cardanoContext/setProtocolParameters",
209
+ "cardanoContext/setEraSummaries",
210
+ "cardanoContext/setStakePoolsData",
211
+ "cardanoContext/setAccountUtxos",
212
+ redux_persist.FLUSH,
213
+ redux_persist.REHYDRATE,
214
+ redux_persist.PAUSE,
215
+ redux_persist.PERSIST,
216
+ redux_persist.PURGE,
217
+ redux_persist.REGISTER
218
+ ],
219
+ warnAfter: SERIALIZABLE_CHECK_WARN_AFTER_MS
220
+ }
221
+ }),
222
+ enhancers: (getDefaultEnhancers) => {
223
+ const enhancers = getDefaultEnhancers().prepend([(0, _reduxjs_toolkit.applyMiddleware)(...middleware, epicMiddleware)]);
224
+ if (lastEnhancer) return enhancers.concat(lastEnhancer);
225
+ return enhancers;
226
+ }
227
+ });
228
+ if (Object.keys(persistConfigs)) persistor = await rehydrateStore(store);
229
+ const epicTeardown$ = new rxjs.Subject();
230
+ epicMiddleware.run((...args) => rootEpic(...args).pipe((0, rxjs.takeUntil)(epicTeardown$)));
231
+ return {
232
+ store,
233
+ initialState,
234
+ teardown: () => {
235
+ epicTeardown$.next();
236
+ epicTeardown$.complete();
237
+ },
238
+ actionObservables,
239
+ stateObservables
240
+ };
241
+ };
242
+ //#endregion
243
+ //#region ../../packages/contract/module/src/create-module-loader.ts
244
+ const isStoreContract = (contract) => contract.contractType === "store";
245
+ /**
246
+ * Builds the single module formed by applying, once each, the mixins of every
247
+ * store contract the given modules implement or depend on as `zero-or-more`.
248
+ */
249
+ const reduceMixinsModule = (modules) => {
250
+ return (0, lodash_uniq.default)(modules.flatMap((laceModule) => [...laceModule.implements.contracts, ...laceModule.dependsOn?.contracts.filter(({ instance }) => instance === "zero-or-more") || []])).filter(isStoreContract).map(({ mixin }) => mixin).filter(require_isNotNil.isNotNil).reduce((laceModule, mixin) => mixin(laceModule), {});
251
+ };
252
+ const parseLoadableKey = (loadableKey) => loadableKey.split(".");
253
+ const moduleOrAddonExport = (m, key) => {
254
+ const [moduleKey, addonKey] = parseLoadableKey(key);
255
+ const moduleValue = m[moduleKey];
256
+ if (addonKey) {
257
+ if (typeof moduleValue !== "object") return;
258
+ return moduleValue[addonKey];
259
+ }
260
+ return moduleValue;
261
+ };
262
+ /**
263
+ * Creates a {@link ModuleLoader} over the given modules and their contract
264
+ * mixins. Each loaded initializer receives the shared dependencies, a logger
265
+ * scoped to its module and key, and a nested loader of its own.
266
+ */
267
+ const createModuleLoader = (props, { logger, ...rest }) => {
268
+ const { modules } = props;
269
+ const loadModule = async (m, key) => {
270
+ if (!m) return;
271
+ const dependencies = {
272
+ ...rest,
273
+ logger: require_logging.contextLogger(require_logging.contextLogger(logger, m.moduleName), key.replace("load", ""))
274
+ };
275
+ const exportValue = moduleOrAddonExport(m, key);
276
+ if (typeof exportValue === "function") {
277
+ const defaultExport = (await exportValue()).default;
278
+ if (typeof defaultExport === "function") return defaultExport({
279
+ ...props,
280
+ loadModules: createModuleLoader(props, dependencies)
281
+ }, dependencies);
282
+ return defaultExport;
283
+ } else return exportValue;
284
+ };
285
+ const mixinsAndModules = [reduceMixinsModule(modules), ...modules];
286
+ return async (key) => {
287
+ return (await Promise.all(mixinsAndModules.map(async (m) => loadModule(m, key)))).filter(require_isNotNil.isNotNil);
288
+ };
289
+ };
290
+ //#endregion
291
+ //#region ../../packages/contract/module/src/value-objects/module-name.vo.ts
292
+ /** Types a string as a module's name, the `moduleName` it declares. It checks nothing. */
293
+ const ModuleName = (moduleName) => moduleName;
294
+ //#endregion
295
+ //#region ../../packages/contract/module/src/value-objects/contract-name.vo.ts
296
+ /** Types a string as a contract's name. It checks nothing. */
297
+ const ContractName = (moduleKind) => moduleKind;
298
+ //#endregion
299
+ //#region ../../packages/contract/module/src/util-mixin.ts
300
+ /**
301
+ * Combines a module's store with a contract mixin's store. Reducers,
302
+ * middleware, side effects, persist config, preloaded state, selectors and
303
+ * actions of both are merged; the mixin's entries win on a key clash.
304
+ */
305
+ const combineStore = (module, mixinStore) => {
306
+ const combinedStoreInit = (mixinStoreInit, moduleStoreInit) => async (props, dependencies) => {
307
+ const loadedModuleStore = await moduleStoreInit?.default(props, dependencies);
308
+ const loadedMixinStore = await mixinStoreInit.default(props, dependencies);
309
+ return {
310
+ middleware: (0, lodash_uniq.default)([...loadedModuleStore?.middleware || [], ...loadedMixinStore.middleware || []]),
311
+ reducers: {
312
+ ...loadedModuleStore?.reducers,
313
+ ...loadedMixinStore.reducers
314
+ },
315
+ persistConfig: {
316
+ ...loadedModuleStore?.persistConfig,
317
+ ...loadedMixinStore.persistConfig
318
+ },
319
+ preloadedState: {
320
+ ...loadedModuleStore?.preloadedState,
321
+ ...loadedMixinStore.preloadedState
322
+ },
323
+ sideEffectDependencies: {
324
+ ...loadedModuleStore?.sideEffectDependencies,
325
+ ...loadedMixinStore.sideEffectDependencies
326
+ },
327
+ sideEffects: (0, lodash_uniq.default)([...loadedModuleStore?.sideEffects || [], ...loadedMixinStore.sideEffects || []])
328
+ };
329
+ };
330
+ return {
331
+ load: async () => {
332
+ const moduleStoreInit = await module.store?.load();
333
+ return { default: combinedStoreInit(await mixinStore.load(), moduleStoreInit) };
334
+ },
335
+ context: {
336
+ actions: {
337
+ ...module.store?.context.actions,
338
+ ...mixinStore.context.actions
339
+ },
340
+ selectors: Object.assign({}, module.store?.context.selectors, mixinStore.context.selectors)
341
+ }
342
+ };
343
+ };
344
+ /**
345
+ * Creates a contract mixin: a function that patches every module implementing
346
+ * the contract with the properties `patchModule` returns.
347
+ */
348
+ const createMixin = (patchModule) => (laceModule) => ({
349
+ ...laceModule,
350
+ addons: laceModule.addons || {},
351
+ ...patchModule(laceModule)
352
+ });
353
+ //#endregion
354
+ //#region ../../packages/contract/storage/src/contract.ts
355
+ /**
356
+ * The contract a storage module implements: it gives every module's side
357
+ * effects `createDocumentStorage` and `createCollectionStorage`, backed by
358
+ * the platform's storage. A wallet loads one storage module; with two,
359
+ * `createLaceWallet` fails with `MultipleImplementationsError`.
360
+ */
361
+ const storageDependencyContract = require_store.inferContractContext({
362
+ contractType: "sideEffectDependency",
363
+ name: ContractName("storage-dependency"),
364
+ instance: "exactly-one"
365
+ });
366
+ //#endregion
367
+ //#region ../../packages/contract/feature/src/store/index.ts
368
+ var store_default$14 = require_store.inferStoreContext({
369
+ load: async () => Promise.resolve().then(() => require("./init-B2OUhY5T.cjs")),
370
+ context: {
371
+ actions: require_slice$1.featuresActions,
372
+ selectors: require_slice$1.featuresSelectors
373
+ }
374
+ });
375
+ //#endregion
376
+ //#region ../../packages/contract/feature/src/contract.ts
377
+ const featureDependencyContract = require_store.inferContractContext({
378
+ contractType: "sideEffectDependency",
379
+ name: ContractName("feature-dependency"),
380
+ instance: "exactly-one"
381
+ });
382
+ require_store.inferContractContext({
383
+ contractType: "sideEffectDependency",
384
+ name: ContractName("feature-flag-refresh-trigger-dependency"),
385
+ instance: "exactly-one"
386
+ });
387
+ const featureStoreContract = require_store.inferContractContext({
388
+ contractType: "store",
389
+ name: ContractName("feature-store"),
390
+ instance: "exactly-one",
391
+ dependsOn: require_store.combineContracts([storageDependencyContract]),
392
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$14) }))
393
+ });
394
+ //#endregion
395
+ //#region ../../packages/contract/analytics/src/store/index.ts
396
+ var store_default$13 = require_store.inferStoreContext({
397
+ load: async () => Promise.resolve().then(() => require("./init-B6Eg_o6G.cjs")),
398
+ context: {
399
+ actions: require_slice$2.analyticsActions,
400
+ selectors: require_slice$2.analyticsSelectors
401
+ }
402
+ });
403
+ //#endregion
404
+ //#region ../../packages/contract/analytics/src/contract.ts
405
+ const analyticsProviderDependencyContract = require_store.inferContractContext({
406
+ contractType: "sideEffectDependency",
407
+ name: ContractName("analytics-provider-dependency"),
408
+ instance: "exactly-one"
409
+ });
410
+ const analyticsStoreContract = require_store.inferContractContext({
411
+ contractType: "store",
412
+ name: ContractName("analytics-store"),
413
+ instance: "exactly-one",
414
+ dependsOn: require_store.combineContracts([analyticsProviderDependencyContract, featureStoreContract]),
415
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$13) }))
416
+ });
417
+ //#endregion
418
+ //#region ../../packages/contract/failures/src/contract.ts
419
+ const failuresStoreContract = require_store.inferContractContext({
420
+ name: ContractName("failures-store"),
421
+ contractType: "store",
422
+ instance: "exactly-one",
423
+ dependsOn: require_store.combineContracts([analyticsStoreContract]),
424
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, require_store.store_default) }))
425
+ });
426
+ //#endregion
427
+ //#region ../../packages/contract/network/src/store/index.ts
428
+ var store_default$12 = require_store.inferStoreContext({
429
+ load: async () => Promise.resolve().then(() => require("./init-BZ-WyAIL.cjs")),
430
+ context: {
431
+ actions: require_slice$3.networkActions,
432
+ selectors: require_slice$3.networkSelectors
433
+ }
434
+ });
435
+ //#endregion
436
+ //#region ../../packages/contract/network/src/contract.ts
437
+ const networkStoreContract = require_store.inferContractContext({
438
+ name: ContractName("network-store"),
439
+ contractType: "store",
440
+ instance: "exactly-one",
441
+ dependsOn: require_store.combineContracts([featureStoreContract]),
442
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$12) }))
443
+ });
444
+ //#endregion
445
+ //#region ../../packages/contract/wallet-repo/src/store/index.ts
446
+ var store_default$11 = require_store.inferStoreContext({
447
+ load: async () => Promise.resolve().then(() => require("./init-BUpFzYsD.cjs")),
448
+ context: {
449
+ actions: require_lace_context.walletsActions,
450
+ selectors: require_lace_context.walletsSelectors
451
+ }
452
+ });
453
+ //#endregion
454
+ //#region ../../packages/contract/wallet-repo/src/contract.ts
455
+ /**
456
+ * Store contract for the wallet repository: the persisted `wallets` state
457
+ * holding every wallet, its accounts and the active account. Exactly one
458
+ * module provides it; it depends on the network store.
459
+ */
460
+ const walletRepoStoreContract = require_store.inferContractContext({
461
+ contractType: "store",
462
+ name: ContractName("wallet-repo-store"),
463
+ instance: "exactly-one",
464
+ dependsOn: require_store.combineContracts([networkStoreContract]),
465
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$11) }))
466
+ });
467
+ require_store.inferContractContext({
468
+ name: ContractName("request-hw-connection-addon"),
469
+ instance: "exactly-one",
470
+ contractType: "addon",
471
+ provides: { addons: ["loadRequestHWConnections"] }
472
+ });
473
+ require_store.inferContractContext({
474
+ name: ContractName("search-hw-devices-addon"),
475
+ instance: "zero-or-more",
476
+ contractType: "addon",
477
+ provides: { addons: ["loadSearchHWDevices"] }
478
+ });
479
+ require_store.inferContractContext({
480
+ name: ContractName("wallet-identity-addon"),
481
+ instance: "zero-or-more",
482
+ contractType: "addon",
483
+ preloadInServiceWorker: true,
484
+ provides: { addons: ["loadWalletIdentity"] }
485
+ });
486
+ //#endregion
487
+ //#region ../../packages/contract/wallet-repo/src/wallet-type.ts
488
+ /** The kinds of wallet the wallet repository holds, by who manages their keys. */
489
+ let WalletType = /* @__PURE__ */ function(WalletType) {
490
+ /**
491
+ * Keys are held by the wallet: it stores its recovery phrase encrypted under
492
+ * the app's authentication secret, such as a password the user chooses.
493
+ * A wallet imported without its recovery phrase stores none.
494
+ */
495
+ WalletType["InMemory"] = "InMemory";
496
+ /**
497
+ * Keys, and the seed they derive from, are never stored. The wallet holds
498
+ * only public keys, and a vault module signs for it, reaching the seed for
499
+ * each signature wherever the app keeps it.
500
+ */
501
+ WalletType["LazyInMemory"] = "LazyInMemory";
502
+ /**
503
+ * Keys are managed by an external Ledger device
504
+ */
505
+ WalletType["HardwareLedger"] = "HardwareLedger";
506
+ /**
507
+ * Keys are managed by an external Trezor device
508
+ */
509
+ WalletType["HardwareTrezor"] = "HardwareTrezor";
510
+ /**
511
+ * Keys are managed by an external Cardano Seed Signer device.
512
+ * Like other hardware wallets, the wallet stores only its public keys and
513
+ * the device signs; it also stores the device master fingerprint (xfp) so
514
+ * signing requests can target the right device seed.
515
+ */
516
+ WalletType["HardwareSeedSigner"] = "HardwareSeedSigner";
517
+ /**
518
+ * Keys are managed by an external Keystone device.
519
+ * Like other hardware wallets, the wallet stores only its public keys and
520
+ * the device signs; the device communicates exclusively over QR codes and is
521
+ * identified by its BIP-32 master fingerprint (xfp) so signing requests can
522
+ * target the right device seed.
523
+ */
524
+ WalletType["HardwareKeystone"] = "HardwareKeystone";
525
+ /**
526
+ * Requires more than 1 set of keys to spend from this wallet.
527
+ * Some (or all) co-signers are other wallet (InMemory/Hardware)
528
+ * accounts from this repository.
529
+ */
530
+ WalletType["MultiSig"] = "MultiSig";
531
+ /** A Cardano script account. */
532
+ WalletType["CardanoCustody"] = "CardanoCustody";
533
+ return WalletType;
534
+ }({});
535
+ //#endregion
536
+ //#region ../../packages/contract/activities/src/store/index.ts
537
+ var store_default$10 = require_store.inferStoreContext({
538
+ load: async () => Promise.resolve().then(() => require("./init-kvn5FlPS.cjs")),
539
+ context: {
540
+ actions: require_slice$5.activitiesActions,
541
+ selectors: require_slice$5.activitiesSelectors
542
+ }
543
+ });
544
+ //#endregion
545
+ //#region ../../packages/contract/activities/src/contract.ts
546
+ const activitiesStoreContract = require_store.inferContractContext({
547
+ name: ContractName("activities-store"),
548
+ contractType: "store",
549
+ instance: "exactly-one",
550
+ dependsOn: require_store.combineContracts([failuresStoreContract]),
551
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$10) }))
552
+ });
553
+ //#endregion
554
+ //#region ../../packages/contract/addresses/src/store/index.ts
555
+ var store_default$9 = require_store.inferStoreContext({
556
+ load: async () => Promise.resolve().then(() => require("./init-BpwlQ6wF.cjs")),
557
+ context: {
558
+ actions: require_slice$6.addressesActions,
559
+ selectors: require_slice$6.addressesSelectors
560
+ }
561
+ });
562
+ //#endregion
563
+ //#region ../../packages/contract/addresses/src/contract.ts
564
+ const addressesStoreContract = require_store.inferContractContext({
565
+ name: ContractName("addresses-store"),
566
+ contractType: "store",
567
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$9) })),
568
+ instance: "at-least-one"
569
+ });
570
+ require_store.inferContractContext({
571
+ name: ContractName("addresses-alias-resolver-addon"),
572
+ instance: "zero-or-more",
573
+ contractType: "addon",
574
+ preloadInServiceWorker: true,
575
+ provides: { addons: ["loadAddressAliasResolver"] }
576
+ });
577
+ //#endregion
578
+ //#region ../../packages/contract/sync/src/contract.ts
579
+ const syncStoreContract = require_store.inferContractContext({
580
+ name: ContractName("sync-store"),
581
+ contractType: "store",
582
+ instance: "at-least-one",
583
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, require_slice.store_default) }))
584
+ });
585
+ //#endregion
586
+ //#region ../../packages/contract/tokens/src/store/index.ts
587
+ var store_default$8 = require_store.inferStoreContext({
588
+ load: async () => Promise.resolve().then(() => require("./init-5SfWgCYD.cjs")),
589
+ context: {
590
+ actions: require_slice$4.tokensActions,
591
+ selectors: require_slice$4.tokensSelectors
592
+ }
593
+ });
594
+ //#endregion
595
+ //#region ../../packages/contract/tokens/src/contract.ts
596
+ const tokensStoreContract = require_store.inferContractContext({
597
+ name: ContractName("tokens-store"),
598
+ contractType: "store",
599
+ dependsOn: require_store.combineContracts([storageDependencyContract]),
600
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$8) })),
601
+ instance: "at-least-one"
602
+ });
603
+ //#endregion
604
+ //#region ../../packages/contract/cardano-context/src/store/index.ts
605
+ var store_default$7 = require_store.inferStoreContext({
606
+ load: async () => Promise.resolve().then(() => require("./init-BF-a2p6E.cjs")),
607
+ context: {
608
+ actions: require_slice.cardanoContextActions,
609
+ selectors: require_slice.cardanoContextSelectors
610
+ }
611
+ });
612
+ //#endregion
613
+ //#region ../../packages/contract/views/src/store/index.ts
614
+ var store_default$6 = require_store.inferStoreContext({
615
+ load: async () => Promise.resolve().then(() => require("./init-DmyuM9Lo.cjs")),
616
+ context: {
617
+ actions: require_slice$7.viewsActions,
618
+ selectors: require_slice$7.viewsSelectors
619
+ }
620
+ });
621
+ //#endregion
622
+ //#region ../../packages/contract/views/src/ui-addon-contracts.ts
623
+ const initializeExtensionViewAddonContract = require_store.inferContractContext({
624
+ name: ContractName("initialize-extension-view-addon"),
625
+ instance: "zero-or-more",
626
+ contractType: "addon",
627
+ provides: { addons: ["loadInitializeExtensionView"] }
628
+ });
629
+ const initializeMobileViewAddonContract = require_store.inferContractContext({
630
+ name: ContractName("initialize-mobile-view-addon"),
631
+ instance: "zero-or-more",
632
+ contractType: "addon",
633
+ provides: { addons: ["loadInitializeMobileView"] }
634
+ });
635
+ const renderRootAddonContract = require_store.inferContractContext({
636
+ name: ContractName("render-root-addon"),
637
+ instance: "zero-or-more",
638
+ contractType: "addon",
639
+ provides: { addons: ["renderRoot"] }
640
+ });
641
+ const stackPagesAddonContract = require_store.inferContractContext({
642
+ name: ContractName("stack-pages-addon"),
643
+ instance: "zero-or-more",
644
+ contractType: "addon",
645
+ provides: { addons: ["loadStackPages"] }
646
+ });
647
+ const tabPagesAddonContract = require_store.inferContractContext({
648
+ name: ContractName("tab-pages-addon"),
649
+ instance: "zero-or-more",
650
+ contractType: "addon",
651
+ provides: { addons: ["loadTabPages"] }
652
+ });
653
+ require_store.inferContractContext({
654
+ name: ContractName("global-overlays-addon"),
655
+ instance: "zero-or-more",
656
+ contractType: "addon",
657
+ provides: { addons: ["loadGlobalOverlays"] }
658
+ });
659
+ const sheetPagesAddonContract = require_store.inferContractContext({
660
+ name: ContractName("sheet-pages-addon"),
661
+ instance: "zero-or-more",
662
+ contractType: "addon",
663
+ provides: { addons: ["loadSheetPages"] }
664
+ });
665
+ require_store.inferContractContext({
666
+ name: ContractName("load-deep-links-addon"),
667
+ instance: "exactly-one",
668
+ contractType: "addon",
669
+ provides: { addons: ["loadMobileDeepLinks"] }
670
+ });
671
+ //#endregion
672
+ //#region ../../packages/contract/views/src/ui-addon-dependencies.ts
673
+ /**
674
+ * The UI addon contracts the views store depends on, in its dependency
675
+ * order.
676
+ */
677
+ const viewsUiAddonDependencies = [
678
+ initializeExtensionViewAddonContract,
679
+ initializeMobileViewAddonContract,
680
+ tabPagesAddonContract,
681
+ stackPagesAddonContract,
682
+ renderRootAddonContract,
683
+ sheetPagesAddonContract
684
+ ];
685
+ //#endregion
686
+ //#region ../../packages/contract/views/src/contract.ts
687
+ const viewsStoreContract = require_store.inferContractContext({
688
+ name: ContractName("views-store"),
689
+ instance: "exactly-one",
690
+ contractType: "store",
691
+ dependsOn: require_store.combineContracts([analyticsStoreContract, ...viewsUiAddonDependencies]),
692
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$6) }))
693
+ });
694
+ /** Direct import of this is an anti-pattern. OK for tests. */
695
+ const appActions = { app: { reloadApplication: (0, _reduxjs_toolkit.createAction)("app/reloadApplication") } };
696
+ const uiActions = { ui: {
697
+ showToast: (0, _reduxjs_toolkit.createAction)("ui/showToast"),
698
+ hideToast: (0, _reduxjs_toolkit.createAction)("ui/hideToast")
699
+ } };
700
+ //#endregion
701
+ //#region ../../packages/contract/app/src/store/index.ts
702
+ var store_default$5 = require_store.inferStoreContext({
703
+ load: async () => Promise.resolve().then(() => require("./init-CH0yyBof.cjs")),
704
+ context: { actions: {
705
+ ...appActions,
706
+ ...uiActions
707
+ } }
708
+ });
709
+ require_store.inferContractContext({
710
+ name: ContractName("profile-dropdown-wallets-addon"),
711
+ contractType: "addon",
712
+ instance: "zero-or-more",
713
+ provides: { addons: ["loadProfileDropdownWalletsUICustomisations", "loadProfileDropdownMenuItemUICustomisations"] }
714
+ });
715
+ require_store.inferContractContext({
716
+ name: ContractName("blockchain-specific-app-customizations-addon"),
717
+ instance: "zero-or-more",
718
+ contractType: "addon",
719
+ provides: { addons: [
720
+ "loadAccountUICustomisations",
721
+ "loadReceiveSheetAddressDataCustomisations",
722
+ "loadTokenDetailsUICustomisations",
723
+ "loadPortfolioBannerUICustomisations",
724
+ "loadAboutPageUICustomisations"
725
+ ] }
726
+ });
727
+ require_store.inferContractContext({
728
+ name: ContractName("token-details-ui-customisations-addon"),
729
+ instance: "zero-or-more",
730
+ contractType: "addon",
731
+ provides: { addons: ["loadTokenDetailsUICustomisations"] }
732
+ });
733
+ require_store.inferContractContext({
734
+ name: ContractName("portfolio-announcements-addon"),
735
+ instance: "zero-or-more",
736
+ contractType: "addon",
737
+ provides: { addons: ["loadPortfolioAnnouncements"] }
738
+ });
739
+ require_store.inferContractContext({
740
+ name: ContractName("blockchain-specific-app-settings-page-customizations-addon"),
741
+ instance: "zero-or-more",
742
+ contractType: "addon",
743
+ provides: { addons: ["loadSettingsPageUICustomisations"] }
744
+ });
745
+ require_store.inferContractContext({
746
+ name: ContractName("dialogs-addon"),
747
+ instance: "zero-or-more",
748
+ contractType: "addon",
749
+ provides: { addons: ["loadDialogs"] }
750
+ });
751
+ require_store.inferContractContext({
752
+ name: ContractName("account-ui-customisation-addon"),
753
+ instance: "zero-or-more",
754
+ contractType: "addon",
755
+ provides: { addons: ["loadAccountUICustomisations"] }
756
+ });
757
+ require_store.inferContractContext({
758
+ name: ContractName("send-flow-sheet-ui-customisation-addon"),
759
+ instance: "zero-or-more",
760
+ contractType: "addon",
761
+ provides: { addons: ["loadSendFlowSheetUICustomisations"] }
762
+ });
763
+ //#endregion
764
+ //#region ../../packages/contract/app/src/ui-addon-dependencies.ts
765
+ /**
766
+ * The UI addon contracts the app store depends on, in its dependency
767
+ * order.
768
+ */
769
+ const appUiAddonDependencies = [
770
+ require_store.inferContractContext({
771
+ name: ContractName("app-context-initialization-addon"),
772
+ instance: "zero-or-more",
773
+ contractType: "addon",
774
+ preloadInServiceWorker: true,
775
+ provides: { addons: ["loadInitializeAppContext"] }
776
+ }),
777
+ require_store.inferContractContext({
778
+ name: ContractName("app-menu-items-addon"),
779
+ instance: "zero-or-more",
780
+ contractType: "addon",
781
+ provides: { addons: ["loadAppMenuItems"] }
782
+ }),
783
+ require_store.inferContractContext({
784
+ name: ContractName("tab-menu-items-addon"),
785
+ instance: "zero-or-more",
786
+ contractType: "addon",
787
+ provides: { addons: ["loadTabMenuItems"] }
788
+ })
789
+ ];
790
+ //#endregion
791
+ //#region ../../packages/contract/app/src/contract.ts
792
+ const performAppReloadDependencyContract = require_store.inferContractContext({
793
+ contractType: "sideEffectDependency",
794
+ name: ContractName("perform-app-reload-dependency"),
795
+ instance: "exactly-one"
796
+ });
797
+ const appStoreContract = require_store.inferContractContext({
798
+ name: ContractName("app-store"),
799
+ instance: "exactly-one",
800
+ contractType: "store",
801
+ dependsOn: require_store.combineContracts([
802
+ viewsStoreContract,
803
+ ...appUiAddonDependencies,
804
+ analyticsStoreContract,
805
+ featureStoreContract,
806
+ tokensStoreContract,
807
+ performAppReloadDependencyContract
808
+ ]),
809
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$5) }))
810
+ });
811
+ //#endregion
812
+ //#region ../../packages/contract/app/src/utils.ts
813
+ const runInitializers = async (initializers) => Promise.all(initializers.map(async (initializer) => initializer()));
814
+ //#endregion
815
+ //#region ../../packages/contract/wallet-active-state/src/contract.ts
816
+ const walletActiveStateDependencyContract = require_store.inferContractContext({
817
+ contractType: "sideEffectDependency",
818
+ name: ContractName("wallet-active-state-dependency"),
819
+ instance: "exactly-one"
820
+ });
821
+ //#endregion
822
+ //#region ../../packages/contract/cardano-context/src/contract.ts
823
+ const cardanoProviderDependencyContract = require_store.inferContractContext({
824
+ contractType: "sideEffectDependency",
825
+ name: ContractName("cardano-provider-dependency"),
826
+ instance: "exactly-one"
827
+ });
828
+ const cardanoInMemorySigningDependencyContract = require_store.inferContractContext({
829
+ contractType: "sideEffectDependency",
830
+ name: ContractName("cardano-in-memory-signing-dependency"),
831
+ instance: "exactly-one"
832
+ });
833
+ /**
834
+ * Implementor must provide sideEffectDependencies (CardanoProviderDependencies)
835
+ */
836
+ const cardanoProviderStoreContract = require_store.inferContractContext({
837
+ name: ContractName("cardano-provider-store"),
838
+ instance: "exactly-one",
839
+ contractType: "store",
840
+ dependsOn: require_store.combineContracts([
841
+ networkStoreContract,
842
+ activitiesStoreContract,
843
+ addressesStoreContract,
844
+ appStoreContract,
845
+ tokensStoreContract,
846
+ walletActiveStateDependencyContract,
847
+ walletRepoStoreContract,
848
+ cardanoProviderDependencyContract,
849
+ syncStoreContract,
850
+ failuresStoreContract,
851
+ analyticsStoreContract,
852
+ featureStoreContract
853
+ ]),
854
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$7) }))
855
+ });
856
+ const delegationTxBuilderAddonContract = require_store.inferContractContext({
857
+ name: ContractName("delegation-tx-builder-addon"),
858
+ instance: "at-least-one",
859
+ contractType: "addon",
860
+ preloadInServiceWorker: true,
861
+ provides: { addons: ["loadDelegationTxBuilder"] }
862
+ });
863
+ const deregistrationTxBuilderAddonContract = require_store.inferContractContext({
864
+ name: ContractName("deregistration-tx-builder-addon"),
865
+ instance: "at-least-one",
866
+ contractType: "addon",
867
+ preloadInServiceWorker: true,
868
+ provides: { addons: ["loadDeregistrationTxBuilder"] }
869
+ });
870
+ const voteDelegationTxBuilderAddonContract = require_store.inferContractContext({
871
+ name: ContractName("vote-delegation-tx-builder-addon"),
872
+ instance: "at-least-one",
873
+ contractType: "addon",
874
+ preloadInServiceWorker: true,
875
+ provides: { addons: ["loadVoteDelegationTxBuilder"] }
876
+ });
877
+ const earnRewardsTxBuilderAddonContract = require_store.inferContractContext({
878
+ name: ContractName("earn-rewards-tx-builder-addon"),
879
+ instance: "at-least-one",
880
+ contractType: "addon",
881
+ preloadInServiceWorker: true,
882
+ provides: { addons: ["loadEarnRewardsTxBuilder"] }
883
+ });
884
+ //#endregion
885
+ //#region ../../packages/contract/signer/src/store/index.ts
886
+ var store_default$4 = require_store.inferStoreContext({
887
+ load: async () => Promise.resolve().then(() => require("./init-wgiBUmyW.cjs")),
888
+ context: {
889
+ actions: {},
890
+ selectors: {}
891
+ }
892
+ });
893
+ //#endregion
894
+ //#region ../../packages/contract/signer/src/contract.ts
895
+ const signerFactoryAddonContract = require_store.inferContractContext({
896
+ name: ContractName("signer-factory-addon"),
897
+ instance: "at-least-one",
898
+ contractType: "addon",
899
+ preloadInServiceWorker: true,
900
+ provides: { addons: ["loadSignerFactory"] }
901
+ });
902
+ const signerStoreContract = require_store.inferContractContext({
903
+ name: ContractName("signer-store"),
904
+ instance: "exactly-one",
905
+ contractType: "store",
906
+ dependsOn: require_store.combineContracts([signerFactoryAddonContract]),
907
+ mixin: createMixin((laceModule) => ({ store: combineStore(laceModule, store_default$4) }))
908
+ });
909
+ //#endregion
910
+ //#region ../../packages/module/cardano-sync/src/store/index.ts
911
+ var store_default$3 = require_store.inferStoreContext({
912
+ load: async () => Promise.resolve().then(() => require("./init-DexLSprL2.cjs")),
913
+ context: {
914
+ actions: {},
915
+ selectors: {}
916
+ }
917
+ });
918
+ //#endregion
919
+ //#region ../../packages/module/cardano-sync/src/module.ts
920
+ const cardanoSyncModule = require_store.inferModuleContext({
921
+ moduleName: ModuleName("cardano-sync"),
922
+ implements: require_store.combineContracts([]),
923
+ dependsOn: require_store.combineContracts([cardanoProviderStoreContract, syncStoreContract]),
924
+ store: store_default$3,
925
+ feature: {
926
+ willLoad: (featureFlags) => featureFlags.some((flag) => flag.key === require_const.FEATURE_FLAG_CARDANO),
927
+ metadata: {
928
+ name: "CardanoSync",
929
+ description: "Cardano provider-backed sync executors and round model"
930
+ }
931
+ },
932
+ addons: {}
933
+ });
934
+ //#endregion
935
+ //#region src/app-context.ts
936
+ /** Runs the app-context initializers the loaded modules provide, such as i18n. */
937
+ const initializeAppContext = async (loadModules) => {
938
+ await runInitializers(await loadModules("addons.loadInitializeAppContext"));
939
+ };
940
+ //#endregion
941
+ //#region src/base-module-store/index.ts
942
+ var base_module_store_default = require_store.inferStoreContext({
943
+ load: async () => Promise.resolve().then(() => require("./init-BT67pd9x.cjs")),
944
+ context: {
945
+ actions: {},
946
+ selectors: {}
947
+ }
948
+ });
949
+ //#endregion
950
+ //#region src/base-module.ts
951
+ /**
952
+ * SDK base module - implements the "app shell" store contracts
953
+ * that app-mobile currently provides.
954
+ *
955
+ * NOTE: app-mobile owns too many store contracts that should ideally
956
+ * be implemented by their respective domain modules (e.g., sendFlowStoreContract
957
+ * should be owned by a send-flow domain module, activitiesStoreContract by an
958
+ * activities domain module, etc.). This base module inherits that over-centralization
959
+ * for now. As contracts get properly distributed to domain modules in the future,
960
+ * this base module should shrink.
961
+ */
962
+ const implementsContracts$1 = require_store.combineContracts([
963
+ activitiesStoreContract,
964
+ analyticsStoreContract,
965
+ analyticsProviderDependencyContract,
966
+ networkStoreContract,
967
+ failuresStoreContract,
968
+ walletActiveStateDependencyContract,
969
+ walletRepoStoreContract,
970
+ signerStoreContract
971
+ ]);
972
+ const sdkBaseModule = require_store.inferModuleContext({
973
+ moduleName: ModuleName("lace-sdk-base"),
974
+ implements: implementsContracts$1,
975
+ store: base_module_store_default,
976
+ addons: {}
977
+ });
978
+ //#endregion
979
+ //#region src/cardano-app-module-store/index.ts
980
+ var cardano_app_module_store_default = require_store.inferStoreContext({
981
+ load: async () => Promise.resolve().then(() => require("./init-xzZPlQwB.cjs")),
982
+ context: {
983
+ actions: {},
984
+ selectors: {}
985
+ }
986
+ });
987
+ //#endregion
988
+ //#region src/cardano-app-module.ts
989
+ /**
990
+ * The key of the flag that enables Bitcoin accounts. Spelled out here rather
991
+ * than imported from the Bitcoin contract, which is canary code that neither
992
+ * the stable build nor the Cardano entry may carry (ADR 66).
993
+ */
994
+ const BITCOIN_FEATURE_FLAG_KEY = require_feature_flag_key_vo.FeatureFlagKey("BLOCKCHAIN_BITCOIN");
995
+ /**
996
+ * The app-shell contracts the blockchain modules need, such as the analytics
997
+ * store that failures report to, implemented headless. `createLaceWallet`
998
+ * loads it whenever the Cardano or Bitcoin feature flag is on.
999
+ */
1000
+ const sdkCardanoAppModule = require_store.inferModuleContext({
1001
+ moduleName: ModuleName("lace-sdk-cardano-app"),
1002
+ implements: require_store.combineContracts([
1003
+ appStoreContract,
1004
+ viewsStoreContract,
1005
+ performAppReloadDependencyContract
1006
+ ]),
1007
+ store: cardano_app_module_store_default,
1008
+ feature: {
1009
+ willLoad: (featureFlags) => featureFlags.some((flag) => flag.key === require_const.FEATURE_FLAG_CARDANO || flag.key === BITCOIN_FEATURE_FLAG_KEY),
1010
+ metadata: {
1011
+ name: "SdkCardanoApp",
1012
+ description: "Headless app contracts of the blockchain modules"
1013
+ }
1014
+ },
1015
+ addons: {}
1016
+ });
1017
+ //#endregion
1018
+ //#region src/create-lace-wallet.ts
1019
+ const parseKey = (key) => {
1020
+ const items = key.split(".");
1021
+ if (items.length < 2) throw new Error(`Invalid key "${key}", expected format: "{scope}.{actionName}"`);
1022
+ return items;
1023
+ };
1024
+ /**
1025
+ * Creates a wallet from a set of modules. The SDK adds its own base modules,
1026
+ * keeps the modules whose feature flags are enabled, and checks that every
1027
+ * contract a module depends on is implemented, and implemented once where it
1028
+ * allows only one. It then loads the modules and returns a wallet whose
1029
+ * actions and state are typed from them.
1030
+ *
1031
+ * @param props - The modules, environment, configuration and feature flags.
1032
+ * @returns The wallet, typed from `props.modules`. Rejects with
1033
+ * `MissingContractImplementationError` or `MultipleImplementationsError` when
1034
+ * the modules do not fit together.
1035
+ */
1036
+ const createLaceWallet = async (props) => {
1037
+ const { modules, environment, config, featureFlags = [] } = props;
1038
+ const app = "lace-sdk";
1039
+ const logger = ts_log.dummyLogger;
1040
+ const allModules = [
1041
+ sdkBaseModule,
1042
+ sdkCardanoAppModule,
1043
+ cardanoSyncModule,
1044
+ ...modules
1045
+ ];
1046
+ const { modulesToLoad } = require_util.selectModules(allModules, featureFlags, environment);
1047
+ const moduleInitProps = {
1048
+ modules: modulesToLoad,
1049
+ runtime: {
1050
+ app,
1051
+ env: environment,
1052
+ config,
1053
+ platform: "web",
1054
+ features: {
1055
+ availableModules: allModules,
1056
+ loaded: {
1057
+ featureFlags,
1058
+ modules: modulesToLoad.map((m) => ({
1059
+ moduleName: m.moduleName,
1060
+ feature: m.feature ? { metadata: m.feature.metadata } : void 0
1061
+ }))
1062
+ }
1063
+ }
1064
+ }
1065
+ };
1066
+ const loadModules = createModuleLoader(moduleInitProps, { logger });
1067
+ const reduxPersistStorage = createReduxPersistStorage(await findStorageModule(moduleInitProps, { logger }));
1068
+ await initializeAppContext(loadModules);
1069
+ const { store, stateObservables, actionObservables } = await createStore({
1070
+ ...moduleInitProps,
1071
+ loadModules
1072
+ }, {
1073
+ logger,
1074
+ reduxPersistStorage
1075
+ });
1076
+ const stores = await loadModules("store");
1077
+ const actions = {};
1078
+ for (const s of stores) Object.assign(actions, s.context.actions);
1079
+ const dispatch = (key, ...args) => {
1080
+ const [scope, actionCreatorName] = parseKey(key);
1081
+ const actionCreator = actions[scope]?.[actionCreatorName];
1082
+ if (!actionCreator) throw new Error(`Unknown action: ${key}`);
1083
+ store.dispatch(actionCreator(...args));
1084
+ };
1085
+ return {
1086
+ stateObservables,
1087
+ actionObservables,
1088
+ dispatch,
1089
+ getState: () => store.getState(),
1090
+ _loadModules: loadModules
1091
+ };
1092
+ };
1093
+ //#endregion
1094
+ //#region ../../packages/contract/authentication-prompt/src/value-objects/auth-secret.ts
1095
+ const AuthSecret = (authSecret) => require_redacted.Redacted.make(authSecret);
1096
+ const fromUTF8 = (utf8string) => AuthSecret(require_bytes_vo.ByteArray.fromUTF8(utf8string));
1097
+ const fromHex = (hex) => AuthSecret(require_bytes_vo.HexBytes.toByteArray(hex));
1098
+ AuthSecret.fromUTF8 = fromUTF8;
1099
+ AuthSecret.fromHex = fromHex;
1100
+ //#endregion
1101
+ //#region ../../packages/contract/in-memory/src/contract.ts
1102
+ const inMemoryIntegrationAddonContract = require_store.inferContractContext({
1103
+ name: ContractName("in-memory-integration-addon"),
1104
+ instance: "at-least-one",
1105
+ contractType: "addon",
1106
+ preloadInServiceWorker: true,
1107
+ provides: { addons: ["loadInMemoryWalletIntegration"] }
1108
+ });
1109
+ //#endregion
1110
+ //#region ../../packages/contract/onboarding-v2/src/store/wallet-creation/wallet-entity.ts
1111
+ /**
1112
+ * Factory for creating in-memory wallet entities.
1113
+ *
1114
+ * With `password`: encrypts the recovery phrase and returns an
1115
+ * {@link InMemoryWallet}. Without `password`: persists no seed material and
1116
+ * returns a {@link LazyInMemoryWallet} — signing relies on an external module
1117
+ * re-supplying the mnemonic on demand.
1118
+ */
1119
+ const createInMemoryWalletEntityFactory = ({ integrations, logger }) => {
1120
+ const create = async ({ walletName, blockchains, password, order, recoveryPhrase }) => {
1121
+ const walletId = WalletId.deriveFromMnemonic(recoveryPhrase);
1122
+ const integrationResults = await Promise.all(integrations.filter(({ blockchainName }) => blockchains.includes(blockchainName)).map(async (integration) => integration.initializeWallet({
1123
+ recoveryPhrase,
1124
+ walletId,
1125
+ order,
1126
+ walletName,
1127
+ password
1128
+ }, { logger }).then((result) => ({
1129
+ ...result,
1130
+ blockchainName: integration.blockchainName
1131
+ }))));
1132
+ const blockchainSpecific = integrationResults.map(({ blockchainName, blockchainSpecificWalletData }) => ({ [blockchainName]: blockchainSpecificWalletData })).reduce((accumulator, value) => ({
1133
+ ...accumulator,
1134
+ ...value
1135
+ }), {});
1136
+ const accounts = integrationResults.flatMap(({ accounts }) => accounts);
1137
+ if (!password) return {
1138
+ accounts,
1139
+ blockchainSpecific,
1140
+ metadata: {
1141
+ name: walletName,
1142
+ order
1143
+ },
1144
+ type: WalletType.LazyInMemory,
1145
+ walletId
1146
+ };
1147
+ return {
1148
+ accounts,
1149
+ blockchainSpecific,
1150
+ encryptedRecoveryPhrase: await encryptRecoveryPhrase(recoveryPhrase, password),
1151
+ isPassphraseConfirmed: false,
1152
+ metadata: {
1153
+ name: walletName,
1154
+ order
1155
+ },
1156
+ type: WalletType.InMemory,
1157
+ walletId
1158
+ };
1159
+ };
1160
+ return create;
1161
+ };
1162
+ //#endregion
1163
+ //#region src/create-in-memory-wallet-entity.ts
1164
+ async function createInMemoryWalletEntity(wallet, props) {
1165
+ return createEntity(wallet, props);
1166
+ }
1167
+ async function createBlockchainWalletEntity(wallet, blockchainName, props) {
1168
+ return createEntity(wallet, props, blockchainName);
1169
+ }
1170
+ const createEntity = async (wallet, props, blockchainName) => {
1171
+ const { mnemonicWords, password: rawPassword, walletName, order = 0 } = props;
1172
+ const password = rawPassword ? AuthSecret(require_bytes_vo.ByteArray(rawPassword)) : void 0;
1173
+ const integrations = (await wallet._loadModules("addons.loadInMemoryWalletIntegration")).filter((integration) => !blockchainName || integration.blockchainName === blockchainName);
1174
+ return createInMemoryWalletEntityFactory({
1175
+ integrations,
1176
+ logger: ts_log.dummyLogger
1177
+ })({
1178
+ blockchains: integrations.map((integration) => integration.blockchainName),
1179
+ order,
1180
+ password,
1181
+ recoveryPhrase: mnemonicWords,
1182
+ walletName
1183
+ });
1184
+ };
1185
+ //#endregion
1186
+ //#region ../../packages/module/feature-dev/src/sdk-contracts.ts
1187
+ const implementsContracts = require_store.combineContracts([featureStoreContract, featureDependencyContract]);
1188
+ //#endregion
1189
+ //#region ../../packages/module/feature-dev/src/store/index.ts
1190
+ const featureDevActions = { featureDev: { setFeatureFlags: require_actions.setFeatureFlags } };
1191
+ var store_default$2 = require_store.inferStoreContext({
1192
+ load: async () => Promise.resolve().then(() => require("./init-8NVWbo302.cjs")),
1193
+ context: {
1194
+ actions: featureDevActions,
1195
+ selectors: {}
1196
+ }
1197
+ });
1198
+ //#endregion
1199
+ //#region ../../packages/module/feature-dev/src/sdk.ts
1200
+ /**
1201
+ * Feature flags the app sets: the wallet starts with the flags passed to
1202
+ * `createLaceWallet`, and dispatching `featureDev.setFeatureFlags` replaces
1203
+ * them.
1204
+ */
1205
+ var sdk_default$2 = require_store.inferModuleContext({
1206
+ moduleName: ModuleName("feature-dev"),
1207
+ implements: implementsContracts,
1208
+ store: store_default$2,
1209
+ addons: {}
1210
+ });
1211
+ //#endregion
1212
+ //#region ../../packages/module/storage-in-memory/src/store/index.ts
1213
+ var store_default$1 = require_store.inferStoreContext({
1214
+ load: async () => Promise.resolve().then(() => require("./init-J8QobR93.cjs")),
1215
+ context: {
1216
+ actions: {},
1217
+ selectors: {}
1218
+ }
1219
+ });
1220
+ //#endregion
1221
+ //#region ../../packages/module/storage-in-memory/src/sdk.ts
1222
+ /**
1223
+ * In-memory storage: the wallet's persisted state lasts as long as the
1224
+ * process.
1225
+ */
1226
+ var sdk_default$1 = require_store.inferModuleContext({
1227
+ moduleName: ModuleName("storage-in-memory"),
1228
+ implements: require_store.combineContracts([storageDependencyContract]),
1229
+ store: store_default$1,
1230
+ addons: {}
1231
+ });
1232
+ //#endregion
1233
+ //#region ../../packages/module/storage-web-indexeddb/src/store/index.ts
1234
+ var store_default = require_store.inferStoreContext({
1235
+ load: async () => Promise.resolve().then(() => require("./init-bzvl1JhF.cjs")),
1236
+ context: {
1237
+ actions: {},
1238
+ selectors: {}
1239
+ }
1240
+ });
1241
+ //#endregion
1242
+ //#region ../../packages/module/storage-web-indexeddb/src/sdk.ts
1243
+ /**
1244
+ * Browser storage in IndexedDB: the wallet's persisted state lasts across
1245
+ * page loads and sessions.
1246
+ */
1247
+ var sdk_default = require_store.inferModuleContext({
1248
+ moduleName: ModuleName("storage-web-indexeddb"),
1249
+ implements: require_store.combineContracts([storageDependencyContract]),
1250
+ store: store_default,
1251
+ addons: {}
1252
+ });
1253
+ //#endregion
1254
+ Object.defineProperty(exports, "AuthSecret", {
1255
+ enumerable: true,
1256
+ get: function() {
1257
+ return AuthSecret;
1258
+ }
1259
+ });
1260
+ Object.defineProperty(exports, "ContractName", {
1261
+ enumerable: true,
1262
+ get: function() {
1263
+ return ContractName;
1264
+ }
1265
+ });
1266
+ Object.defineProperty(exports, "ModuleName", {
1267
+ enumerable: true,
1268
+ get: function() {
1269
+ return ModuleName;
1270
+ }
1271
+ });
1272
+ Object.defineProperty(exports, "WalletId", {
1273
+ enumerable: true,
1274
+ get: function() {
1275
+ return WalletId;
1276
+ }
1277
+ });
1278
+ Object.defineProperty(exports, "WalletType", {
1279
+ enumerable: true,
1280
+ get: function() {
1281
+ return WalletType;
1282
+ }
1283
+ });
1284
+ Object.defineProperty(exports, "activitiesStoreContract", {
1285
+ enumerable: true,
1286
+ get: function() {
1287
+ return activitiesStoreContract;
1288
+ }
1289
+ });
1290
+ Object.defineProperty(exports, "addressesStoreContract", {
1291
+ enumerable: true,
1292
+ get: function() {
1293
+ return addressesStoreContract;
1294
+ }
1295
+ });
1296
+ Object.defineProperty(exports, "cardanoInMemorySigningDependencyContract", {
1297
+ enumerable: true,
1298
+ get: function() {
1299
+ return cardanoInMemorySigningDependencyContract;
1300
+ }
1301
+ });
1302
+ Object.defineProperty(exports, "cardanoProviderDependencyContract", {
1303
+ enumerable: true,
1304
+ get: function() {
1305
+ return cardanoProviderDependencyContract;
1306
+ }
1307
+ });
1308
+ Object.defineProperty(exports, "cardanoProviderStoreContract", {
1309
+ enumerable: true,
1310
+ get: function() {
1311
+ return cardanoProviderStoreContract;
1312
+ }
1313
+ });
1314
+ Object.defineProperty(exports, "combineStore", {
1315
+ enumerable: true,
1316
+ get: function() {
1317
+ return combineStore;
1318
+ }
1319
+ });
1320
+ Object.defineProperty(exports, "createBlockchainWalletEntity", {
1321
+ enumerable: true,
1322
+ get: function() {
1323
+ return createBlockchainWalletEntity;
1324
+ }
1325
+ });
1326
+ Object.defineProperty(exports, "createInMemoryWalletEntity", {
1327
+ enumerable: true,
1328
+ get: function() {
1329
+ return createInMemoryWalletEntity;
1330
+ }
1331
+ });
1332
+ Object.defineProperty(exports, "createLaceWallet", {
1333
+ enumerable: true,
1334
+ get: function() {
1335
+ return createLaceWallet;
1336
+ }
1337
+ });
1338
+ Object.defineProperty(exports, "createMixin", {
1339
+ enumerable: true,
1340
+ get: function() {
1341
+ return createMixin;
1342
+ }
1343
+ });
1344
+ Object.defineProperty(exports, "delegationTxBuilderAddonContract", {
1345
+ enumerable: true,
1346
+ get: function() {
1347
+ return delegationTxBuilderAddonContract;
1348
+ }
1349
+ });
1350
+ Object.defineProperty(exports, "deregistrationTxBuilderAddonContract", {
1351
+ enumerable: true,
1352
+ get: function() {
1353
+ return deregistrationTxBuilderAddonContract;
1354
+ }
1355
+ });
1356
+ Object.defineProperty(exports, "earnRewardsTxBuilderAddonContract", {
1357
+ enumerable: true,
1358
+ get: function() {
1359
+ return earnRewardsTxBuilderAddonContract;
1360
+ }
1361
+ });
1362
+ Object.defineProperty(exports, "failuresStoreContract", {
1363
+ enumerable: true,
1364
+ get: function() {
1365
+ return failuresStoreContract;
1366
+ }
1367
+ });
1368
+ Object.defineProperty(exports, "featureStoreContract", {
1369
+ enumerable: true,
1370
+ get: function() {
1371
+ return featureStoreContract;
1372
+ }
1373
+ });
1374
+ Object.defineProperty(exports, "inMemoryIntegrationAddonContract", {
1375
+ enumerable: true,
1376
+ get: function() {
1377
+ return inMemoryIntegrationAddonContract;
1378
+ }
1379
+ });
1380
+ Object.defineProperty(exports, "networkStoreContract", {
1381
+ enumerable: true,
1382
+ get: function() {
1383
+ return networkStoreContract;
1384
+ }
1385
+ });
1386
+ Object.defineProperty(exports, "sdk_default", {
1387
+ enumerable: true,
1388
+ get: function() {
1389
+ return sdk_default;
1390
+ }
1391
+ });
1392
+ Object.defineProperty(exports, "sdk_default$1", {
1393
+ enumerable: true,
1394
+ get: function() {
1395
+ return sdk_default$1;
1396
+ }
1397
+ });
1398
+ Object.defineProperty(exports, "sdk_default$2", {
1399
+ enumerable: true,
1400
+ get: function() {
1401
+ return sdk_default$2;
1402
+ }
1403
+ });
1404
+ Object.defineProperty(exports, "signerFactoryAddonContract", {
1405
+ enumerable: true,
1406
+ get: function() {
1407
+ return signerFactoryAddonContract;
1408
+ }
1409
+ });
1410
+ Object.defineProperty(exports, "storageDependencyContract", {
1411
+ enumerable: true,
1412
+ get: function() {
1413
+ return storageDependencyContract;
1414
+ }
1415
+ });
1416
+ Object.defineProperty(exports, "syncStoreContract", {
1417
+ enumerable: true,
1418
+ get: function() {
1419
+ return syncStoreContract;
1420
+ }
1421
+ });
1422
+ Object.defineProperty(exports, "tokensStoreContract", {
1423
+ enumerable: true,
1424
+ get: function() {
1425
+ return tokensStoreContract;
1426
+ }
1427
+ });
1428
+ Object.defineProperty(exports, "voteDelegationTxBuilderAddonContract", {
1429
+ enumerable: true,
1430
+ get: function() {
1431
+ return voteDelegationTxBuilderAddonContract;
1432
+ }
1433
+ });
1434
+ Object.defineProperty(exports, "walletActiveStateDependencyContract", {
1435
+ enumerable: true,
1436
+ get: function() {
1437
+ return walletActiveStateDependencyContract;
1438
+ }
1439
+ });
1440
+ Object.defineProperty(exports, "walletRepoStoreContract", {
1441
+ enumerable: true,
1442
+ get: function() {
1443
+ return walletRepoStoreContract;
1444
+ }
1445
+ });