@wormhole-foundation/wormhole-connect 3.0.0-beta.11-development → 3.0.0-beta.13-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/dist/assets/{tokens-BjeNFBPV.js → tokens-CrPLX1jh.js} +13 -13
- package/dist/main.js +75 -75
- package/dist/src/components/SampleApp/index.d.ts.map +1 -1
- package/dist/src/config/mainnet/rpcs.d.ts.map +1 -1
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/config/testnet/rpcs.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/config/types.d.ts +2 -1
- package/dist/src/config/types.d.ts.map +1 -1
- package/dist/src/contexts/TokensContext.d.ts.map +1 -1
- package/dist/src/exports/executor.d.ts +1 -1
- package/dist/src/exports/executor.d.ts.map +1 -1
- package/dist/src/icons/ChainIcons.d.ts.map +1 -1
- package/dist/src/icons/Chains/LINEA.d.ts +4 -0
- package/dist/src/icons/Chains/LINEA.d.ts.map +1 -0
- package/dist/src/icons/Chains/POLY.d.ts +2 -2
- package/dist/src/icons/Chains/POLY.d.ts.map +1 -1
- package/dist/src/icons/Chains/SONIC.d.ts +4 -0
- package/dist/src/icons/Chains/SONIC.d.ts.map +1 -0
- package/dist/src/icons/SvgDefs.d.ts.map +1 -1
- package/dist/src/icons/TokenIcons.d.ts.map +1 -1
- package/dist/src/icons/Tokens/POLY.d.ts.map +1 -1
- package/dist/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
- package/dist/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/dist/src/utils/coingecko.d.ts.map +1 -1
- package/dist/src/utils/sdkv2.d.ts +1 -1
- package/dist/src/utils/sdkv2.d.ts.map +1 -1
- package/dist/src/utils/wallet/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/GasSlider/index.d.ts +1 -0
- package/dist/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{account-k-CXVcvA.mjs → account-DRrQuG9b.mjs} +1 -1
- package/lib/{account-gVjkECaX.js → account-nmHnnwf-.js} +1 -1
- package/lib/{add-5JNYtbn0.mjs → add-B3TOzisV.mjs} +1 -1
- package/lib/{add-l7uMi5Qp.js → add-PboF8xOA.js} +1 -1
- package/lib/{address-CrYNZ_Nj.mjs → address-BkeBsCZD.mjs} +1837 -1809
- package/lib/{address-ByLIzxVb.mjs → address-CHEvC20V.mjs} +1 -1
- package/lib/{address-DfgK_jn7.js → address-CslafWGT.js} +1 -1
- package/lib/address-DKM11kf_.js +15 -0
- package/lib/{address-DGYJWkFz.js → address-vHTAfgt6.js} +1 -1
- package/lib/{address-BJNAPSnr.mjs → address-xvE59bSC.mjs} +1 -1
- package/lib/{all-wallets-Ci5Fl1c7.js → all-wallets-C3KaOAtR.js} +1 -1
- package/lib/{all-wallets-DFuKxB4Z.mjs → all-wallets-i8sBvyse.mjs} +1 -1
- package/lib/{app-store-oBe0hgJk.js → app-store-DMPxp7LI.js} +1 -1
- package/lib/{app-store-B0IRo5Ld.mjs → app-store-D_gEJYR-.mjs} +1 -1
- package/lib/{apple-C1253BqB.mjs → apple-C7dx7WbA.mjs} +1 -1
- package/lib/{apple-BeItYmiV.js → apple-CBv-wD_N.js} +1 -1
- package/lib/{aptos-CiSMOF3v.mjs → aptos-5WdoBDe7.mjs} +3 -3
- package/lib/{aptos-IciOSw-S.js → aptos-7NDR_C5e.js} +2 -2
- package/lib/{aptos-CDC4GSyx.js → aptos-BHb4m4xc.js} +1 -1
- package/lib/{aptos-M18090BQ.mjs → aptos-DjCb_S8U.mjs} +7 -7
- package/lib/{arrow-bottom-DoPQ9bym.js → arrow-bottom-JVAM2flH.js} +1 -1
- package/lib/{arrow-bottom-circle-CUNc1d0l.mjs → arrow-bottom-circle-CNlCzI_j.mjs} +1 -1
- package/lib/{arrow-bottom-circle-_HzqlrgT.js → arrow-bottom-circle-Cwm4Epf6.js} +1 -1
- package/lib/{arrow-bottom-B5idrRLg.mjs → arrow-bottom-dGyduTnX.mjs} +1 -1
- package/lib/{arrow-left-DKZtNEET.js → arrow-left-BCNUIhF5.js} +1 -1
- package/lib/{arrow-left-D_6pmgeW.mjs → arrow-left-PKOB36Bh.mjs} +1 -1
- package/lib/{arrow-right-CfF4JKUl.mjs → arrow-right-CS5PKMHz.mjs} +1 -1
- package/lib/{arrow-right-BETNsgrF.js → arrow-right-DmYVvh1l.js} +1 -1
- package/lib/{arrow-top-ByBQSpF9.mjs → arrow-top-BkM6S1a6.mjs} +1 -1
- package/lib/{arrow-top-_t4PlGZq.js → arrow-top-Bo7YKrfd.js} +1 -1
- package/lib/{bank-D-ByWKrE.mjs → bank-CCF3DOdG.mjs} +1 -1
- package/lib/{bank-CGWjW2wg.js → bank-DLZl3tlW.js} +1 -1
- package/lib/{basic-Bg1hSrRy.mjs → basic-B3TQQ8Sq.mjs} +2 -2
- package/lib/{basic-CkPI-DHw.js → basic-DVoqEslQ.js} +1 -1
- package/lib/{blake2b-GH2Zzt65.mjs → blake2b-CAi92fbu.mjs} +17 -17
- package/lib/{blake2b-CCJ4LnEi.js → blake2b-DQdnnomV.js} +1 -1
- package/lib/{browser-D3rK1zZD.mjs → browser-8x7RJ5du.mjs} +1 -1
- package/lib/{browser-C13v_3nT.js → browser-CRt_zD3Q.js} +1 -1
- package/lib/{browser-ponyfill-JlME40Yz.mjs → browser-ponyfill-B32wgiqZ.mjs} +1 -1
- package/lib/{browser-ponyfill-DqqaJGv_.js → browser-ponyfill-UnUv8h3i.js} +1 -1
- package/lib/{card-Cpnj4Pjv.js → card-B4Tu3QQo.js} +1 -1
- package/lib/{card-C103Zr_s.mjs → card-CXjBQX3v.mjs} +1 -1
- package/lib/{ccip-DLDyY4LZ.mjs → ccip-CIIU_fEJ.mjs} +2 -2
- package/lib/{ccip-CEnidIEN.js → ccip-DaWU7YTU.js} +1 -1
- package/lib/{chain-DTh9H2Cq.js → chain-CJuQGMF5.js} +1 -1
- package/lib/{chain-Dq8acwHq.mjs → chain-uXEmLNMk.mjs} +1 -1
- package/lib/{checkmark-CftBiE_o.mjs → checkmark-BAUqIoTm.mjs} +1 -1
- package/lib/{checkmark-zYR427D1.js → checkmark-C7_13-xW.js} +1 -1
- package/lib/{checkmark-bold-hTRkqdFs.js → checkmark-bold-BAPMY9Va.js} +1 -1
- package/lib/{checkmark-bold-BiuLRYaw.mjs → checkmark-bold-DdxcN-xa.mjs} +1 -1
- package/lib/{chevron-bottom-Dcr8Aaqj.js → chevron-bottom-BhliKUSk.js} +1 -1
- package/lib/{chevron-bottom-BbQ_m7D8.mjs → chevron-bottom-DPs0vktV.mjs} +1 -1
- package/lib/{chevron-left-B9PTmHIG.js → chevron-left-CmxD6cz4.js} +1 -1
- package/lib/{chevron-left-BRcODtkl.mjs → chevron-left-Dk6PhtGR.mjs} +1 -1
- package/lib/{chevron-right-C8T3XHHk.mjs → chevron-right-CkGXlHcz.mjs} +1 -1
- package/lib/{chevron-right-NjcF5i-l.js → chevron-right-CsZm-r4d.js} +1 -1
- package/lib/{chevron-top-qG-Co151.js → chevron-top-COxXTPhY.js} +1 -1
- package/lib/{chevron-top-DDRuRQDi.mjs → chevron-top-Cckcz4Qs.mjs} +1 -1
- package/lib/{chrome-store-CMfQIa4X.js → chrome-store-BQDKjVx4.js} +1 -1
- package/lib/{chrome-store-y7e1zu4m.mjs → chrome-store-BWCBtyqY.mjs} +1 -1
- package/lib/{chunk-KJH4KKG6-DOESg_ru.js → chunk-KJH4KKG6-CAnNL4lj.js} +1 -1
- package/lib/{chunk-KJH4KKG6-cfe1Zo7n.mjs → chunk-KJH4KKG6-CCerRpgp.mjs} +2 -2
- package/lib/{clock-Ch4B9lTj.mjs → clock-BVouBwH-.mjs} +1 -1
- package/lib/{clock-D_HlSE4l.js → clock-DyD0fxqO.js} +1 -1
- package/lib/{close-DV97wtTx.mjs → close-BWXb69Wl.mjs} +1 -1
- package/lib/{close-CqVBfuUL.js → close-Cw0rUieJ.js} +1 -1
- package/lib/{coinPlaceholder-DBEIEMLH.mjs → coinPlaceholder-BMScJe5r.mjs} +1 -1
- package/lib/{coinPlaceholder-Ckw9njof.js → coinPlaceholder-cDwG015N.js} +1 -1
- package/lib/{compass-BRH1TNEt.js → compass-BEkdaonl.js} +1 -1
- package/lib/{compass-DoE_r14r.mjs → compass-Ck1hdMBP.mjs} +1 -1
- package/lib/constants-84--TxnQ.js +1 -0
- package/lib/{constants-DX7-soSQ.mjs → constants-DL79O3Cw.mjs} +3 -3
- package/lib/{contract-D8VzaUQJ.mjs → contract-C26uilM9.mjs} +171 -171
- package/lib/{contract-DYtnmT6F.js → contract-C2wJ6LwN.js} +1 -1
- package/lib/{copy-tsMwqd3u.js → copy-BLHxb-RP.js} +1 -1
- package/lib/{copy-BUnH9Rmh.mjs → copy-Db7Dj1yY.mjs} +1 -1
- package/lib/{create-BRB2U1qV.js → create-D2vX2bRe.js} +1 -1
- package/lib/create-OmEBpMgv.mjs +18 -0
- package/lib/{cursor-5JnUhK1u.js → cursor-C1Sin6tb.js} +1 -1
- package/lib/{cursor-3mj3Pq0z.mjs → cursor-CNsWvtzA.mjs} +1 -1
- package/lib/{cursor-transparent-BTemyRTO.mjs → cursor-transparent-BunBBBx5.mjs} +1 -1
- package/lib/{cursor-transparent-Cxt6oRht.js → cursor-transparent-SER8uk9I.js} +1 -1
- package/lib/{desktop-DvfmWO_R.mjs → desktop-B6mJxAHq.mjs} +1 -1
- package/lib/{desktop-BSL1tdXi.js → desktop-BxtmfVtX.js} +1 -1
- package/lib/{disconnect-C1bWgwV-.js → disconnect-C41yMwSb.js} +1 -1
- package/lib/{disconnect-Cxkdq6ir.mjs → disconnect-D7XSHnMT.mjs} +1 -1
- package/lib/{discord-eKk83DRx.js → discord-B03i6OzP.js} +1 -1
- package/lib/{discord-CHx5Xb-9.mjs → discord-BYp6ZBO5.mjs} +1 -1
- package/lib/{etherscan-DunhJn-2.js → etherscan-DLF8GRx-.js} +1 -1
- package/lib/{etherscan-YaFa04eY.mjs → etherscan-Db4s0bfM.mjs} +1 -1
- package/lib/{evm-BcBUJ9Y7.js → evm-BmUWgBnJ.js} +2 -2
- package/lib/{evm-B1mLJPQm.mjs → evm-Cfbj-u_x.mjs} +9 -9
- package/lib/{evm-C_kkwF2N.js → evm-DT7UH6jw.js} +3 -3
- package/lib/{evm-Dzv24HTi.mjs → evm-JX0NqvCN.mjs} +9 -9
- package/lib/{exclamation-triangle-Cb8oHsFl.js → exclamation-triangle-Bnq3BTWj.js} +1 -1
- package/lib/{exclamation-triangle-DfZ9Dte5.mjs → exclamation-triangle-QwUrQkZz.mjs} +1 -1
- package/lib/executor.js +1 -1
- package/lib/executor.mjs +1131 -488
- package/lib/{extension-DP-dDsSn.mjs → extension-BJ8ReR_0.mjs} +1 -1
- package/lib/{extension-DoOMA86h.js → extension-CgcYwI-C.js} +1 -1
- package/lib/{external-link-DyHJnsK8.mjs → external-link-C-xXuK-w.mjs} +1 -1
- package/lib/{external-link-BqzHACi1.js → external-link-DyvDlcrJ.js} +1 -1
- package/lib/{facebook-fuN149kb.mjs → facebook-0DLWcqgY.mjs} +1 -1
- package/lib/{facebook-9-sYpqWJ.js → facebook-BpyxMifX.js} +1 -1
- package/lib/{farcaster-CthcgW1p.mjs → farcaster-7pF76-yJ.mjs} +1 -1
- package/lib/{farcaster-DidNhku_.js → farcaster-CWG8svoe.js} +1 -1
- package/lib/{filters-_l_bTNZK.mjs → filters-B13ud8_A.mjs} +1 -1
- package/lib/{filters-ByT7XcVR.js → filters-QScvFA3B.js} +1 -1
- package/lib/{github-4qFP3ebJ.js → github-B1QukX4i.js} +1 -1
- package/lib/{github-DLIZSSpT.mjs → github-D82vkMzo.mjs} +1 -1
- package/lib/{google-CLB363tb.js → google-C6E4oHHf.js} +1 -1
- package/lib/{google-DsUwkwU7.mjs → google-D4wJMU48.mjs} +1 -1
- package/lib/{help-circle-MHAS2jcg.js → help-circle-C4PprAiX.js} +1 -1
- package/lib/{help-circle-DNIlqXM4.mjs → help-circle-DoiMsREG.mjs} +1 -1
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{id-DgC4wzlk.js → id-D6HBBibn.js} +1 -1
- package/lib/{id-Dcpxx5Sg.mjs → id-DOZCSctU.mjs} +1 -1
- package/lib/{image-D0i9nEJa.mjs → image-Bz-sq4zu.mjs} +1 -1
- package/lib/{image-cNJf0UKs.js → image-DwgrdoFE.js} +1 -1
- package/lib/{index-CbF5x2NI.js → index-AZ65joOD.js} +1 -1
- package/lib/{index-BsqWniHZ.mjs → index-B0H8aSyJ.mjs} +2 -2
- package/lib/{index-CreVTM0z.mjs → index-B1YHtJKf.mjs} +32 -32
- package/lib/{index-6NFOdkn_.mjs → index-B2v8cGyE.mjs} +5 -5
- package/lib/{index-Bn829hfx.js → index-B586QVP1.js} +1 -1
- package/lib/{index-CjojdPoR.js → index-BOiHIPRm.js} +1 -1
- package/lib/{index-CSf9Xnts.mjs → index-BgvV5NF2.mjs} +5 -5
- package/lib/{index-BxR9BQdY.mjs → index-BjeolB9D.mjs} +5 -5
- package/lib/{index-WR7oDg9u.mjs → index-Bv-BZXf_.mjs} +6 -6
- package/lib/{index-T00Tc9JN.js → index-C2EKjwxb.js} +1 -1
- package/lib/{index-D4dCJIWy.js → index-C2oYdtY8.js} +1 -1
- package/lib/{index-Cj6R9JbK.js → index-CFfjoJR9.js} +1 -1
- package/lib/{index-B6QoC8kC.mjs → index-CIGkn9tA.mjs} +1 -1
- package/lib/{index-D0eLvswO.mjs → index-CNWcuxPc.mjs} +1 -1
- package/lib/{index-Dy8-WjNf.mjs → index-CNhD4Iu8.mjs} +14 -14
- package/lib/{index-Cv26ujGL.js → index-CP6-WHfp.js} +1 -1
- package/lib/{index-BuMERF6V.mjs → index-CRYNS9pm.mjs} +3 -3
- package/lib/{index-CVY5OsmN.js → index-CZhOgoed.js} +2 -2
- package/lib/{index-C9CCEaud.js → index-Cet7Wvc5.js} +1 -1
- package/lib/{index-CpYW6xKB.mjs → index-Cg5Ko9uq.mjs} +12 -12
- package/lib/{index-iIndJffV.js → index-CjI7Vey3.js} +1 -1
- package/lib/{index-C_DPPfkk.js → index-Cjz6EL9G.js} +1 -1
- package/lib/{index-CJXywlFV.mjs → index-CrKGOs08.mjs} +5 -5
- package/lib/{index-Dg_iItNp.js → index-Cy_GmZ1K.js} +1 -1
- package/lib/{index-B8CSnOaL.mjs → index-D1vSocUD.mjs} +4 -4
- package/lib/{index-Co1W4Raf.mjs → index-D4WbU33f.mjs} +10 -10
- package/lib/{index-D8pyO0Ut.mjs → index-DInWB5Ku.mjs} +78 -78
- package/lib/{index-BJjgo7T5.js → index-DQXzR255.js} +1 -1
- package/lib/{index-FyK0K3it.mjs → index-DSGGuRHs.mjs} +7 -7
- package/lib/{index-BOmzGtQH.mjs → index-DVj58Xn9.mjs} +13 -13
- package/lib/{index-CAZoTTeF.js → index-DXD0qvNV.js} +1 -1
- package/lib/{index-DLyteqgH.js → index-Dd0zXo9p.js} +1 -1
- package/lib/{index-BDN9fAFf.js → index-DflOc1lz.js} +1 -1
- package/lib/{index-DZ0LaYyC.js → index-DoubjpWw.js} +1 -1
- package/lib/{index-Dc_4R0qr.mjs → index-Dpefdrdb.mjs} +3296 -3074
- package/lib/{index-0V2bg9Sg.mjs → index-DuXi1xNY.mjs} +2 -2
- package/lib/{index-Csb-_vqa.js → index-Dw8nyQGf.js} +1 -1
- package/lib/{index-DUoona4h.mjs → index-Naa9NLXw.mjs} +4 -4
- package/lib/{index-BBwY_mLw.mjs → index-UZaBhUoD.mjs} +4 -4
- package/lib/{index-D5Wl9ZPE.mjs → index-XkPtmd0r.mjs} +7 -7
- package/lib/{index-CFikcYS0.js → index-XrGXGqnM.js} +1 -1
- package/lib/{index--rEdlHs9.js → index-sIkHg4mO.js} +1 -1
- package/lib/{index-DVJDNZXX.js → index-tVbvQzum.js} +60 -60
- package/lib/{index-Cvt-EnSZ.mjs → index-wFZO7Yy8.mjs} +19 -19
- package/lib/{index-uqZQu-qU.js → index-yI1a3BCl.js} +1 -1
- package/lib/{index-aoDDl5Bh.js → index-zrsGesGr.js} +1 -1
- package/lib/{index.es-CStVufqy.mjs → index.es-CTerQ-xd.mjs} +6 -6
- package/lib/{index.es-DNfg_W4n.js → index.es-DW-Rbcpg.js} +1 -1
- package/lib/{index.es-BodjtdqB.mjs → index.es-FblCdfpc.mjs} +4 -4
- package/lib/{index.es-wGYpE9RX.js → index.es-tq-RvjG8.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{info-DhtgwfZc.js → info-BifZFc7t.js} +1 -1
- package/lib/{info-circle-DzGmwt4i.js → info-circle-2P1Yxg4Q.js} +1 -1
- package/lib/{info-circle-CZvq1Bbl.mjs → info-circle-BAC0QRkt.mjs} +1 -1
- package/lib/{info-Ccop_bq-.mjs → info-sSeB9YE8.mjs} +1 -1
- package/lib/{lightbulb-WpoJQkeo.mjs → lightbulb-EmWyHxHf.mjs} +1 -1
- package/lib/{lightbulb-C0-qKwLI.js → lightbulb-MtN8FDGi.js} +1 -1
- package/lib/{mail-D2CE1lj4.js → mail-CqXkLFqA.js} +1 -1
- package/lib/{mail-D1rYl-hP.mjs → mail-Kn0E2IkG.mjs} +1 -1
- package/lib/mayan.js +1 -1
- package/lib/mayan.mjs +9 -9
- package/lib/{mint-CyFSbOaj.js → mint-DzKeNBRo.js} +1 -1
- package/lib/{mint-CDUlLJB4.mjs → mint-WjTAjh-p.mjs} +2 -2
- package/lib/{mobile-uBIPQ_3j.js → mobile-BE2FxzUq.js} +1 -1
- package/lib/{mobile-D8slK1-I.mjs → mobile-Dj3WE71d.mjs} +1 -1
- package/lib/{more-Dy11lM4m.js → more-BGlDHap-.js} +1 -1
- package/lib/{more-DsX_s58K.mjs → more-D4DDIvdG.mjs} +1 -1
- package/lib/{native-Bdd5l9MQ.js → native-CGkMKXpm.js} +1 -1
- package/lib/{native-D6oc9ERK.mjs → native-DCc4sjxb.mjs} +1 -1
- package/lib/{network-placeholder-ClLYl9gN.mjs → network-placeholder-BBNnq4LJ.mjs} +1 -1
- package/lib/{network-placeholder-4XSy76qO.js → network-placeholder-DZ6qNrD8.js} +1 -1
- package/lib/{nftPlaceholder-ilscJrWL.mjs → nftPlaceholder-BGK-mcGP.mjs} +1 -1
- package/lib/{nftPlaceholder-Dtm_zH4E.js → nftPlaceholder-t3eyvw1E.js} +1 -1
- package/lib/ntt.js +1 -1
- package/lib/ntt.mjs +10 -10
- package/lib/{off-N7Q-H26y.js → off-BBGwptS5.js} +1 -1
- package/lib/{off-D3IDpfZg.mjs → off-f4sOrEaa.mjs} +1 -1
- package/lib/{platform-CyoDzIPB.mjs → platform-BVScq6Cn.mjs} +6 -6
- package/lib/{platform-Ck9W87gm.mjs → platform-ByoVE-An.mjs} +4 -4
- package/lib/{platform-DbvllBcy.js → platform-DHBUZeaO.js} +1 -1
- package/lib/{platform-C7YwgvxU.js → platform-Yk6Fw43J.js} +1 -1
- package/lib/{platform-CgqczEeE.js → platform-_YLyrJdi.js} +1 -1
- package/lib/{platform-DkmFvjoG.mjs → platform-tSU41623.mjs} +16 -16
- package/lib/{play-store-2p9CBKz9.js → play-store-BbN0jXQh.js} +1 -1
- package/lib/{play-store-Dnx6-DfM.mjs → play-store-D8C6HS_a.mjs} +1 -1
- package/lib/{plus-CngR-jD-.mjs → plus-CbTzHTic.mjs} +1 -1
- package/lib/{plus-CVTA7O2z.js → plus-DmTKVIYx.js} +1 -1
- package/lib/{provider-jsonrpc-D033z3Mz.js → provider-jsonrpc-B0U6Ij-n.js} +1 -1
- package/lib/{provider-jsonrpc-BVvalXMV.mjs → provider-jsonrpc-pHUX5SqN.mjs} +155 -155
- package/lib/{qr-code-CJEqBG09.js → qr-code-B6qlbkUI.js} +1 -1
- package/lib/{qr-code-Ckqp2jcM.mjs → qr-code-BWVtySSk.mjs} +1 -1
- package/lib/{recycle-horizontal-BWbxp077.mjs → recycle-horizontal-Bs5gf79m.mjs} +1 -1
- package/lib/{recycle-horizontal-CUMI_Frp.js → recycle-horizontal-DzBA56-s.js} +1 -1
- package/lib/{refresh-nBHl-Ex7.js → refresh-62hm4k6x.js} +1 -1
- package/lib/{refresh-BA3qzC0t.mjs → refresh-ivbjdSCV.mjs} +1 -1
- package/lib/{reown-logo-C0OFiwcD.js → reown-logo-CVyCROZP.js} +1 -1
- package/lib/{reown-logo-BIs62gAK.mjs → reown-logo-DkbDD804.mjs} +1 -1
- package/lib/{search-C4yW_e7h.js → search-BAemvNq7.js} +1 -1
- package/lib/{search-DWkxod1G.mjs → search-By1CMDmb.mjs} +1 -1
- package/lib/{secp256k1-D5xGRPak.mjs → secp256k1-Cgk0g7W_.mjs} +1 -1
- package/lib/{secp256k1-CzzYFHL9.mjs → secp256k1-ClYndPcJ.mjs} +1 -1
- package/lib/{secp256k1-DPyD-aqu.js → secp256k1-DboBd6yN.js} +1 -1
- package/lib/{secp256k1-DJxiSxEG.js → secp256k1-uAsXZq5d.js} +1 -1
- package/lib/{send-B_-c6x6P.mjs → send-BIKE35sd.mjs} +1 -1
- package/lib/{send-CgneLJ89.js → send-BQNTa-AX.js} +1 -1
- package/lib/{signer-DIpGs_9B.mjs → signer-CinqaaXD.mjs} +10 -10
- package/lib/{signer-BZ3rTVnM.js → signer-D-HjSIgq.js} +1 -1
- package/lib/{solana-Cqhc10CM.js → solana-BUWSwHur.js} +4 -4
- package/lib/{solana-AefmV-EX.mjs → solana-C2S4i5Ij.mjs} +11 -11
- package/lib/solana-CEz8hIFa.mjs +18 -0
- package/lib/solana-Dohpdke6.js +1 -0
- package/lib/{solanaEmbed.esm-DvSyh3Tl.mjs → solanaEmbed.esm-Dk8f6vW0.mjs} +2 -2
- package/lib/{solanaEmbed.esm-CB_O5YXF.js → solanaEmbed.esm-lyjsfmH_.js} +1 -1
- package/lib/src/components/SampleApp/index.d.ts.map +1 -1
- package/lib/src/config/mainnet/rpcs.d.ts.map +1 -1
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/config/testnet/rpcs.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/config/types.d.ts +2 -1
- package/lib/src/config/types.d.ts.map +1 -1
- package/lib/src/contexts/TokensContext.d.ts.map +1 -1
- package/lib/src/exports/executor.d.ts +1 -1
- package/lib/src/exports/executor.d.ts.map +1 -1
- package/lib/src/icons/ChainIcons.d.ts.map +1 -1
- package/lib/src/icons/Chains/LINEA.d.ts +4 -0
- package/lib/src/icons/Chains/LINEA.d.ts.map +1 -0
- package/lib/src/icons/Chains/POLY.d.ts +2 -2
- package/lib/src/icons/Chains/POLY.d.ts.map +1 -1
- package/lib/src/icons/Chains/SONIC.d.ts +4 -0
- package/lib/src/icons/Chains/SONIC.d.ts.map +1 -0
- package/lib/src/icons/SvgDefs.d.ts.map +1 -1
- package/lib/src/icons/TokenIcons.d.ts.map +1 -1
- package/lib/src/icons/Tokens/POLY.d.ts.map +1 -1
- package/lib/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
- package/lib/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/lib/src/utils/coingecko.d.ts.map +1 -1
- package/lib/src/utils/sdkv2.d.ts +1 -1
- package/lib/src/utils/sdkv2.d.ts.map +1 -1
- package/lib/src/utils/wallet/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/GasSlider/index.d.ts +1 -0
- package/lib/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{sui-wX1yJDdB.js → sui-BCJA_cYx.js} +1 -1
- package/lib/{sui-D17vikGB.mjs → sui-BJC_JOkP.mjs} +3 -3
- package/lib/{sui-jsmS--zo.mjs → sui-B_AxArCa.mjs} +31 -31
- package/lib/{sui-OtX0-aiw.js → sui-Bdmfxpd2.js} +1 -1
- package/lib/{swapHorizontal-I9IHNlcX.mjs → swapHorizontal-CGVqXEEp.mjs} +1 -1
- package/lib/{swapHorizontal-CaiPRfjP.js → swapHorizontal-Wp81JSgX.js} +1 -1
- package/lib/{swapHorizontalBold-COXm4Eoq.js → swapHorizontalBold-D70amlcg.js} +1 -1
- package/lib/{swapHorizontalBold-DjCg3Gvp.mjs → swapHorizontalBold-DfykA661.mjs} +1 -1
- package/lib/{swapHorizontalMedium-BufndsqW.js → swapHorizontalMedium-B92n1mhC.js} +1 -1
- package/lib/{swapHorizontalMedium-D5Op20PE.mjs → swapHorizontalMedium-C39AY5jR.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-DOhWyq65.js → swapHorizontalRoundedBold-CWEgSWL3.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-DT-dVJCx.mjs → swapHorizontalRoundedBold-DHWf4C2R.mjs} +1 -1
- package/lib/{swapVertical--HMMmuaw.mjs → swapVertical-BpTJ-r5m.mjs} +1 -1
- package/lib/{swapVertical-BC9LFE7N.js → swapVertical-DbS3f5xB.js} +1 -1
- package/lib/{telegram-CxCcJyxh.mjs → telegram-CNeTqCXy.mjs} +1 -1
- package/lib/{telegram-FZjehBdN.js → telegram-DK-OaZof.js} +1 -1
- package/lib/{three-dots-CuFQnzau.mjs → three-dots-BK0Ca5f9.mjs} +1 -1
- package/lib/{three-dots-zFnxhtH1.js → three-dots-CLOJZeqn.js} +1 -1
- package/lib/{tokens-BBDYlW5N.js → tokens-BVFCrwUI.js} +1 -1
- package/lib/{tokens-Ro6NgarI.mjs → tokens-BtPkpuCj.mjs} +3 -3
- package/lib/{twitch-pwuV-z6u.js → twitch-6sCGBDD_.js} +1 -1
- package/lib/{twitch-Cn9a4jgU.mjs → twitch-RQqv2Pha.mjs} +1 -1
- package/lib/{twitterIcon-C5XFX-OQ.js → twitterIcon-A2SY7Ljz.js} +1 -1
- package/lib/{twitterIcon-D98sKvbq.mjs → twitterIcon-C8wIxAQv.mjs} +1 -1
- package/lib/{units-BVg9f9bp.js → units-BrJ4CYDZ.js} +1 -1
- package/lib/{units-De4Es9C-.mjs → units-CLOrp1Nk.mjs} +24 -24
- package/lib/{unsignedTransaction-3gDumn1W.js → unsignedTransaction-BwT180qj.js} +1 -1
- package/lib/{unsignedTransaction-DmrfJNQf.mjs → unsignedTransaction-DkC9OIgh.mjs} +17 -17
- package/lib/{verify-BxlOfP9w.mjs → verify-CXS0qPBz.mjs} +1 -1
- package/lib/{verify-D1TEwpVN.js → verify-DnxzVYqj.js} +1 -1
- package/lib/{verify-filled-BrR7ST9b.js → verify-filled-BOz9hX3w.js} +1 -1
- package/lib/{verify-filled-yMiXBbCQ.mjs → verify-filled-DOsmzDzC.mjs} +1 -1
- package/lib/{w3m-modal-luSHEfx4.mjs → w3m-modal-Cdafmb0Z.mjs} +2 -2
- package/lib/{w3m-modal-BGlhUPJA.js → w3m-modal-CpYUxfVT.js} +1 -1
- package/lib/{wallet-CvHL82h-.js → wallet-Bc87h19O.js} +1 -1
- package/lib/{wallet-CEtYecn_.mjs → wallet-D3sDbpnL.mjs} +1 -1
- package/lib/{wallet-placeholder-Deq6znRH.mjs → wallet-placeholder-CsEk6mnJ.mjs} +1 -1
- package/lib/{wallet-placeholder-C4f_-N7F.js → wallet-placeholder-D60KEgcO.js} +1 -1
- package/lib/{walletconnect-BBY1yZEn.mjs → walletconnect-D44C2RUp.mjs} +1 -1
- package/lib/{walletconnect-CbujsbqX.js → walletconnect-isfAM6mU.js} +1 -1
- package/lib/{warning-circle-cokTC_ks.mjs → warning-circle-D6V7bjdk.mjs} +1 -1
- package/lib/{warning-circle-iBEa0DFJ.js → warning-circle-DKsp8DlH.js} +1 -1
- package/lib/{web3-IDpqtkwB.js → web3-DgUW0FuE.js} +1 -1
- package/lib/{web3-CevzYKNd.mjs → web3-L0yKkQfC.mjs} +1 -1
- package/lib/{x-CNsQuYZX.mjs → x-CfYfR6N2.mjs} +1 -1
- package/lib/{x-FvnYgr2g.js → x-D1ju5P9d.js} +1 -1
- package/package.json +30 -28
- package/lib/address-CSWlEusF.js +0 -15
- package/lib/constants-CBdrF4sv.js +0 -1
- package/lib/create-CRa9FZnZ.mjs +0 -18
- package/lib/solana-BHr-TCKL.js +0 -1
- package/lib/solana-Dhrl0nvx.mjs +0 -18
|
@@ -5,7 +5,7 @@ var Ci = (r) => {
|
|
|
5
5
|
var ma = (r, t, e) => t in r ? wa(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
6
6
|
var W = (r, t, e) => ma(r, typeof t != "symbol" ? t + "" : t, e), Bs = (r, t, e) => t.has(r) || Ci("Cannot " + e);
|
|
7
7
|
var l = (r, t, e) => (Bs(r, t, "read from private field"), e ? e.call(r) : t.get(r)), A = (r, t, e) => t.has(r) ? Ci("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), h = (r, t, e, n) => (Bs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e), I = (r, t, e) => (Bs(r, t, "access private method"), e);
|
|
8
|
-
var
|
|
8
|
+
var Dr = (r, t, e, n) => ({
|
|
9
9
|
set _(s) {
|
|
10
10
|
h(r, t, s, e);
|
|
11
11
|
},
|
|
@@ -13,8 +13,8 @@ var Tr = (r, t, e, n) => ({
|
|
|
13
13
|
return l(r, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import { b as Na, a as _e, j as Ls, g as J, f as R, d as yt, t as _n, k as ir, i as mo, m as ka, l as va, n as hn, C as dr, o as Sa, L as Ra, T as Oa, p as
|
|
16
|
+
import { bj as j, bs as b, bv as S, bL as rt, bk as T, br as Ut, bM as po, bN as Ao, bO as qr, bP as Wr, bQ as ya, bR as Hr, bn as ba, bo as xs, bS as Ea, bl as wo, bT as Qt, bU as F, d as Pi, bV as Ba, bW as xa, bX as gn, bq as ut, bw as Ca, ad as ct, au as Xn, by as cr, ah as q, bA as at, az as kt, bB as Pa, bY as Ft, bu as Kt, bZ as Ia, bt as Bt } from "./address-BkeBsCZD.mjs";
|
|
17
|
+
import { b as Na, a as _e, j as Ls, g as J, f as R, d as yt, t as _n, k as ir, i as mo, m as ka, l as va, n as hn, C as dr, o as Sa, L as Ra, T as Oa, p as Ta, c as Us, F as Ii, E as Da, A as Fa } from "./contract-C26uilM9.mjs";
|
|
18
18
|
const Xr = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
19
19
|
let Fr = null;
|
|
20
20
|
function La(r) {
|
|
@@ -167,7 +167,7 @@ function Ur(r) {
|
|
|
167
167
|
throw new Error("missing signal; should not happen");
|
|
168
168
|
return r.checkSignal(), r;
|
|
169
169
|
}
|
|
170
|
-
var An, wn, Ot, Yt, mn, yn, $, At, qt, Ue, Me, Qe, Gt,
|
|
170
|
+
var An, wn, Ot, Yt, mn, yn, $, At, qt, Ue, Me, Qe, Gt, Tt, pe, Ge, lr;
|
|
171
171
|
const os = class os {
|
|
172
172
|
/**
|
|
173
173
|
* Create a new FetchRequest instance with default values.
|
|
@@ -191,9 +191,9 @@ const os = class os {
|
|
|
191
191
|
A(this, Me);
|
|
192
192
|
A(this, Qe);
|
|
193
193
|
A(this, Gt);
|
|
194
|
-
A(this,
|
|
194
|
+
A(this, Tt);
|
|
195
195
|
A(this, pe);
|
|
196
|
-
h(this, yn, String(t)), h(this, An, !1), h(this, wn, !0), h(this, Ot, {}), h(this, Yt, ""), h(this, mn, 3e5), h(this,
|
|
196
|
+
h(this, yn, String(t)), h(this, An, !1), h(this, wn, !0), h(this, Ot, {}), h(this, Yt, ""), h(this, mn, 3e5), h(this, Tt, {
|
|
197
197
|
slotInterval: Ja,
|
|
198
198
|
maxAttempts: Ha
|
|
199
199
|
}), h(this, pe, null);
|
|
@@ -410,14 +410,14 @@ const os = class os {
|
|
|
410
410
|
h(this, pe, t);
|
|
411
411
|
}
|
|
412
412
|
toString() {
|
|
413
|
-
return `<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${l(this, $) ?
|
|
413
|
+
return `<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${l(this, $) ? T(l(this, $)) : "null"}>`;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* Update the throttle parameters used to determine maximum
|
|
417
417
|
* attempts and exponential-backoff properties.
|
|
418
418
|
*/
|
|
419
419
|
setThrottleParams(t) {
|
|
420
|
-
t.slotInterval != null && (l(this,
|
|
420
|
+
t.slotInterval != null && (l(this, Tt).slotInterval = t.slotInterval), t.maxAttempts != null && (l(this, Tt).maxAttempts = t.maxAttempts);
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* Resolves to the response by sending the request.
|
|
@@ -453,7 +453,7 @@ const os = class os {
|
|
|
453
453
|
*/
|
|
454
454
|
clone() {
|
|
455
455
|
const t = new os(this.url);
|
|
456
|
-
return h(t, Yt, l(this, Yt)), l(this, $) && h(t, $, l(this, $)), h(t, At, l(this, At)), h(t, Ot, Object.assign({}, l(this, Ot))), h(t, qt, l(this, qt)), this.allowGzip && (t.allowGzip = !0), t.timeout = this.timeout, this.allowInsecureAuthentication && (t.allowInsecureAuthentication = !0), h(t, Ue, l(this, Ue)), h(t, Me, l(this, Me)), h(t, Qe, l(this, Qe)), h(t,
|
|
456
|
+
return h(t, Yt, l(this, Yt)), l(this, $) && h(t, $, l(this, $)), h(t, At, l(this, At)), h(t, Ot, Object.assign({}, l(this, Ot))), h(t, qt, l(this, qt)), this.allowGzip && (t.allowGzip = !0), t.timeout = this.timeout, this.allowInsecureAuthentication && (t.allowInsecureAuthentication = !0), h(t, Ue, l(this, Ue)), h(t, Me, l(this, Me)), h(t, Qe, l(this, Qe)), h(t, Tt, Object.assign({}, l(this, Tt))), h(t, pe, l(this, pe)), t;
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* Locks all static configuration for gateways and FetchGetUrlFunc
|
|
@@ -533,9 +533,9 @@ const os = class os {
|
|
|
533
533
|
return Eo(t);
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
An = new WeakMap(), wn = new WeakMap(), Ot = new WeakMap(), Yt = new WeakMap(), mn = new WeakMap(), yn = new WeakMap(), $ = new WeakMap(), At = new WeakMap(), qt = new WeakMap(), Ue = new WeakMap(), Me = new WeakMap(), Qe = new WeakMap(), Gt = new WeakMap(),
|
|
536
|
+
An = new WeakMap(), wn = new WeakMap(), Ot = new WeakMap(), Yt = new WeakMap(), mn = new WeakMap(), yn = new WeakMap(), $ = new WeakMap(), At = new WeakMap(), qt = new WeakMap(), Ue = new WeakMap(), Me = new WeakMap(), Qe = new WeakMap(), Gt = new WeakMap(), Tt = new WeakMap(), pe = new WeakMap(), Ge = new WeakSet(), lr = async function(t, e, n, s, i) {
|
|
537
537
|
var d, f, p;
|
|
538
|
-
if (t >= l(this,
|
|
538
|
+
if (t >= l(this, Tt).maxAttempts)
|
|
539
539
|
return i.makeServerError("exceeded maximum retry limit");
|
|
540
540
|
S(ki() <= e, "timeout", "TIMEOUT", {
|
|
541
541
|
operation: "request.send",
|
|
@@ -572,7 +572,7 @@ An = new WeakMap(), wn = new WeakMap(), Ot = new WeakMap(), Yt = new WeakMap(),
|
|
|
572
572
|
return u;
|
|
573
573
|
} else if (u.statusCode === 429 && (this.retryFunc == null || await this.retryFunc(o, u, t))) {
|
|
574
574
|
const w = u.headers["retry-after"];
|
|
575
|
-
let m = l(this,
|
|
575
|
+
let m = l(this, Tt).slotInterval * Math.trunc(Math.random() * Math.pow(2, t));
|
|
576
576
|
return typeof w == "string" && w.match(/^[1-9][0-9]*$/) && (m = parseInt(w)), I(f = o.clone(), Ge, lr).call(f, t + 1, e, m, s, u);
|
|
577
577
|
}
|
|
578
578
|
if (this.processFunc) {
|
|
@@ -581,7 +581,7 @@ An = new WeakMap(), wn = new WeakMap(), Ot = new WeakMap(), Yt = new WeakMap(),
|
|
|
581
581
|
u = await this.processFunc(o, u);
|
|
582
582
|
} catch (w) {
|
|
583
583
|
(w.throttle == null || typeof w.stall != "number") && u.makeServerError("error in post-processing function", w).assertOk();
|
|
584
|
-
let m = l(this,
|
|
584
|
+
let m = l(this, Tt).slotInterval * Math.trunc(Math.random() * Math.pow(2, t));
|
|
585
585
|
return w.stall >= 0 && (m = w.stall), I(p = o.clone(), Ge, lr).call(p, t + 1, e, m, s, u);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
@@ -600,7 +600,7 @@ const yi = class yi {
|
|
|
600
600
|
h(this, Br, t), h(this, xr, e), h(this, Cr, Object.keys(n).reduce((o, a) => (o[a.toLowerCase()] = String(n[a]), o), {})), h(this, wt, s == null ? null : new Uint8Array(s)), h(this, bn, i || null), h(this, He, { message: "" });
|
|
601
601
|
}
|
|
602
602
|
toString() {
|
|
603
|
-
return `<FetchResponse status=${this.statusCode} body=${l(this, wt) ?
|
|
603
|
+
return `<FetchResponse status=${this.statusCode} body=${l(this, wt) ? T(l(this, wt)) : "null"}>`;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* The response status code.
|
|
@@ -807,12 +807,12 @@ function xo(r, t) {
|
|
|
807
807
|
e(t + 1 + n);
|
|
808
808
|
const s = vi(r, t + 1, n);
|
|
809
809
|
e(t + 1 + n + s);
|
|
810
|
-
const i =
|
|
810
|
+
const i = T(r.slice(t + 1 + n, t + 1 + n + s));
|
|
811
811
|
return { consumed: 1 + n + s, result: i };
|
|
812
812
|
} else if (r[t] >= 128) {
|
|
813
813
|
const n = r[t] - 128;
|
|
814
814
|
e(t + 1 + n);
|
|
815
|
-
const s =
|
|
815
|
+
const s = T(r.slice(t + 1, t + 1 + n));
|
|
816
816
|
return { consumed: 1 + n, result: s };
|
|
817
817
|
}
|
|
818
818
|
return { consumed: 1, result: Ya(r[t]) };
|
|
@@ -1178,12 +1178,12 @@ class ic extends Io {
|
|
|
1178
1178
|
for (let x = 0; x < 16; x++, e += 4)
|
|
1179
1179
|
he[x] = t.getUint32(e), fe[x] = t.getUint32(e += 4);
|
|
1180
1180
|
for (let x = 16; x < 80; x++) {
|
|
1181
|
-
const
|
|
1181
|
+
const D = he[x - 15] | 0, v = fe[x - 15] | 0, C = F.rotrSH(D, v, 1) ^ F.rotrSH(D, v, 8) ^ F.shrSH(D, v, 7), O = F.rotrSL(D, v, 1) ^ F.rotrSL(D, v, 8) ^ F.shrSL(D, v, 7), k = he[x - 2] | 0, H = fe[x - 2] | 0, Q = F.rotrSH(k, H, 19) ^ F.rotrBH(k, H, 61) ^ F.shrSH(k, H, 6), G = F.rotrSL(k, H, 19) ^ F.rotrBL(k, H, 61) ^ F.shrSL(k, H, 6), X = F.add4L(O, G, fe[x - 7], fe[x - 16]), nt = F.add4H(X, C, Q, he[x - 7], he[x - 16]);
|
|
1182
1182
|
he[x] = nt | 0, fe[x] = X | 0;
|
|
1183
1183
|
}
|
|
1184
1184
|
let { Ah: n, Al: s, Bh: i, Bl: o, Ch: a, Cl: c, Dh: u, Dl: d, Eh: f, El: p, Fh: w, Fl: m, Gh: g, Gl: y, Hh: E, Hl: N } = this;
|
|
1185
1185
|
for (let x = 0; x < 80; x++) {
|
|
1186
|
-
const
|
|
1186
|
+
const D = F.rotrSH(f, p, 14) ^ F.rotrSH(f, p, 18) ^ F.rotrBH(f, p, 41), v = F.rotrSL(f, p, 14) ^ F.rotrSL(f, p, 18) ^ F.rotrBL(f, p, 41), C = f & w ^ ~f & g, O = p & m ^ ~p & y, k = F.add5L(N, v, O, sc[x], fe[x]), H = F.add5H(k, E, D, C, rc[x], he[x]), Q = k | 0, G = F.rotrSH(n, s, 28) ^ F.rotrBH(n, s, 34) ^ F.rotrBH(n, s, 39), X = F.rotrSL(n, s, 28) ^ F.rotrBL(n, s, 34) ^ F.rotrBL(n, s, 39), nt = n & i ^ n & a ^ i & a, Mt = s & o ^ s & c ^ o & c;
|
|
1187
1187
|
E = g | 0, N = y | 0, g = w | 0, y = m | 0, w = f | 0, m = p | 0, { h: f, l: p } = F.add(u | 0, d | 0, H | 0, Q | 0), u = a | 0, d = c | 0, a = i | 0, c = o | 0, i = n | 0, o = s | 0;
|
|
1188
1188
|
const B = F.add3L(Q, X, Mt);
|
|
1189
1189
|
n = F.add3H(B, H, G, nt), s = B | 0;
|
|
@@ -1207,7 +1207,7 @@ function oc() {
|
|
|
1207
1207
|
return Pi.global;
|
|
1208
1208
|
throw new Error("unable to locate global object");
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const Ti = oc(), Di = Ti.crypto || Ti.msCrypto;
|
|
1211
1211
|
function ac(r) {
|
|
1212
1212
|
switch (r) {
|
|
1213
1213
|
case "sha256":
|
|
@@ -1221,16 +1221,16 @@ function Ou(r, t) {
|
|
|
1221
1221
|
const e = { sha256: ds, sha512: oi }[r];
|
|
1222
1222
|
return b(e != null, "invalid hmac algorithm", "algorithm", r), fs.create(e, t);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Tu(r, t, e, n, s) {
|
|
1225
1225
|
const i = { sha256: ds, sha512: oi }[s];
|
|
1226
1226
|
return b(i != null, "invalid pbkdf2 algorithm", "algorithm", s), Xa(i, r, t, { c: e, dkLen: n });
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1229
|
-
S(
|
|
1228
|
+
function Du(r) {
|
|
1229
|
+
S(Di != null, "platform does not support secure random numbers", "UNSUPPORTED_OPERATION", {
|
|
1230
1230
|
operation: "randomBytes"
|
|
1231
1231
|
}), b(Number.isInteger(r) && r > 0 && r <= 1024, "invalid length", "length", r);
|
|
1232
1232
|
const t = new Uint8Array(r);
|
|
1233
|
-
return
|
|
1233
|
+
return Di.getRandomValues(t), t;
|
|
1234
1234
|
}
|
|
1235
1235
|
const No = function(r) {
|
|
1236
1236
|
return ac("sha256").update(r).digest();
|
|
@@ -1238,7 +1238,7 @@ const No = function(r) {
|
|
|
1238
1238
|
let ko = No, vo = !1;
|
|
1239
1239
|
function or(r) {
|
|
1240
1240
|
const t = j(r, "data");
|
|
1241
|
-
return
|
|
1241
|
+
return T(ko(t));
|
|
1242
1242
|
}
|
|
1243
1243
|
or._ = No;
|
|
1244
1244
|
or.lock = function() {
|
|
@@ -1565,14 +1565,14 @@ function Pc(r, t) {
|
|
|
1565
1565
|
const e = new Array(t.length), n = t.reduce((i, o, a) => r.is0(o) ? i : (e[a] = i, r.mul(i, o)), r.ONE), s = r.inv(n);
|
|
1566
1566
|
return t.reduceRight((i, o, a) => r.is0(o) ? i : (e[a] = r.mul(i, e[a]), r.mul(i, o)), s), e;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function To(r, t) {
|
|
1569
1569
|
const e = t !== void 0 ? t : r.toString(2).length, n = Math.ceil(e / 8);
|
|
1570
1570
|
return { nBitLength: e, nByteLength: n };
|
|
1571
1571
|
}
|
|
1572
1572
|
function Ic(r, t, e = !1, n = {}) {
|
|
1573
1573
|
if (r <= et)
|
|
1574
1574
|
throw new Error(`Expected Field ORDER > 0, got ${r}`);
|
|
1575
|
-
const { nBitLength: s, nByteLength: i } =
|
|
1575
|
+
const { nBitLength: s, nByteLength: i } = To(r, t);
|
|
1576
1576
|
if (i > 2048)
|
|
1577
1577
|
throw new Error("Field lengths over 2048 bytes are not supported");
|
|
1578
1578
|
const o = Ec(r), a = Object.freeze({
|
|
@@ -1618,18 +1618,18 @@ function Ic(r, t, e = !1, n = {}) {
|
|
|
1618
1618
|
});
|
|
1619
1619
|
return Object.freeze(a);
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function Do(r) {
|
|
1622
1622
|
if (typeof r != "bigint")
|
|
1623
1623
|
throw new Error("field order must be bigint");
|
|
1624
1624
|
const t = r.toString(2).length;
|
|
1625
1625
|
return Math.ceil(t / 8);
|
|
1626
1626
|
}
|
|
1627
1627
|
function Fo(r) {
|
|
1628
|
-
const t =
|
|
1628
|
+
const t = Do(r);
|
|
1629
1629
|
return t + Math.ceil(t / 2);
|
|
1630
1630
|
}
|
|
1631
1631
|
function Nc(r, t, e = !1) {
|
|
1632
|
-
const n = r.length, s =
|
|
1632
|
+
const n = r.length, s = Do(t), i = Fo(t);
|
|
1633
1633
|
if (n < 16 || n < i || n > 1024)
|
|
1634
1634
|
throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);
|
|
1635
1635
|
const o = e ? $e(r) : ci(r), a = ft(o, t - Z) + Z;
|
|
@@ -1690,8 +1690,8 @@ function vc(r, t) {
|
|
|
1690
1690
|
const g = m * c;
|
|
1691
1691
|
let y = Number(o & f);
|
|
1692
1692
|
o >>= w, y > c && (y -= p, o += Is);
|
|
1693
|
-
const E = g, N = g + Math.abs(y) - 1, x = m % 2 !== 0,
|
|
1694
|
-
y === 0 ? d = d.add(e(x, i[E])) : u = u.add(e(
|
|
1693
|
+
const E = g, N = g + Math.abs(y) - 1, x = m % 2 !== 0, D = y < 0;
|
|
1694
|
+
y === 0 ? d = d.add(e(x, i[E])) : u = u.add(e(D, i[N]));
|
|
1695
1695
|
}
|
|
1696
1696
|
return { p: u, f: d };
|
|
1697
1697
|
},
|
|
@@ -1712,7 +1712,7 @@ function Lo(r) {
|
|
|
1712
1712
|
nBitLength: "isSafeInteger",
|
|
1713
1713
|
nByteLength: "isSafeInteger"
|
|
1714
1714
|
}), Object.freeze({
|
|
1715
|
-
...
|
|
1715
|
+
...To(r.n, r.nBitLength),
|
|
1716
1716
|
...r,
|
|
1717
1717
|
p: r.Fp.ORDER
|
|
1718
1718
|
});
|
|
@@ -1741,7 +1741,7 @@ function Sc(r) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
return Object.freeze({ ...t });
|
|
1743
1743
|
}
|
|
1744
|
-
const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc,
|
|
1744
|
+
const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc, De = {
|
|
1745
1745
|
// asn.1 DER encoding utils
|
|
1746
1746
|
Err: class extends Error {
|
|
1747
1747
|
constructor(t = "") {
|
|
@@ -1749,7 +1749,7 @@ const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc, Te = {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
},
|
|
1751
1751
|
_parseInt(r) {
|
|
1752
|
-
const { Err: t } =
|
|
1752
|
+
const { Err: t } = De;
|
|
1753
1753
|
if (r.length < 2 || r[0] !== 2)
|
|
1754
1754
|
throw new t("Invalid signature integer tag");
|
|
1755
1755
|
const e = r[1], n = r.subarray(2, e + 2);
|
|
@@ -1762,7 +1762,7 @@ const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc, Te = {
|
|
|
1762
1762
|
return { d: Rc(n), l: r.subarray(e + 2) };
|
|
1763
1763
|
},
|
|
1764
1764
|
toSig(r) {
|
|
1765
|
-
const { Err: t } =
|
|
1765
|
+
const { Err: t } = De, e = typeof r == "string" ? Oc(r) : r;
|
|
1766
1766
|
if (!(e instanceof Uint8Array))
|
|
1767
1767
|
throw new Error("ui8a expected");
|
|
1768
1768
|
let n = e.length;
|
|
@@ -1770,7 +1770,7 @@ const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc, Te = {
|
|
|
1770
1770
|
throw new t("Invalid signature tag");
|
|
1771
1771
|
if (e[1] !== n - 2)
|
|
1772
1772
|
throw new t("Invalid signature: incorrect length");
|
|
1773
|
-
const { d: s, l: i } =
|
|
1773
|
+
const { d: s, l: i } = De._parseInt(e.subarray(2)), { d: o, l: a } = De._parseInt(i);
|
|
1774
1774
|
if (a.length)
|
|
1775
1775
|
throw new t("Invalid signature: left bytes after parsing");
|
|
1776
1776
|
return { r: s, s: o };
|
|
@@ -1786,7 +1786,7 @@ const { bytesToNumberBE: Rc, hexToBytes: Oc } = wc, Te = {
|
|
|
1786
1786
|
BigInt(2);
|
|
1787
1787
|
const Mi = BigInt(3);
|
|
1788
1788
|
BigInt(4);
|
|
1789
|
-
function
|
|
1789
|
+
function Tc(r) {
|
|
1790
1790
|
const t = Sc(r), { Fp: e } = t, n = t.toBytes || ((m, g, y) => {
|
|
1791
1791
|
const E = g.toAffine();
|
|
1792
1792
|
return pr(Uint8Array.from([4]), e.toBytes(E.x), e.toBytes(E.y));
|
|
@@ -1906,7 +1906,7 @@ function Dc(r) {
|
|
|
1906
1906
|
*/
|
|
1907
1907
|
equals(g) {
|
|
1908
1908
|
d(g);
|
|
1909
|
-
const { px: y, py: E, pz: N } = this, { px: x, py:
|
|
1909
|
+
const { px: y, py: E, pz: N } = this, { px: x, py: D, pz: v } = g, C = e.eql(e.mul(y, v), e.mul(x, N)), O = e.eql(e.mul(E, v), e.mul(D, N));
|
|
1910
1910
|
return C && O;
|
|
1911
1911
|
}
|
|
1912
1912
|
/**
|
|
@@ -1920,9 +1920,9 @@ function Dc(r) {
|
|
|
1920
1920
|
// https://eprint.iacr.org/2015/1060, algorithm 3
|
|
1921
1921
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
1922
1922
|
double() {
|
|
1923
|
-
const { a: g, b: y } = t, E = e.mul(y, Mi), { px: N, py: x, pz:
|
|
1924
|
-
let v = e.ZERO, C = e.ZERO, O = e.ZERO, k = e.mul(N, N), H = e.mul(x, x), Q = e.mul(
|
|
1925
|
-
return G = e.add(G, G), O = e.mul(N,
|
|
1923
|
+
const { a: g, b: y } = t, E = e.mul(y, Mi), { px: N, py: x, pz: D } = this;
|
|
1924
|
+
let v = e.ZERO, C = e.ZERO, O = e.ZERO, k = e.mul(N, N), H = e.mul(x, x), Q = e.mul(D, D), G = e.mul(N, x);
|
|
1925
|
+
return G = e.add(G, G), O = e.mul(N, D), O = e.add(O, O), v = e.mul(g, O), C = e.mul(E, Q), C = e.add(v, C), v = e.sub(H, C), C = e.add(H, C), C = e.mul(v, C), v = e.mul(G, v), O = e.mul(E, O), Q = e.mul(g, Q), G = e.sub(k, Q), G = e.mul(g, G), G = e.add(G, O), O = e.add(k, k), k = e.add(O, k), k = e.add(k, Q), k = e.mul(k, G), C = e.add(C, k), Q = e.mul(x, D), Q = e.add(Q, Q), k = e.mul(Q, G), v = e.sub(v, k), O = e.mul(Q, H), O = e.add(O, O), O = e.add(O, O), new f(v, C, O);
|
|
1926
1926
|
}
|
|
1927
1927
|
// Renes-Costello-Batina exception-free addition formula.
|
|
1928
1928
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -1930,13 +1930,13 @@ function Dc(r) {
|
|
|
1930
1930
|
// Cost: 12M + 0S + 3*a + 3*b3 + 23add.
|
|
1931
1931
|
add(g) {
|
|
1932
1932
|
d(g);
|
|
1933
|
-
const { px: y, py: E, pz: N } = this, { px: x, py:
|
|
1933
|
+
const { px: y, py: E, pz: N } = this, { px: x, py: D, pz: v } = g;
|
|
1934
1934
|
let C = e.ZERO, O = e.ZERO, k = e.ZERO;
|
|
1935
1935
|
const H = t.a, Q = e.mul(t.b, Mi);
|
|
1936
|
-
let G = e.mul(y, x), X = e.mul(E,
|
|
1936
|
+
let G = e.mul(y, x), X = e.mul(E, D), nt = e.mul(N, v), Mt = e.add(y, E), B = e.add(x, D);
|
|
1937
1937
|
Mt = e.mul(Mt, B), B = e.add(G, X), Mt = e.sub(Mt, B), B = e.add(y, N);
|
|
1938
1938
|
let P = e.add(x, v);
|
|
1939
|
-
return B = e.mul(B, P), P = e.add(G, nt), B = e.sub(B, P), P = e.add(E, N), C = e.add(
|
|
1939
|
+
return B = e.mul(B, P), P = e.add(G, nt), B = e.sub(B, P), P = e.add(E, N), C = e.add(D, v), P = e.mul(P, C), C = e.add(X, nt), P = e.sub(P, C), k = e.mul(H, B), C = e.mul(Q, nt), k = e.add(C, k), C = e.sub(X, k), k = e.add(X, k), O = e.mul(C, k), X = e.add(G, G), X = e.add(X, G), nt = e.mul(H, nt), B = e.mul(Q, B), X = e.add(X, nt), nt = e.sub(G, nt), nt = e.mul(H, nt), B = e.add(B, nt), G = e.mul(X, B), O = e.add(O, G), G = e.mul(P, B), C = e.mul(Mt, C), C = e.sub(C, G), G = e.mul(Mt, X), k = e.mul(P, k), k = e.add(k, G), new f(C, O, k);
|
|
1940
1940
|
}
|
|
1941
1941
|
subtract(g) {
|
|
1942
1942
|
return this.add(g.negate());
|
|
@@ -1964,10 +1964,10 @@ function Dc(r) {
|
|
|
1964
1964
|
const { endo: E } = t;
|
|
1965
1965
|
if (!E)
|
|
1966
1966
|
return w.unsafeLadder(this, g);
|
|
1967
|
-
let { k1neg: N, k1: x, k2neg:
|
|
1967
|
+
let { k1neg: N, k1: x, k2neg: D, k2: v } = E.splitScalar(g), C = y, O = y, k = this;
|
|
1968
1968
|
for (; x > se || v > se; )
|
|
1969
1969
|
x & Nt && (C = C.add(k)), v & Nt && (O = O.add(k)), k = k.double(), x >>= Nt, v >>= Nt;
|
|
1970
|
-
return N && (C = C.negate()),
|
|
1970
|
+
return N && (C = C.negate()), D && (O = O.negate()), O = new f(e.mul(O.px, E.beta), O.py, O.pz), C.add(O);
|
|
1971
1971
|
}
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Constant time multiplication.
|
|
@@ -1983,12 +1983,12 @@ function Dc(r) {
|
|
|
1983
1983
|
let y = g, E, N;
|
|
1984
1984
|
const { endo: x } = t;
|
|
1985
1985
|
if (x) {
|
|
1986
|
-
const { k1neg:
|
|
1986
|
+
const { k1neg: D, k1: v, k2neg: C, k2: O } = x.splitScalar(y);
|
|
1987
1987
|
let { p: k, f: H } = this.wNAF(v), { p: Q, f: G } = this.wNAF(O);
|
|
1988
|
-
k = w.constTimeNegate(
|
|
1988
|
+
k = w.constTimeNegate(D, k), Q = w.constTimeNegate(C, Q), Q = new f(e.mul(Q.px, x.beta), Q.py, Q.pz), E = k.add(Q), N = H.add(G);
|
|
1989
1989
|
} else {
|
|
1990
|
-
const { p:
|
|
1991
|
-
E =
|
|
1990
|
+
const { p: D, f: v } = this.wNAF(y);
|
|
1991
|
+
E = D, N = v;
|
|
1992
1992
|
}
|
|
1993
1993
|
return f.normalizeZ([E, N])[0];
|
|
1994
1994
|
}
|
|
@@ -1999,8 +1999,8 @@ function Dc(r) {
|
|
|
1999
1999
|
* @returns non-zero affine point
|
|
2000
2000
|
*/
|
|
2001
2001
|
multiplyAndAddUnsafe(g, y, E) {
|
|
2002
|
-
const N = f.BASE, x = (v, C) => C === se || C === Nt || !v.equals(N) ? v.multiplyUnsafe(C) : v.multiply(C),
|
|
2003
|
-
return
|
|
2002
|
+
const N = f.BASE, x = (v, C) => C === se || C === Nt || !v.equals(N) ? v.multiplyUnsafe(C) : v.multiply(C), D = x(this, y).add(x(g, E));
|
|
2003
|
+
return D.is0() ? void 0 : D;
|
|
2004
2004
|
}
|
|
2005
2005
|
// Converts Projective point to affine (x, y) coordinates.
|
|
2006
2006
|
// Can accept precomputed Z^-1 - for example, from invertBatch.
|
|
@@ -2008,12 +2008,12 @@ function Dc(r) {
|
|
|
2008
2008
|
toAffine(g) {
|
|
2009
2009
|
const { px: y, py: E, pz: N } = this, x = this.is0();
|
|
2010
2010
|
g == null && (g = x ? e.ONE : e.inv(N));
|
|
2011
|
-
const
|
|
2011
|
+
const D = e.mul(y, g), v = e.mul(E, g), C = e.mul(N, g);
|
|
2012
2012
|
if (x)
|
|
2013
2013
|
return { x: e.ZERO, y: e.ZERO };
|
|
2014
2014
|
if (!e.eql(C, e.ONE))
|
|
2015
2015
|
throw new Error("invZ was invalid");
|
|
2016
|
-
return { x:
|
|
2016
|
+
return { x: D, y: v };
|
|
2017
2017
|
}
|
|
2018
2018
|
isTorsionFree() {
|
|
2019
2019
|
const { h: g, isTorsionFree: y } = t;
|
|
@@ -2044,7 +2044,7 @@ function Dc(r) {
|
|
|
2044
2044
|
isWithinCurveOrder: o
|
|
2045
2045
|
};
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function Dc(r) {
|
|
2048
2048
|
const t = Lo(r);
|
|
2049
2049
|
return Sr(t, {
|
|
2050
2050
|
hash: "hash",
|
|
@@ -2057,7 +2057,7 @@ function Tc(r) {
|
|
|
2057
2057
|
}), Object.freeze({ lowS: !0, ...t });
|
|
2058
2058
|
}
|
|
2059
2059
|
function Fc(r) {
|
|
2060
|
-
const t =
|
|
2060
|
+
const t = Dc(r), { Fp: e, n } = t, s = e.BYTES + 1, i = 2 * e.BYTES + 1;
|
|
2061
2061
|
function o(B) {
|
|
2062
2062
|
return se < B && B < e.ORDER;
|
|
2063
2063
|
}
|
|
@@ -2067,7 +2067,7 @@ function Fc(r) {
|
|
|
2067
2067
|
function c(B) {
|
|
2068
2068
|
return Gs(B, n);
|
|
2069
2069
|
}
|
|
2070
|
-
const { ProjectivePoint: u, normPrivateKeyToScalar: d, weierstrassEquation: f, isWithinCurveOrder: p } =
|
|
2070
|
+
const { ProjectivePoint: u, normPrivateKeyToScalar: d, weierstrassEquation: f, isWithinCurveOrder: p } = Tc({
|
|
2071
2071
|
...t,
|
|
2072
2072
|
toBytes(B, P, U) {
|
|
2073
2073
|
const z = P.toAffine(), V = e.toBytes(z.x), _ = pr;
|
|
@@ -2110,7 +2110,7 @@ function Fc(r) {
|
|
|
2110
2110
|
// DER encoded ECDSA signature
|
|
2111
2111
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
|
2112
2112
|
static fromDER(P) {
|
|
2113
|
-
const { r: U, s: z } =
|
|
2113
|
+
const { r: U, s: z } = De.toSig(Rt("DER", P));
|
|
2114
2114
|
return new E(U, z);
|
|
2115
2115
|
}
|
|
2116
2116
|
assertValidity() {
|
|
@@ -2146,7 +2146,7 @@ function Fc(r) {
|
|
|
2146
2146
|
return tr(this.toDERHex());
|
|
2147
2147
|
}
|
|
2148
2148
|
toDERHex() {
|
|
2149
|
-
return
|
|
2149
|
+
return De.hexFromSig({ r: this.r, s: this.s });
|
|
2150
2150
|
}
|
|
2151
2151
|
// padded bytes of r, then padded bytes of s
|
|
2152
2152
|
toCompactRawBytes() {
|
|
@@ -2188,14 +2188,14 @@ function Fc(r) {
|
|
|
2188
2188
|
function x(B, P = !0) {
|
|
2189
2189
|
return u.fromPrivateKey(B).toRawBytes(P);
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function D(B) {
|
|
2192
2192
|
const P = B instanceof Uint8Array, U = typeof B == "string", z = (P || U) && B.length;
|
|
2193
2193
|
return P ? z === s || z === i : U ? z === 2 * s || z === 2 * i : B instanceof u;
|
|
2194
2194
|
}
|
|
2195
2195
|
function v(B, P, U = !0) {
|
|
2196
|
-
if (
|
|
2196
|
+
if (D(B))
|
|
2197
2197
|
throw new Error("first arg must be private key");
|
|
2198
|
-
if (!
|
|
2198
|
+
if (!D(P))
|
|
2199
2199
|
throw new Error("second arg must be public key");
|
|
2200
2200
|
return u.fromHex(P).multiply(d(B)).toRawBytes(U);
|
|
2201
2201
|
}
|
|
@@ -2257,7 +2257,7 @@ function Fc(r) {
|
|
|
2257
2257
|
try {
|
|
2258
2258
|
gt = E.fromDER(V);
|
|
2259
2259
|
} catch (vt) {
|
|
2260
|
-
if (!(vt instanceof
|
|
2260
|
+
if (!(vt instanceof De.Err))
|
|
2261
2261
|
throw vt;
|
|
2262
2262
|
gt = E.fromCompact(V);
|
|
2263
2263
|
}
|
|
@@ -2304,7 +2304,7 @@ function Uc(r, t) {
|
|
|
2304
2304
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
2305
2305
|
const Uo = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), Qi = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Mc = BigInt(1), Hs = BigInt(2), Gi = (r, t) => (r + t / Hs) / t;
|
|
2306
2306
|
function Qc(r) {
|
|
2307
|
-
const t = Uo, e = BigInt(3), n = BigInt(6), s = BigInt(11), i = BigInt(22), o = BigInt(23), a = BigInt(44), c = BigInt(88), u = r * r * r % t, d = u * u * r % t, f = bt(d, e, t) * d % t, p = bt(f, e, t) * d % t, w = bt(p, Hs, t) * u % t, m = bt(w, s, t) * w % t, g = bt(m, i, t) * m % t, y = bt(g, a, t) * g % t, E = bt(y, c, t) * y % t, N = bt(E, a, t) * g % t, x = bt(N, e, t) * d % t,
|
|
2307
|
+
const t = Uo, e = BigInt(3), n = BigInt(6), s = BigInt(11), i = BigInt(22), o = BigInt(23), a = BigInt(44), c = BigInt(88), u = r * r * r % t, d = u * u * r % t, f = bt(d, e, t) * d % t, p = bt(f, e, t) * d % t, w = bt(p, Hs, t) * u % t, m = bt(w, s, t) * w % t, g = bt(m, i, t) * m % t, y = bt(g, a, t) * g % t, E = bt(y, c, t) * y % t, N = bt(E, a, t) * g % t, x = bt(N, e, t) * d % t, D = bt(x, o, t) * m % t, v = bt(D, n, t) * u % t, C = bt(v, Hs, t);
|
|
2308
2308
|
if (!Js.eql(Js.sqr(C), r))
|
|
2309
2309
|
throw new Error("Cannot find square root");
|
|
2310
2310
|
return C;
|
|
@@ -2365,7 +2365,7 @@ const St = class St {
|
|
|
2365
2365
|
return l(this, En);
|
|
2366
2366
|
}
|
|
2367
2367
|
set r(t) {
|
|
2368
|
-
b(gn(t) === 32, "invalid r", "value", t), h(this, En,
|
|
2368
|
+
b(gn(t) === 32, "invalid r", "value", t), h(this, En, T(t));
|
|
2369
2369
|
}
|
|
2370
2370
|
/**
|
|
2371
2371
|
* The ``s`` value for a signature.
|
|
@@ -2375,7 +2375,7 @@ const St = class St {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
set s(t) {
|
|
2377
2377
|
b(gn(t) === 32, "invalid s", "value", t);
|
|
2378
|
-
const e =
|
|
2378
|
+
const e = T(t);
|
|
2379
2379
|
b(parseInt(e.substring(0, 3)) < 8, "non-canonical s", "value", e), h(this, Bn, e);
|
|
2380
2380
|
}
|
|
2381
2381
|
/**
|
|
@@ -2424,7 +2424,7 @@ const St = class St {
|
|
|
2424
2424
|
*/
|
|
2425
2425
|
get yParityAndS() {
|
|
2426
2426
|
const t = j(this.s);
|
|
2427
|
-
return this.yParity && (t[0] |= 128),
|
|
2427
|
+
return this.yParity && (t[0] |= 128), T(t);
|
|
2428
2428
|
}
|
|
2429
2429
|
/**
|
|
2430
2430
|
* The [[link-eip-2098]] compact representation.
|
|
@@ -2534,14 +2534,14 @@ const St = class St {
|
|
|
2534
2534
|
if (typeof t == "string") {
|
|
2535
2535
|
const u = j(t, "signature");
|
|
2536
2536
|
if (u.length === 64) {
|
|
2537
|
-
const d =
|
|
2538
|
-
return f[0] &= 127, new St(on, d,
|
|
2537
|
+
const d = T(u.slice(0, 32)), f = u.slice(32, 64), p = f[0] & 128 ? 28 : 27;
|
|
2538
|
+
return f[0] &= 127, new St(on, d, T(f), p);
|
|
2539
2539
|
}
|
|
2540
2540
|
if (u.length === 65) {
|
|
2541
|
-
const d =
|
|
2541
|
+
const d = T(u.slice(0, 32)), f = u.slice(32, 64);
|
|
2542
2542
|
e((f[0] & 128) === 0, "non-canonical s");
|
|
2543
2543
|
const p = St.getNormalizedV(u[64]);
|
|
2544
|
-
return new St(on, d,
|
|
2544
|
+
return new St(on, d, T(f), p);
|
|
2545
2545
|
}
|
|
2546
2546
|
e(!1, "invalid raw signature length");
|
|
2547
2547
|
}
|
|
@@ -2555,7 +2555,7 @@ const St = class St {
|
|
|
2555
2555
|
if (d != null) {
|
|
2556
2556
|
e(ct(d, 32), "invalid yParityAndS");
|
|
2557
2557
|
const f = j(d);
|
|
2558
|
-
return f[0] &= 127,
|
|
2558
|
+
return f[0] &= 127, T(f);
|
|
2559
2559
|
}
|
|
2560
2560
|
e(!1, "missing s");
|
|
2561
2561
|
}(t.s, t.yParityAndS);
|
|
@@ -2587,13 +2587,13 @@ const St = class St {
|
|
|
2587
2587
|
En = new WeakMap(), Bn = new WeakMap(), xn = new WeakMap(), Je = new WeakMap();
|
|
2588
2588
|
let Lt = St;
|
|
2589
2589
|
var Wt;
|
|
2590
|
-
const
|
|
2590
|
+
const Te = class Te {
|
|
2591
2591
|
/**
|
|
2592
2592
|
* Creates a new **SigningKey** for %%privateKey%%.
|
|
2593
2593
|
*/
|
|
2594
2594
|
constructor(t) {
|
|
2595
2595
|
A(this, Wt);
|
|
2596
|
-
b(gn(t) === 32, "invalid private key", "privateKey", "[REDACTED]"), h(this, Wt,
|
|
2596
|
+
b(gn(t) === 32, "invalid private key", "privateKey", "[REDACTED]"), h(this, Wt, T(t));
|
|
2597
2597
|
}
|
|
2598
2598
|
/**
|
|
2599
2599
|
* The private key.
|
|
@@ -2608,7 +2608,7 @@ const De = class De {
|
|
|
2608
2608
|
* characters long (the ``0x`` prefix and 130 hexadecimal nibbles).
|
|
2609
2609
|
*/
|
|
2610
2610
|
get publicKey() {
|
|
2611
|
-
return
|
|
2611
|
+
return Te.computePublicKey(l(this, Wt));
|
|
2612
2612
|
}
|
|
2613
2613
|
/**
|
|
2614
2614
|
* The compressed public key.
|
|
@@ -2618,7 +2618,7 @@ const De = class De {
|
|
|
2618
2618
|
* nibbles)
|
|
2619
2619
|
*/
|
|
2620
2620
|
get compressedPublicKey() {
|
|
2621
|
-
return
|
|
2621
|
+
return Te.computePublicKey(l(this, Wt), !0);
|
|
2622
2622
|
}
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Return the signature of the signed %%digest%%.
|
|
@@ -2657,8 +2657,8 @@ const De = class De {
|
|
|
2657
2657
|
* //_result:
|
|
2658
2658
|
*/
|
|
2659
2659
|
computeSharedSecret(t) {
|
|
2660
|
-
const e =
|
|
2661
|
-
return
|
|
2660
|
+
const e = Te.computePublicKey(t);
|
|
2661
|
+
return T(de.getSharedSecret(cr(l(this, Wt)), j(e), !1));
|
|
2662
2662
|
}
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Compute the public key for %%key%%, optionally %%compressed%%.
|
|
@@ -2689,14 +2689,14 @@ const De = class De {
|
|
|
2689
2689
|
let n = j(t, "key");
|
|
2690
2690
|
if (n.length === 32) {
|
|
2691
2691
|
const i = de.getPublicKey(n, !!e);
|
|
2692
|
-
return
|
|
2692
|
+
return T(i);
|
|
2693
2693
|
}
|
|
2694
2694
|
if (n.length === 64) {
|
|
2695
2695
|
const i = new Uint8Array(65);
|
|
2696
2696
|
i[0] = 4, i.set(n, 1), n = i;
|
|
2697
2697
|
}
|
|
2698
2698
|
const s = de.ProjectivePoint.fromHex(n);
|
|
2699
|
-
return
|
|
2699
|
+
return T(s.toRawBytes(e));
|
|
2700
2700
|
}
|
|
2701
2701
|
/**
|
|
2702
2702
|
* Returns the public key for the private key which produced the
|
|
@@ -2735,12 +2735,12 @@ const De = class De {
|
|
|
2735
2735
|
* addresses from parent public keys and chain codes.
|
|
2736
2736
|
*/
|
|
2737
2737
|
static addPoints(t, e, n) {
|
|
2738
|
-
const s = de.ProjectivePoint.fromHex(
|
|
2738
|
+
const s = de.ProjectivePoint.fromHex(Te.computePublicKey(t).substring(2)), i = de.ProjectivePoint.fromHex(Te.computePublicKey(e).substring(2));
|
|
2739
2739
|
return "0x" + s.add(i).toHex(!!n);
|
|
2740
2740
|
}
|
|
2741
2741
|
};
|
|
2742
2742
|
Wt = new WeakMap();
|
|
2743
|
-
let wr =
|
|
2743
|
+
let wr = Te;
|
|
2744
2744
|
function Gc(r) {
|
|
2745
2745
|
const t = q(r.from);
|
|
2746
2746
|
let n = R(r.nonce, "tx.nonce").toString(16);
|
|
@@ -2781,15 +2781,15 @@ function Jc(r) {
|
|
|
2781
2781
|
y = y & w | y << 1 & g >>> 1 | d(), k = k << 1 ^ w, H = (H ^ w) << 1 | w | 1;
|
|
2782
2782
|
N = k, x = 1 + H - k;
|
|
2783
2783
|
}
|
|
2784
|
-
let
|
|
2784
|
+
let D = n - 4;
|
|
2785
2785
|
return E.map((v) => {
|
|
2786
|
-
switch (v -
|
|
2786
|
+
switch (v - D) {
|
|
2787
2787
|
case 3:
|
|
2788
|
-
return
|
|
2788
|
+
return D + 65792 + (r[a++] << 16 | r[a++] << 8 | r[a++]);
|
|
2789
2789
|
case 2:
|
|
2790
|
-
return
|
|
2790
|
+
return D + 256 + (r[a++] << 8 | r[a++]);
|
|
2791
2791
|
case 1:
|
|
2792
|
-
return
|
|
2792
|
+
return D + r[a++];
|
|
2793
2793
|
default:
|
|
2794
2794
|
return v - 1;
|
|
2795
2795
|
}
|
|
@@ -3304,11 +3304,11 @@ function Ys(r) {
|
|
|
3304
3304
|
const e = sa(r);
|
|
3305
3305
|
for (; e.length; )
|
|
3306
3306
|
t = kt(ut([t, kt(e.pop())]));
|
|
3307
|
-
return
|
|
3307
|
+
return T(t);
|
|
3308
3308
|
}
|
|
3309
3309
|
function Cl(r, t) {
|
|
3310
3310
|
const e = t;
|
|
3311
|
-
return b(e <= 255, "DNS encoded label cannot exceed 255", "length", e),
|
|
3311
|
+
return b(e <= 255, "DNS encoded label cannot exceed 255", "length", e), T(ut(sa(r).map((n) => {
|
|
3312
3312
|
b(n.length <= e, `label ${JSON.stringify(r)} exceeds ${e} bytes`, "name", r);
|
|
3313
3313
|
const s = new Uint8Array(n.length + 1);
|
|
3314
3314
|
return s.set(n, 1), s[0] = s.length - 1, s;
|
|
@@ -3360,7 +3360,7 @@ function Ol(r, t) {
|
|
|
3360
3360
|
b(ct(r[e], 32), "invalid ${ param } hash", `value[${e}]`, r[e]);
|
|
3361
3361
|
return r;
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3363
|
+
function Tl(r) {
|
|
3364
3364
|
const t = hs(r);
|
|
3365
3365
|
b(Array.isArray(t) && (t.length === 9 || t.length === 6), "invalid field count for legacy transaction", "data", r);
|
|
3366
3366
|
const e = {
|
|
@@ -3370,7 +3370,7 @@ function Dl(r) {
|
|
|
3370
3370
|
gasLimit: Y(t[2], "gasLimit"),
|
|
3371
3371
|
to: ws(t[3]),
|
|
3372
3372
|
value: Y(t[4], "value"),
|
|
3373
|
-
data:
|
|
3373
|
+
data: T(t[5]),
|
|
3374
3374
|
chainId: tt
|
|
3375
3375
|
};
|
|
3376
3376
|
if (t.length === 6)
|
|
@@ -3388,7 +3388,7 @@ function Dl(r) {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
return e;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Dl(r, t) {
|
|
3392
3392
|
const e = [
|
|
3393
3393
|
K(r.nonce, "nonce"),
|
|
3394
3394
|
K(r.gasPrice || 0, "gasPrice"),
|
|
@@ -3422,7 +3422,7 @@ function Ai(r, t) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
function Fl(r) {
|
|
3424
3424
|
const t = hs(j(r).slice(1));
|
|
3425
|
-
b(Array.isArray(t) && (t.length === 9 || t.length === 12), "invalid field count for transaction type: 2", "data",
|
|
3425
|
+
b(Array.isArray(t) && (t.length === 9 || t.length === 12), "invalid field count for transaction type: 2", "data", T(r));
|
|
3426
3426
|
const e = {
|
|
3427
3427
|
type: 2,
|
|
3428
3428
|
chainId: Y(t[0], "chainId"),
|
|
@@ -3433,7 +3433,7 @@ function Fl(r) {
|
|
|
3433
3433
|
gasLimit: Y(t[4], "gasLimit"),
|
|
3434
3434
|
to: ws(t[5]),
|
|
3435
3435
|
value: Y(t[6], "value"),
|
|
3436
|
-
data:
|
|
3436
|
+
data: T(t[7]),
|
|
3437
3437
|
accessList: gi(t[8], "accessList")
|
|
3438
3438
|
};
|
|
3439
3439
|
return t.length === 9 || Ai(e, t.slice(9)), e;
|
|
@@ -3454,7 +3454,7 @@ function Ll(r, t) {
|
|
|
3454
3454
|
}
|
|
3455
3455
|
function Ul(r) {
|
|
3456
3456
|
const t = hs(j(r).slice(1));
|
|
3457
|
-
b(Array.isArray(t) && (t.length === 8 || t.length === 11), "invalid field count for transaction type: 1", "data",
|
|
3457
|
+
b(Array.isArray(t) && (t.length === 8 || t.length === 11), "invalid field count for transaction type: 1", "data", T(r));
|
|
3458
3458
|
const e = {
|
|
3459
3459
|
type: 1,
|
|
3460
3460
|
chainId: Y(t[0], "chainId"),
|
|
@@ -3463,7 +3463,7 @@ function Ul(r) {
|
|
|
3463
3463
|
gasLimit: Y(t[3], "gasLimit"),
|
|
3464
3464
|
to: ws(t[4]),
|
|
3465
3465
|
value: Y(t[5], "value"),
|
|
3466
|
-
data:
|
|
3466
|
+
data: T(t[6]),
|
|
3467
3467
|
accessList: gi(t[7], "accessList")
|
|
3468
3468
|
};
|
|
3469
3469
|
return t.length === 8 || Ai(e, t.slice(8)), e;
|
|
@@ -3495,7 +3495,7 @@ function Ql(r) {
|
|
|
3495
3495
|
});
|
|
3496
3496
|
t = t[0];
|
|
3497
3497
|
}
|
|
3498
|
-
b(Array.isArray(t) && (t.length === 11 || t.length === 14), `invalid field count for transaction type: ${e}`, "data",
|
|
3498
|
+
b(Array.isArray(t) && (t.length === 11 || t.length === 14), `invalid field count for transaction type: ${e}`, "data", T(r));
|
|
3499
3499
|
const s = {
|
|
3500
3500
|
type: 3,
|
|
3501
3501
|
chainId: Y(t[0], "chainId"),
|
|
@@ -3506,7 +3506,7 @@ function Ql(r) {
|
|
|
3506
3506
|
gasLimit: Y(t[4], "gasLimit"),
|
|
3507
3507
|
to: ws(t[5]),
|
|
3508
3508
|
value: Y(t[6], "value"),
|
|
3509
|
-
data:
|
|
3509
|
+
data: T(t[7]),
|
|
3510
3510
|
accessList: gi(t[8], "accessList"),
|
|
3511
3511
|
maxFeePerBlobGas: Y(t[9], "maxFeePerBlobGas"),
|
|
3512
3512
|
blobVersionedHashes: t[10]
|
|
@@ -3540,7 +3540,7 @@ function Gl(r, t, e) {
|
|
|
3540
3540
|
])
|
|
3541
3541
|
]) : ut(["0x03", tn(n)]);
|
|
3542
3542
|
}
|
|
3543
|
-
var Ht, Cn, Pn, In, Nn, kn, vn, Sn, Rn, On,
|
|
3543
|
+
var Ht, Cn, Pn, In, Nn, kn, vn, Sn, Rn, On, Tn, Dn, Ve, Ae, Xt, we, Fn, Vr;
|
|
3544
3544
|
const Zt = class Zt {
|
|
3545
3545
|
/**
|
|
3546
3546
|
* Creates a new Transaction with default values.
|
|
@@ -3557,13 +3557,13 @@ const Zt = class Zt {
|
|
|
3557
3557
|
A(this, Sn);
|
|
3558
3558
|
A(this, Rn);
|
|
3559
3559
|
A(this, On);
|
|
3560
|
-
A(this, Dn);
|
|
3561
3560
|
A(this, Tn);
|
|
3561
|
+
A(this, Dn);
|
|
3562
3562
|
A(this, Ve);
|
|
3563
3563
|
A(this, Ae);
|
|
3564
3564
|
A(this, Xt);
|
|
3565
3565
|
A(this, we);
|
|
3566
|
-
h(this, Ht, null), h(this, Cn, null), h(this, In, 0), h(this, Nn, tt), h(this, kn, null), h(this, vn, null), h(this, Sn, null), h(this, Pn, "0x"), h(this, Rn, tt), h(this, On, tt), h(this,
|
|
3566
|
+
h(this, Ht, null), h(this, Cn, null), h(this, In, 0), h(this, Nn, tt), h(this, kn, null), h(this, vn, null), h(this, Sn, null), h(this, Pn, "0x"), h(this, Rn, tt), h(this, On, tt), h(this, Tn, null), h(this, Dn, null), h(this, Ve, null), h(this, Ae, null), h(this, we, null), h(this, Xt, null);
|
|
3567
3567
|
}
|
|
3568
3568
|
/**
|
|
3569
3569
|
* The transaction type.
|
|
@@ -3690,7 +3690,7 @@ const Zt = class Zt {
|
|
|
3690
3690
|
return l(this, Pn);
|
|
3691
3691
|
}
|
|
3692
3692
|
set data(t) {
|
|
3693
|
-
h(this, Pn,
|
|
3693
|
+
h(this, Pn, T(t));
|
|
3694
3694
|
}
|
|
3695
3695
|
/**
|
|
3696
3696
|
* The amount of ether (in wei) to send in this transactions.
|
|
@@ -3714,10 +3714,10 @@ const Zt = class Zt {
|
|
|
3714
3714
|
* If signed, the signature for this transaction.
|
|
3715
3715
|
*/
|
|
3716
3716
|
get signature() {
|
|
3717
|
-
return l(this,
|
|
3717
|
+
return l(this, Tn) || null;
|
|
3718
3718
|
}
|
|
3719
3719
|
set signature(t) {
|
|
3720
|
-
h(this,
|
|
3720
|
+
h(this, Tn, t == null ? null : Lt.from(t));
|
|
3721
3721
|
}
|
|
3722
3722
|
/**
|
|
3723
3723
|
* The access list.
|
|
@@ -3726,11 +3726,11 @@ const Zt = class Zt {
|
|
|
3726
3726
|
* bytecode and state variable access within contract execution.
|
|
3727
3727
|
*/
|
|
3728
3728
|
get accessList() {
|
|
3729
|
-
const t = l(this,
|
|
3729
|
+
const t = l(this, Dn) || null;
|
|
3730
3730
|
return t ?? (this.type === 1 || this.type === 2 || this.type === 3 ? [] : null);
|
|
3731
3731
|
}
|
|
3732
3732
|
set accessList(t) {
|
|
3733
|
-
h(this,
|
|
3733
|
+
h(this, Dn, t == null ? null : ir(t));
|
|
3734
3734
|
}
|
|
3735
3735
|
/**
|
|
3736
3736
|
* The max fee per blob gas for Cancun transactions.
|
|
@@ -3805,18 +3805,18 @@ const Zt = class Zt {
|
|
|
3805
3805
|
const u = new Uint8Array(ks);
|
|
3806
3806
|
u.set(o), o = u;
|
|
3807
3807
|
}
|
|
3808
|
-
const a = l(this, Xt).blobToKzgCommitment(o), c =
|
|
3808
|
+
const a = l(this, Xt).blobToKzgCommitment(o), c = T(l(this, Xt).computeBlobKzgProof(o, a));
|
|
3809
3809
|
e.push({
|
|
3810
|
-
data:
|
|
3811
|
-
commitment:
|
|
3810
|
+
data: T(o),
|
|
3811
|
+
commitment: T(a),
|
|
3812
3812
|
proof: c
|
|
3813
3813
|
}), n.push(to(1, a));
|
|
3814
3814
|
} else {
|
|
3815
|
-
const o =
|
|
3815
|
+
const o = T(i.commitment);
|
|
3816
3816
|
e.push({
|
|
3817
|
-
data:
|
|
3817
|
+
data: T(i.data),
|
|
3818
3818
|
commitment: o,
|
|
3819
|
-
proof:
|
|
3819
|
+
proof: T(i.proof)
|
|
3820
3820
|
}), n.push(to(1, o));
|
|
3821
3821
|
}
|
|
3822
3822
|
}
|
|
@@ -3977,7 +3977,7 @@ const Zt = class Zt {
|
|
|
3977
3977
|
if (typeof t == "string") {
|
|
3978
3978
|
const n = j(t);
|
|
3979
3979
|
if (n[0] >= 127)
|
|
3980
|
-
return Zt.from(
|
|
3980
|
+
return Zt.from(Tl(n));
|
|
3981
3981
|
switch (n[0]) {
|
|
3982
3982
|
case 1:
|
|
3983
3983
|
return Zt.from(Ul(n));
|
|
@@ -3992,12 +3992,12 @@ const Zt = class Zt {
|
|
|
3992
3992
|
return t.type != null && (e.type = t.type), t.to != null && (e.to = t.to), t.nonce != null && (e.nonce = t.nonce), t.gasLimit != null && (e.gasLimit = t.gasLimit), t.gasPrice != null && (e.gasPrice = t.gasPrice), t.maxPriorityFeePerGas != null && (e.maxPriorityFeePerGas = t.maxPriorityFeePerGas), t.maxFeePerGas != null && (e.maxFeePerGas = t.maxFeePerGas), t.maxFeePerBlobGas != null && (e.maxFeePerBlobGas = t.maxFeePerBlobGas), t.data != null && (e.data = t.data), t.value != null && (e.value = t.value), t.chainId != null && (e.chainId = t.chainId), t.signature != null && (e.signature = Lt.from(t.signature)), t.accessList != null && (e.accessList = t.accessList), t.blobVersionedHashes != null && (e.blobVersionedHashes = t.blobVersionedHashes), t.kzg != null && (e.kzg = t.kzg), t.blobs != null && (e.blobs = t.blobs), t.hash != null && (b(e.isSigned(), "unsigned transaction cannot define '.hash'", "tx", t), b(e.hash === t.hash, "hash mismatch", "tx", t)), t.from != null && (b(e.isSigned(), "unsigned transaction cannot define '.from'", "tx", t), b(e.from.toLowerCase() === (t.from || "").toLowerCase(), "from mismatch", "tx", t)), e;
|
|
3993
3993
|
}
|
|
3994
3994
|
};
|
|
3995
|
-
Ht = new WeakMap(), Cn = new WeakMap(), Pn = new WeakMap(), In = new WeakMap(), Nn = new WeakMap(), kn = new WeakMap(), vn = new WeakMap(), Sn = new WeakMap(), Rn = new WeakMap(), On = new WeakMap(),
|
|
3995
|
+
Ht = new WeakMap(), Cn = new WeakMap(), Pn = new WeakMap(), In = new WeakMap(), Nn = new WeakMap(), kn = new WeakMap(), vn = new WeakMap(), Sn = new WeakMap(), Rn = new WeakMap(), On = new WeakMap(), Tn = new WeakMap(), Dn = new WeakMap(), Ve = new WeakMap(), Ae = new WeakMap(), Xt = new WeakMap(), we = new WeakMap(), Fn = new WeakSet(), Vr = function(t, e) {
|
|
3996
3996
|
S(!t || this.signature != null, "cannot serialize unsigned transaction; maybe you meant .unsignedSerialized", "UNSUPPORTED_OPERATION", { operation: ".serialized" });
|
|
3997
3997
|
const n = t ? this.signature : null;
|
|
3998
3998
|
switch (this.inferType()) {
|
|
3999
3999
|
case 0:
|
|
4000
|
-
return
|
|
4000
|
+
return Dl(this, n);
|
|
4001
4001
|
case 1:
|
|
4002
4002
|
return Ml(this, n);
|
|
4003
4003
|
case 2:
|
|
@@ -4013,7 +4013,7 @@ ia.fill(0);
|
|
|
4013
4013
|
const Hl = BigInt(-1), oa = BigInt(0), aa = BigInt(1), Jl = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
4014
4014
|
function Vl(r) {
|
|
4015
4015
|
const t = j(r), e = t.length % 32;
|
|
4016
|
-
return e ? ut([t, ia.slice(e)]) :
|
|
4016
|
+
return e ? ut([t, ia.slice(e)]) : T(t);
|
|
4017
4017
|
}
|
|
4018
4018
|
const zl = _n(aa, 32), Kl = _n(oa, 32), eo = {
|
|
4019
4019
|
name: "string",
|
|
@@ -4049,7 +4049,7 @@ const jl = {
|
|
|
4049
4049
|
},
|
|
4050
4050
|
salt: function(r) {
|
|
4051
4051
|
const t = j(r, "domain.salt");
|
|
4052
|
-
return b(t.length === 32, 'invalid domain value "salt"', "domain.salt", r),
|
|
4052
|
+
return b(t.length === 32, 'invalid domain value "salt"', "domain.salt", r), T(t);
|
|
4053
4053
|
}
|
|
4054
4054
|
};
|
|
4055
4055
|
function Ss(r) {
|
|
@@ -4319,7 +4319,7 @@ const Et = class Et {
|
|
|
4319
4319
|
primaryType: o.primaryType,
|
|
4320
4320
|
message: o.visit(n, (c, u) => {
|
|
4321
4321
|
if (c.match(/^bytes(\d*)/))
|
|
4322
|
-
return
|
|
4322
|
+
return T(j(u));
|
|
4323
4323
|
if (c.match(/^u?int/))
|
|
4324
4324
|
return R(u).toString();
|
|
4325
4325
|
switch (c) {
|
|
@@ -4598,7 +4598,7 @@ const fn = class fn {
|
|
|
4598
4598
|
t.push({ type: "!metadata", value: w.bodyText });
|
|
4599
4599
|
} catch {
|
|
4600
4600
|
const E = w.body;
|
|
4601
|
-
return E && t.push({ type: "!metadata", value:
|
|
4601
|
+
return E && t.push({ type: "!metadata", value: T(E) }), { url: null, linkage: t };
|
|
4602
4602
|
}
|
|
4603
4603
|
return { url: null, linkage: t };
|
|
4604
4604
|
}
|
|
@@ -4800,7 +4800,7 @@ const eu = Or({
|
|
|
4800
4800
|
contractAddress: M(q, null),
|
|
4801
4801
|
// should be allowNull(hash), but broken-EIP-658 support is handled in receipt
|
|
4802
4802
|
index: J,
|
|
4803
|
-
root: M(
|
|
4803
|
+
root: M(T),
|
|
4804
4804
|
gasUsed: R,
|
|
4805
4805
|
blobGasUsed: M(R, null),
|
|
4806
4806
|
logsBloom: M(sr),
|
|
@@ -4859,7 +4859,7 @@ function ha(r) {
|
|
|
4859
4859
|
return t.blockHash && R(t.blockHash) === io && (t.blockHash = null), t;
|
|
4860
4860
|
}
|
|
4861
4861
|
const ru = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
4862
|
-
class
|
|
4862
|
+
class Tr {
|
|
4863
4863
|
/**
|
|
4864
4864
|
* Creates a new **NetworkPlugin**.
|
|
4865
4865
|
*/
|
|
@@ -4877,10 +4877,10 @@ class Dr {
|
|
|
4877
4877
|
* Creates a copy of this plugin.
|
|
4878
4878
|
*/
|
|
4879
4879
|
clone() {
|
|
4880
|
-
return new
|
|
4880
|
+
return new Tr(this.name);
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
|
-
class ys extends
|
|
4883
|
+
class ys extends Tr {
|
|
4884
4884
|
/**
|
|
4885
4885
|
* Creates a new GasCostPlugin from %%effectiveBlock%% until the
|
|
4886
4886
|
* latest block or another GasCostPlugin supercedes that block number,
|
|
@@ -4931,7 +4931,7 @@ class ys extends Dr {
|
|
|
4931
4931
|
return new ys(this.effectiveBlock, this);
|
|
4932
4932
|
}
|
|
4933
4933
|
}
|
|
4934
|
-
class bs extends
|
|
4934
|
+
class bs extends Tr {
|
|
4935
4935
|
/**
|
|
4936
4936
|
* Creates a new **EnsPlugin** connected to %%address%% on the
|
|
4937
4937
|
* %%targetNetwork%%. The default ENS address and mainnet is used
|
|
@@ -4957,7 +4957,7 @@ class bs extends Dr {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
}
|
|
4959
4959
|
var Ir, Nr;
|
|
4960
|
-
class su extends
|
|
4960
|
+
class su extends Tr {
|
|
4961
4961
|
/**
|
|
4962
4962
|
* Creates a new **FetchUrlFeeDataNetworkPlugin** which will
|
|
4963
4963
|
* be used when computing the fee data for the network.
|
|
@@ -5451,7 +5451,7 @@ function fu(r) {
|
|
|
5451
5451
|
function Ws(r) {
|
|
5452
5452
|
return r = Array.from(new Set(r).values()), r.sort(), r;
|
|
5453
5453
|
}
|
|
5454
|
-
async function
|
|
5454
|
+
async function Ts(r, t) {
|
|
5455
5455
|
if (r == null)
|
|
5456
5456
|
throw new Error("invalid event");
|
|
5457
5457
|
if (Array.isArray(r) && (r = { topics: r }), typeof r == "string")
|
|
@@ -5489,7 +5489,7 @@ async function Ds(r, t) {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
b(!1, "unknown ProviderEvent", "event", r);
|
|
5491
5491
|
}
|
|
5492
|
-
function
|
|
5492
|
+
function Ds() {
|
|
5493
5493
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5494
5494
|
}
|
|
5495
5495
|
const du = {
|
|
@@ -5632,7 +5632,7 @@ class gu {
|
|
|
5632
5632
|
* alternate sub-class of [[TransactionResponse]].
|
|
5633
5633
|
*/
|
|
5634
5634
|
_wrapTransactionResponse(t, e) {
|
|
5635
|
-
return new
|
|
5635
|
+
return new Ta(ha(t), this);
|
|
5636
5636
|
}
|
|
5637
5637
|
/**
|
|
5638
5638
|
* Resolves to the Network, forcing a network detection using whatever
|
|
@@ -5823,11 +5823,11 @@ class gu {
|
|
|
5823
5823
|
return J(await I(this, L, hr).call(this, { method: "getTransactionCount" }, t, e), "%response");
|
|
5824
5824
|
}
|
|
5825
5825
|
async getCode(t, e) {
|
|
5826
|
-
return
|
|
5826
|
+
return T(await I(this, L, hr).call(this, { method: "getCode" }, t, e));
|
|
5827
5827
|
}
|
|
5828
5828
|
async getStorage(t, e, n) {
|
|
5829
5829
|
const s = R(e, "position");
|
|
5830
|
-
return
|
|
5830
|
+
return T(await I(this, L, hr).call(this, { method: "getStorage", position: s }, t, n));
|
|
5831
5831
|
}
|
|
5832
5832
|
// Write
|
|
5833
5833
|
async broadcastTransaction(t) {
|
|
@@ -5878,7 +5878,7 @@ class gu {
|
|
|
5878
5878
|
network: this.getNetwork(),
|
|
5879
5879
|
result: I(this, L, pt).call(this, { method: "getTransactionResult", hash: t })
|
|
5880
5880
|
});
|
|
5881
|
-
return e == null ? null :
|
|
5881
|
+
return e == null ? null : T(e);
|
|
5882
5882
|
}
|
|
5883
5883
|
// Bloom-filter Queries
|
|
5884
5884
|
async getLogs(t) {
|
|
@@ -5970,14 +5970,14 @@ class gu {
|
|
|
5970
5970
|
*/
|
|
5971
5971
|
_setTimeout(t, e) {
|
|
5972
5972
|
e == null && (e = 0);
|
|
5973
|
-
const n =
|
|
5973
|
+
const n = Dr(this, kr)._++, s = () => {
|
|
5974
5974
|
l(this, Pt).delete(n), t();
|
|
5975
5975
|
};
|
|
5976
5976
|
if (this.paused)
|
|
5977
5977
|
l(this, Pt).set(n, { timer: null, func: s, time: e });
|
|
5978
5978
|
else {
|
|
5979
5979
|
const i = setTimeout(s, e);
|
|
5980
|
-
l(this, Pt).set(n, { timer: i, func: s, time:
|
|
5980
|
+
l(this, Pt).set(n, { timer: i, func: s, time: Ds() });
|
|
5981
5981
|
}
|
|
5982
5982
|
return n;
|
|
5983
5983
|
}
|
|
@@ -6044,7 +6044,7 @@ class gu {
|
|
|
6044
6044
|
return !1;
|
|
6045
6045
|
const s = n.listeners.length;
|
|
6046
6046
|
return n.listeners = n.listeners.filter(({ listener: i, once: o }) => {
|
|
6047
|
-
const a = new
|
|
6047
|
+
const a = new Da(this, o ? null : i, t);
|
|
6048
6048
|
try {
|
|
6049
6049
|
i.call(this, ...e, a);
|
|
6050
6050
|
} catch {
|
|
@@ -6153,7 +6153,7 @@ class gu {
|
|
|
6153
6153
|
}
|
|
6154
6154
|
this._forEachSubscriber((e) => e.pause(t)), h(this, ot, !!t);
|
|
6155
6155
|
for (const e of l(this, Pt).values())
|
|
6156
|
-
e.timer && clearTimeout(e.timer), e.time =
|
|
6156
|
+
e.timer && clearTimeout(e.timer), e.time = Ds() - e.time;
|
|
6157
6157
|
}
|
|
6158
6158
|
/**
|
|
6159
6159
|
* Resume the provider.
|
|
@@ -6163,7 +6163,7 @@ class gu {
|
|
|
6163
6163
|
this._forEachSubscriber((t) => t.resume()), h(this, ot, null);
|
|
6164
6164
|
for (const t of l(this, Pt).values()) {
|
|
6165
6165
|
let e = t.time;
|
|
6166
|
-
e < 0 && (e = 0), t.time =
|
|
6166
|
+
e < 0 && (e = 0), t.time = Ds(), setTimeout(t.func, e);
|
|
6167
6167
|
}
|
|
6168
6168
|
}
|
|
6169
6169
|
}
|
|
@@ -6184,7 +6184,7 @@ it = new WeakMap(), Ce = new WeakMap(), ot = new WeakMap(), zn = new WeakMap(),
|
|
|
6184
6184
|
});
|
|
6185
6185
|
const s = Us(t);
|
|
6186
6186
|
try {
|
|
6187
|
-
return
|
|
6187
|
+
return T(await this._perform({ method: "call", transaction: s, blockTag: e }));
|
|
6188
6188
|
} catch (i) {
|
|
6189
6189
|
if (!this.disableCcipRead && Ia(i) && i.data && n >= 0 && e === "latest" && s.to != null && at(i.data, 0, 4) === "0x556f1830") {
|
|
6190
6190
|
const o = i.data, a = await Kt(s.to, this);
|
|
@@ -6253,10 +6253,10 @@ it = new WeakMap(), Ce = new WeakMap(), ot = new WeakMap(), zn = new WeakMap(),
|
|
|
6253
6253
|
includeTransactions: e
|
|
6254
6254
|
});
|
|
6255
6255
|
}, fr = async function(t, e) {
|
|
6256
|
-
let n = await
|
|
6257
|
-
return n.type === "event" && e && e.length > 0 && e[0].removed === !0 && (n = await
|
|
6256
|
+
let n = await Ts(t, this);
|
|
6257
|
+
return n.type === "event" && e && e.length > 0 && e[0].removed === !0 && (n = await Ts({ orphan: "drop-log", log: e[0] }, this)), l(this, it).get(n.tag) || null;
|
|
6258
6258
|
}, jr = async function(t) {
|
|
6259
|
-
const e = await
|
|
6259
|
+
const e = await Ts(t, this), n = e.tag;
|
|
6260
6260
|
let s = l(this, it).get(n);
|
|
6261
6261
|
return s || (s = { subscriber: this._getSubscriber(e), tag: n, addressableMap: /* @__PURE__ */ new WeakMap(), nameMap: /* @__PURE__ */ new Map(), started: !1, listeners: [] }, l(this, it).set(n, s)), s;
|
|
6262
6262
|
};
|
|
@@ -6709,7 +6709,7 @@ class Fs extends ga {
|
|
|
6709
6709
|
async signMessage(e) {
|
|
6710
6710
|
const n = typeof e == "string" ? _e(e) : e;
|
|
6711
6711
|
return await this.provider.send("personal_sign", [
|
|
6712
|
-
|
|
6712
|
+
T(n),
|
|
6713
6713
|
this.address.toLowerCase()
|
|
6714
6714
|
]);
|
|
6715
6715
|
}
|
|
@@ -6735,11 +6735,11 @@ class Fs extends ga {
|
|
|
6735
6735
|
const n = typeof e == "string" ? _e(e) : e;
|
|
6736
6736
|
return await this.provider.send("eth_sign", [
|
|
6737
6737
|
this.address.toLowerCase(),
|
|
6738
|
-
|
|
6738
|
+
T(n)
|
|
6739
6739
|
]);
|
|
6740
6740
|
}
|
|
6741
6741
|
}
|
|
6742
|
-
var Xe, qn, re, zt,
|
|
6742
|
+
var Xe, qn, re, zt, Dt, It, ht, vr, ri;
|
|
6743
6743
|
class Pu extends gu {
|
|
6744
6744
|
constructor(e, n) {
|
|
6745
6745
|
super(e, n);
|
|
@@ -6750,7 +6750,7 @@ class Pu extends gu {
|
|
|
6750
6750
|
// Payloads are queued and triggered in batches using the drainTimer
|
|
6751
6751
|
A(this, re);
|
|
6752
6752
|
A(this, zt);
|
|
6753
|
-
A(this,
|
|
6753
|
+
A(this, Dt);
|
|
6754
6754
|
A(this, It);
|
|
6755
6755
|
A(this, ht);
|
|
6756
6756
|
h(this, qn, 1), h(this, Xe, Object.assign({}, Aa, n || {})), h(this, re, []), h(this, zt, null), h(this, It, null), h(this, ht, null);
|
|
@@ -6759,7 +6759,7 @@ class Pu extends gu {
|
|
|
6759
6759
|
const o = new Promise((a) => {
|
|
6760
6760
|
i = a;
|
|
6761
6761
|
});
|
|
6762
|
-
h(this,
|
|
6762
|
+
h(this, Dt, { promise: o, resolve: i });
|
|
6763
6763
|
}
|
|
6764
6764
|
const s = this._getOption("staticNetwork");
|
|
6765
6765
|
typeof s == "boolean" ? (b(!s || e !== "any", "staticNetwork cannot be used on special network 'any'", "options", n), s && e != null && h(this, It, jt.from(e))) : s && (b(e == null || s.matches(e), "staticNetwork MUST match network object", "options", n), h(this, It, s));
|
|
@@ -6822,7 +6822,7 @@ class Pu extends gu {
|
|
|
6822
6822
|
}
|
|
6823
6823
|
})()), await l(this, ht)) : (h(this, ht, (async () => {
|
|
6824
6824
|
const n = {
|
|
6825
|
-
id:
|
|
6825
|
+
id: Dr(this, qn)._++,
|
|
6826
6826
|
method: "eth_chainId",
|
|
6827
6827
|
params: [],
|
|
6828
6828
|
jsonrpc: "2.0"
|
|
@@ -6847,7 +6847,7 @@ class Pu extends gu {
|
|
|
6847
6847
|
* Calling it multiple times is safe and has no effect.
|
|
6848
6848
|
*/
|
|
6849
6849
|
_start() {
|
|
6850
|
-
l(this,
|
|
6850
|
+
l(this, Dt) == null || l(this, Dt).resolve == null || (l(this, Dt).resolve(), h(this, Dt, null), (async () => {
|
|
6851
6851
|
for (; l(this, It) == null && !this.destroyed; )
|
|
6852
6852
|
try {
|
|
6853
6853
|
h(this, It, await this._detectNetwork());
|
|
@@ -6865,8 +6865,8 @@ class Pu extends gu {
|
|
|
6865
6865
|
* established.
|
|
6866
6866
|
*/
|
|
6867
6867
|
async _waitUntilReady() {
|
|
6868
|
-
if (l(this,
|
|
6869
|
-
return await l(this,
|
|
6868
|
+
if (l(this, Dt) != null)
|
|
6869
|
+
return await l(this, Dt).promise;
|
|
6870
6870
|
}
|
|
6871
6871
|
/**
|
|
6872
6872
|
* Return a Subscriber that will manage the %%sub%%.
|
|
@@ -6881,7 +6881,7 @@ class Pu extends gu {
|
|
|
6881
6881
|
* Returns true only if the [[_start]] has been called.
|
|
6882
6882
|
*/
|
|
6883
6883
|
get ready() {
|
|
6884
|
-
return l(this,
|
|
6884
|
+
return l(this, Dt) == null;
|
|
6885
6885
|
}
|
|
6886
6886
|
/**
|
|
6887
6887
|
* Returns %%tx%% as a normalized JSON-RPC transaction request,
|
|
@@ -6896,7 +6896,7 @@ class Pu extends gu {
|
|
|
6896
6896
|
let i = s;
|
|
6897
6897
|
s === "gasLimit" && (i = "gas"), n[i] = hn(R(e[s], `tx.${s}`));
|
|
6898
6898
|
}), ["from", "to", "data"].forEach((s) => {
|
|
6899
|
-
e[s] != null && (n[s] =
|
|
6899
|
+
e[s] != null && (n[s] = T(e[s]));
|
|
6900
6900
|
}), e.accessList && (n.accessList = ir(e.accessList)), e.blobVersionedHashes && (n.blobVersionedHashes = e.blobVersionedHashes.map((s) => s.toLowerCase())), n;
|
|
6901
6901
|
}
|
|
6902
6902
|
/**
|
|
@@ -7053,7 +7053,7 @@ class Pu extends gu {
|
|
|
7053
7053
|
send(e, n) {
|
|
7054
7054
|
if (this.destroyed)
|
|
7055
7055
|
return Promise.reject(rt("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: e }));
|
|
7056
|
-
const s =
|
|
7056
|
+
const s = Dr(this, qn)._++, i = new Promise((o, a) => {
|
|
7057
7057
|
l(this, re).push({
|
|
7058
7058
|
resolve: o,
|
|
7059
7059
|
reject: a,
|
|
@@ -7103,7 +7103,7 @@ class Pu extends gu {
|
|
|
7103
7103
|
h(this, re, []), super.destroy();
|
|
7104
7104
|
}
|
|
7105
7105
|
}
|
|
7106
|
-
Xe = new WeakMap(), qn = new WeakMap(), re = new WeakMap(), zt = new WeakMap(),
|
|
7106
|
+
Xe = new WeakMap(), qn = new WeakMap(), re = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), It = new WeakMap(), ht = new WeakMap(), vr = new WeakSet(), ri = function() {
|
|
7107
7107
|
if (l(this, zt))
|
|
7108
7108
|
return;
|
|
7109
7109
|
const e = this._getOption("batchMaxCount") === 1 ? 0 : this._getOption("batchStallTime");
|
|
@@ -7256,7 +7256,7 @@ export {
|
|
|
7256
7256
|
Ma as h,
|
|
7257
7257
|
Gc as i,
|
|
7258
7258
|
Iu as j,
|
|
7259
|
-
|
|
7260
|
-
|
|
7259
|
+
Tu as p,
|
|
7260
|
+
Du as r,
|
|
7261
7261
|
ds as s
|
|
7262
7262
|
};
|