@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
package/lib/executor.mjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
var wt = Object.defineProperty;
|
|
2
2
|
var Ct = (s, t, e) => t in s ? wt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var c = (s, t, e) => Ct(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import {
|
|
5
|
-
import { l as
|
|
6
|
-
import { A as
|
|
7
|
-
import { c as
|
|
8
|
-
import { A as
|
|
9
|
-
import { E as L } from "./platform-
|
|
10
|
-
import { C as N } from "./contract-
|
|
11
|
-
import { E as
|
|
12
|
-
import { w as
|
|
13
|
-
import { suiCircleObjects as
|
|
14
|
-
import { S as
|
|
15
|
-
import { S as
|
|
16
|
-
import { createDepositForBurnInstruction as
|
|
17
|
-
import { P as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { d as en } from "./account-BTK2b2Fv.mjs";
|
|
4
|
+
import { a_ as bt, ax as Et, a$ as At, b0 as yt, b1 as xt, b2 as Dt, b3 as Ft, b4 as vt, b5 as Bt, b6 as St, b7 as Tt, b8 as Pt, av as Ge, D as y, b9 as j, aB as x, aJ as U, y as Le, aD as te, aG as T, aH as Qe, az as We, aN as q, k, aK as je, o as Mt, P as E, a3 as qe, ar as Me, aq as Ie, ap as Ke, a6 as He, au as It, d as O, $ as kt, a4 as Xe, aQ as ne, aR as Ut, a0 as Vt, ba as zt, aS as $t, A as Rt, W as B, ab as v, bb as Ze, F as ue, G as Je, bc as Ye, U as Nt, aX as et, T as A, ae as tt, aV as nt, u as F, J as me, O as G, V as P, an as se, ao as ae, Q as R, R as st } from "./web3-DYVeiqSa.mjs";
|
|
5
|
+
import { l as ke } from "./chunk-KJH4KKG6-DmVjhXO7.mjs";
|
|
6
|
+
import { A as _t } from "./platform-DCgWqmh1.mjs";
|
|
7
|
+
import { c as Ue, _ as Ot, r as Gt } from "./address-BApwdEpr.mjs";
|
|
8
|
+
import { A as Lt } from "./unsignedTransaction-BDOQhqcZ.mjs";
|
|
9
|
+
import { E as L } from "./platform-BN6LFtXE.mjs";
|
|
10
|
+
import { C as N } from "./contract-BkMAZomO.mjs";
|
|
11
|
+
import { E as at } from "./unsignedTransaction-C0V0UbsS.mjs";
|
|
12
|
+
import { w as Ve, T as Qt, v as Wt, _ as jt } from "./platform-BYLu9SzP.mjs";
|
|
13
|
+
import { suiCircleObjects as qt } from "./index-BijBPDRn.mjs";
|
|
14
|
+
import { S as Kt } from "./address-f6joE_ig.mjs";
|
|
15
|
+
import { S as Ht } from "./unsignedTransaction-BD81leu1.mjs";
|
|
16
|
+
import { createDepositForBurnInstruction as Xt } from "./index-B7ztYPhr.mjs";
|
|
17
|
+
import { P as Zt } from "./index-DVcaDWmz.mjs";
|
|
18
|
+
import { S as Jt, a as Yt } from "./unsignedTransaction-CXB-QCUC.mjs";
|
|
19
|
+
import { d as en } from "./account-CVa_3S2g.mjs";
|
|
21
20
|
const tn = {
|
|
22
21
|
binary: "uint",
|
|
23
22
|
size: 1,
|
|
@@ -34,11 +33,11 @@ const tn = {
|
|
|
34
33
|
circleNonceItem: yt,
|
|
35
34
|
dateConversion: xt,
|
|
36
35
|
fixedChainItem: Dt,
|
|
37
|
-
fixedLengthStringItem:
|
|
38
|
-
guardianSetItem:
|
|
36
|
+
fixedLengthStringItem: Ft,
|
|
37
|
+
guardianSetItem: vt,
|
|
39
38
|
payloadIdItem: Bt,
|
|
40
|
-
sequenceItem:
|
|
41
|
-
signatureItem:
|
|
39
|
+
sequenceItem: St,
|
|
40
|
+
signatureItem: Tt,
|
|
42
41
|
stringConversion: Pt,
|
|
43
42
|
universalAddressItem: Ge
|
|
44
43
|
}, Symbol.toStringTag, { value: "Module" })), fe = {
|
|
@@ -78,6 +77,7 @@ const tn = {
|
|
|
78
77
|
Optimism: "0xd0a8940b2e743e33b682daec4d52b46713606c9d",
|
|
79
78
|
Polygon: "0xc8a8e6d760dcbd5d6746e2f66cd2ffa722dd1e59",
|
|
80
79
|
Unichain: "0xD5D5D640D8b758672Cc7A078734175c4433866d5",
|
|
80
|
+
Seievm: "0xf4FefFc03EEFB06B009bFB168b60B30edf7abc12",
|
|
81
81
|
Sonic: "0xc39BF082ec91D9bC385F956D24a8D66C0c26223d",
|
|
82
82
|
Worldchain: "0x789f2b91f7B35D5B890983328340c4600339B354"
|
|
83
83
|
}
|
|
@@ -115,6 +115,7 @@ const tn = {
|
|
|
115
115
|
Optimism: 250000n,
|
|
116
116
|
Polygon: 250000n,
|
|
117
117
|
Unichain: 250000n,
|
|
118
|
+
Seievm: 250000n,
|
|
118
119
|
Solana: 250000n,
|
|
119
120
|
Sonic: 250000n,
|
|
120
121
|
Sui: 8000000n,
|
|
@@ -180,6 +181,10 @@ const tn = {
|
|
|
180
181
|
tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
|
|
181
182
|
messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
|
|
182
183
|
},
|
|
184
|
+
Seievm: {
|
|
185
|
+
tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
|
|
186
|
+
messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
|
|
187
|
+
},
|
|
183
188
|
Sonic: {
|
|
184
189
|
tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
|
|
185
190
|
messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
|
|
@@ -236,7 +241,8 @@ const tn = {
|
|
|
236
241
|
Unichain: 10,
|
|
237
242
|
Linea: 11,
|
|
238
243
|
Sonic: 13,
|
|
239
|
-
Worldchain: 14
|
|
244
|
+
Worldchain: 14,
|
|
245
|
+
Seievm: 16
|
|
240
246
|
}
|
|
241
247
|
}, re = (s, t) => {
|
|
242
248
|
var e;
|
|
@@ -277,6 +283,7 @@ const ot = {
|
|
|
277
283
|
Optimism: 8e3,
|
|
278
284
|
Polygon: 8e3,
|
|
279
285
|
Unichain: 8e3,
|
|
286
|
+
Seievm: 8e3,
|
|
280
287
|
Worldchain: 8e3
|
|
281
288
|
}
|
|
282
289
|
}, dn = (s, t) => {
|
|
@@ -304,7 +311,7 @@ class he {
|
|
|
304
311
|
this.shimContract = i;
|
|
305
312
|
}
|
|
306
313
|
static async fromRpc(t, e) {
|
|
307
|
-
const [n, a] = await
|
|
314
|
+
const [n, a] = await _t.chainFromRpc(t), r = e[a];
|
|
308
315
|
if (!r)
|
|
309
316
|
throw new Error(`No config found for ${a}`);
|
|
310
317
|
if (r.network !== n)
|
|
@@ -313,7 +320,7 @@ class he {
|
|
|
313
320
|
}
|
|
314
321
|
async *transfer(t, e, n) {
|
|
315
322
|
var h, g;
|
|
316
|
-
const a = new
|
|
323
|
+
const a = new Ue(t).unwrap(), r = ke.from(e.address.toUniversalAddress().toUint8Array()), i = ke.from(this.usdcId), o = n.remainingAmount + n.referrerFee, d = j.get(this.network, e.chain), u = a, m = new Ue(((g = (h = n.referrer) == null ? void 0 : h.address) == null ? void 0 : g.toString()) ?? a).unwrap(), f = [
|
|
317
324
|
o,
|
|
318
325
|
d,
|
|
319
326
|
r.toString(),
|
|
@@ -332,10 +339,10 @@ class he {
|
|
|
332
339
|
yield this.createUnsignedTx(l, "AtposCCTPExecutor.Transfer");
|
|
333
340
|
}
|
|
334
341
|
createUnsignedTx(t, e, n = !1) {
|
|
335
|
-
return new
|
|
342
|
+
return new Lt(t, this.network, this.chain, e, n);
|
|
336
343
|
}
|
|
337
344
|
}
|
|
338
|
-
U(
|
|
345
|
+
U(Ot, "CCTPExecutor", he);
|
|
339
346
|
class ge {
|
|
340
347
|
constructor(t, e, n, a) {
|
|
341
348
|
c(this, "network");
|
|
@@ -364,7 +371,7 @@ class ge {
|
|
|
364
371
|
const a = new te(t).toString(), r = e.address.toUniversalAddress().toUint8Array(), i = n.remainingAmount + n.referrerFee, o = y.get(this.network, this.chain), d = L.getTokenImplementation(this.provider, o);
|
|
365
372
|
if (await d.allowance(a, this.shimContract) < i) {
|
|
366
373
|
const w = await d.approve.populateTransaction(this.shimContract, i);
|
|
367
|
-
yield this.createUnsignedTx(
|
|
374
|
+
yield this.createUnsignedTx(T(w, a), "ERC20.approve of EvmCCTPExecutor", !1);
|
|
368
375
|
}
|
|
369
376
|
const m = [
|
|
370
377
|
"function depositForBurn(uint256 amount, uint16 destinationChain, uint32 destinationDomain, bytes32 mintRecipient, address burnToken, (address refundAddress, bytes signedQuote, bytes instructions) executorArgs, (uint16 dbps, address payee) feeArgs) external payable returns (uint64 nonce)"
|
|
@@ -376,13 +383,13 @@ class ge {
|
|
|
376
383
|
dbps: n.referrerFeeDbps,
|
|
377
384
|
payee: ((g = (h = n.referrer) == null ? void 0 : h.address) == null ? void 0 : g.toString()) ?? a
|
|
378
385
|
});
|
|
379
|
-
l.value = n.estimatedCost, yield this.createUnsignedTx(
|
|
386
|
+
l.value = n.estimatedCost, yield this.createUnsignedTx(T(l, a), "EvmCCTPExecutor.depositForBurn");
|
|
380
387
|
}
|
|
381
388
|
createUnsignedTx(t, e, n = !1) {
|
|
382
|
-
return new
|
|
389
|
+
return new at(Qe(t, this.chainId), this.network, this.chain, e, n);
|
|
383
390
|
}
|
|
384
391
|
}
|
|
385
|
-
const { amountItem: z, circleDomainItem: $e, universalAddressItem:
|
|
392
|
+
const { amountItem: z, circleDomainItem: $e, universalAddressItem: S } = nn, ct = {
|
|
386
393
|
binary: "uint",
|
|
387
394
|
size: 4,
|
|
388
395
|
custom: 1,
|
|
@@ -395,10 +402,10 @@ const { amountItem: z, circleDomainItem: $e, universalAddressItem: T } = nn, ct
|
|
|
395
402
|
size: 4
|
|
396
403
|
}, mn = [
|
|
397
404
|
{ name: "version", ...ct },
|
|
398
|
-
{ name: "burnToken", ...
|
|
399
|
-
{ name: "mintRecipient", ...
|
|
405
|
+
{ name: "burnToken", ...S },
|
|
406
|
+
{ name: "mintRecipient", ...S },
|
|
400
407
|
{ name: "amount", ...z },
|
|
401
|
-
{ name: "messageSender", ...
|
|
408
|
+
{ name: "messageSender", ...S },
|
|
402
409
|
{ name: "maxFee", ...z },
|
|
403
410
|
{ name: "feeExecuted", ...z },
|
|
404
411
|
{ name: "expirationBlock", ...z },
|
|
@@ -408,9 +415,9 @@ const { amountItem: z, circleDomainItem: $e, universalAddressItem: T } = nn, ct
|
|
|
408
415
|
{ name: "sourceDomain", ...$e },
|
|
409
416
|
{ name: "destinationDomain", ...$e },
|
|
410
417
|
{ name: "nonce", ...un },
|
|
411
|
-
{ name: "sender", ...
|
|
412
|
-
{ name: "recipient", ...
|
|
413
|
-
{ name: "destinationCaller", ...
|
|
418
|
+
{ name: "sender", ...S },
|
|
419
|
+
{ name: "recipient", ...S },
|
|
420
|
+
{ name: "destinationCaller", ...S },
|
|
414
421
|
{ name: "minFinalityThreshold", ...Re },
|
|
415
422
|
{ name: "finalityThresholdExecuted", ...Re },
|
|
416
423
|
{ name: "messageBody", binary: "bytes", layout: mn }
|
|
@@ -518,7 +525,7 @@ class pe {
|
|
|
518
525
|
const a = new te(t).toString(), r = e.address.toUniversalAddress().toUint8Array(), i = n.remainingAmount + n.referrerFee, o = L.getTokenImplementation(this.provider, this.usdcContract);
|
|
519
526
|
if (await o.allowance(a, this.shimContract) < i) {
|
|
520
527
|
const C = await o.approve.populateTransaction(this.shimContract, i);
|
|
521
|
-
yield this.createUnsignedTx(
|
|
528
|
+
yield this.createUnsignedTx(T(C, a), "ERC20.approve of EvmCCTPv2Executor", !1);
|
|
522
529
|
}
|
|
523
530
|
const u = [
|
|
524
531
|
"function depositForBurn(uint256 amount, uint16 destinationChain, uint32 destinationDomain, bytes32 mintRecipient, address burnToken, bytes32 destinationCaller, uint256 maxFee, uint32 minFinalityThreshold, (address refundAddress, bytes signedQuote, bytes instructions) executorArgs, (uint16 dbps, address payee) feeArgs) external payable returns (uint64 nonce)"
|
|
@@ -530,20 +537,20 @@ class pe {
|
|
|
530
537
|
dbps: n.referrerFeeDbps,
|
|
531
538
|
payee: ((w = (g = n.referrer) == null ? void 0 : g.address) == null ? void 0 : w.toString()) ?? a
|
|
532
539
|
});
|
|
533
|
-
h.value = n.estimatedCost, yield this.createUnsignedTx(
|
|
540
|
+
h.value = n.estimatedCost, yield this.createUnsignedTx(T(h, a), "EvmCCTPv2Executor.depositForBurn");
|
|
534
541
|
}
|
|
535
542
|
async isTransferCompleted(t) {
|
|
536
543
|
return await new N(this.messageTransmitter, ["function usedNonces(bytes32) public view returns (uint256)"], this.provider).getFunction("usedNonces").staticCall(t.nonce) === 1n;
|
|
537
544
|
}
|
|
538
545
|
async *redeem(t, e, n) {
|
|
539
546
|
const a = new te(t).toString(), i = await new N(this.messageTransmitter, ["function receiveMessage(bytes message, bytes attestation)"], this.provider).getFunction("receiveMessage").populateTransaction(ln(e), k.decode(n));
|
|
540
|
-
yield this.createUnsignedTx(
|
|
547
|
+
yield this.createUnsignedTx(T(i, a), "MessageTransmitterV2.receiveMessage");
|
|
541
548
|
}
|
|
542
549
|
async getCurrentBlock() {
|
|
543
550
|
return BigInt(await this.provider.getBlockNumber());
|
|
544
551
|
}
|
|
545
552
|
createUnsignedTx(t, e, n = !1) {
|
|
546
|
-
return new
|
|
553
|
+
return new at(Qe(t, this.chainId), this.network, this.chain, e, n);
|
|
547
554
|
}
|
|
548
555
|
}
|
|
549
556
|
U(je, "CCTPExecutor", ge);
|
|
@@ -571,17 +578,17 @@ class we {
|
|
|
571
578
|
return h;
|
|
572
579
|
};
|
|
573
580
|
this.usdcId = r(y.get(this.network, this.chain), `No USDC contract configured for network=${this.network} chain=${this.chain}`);
|
|
574
|
-
const { tokenMessengerState: i, messageTransmitterState: o, usdcTreasury: d } =
|
|
581
|
+
const { tokenMessengerState: i, messageTransmitterState: o, usdcTreasury: d } = qt(t);
|
|
575
582
|
this.usdcTreasuryId = d, this.tokenMessengerId = r((u = a.cctp) == null ? void 0 : u.tokenMessenger, `Circle Token Messenger contract for domain ${e} not found`), this.messageTransmitterId = r((m = a.cctp) == null ? void 0 : m.messageTransmitter, `Circle Message Transmitter contract for domain ${e} not found`), this.tokenMessengerStateId = i, this.messageTransmitterStateId = o, this.executorId = r((f = ze[t]) == null ? void 0 : f.executorId, `Executor contract for ${t} not found`), this.executorRequestsId = r((l = ze[t]) == null ? void 0 : l.executorRequestsId, `Executor requests contract for ${t} not found`);
|
|
576
583
|
}
|
|
577
584
|
static async fromRpc(t, e) {
|
|
578
|
-
const [n, a] = await
|
|
585
|
+
const [n, a] = await Ve.chainFromRpc(t), r = e[a];
|
|
579
586
|
if (r.network !== n)
|
|
580
587
|
throw new Error(`Network mismatch: ${r.network} != ${n}`);
|
|
581
588
|
return new we(n, a, t, r.contracts);
|
|
582
589
|
}
|
|
583
590
|
async *transfer(t, e, n) {
|
|
584
|
-
const a = new
|
|
591
|
+
const a = new Qt(), r = new Kt(t).unwrap(), i = j.get(this.network, e.chain), [o, ...d] = await Ve.getCoins(this.provider, t, this.usdcId);
|
|
585
592
|
if (o === void 0)
|
|
586
593
|
throw new Error("No USDC in wallet");
|
|
587
594
|
const u = a.object(o.coinObjectId);
|
|
@@ -592,7 +599,7 @@ class we {
|
|
|
592
599
|
n.remainingAmount,
|
|
593
600
|
n.referrerFee
|
|
594
601
|
]);
|
|
595
|
-
m = p, a.transferObjects([D], n.referrer ?
|
|
602
|
+
m = p, a.transferObjects([D], n.referrer ? Mt(n.referrer) : r);
|
|
596
603
|
} else {
|
|
597
604
|
const [p] = a.splitCoins(u, [
|
|
598
605
|
n.remainingAmount
|
|
@@ -633,7 +640,7 @@ class we {
|
|
|
633
640
|
target: `${this.executorId}::executor::request_execution`,
|
|
634
641
|
arguments: [
|
|
635
642
|
C,
|
|
636
|
-
a.object(
|
|
643
|
+
a.object(Wt),
|
|
637
644
|
a.pure.u16(x(e.chain)),
|
|
638
645
|
a.pure.address("0x0"),
|
|
639
646
|
a.pure.address(r),
|
|
@@ -644,10 +651,10 @@ class we {
|
|
|
644
651
|
}), yield this.createUnsignedTx(a, "SuiCCTPExecutor.Transfer");
|
|
645
652
|
}
|
|
646
653
|
createUnsignedTx(t, e, n = !1) {
|
|
647
|
-
return new
|
|
654
|
+
return new Ht(t, this.network, this.chain, e, n);
|
|
648
655
|
}
|
|
649
656
|
}
|
|
650
|
-
U(
|
|
657
|
+
U(jt, "CCTPExecutor", we);
|
|
651
658
|
const X = new E("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
|
652
659
|
new E("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
|
|
653
660
|
const Ce = new E("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
|
@@ -681,13 +688,13 @@ function An(s, t, e) {
|
|
|
681
688
|
return s;
|
|
682
689
|
}
|
|
683
690
|
const yn = qe([
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
+
Me("mintAuthorityOption"),
|
|
692
|
+
Ie("mintAuthority"),
|
|
693
|
+
Ke("supply"),
|
|
694
|
+
He("decimals"),
|
|
695
|
+
It("isInitialized"),
|
|
696
|
+
Me("freezeAuthorityOption"),
|
|
697
|
+
Ie("freezeAuthority")
|
|
691
698
|
]);
|
|
692
699
|
yn.span;
|
|
693
700
|
function Ne(s, t, e = !1, n = X, a = Ce) {
|
|
@@ -705,17 +712,17 @@ function Dn(s, t, e, n, a, r = X, i = Ce) {
|
|
|
705
712
|
{ pubkey: t, isSigner: !1, isWritable: !0 },
|
|
706
713
|
{ pubkey: e, isSigner: !1, isWritable: !1 },
|
|
707
714
|
{ pubkey: n, isSigner: !1, isWritable: !1 },
|
|
708
|
-
{ pubkey:
|
|
715
|
+
{ pubkey: kt.programId, isSigner: !1, isWritable: !1 },
|
|
709
716
|
{ pubkey: r, isSigner: !1, isWritable: !1 }
|
|
710
717
|
];
|
|
711
|
-
return new
|
|
718
|
+
return new Xe({
|
|
712
719
|
keys: o,
|
|
713
720
|
programId: i,
|
|
714
721
|
data: a
|
|
715
722
|
});
|
|
716
723
|
}
|
|
717
|
-
const _e = qe([
|
|
718
|
-
function
|
|
724
|
+
const _e = qe([He("instruction"), Ke("amount")]);
|
|
725
|
+
function Fn(s, t, e, n, a = [], r = X) {
|
|
719
726
|
const i = An([
|
|
720
727
|
{ pubkey: s, isSigner: !1, isWritable: !0 },
|
|
721
728
|
{ pubkey: t, isSigner: !1, isWritable: !0 }
|
|
@@ -723,9 +730,9 @@ function vn(s, t, e, n, a = [], r = X) {
|
|
|
723
730
|
return _e.encode({
|
|
724
731
|
instruction: ie.Transfer,
|
|
725
732
|
amount: BigInt(n)
|
|
726
|
-
}, o), new
|
|
733
|
+
}, o), new Xe({ keys: i, programId: r, data: o });
|
|
727
734
|
}
|
|
728
|
-
const
|
|
735
|
+
const vn = {
|
|
729
736
|
version: "0.1.0",
|
|
730
737
|
name: "example_cctp_with_executor",
|
|
731
738
|
instructions: [
|
|
@@ -816,23 +823,23 @@ class be {
|
|
|
816
823
|
this.tokenMessengerProgramId = r((i = a.cctp) == null ? void 0 : i.tokenMessenger, `Circle Token Messenger contract for domain ${e} not found`), this.messageTransmitterProgramId = r((o = a.cctp) == null ? void 0 : o.messageTransmitter, `Circle Message Transmitter contract for domain ${e} not found`), this.shimProgramId = r((d = le[t]) == null ? void 0 : d[e], `Shim contract for ${e} not found`), this.executorProgramId = r(an[t], `Executor contract for ${t} not found`);
|
|
817
824
|
}
|
|
818
825
|
static async fromRpc(t, e) {
|
|
819
|
-
const [n, a] = await
|
|
826
|
+
const [n, a] = await Jt.chainFromRpc(t), r = e[a];
|
|
820
827
|
if (r.network !== n)
|
|
821
828
|
throw new Error(`Network mismatch: ${r.network} != ${n}`);
|
|
822
829
|
return new be(n, a, t, r.contracts);
|
|
823
830
|
}
|
|
824
831
|
async *transfer(t, e, n) {
|
|
825
832
|
var w, C;
|
|
826
|
-
const a = new E(y.get(this.network, this.chain)), r = new ne(t).unwrap(), i = Ne(a, r), o = new ne(((C = (w = n.referrer) == null ? void 0 : w.address) == null ? void 0 : C.toString()) ?? r).unwrap(), d = new
|
|
833
|
+
const a = new E(y.get(this.network, this.chain)), r = new ne(t).unwrap(), i = Ne(a, r), o = new ne(((C = (w = n.referrer) == null ? void 0 : w.address) == null ? void 0 : C.toString()) ?? r).unwrap(), d = new Ut();
|
|
827
834
|
if (d.feePayer = r, n.referrerFee > 0n) {
|
|
828
835
|
const p = Ne(a, o, !0);
|
|
829
|
-
await this.connection.getAccountInfo(p) || d.add(xn(r, p, o, a)), d.add(
|
|
836
|
+
await this.connection.getAccountInfo(p) || d.add(xn(r, p, o, a)), d.add(Fn(i, p, r, n.referrerFee));
|
|
830
837
|
}
|
|
831
|
-
const u = j.get(this.network, e.chain), m = e.address.toUniversalAddress(), f =
|
|
832
|
-
d.add(await
|
|
833
|
-
const l = new
|
|
838
|
+
const u = j.get(this.network, e.chain), m = e.address.toUniversalAddress(), f = Vt.generate();
|
|
839
|
+
d.add(await Xt(this.messageTransmitterProgramId, this.tokenMessengerProgramId, a, u, r, i, m, n.remainingAmount, f.publicKey));
|
|
840
|
+
const l = new Zt(vn, this.shimProgramId, { connection: null }), h = q(mt, n.signedQuote), g = en("message_transmitter", this.messageTransmitterProgramId);
|
|
834
841
|
d.add(await l.methods.relayLastMessage({
|
|
835
|
-
execAmount: new
|
|
842
|
+
execAmount: new zt(n.estimatedCost.toString()),
|
|
836
843
|
recipientChain: x(e.chain),
|
|
837
844
|
signedQuoteBytes: O.Buffer.from(n.signedQuote),
|
|
838
845
|
relayInstructions: O.Buffer.from(n.relayInstructions)
|
|
@@ -844,10 +851,10 @@ class be {
|
|
|
844
851
|
}).instruction()), yield this.createUnsignedTx({ transaction: d, signers: [f] }, "SvmCCTPExecutor.Transfer");
|
|
845
852
|
}
|
|
846
853
|
createUnsignedTx(t, e, n = !1) {
|
|
847
|
-
return new
|
|
854
|
+
return new Yt(t, this.network, this.chain, e, n);
|
|
848
855
|
}
|
|
849
856
|
}
|
|
850
|
-
U(
|
|
857
|
+
U($t, "CCTPExecutor", be);
|
|
851
858
|
var b;
|
|
852
859
|
(function(s) {
|
|
853
860
|
s.Pending = "pending", s.Failed = "failed", s.Unsupported = "unsupported", s.Submitted = "submitted", s.Underpaid = "underpaid", s.Aborted = "aborted";
|
|
@@ -859,15 +866,15 @@ var Oe;
|
|
|
859
866
|
async function Bn(s) {
|
|
860
867
|
const t = `${fe[s]}/v0/capabilities`;
|
|
861
868
|
try {
|
|
862
|
-
return (await
|
|
869
|
+
return (await v.get(t)).data;
|
|
863
870
|
} catch {
|
|
864
871
|
throw new Error(`Failed to fetch capabilities for network: ${s}.`);
|
|
865
872
|
}
|
|
866
873
|
}
|
|
867
|
-
async function
|
|
874
|
+
async function Sn(s, t, e, n) {
|
|
868
875
|
const a = `${fe[s]}/v0/quote`;
|
|
869
876
|
try {
|
|
870
|
-
return (await
|
|
877
|
+
return (await v.post(a, {
|
|
871
878
|
srcChain: x(t),
|
|
872
879
|
dstChain: x(e),
|
|
873
880
|
relayInstructions: n
|
|
@@ -879,7 +886,7 @@ async function Tn(s, t, e, n) {
|
|
|
879
886
|
async function Ee(s, t, e) {
|
|
880
887
|
const n = `${fe[s]}/v0/status/tx`;
|
|
881
888
|
try {
|
|
882
|
-
return (await
|
|
889
|
+
return (await v.post(n, {
|
|
883
890
|
txHash: t,
|
|
884
891
|
chainId: x(e)
|
|
885
892
|
})).data;
|
|
@@ -887,14 +894,14 @@ async function Ee(s, t, e) {
|
|
|
887
894
|
throw new Error(`Failed to fetch status for txHash: ${t}.`);
|
|
888
895
|
}
|
|
889
896
|
}
|
|
890
|
-
const
|
|
897
|
+
const Tn = 65535n;
|
|
891
898
|
function Pn(s, t, e) {
|
|
892
|
-
if (t >
|
|
899
|
+
if (t > Tn)
|
|
893
900
|
throw new Error("dBps exceeds max u16");
|
|
894
901
|
let n = t, a = s, r = 0n;
|
|
895
902
|
if (t > 0) {
|
|
896
903
|
if (e !== void 0 && s > 0) {
|
|
897
|
-
const i =
|
|
904
|
+
const i = Je(e.toString(), 6), o = ue(i) / s, d = t < o ? t : o;
|
|
898
905
|
r = s * d / 100000n, n = d;
|
|
899
906
|
} else
|
|
900
907
|
r = s * t / 100000n;
|
|
@@ -902,16 +909,16 @@ function Pn(s, t, e) {
|
|
|
902
909
|
}
|
|
903
910
|
return { referrerFee: r, remainingAmount: a, referrerFeeDbps: n };
|
|
904
911
|
}
|
|
905
|
-
function
|
|
912
|
+
function Mn(s) {
|
|
906
913
|
return new Promise((t) => setTimeout(t, s));
|
|
907
914
|
}
|
|
908
|
-
async function oe(s, t, e =
|
|
915
|
+
async function oe(s, t, e = Ze) {
|
|
909
916
|
const n = Q(t, s.chain);
|
|
910
917
|
return Ye(async () => {
|
|
911
918
|
var r;
|
|
912
919
|
const a = `${H[t]}/messages/${n}?transactionHash=${s.txid}`;
|
|
913
920
|
try {
|
|
914
|
-
const o = (await
|
|
921
|
+
const o = (await v.get(a)).data.messages[0];
|
|
915
922
|
if (!o)
|
|
916
923
|
return null;
|
|
917
924
|
if (o.cctpVersion !== 2)
|
|
@@ -921,18 +928,18 @@ async function oe(s, t, e = Xe) {
|
|
|
921
928
|
attestation: o.attestation
|
|
922
929
|
};
|
|
923
930
|
} catch (i) {
|
|
924
|
-
if (!i || typeof i == "object" && (
|
|
931
|
+
if (!i || typeof i == "object" && (v.isAxiosError(i) && ((r = i.response) == null ? void 0 : r.status) === 404 || "status" in i && i.status === 404))
|
|
925
932
|
return null;
|
|
926
933
|
throw i;
|
|
927
934
|
}
|
|
928
935
|
}, 2e3, e, "CCTPv2:GetMessage");
|
|
929
936
|
}
|
|
930
|
-
async function
|
|
931
|
-
const n = Q(s, t), a = Q(s, e), r = `${H[s]}/fastBurn/USDC/fees/${n}/${a}`, i = await
|
|
937
|
+
async function In(s, t, e) {
|
|
938
|
+
const n = Q(s, t), a = Q(s, e), r = `${H[s]}/fastBurn/USDC/fees/${n}/${a}`, i = await v.get(r);
|
|
932
939
|
return BigInt(i.data.minimumFee);
|
|
933
940
|
}
|
|
934
941
|
async function kn(s, t) {
|
|
935
|
-
const e = k.encode(t.attestation.message.nonce, !0), n = `${H[s]}/reattest/${e}`, a = await
|
|
942
|
+
const e = k.encode(t.attestation.message.nonce, !0), n = `${H[s]}/reattest/${e}`, a = await v.post(n);
|
|
936
943
|
if (a.data.error) {
|
|
937
944
|
if (a.data.error.includes("Message is already finalized"))
|
|
938
945
|
return t.attestation;
|
|
@@ -942,22 +949,22 @@ async function kn(s, t) {
|
|
|
942
949
|
return Ye(async () => {
|
|
943
950
|
const i = await oe({ txid: t.id, chain: r }, s);
|
|
944
951
|
return !i || i.message.messageBody.expirationBlock !== 0n ? null : i;
|
|
945
|
-
}, 2e3,
|
|
952
|
+
}, 2e3, Ze, "CCTPv2:Reattest");
|
|
946
953
|
}
|
|
947
954
|
async function Un(s) {
|
|
948
|
-
const t = `${H[s]}/fastBurn/USDC/allowance`, e = await
|
|
949
|
-
return ue(
|
|
955
|
+
const t = `${H[s]}/fastBurn/USDC/allowance`, e = await v.get(t);
|
|
956
|
+
return ue(Je(e.data.allowance, 6));
|
|
950
957
|
}
|
|
951
958
|
function Ae(s, t, e) {
|
|
952
959
|
const n = y.get(t.network, t.chain);
|
|
953
|
-
if (!(n &&
|
|
960
|
+
if (!(n && Rt(s, B.tokenId(t.chain, n))))
|
|
954
961
|
return [];
|
|
955
962
|
const { network: a, chain: r } = e, i = y.get(a, r);
|
|
956
963
|
return i ? [B.chainAddress(r, i)] : [];
|
|
957
964
|
}
|
|
958
965
|
let $;
|
|
959
966
|
async function ye(s, t, e, n) {
|
|
960
|
-
var Be,
|
|
967
|
+
var Be, Se, Te;
|
|
961
968
|
const { fromChain: a, toChain: r } = s;
|
|
962
969
|
if (!y.get(a.network, a.chain))
|
|
963
970
|
throw new Error("Invalid transfer, no USDC contract on source");
|
|
@@ -965,12 +972,12 @@ async function ye(s, t, e, n) {
|
|
|
965
972
|
if (!o)
|
|
966
973
|
throw new Error("Invalid transfer, no USDC contract on destination");
|
|
967
974
|
let d;
|
|
968
|
-
if (e.referrerFeeDbps > 0n && (d = (
|
|
975
|
+
if (e.referrerFeeDbps > 0n && (d = (Se = (Be = e.referrerAddresses) == null ? void 0 : Be[a.network]) == null ? void 0 : Se[a.chain], !d))
|
|
969
976
|
throw new Error(`Referrer address not configured for ${a.chain}`);
|
|
970
977
|
const u = d ? B.chainAddress(a.chain, d) : void 0, { referrerFee: m, remainingAmount: f, referrerFeeDbps: l } = Pn(ue(t.normalizedParams.amount), e.referrerFeeDbps, e.referrerFeeThreshold);
|
|
971
978
|
if (f <= 0n)
|
|
972
979
|
throw new Error("Amount after fee <= 0");
|
|
973
|
-
const h = (
|
|
980
|
+
const h = (Te = on[r.network]) == null ? void 0 : Te[r.chain];
|
|
974
981
|
if (!h)
|
|
975
982
|
throw new Error("Gas limit not found");
|
|
976
983
|
const g = await Bn(a.network);
|
|
@@ -987,41 +994,41 @@ async function ye(s, t, e, n) {
|
|
|
987
994
|
}
|
|
988
995
|
let Z = 0n;
|
|
989
996
|
r.chain === "Solana" && (Z += rn, !D && $ && (Z += $));
|
|
990
|
-
const
|
|
991
|
-
|
|
997
|
+
const J = [];
|
|
998
|
+
J.push({
|
|
992
999
|
request: {
|
|
993
1000
|
type: "GasInstruction",
|
|
994
1001
|
gasLimit: h,
|
|
995
1002
|
msgValue: Z
|
|
996
1003
|
}
|
|
997
1004
|
});
|
|
998
|
-
const De = BigInt(C.gasDropOffLimit),
|
|
999
|
-
(
|
|
1005
|
+
const De = BigInt(C.gasDropOffLimit), Y = t.options.nativeGas && De > 0n ? BigInt(Math.round(t.options.nativeGas * 100)) * De / 100n : 0n;
|
|
1006
|
+
(Y > 0n || !D) && J.push({
|
|
1000
1007
|
request: {
|
|
1001
1008
|
type: "GasDropOffInstruction",
|
|
1002
|
-
dropOff:
|
|
1009
|
+
dropOff: Y,
|
|
1003
1010
|
// If the recipient is undefined (e.g. the user hasn’t connected their wallet yet),
|
|
1004
1011
|
// we temporarily use a dummy address to fetch a quote.
|
|
1005
1012
|
// The recipient address is validated later in the `initiate` method, which will throw if it's still missing.
|
|
1006
|
-
recipient: p ? p.address.toUniversalAddress() : new
|
|
1013
|
+
recipient: p ? p.address.toUniversalAddress() : new Nt(new Uint8Array(32))
|
|
1007
1014
|
}
|
|
1008
1015
|
});
|
|
1009
|
-
const
|
|
1010
|
-
requests:
|
|
1011
|
-
}), ee = await
|
|
1016
|
+
const Fe = We(ut, {
|
|
1017
|
+
requests: J
|
|
1018
|
+
}), ee = await Sn(a.network, a.chain, r.chain, k.encode(Fe, !0));
|
|
1012
1019
|
if (!ee.estimatedCost)
|
|
1013
1020
|
throw new Error("No estimated cost");
|
|
1014
|
-
const
|
|
1021
|
+
const ve = k.decode(ee.signedQuote), lt = q(mt, ve), ht = BigInt(ee.estimatedCost);
|
|
1015
1022
|
return {
|
|
1016
|
-
signedQuote:
|
|
1017
|
-
relayInstructions:
|
|
1023
|
+
signedQuote: ve,
|
|
1024
|
+
relayInstructions: Fe,
|
|
1018
1025
|
estimatedCost: ht,
|
|
1019
1026
|
referrer: u,
|
|
1020
1027
|
referrerFee: m,
|
|
1021
1028
|
remainingAmount: f,
|
|
1022
1029
|
referrerFeeDbps: l,
|
|
1023
1030
|
expiryTime: lt.quote.expiryTime,
|
|
1024
|
-
gasDropOff:
|
|
1031
|
+
gasDropOff: Y
|
|
1025
1032
|
};
|
|
1026
1033
|
}
|
|
1027
1034
|
async function ft(s, t, e, n) {
|
|
@@ -1032,7 +1039,7 @@ async function ft(s, t, e, n) {
|
|
|
1032
1039
|
const r = B.parseAddress(t.chain(), t.address()), i = await Vn(e, s);
|
|
1033
1040
|
let o;
|
|
1034
1041
|
n.protocol === "CCTPExecutor" ? o = await (await s.fromChain.getProtocol(n.protocol)).transfer(r, i, n.details) : o = await (await s.fromChain.getProtocol(n.protocol)).transfer(r, i, n.details);
|
|
1035
|
-
const d = await
|
|
1042
|
+
const d = await et(s.fromChain, o, t);
|
|
1036
1043
|
let u = 0;
|
|
1037
1044
|
return (async () => {
|
|
1038
1045
|
for (; u < 20; ) {
|
|
@@ -1042,7 +1049,7 @@ async function ft(s, t, e, n) {
|
|
|
1042
1049
|
break;
|
|
1043
1050
|
} catch {
|
|
1044
1051
|
}
|
|
1045
|
-
u++, await
|
|
1052
|
+
u++, await Mn(2e3);
|
|
1046
1053
|
}
|
|
1047
1054
|
})(), {
|
|
1048
1055
|
from: s.fromChain.chain,
|
|
@@ -1060,14 +1067,14 @@ async function Vn(s, t) {
|
|
|
1060
1067
|
const n = B.parseAddress("Solana", e);
|
|
1061
1068
|
return t.toChain.getTokenAccount(s.address, n);
|
|
1062
1069
|
}
|
|
1063
|
-
function
|
|
1070
|
+
function ts(s = { referrerFeeDbps: 0n }) {
|
|
1064
1071
|
if (s.referrerFeeDbps < 0 || s.referrerFeeDbps > 65535n)
|
|
1065
1072
|
throw new Error("Referrer fee must be between 0 and 65535");
|
|
1066
1073
|
class t extends _ {
|
|
1067
1074
|
}
|
|
1068
1075
|
return c(t, "config", s), t;
|
|
1069
1076
|
}
|
|
1070
|
-
class _ extends
|
|
1077
|
+
class _ extends tt {
|
|
1071
1078
|
constructor() {
|
|
1072
1079
|
super(...arguments);
|
|
1073
1080
|
// @ts-ignore
|
|
@@ -1111,7 +1118,7 @@ class _ extends et {
|
|
|
1111
1118
|
async quote(e, n) {
|
|
1112
1119
|
const { fromChain: a, toChain: r } = e;
|
|
1113
1120
|
try {
|
|
1114
|
-
const i = await ye(e, n, this.staticConfig, "ERC1"), { remainingAmount: o, estimatedCost: d, gasDropOff: u, expiryTime: m } = i, f = a.chain === "Polygon" ? 2e3 * 200 :
|
|
1121
|
+
const i = await ye(e, n, this.staticConfig, "ERC1"), { remainingAmount: o, estimatedCost: d, gasDropOff: u, expiryTime: m } = i, f = a.chain === "Polygon" ? 2e3 * 200 : nt(a.chain) + 1e3, [l, h] = await Promise.all([
|
|
1115
1122
|
a.getDecimals("native"),
|
|
1116
1123
|
r.getDecimals("native")
|
|
1117
1124
|
]);
|
|
@@ -1124,13 +1131,13 @@ class _ extends et {
|
|
|
1124
1131
|
},
|
|
1125
1132
|
destinationToken: {
|
|
1126
1133
|
token: e.destination.id,
|
|
1127
|
-
amount:
|
|
1134
|
+
amount: F(o, e.destination.decimals)
|
|
1128
1135
|
},
|
|
1129
1136
|
relayFee: {
|
|
1130
1137
|
token: me(a.chain),
|
|
1131
|
-
amount:
|
|
1138
|
+
amount: F(d, l)
|
|
1132
1139
|
},
|
|
1133
|
-
destinationNativeGas:
|
|
1140
|
+
destinationNativeGas: F(u, h),
|
|
1134
1141
|
eta: f,
|
|
1135
1142
|
expires: m,
|
|
1136
1143
|
details: i
|
|
@@ -1168,7 +1175,7 @@ class _ extends et {
|
|
|
1168
1175
|
o === b.Aborted) && (e = {
|
|
1169
1176
|
...e,
|
|
1170
1177
|
state: A.Failed,
|
|
1171
|
-
error: new
|
|
1178
|
+
error: new st(`Relay failed with status: ${o}`)
|
|
1172
1179
|
}), o === b.Submitted && (e = {
|
|
1173
1180
|
...e,
|
|
1174
1181
|
state: A.DestinationFinalized,
|
|
@@ -1187,7 +1194,7 @@ c(_, "NATIVE_GAS_DROPOFF_SUPPORTED", !0), c(_, "config", { referrerFeeDbps: 0n }
|
|
|
1187
1194
|
name: "CCTPExecutorRoute",
|
|
1188
1195
|
provider: "Circle CCTP"
|
|
1189
1196
|
});
|
|
1190
|
-
class xe extends
|
|
1197
|
+
class xe extends tt {
|
|
1191
1198
|
static supportedNetworks() {
|
|
1192
1199
|
return ["Mainnet", "Testnet"];
|
|
1193
1200
|
}
|
|
@@ -1241,7 +1248,7 @@ class xe extends et {
|
|
|
1241
1248
|
o === b.Aborted) && (t = {
|
|
1242
1249
|
...t,
|
|
1243
1250
|
state: A.Failed,
|
|
1244
|
-
error: new
|
|
1251
|
+
error: new st(`Relay failed with status: ${o}`)
|
|
1245
1252
|
});
|
|
1246
1253
|
}
|
|
1247
1254
|
if (P(t)) {
|
|
@@ -1277,7 +1284,7 @@ class xe extends et {
|
|
|
1277
1284
|
throw new Error("Failed to reattest message");
|
|
1278
1285
|
r = l.attestation, i = l.message;
|
|
1279
1286
|
}
|
|
1280
|
-
const u = B.parseAddress(t.chain(), t.address()), m = a.redeem(u, i, r), f = await
|
|
1287
|
+
const u = B.parseAddress(t.chain(), t.address()), m = a.redeem(u, i, r), f = await et(this.wh.getChain(e.to), m, t);
|
|
1281
1288
|
return {
|
|
1282
1289
|
...e,
|
|
1283
1290
|
state: A.DestinationInitiated,
|
|
@@ -1306,14 +1313,14 @@ class xe extends et {
|
|
|
1306
1313
|
}
|
|
1307
1314
|
}
|
|
1308
1315
|
c(xe, "NATIVE_GAS_DROPOFF_SUPPORTED", !0);
|
|
1309
|
-
function
|
|
1316
|
+
function ns(s = { referrerFeeDbps: 0n }) {
|
|
1310
1317
|
if (s.referrerFeeDbps < 0 || s.referrerFeeDbps > 65535n)
|
|
1311
1318
|
throw new Error("Referrer fee must be between 0 and 65535");
|
|
1312
1319
|
class t extends ce {
|
|
1313
1320
|
}
|
|
1314
1321
|
return c(t, "config", s), t;
|
|
1315
1322
|
}
|
|
1316
|
-
const
|
|
1323
|
+
const M = class M extends xe {
|
|
1317
1324
|
constructor() {
|
|
1318
1325
|
super(...arguments);
|
|
1319
1326
|
// @ts-ignore
|
|
@@ -1329,7 +1336,7 @@ const I = class I extends xe {
|
|
|
1329
1336
|
}
|
|
1330
1337
|
async validate(e, n) {
|
|
1331
1338
|
var r;
|
|
1332
|
-
return
|
|
1339
|
+
return M.isPathSupported(e.fromChain, e.toChain) ? (r = n.options) != null && r.nativeGas && (n.options.nativeGas < 0 || n.options.nativeGas > 1) ? {
|
|
1333
1340
|
valid: !1,
|
|
1334
1341
|
error: new Error("Invalid native gas percentage"),
|
|
1335
1342
|
params: n
|
|
@@ -1355,7 +1362,7 @@ const I = class I extends xe {
|
|
|
1355
1362
|
success: !1,
|
|
1356
1363
|
error: new Error("Insufficient allowance for fast transfer")
|
|
1357
1364
|
};
|
|
1358
|
-
const h = await
|
|
1365
|
+
const h = await In(a.network, a.chain, r.chain), g = (d * h + 10000n - 1n) / 10000n, w = d - g;
|
|
1359
1366
|
if (w <= 0n)
|
|
1360
1367
|
return {
|
|
1361
1368
|
success: !1,
|
|
@@ -1374,13 +1381,13 @@ const I = class I extends xe {
|
|
|
1374
1381
|
},
|
|
1375
1382
|
destinationToken: {
|
|
1376
1383
|
token: e.destination.id,
|
|
1377
|
-
amount:
|
|
1384
|
+
amount: F(w, e.destination.decimals)
|
|
1378
1385
|
},
|
|
1379
1386
|
relayFee: {
|
|
1380
1387
|
token: me(a.chain),
|
|
1381
|
-
amount:
|
|
1388
|
+
amount: F(u, p)
|
|
1382
1389
|
},
|
|
1383
|
-
destinationNativeGas:
|
|
1390
|
+
destinationNativeGas: F(m, D),
|
|
1384
1391
|
eta: C,
|
|
1385
1392
|
expires: f,
|
|
1386
1393
|
details: {
|
|
@@ -1397,19 +1404,19 @@ const I = class I extends xe {
|
|
|
1397
1404
|
}
|
|
1398
1405
|
}
|
|
1399
1406
|
};
|
|
1400
|
-
c(
|
|
1407
|
+
c(M, "config", { referrerFeeDbps: 0n }), c(M, "meta", {
|
|
1401
1408
|
name: "CCTPv2FastExecutorRoute",
|
|
1402
1409
|
provider: "Circle CCTP"
|
|
1403
1410
|
});
|
|
1404
|
-
let ce =
|
|
1405
|
-
function
|
|
1411
|
+
let ce = M;
|
|
1412
|
+
function ss(s = { referrerFeeDbps: 0n }) {
|
|
1406
1413
|
if (s.referrerFeeDbps < 0 || s.referrerFeeDbps > 65535n)
|
|
1407
1414
|
throw new Error("Referrer fee must be between 0 and 65535");
|
|
1408
1415
|
class t extends de {
|
|
1409
1416
|
}
|
|
1410
1417
|
return c(t, "config", s), t;
|
|
1411
1418
|
}
|
|
1412
|
-
const
|
|
1419
|
+
const I = class I extends xe {
|
|
1413
1420
|
constructor() {
|
|
1414
1421
|
super(...arguments);
|
|
1415
1422
|
// @ts-ignore
|
|
@@ -1427,7 +1434,7 @@ const M = class M extends xe {
|
|
|
1427
1434
|
}
|
|
1428
1435
|
async validate(e, n) {
|
|
1429
1436
|
var r;
|
|
1430
|
-
return
|
|
1437
|
+
return I.isPathSupported(e.fromChain, e.toChain) ? (r = n.options) != null && r.nativeGas && (n.options.nativeGas < 0 || n.options.nativeGas > 1) ? {
|
|
1431
1438
|
valid: !1,
|
|
1432
1439
|
error: new Error("Invalid native gas percentage"),
|
|
1433
1440
|
params: n
|
|
@@ -1446,7 +1453,7 @@ const M = class M extends xe {
|
|
|
1446
1453
|
async quote(e, n) {
|
|
1447
1454
|
const { fromChain: a, toChain: r } = e;
|
|
1448
1455
|
try {
|
|
1449
|
-
const i = await ye(e, n, this.staticConfig, "ERC2"), { remainingAmount: o, estimatedCost: d, gasDropOff: u, expiryTime: m } = i, f = a.chain === "Polygon" ? 2e3 * 200 :
|
|
1456
|
+
const i = await ye(e, n, this.staticConfig, "ERC2"), { remainingAmount: o, estimatedCost: d, gasDropOff: u, expiryTime: m } = i, f = a.chain === "Polygon" ? 2e3 * 200 : nt(a.chain) + 1e3, [l, h] = await Promise.all([
|
|
1450
1457
|
a.getDecimals("native"),
|
|
1451
1458
|
r.getDecimals("native")
|
|
1452
1459
|
]);
|
|
@@ -1459,13 +1466,13 @@ const M = class M extends xe {
|
|
|
1459
1466
|
},
|
|
1460
1467
|
destinationToken: {
|
|
1461
1468
|
token: e.destination.id,
|
|
1462
|
-
amount:
|
|
1469
|
+
amount: F(o, e.destination.decimals)
|
|
1463
1470
|
},
|
|
1464
1471
|
relayFee: {
|
|
1465
1472
|
token: me(a.chain),
|
|
1466
|
-
amount:
|
|
1473
|
+
amount: F(d, l)
|
|
1467
1474
|
},
|
|
1468
|
-
destinationNativeGas:
|
|
1475
|
+
destinationNativeGas: F(u, h),
|
|
1469
1476
|
eta: f,
|
|
1470
1477
|
expires: m,
|
|
1471
1478
|
details: {
|
|
@@ -1483,15 +1490,15 @@ const M = class M extends xe {
|
|
|
1483
1490
|
}
|
|
1484
1491
|
}
|
|
1485
1492
|
};
|
|
1486
|
-
c(
|
|
1493
|
+
c(I, "config", { referrerFeeDbps: 0n }), c(I, "meta", {
|
|
1487
1494
|
name: "CCTPv2StandardExecutorRoute",
|
|
1488
1495
|
provider: "Circle CCTP"
|
|
1489
1496
|
});
|
|
1490
|
-
let de =
|
|
1491
|
-
const { executorTokenBridgeRoute:
|
|
1497
|
+
let de = I;
|
|
1498
|
+
const { executorTokenBridgeRoute: as } = Gt;
|
|
1492
1499
|
export {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1500
|
+
ts as cctpExecutorRoute,
|
|
1501
|
+
ns as cctpV2FastExecutorRoute,
|
|
1502
|
+
ss as cctpV2StandardExecutorRoute,
|
|
1503
|
+
as as executorTokenBridgeRoute
|
|
1497
1504
|
};
|