@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
|
@@ -13,7 +13,7 @@ var He = (s, t, e, n) => ({
|
|
|
13
13
|
return h(s, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
16
|
+
import { bG as p, bJ as w, by as S, bP as fn, bF as b, bx as ce, bL as Kn, bE as Ct, bM as j, bK as Le, K as Jt, ce as hn, cc as Kt, aa as Oe, z as pt, b$ as ue, bO as It, cf as Wn, a5 as Yn, bH as ve, cg as Xn, cd as dn, bI as Wt } from "./web3-DYVeiqSa.mjs";
|
|
17
17
|
const ge = BigInt(0), J = BigInt(1), Bt = 9007199254740991;
|
|
18
18
|
function Zn(s, t) {
|
|
19
19
|
const e = ye(s, "value"), n = BigInt(ut(t, "width"));
|
|
@@ -443,10 +443,10 @@ class lt {
|
|
|
443
443
|
p(!1, t, this.localName, e);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
var st, xt,
|
|
446
|
+
var st, xt, $t, se;
|
|
447
447
|
class ke {
|
|
448
448
|
constructor() {
|
|
449
|
-
P(this,
|
|
449
|
+
P(this, $t);
|
|
450
450
|
// An array of WordSize lengthed objects to concatenation
|
|
451
451
|
P(this, st);
|
|
452
452
|
P(this, xt);
|
|
@@ -459,17 +459,17 @@ class ke {
|
|
|
459
459
|
return h(this, xt);
|
|
460
460
|
}
|
|
461
461
|
appendWriter(t) {
|
|
462
|
-
return T(this,
|
|
462
|
+
return T(this, $t, se).call(this, j(t.data));
|
|
463
463
|
}
|
|
464
464
|
// Arrayish item; pad on the right to *nearest* WordSize
|
|
465
465
|
writeBytes(t) {
|
|
466
466
|
let e = j(t);
|
|
467
467
|
const n = e.length % F;
|
|
468
|
-
return n && (e = j(Ct([e, Te.slice(n)]))), T(this,
|
|
468
|
+
return n && (e = j(Ct([e, Te.slice(n)]))), T(this, $t, se).call(this, e);
|
|
469
469
|
}
|
|
470
470
|
// Numeric item; pad on the left *to* WordSize
|
|
471
471
|
writeValue(t) {
|
|
472
|
-
return T(this,
|
|
472
|
+
return T(this, $t, se).call(this, Ke(t));
|
|
473
473
|
}
|
|
474
474
|
// Inserts a numeric place-holder, returning a callback that can
|
|
475
475
|
// be used to asjust the value later
|
|
@@ -480,7 +480,7 @@ class ke {
|
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
st = new WeakMap(), xt = new WeakMap(),
|
|
483
|
+
st = new WeakMap(), xt = new WeakMap(), $t = new WeakSet(), se = function(t) {
|
|
484
484
|
return h(this, st).push(t), E(this, xt, h(this, xt) + t.length), t.length;
|
|
485
485
|
};
|
|
486
486
|
var D, M, Nt, Pt, ft, At, Ie, En;
|
|
@@ -560,7 +560,7 @@ function N(s, t) {
|
|
|
560
560
|
return new C(et, `bytes${t || ""}`, s, { size: t });
|
|
561
561
|
}
|
|
562
562
|
const We = Symbol.for("_ethers_typed");
|
|
563
|
-
var
|
|
563
|
+
var Ot;
|
|
564
564
|
const nt = class nt {
|
|
565
565
|
/**
|
|
566
566
|
* @_ignore:
|
|
@@ -574,12 +574,12 @@ const nt = class nt {
|
|
|
574
574
|
* The actual value.
|
|
575
575
|
*/
|
|
576
576
|
u(this, "value");
|
|
577
|
-
P(this,
|
|
577
|
+
P(this, Ot);
|
|
578
578
|
/**
|
|
579
579
|
* @_ignore:
|
|
580
580
|
*/
|
|
581
581
|
u(this, "_typedSymbol");
|
|
582
|
-
r == null && (r = null), Le(et, t, "Typed"), b(this, { _typedSymbol: We, type: e, value: n }), E(this,
|
|
582
|
+
r == null && (r = null), Le(et, t, "Typed"), b(this, { _typedSymbol: We, type: e, value: n }), E(this, Ot, r), this.format();
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
585
|
* Format the type as a Human-Readable type.
|
|
@@ -633,7 +633,7 @@ const nt = class nt {
|
|
|
633
633
|
get tupleName() {
|
|
634
634
|
if (this.type !== "tuple")
|
|
635
635
|
throw TypeError("not a tuple");
|
|
636
|
-
return h(this,
|
|
636
|
+
return h(this, Ot);
|
|
637
637
|
}
|
|
638
638
|
// Returns the length of this type as an array
|
|
639
639
|
// - `null` indicates the length is unforced, it could be dynamic
|
|
@@ -647,7 +647,7 @@ const nt = class nt {
|
|
|
647
647
|
get arrayLength() {
|
|
648
648
|
if (this.type !== "array")
|
|
649
649
|
throw TypeError("not an array");
|
|
650
|
-
return h(this,
|
|
650
|
+
return h(this, Ot) === !0 ? -1 : h(this, Ot) === !1 ? this.value.length : null;
|
|
651
651
|
}
|
|
652
652
|
/**
|
|
653
653
|
* Returns a new **Typed** of %%type%% with the %%value%%.
|
|
@@ -1307,7 +1307,7 @@ const nt = class nt {
|
|
|
1307
1307
|
return t;
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
|
-
|
|
1310
|
+
Ot = new WeakMap();
|
|
1311
1311
|
let C = nt;
|
|
1312
1312
|
class or extends lt {
|
|
1313
1313
|
constructor(t) {
|
|
@@ -1581,7 +1581,7 @@ class ne extends lt {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
1583
|
function Yt(s) {
|
|
1584
|
-
return
|
|
1584
|
+
return Oe(wn(s));
|
|
1585
1585
|
}
|
|
1586
1586
|
function Ne(s, t) {
|
|
1587
1587
|
return {
|
|
@@ -1603,7 +1603,7 @@ function L(s) {
|
|
|
1603
1603
|
const t = /* @__PURE__ */ new Set();
|
|
1604
1604
|
return s.forEach((e) => t.add(e)), Object.freeze(t);
|
|
1605
1605
|
}
|
|
1606
|
-
const xr = "external public payable override", Nr = L(xr.split(" ")),
|
|
1606
|
+
const xr = "external public payable override", Nr = L(xr.split(" ")), On = "constant external internal payable private public pure view override", Pr = L(On.split(" ")), vn = "constructor error event fallback function receive struct", Tn = L(vn.split(" ")), Rn = "calldata memory storage payable indexed", Or = L(Rn.split(" ")), vr = "tuple returns", Tr = [vn, Rn, vr, On].join(" "), Rr = L(Tr.split(" ")), kr = {
|
|
1607
1607
|
"(": "OPEN_PAREN",
|
|
1608
1608
|
")": "CLOSE_PAREN",
|
|
1609
1609
|
"[": "OPEN_BRACKET",
|
|
@@ -1821,14 +1821,14 @@ function Xe(s) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
return s;
|
|
1823
1823
|
}
|
|
1824
|
-
const R = {},
|
|
1825
|
-
var
|
|
1824
|
+
const R = {}, G = Symbol.for("_ethers_internal"), Ze = "_ParamTypeInternal", Qe = "_ErrorInternal", qe = "_EventInternal", je = "_ConstructorInternal", tn = "_FallbackInternal", en = "_FunctionInternal", nn = "_StructInternal";
|
|
1825
|
+
var Gt, ie;
|
|
1826
1826
|
const H = class H {
|
|
1827
1827
|
/**
|
|
1828
1828
|
* @private
|
|
1829
1829
|
*/
|
|
1830
1830
|
constructor(t, e, n, r, i, a, o, c) {
|
|
1831
|
-
P(this,
|
|
1831
|
+
P(this, Gt);
|
|
1832
1832
|
/**
|
|
1833
1833
|
* The local name of the parameter (or ``""`` if unbound)
|
|
1834
1834
|
*/
|
|
@@ -1866,7 +1866,7 @@ const H = class H {
|
|
|
1866
1866
|
* For non-array types this is ``null``.
|
|
1867
1867
|
*/
|
|
1868
1868
|
u(this, "arrayChildren");
|
|
1869
|
-
if (Le(t, R, "ParamType"), Object.defineProperty(this,
|
|
1869
|
+
if (Le(t, R, "ParamType"), Object.defineProperty(this, G, { value: Ze }), a && (a = Object.freeze(a.slice())), r === "array") {
|
|
1870
1870
|
if (o == null || c == null)
|
|
1871
1871
|
throw new Error("");
|
|
1872
1872
|
} else if (o != null || c != null)
|
|
@@ -1972,7 +1972,7 @@ const H = class H {
|
|
|
1972
1972
|
*/
|
|
1973
1973
|
async walkAsync(t, e) {
|
|
1974
1974
|
const n = [], r = [t];
|
|
1975
|
-
return T(this,
|
|
1975
|
+
return T(this, Gt, ie).call(this, n, t, e, (i) => {
|
|
1976
1976
|
r[0] = i;
|
|
1977
1977
|
}), n.length && await Promise.all(n), r[0];
|
|
1978
1978
|
}
|
|
@@ -1993,14 +1993,14 @@ const H = class H {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
else if (t instanceof K) {
|
|
1995
1995
|
let o = "", c = "", l = null;
|
|
1996
|
-
ct(t, L(["tuple"])).has("tuple") || t.peekType("OPEN_PAREN") ? (c = "tuple", l = t.popParams().map((
|
|
1996
|
+
ct(t, L(["tuple"])).has("tuple") || t.peekType("OPEN_PAREN") ? (c = "tuple", l = t.popParams().map((v) => H.from(v)), o = `tuple(${l.map((v) => v.format()).join(",")})`) : (o = Xe(t.popType("TYPE")), c = o);
|
|
1997
1997
|
let f = null, d = null;
|
|
1998
1998
|
for (; t.length && t.peekType("BRACKET"); ) {
|
|
1999
|
-
const
|
|
2000
|
-
f = new H(R, "", o, c, null, l, d, f), d =
|
|
1999
|
+
const v = t.pop();
|
|
2000
|
+
f = new H(R, "", o, c, null, l, d, f), d = v.value, o += v.text, c = "array", l = null;
|
|
2001
2001
|
}
|
|
2002
2002
|
let g = null;
|
|
2003
|
-
if (ct(t,
|
|
2003
|
+
if (ct(t, Or).has("indexed")) {
|
|
2004
2004
|
if (!e)
|
|
2005
2005
|
throw new Error("");
|
|
2006
2006
|
g = !0;
|
|
@@ -2038,10 +2038,10 @@ const H = class H {
|
|
|
2038
2038
|
* Returns true if %%value%% is a **ParamType**.
|
|
2039
2039
|
*/
|
|
2040
2040
|
static isParamType(t) {
|
|
2041
|
-
return t && t[
|
|
2041
|
+
return t && t[G] === Ze;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
|
-
|
|
2044
|
+
Gt = new WeakSet(), ie = function(t, e, n, r) {
|
|
2045
2045
|
if (this.isArray()) {
|
|
2046
2046
|
if (!Array.isArray(e))
|
|
2047
2047
|
throw new Error("invalid array value");
|
|
@@ -2050,7 +2050,7 @@ $t = new WeakSet(), ie = function(t, e, n, r) {
|
|
|
2050
2050
|
const a = this.arrayChildren, o = e.slice();
|
|
2051
2051
|
o.forEach((c, l) => {
|
|
2052
2052
|
var f;
|
|
2053
|
-
T(f = a,
|
|
2053
|
+
T(f = a, Gt, ie).call(f, t, c, n, (d) => {
|
|
2054
2054
|
o[l] = d;
|
|
2055
2055
|
});
|
|
2056
2056
|
}), r(o);
|
|
@@ -2076,7 +2076,7 @@ $t = new WeakSet(), ie = function(t, e, n, r) {
|
|
|
2076
2076
|
throw new Error("array is wrong length");
|
|
2077
2077
|
o.forEach((c, l) => {
|
|
2078
2078
|
var f;
|
|
2079
|
-
T(f = a[l],
|
|
2079
|
+
T(f = a[l], Gt, ie).call(f, t, c, n, (d) => {
|
|
2080
2080
|
o[l] = d;
|
|
2081
2081
|
});
|
|
2082
2082
|
}), r(o);
|
|
@@ -2120,7 +2120,7 @@ class Rt {
|
|
|
2120
2120
|
case "constructor":
|
|
2121
2121
|
return at.from(t);
|
|
2122
2122
|
case "error":
|
|
2123
|
-
return
|
|
2123
|
+
return $.from(t);
|
|
2124
2124
|
case "event":
|
|
2125
2125
|
return Q.from(t);
|
|
2126
2126
|
case "fallback":
|
|
@@ -2129,14 +2129,14 @@ class Rt {
|
|
|
2129
2129
|
case "function":
|
|
2130
2130
|
return q.from(t);
|
|
2131
2131
|
case "struct":
|
|
2132
|
-
return
|
|
2132
|
+
return vt.from(t);
|
|
2133
2133
|
}
|
|
2134
2134
|
else if (typeof t == "object") {
|
|
2135
2135
|
switch (t.type) {
|
|
2136
2136
|
case "constructor":
|
|
2137
2137
|
return at.from(t);
|
|
2138
2138
|
case "error":
|
|
2139
|
-
return
|
|
2139
|
+
return $.from(t);
|
|
2140
2140
|
case "event":
|
|
2141
2141
|
return Q.from(t);
|
|
2142
2142
|
case "fallback":
|
|
@@ -2145,7 +2145,7 @@ class Rt {
|
|
|
2145
2145
|
case "function":
|
|
2146
2146
|
return q.from(t);
|
|
2147
2147
|
case "struct":
|
|
2148
|
-
return
|
|
2148
|
+
return vt.from(t);
|
|
2149
2149
|
}
|
|
2150
2150
|
w(!1, `unsupported type: ${t.type}`, "UNSUPPORTED_OPERATION", {
|
|
2151
2151
|
operation: "Fragment.from"
|
|
@@ -2163,7 +2163,7 @@ class Rt {
|
|
|
2163
2163
|
* Returns true if %%value%% is an [[ErrorFragment]].
|
|
2164
2164
|
*/
|
|
2165
2165
|
static isError(t) {
|
|
2166
|
-
return
|
|
2166
|
+
return $.isFragment(t);
|
|
2167
2167
|
}
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Returns true if %%value%% is an [[EventFragment]].
|
|
@@ -2181,7 +2181,7 @@ class Rt {
|
|
|
2181
2181
|
* Returns true if %%value%% is a [[StructFragment]].
|
|
2182
2182
|
*/
|
|
2183
2183
|
static isStruct(t) {
|
|
2184
|
-
return
|
|
2184
|
+
return vt.isFragment(t);
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
class we extends Rt {
|
|
@@ -2200,12 +2200,12 @@ class we extends Rt {
|
|
|
2200
2200
|
function Xt(s, t) {
|
|
2201
2201
|
return "(" + t.map((e) => e.format(s)).join(s === "full" ? ", " : ",") + ")";
|
|
2202
2202
|
}
|
|
2203
|
-
class
|
|
2203
|
+
class $ extends we {
|
|
2204
2204
|
/**
|
|
2205
2205
|
* @private
|
|
2206
2206
|
*/
|
|
2207
2207
|
constructor(t, e, n) {
|
|
2208
|
-
super(t, "error", e, n), Object.defineProperty(this,
|
|
2208
|
+
super(t, "error", e, n), Object.defineProperty(this, G, { value: Qe });
|
|
2209
2209
|
}
|
|
2210
2210
|
/**
|
|
2211
2211
|
* The Custom Error selector.
|
|
@@ -2230,22 +2230,22 @@ class G extends we {
|
|
|
2230
2230
|
* Returns a new **ErrorFragment** for %%obj%%.
|
|
2231
2231
|
*/
|
|
2232
2232
|
static from(t) {
|
|
2233
|
-
if (
|
|
2233
|
+
if ($.isFragment(t))
|
|
2234
2234
|
return t;
|
|
2235
2235
|
if (typeof t == "string")
|
|
2236
|
-
return
|
|
2236
|
+
return $.from(yt(t));
|
|
2237
2237
|
if (t instanceof K) {
|
|
2238
2238
|
const e = me("error", t), n = ot(t);
|
|
2239
|
-
return Tt(t), new
|
|
2239
|
+
return Tt(t), new $(R, e, n);
|
|
2240
2240
|
}
|
|
2241
|
-
return new
|
|
2241
|
+
return new $(R, t.name, t.inputs ? t.inputs.map(U.from) : []);
|
|
2242
2242
|
}
|
|
2243
2243
|
/**
|
|
2244
2244
|
* Returns ``true`` and provides a type guard if %%value%% is an
|
|
2245
2245
|
* **ErrorFragment**.
|
|
2246
2246
|
*/
|
|
2247
2247
|
static isFragment(t) {
|
|
2248
|
-
return t && t[
|
|
2248
|
+
return t && t[G] === Qe;
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
2251
2251
|
class Q extends we {
|
|
@@ -2258,7 +2258,7 @@ class Q extends we {
|
|
|
2258
2258
|
* Whether this event is anonymous.
|
|
2259
2259
|
*/
|
|
2260
2260
|
u(this, "anonymous");
|
|
2261
|
-
Object.defineProperty(this,
|
|
2261
|
+
Object.defineProperty(this, G, { value: qe }), b(this, { anonymous: i });
|
|
2262
2262
|
}
|
|
2263
2263
|
/**
|
|
2264
2264
|
* The Event topic hash.
|
|
@@ -2309,7 +2309,7 @@ class Q extends we {
|
|
|
2309
2309
|
* **EventFragment**.
|
|
2310
2310
|
*/
|
|
2311
2311
|
static isFragment(e) {
|
|
2312
|
-
return e && e[
|
|
2312
|
+
return e && e[G] === qe;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
class at extends Rt {
|
|
@@ -2326,7 +2326,7 @@ class at extends Rt {
|
|
|
2326
2326
|
* The recommended gas limit for deployment or ``null``.
|
|
2327
2327
|
*/
|
|
2328
2328
|
u(this, "gas");
|
|
2329
|
-
Object.defineProperty(this,
|
|
2329
|
+
Object.defineProperty(this, G, { value: je }), b(this, { payable: i, gas: a });
|
|
2330
2330
|
}
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Returns a string representation of this constructor as %%format%%.
|
|
@@ -2367,7 +2367,7 @@ class at extends Rt {
|
|
|
2367
2367
|
* **ConstructorFragment**.
|
|
2368
2368
|
*/
|
|
2369
2369
|
static isFragment(e) {
|
|
2370
|
-
return e && e[
|
|
2370
|
+
return e && e[G] === je;
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
class rt extends Rt {
|
|
@@ -2377,7 +2377,7 @@ class rt extends Rt {
|
|
|
2377
2377
|
* If the function can be sent value during invocation.
|
|
2378
2378
|
*/
|
|
2379
2379
|
u(this, "payable");
|
|
2380
|
-
Object.defineProperty(this,
|
|
2380
|
+
Object.defineProperty(this, G, { value: tn }), b(this, { payable: r });
|
|
2381
2381
|
}
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Returns a string representation of this fallback as %%format%%.
|
|
@@ -2430,7 +2430,7 @@ class rt extends Rt {
|
|
|
2430
2430
|
* **FallbackFragment**.
|
|
2431
2431
|
*/
|
|
2432
2432
|
static isFragment(e) {
|
|
2433
|
-
return e && e[
|
|
2433
|
+
return e && e[G] === tn;
|
|
2434
2434
|
}
|
|
2435
2435
|
}
|
|
2436
2436
|
class q extends we {
|
|
@@ -2460,7 +2460,7 @@ class q extends we {
|
|
|
2460
2460
|
* The recommended gas limit to send when calling this function.
|
|
2461
2461
|
*/
|
|
2462
2462
|
u(this, "gas");
|
|
2463
|
-
Object.defineProperty(this,
|
|
2463
|
+
Object.defineProperty(this, G, { value: en }), a = Object.freeze(a.slice()), b(this, { constant: r === "view" || r === "pure", gas: o, outputs: a, payable: r === "payable", stateMutability: r });
|
|
2464
2464
|
}
|
|
2465
2465
|
/**
|
|
2466
2466
|
* The Function selector.
|
|
@@ -2519,15 +2519,15 @@ class q extends we {
|
|
|
2519
2519
|
* **FunctionFragment**.
|
|
2520
2520
|
*/
|
|
2521
2521
|
static isFragment(e) {
|
|
2522
|
-
return e && e[
|
|
2522
|
+
return e && e[G] === en;
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
|
-
class
|
|
2525
|
+
class vt extends we {
|
|
2526
2526
|
/**
|
|
2527
2527
|
* @private
|
|
2528
2528
|
*/
|
|
2529
2529
|
constructor(t, e, n) {
|
|
2530
|
-
super(t, "struct", e, n), Object.defineProperty(this,
|
|
2530
|
+
super(t, "struct", e, n), Object.defineProperty(this, G, { value: nn });
|
|
2531
2531
|
}
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Returns a string representation of this struct as %%format%%.
|
|
@@ -2541,15 +2541,15 @@ class Ot extends we {
|
|
|
2541
2541
|
static from(t) {
|
|
2542
2542
|
if (typeof t == "string")
|
|
2543
2543
|
try {
|
|
2544
|
-
return
|
|
2544
|
+
return vt.from(yt(t));
|
|
2545
2545
|
} catch {
|
|
2546
2546
|
p(!1, "invalid struct fragment", "obj", t);
|
|
2547
2547
|
}
|
|
2548
2548
|
else if (t instanceof K) {
|
|
2549
2549
|
const e = me("struct", t), n = ot(t);
|
|
2550
|
-
return Tt(t), new
|
|
2550
|
+
return Tt(t), new vt(R, e, n);
|
|
2551
2551
|
}
|
|
2552
|
-
return new
|
|
2552
|
+
return new vt(R, t.name, t.inputs ? t.inputs.map(U.from) : []);
|
|
2553
2553
|
}
|
|
2554
2554
|
// @TODO: fix this return type
|
|
2555
2555
|
/**
|
|
@@ -2557,7 +2557,7 @@ class Ot extends we {
|
|
|
2557
2557
|
* **StructFragment**.
|
|
2558
2558
|
*/
|
|
2559
2559
|
static isFragment(t) {
|
|
2560
|
-
return t && t[
|
|
2560
|
+
return t && t[G] === nn;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
2563
|
const W = /* @__PURE__ */ new Map();
|
|
@@ -2781,7 +2781,7 @@ class Dr {
|
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
|
-
class
|
|
2784
|
+
class $r {
|
|
2785
2785
|
/**
|
|
2786
2786
|
* @_ignore:
|
|
2787
2787
|
*/
|
|
@@ -3062,7 +3062,7 @@ const bt = class bt {
|
|
|
3062
3062
|
if (pt(t)) {
|
|
3063
3063
|
const r = t.toLowerCase();
|
|
3064
3064
|
if (on[r])
|
|
3065
|
-
return
|
|
3065
|
+
return $.from(on[r].signature);
|
|
3066
3066
|
for (const i of h(this, Y).values())
|
|
3067
3067
|
if (r === i.selector)
|
|
3068
3068
|
return i;
|
|
@@ -3076,17 +3076,17 @@ const bt = class bt {
|
|
|
3076
3076
|
/* fix:) */
|
|
3077
3077
|
)[0] === t && r.push(a);
|
|
3078
3078
|
if (r.length === 0)
|
|
3079
|
-
return t === "Error" ?
|
|
3079
|
+
return t === "Error" ? $.from("error Error(string)") : t === "Panic" ? $.from("error Panic(uint256)") : null;
|
|
3080
3080
|
if (r.length > 1) {
|
|
3081
3081
|
const i = r.map((a) => JSON.stringify(a.format())).join(", ");
|
|
3082
3082
|
p(!1, `ambiguous error description (i.e. ${i})`, "name", t);
|
|
3083
3083
|
}
|
|
3084
3084
|
return r[0];
|
|
3085
3085
|
}
|
|
3086
|
-
if (t =
|
|
3087
|
-
return
|
|
3086
|
+
if (t = $.from(t).format(), t === "Error(string)")
|
|
3087
|
+
return $.from("error Error(string)");
|
|
3088
3088
|
if (t === "Panic(uint256)")
|
|
3089
|
-
return
|
|
3089
|
+
return $.from("error Panic(uint256)");
|
|
3090
3090
|
const n = h(this, Y).get(t);
|
|
3091
3091
|
return n || null;
|
|
3092
3092
|
}
|
|
@@ -3310,7 +3310,7 @@ const bt = class bt {
|
|
|
3310
3310
|
w(e.length <= t.inputs.length, `too many arguments for ${t.format()}`, "UNEXPECTED_ARGUMENT", { count: e.length, expectedCount: t.inputs.length });
|
|
3311
3311
|
const n = [];
|
|
3312
3312
|
t.anonymous || n.push(t.topicHash);
|
|
3313
|
-
const r = (i, a) => i.type === "string" ? Yt(a) : i.type === "bytes" ?
|
|
3313
|
+
const r = (i, a) => i.type === "string" ? Yt(a) : i.type === "bytes" ? Oe(S(a)) : (i.type === "bool" && typeof a == "boolean" ? a = a ? "0x01" : "0x00" : i.type.match(/^u?int/) ? a = gn(a) : i.type.match(/^bytes/) ? a = Wn(a, 32) : i.type === "address" && h(this, B).encode(["address"], [a]), Yn(S(a), 32));
|
|
3314
3314
|
for (e.forEach((i, a) => {
|
|
3315
3315
|
const o = t.inputs[a];
|
|
3316
3316
|
if (!o.indexed) {
|
|
@@ -3334,7 +3334,7 @@ const bt = class bt {
|
|
|
3334
3334
|
if (a.type === "string")
|
|
3335
3335
|
n.push(Yt(c));
|
|
3336
3336
|
else if (a.type === "bytes")
|
|
3337
|
-
n.push(
|
|
3337
|
+
n.push(Oe(c));
|
|
3338
3338
|
else {
|
|
3339
3339
|
if (a.baseType === "tuple" || a.baseType === "array")
|
|
3340
3340
|
throw new Error("not implemented");
|
|
@@ -3364,25 +3364,25 @@ const bt = class bt {
|
|
|
3364
3364
|
const o = n != null ? h(this, B).decode(r, Ct(n)) : null, c = h(this, B).decode(i, e, !0), l = [], f = [];
|
|
3365
3365
|
let d = 0, g = 0;
|
|
3366
3366
|
return t.inputs.forEach((m, x) => {
|
|
3367
|
-
let
|
|
3367
|
+
let v = null;
|
|
3368
3368
|
if (m.indexed)
|
|
3369
3369
|
if (o == null)
|
|
3370
|
-
|
|
3370
|
+
v = new sn(null);
|
|
3371
3371
|
else if (a[x])
|
|
3372
|
-
|
|
3372
|
+
v = new sn(o[g++]);
|
|
3373
3373
|
else
|
|
3374
3374
|
try {
|
|
3375
|
-
|
|
3375
|
+
v = o[g++];
|
|
3376
3376
|
} catch (k) {
|
|
3377
|
-
|
|
3377
|
+
v = k;
|
|
3378
3378
|
}
|
|
3379
3379
|
else
|
|
3380
3380
|
try {
|
|
3381
|
-
|
|
3381
|
+
v = c[d++];
|
|
3382
3382
|
} catch (k) {
|
|
3383
|
-
|
|
3383
|
+
v = k;
|
|
3384
3384
|
}
|
|
3385
|
-
l.push(
|
|
3385
|
+
l.push(v), f.push(m.name || null);
|
|
3386
3386
|
}), Vt.fromItems(l, f);
|
|
3387
3387
|
}
|
|
3388
3388
|
/**
|
|
@@ -3422,7 +3422,7 @@ const bt = class bt {
|
|
|
3422
3422
|
if (!n)
|
|
3423
3423
|
return null;
|
|
3424
3424
|
const r = h(this, B).decode(n.inputs, It(e, 4));
|
|
3425
|
-
return new
|
|
3425
|
+
return new $r(n, n.selector, r);
|
|
3426
3426
|
}
|
|
3427
3427
|
/**
|
|
3428
3428
|
* Creates a new [[Interface]] from the ABI %%value%%.
|
|
@@ -3588,7 +3588,7 @@ class rs {
|
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function Gr(s) {
|
|
3592
3592
|
const t = {};
|
|
3593
3593
|
s.to && (t.to = s.to), s.from && (t.from = s.from), s.data && (t.data = S(s.data));
|
|
3594
3594
|
const e = "chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);
|
|
@@ -3752,7 +3752,7 @@ class ss {
|
|
|
3752
3752
|
* Returns a JSON-friendly value.
|
|
3753
3753
|
*/
|
|
3754
3754
|
toJSON() {
|
|
3755
|
-
const { baseFeePerGas: t, difficulty: e, extraData: n, gasLimit: r, gasUsed: i, hash: a, miner: o, prevRandao: c, nonce: l, number: f, parentHash: d, parentBeaconBlockRoot: g, stateRoot: m, receiptsRoot: x, timestamp:
|
|
3755
|
+
const { baseFeePerGas: t, difficulty: e, extraData: n, gasLimit: r, gasUsed: i, hash: a, miner: o, prevRandao: c, nonce: l, number: f, parentHash: d, parentBeaconBlockRoot: g, stateRoot: m, receiptsRoot: x, timestamp: v, transactions: k } = this;
|
|
3756
3756
|
return {
|
|
3757
3757
|
_type: "Block",
|
|
3758
3758
|
baseFeePerGas: A(t),
|
|
@@ -3768,7 +3768,7 @@ class ss {
|
|
|
3768
3768
|
nonce: l,
|
|
3769
3769
|
number: f,
|
|
3770
3770
|
parentHash: d,
|
|
3771
|
-
timestamp:
|
|
3771
|
+
timestamp: v,
|
|
3772
3772
|
parentBeaconBlockRoot: g,
|
|
3773
3773
|
stateRoot: m,
|
|
3774
3774
|
receiptsRoot: x,
|
|
@@ -4399,7 +4399,7 @@ const Ve = class Ve {
|
|
|
4399
4399
|
*/
|
|
4400
4400
|
async confirmations() {
|
|
4401
4401
|
if (this.blockNumber == null) {
|
|
4402
|
-
const { tx: e, blockNumber: n } = await
|
|
4402
|
+
const { tx: e, blockNumber: n } = await ve({
|
|
4403
4403
|
tx: this.getTransaction(),
|
|
4404
4404
|
blockNumber: this.provider.getBlockNumber()
|
|
4405
4405
|
});
|
|
@@ -4422,7 +4422,7 @@ const Ve = class Ve {
|
|
|
4422
4422
|
const c = async () => {
|
|
4423
4423
|
if (o)
|
|
4424
4424
|
return null;
|
|
4425
|
-
const { blockNumber: g, nonce: m } = await
|
|
4425
|
+
const { blockNumber: g, nonce: m } = await ve({
|
|
4426
4426
|
blockNumber: this.provider.getBlockNumber(),
|
|
4427
4427
|
nonce: this.provider.getTransactionCount(this.from)
|
|
4428
4428
|
});
|
|
@@ -4437,26 +4437,26 @@ const Ve = class Ve {
|
|
|
4437
4437
|
for (a === -1 && (a = i - 3, a < h(this, dt) && (a = h(this, dt))); a <= g; ) {
|
|
4438
4438
|
if (o)
|
|
4439
4439
|
return null;
|
|
4440
|
-
const
|
|
4441
|
-
if (
|
|
4440
|
+
const v = await this.provider.getBlock(a, !0);
|
|
4441
|
+
if (v == null)
|
|
4442
4442
|
return;
|
|
4443
|
-
for (const k of
|
|
4443
|
+
for (const k of v)
|
|
4444
4444
|
if (k === this.hash)
|
|
4445
4445
|
return;
|
|
4446
|
-
for (let k = 0; k <
|
|
4447
|
-
const
|
|
4448
|
-
if (
|
|
4446
|
+
for (let k = 0; k < v.length; k++) {
|
|
4447
|
+
const O = await v.getTransaction(k);
|
|
4448
|
+
if (O.from === this.from && O.nonce === this.nonce) {
|
|
4449
4449
|
if (o)
|
|
4450
4450
|
return null;
|
|
4451
|
-
const _ = await this.provider.getTransactionReceipt(
|
|
4451
|
+
const _ = await this.provider.getTransactionReceipt(O.hash);
|
|
4452
4452
|
if (_ == null || g - _.blockNumber + 1 < n)
|
|
4453
4453
|
return;
|
|
4454
4454
|
let mt = "replaced";
|
|
4455
|
-
|
|
4455
|
+
O.data === this.data && O.to === this.to && O.value === this.value ? mt = "repriced" : O.data === "0x" && O.from === O.to && O.value === Bn && (mt = "cancelled"), w(!1, "transaction was replaced", "TRANSACTION_REPLACED", {
|
|
4456
4456
|
cancelled: mt === "replaced" || mt === "cancelled",
|
|
4457
4457
|
reason: mt,
|
|
4458
|
-
replacement:
|
|
4459
|
-
hash:
|
|
4458
|
+
replacement: O.replaceableTransaction(i),
|
|
4459
|
+
hash: O.hash,
|
|
4460
4460
|
receipt: _
|
|
4461
4461
|
});
|
|
4462
4462
|
}
|
|
@@ -4489,24 +4489,24 @@ const Ve = class Ve {
|
|
|
4489
4489
|
} else if (await c(), n === 0)
|
|
4490
4490
|
return null;
|
|
4491
4491
|
return await new Promise((g, m) => {
|
|
4492
|
-
const x = [],
|
|
4493
|
-
x.forEach((
|
|
4492
|
+
const x = [], v = () => {
|
|
4493
|
+
x.forEach((O) => O());
|
|
4494
4494
|
};
|
|
4495
4495
|
if (x.push(() => {
|
|
4496
4496
|
o = !0;
|
|
4497
4497
|
}), r > 0) {
|
|
4498
|
-
const
|
|
4499
|
-
|
|
4498
|
+
const O = setTimeout(() => {
|
|
4499
|
+
v(), m(ue("wait for transaction timeout", "TIMEOUT"));
|
|
4500
4500
|
}, r);
|
|
4501
4501
|
x.push(() => {
|
|
4502
|
-
clearTimeout(
|
|
4502
|
+
clearTimeout(O);
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
|
-
const k = async (
|
|
4506
|
-
if (await
|
|
4507
|
-
|
|
4505
|
+
const k = async (O) => {
|
|
4506
|
+
if (await O.confirmations() >= n) {
|
|
4507
|
+
v();
|
|
4508
4508
|
try {
|
|
4509
|
-
g(l(
|
|
4509
|
+
g(l(O));
|
|
4510
4510
|
} catch (_) {
|
|
4511
4511
|
m(_);
|
|
4512
4512
|
}
|
|
@@ -4515,20 +4515,20 @@ const Ve = class Ve {
|
|
|
4515
4515
|
if (x.push(() => {
|
|
4516
4516
|
this.provider.off(this.hash, k);
|
|
4517
4517
|
}), this.provider.on(this.hash, k), i >= 0) {
|
|
4518
|
-
const
|
|
4518
|
+
const O = async () => {
|
|
4519
4519
|
try {
|
|
4520
4520
|
await c();
|
|
4521
4521
|
} catch (_) {
|
|
4522
4522
|
if (Kt(_, "TRANSACTION_REPLACED")) {
|
|
4523
|
-
|
|
4523
|
+
v(), m(_);
|
|
4524
4524
|
return;
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
|
-
o || this.provider.once("block",
|
|
4527
|
+
o || this.provider.once("block", O);
|
|
4528
4528
|
};
|
|
4529
4529
|
x.push(() => {
|
|
4530
|
-
this.provider.off("block",
|
|
4531
|
-
}), this.provider.once("block",
|
|
4530
|
+
this.provider.off("block", O);
|
|
4531
|
+
}), this.provider.once("block", O);
|
|
4532
4532
|
}
|
|
4533
4533
|
});
|
|
4534
4534
|
}
|
|
@@ -4710,7 +4710,7 @@ class Hr extends _r {
|
|
|
4710
4710
|
}
|
|
4711
4711
|
_t = new WeakMap();
|
|
4712
4712
|
var qt;
|
|
4713
|
-
class
|
|
4713
|
+
class $e extends fe {
|
|
4714
4714
|
/**
|
|
4715
4715
|
* @_ignore:
|
|
4716
4716
|
*/
|
|
@@ -4791,13 +4791,13 @@ const cn = BigInt(0);
|
|
|
4791
4791
|
function Dn(s) {
|
|
4792
4792
|
return s && typeof s.call == "function";
|
|
4793
4793
|
}
|
|
4794
|
-
function
|
|
4794
|
+
function $n(s) {
|
|
4795
4795
|
return s && typeof s.estimateGas == "function";
|
|
4796
4796
|
}
|
|
4797
4797
|
function Ee(s) {
|
|
4798
4798
|
return s && typeof s.resolveName == "function";
|
|
4799
4799
|
}
|
|
4800
|
-
function
|
|
4800
|
+
function Gn(s) {
|
|
4801
4801
|
return s && typeof s.sendTransaction == "function";
|
|
4802
4802
|
}
|
|
4803
4803
|
function _n(s) {
|
|
@@ -4835,7 +4835,7 @@ function Et(s) {
|
|
|
4835
4835
|
async function Vn(s, t) {
|
|
4836
4836
|
const e = C.dereference(s, "overrides");
|
|
4837
4837
|
p(typeof e == "object", "invalid overrides parameter", "overrides", s);
|
|
4838
|
-
const n =
|
|
4838
|
+
const n = Gr(e);
|
|
4839
4839
|
return p(n.to == null || (t || []).indexOf("to") >= 0, "cannot override to", "overrides.to", n.to), p(n.data == null || (t || []).indexOf("data") >= 0, "cannot override data", "overrides.data", n.data), n.from && (n.from = n.from), n;
|
|
4840
4840
|
}
|
|
4841
4841
|
async function Kr(s, t, e) {
|
|
@@ -4861,12 +4861,12 @@ function Wr(s) {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
}, n = async function(a) {
|
|
4863
4863
|
const o = s.runner;
|
|
4864
|
-
w(
|
|
4864
|
+
w(Gn(o), "contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
|
4865
4865
|
const c = await o.sendTransaction(await t(a)), l = Et(s.runner);
|
|
4866
|
-
return new
|
|
4866
|
+
return new $e(s.interface, l, c);
|
|
4867
4867
|
}, r = async function(a) {
|
|
4868
4868
|
const o = kt(s.runner, "estimateGas");
|
|
4869
|
-
return w(
|
|
4869
|
+
return w($n(o), "contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { operation: "estimateGas" }), await o.estimateGas(await t(a));
|
|
4870
4870
|
}, i = async (a) => await n(a);
|
|
4871
4871
|
return b(i, {
|
|
4872
4872
|
_contract: s,
|
|
@@ -4889,7 +4889,7 @@ function Yr(s, t) {
|
|
|
4889
4889
|
if (f.inputs.length + 1 === l.length && (d = await Vn(l.pop()), d.from && (d.from = await Wt(d.from, _n(s.runner)))), f.inputs.length !== l.length)
|
|
4890
4890
|
throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");
|
|
4891
4891
|
const g = await Kr(s.runner, f.inputs, l);
|
|
4892
|
-
return Object.assign({}, d, await
|
|
4892
|
+
return Object.assign({}, d, await ve({
|
|
4893
4893
|
to: s.getAddress(),
|
|
4894
4894
|
data: s.interface.encodeFunctionData(f, g)
|
|
4895
4895
|
}));
|
|
@@ -4898,12 +4898,12 @@ function Yr(s, t) {
|
|
|
4898
4898
|
return f.length === 1 ? f[0] : f;
|
|
4899
4899
|
}, i = async function(...l) {
|
|
4900
4900
|
const f = s.runner;
|
|
4901
|
-
w(
|
|
4901
|
+
w(Gn(f), "contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
|
4902
4902
|
const d = await f.sendTransaction(await n(...l)), g = Et(s.runner);
|
|
4903
|
-
return new
|
|
4903
|
+
return new $e(s.interface, g, d);
|
|
4904
4904
|
}, a = async function(...l) {
|
|
4905
4905
|
const f = kt(s.runner, "estimateGas");
|
|
4906
|
-
return w(
|
|
4906
|
+
return w($n(f), "contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { operation: "estimateGas" }), await f.estimateGas(await n(...l));
|
|
4907
4907
|
}, o = async function(...l) {
|
|
4908
4908
|
const f = kt(s.runner, "call");
|
|
4909
4909
|
w(Dn(f), "contract runner does not support calling", "UNSUPPORTED_OPERATION", { operation: "call" });
|
|
@@ -4976,7 +4976,7 @@ function V(s) {
|
|
|
4976
4976
|
function Qr(s) {
|
|
4977
4977
|
return s && typeof s == "object" && "getTopicFilter" in s && typeof s.getTopicFilter == "function" && s.fragment;
|
|
4978
4978
|
}
|
|
4979
|
-
async function
|
|
4979
|
+
async function Ge(s, t) {
|
|
4980
4980
|
let e, n = null;
|
|
4981
4981
|
if (Array.isArray(t)) {
|
|
4982
4982
|
const i = function(a) {
|
|
@@ -5001,23 +5001,23 @@ async function $e(s, t) {
|
|
|
5001
5001
|
}
|
|
5002
5002
|
async function Ht(s, t) {
|
|
5003
5003
|
const { subs: e } = V(s);
|
|
5004
|
-
return e.get((await
|
|
5004
|
+
return e.get((await Ge(s, t)).tag) || null;
|
|
5005
5005
|
}
|
|
5006
5006
|
async function un(s, t, e) {
|
|
5007
5007
|
const n = Et(s.runner);
|
|
5008
5008
|
w(n, "contract runner does not support subscribing", "UNSUPPORTED_OPERATION", { operation: t });
|
|
5009
|
-
const { fragment: r, tag: i, topics: a } = await
|
|
5009
|
+
const { fragment: r, tag: i, topics: a } = await Ge(s, e), { addr: o, subs: c } = V(s);
|
|
5010
5010
|
let l = c.get(i);
|
|
5011
5011
|
if (!l) {
|
|
5012
5012
|
const d = { address: o || s, topics: a }, g = (k) => {
|
|
5013
|
-
let
|
|
5014
|
-
if (
|
|
5013
|
+
let O = r;
|
|
5014
|
+
if (O == null)
|
|
5015
5015
|
try {
|
|
5016
|
-
|
|
5016
|
+
O = s.interface.getEvent(k.topics[0]);
|
|
5017
5017
|
} catch {
|
|
5018
5018
|
}
|
|
5019
|
-
if (
|
|
5020
|
-
const _ =
|
|
5019
|
+
if (O) {
|
|
5020
|
+
const _ = O, mt = r ? s.interface.decodeEventLog(r, k.data, k.topics) : [];
|
|
5021
5021
|
Ce(s, e, mt, (Hn) => new zr(s, Hn, e, _, k));
|
|
5022
5022
|
} else
|
|
5023
5023
|
Ce(s, e, [], (_) => new Ln(s, _, e, k));
|
|
@@ -5107,7 +5107,7 @@ const zt = class zt {
|
|
|
5107
5107
|
let a, o = null, c = null;
|
|
5108
5108
|
if (r) {
|
|
5109
5109
|
const d = Et(n);
|
|
5110
|
-
c = new
|
|
5110
|
+
c = new $e(this.interface, d, r);
|
|
5111
5111
|
}
|
|
5112
5112
|
let l = /* @__PURE__ */ new Map();
|
|
5113
5113
|
if (typeof t == "string")
|
|
@@ -5269,7 +5269,7 @@ const zt = class zt {
|
|
|
5269
5269
|
*/
|
|
5270
5270
|
async queryFilter(t, e, n) {
|
|
5271
5271
|
e == null && (e = 0), n == null && (n = "latest");
|
|
5272
|
-
const { addr: r, addrPromise: i } = V(this), a = r || await i, { fragment: o, topics: c } = await
|
|
5272
|
+
const { addr: r, addrPromise: i } = V(this), a = r || await i, { fragment: o, topics: c } = await Ge(this, t), l = { address: a, topics: c, fromBlock: e, toBlock: n }, f = Et(this.runner);
|
|
5273
5273
|
return w(f, "contract runner does not have a provider", "UNSUPPORTED_OPERATION", { operation: "queryFilter" }), (await f.getLogs(l)).map((d) => {
|
|
5274
5274
|
let g = o;
|
|
5275
5275
|
if (g == null)
|
|
@@ -5417,7 +5417,7 @@ export {
|
|
|
5417
5417
|
_r as T,
|
|
5418
5418
|
wn as a,
|
|
5419
5419
|
pn as b,
|
|
5420
|
-
|
|
5420
|
+
Gr as c,
|
|
5421
5421
|
yn as d,
|
|
5422
5422
|
Vn as e,
|
|
5423
5423
|
gt as f,
|