@wormhole-foundation/wormhole-connect 1.1.4 → 1.1.5-beta.0-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 +0 -2
- package/dist/assets/{ccip-DBKRHOzw.js → ccip-msPNgcGk.js} +1 -1
- package/dist/assets/{evm-Ch2OAEjY.js → evm-72G9l3EA.js} +4 -4
- package/dist/assets/{index-CBRIB26U.js → index-Bij2g0qO.js} +1 -1
- package/dist/assets/{index-6KD-Rsq-.js → index-CiqwdThp.js} +1 -1
- package/dist/assets/index-DxfMwN3f.js +2 -0
- package/dist/assets/{index.es-BslALnP8.js → index.es-jvFzSWEn.js} +2 -2
- package/dist/main.js +70 -70
- package/dist/src/WormholeConnect.d.ts.map +1 -1
- package/dist/src/config/constants.d.ts +1 -3
- package/dist/src/config/constants.d.ts.map +1 -1
- package/dist/src/config/index.d.ts +0 -1
- package/dist/src/config/index.d.ts.map +1 -1
- package/dist/src/demo.d.ts +1 -1
- package/dist/src/demo.d.ts.map +1 -1
- package/dist/src/{utils/confirmBeforeLeaving.d.ts → hooks/useConfirmBeforeLeaving.d.ts} +1 -1
- package/dist/src/hooks/useConfirmBeforeLeaving.d.ts.map +1 -0
- package/dist/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
- package/dist/src/main.d.ts +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/routes/operator.d.ts.map +1 -1
- package/dist/src/store/redeem.d.ts +1 -6
- package/dist/src/store/redeem.d.ts.map +1 -1
- package/dist/src/store/relay.d.ts +1 -4
- package/dist/src/store/relay.d.ts.map +1 -1
- package/dist/src/store/router.d.ts +1 -2
- package/dist/src/store/router.d.ts.map +1 -1
- package/dist/src/store/tokenPrices.d.ts +1 -3
- package/dist/src/store/tokenPrices.d.ts.map +1 -1
- package/dist/src/store/transferInput.d.ts +2 -9
- package/dist/src/store/transferInput.d.ts.map +1 -1
- package/dist/src/store/wallet.d.ts +1 -2
- package/dist/src/store/wallet.d.ts.map +1 -1
- package/dist/src/utils/errors.d.ts +1 -0
- package/dist/src/utils/errors.d.ts.map +1 -1
- package/lib/{algorand-DGFW1DOS.mjs → algorand-CE3Wqa_v.mjs} +7 -7
- package/lib/{algorand-HCN4Bwfj.js → algorand-CwxndC6c.js} +1 -1
- package/lib/{aptos-CxTUUDke.mjs → aptos-BayhRBsD.mjs} +1 -1
- package/lib/{aptos-DdgS7gP0.js → aptos-BxWZdKfj.js} +2 -2
- package/lib/{aptos-rub8tun1.js → aptos-DRRFJI2u.js} +1 -1
- package/lib/{aptos-Bbj6gw3L.mjs → aptos-DgUzHI6C.mjs} +3 -3
- package/lib/{ccip-CSnIIYMU.js → ccip-BalJaj_d.js} +1 -1
- package/lib/{ccip-DSfOJChg.mjs → ccip-ahCNMhXH.mjs} +1 -1
- package/lib/{cosmwasm-DY1PMAJO.mjs → cosmwasm-CJYsjb7X.mjs} +10 -10
- package/lib/{cosmwasm-DEP08WU-.js → cosmwasm-Dak0Bl9R.js} +4 -4
- package/lib/{events-BozeIuDx.js → events-BM7mjQax.js} +1 -1
- package/lib/{events-BZxm5jrM.mjs → events-C8IHDspS.mjs} +1 -1
- package/lib/{evm-mqOA6aXy.mjs → evm-BeVxNlHE.mjs} +7 -7
- package/lib/{evm-BdikZZsP.js → evm-Bhv4lJrj.js} +4 -4
- package/lib/{evm-4DQ--w0X.mjs → evm-DLVwgj_y.mjs} +14 -14
- package/lib/{evm-5GsdcG4A.js → evm-DRFXybZm.js} +1 -1
- package/lib/{index-Dlnoph5j.mjs → index-5cURqpFP.mjs} +33 -33
- package/lib/{index-DpzMnf-Z.js → index-8sApG9Xu.js} +1 -1
- package/lib/{index-DQPvaPS5.js → index-B-5K76hu.js} +1 -1
- package/lib/{index-tzOxV6Ga.js → index-BCTw0zIL.js} +1 -1
- package/lib/{index-CmUgRfB1.mjs → index-BEnE4xGu.mjs} +2 -2
- package/lib/{index-B5r3vRTo.js → index-BR1-b6-B.js} +118 -118
- package/lib/{index-Bdh7euLM.js → index-Bq3i4Ivt.js} +1 -1
- package/lib/{index-DZ9CJGGU.js → index-BwW1z5AV.js} +1 -1
- package/lib/{index-q3BebMyx.mjs → index-CDbzQp-x.mjs} +1 -1
- package/lib/{index-Bb4id6Q5.js → index-CDwqNmxa.js} +1 -1
- package/lib/{index-CSPGgVcz.js → index-CK1NeIpL.js} +1 -1
- package/lib/{index-BkwLjtPG.js → index-CKu4L3aX.js} +1 -1
- package/lib/{index-CpWbXdKl.js → index-CSYyAISp.js} +1 -1
- package/lib/{index-CNuaRHT9.js → index-CVgmqSFm.js} +1 -1
- package/lib/{index-CFG8Auhr.mjs → index-CXI1g3fT.mjs} +2 -2
- package/lib/{index-BxyQAGp1.mjs → index-CYYH0ZCt.mjs} +8 -8
- package/lib/{index-CJ4fqgIk.js → index-Cdmmgo80.js} +1 -1
- package/lib/{index-BO-4Mtu6.mjs → index-CesBqtU9.mjs} +8 -8
- package/lib/{index-BBMlYvye.mjs → index-Cgrq3HC2.mjs} +8 -8
- package/lib/{index-CscLQMzV.mjs → index-CkFc4trZ.mjs} +25 -25
- package/lib/{index-Dly2vaRA.js → index-CmNxvATU.js} +1 -1
- package/lib/{index-1U60lnae.mjs → index-Cxf9ExRb.mjs} +2 -2
- package/lib/{index-DIbdsPe6.mjs → index-D0aHfd7i.mjs} +14 -14
- package/lib/{index-BMH6cJU8.mjs → index-D0pSIQ40.mjs} +21 -21
- package/lib/{index-BDvsOJDF.js → index-D16aDSfO.js} +1 -1
- package/lib/{index-DN-MKi_Z.mjs → index-DGbFwDGc.mjs} +4 -4
- package/lib/{index-KAe7y0WA.mjs → index-DH7qNVmK.mjs} +2 -2
- package/lib/{index-BDvIwkuQ.mjs → index-DL4TAnOD.mjs} +4 -4
- package/lib/{index-rJ51Opss.mjs → index-D_hZwGk-.mjs} +5 -5
- package/lib/{index-Cgo4GYxn.js → index-Dd0vKqSJ.js} +1 -1
- package/lib/{index-BaZ9ZXQ8.mjs → index-DfEIy3Oz.mjs} +11 -11
- package/lib/{index-DgePBEwv.mjs → index-DodJ9HFs.mjs} +20515 -20570
- package/lib/{index-B-TRMIWs.mjs → index-Dv0GuxZE.mjs} +2 -2
- package/lib/{index-BUmDz7gJ.js → index-Dy0OKkEW.js} +1 -1
- package/lib/{index-CCrop6yd.js → index-Dyhdug6f.js} +1 -1
- package/lib/{index-DRWMrzIU.js → index-DzjbVRL9.js} +1 -1
- package/lib/{index-D3zV2OEX.mjs → index-LQvf4vkt.mjs} +2 -2
- package/lib/{index-CNq6iUaG.mjs → index-RKJC5-Jg.mjs} +5 -5
- package/lib/{index-B7VunQ0V.js → index-_ChocT-w.js} +1 -1
- package/lib/index-brvOBNRW.js +1 -0
- package/lib/{index-CLt3mTc2.js → index-cgL89h7X.js} +1 -1
- package/lib/{index-D1fzB2pJ.mjs → index-k-3kRwjK.mjs} +3 -3
- package/lib/{index-B4RQFL8S.mjs → index-tJkYbezA.mjs} +3 -3
- package/lib/{index-BUsKmixx.js → index-zi6nCGIB.js} +1 -1
- package/lib/{index.es-B0vZ9CZN.mjs → index.es-32MsEXSY.mjs} +5 -5
- package/lib/{index.es-CIkbIjAw.js → index.es-Bctvgkq4.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{keccak-Bbj2Yl-x.js → keccak-BSZcZtbR.js} +1 -1
- package/lib/{keccak-OTA2ssQD.mjs → keccak-DTowXJgk.mjs} +1 -1
- package/lib/{pbkdf2-DWsBOC-R.js → pbkdf2-D7xmqxTh.js} +1 -1
- package/lib/{pbkdf2-BTEK0Lcd.mjs → pbkdf2-DS49cJIr.mjs} +3 -3
- package/lib/{signer-JVKCqiEl.js → signer-CfJDqXPw.js} +1 -1
- package/lib/{signer-CSn2uQ3I.mjs → signer-DkD6PcXT.mjs} +1 -1
- package/lib/solana-0S0m-Kst.js +1 -0
- package/lib/solana-CCkft4pz.mjs +16 -0
- package/lib/{solana-B25QaZay.js → solana-ConchIwW.js} +1 -1
- package/lib/{solana-CZiRQleS.mjs → solana-aduynXA7.mjs} +4 -4
- package/lib/{solanaEmbed.esm-D5MQek-2.mjs → solanaEmbed.esm-D7MJvcyZ.mjs} +3 -3
- package/lib/{solanaEmbed.esm-BU0rHfVX.js → solanaEmbed.esm-DyNDGOFf.js} +1 -1
- package/lib/src/WormholeConnect.d.ts.map +1 -1
- package/lib/src/config/constants.d.ts +1 -3
- package/lib/src/config/constants.d.ts.map +1 -1
- package/lib/src/config/index.d.ts +0 -1
- package/lib/src/config/index.d.ts.map +1 -1
- package/lib/src/demo.d.ts +1 -1
- package/lib/src/demo.d.ts.map +1 -1
- package/lib/src/{utils/confirmBeforeLeaving.d.ts → hooks/useConfirmBeforeLeaving.d.ts} +1 -1
- package/lib/src/hooks/useConfirmBeforeLeaving.d.ts.map +1 -0
- package/lib/src/hooks/useFetchSupportedRoutes.d.ts.map +1 -1
- package/lib/src/main.d.ts +1 -1
- package/lib/src/main.d.ts.map +1 -1
- package/lib/src/routes/operator.d.ts.map +1 -1
- package/lib/src/store/redeem.d.ts +1 -6
- package/lib/src/store/redeem.d.ts.map +1 -1
- package/lib/src/store/relay.d.ts +1 -4
- package/lib/src/store/relay.d.ts.map +1 -1
- package/lib/src/store/router.d.ts +1 -2
- package/lib/src/store/router.d.ts.map +1 -1
- package/lib/src/store/tokenPrices.d.ts +1 -3
- package/lib/src/store/tokenPrices.d.ts.map +1 -1
- package/lib/src/store/transferInput.d.ts +2 -9
- package/lib/src/store/transferInput.d.ts.map +1 -1
- package/lib/src/store/wallet.d.ts +1 -2
- package/lib/src/store/wallet.d.ts.map +1 -1
- package/lib/src/utils/errors.d.ts +1 -0
- package/lib/src/utils/errors.d.ts.map +1 -1
- package/lib/{sui-Bc5tJ6m9.js → sui-0vpOGsYX.js} +1 -1
- package/lib/{sui-CuJDivKm.js → sui-CLeFtCvc.js} +2 -2
- package/lib/{sui-BZ3grhrf.mjs → sui-DNyGmAmi.mjs} +4 -4
- package/lib/{sui-Dv8Drra7.mjs → sui-DTGKQHbm.mjs} +10 -10
- package/lib/{unsignedTransaction-BnVGUXbX.js → unsignedTransaction-DY_mcpg6.js} +1 -1
- package/lib/{unsignedTransaction-CzttHBqx.mjs → unsignedTransaction-DtgOV3Rk.mjs} +2 -2
- package/package.json +8 -6
- package/dist/assets/index-CqrwXT8q.js +0 -2
- package/dist/src/components/Dropdown.d.ts +0 -11
- package/dist/src/components/Dropdown.d.ts.map +0 -1
- package/dist/src/components/Switch.d.ts +0 -3
- package/dist/src/components/Switch.d.ts.map +0 -1
- package/dist/src/consts/index.d.ts +0 -2
- package/dist/src/consts/index.d.ts.map +0 -1
- package/dist/src/hooks/useComputeFees.d.ts +0 -19
- package/dist/src/hooks/useComputeFees.d.ts.map +0 -1
- package/dist/src/hooks/useComputeQuote.d.ts +0 -16
- package/dist/src/hooks/useComputeQuote.d.ts.map +0 -1
- package/dist/src/hooks/useFetchRedeemTx.d.ts +0 -3
- package/dist/src/hooks/useFetchRedeemTx.d.ts.map +0 -1
- package/dist/src/icons/Clock.d.ts +0 -4
- package/dist/src/icons/Clock.d.ts.map +0 -1
- package/dist/src/icons/Info.d.ts +0 -5
- package/dist/src/icons/Info.d.ts.map +0 -1
- package/dist/src/icons/MoreNetworkIcon.d.ts +0 -11
- package/dist/src/icons/MoreNetworkIcon.d.ts.map +0 -1
- package/dist/src/icons/Open.d.ts +0 -5
- package/dist/src/icons/Open.d.ts.map +0 -1
- package/dist/src/icons/Routes/Hashflow.d.ts +0 -4
- package/dist/src/icons/Routes/Hashflow.d.ts.map +0 -1
- package/dist/src/icons/Wallet.d.ts +0 -5
- package/dist/src/icons/Wallet.d.ts.map +0 -1
- package/dist/src/reportWebVitals.d.ts +0 -4
- package/dist/src/reportWebVitals.d.ts.map +0 -1
- package/dist/src/routes/index.d.ts +0 -2
- package/dist/src/routes/index.d.ts.map +0 -1
- package/dist/src/routes/types.d.ts +0 -31
- package/dist/src/routes/types.d.ts.map +0 -1
- package/dist/src/utils/confirmBeforeLeaving.d.ts.map +0 -1
- package/lib/index-DHSWeh-m.js +0 -1
- package/lib/solana-C5D4LdxL.mjs +0 -16
- package/lib/solana-JSgP_iZe.js +0 -1
- package/lib/src/components/Dropdown.d.ts +0 -11
- package/lib/src/components/Dropdown.d.ts.map +0 -1
- package/lib/src/components/Switch.d.ts +0 -3
- package/lib/src/components/Switch.d.ts.map +0 -1
- package/lib/src/consts/index.d.ts +0 -2
- package/lib/src/consts/index.d.ts.map +0 -1
- package/lib/src/hooks/useComputeFees.d.ts +0 -19
- package/lib/src/hooks/useComputeFees.d.ts.map +0 -1
- package/lib/src/hooks/useComputeQuote.d.ts +0 -16
- package/lib/src/hooks/useComputeQuote.d.ts.map +0 -1
- package/lib/src/hooks/useFetchRedeemTx.d.ts +0 -3
- package/lib/src/hooks/useFetchRedeemTx.d.ts.map +0 -1
- package/lib/src/icons/Clock.d.ts +0 -4
- package/lib/src/icons/Clock.d.ts.map +0 -1
- package/lib/src/icons/Info.d.ts +0 -5
- package/lib/src/icons/Info.d.ts.map +0 -1
- package/lib/src/icons/MoreNetworkIcon.d.ts +0 -11
- package/lib/src/icons/MoreNetworkIcon.d.ts.map +0 -1
- package/lib/src/icons/Open.d.ts +0 -5
- package/lib/src/icons/Open.d.ts.map +0 -1
- package/lib/src/icons/Routes/Hashflow.d.ts +0 -4
- package/lib/src/icons/Routes/Hashflow.d.ts.map +0 -1
- package/lib/src/icons/Wallet.d.ts +0 -5
- package/lib/src/icons/Wallet.d.ts.map +0 -1
- package/lib/src/reportWebVitals.d.ts +0 -4
- package/lib/src/reportWebVitals.d.ts.map +0 -1
- package/lib/src/routes/index.d.ts +0 -2
- package/lib/src/routes/index.d.ts.map +0 -1
- package/lib/src/routes/types.d.ts +0 -31
- package/lib/src/routes/types.d.ts.map +0 -1
- package/lib/src/utils/confirmBeforeLeaving.d.ts.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CBRIB26U.js","assets/dijkstra-D_NXgYpA.js","main.js","main.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as fe}from"../main.js";const me=Symbol(),ee=Object.getPrototypeOf,G=new WeakMap,ge=e=>e&&(G.has(e)?G.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{G.set(e,t)},z={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_CONNECT_GIT_HASH:"5534a95209cc64101f6b34f3fa3e7486d56a9233",REACT_APP_CONNECT_VERSION:"1.1.4",SSR:!1},q=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,h)=>new Proxy(n,h),s=n=>q(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,h,I=r)=>{const y=l.get(n);if((y==null?void 0:y[0])===h)return y[1];const v=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(v,!0),l.set(n,[h,v]),Reflect.ownKeys(n).forEach(U=>{if(Object.getOwnPropertyDescriptor(v,U))return;const L=Reflect.get(n,U),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))te(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,H]=A.get(L);M.value=c(b,H(),I)}Object.defineProperty(v,U,M)}),Object.preventExtensions(v)},m=new WeakMap,f=[1,1],W=n=>{if(!q(n))throw new Error("object required");const h=m.get(n);if(h)return h;let I=f[0];const y=new Set,v=(i,a=++f[0])=>{I!==a&&(I=a,y.forEach(o=>o(i,a)))};let U=f[1];const L=(i=++f[1])=>(U!==i&&!y.size&&(U=i,b.forEach(([a])=>{const o=a[1](i);o>I&&(I=o)})),I),M=i=>(a,o)=>{const g=[...a];g[1]=[i,...g[1]],v(g,o)},b=new Map,H=(i,a)=>{if((z?"production":void 0)!=="production"&&b.has(i))throw new Error("prop listener already exists");if(y.size){const o=a[3](M(i));b.set(i,[a,o])}else b.set(i,[a])},Z=i=>{var a;const o=b.get(i);o&&(b.delete(i),(a=o[1])==null||a.call(o))},ue=i=>(y.add(i),y.size===1&&b.forEach(([o,g],D)=>{if((z?"production":void 0)!=="production"&&g)throw new Error("remove already exists");const T=o[3](M(D));b.set(D,[o,T])}),()=>{y.delete(i),y.size===0&&b.forEach(([o,g],D)=>{g&&(g(),b.set(D,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(i,a){const o=Reflect.get(i,a);Z(a);const g=Reflect.deleteProperty(i,a);return g&&v(["delete",[a],o]),g},set(i,a,o,g){const D=Reflect.has(i,a),T=Reflect.get(i,a,g);if(D&&(e(T,o)||m.has(o)&&e(T,m.get(o))))return!0;Z(a),q(o)&&(o=he(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,v(["resolve",[a],C])}).catch(C=>{o.status="rejected",o.reason=C,v(["reject",[a],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&H(a,C)}return Reflect.set(i,a,V,g),v(["set",[a],o,T]),!0}});m.set(n,$);const pe=[J,L,c,ue];return A.set($,pe),Reflect.ownKeys(n).forEach(i=>{const a=Object.getOwnPropertyDescriptor(n,i);"value"in a&&($[i]=n[i],delete a.value,delete a.writable),Object.defineProperty(J,i,a)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function S(e,t,s){const r=A.get(e);(z?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(h=>{c.push(h),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(z?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return S(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),Ie={state:u,subscribe(e){return S(u.events,()=>e(ve(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:E,subscribe(e){return S(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),N={state:B,subscribe(e){return S(B,()=>e(B))},setConfig(e){var t,s;Ie.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(B,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Le.call(t,s)&&ne(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=We({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",N.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const _={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${N.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${N.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var Ce=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Me=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))je.call(t,s)&&re(e,s,t[s]);return e};const ae=p.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Re={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=N.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await _.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ae?await _.getMobileListings(m):await _.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=Me({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=N.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=ae?await _.getMobileListings(t):await _.getDesktopListings(t),n=Object.values(f),h=m?"search":"wallets";return O[h]={listings:[...O[h].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return _.getWalletImageUrl(e)},getAssetImageUrl(e){return _.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},k=j({open:!1}),F={state:k,subscribe(e){return S(k,()=>e(k))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)k.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),k.open=!0,t())},200)}})},close(){k.open=!1}};var _e=Object.defineProperty,ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ue=(e,t)=>{for(var s in t||(t={}))Pe.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))Se.call(t,s)&&le(e,s,t[s]);return e};function De(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:De()?"dark":"light"}),ce={state:R,subscribe(e){return S(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=Ue({},s))}},P=j({open:!1,message:"",variant:"success"}),$e={state:P,subscribe(e){return S(P,()=>e(P))},openToast(e,t){P.open=!0,P.message=e,P.variant=t},closeToast(){P.open=!1}};class ke{constructor(t){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),N.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await fe(()=>import("./index-CBRIB26U.js"),__vite__mapDeps([0,1,2,3]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const Ve=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:ke},Symbol.toStringTag,{value:"Module"}));export{Ie as R,de as T,p as a,Ve as i,ce as n,$e as o,w as p,F as s,Re as t,N as y};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
open: boolean;
|
|
6
|
-
id?: any;
|
|
7
|
-
onToggle?: (id: any) => any;
|
|
8
|
-
};
|
|
9
|
-
declare function Dropdown(props: Props): React.JSX.Element;
|
|
10
|
-
export default Dropdown;
|
|
11
|
-
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiD1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,GAAG,CAAC;CAC7B,CAAC;AAEF,iBAAS,QAAQ,CAAC,KAAK,EAAE,KAAK,qBA2B7B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,oKAyBT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/consts/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2FACsD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Chain } from '@wormhole-foundation/sdk-base';
|
|
2
|
-
type Props = {
|
|
3
|
-
sourceChain: Chain | undefined;
|
|
4
|
-
sourceToken: string;
|
|
5
|
-
destChain: Chain | undefined;
|
|
6
|
-
destToken: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
toNativeToken: number;
|
|
10
|
-
};
|
|
11
|
-
type returnProps = {
|
|
12
|
-
receiveAmount: number | undefined;
|
|
13
|
-
receiveAmountUSD: string | undefined;
|
|
14
|
-
estimatedTime: string | undefined;
|
|
15
|
-
isFetching: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const useComputeFees: (props: Props) => returnProps;
|
|
18
|
-
export default useComputeFees;
|
|
19
|
-
//# sourceMappingURL=useComputeFees.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComputeFees.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComputeFees.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAY,MAAM,+BAA+B,CAAC;AAShE,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,KAAK,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,cAAc,UAAW,KAAK,KAAG,WA4HtC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Chain } from '@wormhole-foundation/sdk';
|
|
2
|
-
type Props = {
|
|
3
|
-
sourceChain: Chain | undefined;
|
|
4
|
-
sourceToken: string;
|
|
5
|
-
destChain: Chain | undefined;
|
|
6
|
-
destToken: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
toNativeToken: number;
|
|
10
|
-
};
|
|
11
|
-
type returnProps = {
|
|
12
|
-
isFetching: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const useComputeQuote: (props: Props) => returnProps;
|
|
15
|
-
export default useComputeQuote;
|
|
16
|
-
//# sourceMappingURL=useComputeQuote.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComputeQuote.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComputeQuote.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAuB,MAAM,0BAA0B,CAAC;AAItE,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,KAAK,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,UAAW,KAAK,KAAG,WA8HvC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchRedeemTx.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchRedeemTx.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,gBAAgB,QAAO,IAqD5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../src/icons/Clock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,SAAS,yBAiCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/src/icons/Info.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/icons/Info.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ;;CAOb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
icon: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
height?: number;
|
|
6
|
-
showOpenInNewIcon?: boolean;
|
|
7
|
-
description?: string;
|
|
8
|
-
};
|
|
9
|
-
declare function MoreNetworkIcon({ height, alt, icon, showOpenInNewIcon, description, }: Props): React.JSX.Element;
|
|
10
|
-
export default MoreNetworkIcon;
|
|
11
|
-
//# sourceMappingURL=MoreNetworkIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MoreNetworkIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/MoreNetworkIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkC1B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,MAAM,EACN,GAAG,EACH,IAAI,EACJ,iBAAwB,EACxB,WAAW,GACZ,EAAE,KAAK,qBA4BP;AAED,eAAe,eAAe,CAAC"}
|
package/dist/src/icons/Open.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Open.d.ts","sourceRoot":"","sources":["../../../src/icons/Open.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ;;CAWb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Hashflow.d.ts","sourceRoot":"","sources":["../../../../src/icons/Routes/Hashflow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,iBAAS,YAAY,sBAgBpB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../../src/icons/Wallet.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,UAAU;;CAUf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportWebVitals.d.ts","sourceRoot":"","sources":["../../src/reportWebVitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,QAAA,MAAM,eAAe,iBAAkB,aAAa,SAUnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TransferInfo } from '../utils/sdkv2';
|
|
2
|
-
import { TokenPrices } from '../store/tokenPrices';
|
|
3
|
-
import { TokenId } from '../sdklegacy';
|
|
4
|
-
export interface TransferInfoBaseParams {
|
|
5
|
-
txData: TransferInfo;
|
|
6
|
-
tokenPrices: TokenPrices;
|
|
7
|
-
}
|
|
8
|
-
export interface TransferDestInfoBaseParams {
|
|
9
|
-
txData: TransferInfo;
|
|
10
|
-
tokenPrices: TokenPrices;
|
|
11
|
-
receiveTx?: string;
|
|
12
|
-
gasEstimate?: string;
|
|
13
|
-
}
|
|
14
|
-
export type Row = {
|
|
15
|
-
title: string;
|
|
16
|
-
value: string;
|
|
17
|
-
valueUSD?: string;
|
|
18
|
-
};
|
|
19
|
-
export interface NestedRow extends Row {
|
|
20
|
-
rows?: Row[];
|
|
21
|
-
}
|
|
22
|
-
export type TransferDestInfo = {
|
|
23
|
-
route: string;
|
|
24
|
-
displayData: TransferDisplayData;
|
|
25
|
-
};
|
|
26
|
-
export type TransferDisplayData = NestedRow[];
|
|
27
|
-
export interface RelayerFee {
|
|
28
|
-
fee: bigint;
|
|
29
|
-
feeToken: TokenId | 'native';
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,GAAG;IACpC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,SAAS,EAAE,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmBeforeLeaving.d.ts","sourceRoot":"","sources":["../../../src/utils/confirmBeforeLeaving.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,uBAAuB,kBAAmB,OAAO,SAatD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/lib/index-DHSWeh-m.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)},H={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_CONNECT_GIT_HASH:"5534a95209cc64101f6b34f3fa3e7486d56a9233",REACT_APP_CONNECT_VERSION:"1.1.4",SSR:!1},F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(w,_))return;const L=Reflect.get(n,_),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,_,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let _=f[1];const L=(a=++f[1])=>(_!==a&&!v.size&&(_=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],k)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const T=o[3](M(k));b.set(k,[o,T])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],k)=>{h&&(h(),b.set(k,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const k=Reflect.has(a,i),T=Reflect.get(a,i,h);if(k&&(e(T,o)||m.has(o)&&e(T,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,T]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:E,subscribe(e){return D(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),U={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Ee.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Oe.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",U.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const P={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=U.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await P.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await P.getMobileListings(m):await P.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=U.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await P.getMobileListings(t):await P.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return O[g]={listings:[...O[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return P.getWalletImageUrl(e)},getAssetImageUrl(e){return P.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},N=j({open:!1}),z={state:N,subscribe(e){return D(N,()=>e(N))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)N.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),N.open=!0,t())},200)}})},close(){N.open=!1}};var Pe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Ue.call(t,s)&&de(e,s,t[s]);return e};function _e(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:_e()?"dark":"light"}),Z={state:R,subscribe(e){return D(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),ke={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Ne{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),U.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-CpWbXdKl.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Te=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Ne},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Te;exports.ne=Z;exports.oe=ke;exports.p=y;exports.se=z;exports.te=Me;exports.y=U;
|
package/lib/solana-C5D4LdxL.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { S as n, e as r, f as i, c as s, g as t } from "./index-DgePBEwv.mjs";
|
|
2
|
-
import { g as l } from "./signer-CSn2uQ3I.mjs";
|
|
3
|
-
const m = {
|
|
4
|
-
Address: n,
|
|
5
|
-
Platform: r,
|
|
6
|
-
getSigner: l,
|
|
7
|
-
protocols: {
|
|
8
|
-
WormholeCore: () => import("./index-DgePBEwv.mjs").then((o) => o.dP),
|
|
9
|
-
TokenBridge: () => import("./index-CscLQMzV.mjs"),
|
|
10
|
-
CircleBridge: () => import("./index-BMH6cJU8.mjs")
|
|
11
|
-
},
|
|
12
|
-
getChain: (o, a, e) => new i(a, new r(o, s(o, t, { [a]: e })))
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
m as default
|
|
16
|
-
};
|
package/lib/solana-JSgP_iZe.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B5r3vRTo.js"),i=require("./signer-JVKCqiEl.js"),a={Address:e.SolanaAddress,Platform:e.SolanaPlatform,getSigner:i.getSolanaSignAndSendSigner,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-B5r3vRTo.js")).then(r=>r.index$2),TokenBridge:()=>Promise.resolve().then(()=>require("./index-Bdh7euLM.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-CCrop6yd.js"))},getChain:(r,o,n)=>new e.SolanaChain(o,new e.SolanaPlatform(r,e.applyChainsConfigConfigOverrides(r,e._platform$1,{[o]:n})))};exports.default=a;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
open: boolean;
|
|
6
|
-
id?: any;
|
|
7
|
-
onToggle?: (id: any) => any;
|
|
8
|
-
};
|
|
9
|
-
declare function Dropdown(props: Props): React.JSX.Element;
|
|
10
|
-
export default Dropdown;
|
|
11
|
-
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiD1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,GAAG,CAAC;CAC7B,CAAC;AAEF,iBAAS,QAAQ,CAAC,KAAK,EAAE,KAAK,qBA2B7B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,oKAyBT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/consts/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2FACsD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Chain } from '@wormhole-foundation/sdk-base';
|
|
2
|
-
type Props = {
|
|
3
|
-
sourceChain: Chain | undefined;
|
|
4
|
-
sourceToken: string;
|
|
5
|
-
destChain: Chain | undefined;
|
|
6
|
-
destToken: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
toNativeToken: number;
|
|
10
|
-
};
|
|
11
|
-
type returnProps = {
|
|
12
|
-
receiveAmount: number | undefined;
|
|
13
|
-
receiveAmountUSD: string | undefined;
|
|
14
|
-
estimatedTime: string | undefined;
|
|
15
|
-
isFetching: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const useComputeFees: (props: Props) => returnProps;
|
|
18
|
-
export default useComputeFees;
|
|
19
|
-
//# sourceMappingURL=useComputeFees.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComputeFees.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComputeFees.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAY,MAAM,+BAA+B,CAAC;AAShE,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,KAAK,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,cAAc,UAAW,KAAK,KAAG,WA4HtC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Chain } from '@wormhole-foundation/sdk';
|
|
2
|
-
type Props = {
|
|
3
|
-
sourceChain: Chain | undefined;
|
|
4
|
-
sourceToken: string;
|
|
5
|
-
destChain: Chain | undefined;
|
|
6
|
-
destToken: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
toNativeToken: number;
|
|
10
|
-
};
|
|
11
|
-
type returnProps = {
|
|
12
|
-
isFetching: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const useComputeQuote: (props: Props) => returnProps;
|
|
15
|
-
export default useComputeQuote;
|
|
16
|
-
//# sourceMappingURL=useComputeQuote.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComputeQuote.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComputeQuote.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAuB,MAAM,0BAA0B,CAAC;AAItE,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,KAAK,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,UAAW,KAAK,KAAG,WA8HvC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchRedeemTx.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchRedeemTx.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,gBAAgB,QAAO,IAqD5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/lib/src/icons/Clock.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../src/icons/Clock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,SAAS,yBAiCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/src/icons/Info.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/icons/Info.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ;;CAOb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
icon: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
height?: number;
|
|
6
|
-
showOpenInNewIcon?: boolean;
|
|
7
|
-
description?: string;
|
|
8
|
-
};
|
|
9
|
-
declare function MoreNetworkIcon({ height, alt, icon, showOpenInNewIcon, description, }: Props): React.JSX.Element;
|
|
10
|
-
export default MoreNetworkIcon;
|
|
11
|
-
//# sourceMappingURL=MoreNetworkIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MoreNetworkIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/MoreNetworkIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkC1B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,MAAM,EACN,GAAG,EACH,IAAI,EACJ,iBAAwB,EACxB,WAAW,GACZ,EAAE,KAAK,qBA4BP;AAED,eAAe,eAAe,CAAC"}
|
package/lib/src/icons/Open.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Open.d.ts","sourceRoot":"","sources":["../../../src/icons/Open.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ;;CAWb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Hashflow.d.ts","sourceRoot":"","sources":["../../../../src/icons/Routes/Hashflow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,iBAAS,YAAY,sBAgBpB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../../src/icons/Wallet.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,UAAU;;CAUf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportWebVitals.d.ts","sourceRoot":"","sources":["../../src/reportWebVitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,QAAA,MAAM,eAAe,iBAAkB,aAAa,SAUnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TransferInfo } from '../utils/sdkv2';
|
|
2
|
-
import { TokenPrices } from '../store/tokenPrices';
|
|
3
|
-
import { TokenId } from '../sdklegacy';
|
|
4
|
-
export interface TransferInfoBaseParams {
|
|
5
|
-
txData: TransferInfo;
|
|
6
|
-
tokenPrices: TokenPrices;
|
|
7
|
-
}
|
|
8
|
-
export interface TransferDestInfoBaseParams {
|
|
9
|
-
txData: TransferInfo;
|
|
10
|
-
tokenPrices: TokenPrices;
|
|
11
|
-
receiveTx?: string;
|
|
12
|
-
gasEstimate?: string;
|
|
13
|
-
}
|
|
14
|
-
export type Row = {
|
|
15
|
-
title: string;
|
|
16
|
-
value: string;
|
|
17
|
-
valueUSD?: string;
|
|
18
|
-
};
|
|
19
|
-
export interface NestedRow extends Row {
|
|
20
|
-
rows?: Row[];
|
|
21
|
-
}
|
|
22
|
-
export type TransferDestInfo = {
|
|
23
|
-
route: string;
|
|
24
|
-
displayData: TransferDisplayData;
|
|
25
|
-
};
|
|
26
|
-
export type TransferDisplayData = NestedRow[];
|
|
27
|
-
export interface RelayerFee {
|
|
28
|
-
fee: bigint;
|
|
29
|
-
feeToken: TokenId | 'native';
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,GAAG;IACpC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,SAAS,EAAE,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmBeforeLeaving.d.ts","sourceRoot":"","sources":["../../../src/utils/confirmBeforeLeaving.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,uBAAuB,kBAAmB,OAAO,SAatD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|