@wormhole-foundation/wormhole-connect 3.0.2-beta.0-development → 3.0.2-beta.1-development
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/README.md +1 -1
- package/dist/assets/{basic-ChNCp6rI.js → basic-PUjrTVXb.js} +1 -1
- package/dist/assets/{evm-DSirgd5b.js → evm-CO5UWnAY.js} +2 -2
- package/dist/assets/{index-L-lC4rqb.js → index-1lzfHdT2.js} +1 -1
- package/dist/assets/{index-CHfaLf5J.js → index-DBVZDYF7.js} +1 -1
- package/dist/assets/index-DKlPX3ZI.js +1 -0
- package/dist/assets/{index-BtCrMDAu.js → index-Ddk7n7Ti.js} +1 -1
- package/dist/assets/{index-HhyysXFu.js → index-DyUmO4PR.js} +1 -1
- package/dist/assets/{index-BiwA3Bbq.js → index-MMzKxP1N.js} +1 -1
- package/dist/assets/{secp256k1-Cd7rIav0.js → secp256k1-0LtSM2L1.js} +1 -1
- package/dist/assets/{secp256k1-BQBOR8e3.js → secp256k1-DwTU3j1N.js} +1 -1
- package/dist/assets/{solana-DcwLWeKT.js → solana-DlGdMBSL.js} +4 -4
- package/dist/assets/{w3m-modal-DdptuLHe.js → w3m-modal-DD9Jgepz.js} +1 -1
- package/dist/main.js +72 -70
- package/dist/src/AppRouter.d.ts.map +1 -1
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/config/tokens.d.ts +1 -1
- package/dist/src/config/tokens.d.ts.map +1 -1
- package/dist/src/exports/index.d.ts +2 -2
- package/dist/src/exports/index.d.ts.map +1 -1
- package/dist/src/hooks/useFetchQuotes.d.ts.map +1 -1
- package/dist/src/icons/Chains/PLUME.d.ts.map +1 -1
- package/dist/src/icons/PoweredBy.d.ts.map +1 -1
- package/dist/src/icons/Routing.d.ts +5 -0
- package/dist/src/icons/Routing.d.ts.map +1 -0
- package/dist/src/icons/Tokens/PLUME.d.ts.map +1 -1
- package/dist/src/store/transferInput.d.ts +1 -1
- package/dist/src/store/transferInput.d.ts.map +1 -1
- package/dist/src/utils/coingecko.d.ts.map +1 -1
- package/dist/src/utils/formatNumber.d.ts +23 -0
- package/dist/src/utils/formatNumber.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +3 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/routes.d.ts +12 -0
- package/dist/src/utils/routes.d.ts.map +1 -0
- package/dist/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/AmountInput/index.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/Eta.d.ts +6 -0
- package/dist/src/views/v3/Bridge/Routes/Eta.d.ts.map +1 -0
- package/dist/src/views/v3/Bridge/Routes/RouteBadge.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts +7 -6
- package/dist/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/RoutesLink.d.ts +7 -0
- package/dist/src/views/v3/Bridge/Routes/RoutesLink.d.ts.map +1 -0
- package/dist/src/views/v3/Bridge/Routes/RoutesList.d.ts +2 -1
- package/dist/src/views/v3/Bridge/Routes/RoutesList.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/RoutesLoader.d.ts +4 -0
- package/dist/src/views/v3/Bridge/Routes/RoutesLoader.d.ts.map +1 -0
- package/dist/src/views/v3/Bridge/Routes/RoutesModal.d.ts +6 -5
- package/dist/src/views/v3/Bridge/Routes/RoutesModal.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts +1 -0
- package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/dist/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
- package/dist/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/account-Br8E7RB6.js +1 -0
- package/lib/{account-BTK2b2Fv.mjs → account-CVa_3S2g.mjs} +1 -1
- package/lib/{address-8wLqn60W.mjs → address-BApwdEpr.mjs} +96 -96
- package/lib/address-BwQqFkyh.js +1 -0
- package/lib/address-C2pxq9b2.js +1 -0
- package/lib/{address-n0gAFMrZ.mjs → address-f6joE_ig.mjs} +12 -12
- package/lib/aptos-CMRGggVs.js +2 -0
- package/lib/{aptos-CK-j196x.js → aptos-CTKQNmlP.js} +1 -1
- package/lib/{aptos-B-DJQlwt.mjs → aptos-CfFbx7uf.mjs} +9 -9
- package/lib/{aptos-Bwcz9wZX.mjs → aptos-fozuppXh.mjs} +3 -3
- package/lib/{basic-DHWVLmCq.mjs → basic-BA2aRJJn.mjs} +2 -2
- package/lib/{basic-B5ZFelC_.js → basic-DUWaF2I0.js} +1 -1
- package/lib/{basic-E2M-9h1u.js → basic-DeiUayOA.js} +1 -1
- package/lib/{basic-Pour9Ggp.mjs → basic-DoC8u7J8.mjs} +2 -2
- package/lib/{blake2b-C5HyObld.mjs → blake2b-BGxWUAjG.mjs} +23 -23
- package/lib/blake2b-Fj1aPKgL.js +1 -0
- package/lib/{browser-ponyfill-jK8MKVVg.mjs → browser-ponyfill-D5AN8ZPp.mjs} +1 -1
- package/lib/browser-ponyfill-Dn6gsMYK.js +2 -0
- package/lib/{chain-Bm6u6eUF.mjs → chain-DAw2I5H8.mjs} +1 -1
- package/lib/chain-DnPXlO8g.js +1 -0
- package/lib/chunk-KJH4KKG6-BjF7YUcU.js +470 -0
- package/lib/{chunk-KJH4KKG6-DJsu-Y-X.mjs → chunk-KJH4KKG6-DmVjhXO7.mjs} +144 -144
- package/lib/{constants-Cf2YMjNo.js → constants-BtNs_2F4.js} +1 -1
- package/lib/{constants-B7AbX6qr.mjs → constants-Dcc2nVaW.mjs} +3 -3
- package/lib/contract-BEHYQLvJ.js +1 -0
- package/lib/{contract-llnN6ki0.mjs → contract-BkMAZomO.mjs} +123 -123
- package/lib/{core-CF5c7Vev.mjs → core-BHV42Qa0.mjs} +25 -26
- package/lib/core-CV23yxnG.js +889 -0
- package/lib/create-CHcGblj6.js +1 -0
- package/lib/{create-Dm87_0zG.mjs → create-CKLtL7hr.mjs} +1 -1
- package/lib/{evm-BYIGg8e4.mjs → evm-Bf7qbM19.mjs} +42 -42
- package/lib/{evm-B2hUWkt7.js → evm-ClWkquRx.js} +2 -2
- package/lib/{evm-fvvpk-li.mjs → evm-DhMoy8cH.mjs} +6 -6
- package/lib/{evm-DFNbMHoa.js → evm-tXmzU9Xp.js} +2 -2
- package/lib/executor.js +1 -1
- package/lib/executor.mjs +145 -138
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{index-Cwo5AKUC.mjs → index-1rCCpdwd.mjs} +5 -5
- package/lib/{index-DBCa3k0j.mjs → index-3HvzWPL7.mjs} +9 -9
- package/lib/{index-MOwE6ses.mjs → index-B7ztYPhr.mjs} +21 -22
- package/lib/index-BM-0SeYB.js +1 -0
- package/lib/{index-DiQ8Ytrt.mjs → index-BTnpftLz.mjs} +1 -1
- package/lib/{index-BiCMaXJS.js → index-BWQMi6Rj.js} +1 -1
- package/lib/index-BbgKw2pu.js +1 -0
- package/lib/index-BblcpkoK.js +1 -0
- package/lib/index-Bfblsmud.js +1 -0
- package/lib/{index-C_0yAOSX.mjs → index-BfkFXEnG.mjs} +25082 -24072
- package/lib/{index-fi1sh8vr.mjs → index-BijBPDRn.mjs} +2 -2
- package/lib/index-BoquY9R2.js +337 -0
- package/lib/index-C2NtsO9Q.js +1 -0
- package/lib/{index-CNuk-XLX.mjs → index-C4JmrizV.mjs} +4 -4
- package/lib/index-C8TtXpOf.js +1 -0
- package/lib/index-CB8kOyIP.js +1 -0
- package/lib/index-CInVjUCW.js +1 -0
- package/lib/{index-BF11RebI.mjs → index-CLTklDbp.mjs} +1 -1
- package/lib/index-CQvgeH_r.js +1 -0
- package/lib/{index-DzYjoSJp.mjs → index-CUnOYRFQ.mjs} +23 -24
- package/lib/{index-DGh9LzN1.mjs → index-CWe_BTdo.mjs} +31 -31
- package/lib/{index-2Bz1Np4K.mjs → index-CZ91lJ9M.mjs} +5 -5
- package/lib/{index-Dgy1FO7C.js → index-CgyVnj6U.js} +1 -1
- package/lib/{index-BzJcFdt_.mjs → index-Clr2JjoJ.mjs} +44 -44
- package/lib/index-CnnCCv6Q.js +1 -0
- package/lib/{index-CJnRWlFf.mjs → index-CwxGLNEk.mjs} +48 -49
- package/lib/index-D7BLfz05.js +1 -0
- package/lib/index-DM7C-wvQ.js +3 -0
- package/lib/{index-DhIh3xiW.mjs → index-DNy_sNGr.mjs} +8 -8
- package/lib/{index-BZaRg0yd.mjs → index-DVcaDWmz.mjs} +1 -1
- package/lib/{index-CsAigASU.mjs → index-DWOP9OBp.mjs} +17 -17
- package/lib/{index-CTLz8Fz0.mjs → index-Dda5qc2t.mjs} +13 -14
- package/lib/{index-CLBXF_zH.mjs → index-DeaiBvpG.mjs} +16 -16
- package/lib/index-HOuGP-7b.js +1 -0
- package/lib/{index-Dt2uNp-N.mjs → index-KZve3tYJ.mjs} +4 -4
- package/lib/{index-CJDBidKv.mjs → index-SIyXqCAN.mjs} +41 -41
- package/lib/index-WhVYPMUr.js +1 -0
- package/lib/index-hmjT4xa7.js +1 -0
- package/lib/index-ledagFNU.js +1 -0
- package/lib/index-pbRVlgcN.js +1 -0
- package/lib/{index-BpQXUhR4.mjs → index-qK7AyMAk.mjs} +23 -27
- package/lib/index-ttZu99PZ.js +1 -0
- package/lib/{index.es-BqRBGIq6.mjs → index.es-BXRQf6Oi.mjs} +25 -26
- package/lib/index.es-BjGaOok5.js +11 -0
- package/lib/index.es-D6S74vhi.js +27 -0
- package/lib/{index.es-DgCZuUzB.mjs → index.es-cOw8juwf.mjs} +741 -737
- package/lib/index.js +1 -1
- package/lib/index.mjs +17 -16
- package/lib/mayan.js +3 -3
- package/lib/mayan.mjs +918 -891
- package/lib/mint-CL36R6ED.js +1 -0
- package/lib/{mint-Dc-VsiAn.mjs → mint-DunEG1jV.mjs} +32 -33
- package/lib/ntt.js +1 -1
- package/lib/ntt.mjs +2332 -2373
- package/lib/platform-7vCWzCny.js +1 -0
- package/lib/platform-BKhoO9So.js +1 -0
- package/lib/{platform-B95L0Vxv.mjs → platform-BN6LFtXE.mjs} +16 -16
- package/lib/{platform-DnP_1wGA.mjs → platform-BYLu9SzP.mjs} +4 -4
- package/lib/platform-Bbe26nx7.js +1 -0
- package/lib/{platform-DiG7WY9Z.mjs → platform-DCgWqmh1.mjs} +4 -4
- package/lib/{provider-jsonrpc-CRABh2gN.mjs → provider-jsonrpc-Bmgnrmpy.mjs} +155 -155
- package/lib/provider-jsonrpc-CbtP2Ffg.js +1 -0
- package/lib/{secp256k1-zHHDNAlH.mjs → secp256k1-BDQEvyHq.mjs} +1 -1
- package/lib/{secp256k1-obBDPYM-.mjs → secp256k1-C77Oh9AA.mjs} +1 -1
- package/lib/{secp256k1-2hq3Jk4g.mjs → secp256k1-CCn2vlXj.mjs} +1 -1
- package/lib/{secp256k1-B94G4gyy.js → secp256k1-CHAR40au.js} +1 -1
- package/lib/{secp256k1-DCcAh19h.js → secp256k1-D-DmPYcJ.js} +1 -1
- package/lib/{secp256k1-CjndBUS7.js → secp256k1-DYWDlveU.js} +1 -1
- package/lib/{signer-N_ccpPOz.mjs → signer-BIcn81N5.mjs} +18 -18
- package/lib/signer-H7atraks.js +1 -0
- package/lib/{solana-_Ha4YgiP.mjs → solana-B0QSg7B3.mjs} +30 -30
- package/lib/solana-Cs5VyB20.js +900 -0
- package/lib/solana-uvHG8JV5.js +1 -0
- package/lib/solana-zyfOlbhb.mjs +18 -0
- package/lib/{solanaEmbed.esm-DK5RIquB.mjs → solanaEmbed.esm-BqdznDuW.mjs} +623 -622
- package/lib/solanaEmbed.esm-D8vtESE6.js +10 -0
- package/lib/src/AppRouter.d.ts.map +1 -1
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/config/tokens.d.ts +1 -1
- package/lib/src/config/tokens.d.ts.map +1 -1
- package/lib/src/exports/index.d.ts +2 -2
- package/lib/src/exports/index.d.ts.map +1 -1
- package/lib/src/hooks/useFetchQuotes.d.ts.map +1 -1
- package/lib/src/icons/Chains/PLUME.d.ts.map +1 -1
- package/lib/src/icons/PoweredBy.d.ts.map +1 -1
- package/lib/src/icons/Routing.d.ts +5 -0
- package/lib/src/icons/Routing.d.ts.map +1 -0
- package/lib/src/icons/Tokens/PLUME.d.ts.map +1 -1
- package/lib/src/store/transferInput.d.ts +1 -1
- package/lib/src/store/transferInput.d.ts.map +1 -1
- package/lib/src/utils/coingecko.d.ts.map +1 -1
- package/lib/src/utils/formatNumber.d.ts +23 -0
- package/lib/src/utils/formatNumber.d.ts.map +1 -0
- package/lib/src/utils/index.d.ts +3 -1
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/routes.d.ts +12 -0
- package/lib/src/utils/routes.d.ts.map +1 -0
- package/lib/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/AmountInput/index.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/AssetPicker/TokenItem.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/Eta.d.ts +6 -0
- package/lib/src/views/v3/Bridge/Routes/Eta.d.ts.map +1 -0
- package/lib/src/views/v3/Bridge/Routes/RouteBadge.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts +7 -6
- package/lib/src/views/v3/Bridge/Routes/RoutesBottomSheet.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/RoutesLink.d.ts +7 -0
- package/lib/src/views/v3/Bridge/Routes/RoutesLink.d.ts.map +1 -0
- package/lib/src/views/v3/Bridge/Routes/RoutesList.d.ts +2 -1
- package/lib/src/views/v3/Bridge/Routes/RoutesList.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/RoutesLoader.d.ts +4 -0
- package/lib/src/views/v3/Bridge/Routes/RoutesLoader.d.ts.map +1 -0
- package/lib/src/views/v3/Bridge/Routes/RoutesModal.d.ts +6 -5
- package/lib/src/views/v3/Bridge/Routes/RoutesModal.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts +1 -0
- package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/lib/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
- package/lib/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/{sui-CQcQ6w_P.mjs → sui-B38DyOqM.mjs} +44 -44
- package/lib/{sui-BplKFZQu.mjs → sui-BpfnZR4f.mjs} +3 -3
- package/lib/sui-CT9MWY38.js +1 -0
- package/lib/{sui-_hvmCvD8.js → sui-DXQAMRQJ.js} +1 -1
- package/lib/{tokens-DNv0ZNvU.js → tokens-CmINcwKk.js} +31 -31
- package/lib/{tokens-Dl4YwW18.mjs → tokens-YxAPPVy3.mjs} +1726 -1724
- package/lib/transfer-BQ72fByU.js +1 -0
- package/lib/transfer-bTW0j9yh.mjs +58 -0
- package/lib/units-Ckije3Qv.js +1 -0
- package/lib/{units-DPWUSE6J.mjs → units-CtyvuzxQ.mjs} +13 -13
- package/lib/unsignedTransaction-C6Qp42VS.js +1 -0
- package/lib/{unsignedTransaction-DwcUilyN.mjs → unsignedTransaction-CXB-QCUC.mjs} +18 -18
- package/lib/{w3m-modal-BJILsxDp.mjs → w3m-modal-B7LUHLWC.mjs} +2 -2
- package/lib/{w3m-modal-D4CpFxO2.mjs → w3m-modal-BOTzBqbc.mjs} +2 -2
- package/lib/{w3m-modal-CrfHWSrF.js → w3m-modal-BTb03-7B.js} +1 -1
- package/lib/{w3m-modal-CBG2MSPp.js → w3m-modal-xmdf4r6V.js} +1 -1
- package/lib/web3-COTIsLs8.js +22 -0
- package/lib/{address-B-XN4tFw.mjs → web3-DYVeiqSa.mjs} +6599 -6576
- package/package.json +32 -32
- package/dist/assets/index-BWPgrXHs.js +0 -1
- package/lib/account-cRt2xMoW.js +0 -1
- package/lib/address-BGujeWtN.js +0 -22
- package/lib/address-C7DIAk4M.js +0 -1
- package/lib/address-KNhRm6oe.js +0 -1
- package/lib/aptos-f5TqmvqV.js +0 -2
- package/lib/blake2b-B-MRXUPb.js +0 -1
- package/lib/browser-ponyfill-CE6vRkjp.js +0 -2
- package/lib/chain-Hsn22HAP.js +0 -1
- package/lib/chunk-KJH4KKG6-CoyI75Ig.js +0 -470
- package/lib/contract-D2fTrJgn.js +0 -1
- package/lib/core-v0G9f7LX.js +0 -889
- package/lib/create-DoZZ7ciL.js +0 -1
- package/lib/index-B8-KKWD-.js +0 -1
- package/lib/index-BHbvgOMD.js +0 -1
- package/lib/index-BHfUgvSV.js +0 -1
- package/lib/index-BTKC7Hou.js +0 -1
- package/lib/index-BWXglAWd.js +0 -1
- package/lib/index-Bpp8C4u8.js +0 -1
- package/lib/index-CF2fHBHJ.js +0 -3
- package/lib/index-CTPz98nv.js +0 -1
- package/lib/index-ClMoiji-.js +0 -1
- package/lib/index-ClsVcH6F.js +0 -1
- package/lib/index-CqOI6LVu.js +0 -1
- package/lib/index-DCz_4mcz.js +0 -1
- package/lib/index-DKksdvND.js +0 -335
- package/lib/index-DRv3ZpVL.js +0 -1
- package/lib/index-DYqo8IhM.js +0 -1
- package/lib/index-DZubce9o.js +0 -1
- package/lib/index-DprM_IpB.js +0 -1
- package/lib/index-DshEQYMA.js +0 -1
- package/lib/index-JrM783SN.js +0 -1
- package/lib/index.es-C6YhioMN.js +0 -27
- package/lib/index.es-D3Xxxr8I.js +0 -11
- package/lib/mint-DlXC3sGi.js +0 -1
- package/lib/platform-B1XoDKoN.js +0 -1
- package/lib/platform-COuZC5Zc.js +0 -1
- package/lib/platform-NG3efAb2.js +0 -1
- package/lib/provider-jsonrpc-pXNHQF7n.js +0 -1
- package/lib/signer-CCa6npZ3.js +0 -1
- package/lib/solana-BJ3aReZw.mjs +0 -18
- package/lib/solana-BwyVgP30.js +0 -1
- package/lib/solana-CanFuMgA.js +0 -900
- package/lib/solanaEmbed.esm-C--1F7Lx.js +0 -10
- package/lib/sui-Bs83Gy5Z.js +0 -1
- package/lib/units-BvcKDiAx.js +0 -1
- package/lib/unsignedTransaction-dN_5EJf5.js +0 -1
- package/lib/web3-Bu_6UejS.mjs +0 -67
- package/lib/web3-Doz_0RHD.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as tl } from "./index-
|
|
1
|
+
import { cQ as Pu, cR as Ou, cS as Ru, cB as Le, cT as Ai, cU as jo, cV as Vo, cW as Be, bX as tr, cX as Vs, bY as gs, bZ as qu, cY as ju, cZ as Vu, c_ as Tr, cx as Zn, c$ as Ws, d0 as Wu, d1 as _n, d2 as ye, d3 as mr, cN as ve, d as rt, bw as Rr, d4 as $n, d5 as Xu, d6 as Zu, d7 as _u, d8 as Wo, d9 as eo, da as to, db as Xo, dc as Vi, dd as qr, de as Wi, df as Xi, dg as _, dh as ro, di as $u, dj as el, E as Xs } from "./web3-DYVeiqSa.mjs";
|
|
2
|
+
import { m as tl } from "./index-1rCCpdwd.mjs";
|
|
3
3
|
import { j as Ei } from "./index-CuHybtft.mjs";
|
|
4
4
|
const rl = Vo;
|
|
5
5
|
function lt(t, e) {
|
|
@@ -67,12 +67,12 @@ function io(t, e, r) {
|
|
|
67
67
|
throw new Error('expand must be "xmd" or "xof"');
|
|
68
68
|
const u = new Array(e);
|
|
69
69
|
for (let G = 0; G < e; G++) {
|
|
70
|
-
const
|
|
70
|
+
const x = new Array(n);
|
|
71
71
|
for (let W = 0; W < n; W++) {
|
|
72
72
|
const re = w * (W + G * n), Z = A.subarray(re, re + w);
|
|
73
|
-
|
|
73
|
+
x[W] = jo(rl(Z), i);
|
|
74
74
|
}
|
|
75
|
-
u[G] =
|
|
75
|
+
u[G] = x;
|
|
76
76
|
}
|
|
77
77
|
return u;
|
|
78
78
|
}
|
|
@@ -283,13 +283,13 @@ Object.defineProperty(cn, "__esModule", {
|
|
|
283
283
|
value: !0
|
|
284
284
|
});
|
|
285
285
|
cn.poseidon6 = Ol;
|
|
286
|
-
var
|
|
286
|
+
var xl = un(pe), zl = un(te), Nl = un(Ui);
|
|
287
287
|
function un(t) {
|
|
288
288
|
return t && t.__esModule ? t : { default: t };
|
|
289
289
|
}
|
|
290
|
-
const Pl = (0,
|
|
290
|
+
const Pl = (0, zl.default)(Nl.default);
|
|
291
291
|
function Ol(t) {
|
|
292
|
-
return (0,
|
|
292
|
+
return (0, xl.default)(t, Pl);
|
|
293
293
|
}
|
|
294
294
|
var ln = {}, Bi = {};
|
|
295
295
|
Object.defineProperty(Bi, "__esModule", {
|
|
@@ -481,13 +481,13 @@ Object.defineProperty(Kn, "__esModule", {
|
|
|
481
481
|
value: !0
|
|
482
482
|
});
|
|
483
483
|
Kn.poseidon15 = Od;
|
|
484
|
-
var
|
|
484
|
+
var xd = Dn(pe), zd = Dn(te), Nd = Dn(vi);
|
|
485
485
|
function Dn(t) {
|
|
486
486
|
return t && t.__esModule ? t : { default: t };
|
|
487
487
|
}
|
|
488
|
-
const Pd = (0,
|
|
488
|
+
const Pd = (0, zd.default)(Nd.default);
|
|
489
489
|
function Od(t) {
|
|
490
|
-
return (0,
|
|
490
|
+
return (0, xd.default)(t, Pd);
|
|
491
491
|
}
|
|
492
492
|
var kn = {}, Hi = {};
|
|
493
493
|
Object.defineProperty(Hi, "__esModule", {
|
|
@@ -552,7 +552,7 @@ function Xd(t) {
|
|
|
552
552
|
}), Object.defineProperty(t, "poseidon16", {
|
|
553
553
|
enumerable: !0,
|
|
554
554
|
get: function() {
|
|
555
|
-
return
|
|
555
|
+
return x.poseidon16;
|
|
556
556
|
}
|
|
557
557
|
}), Object.defineProperty(t, "poseidon2", {
|
|
558
558
|
enumerable: !0,
|
|
@@ -595,7 +595,7 @@ function Xd(t) {
|
|
|
595
595
|
return d.poseidon9;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
|
-
var e = Zs, r = $s, i = tn, s = sn, n = on, o = cn, a = ln, c = fn, d = pn, p = An, w = yn, g = mn, A = Cn, u = Bn, G = Kn,
|
|
598
|
+
var e = Zs, r = $s, i = tn, s = sn, n = on, o = cn, a = ln, c = fn, d = pn, p = An, w = yn, g = mn, A = Cn, u = Bn, G = Kn, x = kn;
|
|
599
599
|
})(oe);
|
|
600
600
|
var Fe = class extends Error {
|
|
601
601
|
constructor(e, r) {
|
|
@@ -646,7 +646,7 @@ var Fe = class extends Error {
|
|
|
646
646
|
equals(e) {
|
|
647
647
|
return this.data.length !== e.data.length ? !1 : this.data.every((r, i) => r === e.data[i]);
|
|
648
648
|
}
|
|
649
|
-
}, _d = (t) => new TextDecoder().decode(B.fromHexInput(t).toUint8Array()), _o = 255, $o = 65535,
|
|
649
|
+
}, _d = (t) => new TextDecoder().decode(B.fromHexInput(t).toUint8Array()), _o = 255, $o = 65535, zt = 4294967295, Mi = 18446744073709551615n, Ln = 340282366920938463463374607431768211455n, ea = 115792089237316195423570985008687907853269984665640564039457584007913129639935n, $d = Object.defineProperty, ef = Object.getOwnPropertyDescriptor, Ye = (t, e, r, i) => {
|
|
650
650
|
for (var s = ef(e, r), n = t.length - 1, o; n >= 0; n--) (o = t[n]) && (s = o(e, r, s) || s);
|
|
651
651
|
return s && $d(e, r, s), s;
|
|
652
652
|
}, k = class {
|
|
@@ -708,7 +708,7 @@ var Fe = class extends Error {
|
|
|
708
708
|
this.serializeWithFunction(DataView.prototype.setUint32, 4, e);
|
|
709
709
|
}
|
|
710
710
|
serializeU64(e) {
|
|
711
|
-
let r = BigInt(e) & BigInt(
|
|
711
|
+
let r = BigInt(e) & BigInt(zt), i = BigInt(e) >> BigInt(32);
|
|
712
712
|
this.serializeU32(Number(r)), this.serializeU32(Number(i));
|
|
713
713
|
}
|
|
714
714
|
serializeU128(e) {
|
|
@@ -743,7 +743,7 @@ var Fe = class extends Error {
|
|
|
743
743
|
e === void 0 ? this.serializeU32AsUleb128(0) : (this.serializeU32AsUleb128(1), this.serializeStr(e));
|
|
744
744
|
}
|
|
745
745
|
};
|
|
746
|
-
Ye([Ct(0, _o)], de.prototype, "serializeU8"), Ye([Ct(0, $o)], de.prototype, "serializeU16"), Ye([Ct(0,
|
|
746
|
+
Ye([Ct(0, _o)], de.prototype, "serializeU8"), Ye([Ct(0, $o)], de.prototype, "serializeU16"), Ye([Ct(0, zt)], de.prototype, "serializeU32"), Ye([Ct(BigInt(0), Mi)], de.prototype, "serializeU64"), Ye([Ct(BigInt(0), Ln)], de.prototype, "serializeU128"), Ye([Ct(BigInt(0), ea)], de.prototype, "serializeU256"), Ye([Ct(0, zt)], de.prototype, "serializeU32AsUleb128");
|
|
747
747
|
function ta(t) {
|
|
748
748
|
if (typeof t != "boolean") throw new Error(`${t} is not a boolean value`);
|
|
749
749
|
}
|
|
@@ -904,7 +904,7 @@ var h = Ae, ue = class ra extends k {
|
|
|
904
904
|
}
|
|
905
905
|
}, Cr = class na extends k {
|
|
906
906
|
constructor(e) {
|
|
907
|
-
super(), Gt(e, 0,
|
|
907
|
+
super(), Gt(e, 0, zt), this.value = e;
|
|
908
908
|
}
|
|
909
909
|
serialize(e) {
|
|
910
910
|
e.serializeU32(this.value);
|
|
@@ -1039,12 +1039,12 @@ var h = Ae, ue = class ra extends k {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
deserializeUleb128AsU32() {
|
|
1041
1041
|
let e = BigInt(0), r = 0;
|
|
1042
|
-
for (; e <
|
|
1042
|
+
for (; e < zt; ) {
|
|
1043
1043
|
let i = this.deserializeU8();
|
|
1044
1044
|
if (e |= BigInt(i & 127) << BigInt(r), (i & 128) === 0) break;
|
|
1045
1045
|
r += 7;
|
|
1046
1046
|
}
|
|
1047
|
-
if (e >
|
|
1047
|
+
if (e > zt) throw new Error("Overflow while parsing uleb128-encoded uint32 value");
|
|
1048
1048
|
return Number(e);
|
|
1049
1049
|
}
|
|
1050
1050
|
deserialize(e) {
|
|
@@ -1055,7 +1055,7 @@ var h = Ae, ue = class ra extends k {
|
|
|
1055
1055
|
for (let s = 0; s < r; s += 1) i.push(this.deserialize(e));
|
|
1056
1056
|
return i;
|
|
1057
1057
|
}
|
|
1058
|
-
}, N = class
|
|
1058
|
+
}, N = class xe extends k {
|
|
1059
1059
|
constructor(e) {
|
|
1060
1060
|
super(), this.values = e;
|
|
1061
1061
|
}
|
|
@@ -1079,28 +1079,28 @@ var h = Ae, ue = class ra extends k {
|
|
|
1079
1079
|
r = Array.from(i.toUint8Array());
|
|
1080
1080
|
} else if (e instanceof Uint8Array) r = Array.from(e);
|
|
1081
1081
|
else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");
|
|
1082
|
-
return new
|
|
1082
|
+
return new xe(r.map((i) => new et(i)));
|
|
1083
1083
|
}
|
|
1084
1084
|
static U16(e) {
|
|
1085
|
-
return new
|
|
1085
|
+
return new xe(e.map((r) => new Ir(r)));
|
|
1086
1086
|
}
|
|
1087
1087
|
static U32(e) {
|
|
1088
|
-
return new
|
|
1088
|
+
return new xe(e.map((r) => new Cr(r)));
|
|
1089
1089
|
}
|
|
1090
1090
|
static U64(e) {
|
|
1091
|
-
return new
|
|
1091
|
+
return new xe(e.map((r) => new $e(r)));
|
|
1092
1092
|
}
|
|
1093
1093
|
static U128(e) {
|
|
1094
|
-
return new
|
|
1094
|
+
return new xe(e.map((r) => new Ur(r)));
|
|
1095
1095
|
}
|
|
1096
1096
|
static U256(e) {
|
|
1097
|
-
return new
|
|
1097
|
+
return new xe(e.map((r) => new Rt(r)));
|
|
1098
1098
|
}
|
|
1099
1099
|
static Bool(e) {
|
|
1100
|
-
return new
|
|
1100
|
+
return new xe(e.map((r) => new ue(r)));
|
|
1101
1101
|
}
|
|
1102
1102
|
static MoveString(e) {
|
|
1103
|
-
return new
|
|
1103
|
+
return new xe(e.map((r) => new V(r)));
|
|
1104
1104
|
}
|
|
1105
1105
|
serialize(e) {
|
|
1106
1106
|
e.serializeVector(this.values);
|
|
@@ -1108,7 +1108,7 @@ var h = Ae, ue = class ra extends k {
|
|
|
1108
1108
|
static deserialize(e, r) {
|
|
1109
1109
|
let i = e.deserializeUleb128AsU32(), s = new Array();
|
|
1110
1110
|
for (let n = 0; n < i; n += 1) s.push(r.deserialize(e));
|
|
1111
|
-
return new
|
|
1111
|
+
return new xe(s);
|
|
1112
1112
|
}
|
|
1113
1113
|
}, la = class da extends k {
|
|
1114
1114
|
constructor(e) {
|
|
@@ -1150,7 +1150,7 @@ var h = Ae, ue = class ra extends k {
|
|
|
1150
1150
|
static deserialize(e) {
|
|
1151
1151
|
return new fa(e.deserializeStr());
|
|
1152
1152
|
}
|
|
1153
|
-
}, ke = class
|
|
1153
|
+
}, ke = class ze extends k {
|
|
1154
1154
|
constructor(e) {
|
|
1155
1155
|
super(), typeof e < "u" && e !== null ? this.vec = new N([e]) : this.vec = new N([]), [this.value] = this.vec.values;
|
|
1156
1156
|
}
|
|
@@ -1169,32 +1169,32 @@ var h = Ae, ue = class ra extends k {
|
|
|
1169
1169
|
this.vec.serialize(e);
|
|
1170
1170
|
}
|
|
1171
1171
|
static U8(e) {
|
|
1172
|
-
return new
|
|
1172
|
+
return new ze(e != null ? new et(e) : void 0);
|
|
1173
1173
|
}
|
|
1174
1174
|
static U16(e) {
|
|
1175
|
-
return new
|
|
1175
|
+
return new ze(e != null ? new Ir(e) : void 0);
|
|
1176
1176
|
}
|
|
1177
1177
|
static U32(e) {
|
|
1178
|
-
return new
|
|
1178
|
+
return new ze(e != null ? new Cr(e) : void 0);
|
|
1179
1179
|
}
|
|
1180
1180
|
static U64(e) {
|
|
1181
|
-
return new
|
|
1181
|
+
return new ze(e != null ? new $e(e) : void 0);
|
|
1182
1182
|
}
|
|
1183
1183
|
static U128(e) {
|
|
1184
|
-
return new
|
|
1184
|
+
return new ze(e != null ? new Ur(e) : void 0);
|
|
1185
1185
|
}
|
|
1186
1186
|
static U256(e) {
|
|
1187
|
-
return new
|
|
1187
|
+
return new ze(e != null ? new Rt(e) : void 0);
|
|
1188
1188
|
}
|
|
1189
1189
|
static Bool(e) {
|
|
1190
|
-
return new
|
|
1190
|
+
return new ze(e != null ? new ue(e) : void 0);
|
|
1191
1191
|
}
|
|
1192
1192
|
static MoveString(e) {
|
|
1193
|
-
return new
|
|
1193
|
+
return new ze(e != null ? new V(e) : void 0);
|
|
1194
1194
|
}
|
|
1195
1195
|
static deserialize(e, r) {
|
|
1196
1196
|
let i = N.deserialize(e, r);
|
|
1197
|
-
return new
|
|
1197
|
+
return new ze(i.values[0]);
|
|
1198
1198
|
}
|
|
1199
1199
|
}, sf = class extends k {
|
|
1200
1200
|
constructor(e) {
|
|
@@ -1356,7 +1356,7 @@ const pf = /* @__PURE__ */ Uint8Array.from([
|
|
|
1356
1356
|
function ao(t, e, r, i) {
|
|
1357
1357
|
return t === 0 ? e ^ r ^ i : t === 1 ? e & r | ~e & i : t === 2 ? (e | ~r) ^ i : t === 3 ? e & i | r & ~i : e ^ (r | ~i);
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const xr = /* @__PURE__ */ new Uint32Array(16);
|
|
1360
1360
|
class mf extends Vu {
|
|
1361
1361
|
constructor() {
|
|
1362
1362
|
super(64, 20, 8, !0), this.h0 = 1732584193, this.h1 = -271733879, this.h2 = -1732584194, this.h3 = 271733878, this.h4 = -1009589776;
|
|
@@ -1370,23 +1370,23 @@ class mf extends Vu {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
process(e, r) {
|
|
1372
1372
|
for (let A = 0; A < 16; A++, r += 4)
|
|
1373
|
-
|
|
1373
|
+
xr[A] = e.getUint32(r, !0);
|
|
1374
1374
|
let i = this.h0 | 0, s = i, n = this.h1 | 0, o = n, a = this.h2 | 0, c = a, d = this.h3 | 0, p = d, w = this.h4 | 0, g = w;
|
|
1375
1375
|
for (let A = 0; A < 5; A++) {
|
|
1376
|
-
const u = 4 - A, G = yf[A],
|
|
1376
|
+
const u = 4 - A, G = yf[A], x = wf[A], W = Ia[A], re = Ca[A], Z = Af[A], Xt = Ef[A];
|
|
1377
1377
|
for (let y = 0; y < 16; y++) {
|
|
1378
|
-
const mt = Tr(i + ao(A, n, a, d) +
|
|
1378
|
+
const mt = Tr(i + ao(A, n, a, d) + xr[W[y]] + G, Z[y]) + w | 0;
|
|
1379
1379
|
i = w, w = d, d = Tr(a, 10) | 0, a = n, n = mt;
|
|
1380
1380
|
}
|
|
1381
1381
|
for (let y = 0; y < 16; y++) {
|
|
1382
|
-
const mt = Tr(s + ao(u, o, c, p) +
|
|
1382
|
+
const mt = Tr(s + ao(u, o, c, p) + xr[re[y]] + x, Xt[y]) + g | 0;
|
|
1383
1383
|
s = g, g = p, p = Tr(c, 10) | 0, c = o, o = mt;
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
this.set(this.h1 + a + p | 0, this.h2 + d + g | 0, this.h3 + w + s | 0, this.h4 + i + o | 0, this.h0 + n + c | 0);
|
|
1387
1387
|
}
|
|
1388
1388
|
roundClean() {
|
|
1389
|
-
Zn(
|
|
1389
|
+
Zn(xr);
|
|
1390
1390
|
}
|
|
1391
1391
|
destroy() {
|
|
1392
1392
|
this.destroyed = !0, Zn(this.buffer), this.set(0, 0, 0, 0, 0);
|
|
@@ -1394,7 +1394,7 @@ class mf extends Vu {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
const If = /* @__PURE__ */ ju(() => new mf());
|
|
1396
1396
|
/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
|
|
1397
|
-
const
|
|
1397
|
+
const zr = ye.ProjectivePoint, _i = Wu(mr);
|
|
1398
1398
|
function co(t) {
|
|
1399
1399
|
Le(t);
|
|
1400
1400
|
const e = t.length === 0 ? "0" : tr(t);
|
|
@@ -1477,7 +1477,7 @@ class Ut {
|
|
|
1477
1477
|
throw new Error("Invalid private key");
|
|
1478
1478
|
this.privKey = typeof e.privateKey == "bigint" ? e.privateKey : co(e.privateKey), this.privKeyBytes = Cf(this.privKey), this.pubKey = ye.getPublicKey(e.privateKey, !0);
|
|
1479
1479
|
} else if (e.publicKey)
|
|
1480
|
-
this.pubKey =
|
|
1480
|
+
this.pubKey = zr.fromHex(e.publicKey).toRawBytes(!0);
|
|
1481
1481
|
else
|
|
1482
1482
|
throw new Error("HDKey: no public or private key provided");
|
|
1483
1483
|
this.pubHash = Bf(this.pubKey);
|
|
@@ -1528,8 +1528,8 @@ class Ut {
|
|
|
1528
1528
|
throw new Error("The tweak was out of range or the resulted private key is invalid");
|
|
1529
1529
|
o.privateKey = a;
|
|
1530
1530
|
} else {
|
|
1531
|
-
const a =
|
|
1532
|
-
if (a.equals(
|
|
1531
|
+
const a = zr.fromHex(this.pubKey).add(zr.fromPrivateKey(s));
|
|
1532
|
+
if (a.equals(zr.ZERO))
|
|
1533
1533
|
throw new Error("The tweak was equal to negative P, which made the result key invalid");
|
|
1534
1534
|
o.publicKey = a.toRawBytes(!0);
|
|
1535
1535
|
}
|
|
@@ -1738,7 +1738,7 @@ const jt = typeof rt.Buffer == "function", uo = typeof TextDecoder == "function"
|
|
|
1738
1738
|
for (let n = 0; n < t.length; )
|
|
1739
1739
|
e = Pr[t.charAt(n++)] << 18 | Pr[t.charAt(n++)] << 12 | (i = Pr[t.charAt(n++)]) << 6 | (s = Pr[t.charAt(n++)]), r += i === 64 ? ae(e >> 16 & 255) : s === 64 ? ae(e >> 16 & 255, e >> 8 & 255) : ae(e >> 16 & 255, e >> 8 & 255, e & 255);
|
|
1740
1740
|
return r;
|
|
1741
|
-
}, ka = typeof atob == "function" ? (t) => atob(Ka(t)) : jt ? (t) => rt.Buffer.from(t, "base64").toString("binary") : Tf,
|
|
1741
|
+
}, ka = typeof atob == "function" ? (t) => atob(Ka(t)) : jt ? (t) => rt.Buffer.from(t, "base64").toString("binary") : Tf, xf = jt ? (t) => fo(rt.Buffer.from(t, "base64")) : (t) => fo(ka(t).split("").map((e) => e.charCodeAt(0))), zf = jt ? (t) => rt.Buffer.from(t, "base64").toString("utf8") : uo ? (t) => uo.decode(xf(t)) : (t) => Qf(ka(t)), Nf = (t) => Ka(t.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Pf = (t) => zf(Nf(t));
|
|
1742
1742
|
async function St(t) {
|
|
1743
1743
|
return new Promise((e) => {
|
|
1744
1744
|
setTimeout(e, t);
|
|
@@ -2522,14 +2522,14 @@ var fg = `
|
|
|
2522
2522
|
...AnsTokenFragment
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
|
-
${gg}`,
|
|
2525
|
+
${gg}`, xa = `
|
|
2526
2526
|
query getNumberOfDelegators($where_condition: num_active_delegator_per_pool_bool_exp, $order_by: [num_active_delegator_per_pool_order_by!]) {
|
|
2527
2527
|
num_active_delegator_per_pool(where: $where_condition, order_by: $order_by) {
|
|
2528
2528
|
num_active_delegator
|
|
2529
2529
|
pool_address
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
`,
|
|
2532
|
+
`, za = `
|
|
2533
2533
|
query getObjectData($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) {
|
|
2534
2534
|
current_objects(
|
|
2535
2535
|
where: $where_condition
|
|
@@ -2707,7 +2707,7 @@ async function Tg(t) {
|
|
|
2707
2707
|
let { aptosConfig: e, options: r } = t, i = { query: Fg, variables: { where_condition: r == null ? void 0 : r.where, offset: r == null ? void 0 : r.offset, limit: r == null ? void 0 : r.limit, order_by: r == null ? void 0 : r.orderBy } };
|
|
2708
2708
|
return (await T({ aptosConfig: e, query: i, originMethod: "getTableItemsMetadata" })).table_metadatas;
|
|
2709
2709
|
}
|
|
2710
|
-
var
|
|
2710
|
+
var xg = ((t) => (t.FULLNODE = "Fullnode", t.INDEXER = "Indexer", t.FAUCET = "Faucet", t.PEPPER = "Pepper", t.PROVER = "Prover", t))(xg || {}), Wr = "0x1::aptos_coin::AptosCoin", zg = "0x000000000000000000000000000000000000000000000000000000000000000a", Ng = "APTOS::RawTransaction", Io = "APTOS::RawTransactionWithData", Pg = ((t) => (t.ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor", t.DEFAULT = "default_processor", t.EVENTS_PROCESSOR = "events_processor", t.FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor", t.STAKE_PROCESSOR = "stake_processor", t.TOKEN_V2_PROCESSOR = "token_v2_processor", t.USER_TRANSACTION_PROCESSOR = "user_transaction_processor", t.OBJECT_PROCESSOR = "objects_processor", t))(Pg || {}), Og = /^https:\/\/securetoken\.google\.com\/[a-zA-Z0-9-_]+$/;
|
|
2711
2711
|
async function Va(t) {
|
|
2712
2712
|
let { aptosConfig: e, options: r } = t;
|
|
2713
2713
|
return Ga({ aptosConfig: e, originMethod: "getTransactions", path: "transactions", params: { start: r == null ? void 0 : r.offset, limit: r == null ? void 0 : r.limit } });
|
|
@@ -2973,11 +2973,11 @@ function Fp(t) {
|
|
|
2973
2973
|
const se = i.sqr(J), ne = i.mul(se, J), It = i.mul(se, C), ji = i.add(i.sub(ne, i.mul(It, Ko)), i.mul(i.sqr(b), L));
|
|
2974
2974
|
return C = i.mul(J, ji), D = i.sub(i.mul(i.sub(It, ji), b), i.mul(ne, D)), L = i.mul(L, ne), { Rx: C, Ry: D, Rz: L };
|
|
2975
2975
|
}
|
|
2976
|
-
const
|
|
2976
|
+
const x = kp(t.params.ateLoopSize), W = Xu((I) => {
|
|
2977
2977
|
const C = I, { x: D, y: L } = C.toAffine(), v = D, q = L, b = i.neg(L);
|
|
2978
2978
|
let J = v, S = q, R = i.ONE;
|
|
2979
2979
|
const ie = [];
|
|
2980
|
-
for (const se of
|
|
2980
|
+
for (const se of x) {
|
|
2981
2981
|
const ne = [];
|
|
2982
2982
|
({ Rx: J, Ry: S, Rz: R } = u(ne, J, S, R)), se && ({ Rx: J, Ry: S, Rz: R } = G(ne, J, S, R, v, se === -1 ? b : q)), ie.push(ne);
|
|
2983
2983
|
}
|
|
@@ -3227,8 +3227,8 @@ function Lp(t, e, r) {
|
|
|
3227
3227
|
return [e.mul(g, o), e.neg(A)];
|
|
3228
3228
|
}
|
|
3229
3229
|
const d = (g) => (A, u) => {
|
|
3230
|
-
const G = u.toAffine(),
|
|
3231
|
-
return A.fromAffine({ x:
|
|
3230
|
+
const G = u.toAffine(), x = g(G.x, G.y);
|
|
3231
|
+
return A.fromAffine({ x: x[0], y: x[1] });
|
|
3232
3232
|
}, p = d(n), w = d(c);
|
|
3233
3233
|
return { psi: n, psi2: c, G2psi: p, G2psi2: w, PSI_X: i, PSI_Y: s, PSI2_X: o, PSI2_Y: a };
|
|
3234
3234
|
}
|
|
@@ -3335,7 +3335,7 @@ function Gp(t) {
|
|
|
3335
3335
|
c0: u.add(l, m),
|
|
3336
3336
|
c1: u.add(f, U),
|
|
3337
3337
|
c2: u.add(E, F)
|
|
3338
|
-
}),
|
|
3338
|
+
}), x = ({ c0: l, c1: f, c2: E }, { c0: m, c1: U, c2: F }) => ({
|
|
3339
3339
|
c0: u.sub(l, m),
|
|
3340
3340
|
c1: u.sub(f, U),
|
|
3341
3341
|
c2: u.sub(E, F)
|
|
@@ -3387,12 +3387,12 @@ function Gp(t) {
|
|
|
3387
3387
|
invertBatch: (l) => Wi(y, l),
|
|
3388
3388
|
// Normalized
|
|
3389
3389
|
add: G,
|
|
3390
|
-
sub:
|
|
3390
|
+
sub: x,
|
|
3391
3391
|
mul: W,
|
|
3392
3392
|
sqr: re,
|
|
3393
3393
|
// NonNormalized stuff
|
|
3394
3394
|
addN: G,
|
|
3395
|
-
subN:
|
|
3395
|
+
subN: x,
|
|
3396
3396
|
mulN: W,
|
|
3397
3397
|
sqrN: re,
|
|
3398
3398
|
inv: ({ c0: l, c1: f, c2: E }) => {
|
|
@@ -3606,7 +3606,7 @@ const vp = BigInt(0), Cs = BigInt(1), dt = BigInt(2), Hp = BigInt(3), rc = BigIn
|
|
|
3606
3606
|
}, Fo = Xo(Qi.n), ic = {
|
|
3607
3607
|
c0: BigInt("19485874751759354771024239261021720505790618469301721065564631296452457478373"),
|
|
3608
3608
|
c1: BigInt("266929791119991161246907387137283842545076965332900288569378510910307636690")
|
|
3609
|
-
}, { Fp: pr, Fp2: P, Fp6: Us, Fp4Square: os, Fp12:
|
|
3609
|
+
}, { Fp: pr, Fp2: P, Fp6: Us, Fp4Square: os, Fp12: z } = Gp({
|
|
3610
3610
|
ORDER: Qi.p,
|
|
3611
3611
|
FP2_NONRESIDUE: [BigInt(9), Cs],
|
|
3612
3612
|
Fp2mulByB: (t) => P.mul(t, ic),
|
|
@@ -3634,16 +3634,16 @@ const vp = BigInt(0), Cs = BigInt(1), dt = BigInt(2), Hp = BigInt(3), rc = BigIn
|
|
|
3634
3634
|
};
|
|
3635
3635
|
},
|
|
3636
3636
|
Fp12cyclotomicExp(t, e) {
|
|
3637
|
-
let r =
|
|
3637
|
+
let r = z.ONE;
|
|
3638
3638
|
for (let i = Mp - 1; i >= 0; i--)
|
|
3639
|
-
r =
|
|
3639
|
+
r = z._cyclotomicSquare(r), $u(e, i) && (r = z.mul(r, t));
|
|
3640
3640
|
return r;
|
|
3641
3641
|
},
|
|
3642
3642
|
// https://eprint.iacr.org/2010/354.pdf
|
|
3643
3643
|
// https://eprint.iacr.org/2009/565.pdf
|
|
3644
3644
|
Fp12finalExponentiate: (t) => {
|
|
3645
|
-
const e = (p) =>
|
|
3646
|
-
return
|
|
3645
|
+
const e = (p) => z.conjugate(z._cyclotomicExp(p, Yi)), r = z.mul(z.conjugate(t), z.inv(t)), i = z.mul(z.frobeniusMap(r, 2), r), s = z._cyclotomicSquare(e(i)), n = z.mul(z._cyclotomicSquare(s), s), o = e(n), a = e(z._cyclotomicSquare(o)), c = z.mul(z.mul(z.conjugate(a), o), z.conjugate(n)), d = z.mul(c, s);
|
|
3646
|
+
return z.mul(z.frobeniusMap(z.mul(z.conjugate(i), d), 3), z.mul(z.frobeniusMap(c, 2), z.mul(z.frobeniusMap(d, 1), z.mul(z.mul(c, o), i))));
|
|
3647
3647
|
}
|
|
3648
3648
|
}), { G2psi: Sp, psi: Lo } = Lp(pr, P, P.NONRESIDUE), as = Object.freeze({
|
|
3649
3649
|
// DST: a domain separation tag defined in section 2.2.5
|
|
@@ -3675,7 +3675,7 @@ const vp = BigInt(0), Cs = BigInt(1), dt = BigInt(2), Hp = BigInt(3), rc = BigIn
|
|
|
3675
3675
|
])
|
|
3676
3676
|
}, Qe = Fp({
|
|
3677
3677
|
// Fields
|
|
3678
|
-
fields: { Fp: pr, Fp2: P, Fp6: Us, Fp12:
|
|
3678
|
+
fields: { Fp: pr, Fp2: P, Fp6: Us, Fp12: z, Fr: Fo },
|
|
3679
3679
|
G1: {
|
|
3680
3680
|
...Qi,
|
|
3681
3681
|
Fp: pr,
|
|
@@ -3989,7 +3989,7 @@ var hr = Xr, Zr = class ct extends nc {
|
|
|
3989
3989
|
}
|
|
3990
3990
|
verifySignature(e) {
|
|
3991
3991
|
let { message: r, signature: i } = e;
|
|
3992
|
-
if (!(i instanceof
|
|
3992
|
+
if (!(i instanceof xi)) return !1;
|
|
3993
3993
|
let s = [];
|
|
3994
3994
|
for (let n = 0; n < 4; n += 1) for (let o = 0; o < 8; o += 1) if (i.bitmap[n] & 1 << 7 - o) {
|
|
3995
3995
|
let a = n * 8 + o;
|
|
@@ -4069,7 +4069,7 @@ var ac = Zr, bs = class Ne extends je {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
};
|
|
4071
4071
|
bs.MAX_SIGNATURES_SUPPORTED = 32, bs.BITMAP_LEN = 4;
|
|
4072
|
-
var
|
|
4072
|
+
var xi = bs, Ke = class extends k {
|
|
4073
4073
|
static deserialize(t) {
|
|
4074
4074
|
let e = t.deserializeUleb128AsU32();
|
|
4075
4075
|
switch (e) {
|
|
@@ -4120,7 +4120,7 @@ var zi = bs, Ke = class extends k {
|
|
|
4120
4120
|
e.serializeU32AsUleb128(1), this.public_key.serialize(e), this.signature.serialize(e);
|
|
4121
4121
|
}
|
|
4122
4122
|
static load(e) {
|
|
4123
|
-
let r = ac.deserialize(e), i =
|
|
4123
|
+
let r = ac.deserialize(e), i = xi.deserialize(e);
|
|
4124
4124
|
return new uc(r, i);
|
|
4125
4125
|
}
|
|
4126
4126
|
}, tt = class lc extends Ke {
|
|
@@ -4355,7 +4355,7 @@ var zi = bs, Ke = class extends k {
|
|
|
4355
4355
|
static load(e) {
|
|
4356
4356
|
return new Cc();
|
|
4357
4357
|
}
|
|
4358
|
-
},
|
|
4358
|
+
}, xp = class Uc extends ee {
|
|
4359
4359
|
constructor(e) {
|
|
4360
4360
|
super(), this.value = e;
|
|
4361
4361
|
}
|
|
@@ -4451,7 +4451,7 @@ function O() {
|
|
|
4451
4451
|
function Me(t) {
|
|
4452
4452
|
return new Lr(h.ONE, new we("object"), new we("Object"), [t]);
|
|
4453
4453
|
}
|
|
4454
|
-
function
|
|
4454
|
+
function zp(t) {
|
|
4455
4455
|
let e = t.deserializeUleb128AsU32();
|
|
4456
4456
|
switch (e) {
|
|
4457
4457
|
case 0:
|
|
@@ -4478,7 +4478,7 @@ function xp(t) {
|
|
|
4478
4478
|
throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`);
|
|
4479
4479
|
}
|
|
4480
4480
|
}
|
|
4481
|
-
var
|
|
4481
|
+
var zi = class extends k {
|
|
4482
4482
|
static deserialize(t) {
|
|
4483
4483
|
let e = t.deserializeUleb128AsU32();
|
|
4484
4484
|
switch (e) {
|
|
@@ -4492,7 +4492,7 @@ var xi = class extends k {
|
|
|
4492
4492
|
throw new Error(`Unknown variant index for TransactionPayload: ${e}`);
|
|
4493
4493
|
}
|
|
4494
4494
|
}
|
|
4495
|
-
}, Dc = class kc extends
|
|
4495
|
+
}, Dc = class kc extends zi {
|
|
4496
4496
|
constructor(e) {
|
|
4497
4497
|
super(), this.script = e;
|
|
4498
4498
|
}
|
|
@@ -4503,7 +4503,7 @@ var xi = class extends k {
|
|
|
4503
4503
|
let r = Hc.deserialize(e);
|
|
4504
4504
|
return new kc(r);
|
|
4505
4505
|
}
|
|
4506
|
-
}, Fc = class Lc extends
|
|
4506
|
+
}, Fc = class Lc extends zi {
|
|
4507
4507
|
constructor(e) {
|
|
4508
4508
|
super(), this.entryFunction = e;
|
|
4509
4509
|
}
|
|
@@ -4514,7 +4514,7 @@ var xi = class extends k {
|
|
|
4514
4514
|
let r = Ni.deserialize(e);
|
|
4515
4515
|
return new Lc(r);
|
|
4516
4516
|
}
|
|
4517
|
-
}, Gc = class vc extends
|
|
4517
|
+
}, Gc = class vc extends zi {
|
|
4518
4518
|
constructor(e) {
|
|
4519
4519
|
super(), this.multiSig = e;
|
|
4520
4520
|
}
|
|
@@ -4557,7 +4557,7 @@ var xi = class extends k {
|
|
|
4557
4557
|
static deserialize(e) {
|
|
4558
4558
|
let r = e.deserializeBytes(), i = e.deserializeVector(ee), s = e.deserializeUleb128AsU32(), n = new Array();
|
|
4559
4559
|
for (let o = 0; o < s; o += 1) {
|
|
4560
|
-
let a =
|
|
4560
|
+
let a = zp(e);
|
|
4561
4561
|
n.push(a);
|
|
4562
4562
|
}
|
|
4563
4563
|
return new Mc(r, i, n);
|
|
@@ -4591,22 +4591,22 @@ var xi = class extends k {
|
|
|
4591
4591
|
this.sender.serialize(e), e.serializeU64(this.sequence_number), this.payload.serialize(e), e.serializeU64(this.max_gas_amount), e.serializeU64(this.gas_unit_price), e.serializeU64(this.expiration_timestamp_secs), this.chain_id.serialize(e);
|
|
4592
4592
|
}
|
|
4593
4593
|
static deserialize(e) {
|
|
4594
|
-
let r = h.deserialize(e), i = e.deserializeU64(), s =
|
|
4594
|
+
let r = h.deserialize(e), i = e.deserializeU64(), s = zi.deserialize(e), n = e.deserializeU64(), o = e.deserializeU64(), a = e.deserializeU64(), c = ga.deserialize(e);
|
|
4595
4595
|
return new Tc(r, i, s, n, o, a, c);
|
|
4596
4596
|
}
|
|
4597
|
-
},
|
|
4597
|
+
}, xc = class extends k {
|
|
4598
4598
|
static deserialize(t) {
|
|
4599
4599
|
let e = t.deserializeUleb128AsU32();
|
|
4600
4600
|
switch (e) {
|
|
4601
4601
|
case 0:
|
|
4602
4602
|
return Tn.load(t);
|
|
4603
4603
|
case 1:
|
|
4604
|
-
return
|
|
4604
|
+
return xn.load(t);
|
|
4605
4605
|
default:
|
|
4606
4606
|
throw new Error(`Unknown variant index for RawTransactionWithData: ${e}`);
|
|
4607
4607
|
}
|
|
4608
4608
|
}
|
|
4609
|
-
}, Tn = class
|
|
4609
|
+
}, Tn = class zc extends xc {
|
|
4610
4610
|
constructor(e, r) {
|
|
4611
4611
|
super(), this.raw_txn = e, this.secondary_signer_addresses = r;
|
|
4612
4612
|
}
|
|
@@ -4615,9 +4615,9 @@ var xi = class extends k {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
static load(e) {
|
|
4617
4617
|
let r = Vt.deserialize(e), i = e.deserializeVector(h);
|
|
4618
|
-
return new
|
|
4618
|
+
return new zc(r, i);
|
|
4619
4619
|
}
|
|
4620
|
-
},
|
|
4620
|
+
}, xn = class Nc extends xc {
|
|
4621
4621
|
constructor(e, r, i) {
|
|
4622
4622
|
super(), this.raw_txn = e, this.secondary_signer_addresses = r, this.fee_payer_address = i;
|
|
4623
4623
|
}
|
|
@@ -4680,7 +4680,7 @@ var xi = class extends k {
|
|
|
4680
4680
|
e.serializeU32AsUleb128(1), this.public_key.serialize(e), this.signature.serialize(e);
|
|
4681
4681
|
}
|
|
4682
4682
|
static load(e) {
|
|
4683
|
-
let r = ac.deserialize(e), i =
|
|
4683
|
+
let r = ac.deserialize(e), i = xi.deserialize(e);
|
|
4684
4684
|
return new Oc(r, i);
|
|
4685
4685
|
}
|
|
4686
4686
|
}, di = class Rc extends Wt {
|
|
@@ -4751,7 +4751,7 @@ var xi = class extends k {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
};
|
|
4753
4753
|
function Gs(t) {
|
|
4754
|
-
return t.feePayerAddress ? new
|
|
4754
|
+
return t.feePayerAddress ? new xn(t.rawTransaction, t.secondarySignerAddresses ?? [], t.feePayerAddress) : t.secondarySignerAddresses ? new Tn(t.rawTransaction, t.secondarySignerAddresses) : t.rawTransaction;
|
|
4755
4755
|
}
|
|
4756
4756
|
function cr(t, e) {
|
|
4757
4757
|
let r = ve.create();
|
|
@@ -4933,9 +4933,9 @@ var Kt = class $r {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
};
|
|
4935
4935
|
Zc.BLINDER_LENGTH = 31;
|
|
4936
|
-
var
|
|
4936
|
+
var zn = Zc;
|
|
4937
4937
|
function Rp() {
|
|
4938
|
-
return Wo(
|
|
4938
|
+
return Wo(zn.BLINDER_LENGTH);
|
|
4939
4939
|
}
|
|
4940
4940
|
function Hs(t) {
|
|
4941
4941
|
return t != null && typeof t.checkKeylessAccountValidity == "function";
|
|
@@ -4973,7 +4973,7 @@ var _c = class ti extends k {
|
|
|
4973
4973
|
this.proof.serialize(e), e.serializeOption(this.verificationKeyHash, 32);
|
|
4974
4974
|
}
|
|
4975
4975
|
static partialDeserialize(e) {
|
|
4976
|
-
let r = h.deserialize(e), i = e.deserializeStr(), s = e.deserializeStr(), n = e.deserializeFixedBytes(31), o =
|
|
4976
|
+
let r = h.deserialize(e), i = e.deserializeStr(), s = e.deserializeStr(), n = e.deserializeFixedBytes(31), o = zn.deserialize(e), a = Et.deserialize(e), c = e.deserializeOption("fixedBytes", 32);
|
|
4977
4977
|
return { address: r, jwt: i, uidKey: s, pepper: n, ephemeralKeyPair: o, proof: a, verificationKeyHash: c };
|
|
4978
4978
|
}
|
|
4979
4979
|
isExpired() {
|
|
@@ -5152,7 +5152,7 @@ var kt = _c, Ho = class extends k {
|
|
|
5152
5152
|
sign(t) {
|
|
5153
5153
|
let e = [];
|
|
5154
5154
|
for (let r of this.signers) e.push(r.sign(t));
|
|
5155
|
-
return new
|
|
5155
|
+
return new xi({ signatures: e, bitmap: this.signaturesBitmap });
|
|
5156
5156
|
}
|
|
5157
5157
|
signTransaction(t) {
|
|
5158
5158
|
return this.sign(Pt(t));
|
|
@@ -5168,7 +5168,7 @@ function Jo(t, e) {
|
|
|
5168
5168
|
t.proof.serialize(e), e.serializeOption(t.verificationKeyHash, 32);
|
|
5169
5169
|
}
|
|
5170
5170
|
function So(t) {
|
|
5171
|
-
let e = t.deserializeStr(), r = t.deserializeStr(), i = t.deserializeFixedBytes(31), s =
|
|
5171
|
+
let e = t.deserializeStr(), r = t.deserializeStr(), i = t.deserializeFixedBytes(31), s = zn.deserialize(t), n = Et.deserialize(t), o = t.deserializeOption("fixedBytes", 32);
|
|
5172
5172
|
return { jwt: e, uidKey: r, pepper: i, ephemeralKeyPair: s, proof: n, verificationKeyHash: o };
|
|
5173
5173
|
}
|
|
5174
5174
|
var Yo;
|
|
@@ -5225,28 +5225,28 @@ var Yo;
|
|
|
5225
5225
|
let G = g.deserializeUleb128AsU32();
|
|
5226
5226
|
switch (G) {
|
|
5227
5227
|
case 0: {
|
|
5228
|
-
let
|
|
5229
|
-
return new Kt({ privateKey:
|
|
5228
|
+
let x = qe.deserialize(g);
|
|
5229
|
+
return new Kt({ privateKey: x, address: A });
|
|
5230
5230
|
}
|
|
5231
5231
|
case 1: {
|
|
5232
|
-
let
|
|
5233
|
-
return new Kt({ privateKey:
|
|
5232
|
+
let x = oi.deserialize(g);
|
|
5233
|
+
return new Kt({ privateKey: x, address: A });
|
|
5234
5234
|
}
|
|
5235
5235
|
case 3: {
|
|
5236
|
-
let
|
|
5237
|
-
return new yr({ ...
|
|
5236
|
+
let x = So(g), W = Ot(x);
|
|
5237
|
+
return new yr({ ...x, ...W });
|
|
5238
5238
|
}
|
|
5239
5239
|
case 4: {
|
|
5240
|
-
let
|
|
5241
|
-
return new Ms({ ...
|
|
5240
|
+
let x = So(g), W = h.deserialize(g), re = g.deserializeBool(), Z = Ot(x);
|
|
5241
|
+
return new Ms({ ...x, ...Z, jwkAddress: W, audless: re });
|
|
5242
5242
|
}
|
|
5243
5243
|
default:
|
|
5244
5244
|
throw new Error(`Unsupported public key variant ${G}`);
|
|
5245
5245
|
}
|
|
5246
5246
|
}
|
|
5247
5247
|
case 3: {
|
|
5248
|
-
let G = Ti.deserialize(g),
|
|
5249
|
-
for (let re = 0; re <
|
|
5248
|
+
let G = Ti.deserialize(g), x = g.deserializeUleb128AsU32(), W = new Array();
|
|
5249
|
+
for (let re = 0; re < x; re += 1) {
|
|
5250
5250
|
let Z = s(g);
|
|
5251
5251
|
if (!vo(Z) && !(Z instanceof pt)) throw new Error("Deserialization of MultiKeyAccount failed. Signer is not a SingleKeySigner or Ed25519Account");
|
|
5252
5252
|
W.push(Z);
|
|
@@ -5450,7 +5450,7 @@ function er(t, e, r) {
|
|
|
5450
5450
|
default:
|
|
5451
5451
|
if (Zp(i)) {
|
|
5452
5452
|
let a = i.substring(1);
|
|
5453
|
-
return new
|
|
5453
|
+
return new xp(er(a, e, r));
|
|
5454
5454
|
}
|
|
5455
5455
|
if (Xp(i)) {
|
|
5456
5456
|
if (r) return new ce(Number(i.split("T")[1]));
|
|
@@ -5573,9 +5573,9 @@ function lu(t, e, r, i, s, n) {
|
|
|
5573
5573
|
if (i >= e.parameters.length) throw new Error(`Too many arguments for '${t}', expected ${e.parameters.length}`);
|
|
5574
5574
|
o = e.parameters[i];
|
|
5575
5575
|
}
|
|
5576
|
-
return
|
|
5576
|
+
return xt(r, o, i, s, "exposed_functions" in e ? e : void 0);
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5578
|
+
function xt(t, e, r, i, s, n) {
|
|
5579
5579
|
return sh(t) ? (Qs(e, t, r), t) : fh(t, e, r, i, s);
|
|
5580
5580
|
}
|
|
5581
5581
|
function fh(t, e, r, i, s, n) {
|
|
@@ -5622,7 +5622,7 @@ function fh(t, e, r, i, s, n) {
|
|
|
5622
5622
|
if (e.isGeneric()) {
|
|
5623
5623
|
let a = e.value;
|
|
5624
5624
|
if (a < 0 || a >= i.length) throw new Error(`Generic argument ${e.toString()} is invalid for argument ${r}`);
|
|
5625
|
-
return
|
|
5625
|
+
return xt(t, i[a], r, i, s);
|
|
5626
5626
|
}
|
|
5627
5627
|
if (e.isVector()) {
|
|
5628
5628
|
if (e.value.isU8()) {
|
|
@@ -5630,8 +5630,8 @@ function fh(t, e, r, i, s, n) {
|
|
|
5630
5630
|
if (t instanceof Uint8Array) return N.U8(t);
|
|
5631
5631
|
if (t instanceof ArrayBuffer) return N.U8(new Uint8Array(t));
|
|
5632
5632
|
}
|
|
5633
|
-
if (ft(t) && t.startsWith("[")) return
|
|
5634
|
-
if (Array.isArray(t)) return new N(t.map((a) =>
|
|
5633
|
+
if (ft(t) && t.startsWith("[")) return xt(JSON.parse(t), e, r, i);
|
|
5634
|
+
if (Array.isArray(t)) return new N(t.map((a) => xt(a, e.value, r, i, s)));
|
|
5635
5635
|
throw new Error(`Type mismatch for argument ${r}, type '${e.toString()}'`);
|
|
5636
5636
|
}
|
|
5637
5637
|
if (e.isStruct()) {
|
|
@@ -5652,7 +5652,7 @@ function fh(t, e, r, i, s, n) {
|
|
|
5652
5652
|
let a = e.value.typeArgs[0];
|
|
5653
5653
|
return a instanceof Ee ? new ke(null) : a instanceof He ? new ke(null) : a instanceof gt ? new ke(null) : a instanceof ir ? new ke(null) : a instanceof sr ? new ke(null) : a instanceof Oe ? new ke(null) : a instanceof nr ? new ke(null) : a instanceof or ? new ke(null) : new ke(null);
|
|
5654
5654
|
}
|
|
5655
|
-
return new ke(
|
|
5655
|
+
return new ke(xt(t, e.value.typeArgs[0], r, i, s));
|
|
5656
5656
|
}
|
|
5657
5657
|
if (((o = s == null ? void 0 : s.structs.find((a) => a.name === e.value.name.identifier)) == null ? void 0 : o.fields.length) === 0 && t instanceof Uint8Array) return new gr(t);
|
|
5658
5658
|
throw new Error(`Unsupported struct input type for argument ${r}, type '${e.toString()}'`);
|
|
@@ -5774,7 +5774,7 @@ async function To(t) {
|
|
|
5774
5774
|
function yh(t) {
|
|
5775
5775
|
let { signerPublicKey: e, transaction: r, secondarySignersPublicKeys: i, feePayerPublicKey: s } = t, n = Ht(e);
|
|
5776
5776
|
if (r.feePayerAddress) {
|
|
5777
|
-
let a = new
|
|
5777
|
+
let a = new xn(r.rawTransaction, r.secondarySignerAddresses ?? [], r.feePayerAddress), c = [];
|
|
5778
5778
|
r.secondarySignerAddresses && (i ? c = i.map((w) => Ht(w)) : c = Array.from({ length: r.secondarySignerAddresses.length }, () => Ht(void 0)));
|
|
5779
5779
|
let d = Ht(s), p = new fi(n, r.secondarySignerAddresses ?? [], c, { address: r.feePayerAddress, authenticator: d });
|
|
5780
5780
|
return new ar(a.raw_txn, p).bcsToBytes();
|
|
@@ -5855,7 +5855,7 @@ function On(t) {
|
|
|
5855
5855
|
if (!r.feePayerAddress) throw new Error(`Transaction ${r} is not a Fee Payer transaction`);
|
|
5856
5856
|
return r.feePayerAddress = e.accountAddress, Pn({ signer: e, transaction: r });
|
|
5857
5857
|
}
|
|
5858
|
-
async function
|
|
5858
|
+
async function xo(t) {
|
|
5859
5859
|
var d, p, w;
|
|
5860
5860
|
let { aptosConfig: e, transaction: r, signerPublicKey: i, secondarySignersPublicKeys: s, feePayerPublicKey: n, options: o } = t, a = yh({ transaction: r, signerPublicKey: i, secondarySignersPublicKeys: s, feePayerPublicKey: n }), { data: c } = await Fr({ aptosConfig: e, body: a, path: "transactions/simulate", params: { estimate_gas_unit_price: ((d = t.options) == null ? void 0 : d.estimateGasUnitPrice) ?? !1, estimate_max_gas_amount: ((p = t.options) == null ? void 0 : p.estimateMaxGasAmount) ?? !1, estimate_prioritized_gas_unit_price: ((w = t.options) == null ? void 0 : w.estimatePrioritizedGasUnitPrice) ?? !1 }, originMethod: "simulateTransaction", contentType: "application/x.aptos.signed_transaction+bcs" });
|
|
5861
5861
|
return c;
|
|
@@ -5957,13 +5957,13 @@ async function Th(t) {
|
|
|
5957
5957
|
let { aptosConfig: e, accountAddress: r, options: i } = t, s = h.from(r).toStringLong(), n = { ...i == null ? void 0 : i.where, owner_address: { _eq: s } }, o = { query: hg, variables: { where_condition: n, offset: i == null ? void 0 : i.offset, limit: i == null ? void 0 : i.limit, order_by: i == null ? void 0 : i.orderBy } };
|
|
5958
5958
|
return (await T({ aptosConfig: e, query: o, originMethod: "getAccountCoinsData" })).current_fungible_asset_balances;
|
|
5959
5959
|
}
|
|
5960
|
-
async function
|
|
5960
|
+
async function xh(t) {
|
|
5961
5961
|
let { aptosConfig: e, accountAddress: r } = t, i = h.from(r).toStringLong(), s = await T({ aptosConfig: e, query: { query: pg, variables: { address: i } }, originMethod: "getAccountCoinsCount" });
|
|
5962
5962
|
if (!s.current_fungible_asset_balances_aggregate.aggregate) throw Error("Failed to get the count of account coins");
|
|
5963
5963
|
return s.current_fungible_asset_balances_aggregate.aggregate.count;
|
|
5964
5964
|
}
|
|
5965
|
-
async function
|
|
5966
|
-
let { aptosConfig: e, accountAddress: r, options: i } = t, s = { owner_address: { _eq: h.from(r).toStringLong() } }, n = { query:
|
|
5965
|
+
async function zh(t) {
|
|
5966
|
+
let { aptosConfig: e, accountAddress: r, options: i } = t, s = { owner_address: { _eq: h.from(r).toStringLong() } }, n = { query: za, variables: { where_condition: s, offset: i == null ? void 0 : i.offset, limit: i == null ? void 0 : i.limit, order_by: i == null ? void 0 : i.orderBy } };
|
|
5967
5967
|
return (await T({ aptosConfig: e, query: n, originMethod: "getAccountOwnedObjects" })).current_objects;
|
|
5968
5968
|
}
|
|
5969
5969
|
async function Nh(t) {
|
|
@@ -5974,19 +5974,19 @@ async function Nh(t) {
|
|
|
5974
5974
|
}
|
|
5975
5975
|
if (r instanceof qe) {
|
|
5976
5976
|
let s = Pe.fromPublicKey({ publicKey: i.publicKey });
|
|
5977
|
-
if (await
|
|
5977
|
+
if (await zo({ authKey: s, aptosConfig: e })) {
|
|
5978
5978
|
let o = s.derivedAddress();
|
|
5979
5979
|
return ur.fromPrivateKey({ privateKey: r, address: o, legacy: !0 });
|
|
5980
5980
|
}
|
|
5981
5981
|
let n = Pe.fromPublicKey({ publicKey: i });
|
|
5982
|
-
if (await
|
|
5982
|
+
if (await zo({ authKey: n, aptosConfig: e })) {
|
|
5983
5983
|
let o = n.derivedAddress();
|
|
5984
5984
|
return ur.fromPrivateKey({ privateKey: r, address: o, legacy: !1 });
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
5987
|
throw new Error(`Can't derive account from private key ${r}`);
|
|
5988
5988
|
}
|
|
5989
|
-
async function
|
|
5989
|
+
async function zo(t) {
|
|
5990
5990
|
let { aptosConfig: e, authKey: r } = t, i = await pi({ aptosConfig: e, authenticationKey: r.derivedAddress() });
|
|
5991
5991
|
try {
|
|
5992
5992
|
return await wr({ aptosConfig: e, accountAddress: i }), !0;
|
|
@@ -6122,10 +6122,10 @@ var Rn = class {
|
|
|
6122
6122
|
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "fungible_asset_processor" }), Th({ aptosConfig: this.config, ...t });
|
|
6123
6123
|
}
|
|
6124
6124
|
async getAccountCoinsCount(t) {
|
|
6125
|
-
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "fungible_asset_processor" }),
|
|
6125
|
+
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "fungible_asset_processor" }), xh({ aptosConfig: this.config, ...t });
|
|
6126
6126
|
}
|
|
6127
6127
|
async getAccountAPTAmount(t) {
|
|
6128
|
-
return this.getAccountCoinAmount({ coinType: Wr, faMetadataAddress:
|
|
6128
|
+
return this.getAccountCoinAmount({ coinType: Wr, faMetadataAddress: zg, ...t });
|
|
6129
6129
|
}
|
|
6130
6130
|
async getAccountCoinAmount(t) {
|
|
6131
6131
|
let { accountAddress: e, coinType: r, faMetadataAddress: i, minimumLedgerVersion: s } = t;
|
|
@@ -6155,7 +6155,7 @@ var Rn = class {
|
|
|
6155
6155
|
return parseInt(a, 10);
|
|
6156
6156
|
}
|
|
6157
6157
|
async getAccountOwnedObjects(t) {
|
|
6158
|
-
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "default_processor" }),
|
|
6158
|
+
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "default_processor" }), zh({ aptosConfig: this.config, ...t });
|
|
6159
6159
|
}
|
|
6160
6160
|
async deriveAccountFromPrivateKey(t) {
|
|
6161
6161
|
return Nh({ aptosConfig: this.config, ...t });
|
|
@@ -6297,7 +6297,7 @@ function Au(t, e) {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
function qn(t, e) {
|
|
6299
6299
|
let r = Ft(e);
|
|
6300
|
-
return
|
|
6300
|
+
return xt(t, r, 0, []).bcsToBytes();
|
|
6301
6301
|
}
|
|
6302
6302
|
var Eu = class {
|
|
6303
6303
|
constructor(t) {
|
|
@@ -6388,7 +6388,7 @@ async function TA(t) {
|
|
|
6388
6388
|
let { accountAddress: e, aptosConfig: r, creationNumber: i, options: s } = t, n = { account_address: { _eq: h.from(e).toStringLong() }, creation_number: { _eq: i } };
|
|
6389
6389
|
return Pi({ aptosConfig: r, options: { ...s, where: n } });
|
|
6390
6390
|
}
|
|
6391
|
-
async function
|
|
6391
|
+
async function xA(t) {
|
|
6392
6392
|
let { accountAddress: e, aptosConfig: r, eventType: i, options: s } = t, n = { account_address: { _eq: h.from(e).toStringLong() }, indexed_type: { _eq: i } };
|
|
6393
6393
|
return Pi({ aptosConfig: r, options: { ...s, where: n } });
|
|
6394
6394
|
}
|
|
@@ -6410,13 +6410,13 @@ var yu = class {
|
|
|
6410
6410
|
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "events_processor" }), TA({ aptosConfig: this.config, ...t });
|
|
6411
6411
|
}
|
|
6412
6412
|
async getAccountEventsByEventType(t) {
|
|
6413
|
-
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "events_processor" }),
|
|
6413
|
+
return await Q({ config: this.config, minimumLedgerVersion: t.minimumLedgerVersion, processorType: "events_processor" }), xA({ aptosConfig: this.config, ...t });
|
|
6414
6414
|
}
|
|
6415
6415
|
async getEvents(t) {
|
|
6416
6416
|
return await Q({ config: this.config, minimumLedgerVersion: t == null ? void 0 : t.minimumLedgerVersion, processorType: "events_processor" }), Pi({ aptosConfig: this.config, ...t });
|
|
6417
6417
|
}
|
|
6418
6418
|
};
|
|
6419
|
-
async function
|
|
6419
|
+
async function zA(t) {
|
|
6420
6420
|
let { aptosConfig: e, accountAddress: r, amount: i, options: s } = t, n = (s == null ? void 0 : s.timeoutSecs) || 20, { data: o } = await Hg({ aptosConfig: e, path: "fund", body: { address: h.from(r).toString(), amount: i }, originMethod: "fundAccount" }), a = o.txn_hashes[0], c = await Si({ aptosConfig: e, transactionHash: a, options: { timeoutSecs: n, checkSuccess: s == null ? void 0 : s.checkSuccess } });
|
|
6421
6421
|
if (c.type === "user_transaction") return c;
|
|
6422
6422
|
throw new Error(`Unexpected transaction received for fund account: ${c.type}`);
|
|
@@ -6427,7 +6427,7 @@ var wu = class {
|
|
|
6427
6427
|
}
|
|
6428
6428
|
async fundAccount(t) {
|
|
6429
6429
|
var r, i;
|
|
6430
|
-
let e = await
|
|
6430
|
+
let e = await zA({ aptosConfig: this.config, ...t });
|
|
6431
6431
|
return (((r = t.options) == null ? void 0 : r.waitForIndexer) === void 0 || (i = t.options) != null && i.waitForIndexer) && await Xa({ aptosConfig: this.config, minimumLedgerVersion: BigInt(e.version), processorType: "fungible_asset_processor" }), e;
|
|
6432
6432
|
}
|
|
6433
6433
|
};
|
|
@@ -6548,8 +6548,8 @@ async function XA(t) {
|
|
|
6548
6548
|
if (r.policy === "domain") {
|
|
6549
6549
|
let G = r.years ?? 1;
|
|
6550
6550
|
if (G !== 1) throw new Error("For now, names can only be registered for 1 year at a time");
|
|
6551
|
-
let
|
|
6552
|
-
return await M({ aptosConfig: e, sender: s.accountAddress.toString(), data: { function: `${d}::router::register_domain`, functionArguments: [p,
|
|
6551
|
+
let x = G * 31536e3;
|
|
6552
|
+
return await M({ aptosConfig: e, sender: s.accountAddress.toString(), data: { function: `${d}::router::register_domain`, functionArguments: [p, x, n, o] }, options: a });
|
|
6553
6553
|
}
|
|
6554
6554
|
if (!w) throw new Error(`${r.policy} requires a subdomain to be provided.`);
|
|
6555
6555
|
let A = await Bu({ aptosConfig: e, name: p });
|
|
@@ -6667,11 +6667,11 @@ var bu = class {
|
|
|
6667
6667
|
}
|
|
6668
6668
|
};
|
|
6669
6669
|
async function aE(t) {
|
|
6670
|
-
let { aptosConfig: e, poolAddress: r } = t, i = h.from(r).toStringLong(), s = await T({ aptosConfig: e, query: { query:
|
|
6670
|
+
let { aptosConfig: e, poolAddress: r } = t, i = h.from(r).toStringLong(), s = await T({ aptosConfig: e, query: { query: xa, variables: { where_condition: { pool_address: { _eq: i } } } } });
|
|
6671
6671
|
return s.num_active_delegator_per_pool[0] ? s.num_active_delegator_per_pool[0].num_active_delegator : 0;
|
|
6672
6672
|
}
|
|
6673
6673
|
async function cE(t) {
|
|
6674
|
-
let { aptosConfig: e, options: r } = t, i = { query:
|
|
6674
|
+
let { aptosConfig: e, options: r } = t, i = { query: xa, variables: { order_by: r == null ? void 0 : r.orderBy } };
|
|
6675
6675
|
return (await T({ aptosConfig: e, query: i })).num_active_delegator_per_pool;
|
|
6676
6676
|
}
|
|
6677
6677
|
async function uE(t) {
|
|
@@ -6706,14 +6706,14 @@ var Ku = class {
|
|
|
6706
6706
|
this.config = t;
|
|
6707
6707
|
}
|
|
6708
6708
|
async simple(t) {
|
|
6709
|
-
return
|
|
6709
|
+
return xo({ aptosConfig: this.config, ...t });
|
|
6710
6710
|
}
|
|
6711
6711
|
async multiAgent(t) {
|
|
6712
|
-
return
|
|
6712
|
+
return xo({ aptosConfig: this.config, ...t });
|
|
6713
6713
|
}
|
|
6714
6714
|
};
|
|
6715
6715
|
Ye([mo], Ts.prototype, "simple"), Ye([mo], Ts.prototype, "multiAgent");
|
|
6716
|
-
var
|
|
6716
|
+
var xs = class {
|
|
6717
6717
|
constructor(t) {
|
|
6718
6718
|
this.config = t;
|
|
6719
6719
|
}
|
|
@@ -6724,7 +6724,7 @@ var zs = class {
|
|
|
6724
6724
|
return gi({ aptosConfig: this.config, ...t });
|
|
6725
6725
|
}
|
|
6726
6726
|
};
|
|
6727
|
-
Ye([wo],
|
|
6727
|
+
Ye([wo], xs.prototype, "simple"), Ye([wo], xs.prototype, "multiAgent");
|
|
6728
6728
|
var dE = class {
|
|
6729
6729
|
constructor(t, e, r, i, s) {
|
|
6730
6730
|
this.lastUncommintedNumber = null, this.currentNumber = null, this.lock = !1, this.aptosConfig = t, this.account = e, this.maxWaitTime = r, this.maximumInFlight = i, this.sleepTime = s;
|
|
@@ -6877,7 +6877,7 @@ var dE = class {
|
|
|
6877
6877
|
}
|
|
6878
6878
|
}, Du = class {
|
|
6879
6879
|
constructor(t) {
|
|
6880
|
-
this.config = t, this.build = new lE(this.config), this.simulate = new Ts(this.config), this.submit = new
|
|
6880
|
+
this.config = t, this.build = new lE(this.config), this.simulate = new Ts(this.config), this.submit = new xs(this.config), this.batch = new pE(this.config);
|
|
6881
6881
|
}
|
|
6882
6882
|
async getTransactions(t) {
|
|
6883
6883
|
return Va({ aptosConfig: this.config, ...t });
|
|
@@ -6980,7 +6980,7 @@ var Fu = class {
|
|
|
6980
6980
|
}
|
|
6981
6981
|
};
|
|
6982
6982
|
async function EE(t) {
|
|
6983
|
-
let { aptosConfig: e, options: r } = t, i = { query:
|
|
6983
|
+
let { aptosConfig: e, options: r } = t, i = { query: za, variables: { where_condition: r == null ? void 0 : r.where, offset: r == null ? void 0 : r.offset, limit: r == null ? void 0 : r.limit, order_by: r == null ? void 0 : r.orderBy } };
|
|
6984
6984
|
return (await T({ aptosConfig: e, query: i, originMethod: "getObjectData" })).current_objects;
|
|
6985
6985
|
}
|
|
6986
6986
|
async function yE(t) {
|
|
@@ -7021,7 +7021,7 @@ Ce(Ie, Du, "transaction");
|
|
|
7021
7021
|
Ce(Ie, _a, "table");
|
|
7022
7022
|
Ce(Ie, Fu, "keyless");
|
|
7023
7023
|
Ce(Ie, Lu, "object");
|
|
7024
|
-
var wE = 1e7,
|
|
7024
|
+
var wE = 1e7, zs = 120, mE = 30, IE = 330, CE = 120, UE = 350, BE = 300, bE = 93, Gu = class ut extends qt {
|
|
7025
7025
|
constructor(e, r) {
|
|
7026
7026
|
super();
|
|
7027
7027
|
let i = B.fromHexInput(r).toUint8Array();
|
|
@@ -7105,7 +7105,7 @@ function KE(t) {
|
|
|
7105
7105
|
let { publicKey: e, signature: r, jwk: i, keylessConfig: s } = t, n = e instanceof ge ? e : e.keylessPublicKey;
|
|
7106
7106
|
if (!(r.ephemeralCertificate.signature instanceof Et)) throw new Error("Signature is not a ZeroKnowledgeSig");
|
|
7107
7107
|
let o = r.ephemeralCertificate.signature, a = [];
|
|
7108
|
-
return a.push(...Jn(r.ephemeralPublicKey.toUint8Array(), s.maxCommitedEpkBytes)), a.push(br(n.idCommitment)), a.push(r.expiryDateSecs), a.push(o.expHorizonSecs), a.push(Ze(n.iss, s.maxIssValBytes)), o.extraField ? (a.push(1n), a.push(Ze(o.extraField, s.maxExtraFieldBytes))) : (a.push(0n), a.push(Ze(" ", s.maxExtraFieldBytes))), a.push(Ze(Jf(r.jwtHeader, !0) + ".", s.maxJwtHeaderB64Bytes)), a.push(i.toScalar()), o.overrideAudVal ? (a.push(Ze(o.overrideAudVal,
|
|
7108
|
+
return a.push(...Jn(r.ephemeralPublicKey.toUint8Array(), s.maxCommitedEpkBytes)), a.push(br(n.idCommitment)), a.push(r.expiryDateSecs), a.push(o.expHorizonSecs), a.push(Ze(n.iss, s.maxIssValBytes)), o.extraField ? (a.push(1n), a.push(Ze(o.extraField, s.maxExtraFieldBytes))) : (a.push(0n), a.push(Ze(" ", s.maxExtraFieldBytes))), a.push(Ze(Jf(r.jwtHeader, !0) + ".", s.maxJwtHeaderB64Bytes)), a.push(i.toScalar()), o.overrideAudVal ? (a.push(Ze(o.overrideAudVal, zs)), a.push(1n)) : (a.push(Ze("", zs)), a.push(0n)), Kr(a);
|
|
7109
7109
|
}
|
|
7110
7110
|
async function Hu(t) {
|
|
7111
7111
|
let { aptosConfig: e, publicKey: r, kid: i } = t, s = r instanceof ge ? r : r.keylessPublicKey, { iss: n } = s, o, a = r instanceof ht ? r.jwkAddress : void 0;
|
|
@@ -7121,7 +7121,7 @@ async function Hu(t) {
|
|
|
7121
7121
|
return d;
|
|
7122
7122
|
}
|
|
7123
7123
|
function qo(t) {
|
|
7124
|
-
let { uidKey: e, uidVal: r, aud: i, pepper: s } = t, n = [br(B.fromHexInput(s).toUint8Array()), Ze(i,
|
|
7124
|
+
let { uidKey: e, uidVal: r, aud: i, pepper: s } = t, n = [br(B.fromHexInput(s).toUint8Array()), Ze(i, zs), Ze(r, IE), Ze(e, mE)];
|
|
7125
7125
|
return Ja(Kr(n), ge.ID_COMMITMENT_LENGTH);
|
|
7126
7126
|
}
|
|
7127
7127
|
var Lt = class si extends je {
|
|
@@ -7276,15 +7276,15 @@ var lr = Su, Mr = class Yu extends ug {
|
|
|
7276
7276
|
let r = Xn.deserialize(e), i = Number(e.deserializeU64()), s = e.deserializeOption("string"), n = e.deserializeOption("string"), o = e.deserializeOption(fr);
|
|
7277
7277
|
return new qs({ proof: r, expHorizonSecs: i, trainingWheelsSignature: o, extraField: s, overrideAudVal: n });
|
|
7278
7278
|
}
|
|
7279
|
-
}, kE = class
|
|
7279
|
+
}, kE = class xu {
|
|
7280
7280
|
constructor(e) {
|
|
7281
7281
|
let { verificationKey: r, trainingWheelsPubkey: i, maxExpHorizonSecs: s = wE, maxExtraFieldBytes: n = UE, maxJwtHeaderB64Bytes: o = BE, maxIssValBytes: a = CE, maxCommitedEpkBytes: c = bE } = e;
|
|
7282
7282
|
this.verificationKey = r, this.maxExpHorizonSecs = s, i && (this.trainingWheelsPubkey = new ci(new $(i))), this.maxExtraFieldBytes = n, this.maxJwtHeaderB64Bytes = o, this.maxIssValBytes = a, this.maxCommitedEpkBytes = c;
|
|
7283
7283
|
}
|
|
7284
7284
|
static create(e, r) {
|
|
7285
|
-
return new
|
|
7285
|
+
return new xu({ verificationKey: new FE({ alphaG1: e.alpha_g1, betaG2: e.beta_g2, deltaG2: e.delta_g2, gammaAbcG1: e.gamma_abc_g1, gammaG2: e.gamma_g2 }), maxExpHorizonSecs: Number(r.max_exp_horizon_secs), trainingWheelsPubkey: r.training_wheels_pubkey.vec[0], maxExtraFieldBytes: r.max_extra_field_bytes, maxJwtHeaderB64Bytes: r.max_jwt_header_b64_bytes, maxIssValBytes: r.max_iss_val_bytes, maxCommitedEpkBytes: r.max_commited_epk_bytes });
|
|
7286
7286
|
}
|
|
7287
|
-
}, FE = class
|
|
7287
|
+
}, FE = class zu {
|
|
7288
7288
|
constructor(e) {
|
|
7289
7289
|
let { alphaG1: r, betaG2: i, deltaG2: s, gammaAbcG1: n, gammaG2: o } = e;
|
|
7290
7290
|
this.alphaG1 = new bt(r), this.betaG2 = new lr(i), this.deltaG2 = new lr(s), this.gammaAbcG1 = [new bt(n[0]), new bt(n[1])], this.gammaG2 = new lr(o);
|
|
@@ -7297,12 +7297,12 @@ var lr = Su, Mr = class Yu extends ug {
|
|
|
7297
7297
|
this.alphaG1.serialize(e), this.betaG2.serialize(e), this.deltaG2.serialize(e), this.gammaAbcG1[0].serialize(e), this.gammaAbcG1[1].serialize(e), this.gammaG2.serialize(e);
|
|
7298
7298
|
}
|
|
7299
7299
|
static fromGroth16VerificationKeyResponse(e) {
|
|
7300
|
-
return new
|
|
7300
|
+
return new zu({ alphaG1: e.alpha_g1, betaG2: e.beta_g2, deltaG2: e.delta_g2, gammaAbcG1: e.gamma_abc_g1, gammaG2: e.gamma_g2 });
|
|
7301
7301
|
}
|
|
7302
7302
|
verifyProof(e) {
|
|
7303
7303
|
let { publicInputsHash: r, groth16Proof: i } = e;
|
|
7304
7304
|
try {
|
|
7305
|
-
let s = i.a.toProjectivePoint(), n = i.b.toProjectivePoint(), o = i.c.toProjectivePoint(), a = this.alphaG1.toProjectivePoint(), c = this.betaG2.toProjectivePoint(), d = this.gammaG2.toProjectivePoint(), p = this.deltaG2.toProjectivePoint(), w = this.gammaAbcG1.map((Z) => Z.toProjectivePoint()), { Fp12: g } = Qe.fields, A = w[0].add(w[1].multiply(r)), u = Qe.pairing(A, d), G = Qe.pairing(s, n),
|
|
7305
|
+
let s = i.a.toProjectivePoint(), n = i.b.toProjectivePoint(), o = i.c.toProjectivePoint(), a = this.alphaG1.toProjectivePoint(), c = this.betaG2.toProjectivePoint(), d = this.gammaG2.toProjectivePoint(), p = this.deltaG2.toProjectivePoint(), w = this.gammaAbcG1.map((Z) => Z.toProjectivePoint()), { Fp12: g } = Qe.fields, A = w[0].add(w[1].multiply(r)), u = Qe.pairing(A, d), G = Qe.pairing(s, n), x = Qe.pairing(a, c), W = Qe.pairing(o, p), re = g.mul(x, g.mul(u, W));
|
|
7306
7306
|
return g.eql(G, re);
|
|
7307
7307
|
} catch (s) {
|
|
7308
7308
|
throw Y.fromErrorType({ type: 32, error: s, details: "Error encountered when checking zero knowledge relation" });
|
|
@@ -7423,21 +7423,21 @@ export {
|
|
|
7423
7423
|
Pp as D,
|
|
7424
7424
|
tc as E,
|
|
7425
7425
|
ac as F,
|
|
7426
|
-
|
|
7426
|
+
zp as M,
|
|
7427
7427
|
Ge as O,
|
|
7428
7428
|
Ti as S,
|
|
7429
7429
|
ee as U,
|
|
7430
7430
|
Ke as V,
|
|
7431
7431
|
Ie as W,
|
|
7432
7432
|
tt as Y,
|
|
7433
|
-
|
|
7433
|
+
xi as _,
|
|
7434
7434
|
qe as a,
|
|
7435
7435
|
Te as b,
|
|
7436
7436
|
B as c,
|
|
7437
7437
|
Eh as d,
|
|
7438
7438
|
Cp as e,
|
|
7439
7439
|
$ as f,
|
|
7440
|
-
|
|
7440
|
+
xn as g,
|
|
7441
7441
|
fe as h,
|
|
7442
7442
|
gh as i,
|
|
7443
7443
|
mp as j,
|
|
@@ -7445,7 +7445,7 @@ export {
|
|
|
7445
7445
|
h as l,
|
|
7446
7446
|
Np as m,
|
|
7447
7447
|
de as n,
|
|
7448
|
-
|
|
7448
|
+
zi as o,
|
|
7449
7449
|
Vt as p,
|
|
7450
7450
|
ls as q,
|
|
7451
7451
|
bo as r,
|