@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var B=Object.defineProperty;var I=(i,t,e)=>t in i?B(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var f=(i,t,e)=>I(i,typeof t!="symbol"?t+"":t,e);const g=require("./web3-COTIsLs8.js"),p=require("./unsignedTransaction-C6Qp42VS.js"),F=.5,b=1,E=1,T=1e8,w=5,x=25e4;async function R(i,t,e){const[n,r]=await p.SolanaPlatform.chainFromRpc(i),s=typeof t=="string"?g.Keypair.fromSecretKey(g.b58.decode(t)):t;if(e!=null&&e.priorityFee&&e.priorityFee.percentile&&e.priorityFee.percentile>1)throw new Error("priorityFeePercentile must be a number between 0 and 1");return new A(i,r,s,(e==null?void 0:e.debug)??!1,(e==null?void 0:e.priorityFee)??{},(e==null?void 0:e.retries)??w,e==null?void 0:e.sendOpts)}class A{constructor(t,e,n,r=!1,s,a=w,u){f(this,"_rpc");f(this,"_chain");f(this,"_keypair");f(this,"_debug");f(this,"_priorityFee");f(this,"_maxResubmits");f(this,"_sendOpts");this._rpc=t,this._chain=e,this._keypair=n,this._debug=r,this._priorityFee=s,this._maxResubmits=a,this._sendOpts=u,this._sendOpts=this._sendOpts??{preflightCommitment:this._rpc.commitment}}chain(){return this._chain}address(){return this._keypair.publicKey.toBase58()}retryable(t){var n;if(t instanceof g.TransactionExpiredBlockheightExceededError)return!0;if(!(t instanceof g.SendTransactionError)||!t.message.includes("Transaction simulation failed"))return!1;if(t.message.includes("Blockhash not found"))return!0;const e=(n=t.logs)==null?void 0:n.find(r=>r.startsWith("Program log: Error: "));return e?!!(e.includes("Not enough bytes")||e.includes("Unexpected length of input")):!1}async signAndSend(t){var u;let{blockhash:e,lastValidBlockHeight:n}=await p.SolanaPlatform.latestBlock(this._rpc);const r=[];for(const c of t){const{description:d,transaction:{transaction:o,signers:l}}=c;this._debug&&console.log(`Signing: ${d} for ${this.address()}`);let h;(u=this._priorityFee)!=null&&u.percentile&&this._priorityFee.percentile>0&&(h=await L(this._rpc,o,this._priorityFee.percentile,this._priorityFee.percentileMultiple,this._priorityFee.min,this._priorityFee.max)),this._debug&&M(o);for(let m=0;m<this._maxResubmits;m++)try{if(p.isVersionedTransaction(o)){if(h&&m===0){const y=g.TransactionMessage.decompile(o.message);y.instructions.push(...h),o.message=y.compileToV0Message()}o.message.recentBlockhash=e,o.sign([this._keypair,...l??[]])}else h&&m===0&&o.add(...h),o.recentBlockhash=e,o.lastValidBlockHeight=n,o.partialSign(this._keypair,...l??[]);this._debug&&console.log("Submitting transactions ");const{signature:_}=await p.SolanaPlatform.sendTxWithRetry(this._rpc,o.serialize(),this._sendOpts);r.push(_);break}catch(_){if(m===this._maxResubmits-1||!this.retryable(_))throw _;this._debug&&console.log(`Failed to send transaction on attempt ${m}, retrying: `,_);const{blockhash:y,lastValidBlockHeight:k}=await p.SolanaPlatform.latestBlock(this._rpc);n=k,e=y}}this._debug&&console.log("Waiting for confirmation for: ",r);const a=(await Promise.all(r.map(async c=>{try{return await this._rpc.confirmTransaction({signature:c,blockhash:e,lastValidBlockHeight:n},this._rpc.commitment)}catch(d){throw console.error("Failed to confirm transaction: ",d),d}}))).filter(c=>c.value.err).map(c=>c.value.err);if(a.length>0)throw new Error(`Failed to confirm transaction: ${a}`);return r}}function M(i){if(p.isVersionedTransaction(i)){console.log(i.signatures);const t=i.message,e=t.getAccountKeys();t.compiledInstructions.forEach(n=>{console.log("Program",e.get(n.programIdIndex).toBase58()),console.log("Data: ",g.hex.encode(n.data)),console.log("Keys: ",n.accountKeyIndexes.map(r=>[r,e.get(r).toBase58()]))})}else console.log(i.signatures),console.log(i.feePayer),i.instructions.forEach(t=>{console.log("Program",t.programId.toBase58()),console.log("Data: ",t.data.toString("hex")),console.log("Keys: ",t.keys.map(e=>[e,e.pubkey.toBase58()]))})}async function L(i,t,e=F,n=b,r=E,s=T){const[a,u]=await Promise.all([U(i,t),S(i,t,e,n,r,s)]);return[g.ComputeBudgetProgram.setComputeUnitLimit({units:a}),g.ComputeBudgetProgram.setComputeUnitPrice({microLamports:u})]}async function U(i,t){var n;let e=x;try{const r=await(p.isVersionedTransaction(t),i.simulateTransaction(t));r.value.err&&console.error(`Error simulating Solana transaction: ${r.value.err}`),(n=r==null?void 0:r.value)!=null&&n.unitsConsumed&&(e=Math.round(r.value.unitsConsumed*1.2))}catch(r){console.error(`Failed to calculate compute unit limit for Solana transaction: ${r}`)}return e}async function P(i,t){if(p.isVersionedTransaction(t)){const e=(await Promise.all(t.message.addressTableLookups.map(s=>i.getAddressLookupTable(s.accountKey)))).map(s=>s.value).filter(s=>s!==null),n=t.message,r=n.getAccountKeys({addressLookupTableAccounts:e??void 0});return n.compiledInstructions.flatMap(s=>s.accountKeyIndexes).map(s=>n.isAccountWritable(s)?r.get(s):null).filter(Boolean)}else return t.instructions.flatMap(e=>e.keys).map(e=>e.isWritable?e.pubkey:null).filter(Boolean)}async function S(i,t,e=F,n=b,r=E,s=T){let a=r;const u=await P(i,t);try{const c=await i.getRecentPrioritizationFees({lockedWritableAccounts:u});if(c){const d=c.map(l=>l.prioritizationFee).sort((l,h)=>l-h),o=Math.ceil(d.length*e);if(d.length>o){let l=d[o];n>0&&(l*=n),a=Math.max(a,l)}}}catch(c){console.error("Error fetching Solana recent fees",c)}return Math.min(Math.max(a,r),s)}async function O(i,t,e=F,n=b,r=E,s=T){const a=e*1e4;if(a<1||a>1e4)throw new Error("percentile must be between 0.0001 and 1");const u=i._rpcRequest,d=[await P(i,t),{percentile:a}],o=await u("getRecentPrioritizationFees",d);if(o.error)throw new Error(o.error);const l=o.result.map(m=>m.prioritizationFee);if(l.length===0)return r;const h=Math.floor(g.median(l)*(n>0?n:1));return g.bound(h,r,s)}exports.determinePriorityFee=S;exports.determinePriorityFeeTritonOne=O;exports.getSolanaSignAndSendSigner=R;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Lv = Object.defineProperty;
|
|
2
2
|
var zv = (s, e, t) => e in s ? Lv(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var $t = (s, e, t) => zv(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { E as Fv, P as di, d as S, c as ka, g as qv, aj as bc,
|
|
5
|
-
import { D as Wv,
|
|
4
|
+
import { E as Fv, P as di, d as S, c as ka, g as qv, aj as bc, aR as vc, aM as nw, _ as fl, aP as Bv, H as uh, ch as Hv } from "./web3-DYVeiqSa.mjs";
|
|
5
|
+
import { D as Wv, W as Vv, E as dd, x as pd, B as ja, z as dh, A as Ti, F as Kv } from "./index-BfkFXEnG.mjs";
|
|
6
6
|
import { a as Gv } from "./util--bw7gFPs.mjs";
|
|
7
7
|
import { g as Yv } from "./wallets-B2tqS5lZ.mjs";
|
|
8
|
-
import { i as oc } from "./unsignedTransaction-
|
|
9
|
-
import { d as Qv, a as Zv } from "./signer-
|
|
10
|
-
import { I as js, g as ow, f as et, t as $e, c as N, C as aw, a as rr, b as Fc, d as cw, e as lw, s as Bn, h as Un, k as Di, A as wu, E as Me,
|
|
8
|
+
import { i as oc } from "./unsignedTransaction-CXB-QCUC.mjs";
|
|
9
|
+
import { d as Qv, a as Zv } from "./signer-BIcn81N5.mjs";
|
|
10
|
+
import { I as js, g as ow, f as et, t as $e, c as N, C as aw, a as rr, b as Fc, d as cw, e as lw, s as Bn, h as Un, i as us, k as Di, A as wu, E as Me, j as hw, l as uw, y as Ye, m as cs, r as fi, O as Qn, o as tt, n as dw, p as Zn, q as Jn, u as nr, N as Xn, P as Ic, Q as pw, v as gw, w as fw, x as Ec, z as Ds, B as qc, D as Ct, F as gt, G as Gt, H as lt } from "./index.es-cOw8juwf.mjs";
|
|
11
11
|
import { B as po, p as ct, s as hs, a as Ns, b as Zo, r as $r, c as Jv, f as gd, i as Ln, d as zs } from "./lit-element-DHQZP6We.mjs";
|
|
12
|
-
import "./browser-ponyfill-
|
|
12
|
+
import "./browser-ponyfill-D5AN8ZPp.mjs";
|
|
13
13
|
import { f as Xv, x as wl, t as fd } from "./http-BfeP64Cg.mjs";
|
|
14
14
|
class Ft extends Error {
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
@@ -755,7 +755,7 @@ class m0 extends da {
|
|
|
755
755
|
this._connecting = !0;
|
|
756
756
|
let e;
|
|
757
757
|
try {
|
|
758
|
-
e = (await import("./solanaEmbed.esm-
|
|
758
|
+
e = (await import("./solanaEmbed.esm-BqdznDuW.mjs")).default;
|
|
759
759
|
} catch (n) {
|
|
760
760
|
throw new e0(n == null ? void 0 : n.message, n);
|
|
761
761
|
}
|
|
@@ -1397,7 +1397,7 @@ function EI(s) {
|
|
|
1397
1397
|
return II(`0x${e}`);
|
|
1398
1398
|
}
|
|
1399
1399
|
async function AI({ hash: s, signature: e }) {
|
|
1400
|
-
const t = Xo(s) ? s : fh(s), { secp256k1: i } = await import("./secp256k1-
|
|
1400
|
+
const t = Xo(s) ? s : fh(s), { secp256k1: i } = await import("./secp256k1-C77Oh9AA.mjs");
|
|
1401
1401
|
return `0x${(() => {
|
|
1402
1402
|
if (typeof e == "object" && "r" in e && "s" in e) {
|
|
1403
1403
|
const { r: l, s: h, v: u, yParity: d } = e, g = Number(d ?? u), p = Pd(g);
|
|
@@ -4336,7 +4336,7 @@ let iC = class extends $0 {
|
|
|
4336
4336
|
this.logger.fatal(`Fatal socket error: ${t.message}`), this.events.emit(St.error, t), this.logger.fatal("Fatal socket error received, closing transport"), this.transportClose();
|
|
4337
4337
|
}), Ie(this, "registerProviderListeners", () => {
|
|
4338
4338
|
this.provider.on(Ss.payload, this.onPayloadHandler), this.provider.on(Ss.connect, this.onConnectHandler), this.provider.on(Ss.disconnect, this.onDisconnectHandler), this.provider.on(Ss.error, this.onProviderErrorHandler);
|
|
4339
|
-
}), this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Me(e.logger, this.name) :
|
|
4339
|
+
}), this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Me(e.logger, this.name) : Qn(Di({ level: e.logger || jA })), this.messages = new U_(this.logger, e.core), this.subscriber = new X_(this, this.logger), this.publisher = new H_(this, this.logger), this.relayUrl = (e == null ? void 0 : e.relayUrl) || yy, this.projectId = e.projectId, TI() ? this.packageName = $d() : PI() && (this.bundleId = $d()), this.provider = {};
|
|
4340
4340
|
}
|
|
4341
4341
|
async init() {
|
|
4342
4342
|
if (this.logger.trace("Initialized"), this.registerEventListeners(), await Promise.all([this.messages.init(), this.subscriber.init()]), this.initialized = !0, this.subscriber.hasAnyTopics) try {
|
|
@@ -4501,11 +4501,11 @@ let iC = class extends $0 {
|
|
|
4501
4501
|
return r && this.logger.warn(`Ignoring duplicate message: ${i}`), r;
|
|
4502
4502
|
}
|
|
4503
4503
|
async onProviderPayload(e) {
|
|
4504
|
-
if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }),
|
|
4504
|
+
if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }), Zn(e)) {
|
|
4505
4505
|
if (!e.method.endsWith(UA)) return;
|
|
4506
4506
|
const t = e.params, { topic: i, message: r, publishedAt: n, attestation: o } = t.data, a = { topic: i, message: r, publishedAt: n, transportType: Je.relay, attestation: o };
|
|
4507
4507
|
this.logger.debug("Emitting Relayer Payload"), this.logger.trace(_p({ type: "event", event: t.id }, a)), this.events.emit(t.id, a), await this.acknowledgePayload(e), await this.onMessageEvent(a);
|
|
4508
|
-
} else
|
|
4508
|
+
} else Jn(e) && this.events.emit(St.message_ack, e);
|
|
4509
4509
|
}
|
|
4510
4510
|
async onMessageEvent(e) {
|
|
4511
4511
|
await this.shouldIgnoreMessageEvent(e) || (this.events.emit(St.message, e), await this.recordMessageEvent(e));
|
|
@@ -4621,7 +4621,7 @@ let Lr = class extends M0 {
|
|
|
4621
4621
|
var aC = Object.defineProperty, cC = (s, e, t) => e in s ? aC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, pe = (s, e, t) => cC(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4622
4622
|
let lC = class {
|
|
4623
4623
|
constructor(e, t) {
|
|
4624
|
-
this.core = e, this.logger = t, pe(this, "name", WA), pe(this, "version", VA), pe(this, "events", new
|
|
4624
|
+
this.core = e, this.logger = t, pe(this, "name", WA), pe(this, "version", VA), pe(this, "events", new Xn()), pe(this, "pairings"), pe(this, "initialized", !1), pe(this, "storagePrefix", pi), pe(this, "ignoredPayloadTypes", [Mi]), pe(this, "registeredMethods", []), pe(this, "init", async () => {
|
|
4625
4625
|
this.initialized || (await this.pairings.init(), await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.initialized = !0, this.logger.trace("Initialized"));
|
|
4626
4626
|
}), pe(this, "register", ({ methods: i }) => {
|
|
4627
4627
|
this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...i])];
|
|
@@ -4809,7 +4809,7 @@ let lC = class {
|
|
|
4809
4809
|
if (!this.pairings.keys.includes(t) || r === Je.link_mode || this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(i))) return;
|
|
4810
4810
|
const n = await this.core.crypto.decode(t, i);
|
|
4811
4811
|
try {
|
|
4812
|
-
|
|
4812
|
+
Zn(n) ? (this.core.history.set(t, n), this.onRelayEventRequest({ topic: t, payload: n })) : Jn(n) && (await this.core.history.resolve(n), await this.onRelayEventResponse({ topic: t, payload: n }), this.core.history.delete(t, n.id));
|
|
4813
4813
|
} catch (o) {
|
|
4814
4814
|
this.logger.error(o);
|
|
4815
4815
|
}
|
|
@@ -5309,7 +5309,7 @@ var WC = Object.defineProperty, VC = Object.defineProperties, KC = Object.getOwn
|
|
|
5309
5309
|
}, ts = (s, e) => VC(s, KC(e)), D = (s, e, t) => xh(s, typeof e != "symbol" ? e + "" : e, t);
|
|
5310
5310
|
let QC = class extends DC {
|
|
5311
5311
|
constructor(e) {
|
|
5312
|
-
super(e), D(this, "name", RC), D(this, "events", new
|
|
5312
|
+
super(e), D(this, "name", RC), D(this, "events", new Xn()), D(this, "initialized", !1), D(this, "requestQueue", { state: ri.idle, queue: [] }), D(this, "sessionRequestQueue", { state: ri.idle, queue: [] }), D(this, "requestQueueDelay", N.ONE_SECOND), D(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), D(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), D(this, "recentlyDeletedLimit", 200), D(this, "relayMessageCache", []), D(this, "pendingSessions", /* @__PURE__ */ new Map()), D(this, "init", async () => {
|
|
5313
5313
|
this.initialized || (await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.registerPairingEvents(), await this.registerLinkModeListeners(), this.client.core.pairing.register({ methods: Object.keys(At) }), this.initialized = !0, setTimeout(() => {
|
|
5314
5314
|
this.sessionRequestQueue.queue = this.getPendingSessionRequests(), this.processSessionRequestQueue();
|
|
5315
5315
|
}, N.toMiliseconds(this.requestQueueDelay)));
|
|
@@ -6244,7 +6244,7 @@ let QC = class extends DC {
|
|
|
6244
6244
|
async onRelayMessage(e) {
|
|
6245
6245
|
const { topic: t, message: i, attestation: r, transportType: n } = e, { publicKey: o } = this.client.auth.authKeys.keys.includes(hc) ? this.client.auth.authKeys.get(hc) : { publicKey: void 0 }, a = await this.client.core.crypto.decode(t, i, { receiverPublicKey: o, encoding: n === Je.link_mode ? mo : Qi });
|
|
6246
6246
|
try {
|
|
6247
|
-
|
|
6247
|
+
Zn(a) ? (this.client.core.history.set(t, a), this.onRelayEventRequest({ topic: t, payload: a, attestation: r, transportType: n, encryptedId: Pi(i) })) : Jn(a) ? (await this.client.core.history.resolve(a), await this.onRelayEventResponse({ topic: t, payload: a, transportType: n }), this.client.core.history.delete(t, a.id)) : this.onRelayEventUnknownPayload({ topic: t, payload: a, transportType: n });
|
|
6248
6248
|
} catch (c) {
|
|
6249
6249
|
this.client.logger.error(c);
|
|
6250
6250
|
}
|
|
@@ -6461,7 +6461,7 @@ let cS = class xy extends xC {
|
|
|
6461
6461
|
throw this.logger.error(r.message), r;
|
|
6462
6462
|
}
|
|
6463
6463
|
}), this.name = (e == null ? void 0 : e.name) || Ml.name, this.metadata = (e == null ? void 0 : e.metadata) || jw(), this.signConfig = e == null ? void 0 : e.signConfig;
|
|
6464
|
-
const t = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger :
|
|
6464
|
+
const t = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Qn(Di({ level: (e == null ? void 0 : e.logger) || Ml.logger }));
|
|
6465
6465
|
this.core = (e == null ? void 0 : e.core) || new $C(e), this.logger = Me(t, this.name), this.session = new JC(this.core, this.logger), this.proposal = new ZC(this.core, this.logger), this.pendingRequest = new XC(this.core, this.logger), this.engine = new QC(this), this.auth = new nS(this.core, this.logger);
|
|
6466
6466
|
}
|
|
6467
6467
|
static async init(e) {
|
|
@@ -7702,7 +7702,7 @@ var zx = Object.defineProperty, Fx = Object.defineProperties, qx = Object.getOwn
|
|
|
7702
7702
|
}, Ul = (s, e) => Fx(s, qx(e)), Hs = (s, e, t) => Rh(s, typeof e != "symbol" ? e + "" : e, t);
|
|
7703
7703
|
class Ou {
|
|
7704
7704
|
constructor(e) {
|
|
7705
|
-
Hs(this, "client"), Hs(this, "namespaces"), Hs(this, "optionalNamespaces"), Hs(this, "sessionProperties"), Hs(this, "events", new
|
|
7705
|
+
Hs(this, "client"), Hs(this, "namespaces"), Hs(this, "optionalNamespaces"), Hs(this, "sessionProperties"), Hs(this, "events", new Xn()), Hs(this, "rpcProviders", {}), Hs(this, "session"), Hs(this, "providerOpts"), Hs(this, "logger"), Hs(this, "uri"), Hs(this, "disableProviderPing", !1), this.providerOpts = e, this.logger = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Qn(Di({ level: (e == null ? void 0 : e.logger) || Rp })), this.disableProviderPing = (e == null ? void 0 : e.disableProviderPing) || !1;
|
|
7706
7706
|
}
|
|
7707
7707
|
static async init(e) {
|
|
7708
7708
|
const t = new Ou(e);
|
|
@@ -12334,7 +12334,7 @@ function gk(s) {
|
|
|
12334
12334
|
return pk(`0x${e}`);
|
|
12335
12335
|
}
|
|
12336
12336
|
async function fk({ hash: s, signature: e }) {
|
|
12337
|
-
const t = ra(s) ? s : Lh(s), { secp256k1: i } = await import("./secp256k1-
|
|
12337
|
+
const t = ra(s) ? s : Lh(s), { secp256k1: i } = await import("./secp256k1-CCn2vlXj.mjs");
|
|
12338
12338
|
return `0x${(() => {
|
|
12339
12339
|
if (typeof e == "object" && "r" in e && "s" in e) {
|
|
12340
12340
|
const { r: l, s: h, v: u, yParity: d } = e, g = Number(d ?? u), p = _g(g);
|
|
@@ -14915,7 +14915,7 @@ class eU extends fD {
|
|
|
14915
14915
|
this.logger.fatal(`Fatal socket error: ${t.message}`), this.events.emit(Tt.error, t), this.logger.fatal("Fatal socket error received, closing transport"), this.transportClose();
|
|
14916
14916
|
}), Ae(this, "registerProviderListeners", () => {
|
|
14917
14917
|
this.provider.on(Ps.payload, this.onPayloadHandler), this.provider.on(Ps.connect, this.onConnectHandler), this.provider.on(Ps.disconnect, this.onDisconnectHandler), this.provider.on(Ps.error, this.onProviderErrorHandler);
|
|
14918
|
-
}), this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Me(e.logger, this.name) :
|
|
14918
|
+
}), this.core = e.core, this.logger = typeof e.logger < "u" && typeof e.logger != "string" ? Me(e.logger, this.name) : Qn(Di({ level: e.logger || Pj })), this.messages = new k5(this.logger, e.core), this.subscriber = new Q5(this, this.logger), this.publisher = new F5(this, this.logger), this.relayUrl = (e == null ? void 0 : e.relayUrl) || eb, this.projectId = e.projectId, Ek() ? this.packageName = Cg() : Ak() && (this.bundleId = Cg()), this.provider = {};
|
|
14919
14919
|
}
|
|
14920
14920
|
async init() {
|
|
14921
14921
|
if (this.logger.trace("Initialized"), this.registerEventListeners(), await Promise.all([this.messages.init(), this.subscriber.init()]), this.initialized = !0, this.subscriber.hasAnyTopics) try {
|
|
@@ -15080,11 +15080,11 @@ class eU extends fD {
|
|
|
15080
15080
|
return r && this.logger.warn(`Ignoring duplicate message: ${i}`), r;
|
|
15081
15081
|
}
|
|
15082
15082
|
async onProviderPayload(e) {
|
|
15083
|
-
if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }),
|
|
15083
|
+
if (this.logger.debug("Incoming Relay Payload"), this.logger.trace({ type: "payload", direction: "incoming", payload: e }), Zn(e)) {
|
|
15084
15084
|
if (!e.method.endsWith(Mj)) return;
|
|
15085
15085
|
const t = e.params, { topic: i, message: r, publishedAt: n, attestation: o } = t.data, a = { topic: i, message: r, publishedAt: n, transportType: Xe.relay, attestation: o };
|
|
15086
15086
|
this.logger.debug("Emitting Relayer Payload"), this.logger.trace(Af({ type: "event", event: t.id }, a)), this.events.emit(t.id, a), await this.acknowledgePayload(e), await this.onMessageEvent(a);
|
|
15087
|
-
} else
|
|
15087
|
+
} else Jn(e) && this.events.emit(Tt.message_ack, e);
|
|
15088
15088
|
}
|
|
15089
15089
|
async onMessageEvent(e) {
|
|
15090
15090
|
await this.shouldIgnoreMessageEvent(e) || (await this.recordMessageEvent(e, fc.inbound), this.events.emit(Tt.message, e));
|
|
@@ -15324,7 +15324,7 @@ class qr extends wD {
|
|
|
15324
15324
|
var OU = Object.defineProperty, xU = (s, e, t) => e in s ? OU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, fe = (s, e, t) => xU(s, typeof e != "symbol" ? e + "" : e, t);
|
|
15325
15325
|
class DU {
|
|
15326
15326
|
constructor(e, t) {
|
|
15327
|
-
this.core = e, this.logger = t, fe(this, "name", Rj), fe(this, "version", Uj), fe(this, "events", new
|
|
15327
|
+
this.core = e, this.logger = t, fe(this, "name", Rj), fe(this, "version", Uj), fe(this, "events", new Xn()), fe(this, "pairings"), fe(this, "initialized", !1), fe(this, "storagePrefix", gi), fe(this, "ignoredPayloadTypes", [xi]), fe(this, "registeredMethods", []), fe(this, "init", async () => {
|
|
15328
15328
|
this.initialized || (await this.pairings.init(), await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.initialized = !0, this.logger.trace("Initialized"));
|
|
15329
15329
|
}), fe(this, "register", ({ methods: i }) => {
|
|
15330
15330
|
this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...i])];
|
|
@@ -15511,7 +15511,7 @@ class DU {
|
|
|
15511
15511
|
const { topic: t, message: i, transportType: r } = e;
|
|
15512
15512
|
if (this.pairings.keys.includes(t) && r !== Xe.link_mode && !this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(i))) try {
|
|
15513
15513
|
const n = await this.core.crypto.decode(t, i);
|
|
15514
|
-
|
|
15514
|
+
Zn(n) ? (this.core.history.set(t, n), await this.onRelayEventRequest({ topic: t, payload: n })) : Jn(n) && (await this.core.history.resolve(n), await this.onRelayEventResponse({ topic: t, payload: n }), this.core.history.delete(t, n.id)), await this.core.relayer.messages.ack(t, i);
|
|
15515
15515
|
} catch (n) {
|
|
15516
15516
|
this.logger.error(n);
|
|
15517
15517
|
}
|
|
@@ -16000,7 +16000,7 @@ var dL = Object.defineProperty, pL = Object.defineProperties, gL = Object.getOwn
|
|
|
16000
16000
|
}, Zt = (s, e) => pL(s, gL(e)), O = (s, e, t) => ou(s, typeof e != "symbol" ? e + "" : e, t);
|
|
16001
16001
|
class yL extends _D {
|
|
16002
16002
|
constructor(e) {
|
|
16003
|
-
super(e), O(this, "name", rL), O(this, "events", new
|
|
16003
|
+
super(e), O(this, "name", rL), O(this, "events", new Xn()), O(this, "initialized", !1), O(this, "requestQueue", { state: ci.idle, queue: [] }), O(this, "sessionRequestQueue", { state: ci.idle, queue: [] }), O(this, "requestQueueDelay", N.ONE_SECOND), O(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), O(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), O(this, "recentlyDeletedLimit", 200), O(this, "relayMessageCache", []), O(this, "pendingSessions", /* @__PURE__ */ new Map()), O(this, "init", async () => {
|
|
16004
16004
|
this.initialized || (await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.registerPairingEvents(), await this.registerLinkModeListeners(), this.client.core.pairing.register({ methods: Object.keys(_t) }), this.initialized = !0, setTimeout(async () => {
|
|
16005
16005
|
await this.processPendingMessageEvents(), this.sessionRequestQueue.queue = this.getPendingSessionRequests(), this.processSessionRequestQueue();
|
|
16006
16006
|
}, N.toMiliseconds(this.requestQueueDelay)));
|
|
@@ -16958,7 +16958,7 @@ class yL extends _D {
|
|
|
16958
16958
|
const { topic: t, message: i, attestation: r, transportType: n } = e, { publicKey: o } = this.client.auth.authKeys.keys.includes(wc) ? this.client.auth.authKeys.get(wc) : { publicKey: void 0 };
|
|
16959
16959
|
try {
|
|
16960
16960
|
const a = await this.client.core.crypto.decode(t, i, { receiverPublicKey: o, encoding: n === Xe.link_mode ? $o : Xi });
|
|
16961
|
-
|
|
16961
|
+
Zn(a) ? (this.client.core.history.set(t, a), await this.onRelayEventRequest({ topic: t, payload: a, attestation: r, transportType: n, encryptedId: ui(i) })) : Jn(a) ? (await this.client.core.history.resolve(a), await this.onRelayEventResponse({ topic: t, payload: a, transportType: n }), this.client.core.history.delete(t, a.id)) : await this.onRelayEventUnknownPayload({ topic: t, payload: a, transportType: n }), await this.client.core.relayer.messages.ack(t, i);
|
|
16962
16962
|
} catch (a) {
|
|
16963
16963
|
this.client.logger.error(a);
|
|
16964
16964
|
}
|
|
@@ -17181,7 +17181,7 @@ let PL = class wb extends ND {
|
|
|
17181
17181
|
throw this.logger.error(r.message), r;
|
|
17182
17182
|
}
|
|
17183
17183
|
}), this.name = (e == null ? void 0 : e.name) || sh.name, this.metadata = (e == null ? void 0 : e.metadata) || Im(), this.signConfig = e == null ? void 0 : e.signConfig;
|
|
17184
|
-
const t = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger :
|
|
17184
|
+
const t = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Qn(Di({ level: (e == null ? void 0 : e.logger) || sh.logger }));
|
|
17185
17185
|
this.core = (e == null ? void 0 : e.core) || new tL(e), this.logger = Me(t, this.name), this.session = new bL(this.core, this.logger), this.proposal = new mL(this.core, this.logger), this.pendingRequest = new vL(this.core, this.logger), this.engine = new yL(this), this.auth = new CL(this.core, this.logger);
|
|
17186
17186
|
}
|
|
17187
17187
|
static async init(e) {
|
|
@@ -18126,7 +18126,7 @@ var Zz = Object.defineProperty, Jz = Object.defineProperties, Xz = Object.getOwn
|
|
|
18126
18126
|
}, ch = (s, e) => Jz(s, Xz(e)), $s = (s, e, t) => lu(s, typeof e != "symbol" ? e + "" : e, t);
|
|
18127
18127
|
class Vu {
|
|
18128
18128
|
constructor(e) {
|
|
18129
|
-
$s(this, "client"), $s(this, "namespaces"), $s(this, "optionalNamespaces"), $s(this, "sessionProperties"), $s(this, "scopedProperties"), $s(this, "events", new
|
|
18129
|
+
$s(this, "client"), $s(this, "namespaces"), $s(this, "optionalNamespaces"), $s(this, "sessionProperties"), $s(this, "scopedProperties"), $s(this, "events", new Xn()), $s(this, "rpcProviders", {}), $s(this, "session"), $s(this, "providerOpts"), $s(this, "logger"), $s(this, "uri"), $s(this, "disableProviderPing", !1), this.providerOpts = e, this.logger = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Qn(Di({ level: (e == null ? void 0 : e.logger) || Uf })), this.disableProviderPing = (e == null ? void 0 : e.disableProviderPing) || !1;
|
|
18130
18130
|
}
|
|
18131
18131
|
static async init(e) {
|
|
18132
18132
|
const t = new Vu(e);
|
|
@@ -21134,7 +21134,7 @@ class g8 extends p8 {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
async injectModalUi() {
|
|
21136
21136
|
if (!Qf && ce.isClient()) {
|
|
21137
|
-
if (await import("./basic-
|
|
21137
|
+
if (await import("./basic-BA2aRJJn.mjs"), await import("./w3m-modal-B7LUHLWC.mjs"), !document.querySelector("w3m-modal")) {
|
|
21138
21138
|
const t = document.createElement("w3m-modal");
|
|
21139
21139
|
!j.state.disableAppend && !j.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", t);
|
|
21140
21140
|
}
|
|
@@ -22063,10 +22063,10 @@ async function rw(s, e, t) {
|
|
|
22063
22063
|
)).map((P) => P.value).filter((P) => P !== null), T = nw.decompile(e.message, {
|
|
22064
22064
|
addressLookupTableAccounts: _
|
|
22065
22065
|
});
|
|
22066
|
-
T.instructions = [
|
|
22066
|
+
T.instructions = [...T.instructions, n], o = new bc(T.compileToV0Message(_)), o.signatures = [...e.signatures];
|
|
22067
22067
|
} else {
|
|
22068
22068
|
const _ = new vc();
|
|
22069
|
-
_.recentBlockhash = e.recentBlockhash, _.feePayer = e.feePayer, _.instructions = [
|
|
22069
|
+
_.recentBlockhash = e.recentBlockhash, _.feePayer = e.feePayer, _.instructions = [...e.instructions, n], _.signatures = [...e.signatures], o = _;
|
|
22070
22070
|
}
|
|
22071
22071
|
e: for (; ; ) {
|
|
22072
22072
|
if (oc(o) && !o.message.recentBlockhash) {
|