@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.
- package/dist/{Ed25519PublicKey-lvu1s54U.cjs → Address-AMKTo-dA.cjs} +17150 -61
- package/dist/{Ed25519PublicKey-CjnuAYRR.js → Address-_c_-9hLC.js} +16955 -264
- package/dist/{Bip32Account-r3KAhCgU.js → Bip32Account-CaW1zC9Y.js} +4 -5
- package/dist/{Bip32Account-Cz3h0ZUa.cjs → Bip32Account-DOaGmKpv.cjs} +4 -5
- package/dist/Cardano-B-gyqBBD.js +311 -0
- package/dist/Cardano-BQ_af0Y3.cjs +322 -0
- package/dist/Ed25519PublicKey-B3QcR0J2.cjs +88 -0
- package/dist/Ed25519PublicKey-DIE19xHg.js +83 -0
- package/dist/InMemoryKeyAgent-Bc_xZY-v.cjs +652 -0
- package/dist/InMemoryKeyAgent-D8T3vtXy.js +631 -0
- package/dist/{PaymentAddress-DhbtuYb7.cjs → PaymentAddress-B4n1KZMx.cjs} +1 -2
- package/dist/{PaymentAddress-xSmGUQ-8.js → PaymentAddress-Cml3EA1n.js} +1 -2
- package/dist/Percent-Cfuw5YyL.cjs +11 -0
- package/dist/Percent-DpvyJ_93.js +5 -0
- package/dist/SodiumBip32Ed25519-BaD-kjyx.cjs +380 -0
- package/dist/SodiumBip32Ed25519-DCikAMsl.js +363 -0
- package/dist/{TransactionBuilder-CeJTNzm-.cjs → TransactionBuilder-BakTJvsJ.cjs} +59 -89
- package/dist/{TransactionBuilder-DGNDM4kt.js → TransactionBuilder-D2ErwVWv.js} +5 -71
- package/dist/_md-6zV2Cme0.cjs +684 -0
- package/dist/_md-gbUqlhqd.js +399 -0
- package/dist/_web-crypto-random-bytes-BvzwTYPG.js +197 -0
- package/dist/acc-module-NL_8mEHH.cjs +27654 -0
- package/dist/acc-module-ur8CkBd1.js +27624 -0
- package/dist/account-call-B7cF8ly4.cjs +293 -0
- package/dist/account-call-BF4rBcNw.js +3 -0
- package/dist/account-call-CoCq3V55.js +252 -0
- package/dist/account-call-DFcD257E.cjs +4 -0
- package/dist/account-guards-BeKbV9D1.cjs +41 -0
- package/dist/account-guards-qnFXuXSE.js +36 -0
- package/dist/{activity-type.stable-ClO9j_PH.cjs → activity-type-BPXxdHBP.cjs} +2 -1
- package/dist/{activity-type.stable-Ml0SOYv9.js → activity-type-C1geyPsH.js} +2 -1
- package/dist/address-OxwXIwbF.js +15502 -0
- package/dist/address-book-address-validator-BqYM0Uyp.cjs +41 -0
- package/dist/{address-book-address-validator-BhqRfmlL.cjs → address-book-address-validator-CGIcqn5W.cjs} +5 -4
- package/dist/{address-book-address-validator-VqIOB8PY.js → address-book-address-validator-FkkYim3z.js} +6 -4
- package/dist/address-book-address-validator-RSx2Jozy.js +39 -0
- package/dist/address-lECYBd9-.cjs +13043 -0
- package/dist/{apply-vkey-witnesses-Ctzk7eye.cjs → apply-vkey-witnesses-1jyczTkw.cjs} +1 -1
- package/dist/{apply-vkey-witnesses-Dfo7XfhL.js → apply-vkey-witnesses-Byb40-yJ.js} +1 -1
- package/dist/artefact-loader-Cqc9eSkL.cjs +182 -0
- package/dist/artefact-loader-D0T2f6F7.js +159 -0
- package/dist/auto-dismiss-failure-on-success-BWJceNXd.cjs +37 -0
- package/dist/auto-dismiss-failure-on-success-Bpod-v4r.js +31 -0
- package/dist/bip32-EPpcFrpH.cjs +3851 -0
- package/dist/{bip32ed25519-D2In8WzR.cjs → bip32ed25519-CRiG-Kjg.cjs} +5 -4
- package/dist/{bip32ed25519-qsLH_eWO.js → bip32ed25519-E-fCUZNv.js} +6 -4
- package/dist/bip39-DZomfqeY.js +9 -0
- package/dist/bip39-MAck9iod.cjs +26 -0
- package/dist/bitcoin-data-provider-D0OT_Uiu.cjs +26 -0
- package/dist/bitcoin-data-provider-LN_8oamW.js +21 -0
- package/dist/bitcoin.cjs +48 -0
- package/dist/bitcoin.d.ts +29805 -1
- package/dist/bitcoin.js +22 -0
- package/dist/{blake2b-BGHUWMsV.js → blake2b-BL-eR5G2.js} +6 -4
- package/dist/{blake2b-DspUqw68.cjs → blake2b-Iy324FwH.cjs} +5 -4
- package/dist/{blockfrost-tx-submit-provider-BUEOmdvc.js → blockfrost-tx-submit-provider-BHDLgOIE.js} +9 -162
- package/dist/{blockfrost-tx-submit-provider-B5dWbdrZ.cjs → blockfrost-tx-submit-provider-BxC19smv.cjs} +7 -171
- package/dist/{blockingWithLatestFrom-BhaE7pnA.js → blockingWithLatestFrom-FUfZFEUG.js} +1 -1
- package/dist/{blockingWithLatestFrom-DkuT3G2a.cjs → blockingWithLatestFrom-bmCPgA3c.cjs} +1 -1
- package/dist/bn-BFq5a4dk.cjs +2553 -0
- package/dist/{SodiumBip32Ed25519-BEfo1Q9m.js → browser-D5jRKv_L.js} +4 -401
- package/dist/bytes.vo-CziaOsba.js +24 -0
- package/dist/bytes.vo-hecRu3YZ.cjs +35 -0
- package/dist/{cardano-network-id-to-network-type-PXvn1ycQ.cjs → cardano-network-id-to-network-type-BwG_d6QP.cjs} +1 -1
- package/dist/{cardano-network-id-to-network-type-DHgKhDAK.js → cardano-network-id-to-network-type-CYJheetp.js} +1 -1
- package/dist/{cardano-network-id.vo-CbNNKd-k.cjs → cardano-network-id.vo-C5VuBXT3.cjs} +2 -2
- package/dist/{cardano-network-id.vo-CTYe-Oix.js → cardano-network-id.vo-CeLJqmb_.js} +2 -2
- package/dist/{cardano-tx-id.vo-BMwemq5x.js → cardano-tx-id.vo-DJ70NC0-.js} +1 -1
- package/dist/{cardano-tx-id.vo-NY-gCOWJ.cjs → cardano-tx-id.vo-lnyO9XaW.cjs} +1 -1
- package/dist/cardano.cjs +31 -24
- package/dist/cardano.d.ts +27602 -8121
- package/dist/cardano.js +21 -13
- package/dist/client-Bw2foG5E.cjs +808 -0
- package/dist/const-BB3MccLt.js +153 -0
- package/dist/{const-BErUlcZw.cjs → const-BWBAzOmN.cjs} +1 -1
- package/dist/const-CSWmOyzn.cjs +42 -0
- package/dist/{const-Dy8Ctnpd.cjs → const-D3mCkwrM.cjs} +5 -5
- package/dist/const-DW7z3R5k.js +13 -0
- package/dist/{const-DeUA7zYl.js → const-DbuUHSzR.js} +5 -5
- package/dist/const-DgBzKfz6.cjs +31995 -0
- package/dist/{const-DVW6DGkZ.js → const-xGSNCtwQ.js} +1 -1
- package/dist/contract-BsIGhsYa.js +171 -0
- package/dist/contract-DD6CGnpB.cjs +189 -0
- package/dist/create-add-accounts-2mQA0ST2.js +102 -0
- package/dist/create-add-accounts-B6mR2NMn.cjs +114 -0
- package/dist/{delegation-tx-builder-CF0VunDW.cjs → delegation-tx-builder-Cp30jtj9.cjs} +9 -8
- package/dist/{delegation-tx-builder-C8LQxU2R.js → delegation-tx-builder-DUMikSTg.js} +9 -7
- package/dist/{deregistration-tx-builder-DcUXA3Ls.cjs → deregistration-tx-builder-B-ZeY-dR.cjs} +10 -9
- package/dist/{deregistration-tx-builder-BOBPP8m_.js → deregistration-tx-builder-CRLrK99U.js} +10 -8
- package/dist/device-commitment-hex.vo-BIUYUNz1.cjs +31 -0
- package/dist/device-commitment-hex.vo-D9FsYLn7.js +26 -0
- package/dist/device-key-BToCoS4D.js +2394 -0
- package/dist/device-key-D6euvxFi.cjs +2489 -0
- package/dist/device-readers-BHJeNR8I.js +3 -0
- package/dist/device-readers-Dw7uTNM5.cjs +167 -0
- package/dist/device-readers-b4g2j3QL.js +144 -0
- package/dist/device-readers-cxcJcWq5.cjs +7 -0
- package/dist/dist-B00GN41m.js +141 -0
- package/dist/dist-BA1xnF9O.cjs +4413 -0
- package/dist/dist-BmHOXLe8.cjs +3814 -0
- package/dist/dist-Br0OVXKt.cjs +535 -0
- package/dist/dist-C1JK9C1I.cjs +3452 -0
- package/dist/dist-DKEViNEI.cjs +1306 -0
- package/dist/dist-Dwqx184a.cjs +43175 -0
- package/dist/dist-MJof_Ky1.cjs +145 -0
- package/dist/dist-p84sVVJ9.cjs +1394 -0
- package/dist/{earn-rewards-tx-builder-BRlTueHS.js → earn-rewards-tx-builder-8G_rouIk.js} +9 -7
- package/dist/{earn-rewards-tx-builder-RgO0QUY8.cjs → earn-rewards-tx-builder-cOUNV58E.cjs} +9 -8
- package/dist/enc-key-circuits-0Dud78IB.js +13 -0
- package/dist/enc-key-circuits-yjPHbuo_.cjs +24 -0
- package/dist/english-BZ_ebp2-.cjs +2057 -0
- package/dist/envelopes-B3QCzo5p.js +2658 -0
- package/dist/envelopes-BdE1xlgz.cjs +2777 -0
- package/dist/errors-BA3b8aVu.cjs +584 -0
- package/dist/errors-pkQdxW-7.js +392 -0
- package/dist/experimental.cjs +6820 -0
- package/dist/experimental.d.ts +63552 -0
- package/dist/experimental.js +6670 -0
- package/dist/fees-6C2uEWFK.js +653 -0
- package/dist/fees-DtC71fOx.cjs +820 -0
- package/dist/gated-call-BrPjKolT.js +3 -0
- package/dist/gated-call-CcsuW9L5.js +691 -0
- package/dist/gated-call-DdDrxEq5.cjs +732 -0
- package/dist/gated-call-Dk7PazhG.cjs +4 -0
- package/dist/grant-rules-B7eDuD5G.cjs +5468 -0
- package/dist/grant-rules-qLrKUIR3.js +5217 -0
- package/dist/grant-status-CDmZpx32.js +296 -0
- package/dist/grant-status-CQtwjLsA.cjs +337 -0
- package/dist/grants-Bnb-3Hkv.cjs +16 -0
- package/dist/grants-CIb6nOV7.cjs +273 -0
- package/dist/grants-CYY0AquW.js +202 -0
- package/dist/grants-DOsFSotP.js +4 -0
- package/dist/{group-cardano-addresses-by-account-C-1GHUu8.cjs → group-cardano-addresses-by-account-BGOtPV-Y.cjs} +4 -40
- package/dist/{group-cardano-addresses-by-account-p4dXmCoj.js → group-cardano-addresses-by-account-TqvESg9x.js} +6 -37
- package/dist/{guarded-transaction-signer-DZSGHp1K.js → guarded-transaction-signer-BbVDE9Nn.js} +12 -18
- package/dist/{guarded-transaction-signer-BLSezbfV.cjs → guarded-transaction-signer-DTLjAkif.cjs} +26 -26
- package/dist/hex-BVtOKJki.cjs +263 -0
- package/dist/hex-CGYJPK_Z.js +192 -0
- package/dist/http-client-B7_kBTYn.js +155 -0
- package/dist/http-client-DYQ_7Rdf.cjs +167 -0
- package/dist/identity-DxPhxkZs.js +239 -0
- package/dist/identity-y41Yle03.cjs +274 -0
- package/dist/in-memory-wallet-integration-5BKiAvPT.js +20861 -0
- package/dist/{in-memory-wallet-integration-CUTa68ET.js → in-memory-wallet-integration-BCOqDgbt.js} +10 -107
- package/dist/in-memory-wallet-integration-Bi8I9Dso.js +128 -0
- package/dist/in-memory-wallet-integration-Bsl2ONua.cjs +239 -0
- package/dist/in-memory-wallet-integration-DZ0CAyvY.cjs +20865 -0
- package/dist/{in-memory-wallet-integration-Dw_S7amX.cjs → in-memory-wallet-integration-DsFm8gLk.cjs} +21 -112
- package/dist/{in-memory-wallet-integration-Z4Bp_DTv.cjs → in-memory-wallet-integration-aW_SF-go.cjs} +8 -5
- package/dist/{in-memory-wallet-integration-B6cbAlvD.js → in-memory-wallet-integration-mIEc8EfR.js} +9 -5
- package/dist/index.cjs +95 -58
- package/dist/index.d.ts +45152 -13448
- package/dist/index.js +55 -28
- package/dist/{init-CVi8J0zk.cjs → init-5SfWgCYD.cjs} +3 -3
- package/dist/{init-Ci7aqWCf2.cjs → init-8NVWbo302.cjs} +2 -2
- package/dist/init-B-C7n6u6.js +5 -0
- package/dist/{init-BFMWRf-L.js → init-B-ppfGO-.js} +1 -1
- package/dist/{init-IiR093Jw.cjs → init-B2OUhY5T.cjs} +2 -2
- package/dist/{init-DXnus199.cjs → init-B6Eg_o6G.cjs} +5 -5
- package/dist/{init-4hDl5bpr.js → init-BAWMHL1k.js} +2 -2
- package/dist/init-BC2CZZOu2.cjs +2002 -0
- package/dist/{init-a228hXnS.cjs → init-BF-a2p6E.cjs} +65 -73
- package/dist/{init-fFirX8OY.cjs → init-BFxlQAD8.cjs} +1 -1
- package/dist/init-BJE1ry0O.js +17 -0
- package/dist/{init-BVnI4z2J.js → init-BPKBVOHU.js} +2 -2
- package/dist/{init-bdqZBd-o.js → init-BSP_xcpB.js} +2 -2
- package/dist/{init-CFNOn3lo.js → init-BSd7mznK.js} +3 -3
- package/dist/{init-MjR4swi6.js → init-BUJTT0MN.js} +36 -43
- package/dist/init-BUpFzYsD.cjs +143 -0
- package/dist/{init-BvpYHyLH.cjs → init-BZ-WyAIL.cjs} +3 -3
- package/dist/init-BZdfdLX7.js +422 -0
- package/dist/{init-CJeOys1w.cjs → init-B_HWNXMD.cjs} +2 -2
- package/dist/init-BbIMt6xU.cjs +6 -0
- package/dist/{init-BYdN1aqE.cjs → init-BewG6swt.cjs} +2 -2
- package/dist/{init-BX0AZAVH2.js → init-Bilqsbng.js} +2 -2
- package/dist/{init-Tpn9VkFu.cjs → init-BpwlQ6wF.cjs} +1 -1
- package/dist/{init-D5-P0HXK.js → init-BtQOzUjX.js} +1 -1
- package/dist/{init-BvGz3qUd2.js → init-CCTscPaY2.js} +2 -2
- package/dist/{init-D4hPipCD.cjs → init-CH0yyBof.cjs} +1 -1
- package/dist/init-CaIkrXal.cjs +121 -0
- package/dist/init-CkZy4IMf.cjs +107 -0
- package/dist/{init-Drr2f_Pr.js → init-CmfcY7SV.js} +1 -1
- package/dist/{init-Kf3_OLv6.js → init-CnJAlks_.js} +1 -1
- package/dist/{init-Cdjt_z-b.cjs → init-CqqmtAIK.cjs} +4 -4
- package/dist/{init-Bb0avZeZ.js → init-Cu2znmIc.js} +5 -5
- package/dist/init-Cz5LAizN.js +2001 -0
- package/dist/init-D4WM3-Mn.cjs +18 -0
- package/dist/init-DMi2FGpf.cjs +424 -0
- package/dist/{init-lcaUSOOG.js → init-DPTJohPd.js} +1 -1
- package/dist/{init-BTYLMF9F2.cjs → init-DexLSprL2.cjs} +258 -61
- package/dist/init-DfKPgD21.js +106 -0
- package/dist/init-DgzRsI-C.js +141 -0
- package/dist/init-Dj4Cn7-P.js +4789 -0
- package/dist/init-DktAnYI0.cjs +2354 -0
- package/dist/{init-DFwhgert.cjs → init-DmyuM9Lo.cjs} +1 -1
- package/dist/{init-CX_zLXc6.js → init-IBnizp1U.js} +5 -5
- package/dist/init-MDKB6tGI2.cjs +4790 -0
- package/dist/{init-DbZ5byj42.js → init-TbB38KNt2.js} +258 -60
- package/dist/init-X6m_cqDy.js +2353 -0
- package/dist/{init-DvVgKCaP2.cjs → init-bzvl1JhF.cjs} +2 -2
- package/dist/{init-BgrY29gW.js → init-dsYkC_0B.js} +4 -4
- package/dist/{init-B5BsI3DR.cjs → init-kvn5FlPS.cjs} +7 -7
- package/dist/init-vfy9DW_E.js +119 -0
- package/dist/{init-BE_6Jyc4.js → init-w7xl6LsP.js} +3 -3
- package/dist/{init-DEsWVyn5.cjs → init-wgiBUmyW.cjs} +1 -1
- package/dist/{is-retriable-error-DWv_ob-f.js → is-retriable-error-CmFR20pe.js} +1 -1
- package/dist/{is-retriable-error-Dtb4JGjd.cjs → is-retriable-error-D2yo0_lS.cjs} +1 -1
- package/dist/jubjub-authoriser-A2c8vmkN.js +84 -0
- package/dist/jubjub-authoriser-D3ZDgzcF.cjs +85 -0
- package/dist/key-source-CcLTx8HK.js +2761 -0
- package/dist/key-source-D2tTAag-.cjs +806 -0
- package/dist/{key-value-store-DTX1quRS.js → key-value-store-DZcNDB3n.js} +1 -1
- package/dist/{key-value-store-B-XRIwaM.cjs → key-value-store-Htj4RgMe.cjs} +1 -1
- package/dist/keyDerivation-DcKRUCVh.cjs +274 -0
- package/dist/keyDerivation-QGesIMbS.js +4077 -0
- package/dist/{lace-context-FpU3iG3f.cjs → lace-context-BN0b_ury.cjs} +4 -4
- package/dist/{lace-context-BQvvxVLm.js → lace-context-DMRJ87Vg.js} +4 -4
- package/dist/lib-BC-62Byh.cjs +2359 -0
- package/dist/lib-JYqcAX0c.js +2354 -0
- package/dist/midnight-account-id.vo--Vcx34Xk.cjs +10 -0
- package/dist/midnight-account-id.vo-BuB8fiVO.js +5 -0
- package/dist/midnight-engine-B7D2hbHo.js +5 -0
- package/dist/midnight-engine-D5ikN_5F.cjs +6 -0
- package/dist/midnight-wallet-BOdFD6SX.cjs +24 -0
- package/dist/midnight-wallet-CAqZrNVe.js +18 -0
- package/dist/midnight.cjs +1412 -0
- package/dist/midnight.d.ts +28609 -0
- package/dist/midnight.js +1355 -0
- package/dist/modules-cardano-BiL9hoM3.js +996 -0
- package/dist/modules-cardano-UeXks3sd.cjs +1109 -0
- package/dist/node-relay-BOuvdZvC.cjs +49 -0
- package/dist/node-relay-CLtc5n1v.js +48 -0
- package/dist/outputs-5qdW8s-f.js +196 -0
- package/dist/outputs-BEM1GPMf.cjs +339 -0
- package/dist/{SodiumBip32Ed25519-BQUcrQWX.cjs → pbkdf2-B1veireP.cjs} +6 -411
- package/dist/pending-operation-CfTUNQVD.cjs +26 -0
- package/dist/pending-operation-Ljijb1Uh.js +21 -0
- package/dist/providers-1on_fwJO.cjs +364 -0
- package/dist/providers-C1MsxfMA.js +341 -0
- package/dist/redacted-4SJPqt-G.js +81 -0
- package/dist/redacted-DwxIDdIF.cjs +86 -0
- package/dist/{reselect-DPML1uFN.cjs → reselect-kP4DaAII.cjs} +1 -1
- package/dist/{retry-config-oNtfdyrG.cjs → retry-config-BGv5q5QM.cjs} +1 -1
- package/dist/{retry-config-VdbuqBsI.js → retry-config-Bu5Yn5ua.js} +1 -1
- package/dist/safe-buffer-CqGpSFCQ.js +43 -0
- package/dist/safe-buffer-DbXbwhUQ.cjs +48 -0
- package/dist/sdk-1SRu8Ype.cjs +1445 -0
- package/dist/sdk-BneJm7ey.js +1249 -0
- package/dist/sdk-init-9TG1ZvHF.cjs +3795 -0
- package/dist/sdk-init-Ce3mD-8F.js +1047 -0
- package/dist/secret-box-CSmRp6Tt.js +3777 -0
- package/dist/secret-box-ZfbYwBgS.cjs +6970 -0
- package/dist/send-proof-progress-DtAcrMP6.cjs +33 -0
- package/dist/send-proof-progress-Dx2cUz1B.js +22 -0
- package/dist/sha2-DaRJZOjk.cjs +390 -0
- package/dist/sha2-c4sB6peD.js +378 -0
- package/dist/side-effects-C3BhLrdP.js +768 -0
- package/dist/side-effects-DG0R-KFc.cjs +804 -0
- package/dist/sign-bitcoin-transaction-with-seed-C7vq9om8.js +147 -0
- package/dist/sign-bitcoin-transaction-with-seed-Ds1dwzan.cjs +158 -0
- package/dist/signer--2I6poMD.js +2 -0
- package/dist/signer-CX21Ups_.cjs +121 -0
- package/dist/signer-Cnn9q9oY.js +92 -0
- package/dist/signer-DbSxjk0F.cjs +7 -0
- package/dist/signer-factory-B5oFuUZ-.cjs +130 -0
- package/dist/signer-factory-BAt8FPNc.cjs +281 -0
- package/dist/signer-factory-BGE4nL4k.js +129 -0
- package/dist/signer-factory-C4pgsiJi.js +281 -0
- package/dist/{signer-factory-DySc1wRX.cjs → signer-factory-D95jQIPV.cjs} +9 -6
- package/dist/{signer-factory-D4HrwFPl.js → signer-factory-PrpsGX-8.js} +10 -6
- package/dist/{slice-BZTQgYSs.js → slice-B-xJcuT1.js} +4 -4
- package/dist/slice-B4QOYaOG.cjs +105 -0
- package/dist/{slice-CtIMw2YT.cjs → slice-B9QKuhi0.cjs} +3 -3
- package/dist/slice-BKnGkAkd.cjs +9031 -0
- package/dist/{slice-Bhwmqn1p.cjs → slice-Bf4enJKZ.cjs} +8 -8
- package/dist/{slice-DaNVz7_l.js → slice-ByNWnxKS.js} +8 -8
- package/dist/{slice-C2UDQrdt.js → slice-C1zOeseG.js} +449 -355
- package/dist/{slice-DFLyKRm5.cjs → slice-C4toRM6A.cjs} +2 -2
- package/dist/{slice-Cx4dULDA.cjs → slice-C8YVv4Qn.cjs} +1 -1
- package/dist/{slice-jnpOgiSZ.cjs → slice-CaMfviYu.cjs} +3 -3
- package/dist/{slice-DFvrwUur.js → slice-CgeRsYRg.js} +6 -6
- package/dist/slice-Cwt8jShq.js +9013 -0
- package/dist/{slice-zNEspZND.js → slice-D0VzpMbY.js} +2 -2
- package/dist/slice-D14F78Ca.js +87 -0
- package/dist/{slice-F6A1YKOF.cjs → slice-DLflttAu.cjs} +479 -366
- package/dist/{slice-C96EdeY1.js → slice-DcO-iNz2.js} +1 -1
- package/dist/{slice-C19quNWM.cjs → slice-DimtxfAT.cjs} +2 -2
- package/dist/{slice-KiNoGwD9.js → slice-DlTEqIoI.js} +1 -1
- package/dist/{slice-ws8PccRX.js → slice-Dn0WojD7.js} +3 -3
- package/dist/{slice-BLSxLmie.cjs → slice-Dongunf7.cjs} +4 -4
- package/dist/{slice-B6vPum19.js → slice-DpufJAjJ.js} +2 -2
- package/dist/{slice-exhhmucR.cjs → slice-DtitVc9L.cjs} +7 -7
- package/dist/{slice-Bjj2t2ut.cjs → slice-WMMMc1Xv.cjs} +2 -2
- package/dist/slice-a8VuIqzS.cjs +378 -0
- package/dist/slice-bRASyM-m.js +354 -0
- package/dist/{slice-CBFrgHSH.js → slice-hNyKbDry.js} +3 -3
- package/dist/{InMemoryKeyAgent-pyB2gA-N.cjs → src-BayYMIjw.cjs} +20 -8228
- package/dist/{InMemoryKeyAgent-D-3HejxN.js → src-CgINPlSx.js} +29 -4811
- package/dist/store-AUlTfcI_.js +37 -0
- package/dist/store-C7AneHEY.cjs +66 -0
- package/dist/submit-BuBCVi-l.cjs +87 -0
- package/dist/submit-D37lxFrK.js +70 -0
- package/dist/submit-bitcoin-tx-DFLnhidO.js +983 -0
- package/dist/submit-bitcoin-tx-sih2hSfb.cjs +1049 -0
- package/dist/{subtractValueQuantities-DfZg6oiG.js → subtractValueQuantities-BuDJVxq6.js} +3 -22
- package/dist/{subtractValueQuantities-C8qDTtgH.cjs → subtractValueQuantities-CqR606HV.cjs} +2 -32
- package/dist/{sync-operation-utils-BrQyWFS_.cjs → sync-operation-utils--Z_IQfyW.cjs} +0 -66
- package/dist/{sync-operation-utils-CAaCGvEN.js → sync-operation-utils-BimBpvI3.js} +1 -37
- package/dist/token-color.vo-CItgoOjw.js +26 -0
- package/dist/token-color.vo-Ca4hUXfh.cjs +37 -0
- package/dist/token-id-mapper-BVau2RXa.js +16 -0
- package/dist/token-id-mapper-CSeLzM4o.cjs +18 -0
- package/dist/{token-id-mapper-pDaTxpw2.js → token-id-mapper-ClBeIdJR.js} +2 -2
- package/dist/{token-id-mapper-DYcd8hhQ.cjs → token-id-mapper-D0wFdbOy.cjs} +2 -2
- package/dist/types-BhzypKMS.cjs +15 -0
- package/dist/types-DTE1ctDB.js +10 -0
- package/dist/types-DXSxXGz0.js +12 -0
- package/dist/types-Dls6Z5gV.cjs +23 -0
- package/dist/{util-P4PX2muj.cjs → util-D1YlKzrc.cjs} +2 -2
- package/dist/{util-CQSJU0wT.js → util-DHxtzUzY.js} +2 -2
- package/dist/{utils-Bv4OHT4S.cjs → utils-DYf4iZKX.cjs} +7 -1
- package/dist/{utils-DrtzChYN.js → utils-DcnoETEP.js} +2 -2
- package/dist/utils-Du0YXRcU.cjs +112 -0
- package/dist/utils-fF_rnZe3.js +65 -0
- package/dist/v8Signatures-ClGpA8mS.cjs +71 -0
- package/dist/{vote-delegation-tx-builder-69gOEkCB.cjs → vote-delegation-tx-builder-BjZxCOd3.cjs} +9 -8
- package/dist/{vote-delegation-tx-builder-BRJ_pf-c.js → vote-delegation-tx-builder-DRJwPXkD.js} +9 -7
- package/dist/watch-FGE4B_Ge.js +13056 -0
- package/dist/watch-imlsRZDp.cjs +52207 -0
- package/package.json +95 -3
- package/dist/Address-4KjeDt_x.cjs +0 -17269
- package/dist/Address-_VPkf7Xh.js +0 -17101
- package/dist/account-guards.stable-BKyYPj4z.cjs +0 -10
- package/dist/account-guards.stable-BdmQ43vC.js +0 -5
- package/dist/init-BR9ZIbED.cjs +0 -378
- package/dist/init-B_k1RUN_.cjs +0 -21
- package/dist/init-Bs3b5ZQH.js +0 -378
- package/dist/init-ChfcrHgG2.cjs +0 -4354
- package/dist/init-D1uUMMpG.js +0 -19
- package/dist/init-DV1OSZiK.js +0 -4352
- package/dist/modules-cardano-BINzpXpk.js +0 -5454
- package/dist/modules-cardano-Dt8OwoQb.cjs +0 -5640
- package/dist/slice-Caf98m0d2.js +0 -107
- package/dist/slice-PM6llajQ2.cjs +0 -125
- /package/dist/{BigIntMath-CoJWXt1h.cjs → BigIntMath-CBciEQn2.cjs} +0 -0
- /package/dist/{BigIntMath-BWUJOsOW.js → BigIntMath-X3EniYDo.js} +0 -0
- /package/dist/{ChainId-sdLmlIRk.cjs → ChainId-CNPSU9nn.cjs} +0 -0
- /package/dist/{ChainId-CKbm87yQ.js → ChainId-CeoG8Sov.js} +0 -0
- /package/dist/{_polyfill-node.process-4fnlkbBi.cjs → _polyfill-node.process-5UxyjoHG.cjs} +0 -0
- /package/dist/{account-id.vo-Xpgnu-av.cjs → account-id.vo-DYZBZQsz.cjs} +0 -0
- /package/dist/{account-id.vo-DP0BtOoF.js → account-id.vo-KDTWJ-W5.js} +0 -0
- /package/dist/{actions-BNagEO6m.cjs → actions-BnHFVSr_.cjs} +0 -0
- /package/dist/{actions-BWTyAr7B.js → actions-Cwj0ApZf.js} +0 -0
- /package/dist/{asyncoption-po7-RiA5.cjs → asyncoption-CYcZNBRM.cjs} +0 -0
- /package/dist/{asyncoption-CzIVH5Y1.js → asyncoption-DZQGfznq.js} +0 -0
- /package/dist/{bignum.vo-DhhZ9HP1.js → bignum.vo-Co6tMH2q.js} +0 -0
- /package/dist/{bignum.vo-CpkrIXjH.cjs → bignum.vo-Du-bpvar.cjs} +0 -0
- /package/dist/{blockchain-network-id.vo-CbgrAY_K.js → blockchain-network-id.vo-C6Jowh8t.js} +0 -0
- /package/dist/{blockchain-network-id.vo-5iC6Kffo.cjs → blockchain-network-id.vo-DEQ14dYj.cjs} +0 -0
- /package/dist/{composite-signer-factory-DABpCe1_.js → composite-signer-factory-D9RWY-1V.js} +0 -0
- /package/dist/{composite-signer-factory-BizuNPP7.cjs → composite-signer-factory-v4Pxn8bA.cjs} +0 -0
- /package/dist/{error-ggOihIfv.cjs → error-B6wj9nPv.cjs} +0 -0
- /package/dist/{error-DHKO2iS4.js → error-CvEYL98P.js} +0 -0
- /package/dist/{esm-browser-DnXNvpcn.cjs → esm-browser-CZbMeVod.cjs} +0 -0
- /package/dist/{esm-browser-BBVQuyQv.js → esm-browser-DpAD_RKv.js} +0 -0
- /package/dist/{feature-flag-key.vo-DoGK5Bfh.js → feature-flag-key.vo-9reURsOQ.js} +0 -0
- /package/dist/{feature-flag-key.vo-CP1Z9s8e.cjs → feature-flag-key.vo-KTIdnzYX.cjs} +0 -0
- /package/dist/{first-state-of-status-Bx4-QQ5m.cjs → first-state-of-status-9ICeDNSa.cjs} +0 -0
- /package/dist/{first-state-of-status-D7XzEuSa.js → first-state-of-status-BscbKj_t.js} +0 -0
- /package/dist/{init-4319psUJ.cjs → init-BT67pd9x.cjs} +0 -0
- /package/dist/{init-AFUM1TSg.js → init-CHk1fvJ2.js} +0 -0
- /package/dist/{init-ZX90nEJe2.js → init-DIyNx6DZ.js} +0 -0
- /package/dist/{init-CTQ2g6Xt.js → init-DtxxFaCx.js} +0 -0
- /package/dist/{init-Dt1Xifg_2.cjs → init-J8QobR93.cjs} +0 -0
- /package/dist/{init-BNewLCqw.cjs → init-xzZPlQwB.cjs} +0 -0
- /package/dist/{is-redux-persist-state-DxJSsvxB.cjs → is-redux-persist-state-C5luvPEH.cjs} +0 -0
- /package/dist/{is-redux-persist-state-Bl2n4VMr.js → is-redux-persist-state-CjcqyCoh.js} +0 -0
- /package/dist/{isNotNil-CZxBMfL5.js → isNotNil-Be7gCY0m.js} +0 -0
- /package/dist/{isNotNil-C_SO1tcC.cjs → isNotNil-CrYIUFry.cjs} +0 -0
- /package/dist/{logging-BvMDKgl0.js → logging-BAMMfn5j.js} +0 -0
- /package/dist/{logging-Bh9ikph3.cjs → logging-CbxgIX9V.cjs} +0 -0
- /package/dist/{metadatum-B-sxBnSY.cjs → metadatum-BGvFqGPt.cjs} +0 -0
- /package/dist/{metadatum-Ego4jVas.js → metadatum-BVocMYy_.js} +0 -0
- /package/dist/{repo-slice-BzZQUTj8.cjs → repo-slice-BB_W-6OL.cjs} +0 -0
- /package/dist/{repo-slice-vCcQJotS.js → repo-slice-BQlssw9M.js} +0 -0
- /package/dist/{reselect-BPkMzw3k.js → reselect-JIgawvPe.js} +0 -0
- /package/dist/{serializable-BxFUShKY.js → serializable-F7OtYl8d.js} +0 -0
- /package/dist/{serializable-DWgkHhv_.cjs → serializable-n3UoxbZc.cjs} +0 -0
- /package/dist/{slice-DY-DNtSi.js → slice-5dGBAz6w.js} +0 -0
- /package/dist/{slice-BEFoeqgr.cjs → slice-BzJgg9FS.cjs} +0 -0
- /package/dist/{src-CPmX4KUh.cjs → src-CeBNkonz.cjs} +0 -0
- /package/dist/{src-XOZXPKxe.js → src-Cv1ifqbe.js} +0 -0
- /package/dist/{time-CQPt4FdU.js → time-ByoKevdZ.js} +0 -0
- /package/dist/{time-Blvoyh9G.cjs → time-qD7edGU0.cjs} +0 -0
- /package/dist/{time.vo-Xln4yGBU.js → time.vo-C17-tYq3.js} +0 -0
- /package/dist/{time.vo-rwWwJzmP.cjs → time.vo-TmYE-_Y2.cjs} +0 -0
- /package/dist/{toEmpty-CzmoZVLN.cjs → toEmpty-Db6V94Mf.cjs} +0 -0
- /package/dist/{toEmpty-DzLd-ZCi.js → toEmpty-Djj-QbpI.js} +0 -0
- /package/dist/{token-id.vo-l8fuSpem.cjs → token-id.vo-CZ622zcZ.cjs} +0 -0
- /package/dist/{token-id.vo-DMKSaMlc.js → token-id.vo-IDI9C_Qm.js} +0 -0
- /package/dist/{types-B61DQoFW.js → types-By-XeXWg.js} +0 -0
- /package/dist/{types-CUC-Kcqh.cjs → types-Cn6WlQV6.cjs} +0 -0
- /package/dist/{util-BV3iGOrz.cjs → util-Cp1h58uD.cjs} +0 -0
- /package/dist/{util-BsQKLorV.js → util-DHppXj7U.js} +0 -0
- /package/dist/{util-selector-CKIyoAOz.js → util-selector-BWmHpo92.js} +0 -0
- /package/dist/{util-selector-C9H5RsNw.cjs → util-selector-glXkO-jR.cjs} +0 -0
- /package/dist/{while-active-CNXeLxre.js → while-active-CDBnUlQA.js} +0 -0
- /package/dist/{while-active-BsDWSNrO.cjs → while-active-I2TlHtm7.cjs} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { a as KeyRole } from "./types-B61DQoFW.js";
|
|
1
|
+
import { $t as blake2b, Ft as BaseAddress, I as RewardAddress, P as RewardAccount, Yt as Ed25519PublicKeyHex, r as CredentialType } from "./Address-_c_-9hLC.js";
|
|
2
|
+
import { t as SodiumBip32Ed25519 } from "./SodiumBip32Ed25519-DCikAMsl.js";
|
|
3
|
+
import { t as PaymentAddress } from "./PaymentAddress-Cml3EA1n.js";
|
|
4
|
+
import { a as KeyRole } from "./types-By-XeXWg.js";
|
|
6
5
|
//#region ../../node_modules/@cardano-sdk/key-management/dist/esm/Bip32Account.js
|
|
7
6
|
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
8
7
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
require("./
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_types = require("./types-CUC-Kcqh.cjs");
|
|
1
|
+
const require_Address = require("./Address-AMKTo-dA.cjs");
|
|
2
|
+
const require_SodiumBip32Ed25519 = require("./SodiumBip32Ed25519-BaD-kjyx.cjs");
|
|
3
|
+
const require_PaymentAddress = require("./PaymentAddress-B4n1KZMx.cjs");
|
|
4
|
+
const require_types = require("./types-Cn6WlQV6.cjs");
|
|
6
5
|
//#region ../../node_modules/@cardano-sdk/key-management/dist/esm/Bip32Account.js
|
|
7
6
|
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
8
7
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { a as __toESM, r as __exportAll } from "./chunk-D6g4UhsZ.js";
|
|
2
|
+
import { u as InvalidStringError } from "./errors-CAOTqN4_.js";
|
|
3
|
+
import { n as import_buffer, r as init__polyfill_buffer_patch } from "./_polyfill-buffer-patch-JcrfT1gU.js";
|
|
4
|
+
import { A as isDRepAlwaysAbstain, At as isPlutusScript, B as PostConwayStakeRegistrationCertificateTypes, Bt as AssetName, Ct as PoolId, D as GovernanceActionType, Dt as PlutusLanguageVersion, Et as NativeScriptKind, F as createRewardAccount, Ft as BaseAddress, G as VoteDelegationCredentialCertificateTypes, Gt as Bip32PublicKeyHex, H as StakeCredentialCertificateTypes, I as RewardAddress, It as bech32, J as createStakeRegistrationCert, K as createDelegationCert, L as CertificateType, M as isDRepCredential, N as isDrepInfo, O as Vote, Ot as ScriptType, P as RewardAccount, R as MirCertificateKind, Rt as AssetFingerprint, St as VrfVkBech32, Tt as VrfVkHex, U as StakeDelegationCertificateTypes, V as RegAndDeregCertificateTypes, Vt as PolicyId, W as StakeRegistrationCertificateTypes, X as isCertType, Y as includesAnyCertificate, Z as stakeKeyCertificates, _t as BlockSize, a as CertIndex, at as isPlutusBigInt, b as RedeemerPurpose, bt as Slot, c as EnterpriseAddress, ct as isPlutusMap, gt as BlockNo, ht as BlockId, i as isAddress, in as typedBech32, it as isConstrPlutusData, j as isDRepAlwaysNoConfidence, k as VoterType, kt as isNativeScript, l as ByronAddress, lt as tryConvertPlutusMapToUtf8Record, n as AddressType, nn as assertIsBech32WithPrefix, o as PointerAddress, ot as isPlutusBoundedBytes, q as createStakeDeregistrationCert, r as CredentialType, rt as isAnyPlutusDataCollection, s as TxIndex, st as isPlutusList, t as Address, u as ByronAddressType, ut as require_fraction, vt as EpochNo, wt as PoolIdHex, x as TransactionId, xt as SlotLeader, y as InputSource, yt as GenesisDelegate, z as MirCertificatePot, zt as AssetId } from "./Address-_c_-9hLC.js";
|
|
5
|
+
import { t as Percent } from "./Percent-DpvyJ_93.js";
|
|
6
|
+
import { n as computeImplicitCoin, r as computeAuxiliaryDataHash } from "./subtractValueQuantities-BuDJVxq6.js";
|
|
7
|
+
import { n as metadatumToJson } from "./metadatum-BVocMYy_.js";
|
|
8
|
+
import { n as NetworkId, r as NetworkMagics, t as ChainIds } from "./ChainId-CeoG8Sov.js";
|
|
9
|
+
import { a as isRewardAccount, i as isAddressWithin, n as addressNetworkId, o as DRepID, r as inputsWithAddresses, t as PaymentAddress } from "./PaymentAddress-Cml3EA1n.js";
|
|
10
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/computeMinUtxoValue.js
|
|
11
|
+
const computeMinUtxoValue = (coinsPerUtxoWord) => coinsPerUtxoWord * 29n;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/StakePool.js
|
|
14
|
+
var StakePoolStatus;
|
|
15
|
+
(function(StakePoolStatus) {
|
|
16
|
+
StakePoolStatus["Activating"] = "activating";
|
|
17
|
+
StakePoolStatus["Active"] = "active";
|
|
18
|
+
StakePoolStatus["Retired"] = "retired";
|
|
19
|
+
StakePoolStatus["Retiring"] = "retiring";
|
|
20
|
+
})(StakePoolStatus || (StakePoolStatus = {}));
|
|
21
|
+
var StakePoolEpochRewards = class {};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/PoolParameters.js
|
|
24
|
+
const PoolMdVk = (target) => typedBech32(target, "poolmd_vk", 52);
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/ExtendedStakePoolMetadata.js
|
|
27
|
+
var ExtendedPoolStatus;
|
|
28
|
+
(function(ExtendedPoolStatus) {
|
|
29
|
+
ExtendedPoolStatus["Active"] = "active";
|
|
30
|
+
ExtendedPoolStatus["Retired"] = "retired";
|
|
31
|
+
ExtendedPoolStatus["Offline"] = "offline";
|
|
32
|
+
ExtendedPoolStatus["Experimental"] = "experimental";
|
|
33
|
+
ExtendedPoolStatus["Private"] = "private";
|
|
34
|
+
})(ExtendedPoolStatus || (ExtendedPoolStatus = {}));
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/Address/PaymentCredential.js
|
|
37
|
+
init__polyfill_buffer_patch();
|
|
38
|
+
const PaymentCredential = (value) => {
|
|
39
|
+
try {
|
|
40
|
+
return typedBech32(value, ["addr_vkh"], 45);
|
|
41
|
+
} catch {
|
|
42
|
+
return typedBech32(value, ["script"], 45);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
PaymentCredential.fromCredential = (credential) => {
|
|
46
|
+
const words = bech32.toWords(import_buffer.Buffer.from(credential.hash, "hex"));
|
|
47
|
+
const prefix = credential.type === CredentialType.KeyHash ? "addr_vkh" : "script";
|
|
48
|
+
return bech32.encode(prefix, words, 1023);
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/DelegationsAndRewards.js
|
|
52
|
+
var StakeCredentialStatus;
|
|
53
|
+
(function(StakeCredentialStatus) {
|
|
54
|
+
StakeCredentialStatus["Registering"] = "REGISTERING";
|
|
55
|
+
StakeCredentialStatus["Registered"] = "REGISTERED";
|
|
56
|
+
StakeCredentialStatus["Unregistering"] = "UNREGISTERING";
|
|
57
|
+
StakeCredentialStatus["Unregistered"] = "UNREGISTERED";
|
|
58
|
+
})(StakeCredentialStatus || (StakeCredentialStatus = {}));
|
|
59
|
+
const DelegationMetadataLabel = 6862n;
|
|
60
|
+
const portfolioMetadataFromCip17 = (cip17) => {
|
|
61
|
+
const portfolio = { ...cip17 };
|
|
62
|
+
portfolio.pools = cip17.pools.map((pool) => ({
|
|
63
|
+
id: pool.id,
|
|
64
|
+
weight: pool.weight
|
|
65
|
+
}));
|
|
66
|
+
return portfolio;
|
|
67
|
+
};
|
|
68
|
+
const cip17FromMetadatum = (portfolio) => {
|
|
69
|
+
const cip17 = metadatumToJson(portfolio);
|
|
70
|
+
for (const pool of cip17.pools) pool.weight = Number(pool.weight);
|
|
71
|
+
return cip17;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/PlutusData.js
|
|
75
|
+
var PlutusListEncoding;
|
|
76
|
+
(function(PlutusListEncoding) {
|
|
77
|
+
PlutusListEncoding[PlutusListEncoding["FixedLength"] = 0] = "FixedLength";
|
|
78
|
+
PlutusListEncoding[PlutusListEncoding["IndefiniteLength"] = 159] = "IndefiniteLength";
|
|
79
|
+
})(PlutusListEncoding || (PlutusListEncoding = {}));
|
|
80
|
+
var PlutusMapEncoding;
|
|
81
|
+
(function(PlutusMapEncoding) {
|
|
82
|
+
PlutusMapEncoding[PlutusMapEncoding["FixedLength"] = 0] = "FixedLength";
|
|
83
|
+
PlutusMapEncoding[PlutusMapEncoding["IndefiniteLength"] = 191] = "IndefiniteLength";
|
|
84
|
+
})(PlutusMapEncoding || (PlutusMapEncoding = {}));
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/UtilityTypes.js
|
|
87
|
+
var import_fraction = /* @__PURE__ */ __toESM(require_fraction(), 1);
|
|
88
|
+
const toFractionJs = (value) => {
|
|
89
|
+
if (typeof value === "number") return new import_fraction.default(value);
|
|
90
|
+
const { numerator, denominator } = value;
|
|
91
|
+
return new import_fraction.default(numerator, denominator);
|
|
92
|
+
};
|
|
93
|
+
const FractionUtils = {
|
|
94
|
+
toFraction(value) {
|
|
95
|
+
const { n: numerator, d: denominator } = toFractionJs(value);
|
|
96
|
+
return {
|
|
97
|
+
denominator,
|
|
98
|
+
numerator
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
toNumber(value) {
|
|
102
|
+
return toFractionJs(value).valueOf();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/Cip1854ExtendedAccountPublicKey.js
|
|
107
|
+
init__polyfill_buffer_patch();
|
|
108
|
+
const MAX_BECH32_LENGTH_LIMIT = 1023;
|
|
109
|
+
const bip32PublicKeyPrefix = "acct_shared_xvk";
|
|
110
|
+
const Cip1854ExtendedAccountPublicKey = (value) => {
|
|
111
|
+
try {
|
|
112
|
+
assertIsBech32WithPrefix(value, [bip32PublicKeyPrefix]);
|
|
113
|
+
} catch {
|
|
114
|
+
throw new InvalidStringError(value, "Expected key to be a bech32 encoded string");
|
|
115
|
+
}
|
|
116
|
+
return value;
|
|
117
|
+
};
|
|
118
|
+
Cip1854ExtendedAccountPublicKey.fromBip32PublicKeyHex = (value) => {
|
|
119
|
+
const words = bech32.toWords(import_buffer.Buffer.from(value, "hex"));
|
|
120
|
+
return Cip1854ExtendedAccountPublicKey(bech32.encode(bip32PublicKeyPrefix, words, MAX_BECH32_LENGTH_LIMIT));
|
|
121
|
+
};
|
|
122
|
+
Cip1854ExtendedAccountPublicKey.toBip32PublicKeyHex = (value) => {
|
|
123
|
+
const { words } = bech32.decode(value, MAX_BECH32_LENGTH_LIMIT);
|
|
124
|
+
return Bip32PublicKeyHex(import_buffer.Buffer.from(bech32.fromWords(words)).toString("hex"));
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/estimateStakePoolAPY.js
|
|
128
|
+
const MILLISECONDS_PER_DAY = 1e3 * 60 * 60 * 24;
|
|
129
|
+
const estimateStakePoolAPY = (rewardsHistory) => {
|
|
130
|
+
if (rewardsHistory.length === 0) return null;
|
|
131
|
+
const { activeStake, epochLength, memberRewards, pledge } = rewardsHistory.reduce((previous, current) => ({
|
|
132
|
+
activeStake: previous.activeStake + current.activeStake,
|
|
133
|
+
epochLength: previous.epochLength + current.epochLength,
|
|
134
|
+
memberRewards: previous.memberRewards + current.memberRewards,
|
|
135
|
+
pledge: previous.pledge + current.activeStake
|
|
136
|
+
}));
|
|
137
|
+
return Percent(Number(memberRewards) / Number(activeStake - pledge) / (epochLength / MILLISECONDS_PER_DAY) * 365);
|
|
138
|
+
};
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/resolveInputValue.js
|
|
141
|
+
const resolveInputValue = (input, transactions) => {
|
|
142
|
+
return transactions.find((transaction) => transaction.id === input.txId)?.body.outputs[input.index]?.value;
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/phase2Validation.js
|
|
146
|
+
const isPhase2ValidationErrTx = ({ inputSource }) => inputSource === InputSource.collaterals;
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/addressesShareAnyKey.js
|
|
149
|
+
const getAddressKeyIDs = (input) => {
|
|
150
|
+
const address = typeof input === "string" ? Address.fromString(input) : input;
|
|
151
|
+
if (!address) throw new InvalidStringError("Expected either bech32 or base58 address");
|
|
152
|
+
switch (address.getType()) {
|
|
153
|
+
case AddressType.BasePaymentKeyStakeKey:
|
|
154
|
+
case AddressType.BasePaymentKeyStakeScript:
|
|
155
|
+
case AddressType.BasePaymentScriptStakeKey:
|
|
156
|
+
case AddressType.BasePaymentScriptStakeScript: {
|
|
157
|
+
const baseAddr = address.asBase();
|
|
158
|
+
return {
|
|
159
|
+
paymentId: { credential: baseAddr.getPaymentCredential() },
|
|
160
|
+
stakeId: { credential: baseAddr.getStakeCredential() }
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
case AddressType.Byron: return { paymentId: { byronRoot: address.asByron().getRoot() } };
|
|
164
|
+
case AddressType.EnterpriseKey:
|
|
165
|
+
case AddressType.EnterpriseScript: return { paymentId: { credential: address.asEnterprise().getPaymentCredential() } };
|
|
166
|
+
case AddressType.PointerKey:
|
|
167
|
+
case AddressType.PointerScript: {
|
|
168
|
+
const pointerAddr = address.asPointer();
|
|
169
|
+
return {
|
|
170
|
+
paymentId: { credential: pointerAddr.getPaymentCredential() },
|
|
171
|
+
stakeId: { pointer: pointerAddr.getStakePointer() }
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
case AddressType.RewardKey:
|
|
175
|
+
case AddressType.RewardScript: return { stakeId: { credential: address.asReward().getPaymentCredential() } };
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
const isPaymentIdPresentAndEquals = (id1, id2) => {
|
|
179
|
+
if (!id1 || !id2) return false;
|
|
180
|
+
if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
|
|
181
|
+
if ("byronRoot" in id1 && "byronRoot" in id2) return id1.byronRoot === id2.byronRoot;
|
|
182
|
+
return false;
|
|
183
|
+
};
|
|
184
|
+
const isStakeIdPresentAndEquals = (id1, id2) => {
|
|
185
|
+
if (!id1 || !id2) return false;
|
|
186
|
+
if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
|
|
187
|
+
if ("pointer" in id1 && "pointer" in id2) return id1.pointer.slot === id2.pointer.slot && id1.pointer.txIndex === id2.pointer.txIndex && id1.pointer.certIndex === id2.pointer.certIndex;
|
|
188
|
+
return false;
|
|
189
|
+
};
|
|
190
|
+
const addressesShareAnyKey = (address1, address2) => {
|
|
191
|
+
if (address1 === address2) return true;
|
|
192
|
+
const ids1 = getAddressKeyIDs(address1);
|
|
193
|
+
const ids2 = getAddressKeyIDs(address2);
|
|
194
|
+
return isPaymentIdPresentAndEquals(ids1.paymentId, ids2.paymentId) || isStakeIdPresentAndEquals(ids1.stakeId, ids2.stakeId);
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/isScriptAddress.js
|
|
198
|
+
const isScriptAddress = (address) => {
|
|
199
|
+
if (!Address.isValidBech32(address)) return false;
|
|
200
|
+
const baseAddress = Address.fromBech32(address).asBase();
|
|
201
|
+
const paymentCredential = baseAddress?.getPaymentCredential();
|
|
202
|
+
const stakeCredential = baseAddress?.getStakeCredential();
|
|
203
|
+
return paymentCredential?.type === CredentialType.ScriptHash && stakeCredential?.type === CredentialType.ScriptHash;
|
|
204
|
+
};
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/index.js
|
|
207
|
+
var util_exports = /* @__PURE__ */ __exportAll({
|
|
208
|
+
addressesShareAnyKey: () => addressesShareAnyKey,
|
|
209
|
+
computeImplicitCoin: () => computeImplicitCoin,
|
|
210
|
+
computeMinUtxoValue: () => computeMinUtxoValue,
|
|
211
|
+
estimateStakePoolAPY: () => estimateStakePoolAPY,
|
|
212
|
+
isAnyPlutusDataCollection: () => isAnyPlutusDataCollection,
|
|
213
|
+
isConstrPlutusData: () => isConstrPlutusData,
|
|
214
|
+
isPhase2ValidationErrTx: () => isPhase2ValidationErrTx,
|
|
215
|
+
isPlutusBigInt: () => isPlutusBigInt,
|
|
216
|
+
isPlutusBoundedBytes: () => isPlutusBoundedBytes,
|
|
217
|
+
isPlutusList: () => isPlutusList,
|
|
218
|
+
isPlutusMap: () => isPlutusMap,
|
|
219
|
+
isScriptAddress: () => isScriptAddress,
|
|
220
|
+
resolveInputValue: () => resolveInputValue,
|
|
221
|
+
tryConvertPlutusMapToUtf8Record: () => tryConvertPlutusMapToUtf8Record
|
|
222
|
+
});
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/index.js
|
|
225
|
+
var Cardano_exports = /* @__PURE__ */ __exportAll({
|
|
226
|
+
Address: () => Address,
|
|
227
|
+
AddressType: () => AddressType,
|
|
228
|
+
AssetFingerprint: () => AssetFingerprint,
|
|
229
|
+
AssetId: () => AssetId,
|
|
230
|
+
AssetName: () => AssetName,
|
|
231
|
+
BaseAddress: () => BaseAddress,
|
|
232
|
+
BlockId: () => BlockId,
|
|
233
|
+
BlockNo: () => BlockNo,
|
|
234
|
+
BlockSize: () => BlockSize,
|
|
235
|
+
ByronAddress: () => ByronAddress,
|
|
236
|
+
ByronAddressType: () => ByronAddressType,
|
|
237
|
+
CertIndex: () => CertIndex,
|
|
238
|
+
CertificateType: () => CertificateType,
|
|
239
|
+
ChainIds: () => ChainIds,
|
|
240
|
+
Cip1854ExtendedAccountPublicKey: () => Cip1854ExtendedAccountPublicKey,
|
|
241
|
+
CredentialType: () => CredentialType,
|
|
242
|
+
DRepID: () => DRepID,
|
|
243
|
+
DelegationMetadataLabel: () => DelegationMetadataLabel,
|
|
244
|
+
EnterpriseAddress: () => EnterpriseAddress,
|
|
245
|
+
EpochNo: () => EpochNo,
|
|
246
|
+
ExtendedPoolStatus: () => ExtendedPoolStatus,
|
|
247
|
+
FractionUtils: () => FractionUtils,
|
|
248
|
+
GenesisDelegate: () => GenesisDelegate,
|
|
249
|
+
GovernanceActionType: () => GovernanceActionType,
|
|
250
|
+
InputSource: () => InputSource,
|
|
251
|
+
MirCertificateKind: () => MirCertificateKind,
|
|
252
|
+
MirCertificatePot: () => MirCertificatePot,
|
|
253
|
+
NativeScriptKind: () => NativeScriptKind,
|
|
254
|
+
NetworkId: () => NetworkId,
|
|
255
|
+
NetworkMagics: () => NetworkMagics,
|
|
256
|
+
PaymentAddress: () => PaymentAddress,
|
|
257
|
+
PaymentCredential: () => PaymentCredential,
|
|
258
|
+
PlutusLanguageVersion: () => PlutusLanguageVersion,
|
|
259
|
+
PlutusListEncoding: () => PlutusListEncoding,
|
|
260
|
+
PlutusMapEncoding: () => PlutusMapEncoding,
|
|
261
|
+
PointerAddress: () => PointerAddress,
|
|
262
|
+
PolicyId: () => PolicyId,
|
|
263
|
+
PoolId: () => PoolId,
|
|
264
|
+
PoolIdHex: () => PoolIdHex,
|
|
265
|
+
PoolMdVk: () => PoolMdVk,
|
|
266
|
+
PostConwayStakeRegistrationCertificateTypes: () => PostConwayStakeRegistrationCertificateTypes,
|
|
267
|
+
RedeemerPurpose: () => RedeemerPurpose,
|
|
268
|
+
RegAndDeregCertificateTypes: () => RegAndDeregCertificateTypes,
|
|
269
|
+
RewardAccount: () => RewardAccount,
|
|
270
|
+
RewardAddress: () => RewardAddress,
|
|
271
|
+
ScriptType: () => ScriptType,
|
|
272
|
+
Slot: () => Slot,
|
|
273
|
+
SlotLeader: () => SlotLeader,
|
|
274
|
+
StakeCredentialCertificateTypes: () => StakeCredentialCertificateTypes,
|
|
275
|
+
StakeCredentialStatus: () => StakeCredentialStatus,
|
|
276
|
+
StakeDelegationCertificateTypes: () => StakeDelegationCertificateTypes,
|
|
277
|
+
StakePoolEpochRewards: () => StakePoolEpochRewards,
|
|
278
|
+
StakePoolStatus: () => StakePoolStatus,
|
|
279
|
+
StakeRegistrationCertificateTypes: () => StakeRegistrationCertificateTypes,
|
|
280
|
+
TransactionId: () => TransactionId,
|
|
281
|
+
TxIndex: () => TxIndex,
|
|
282
|
+
Vote: () => Vote,
|
|
283
|
+
VoteDelegationCredentialCertificateTypes: () => VoteDelegationCredentialCertificateTypes,
|
|
284
|
+
VoterType: () => VoterType,
|
|
285
|
+
VrfVkBech32: () => VrfVkBech32,
|
|
286
|
+
VrfVkHex: () => VrfVkHex,
|
|
287
|
+
addressNetworkId: () => addressNetworkId,
|
|
288
|
+
cip17FromMetadatum: () => cip17FromMetadatum,
|
|
289
|
+
computeAuxiliaryDataHash: () => computeAuxiliaryDataHash,
|
|
290
|
+
createDelegationCert: () => createDelegationCert,
|
|
291
|
+
createRewardAccount: () => createRewardAccount,
|
|
292
|
+
createStakeDeregistrationCert: () => createStakeDeregistrationCert,
|
|
293
|
+
createStakeRegistrationCert: () => createStakeRegistrationCert,
|
|
294
|
+
includesAnyCertificate: () => includesAnyCertificate,
|
|
295
|
+
inputsWithAddresses: () => inputsWithAddresses,
|
|
296
|
+
isAddress: () => isAddress,
|
|
297
|
+
isAddressWithin: () => isAddressWithin,
|
|
298
|
+
isCertType: () => isCertType,
|
|
299
|
+
isDRepAlwaysAbstain: () => isDRepAlwaysAbstain,
|
|
300
|
+
isDRepAlwaysNoConfidence: () => isDRepAlwaysNoConfidence,
|
|
301
|
+
isDRepCredential: () => isDRepCredential,
|
|
302
|
+
isDrepInfo: () => isDrepInfo,
|
|
303
|
+
isNativeScript: () => isNativeScript,
|
|
304
|
+
isPlutusScript: () => isPlutusScript,
|
|
305
|
+
isRewardAccount: () => isRewardAccount,
|
|
306
|
+
portfolioMetadataFromCip17: () => portfolioMetadataFromCip17,
|
|
307
|
+
stakeKeyCertificates: () => stakeKeyCertificates,
|
|
308
|
+
util: () => util_exports
|
|
309
|
+
});
|
|
310
|
+
//#endregion
|
|
311
|
+
export { isPhase2ValidationErrTx as n, Cardano_exports as t };
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
2
|
+
const require_errors = require("./errors-lg3enbYs.cjs");
|
|
3
|
+
const require__polyfill_buffer_patch = require("./_polyfill-buffer-patch-BycQkEkK.cjs");
|
|
4
|
+
const require_Address = require("./Address-AMKTo-dA.cjs");
|
|
5
|
+
const require_Percent = require("./Percent-Cfuw5YyL.cjs");
|
|
6
|
+
const require_subtractValueQuantities = require("./subtractValueQuantities-CqR606HV.cjs");
|
|
7
|
+
const require_metadatum = require("./metadatum-BGvFqGPt.cjs");
|
|
8
|
+
const require_ChainId = require("./ChainId-CNPSU9nn.cjs");
|
|
9
|
+
const require_PaymentAddress = require("./PaymentAddress-B4n1KZMx.cjs");
|
|
10
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/computeMinUtxoValue.js
|
|
11
|
+
const computeMinUtxoValue = (coinsPerUtxoWord) => coinsPerUtxoWord * 29n;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/StakePool.js
|
|
14
|
+
var StakePoolStatus;
|
|
15
|
+
(function(StakePoolStatus) {
|
|
16
|
+
StakePoolStatus["Activating"] = "activating";
|
|
17
|
+
StakePoolStatus["Active"] = "active";
|
|
18
|
+
StakePoolStatus["Retired"] = "retired";
|
|
19
|
+
StakePoolStatus["Retiring"] = "retiring";
|
|
20
|
+
})(StakePoolStatus || (StakePoolStatus = {}));
|
|
21
|
+
var StakePoolEpochRewards = class {};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/PoolParameters.js
|
|
24
|
+
const PoolMdVk = (target) => require_Address.typedBech32(target, "poolmd_vk", 52);
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/StakePool/ExtendedStakePoolMetadata.js
|
|
27
|
+
var ExtendedPoolStatus;
|
|
28
|
+
(function(ExtendedPoolStatus) {
|
|
29
|
+
ExtendedPoolStatus["Active"] = "active";
|
|
30
|
+
ExtendedPoolStatus["Retired"] = "retired";
|
|
31
|
+
ExtendedPoolStatus["Offline"] = "offline";
|
|
32
|
+
ExtendedPoolStatus["Experimental"] = "experimental";
|
|
33
|
+
ExtendedPoolStatus["Private"] = "private";
|
|
34
|
+
})(ExtendedPoolStatus || (ExtendedPoolStatus = {}));
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/Address/PaymentCredential.js
|
|
37
|
+
require__polyfill_buffer_patch.init__polyfill_buffer_patch();
|
|
38
|
+
const PaymentCredential = (value) => {
|
|
39
|
+
try {
|
|
40
|
+
return require_Address.typedBech32(value, ["addr_vkh"], 45);
|
|
41
|
+
} catch {
|
|
42
|
+
return require_Address.typedBech32(value, ["script"], 45);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
PaymentCredential.fromCredential = (credential) => {
|
|
46
|
+
const words = require_Address.bech32.toWords(require__polyfill_buffer_patch.import_buffer.Buffer.from(credential.hash, "hex"));
|
|
47
|
+
const prefix = credential.type === require_Address.CredentialType.KeyHash ? "addr_vkh" : "script";
|
|
48
|
+
return require_Address.bech32.encode(prefix, words, 1023);
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/DelegationsAndRewards.js
|
|
52
|
+
var StakeCredentialStatus;
|
|
53
|
+
(function(StakeCredentialStatus) {
|
|
54
|
+
StakeCredentialStatus["Registering"] = "REGISTERING";
|
|
55
|
+
StakeCredentialStatus["Registered"] = "REGISTERED";
|
|
56
|
+
StakeCredentialStatus["Unregistering"] = "UNREGISTERING";
|
|
57
|
+
StakeCredentialStatus["Unregistered"] = "UNREGISTERED";
|
|
58
|
+
})(StakeCredentialStatus || (StakeCredentialStatus = {}));
|
|
59
|
+
const DelegationMetadataLabel = 6862n;
|
|
60
|
+
const portfolioMetadataFromCip17 = (cip17) => {
|
|
61
|
+
const portfolio = { ...cip17 };
|
|
62
|
+
portfolio.pools = cip17.pools.map((pool) => ({
|
|
63
|
+
id: pool.id,
|
|
64
|
+
weight: pool.weight
|
|
65
|
+
}));
|
|
66
|
+
return portfolio;
|
|
67
|
+
};
|
|
68
|
+
const cip17FromMetadatum = (portfolio) => {
|
|
69
|
+
const cip17 = require_metadatum.metadatumToJson(portfolio);
|
|
70
|
+
for (const pool of cip17.pools) pool.weight = Number(pool.weight);
|
|
71
|
+
return cip17;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/PlutusData.js
|
|
75
|
+
var PlutusListEncoding;
|
|
76
|
+
(function(PlutusListEncoding) {
|
|
77
|
+
PlutusListEncoding[PlutusListEncoding["FixedLength"] = 0] = "FixedLength";
|
|
78
|
+
PlutusListEncoding[PlutusListEncoding["IndefiniteLength"] = 159] = "IndefiniteLength";
|
|
79
|
+
})(PlutusListEncoding || (PlutusListEncoding = {}));
|
|
80
|
+
var PlutusMapEncoding;
|
|
81
|
+
(function(PlutusMapEncoding) {
|
|
82
|
+
PlutusMapEncoding[PlutusMapEncoding["FixedLength"] = 0] = "FixedLength";
|
|
83
|
+
PlutusMapEncoding[PlutusMapEncoding["IndefiniteLength"] = 191] = "IndefiniteLength";
|
|
84
|
+
})(PlutusMapEncoding || (PlutusMapEncoding = {}));
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/UtilityTypes.js
|
|
87
|
+
var import_fraction = /* @__PURE__ */ require_chunk.__toESM(require_Address.require_fraction(), 1);
|
|
88
|
+
const toFractionJs = (value) => {
|
|
89
|
+
if (typeof value === "number") return new import_fraction.default(value);
|
|
90
|
+
const { numerator, denominator } = value;
|
|
91
|
+
return new import_fraction.default(numerator, denominator);
|
|
92
|
+
};
|
|
93
|
+
const FractionUtils = {
|
|
94
|
+
toFraction(value) {
|
|
95
|
+
const { n: numerator, d: denominator } = toFractionJs(value);
|
|
96
|
+
return {
|
|
97
|
+
denominator,
|
|
98
|
+
numerator
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
toNumber(value) {
|
|
102
|
+
return toFractionJs(value).valueOf();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/types/Cip1854ExtendedAccountPublicKey.js
|
|
107
|
+
require__polyfill_buffer_patch.init__polyfill_buffer_patch();
|
|
108
|
+
const MAX_BECH32_LENGTH_LIMIT = 1023;
|
|
109
|
+
const bip32PublicKeyPrefix = "acct_shared_xvk";
|
|
110
|
+
const Cip1854ExtendedAccountPublicKey = (value) => {
|
|
111
|
+
try {
|
|
112
|
+
require_Address.assertIsBech32WithPrefix(value, [bip32PublicKeyPrefix]);
|
|
113
|
+
} catch {
|
|
114
|
+
throw new require_errors.InvalidStringError(value, "Expected key to be a bech32 encoded string");
|
|
115
|
+
}
|
|
116
|
+
return value;
|
|
117
|
+
};
|
|
118
|
+
Cip1854ExtendedAccountPublicKey.fromBip32PublicKeyHex = (value) => {
|
|
119
|
+
const words = require_Address.bech32.toWords(require__polyfill_buffer_patch.import_buffer.Buffer.from(value, "hex"));
|
|
120
|
+
return Cip1854ExtendedAccountPublicKey(require_Address.bech32.encode(bip32PublicKeyPrefix, words, MAX_BECH32_LENGTH_LIMIT));
|
|
121
|
+
};
|
|
122
|
+
Cip1854ExtendedAccountPublicKey.toBip32PublicKeyHex = (value) => {
|
|
123
|
+
const { words } = require_Address.bech32.decode(value, MAX_BECH32_LENGTH_LIMIT);
|
|
124
|
+
return require_Address.Bip32PublicKeyHex(require__polyfill_buffer_patch.import_buffer.Buffer.from(require_Address.bech32.fromWords(words)).toString("hex"));
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/estimateStakePoolAPY.js
|
|
128
|
+
const MILLISECONDS_PER_DAY = 1e3 * 60 * 60 * 24;
|
|
129
|
+
const estimateStakePoolAPY = (rewardsHistory) => {
|
|
130
|
+
if (rewardsHistory.length === 0) return null;
|
|
131
|
+
const { activeStake, epochLength, memberRewards, pledge } = rewardsHistory.reduce((previous, current) => ({
|
|
132
|
+
activeStake: previous.activeStake + current.activeStake,
|
|
133
|
+
epochLength: previous.epochLength + current.epochLength,
|
|
134
|
+
memberRewards: previous.memberRewards + current.memberRewards,
|
|
135
|
+
pledge: previous.pledge + current.activeStake
|
|
136
|
+
}));
|
|
137
|
+
return require_Percent.Percent(Number(memberRewards) / Number(activeStake - pledge) / (epochLength / MILLISECONDS_PER_DAY) * 365);
|
|
138
|
+
};
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/resolveInputValue.js
|
|
141
|
+
const resolveInputValue = (input, transactions) => {
|
|
142
|
+
return transactions.find((transaction) => transaction.id === input.txId)?.body.outputs[input.index]?.value;
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/phase2Validation.js
|
|
146
|
+
const isPhase2ValidationErrTx = ({ inputSource }) => inputSource === require_Address.InputSource.collaterals;
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/addressesShareAnyKey.js
|
|
149
|
+
const getAddressKeyIDs = (input) => {
|
|
150
|
+
const address = typeof input === "string" ? require_Address.Address.fromString(input) : input;
|
|
151
|
+
if (!address) throw new require_errors.InvalidStringError("Expected either bech32 or base58 address");
|
|
152
|
+
switch (address.getType()) {
|
|
153
|
+
case require_Address.AddressType.BasePaymentKeyStakeKey:
|
|
154
|
+
case require_Address.AddressType.BasePaymentKeyStakeScript:
|
|
155
|
+
case require_Address.AddressType.BasePaymentScriptStakeKey:
|
|
156
|
+
case require_Address.AddressType.BasePaymentScriptStakeScript: {
|
|
157
|
+
const baseAddr = address.asBase();
|
|
158
|
+
return {
|
|
159
|
+
paymentId: { credential: baseAddr.getPaymentCredential() },
|
|
160
|
+
stakeId: { credential: baseAddr.getStakeCredential() }
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
case require_Address.AddressType.Byron: return { paymentId: { byronRoot: address.asByron().getRoot() } };
|
|
164
|
+
case require_Address.AddressType.EnterpriseKey:
|
|
165
|
+
case require_Address.AddressType.EnterpriseScript: return { paymentId: { credential: address.asEnterprise().getPaymentCredential() } };
|
|
166
|
+
case require_Address.AddressType.PointerKey:
|
|
167
|
+
case require_Address.AddressType.PointerScript: {
|
|
168
|
+
const pointerAddr = address.asPointer();
|
|
169
|
+
return {
|
|
170
|
+
paymentId: { credential: pointerAddr.getPaymentCredential() },
|
|
171
|
+
stakeId: { pointer: pointerAddr.getStakePointer() }
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
case require_Address.AddressType.RewardKey:
|
|
175
|
+
case require_Address.AddressType.RewardScript: return { stakeId: { credential: address.asReward().getPaymentCredential() } };
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
const isPaymentIdPresentAndEquals = (id1, id2) => {
|
|
179
|
+
if (!id1 || !id2) return false;
|
|
180
|
+
if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
|
|
181
|
+
if ("byronRoot" in id1 && "byronRoot" in id2) return id1.byronRoot === id2.byronRoot;
|
|
182
|
+
return false;
|
|
183
|
+
};
|
|
184
|
+
const isStakeIdPresentAndEquals = (id1, id2) => {
|
|
185
|
+
if (!id1 || !id2) return false;
|
|
186
|
+
if ("credential" in id1 && "credential" in id2) return id1.credential.hash === id2.credential.hash;
|
|
187
|
+
if ("pointer" in id1 && "pointer" in id2) return id1.pointer.slot === id2.pointer.slot && id1.pointer.txIndex === id2.pointer.txIndex && id1.pointer.certIndex === id2.pointer.certIndex;
|
|
188
|
+
return false;
|
|
189
|
+
};
|
|
190
|
+
const addressesShareAnyKey = (address1, address2) => {
|
|
191
|
+
if (address1 === address2) return true;
|
|
192
|
+
const ids1 = getAddressKeyIDs(address1);
|
|
193
|
+
const ids2 = getAddressKeyIDs(address2);
|
|
194
|
+
return isPaymentIdPresentAndEquals(ids1.paymentId, ids2.paymentId) || isStakeIdPresentAndEquals(ids1.stakeId, ids2.stakeId);
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/isScriptAddress.js
|
|
198
|
+
const isScriptAddress = (address) => {
|
|
199
|
+
if (!require_Address.Address.isValidBech32(address)) return false;
|
|
200
|
+
const baseAddress = require_Address.Address.fromBech32(address).asBase();
|
|
201
|
+
const paymentCredential = baseAddress?.getPaymentCredential();
|
|
202
|
+
const stakeCredential = baseAddress?.getStakeCredential();
|
|
203
|
+
return paymentCredential?.type === require_Address.CredentialType.ScriptHash && stakeCredential?.type === require_Address.CredentialType.ScriptHash;
|
|
204
|
+
};
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/index.js
|
|
207
|
+
var util_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
208
|
+
addressesShareAnyKey: () => addressesShareAnyKey,
|
|
209
|
+
computeImplicitCoin: () => require_subtractValueQuantities.computeImplicitCoin,
|
|
210
|
+
computeMinUtxoValue: () => computeMinUtxoValue,
|
|
211
|
+
estimateStakePoolAPY: () => estimateStakePoolAPY,
|
|
212
|
+
isAnyPlutusDataCollection: () => require_Address.isAnyPlutusDataCollection,
|
|
213
|
+
isConstrPlutusData: () => require_Address.isConstrPlutusData,
|
|
214
|
+
isPhase2ValidationErrTx: () => isPhase2ValidationErrTx,
|
|
215
|
+
isPlutusBigInt: () => require_Address.isPlutusBigInt,
|
|
216
|
+
isPlutusBoundedBytes: () => require_Address.isPlutusBoundedBytes,
|
|
217
|
+
isPlutusList: () => require_Address.isPlutusList,
|
|
218
|
+
isPlutusMap: () => require_Address.isPlutusMap,
|
|
219
|
+
isScriptAddress: () => isScriptAddress,
|
|
220
|
+
resolveInputValue: () => resolveInputValue,
|
|
221
|
+
tryConvertPlutusMapToUtf8Record: () => require_Address.tryConvertPlutusMapToUtf8Record
|
|
222
|
+
});
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/index.js
|
|
225
|
+
var Cardano_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
226
|
+
Address: () => require_Address.Address,
|
|
227
|
+
AddressType: () => require_Address.AddressType,
|
|
228
|
+
AssetFingerprint: () => require_Address.AssetFingerprint,
|
|
229
|
+
AssetId: () => require_Address.AssetId,
|
|
230
|
+
AssetName: () => require_Address.AssetName,
|
|
231
|
+
BaseAddress: () => require_Address.BaseAddress,
|
|
232
|
+
BlockId: () => require_Address.BlockId,
|
|
233
|
+
BlockNo: () => require_Address.BlockNo,
|
|
234
|
+
BlockSize: () => require_Address.BlockSize,
|
|
235
|
+
ByronAddress: () => require_Address.ByronAddress,
|
|
236
|
+
ByronAddressType: () => require_Address.ByronAddressType,
|
|
237
|
+
CertIndex: () => require_Address.CertIndex,
|
|
238
|
+
CertificateType: () => require_Address.CertificateType,
|
|
239
|
+
ChainIds: () => require_ChainId.ChainIds,
|
|
240
|
+
Cip1854ExtendedAccountPublicKey: () => Cip1854ExtendedAccountPublicKey,
|
|
241
|
+
CredentialType: () => require_Address.CredentialType,
|
|
242
|
+
DRepID: () => require_PaymentAddress.DRepID,
|
|
243
|
+
DelegationMetadataLabel: () => DelegationMetadataLabel,
|
|
244
|
+
EnterpriseAddress: () => require_Address.EnterpriseAddress,
|
|
245
|
+
EpochNo: () => require_Address.EpochNo,
|
|
246
|
+
ExtendedPoolStatus: () => ExtendedPoolStatus,
|
|
247
|
+
FractionUtils: () => FractionUtils,
|
|
248
|
+
GenesisDelegate: () => require_Address.GenesisDelegate,
|
|
249
|
+
GovernanceActionType: () => require_Address.GovernanceActionType,
|
|
250
|
+
InputSource: () => require_Address.InputSource,
|
|
251
|
+
MirCertificateKind: () => require_Address.MirCertificateKind,
|
|
252
|
+
MirCertificatePot: () => require_Address.MirCertificatePot,
|
|
253
|
+
NativeScriptKind: () => require_Address.NativeScriptKind,
|
|
254
|
+
NetworkId: () => require_ChainId.NetworkId,
|
|
255
|
+
NetworkMagics: () => require_ChainId.NetworkMagics,
|
|
256
|
+
PaymentAddress: () => require_PaymentAddress.PaymentAddress,
|
|
257
|
+
PaymentCredential: () => PaymentCredential,
|
|
258
|
+
PlutusLanguageVersion: () => require_Address.PlutusLanguageVersion,
|
|
259
|
+
PlutusListEncoding: () => PlutusListEncoding,
|
|
260
|
+
PlutusMapEncoding: () => PlutusMapEncoding,
|
|
261
|
+
PointerAddress: () => require_Address.PointerAddress,
|
|
262
|
+
PolicyId: () => require_Address.PolicyId,
|
|
263
|
+
PoolId: () => require_Address.PoolId,
|
|
264
|
+
PoolIdHex: () => require_Address.PoolIdHex,
|
|
265
|
+
PoolMdVk: () => PoolMdVk,
|
|
266
|
+
PostConwayStakeRegistrationCertificateTypes: () => require_Address.PostConwayStakeRegistrationCertificateTypes,
|
|
267
|
+
RedeemerPurpose: () => require_Address.RedeemerPurpose,
|
|
268
|
+
RegAndDeregCertificateTypes: () => require_Address.RegAndDeregCertificateTypes,
|
|
269
|
+
RewardAccount: () => require_Address.RewardAccount,
|
|
270
|
+
RewardAddress: () => require_Address.RewardAddress,
|
|
271
|
+
ScriptType: () => require_Address.ScriptType,
|
|
272
|
+
Slot: () => require_Address.Slot,
|
|
273
|
+
SlotLeader: () => require_Address.SlotLeader,
|
|
274
|
+
StakeCredentialCertificateTypes: () => require_Address.StakeCredentialCertificateTypes,
|
|
275
|
+
StakeCredentialStatus: () => StakeCredentialStatus,
|
|
276
|
+
StakeDelegationCertificateTypes: () => require_Address.StakeDelegationCertificateTypes,
|
|
277
|
+
StakePoolEpochRewards: () => StakePoolEpochRewards,
|
|
278
|
+
StakePoolStatus: () => StakePoolStatus,
|
|
279
|
+
StakeRegistrationCertificateTypes: () => require_Address.StakeRegistrationCertificateTypes,
|
|
280
|
+
TransactionId: () => require_Address.TransactionId,
|
|
281
|
+
TxIndex: () => require_Address.TxIndex,
|
|
282
|
+
Vote: () => require_Address.Vote,
|
|
283
|
+
VoteDelegationCredentialCertificateTypes: () => require_Address.VoteDelegationCredentialCertificateTypes,
|
|
284
|
+
VoterType: () => require_Address.VoterType,
|
|
285
|
+
VrfVkBech32: () => require_Address.VrfVkBech32,
|
|
286
|
+
VrfVkHex: () => require_Address.VrfVkHex,
|
|
287
|
+
addressNetworkId: () => require_PaymentAddress.addressNetworkId,
|
|
288
|
+
cip17FromMetadatum: () => cip17FromMetadatum,
|
|
289
|
+
computeAuxiliaryDataHash: () => require_subtractValueQuantities.computeAuxiliaryDataHash,
|
|
290
|
+
createDelegationCert: () => require_Address.createDelegationCert,
|
|
291
|
+
createRewardAccount: () => require_Address.createRewardAccount,
|
|
292
|
+
createStakeDeregistrationCert: () => require_Address.createStakeDeregistrationCert,
|
|
293
|
+
createStakeRegistrationCert: () => require_Address.createStakeRegistrationCert,
|
|
294
|
+
includesAnyCertificate: () => require_Address.includesAnyCertificate,
|
|
295
|
+
inputsWithAddresses: () => require_PaymentAddress.inputsWithAddresses,
|
|
296
|
+
isAddress: () => require_Address.isAddress,
|
|
297
|
+
isAddressWithin: () => require_PaymentAddress.isAddressWithin,
|
|
298
|
+
isCertType: () => require_Address.isCertType,
|
|
299
|
+
isDRepAlwaysAbstain: () => require_Address.isDRepAlwaysAbstain,
|
|
300
|
+
isDRepAlwaysNoConfidence: () => require_Address.isDRepAlwaysNoConfidence,
|
|
301
|
+
isDRepCredential: () => require_Address.isDRepCredential,
|
|
302
|
+
isDrepInfo: () => require_Address.isDrepInfo,
|
|
303
|
+
isNativeScript: () => require_Address.isNativeScript,
|
|
304
|
+
isPlutusScript: () => require_Address.isPlutusScript,
|
|
305
|
+
isRewardAccount: () => require_PaymentAddress.isRewardAccount,
|
|
306
|
+
portfolioMetadataFromCip17: () => portfolioMetadataFromCip17,
|
|
307
|
+
stakeKeyCertificates: () => require_Address.stakeKeyCertificates,
|
|
308
|
+
util: () => util_exports
|
|
309
|
+
});
|
|
310
|
+
//#endregion
|
|
311
|
+
Object.defineProperty(exports, "Cardano_exports", {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function() {
|
|
314
|
+
return Cardano_exports;
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
Object.defineProperty(exports, "isPhase2ValidationErrTx", {
|
|
318
|
+
enumerable: true,
|
|
319
|
+
get: function() {
|
|
320
|
+
return isPhase2ValidationErrTx;
|
|
321
|
+
}
|
|
322
|
+
});
|