@wormhole-foundation/wormhole-connect 0.3.19-beta.3-development → 0.3.19-beta.5-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.
Files changed (115) hide show
  1. package/dist/assets/{ccip-B8sh0red.js → ccip-De5bB7ry.js} +1 -1
  2. package/dist/assets/{evm-B3YdeaCI.js → evm-DJTN7n-6.js} +4 -4
  3. package/dist/assets/{index-moDeJTxm.js → index-CdA027fm.js} +1 -1
  4. package/dist/assets/{index-1ZJmfQkw.js → index-D8xdfMo8.js} +2 -2
  5. package/dist/assets/{index.es-CXmj0UJy.js → index.es-DsPAzXeV.js} +2 -2
  6. package/dist/main.js +7 -7
  7. package/dist/src/components/ManualAddressInput.d.ts.map +1 -1
  8. package/dist/src/routes/cosmosGateway/cosmosGateway.d.ts +2 -0
  9. package/dist/src/routes/cosmosGateway/cosmosGateway.d.ts.map +1 -1
  10. package/dist/src/routes/porticoBridge/porticoBridge.d.ts +2 -0
  11. package/dist/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
  12. package/dist/src/routes/sdkv2/route.d.ts +1 -1
  13. package/dist/src/routes/sdkv2/route.d.ts.map +1 -1
  14. package/dist/src/routes/tbtc/tbtc.d.ts +2 -0
  15. package/dist/src/routes/tbtc/tbtc.d.ts.map +1 -1
  16. package/lib/{algorand-BDR3KPTJ.js → algorand-BizCMnCe.js} +1 -1
  17. package/lib/{algorand-CNPRWbNB.mjs → algorand-CZC9cPKi.mjs} +4 -4
  18. package/lib/{aptos-BPs26BCC.mjs → aptos-B4ng1XsR.mjs} +1 -1
  19. package/lib/{aptos-t3uXFwih.mjs → aptos-CRkEBLid.mjs} +4 -4
  20. package/lib/{aptos-tCZHrDAP.js → aptos-CXyHqFt8.js} +2 -2
  21. package/lib/{aptos-Br9Q1n2N.js → aptos-i8WEm-Fe.js} +1 -1
  22. package/lib/{browser-33Nc32cs.mjs → browser-CIwNo6kY.mjs} +2 -2
  23. package/lib/{browser-Cz60hQ-L.js → browser-DEzmpMBm.js} +1 -1
  24. package/lib/{ccip-CtmuOQGX.js → ccip-6omn1tDF.js} +1 -1
  25. package/lib/{ccip-CE49B2YD.mjs → ccip-LzzuUWf7.mjs} +1 -1
  26. package/lib/{chain-BT07YJHt.js → chain-BteoJHpg.js} +1 -1
  27. package/lib/{chain-CbwtJlkc.mjs → chain-Cc-vL0Ji.mjs} +1 -1
  28. package/lib/{cosmos-LlwNYP69.mjs → cosmos-5NiZ8EbB.mjs} +3 -3
  29. package/lib/{cosmos-t65H2NQC.js → cosmos-DM4Lrmu1.js} +1 -1
  30. package/lib/{cosmwasm-CiJ3I3AY.js → cosmwasm-8FJsT7LT.js} +2 -2
  31. package/lib/{cosmwasm-CbTKetWD.mjs → cosmwasm-BHEBPmf7.mjs} +6 -6
  32. package/lib/{create-Chqnlpoq.js → create-48Wkagqs.js} +1 -1
  33. package/lib/{create-HNw0Emrd.mjs → create-BIAJIVSg.mjs} +1 -1
  34. package/lib/{ens-validation.es6-BaZUabxu.js → ens-validation.es6-Bw--s4Qc.js} +1 -1
  35. package/lib/{ens-validation.es6-CyEOHc9J.mjs → ens-validation.es6-DQFhqeC0.mjs} +2 -2
  36. package/lib/{evm-lHNM4jqm.mjs → evm-B5hnoH2O.mjs} +6 -6
  37. package/lib/{evm-CjvzIUCn.mjs → evm-Dd33ef5o.mjs} +6 -6
  38. package/lib/{evm-CNC7JHe1.js → evm-JNEgzI8_.js} +4 -4
  39. package/lib/{evm-3AGyBI-h.js → evm-OwiMOsDg.js} +2 -2
  40. package/lib/{index-BWsL77BI.mjs → index-10BWvX1N.mjs} +3 -3
  41. package/lib/{index-DPNt5r2L.js → index-670AMJe5.js} +1 -1
  42. package/lib/{index-C4kvGnSA.mjs → index-B03MiI2p.mjs} +2 -2
  43. package/lib/{index-BpuXk_6h.js → index-B9pFbfyU.js} +1 -1
  44. package/lib/{index-35qsyZLz.js → index-BDi5PNJc.js} +1 -1
  45. package/lib/{index-BCSt_UXY.js → index-BFIX3imu.js} +1 -1
  46. package/lib/{index-CACyup9A.js → index-BHUxBugG.js} +1 -1
  47. package/lib/{index-DVVJw5ml.js → index-BHWhOqWI.js} +1 -1
  48. package/lib/{index-ztQgUCWf.js → index-BJPmRnHn.js} +1 -1
  49. package/lib/{index-BCnyHegg.mjs → index-Bg59b-Bk.mjs} +4 -4
  50. package/lib/{index-CbCfazgA.mjs → index-By8Yxkcx.mjs} +5 -5
  51. package/lib/{index-Tl7zYqHL.js → index-C1oy9Lkm.js} +6 -6
  52. package/lib/{index-DJzhcNDU.mjs → index-CHqEmT8z.mjs} +6 -6
  53. package/lib/{index-Bk7wdRtH.mjs → index-CMKVJZ8E.mjs} +3 -3
  54. package/lib/{index-DRTx-Ru8.mjs → index-CNbmckF9.mjs} +4 -4
  55. package/lib/{index-D1dHZqit.mjs → index-CU3qSQjR.mjs} +4 -4
  56. package/lib/{index-CjyrCdi_.mjs → index-CVjCpWVm.mjs} +1 -1
  57. package/lib/{index-BBtf8VGl.js → index-CYRY8C8f.js} +1 -1
  58. package/lib/{index-DfJLd65b.mjs → index-Cx7DnGQ7.mjs} +4 -4
  59. package/lib/{index-CdSy2Lfd.mjs → index-D4oa5qLu.mjs} +85 -62
  60. package/lib/{index-zKUpU-3R.mjs → index-D7DR5q91.mjs} +4 -4
  61. package/lib/{index-BH5gBrJu.mjs → index-D83yFXT3.mjs} +3 -3
  62. package/lib/{index-B6m0ovID.mjs → index-D8SeaoGs.mjs} +2 -2
  63. package/lib/{index-DGRaAUXo.mjs → index-D8l7OdtE.mjs} +2 -2
  64. package/lib/{index-Dbwiqljw.js → index-DETB2K9l.js} +1 -1
  65. package/lib/{index-abvwfKBf.js → index-DGfMxIjQ.js} +1 -1
  66. package/lib/{index-l_e-RUun.js → index-DLpTO2U3.js} +1 -1
  67. package/lib/{index-CokIAiMa.mjs → index-DX18kVfL.mjs} +4 -4
  68. package/lib/{index-dJMYtBle.mjs → index-DX6w1JtB.mjs} +4 -4
  69. package/lib/{index-B9L2kltl.mjs → index-DbMbSuyg.mjs} +4 -4
  70. package/lib/{index-DCPwTd_i.js → index-DfYaeaDv.js} +1 -1
  71. package/lib/{index-0t31FGKV.js → index-DjmghqSr.js} +1 -1
  72. package/lib/{index-UOSBfEgg.js → index-DlRC-hs-.js} +1 -1
  73. package/lib/{index-Cp5np38p.mjs → index-G7Dlm7ed.mjs} +1 -1
  74. package/lib/{index-Bp0NhDcb.js → index-Hyeca4Ym.js} +1 -1
  75. package/lib/{index-DVH-ZIP6.mjs → index-ROBBwabT.mjs} +4 -4
  76. package/lib/{index-CO9tmWap.js → index-WhcobQtR.js} +1 -1
  77. package/lib/{index-DrncQYMG.js → index-X-BikqCf.js} +1 -1
  78. package/lib/{index-BqGvvv6N.js → index-ZCZHbA1F.js} +1 -1
  79. package/lib/{index-Cofatf_w.js → index-isN8Fo1n.js} +1 -1
  80. package/lib/{index-B9gw1I6s.js → index-j8isX5f9.js} +1 -1
  81. package/lib/{index-CGLAoOXl.mjs → index-jlt17KkN.mjs} +4 -4
  82. package/lib/{index-BS1tjK_Z.mjs → index-mtuCwj6Z.mjs} +5 -5
  83. package/lib/{index-Bfw-brA6.js → index-oVIYJXdI.js} +1 -1
  84. package/lib/{index-CYap2RXm.js → index-tvG-rfJZ.js} +1 -1
  85. package/lib/{index-DvUq-nIQ.mjs → index-ybRLAtD8.mjs} +5 -5
  86. package/lib/{index.es-494n2GDU.js → index.es-B33YjOZu.js} +2 -2
  87. package/lib/{index.es-DnXnnX-i.mjs → index.es-BON8c55F.mjs} +4 -4
  88. package/lib/index.js +1 -1
  89. package/lib/index.mjs +1 -1
  90. package/lib/{libsodium-wrappers-9p7NdjLu.mjs → libsodium-wrappers-DTuXKVrZ.mjs} +1 -1
  91. package/lib/{libsodium-wrappers-Dechaffz.js → libsodium-wrappers-VihnPAqR.js} +1 -1
  92. package/lib/{sei-SWKTnPTF.mjs → sei-C6N03jzv.mjs} +2 -2
  93. package/lib/{sei-DORxBQd-.js → sei-DTeCXpXl.js} +1 -1
  94. package/lib/{solana-Bd9eRY8E.js → solana--YauUjmQ.js} +2 -2
  95. package/lib/{solana-T2pgCVfU.mjs → solana-BMm013WW.mjs} +6 -6
  96. package/lib/{solana-DvbMa7B_.mjs → solana-DdaraOHp.mjs} +3 -3
  97. package/lib/{solana-KhBV5LOd.js → solana-T3yS-Q_9.js} +1 -1
  98. package/lib/{solanaEmbed.esm-CnKFJhsj.js → solanaEmbed.esm-DMwXbxXO.js} +1 -1
  99. package/lib/{solanaEmbed.esm-8eZSo5K2.mjs → solanaEmbed.esm-D_lKLzGu.mjs} +2 -2
  100. package/lib/src/components/ManualAddressInput.d.ts.map +1 -1
  101. package/lib/src/routes/cosmosGateway/cosmosGateway.d.ts +2 -0
  102. package/lib/src/routes/cosmosGateway/cosmosGateway.d.ts.map +1 -1
  103. package/lib/src/routes/porticoBridge/porticoBridge.d.ts +2 -0
  104. package/lib/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
  105. package/lib/src/routes/sdkv2/route.d.ts +1 -1
  106. package/lib/src/routes/sdkv2/route.d.ts.map +1 -1
  107. package/lib/src/routes/tbtc/tbtc.d.ts +2 -0
  108. package/lib/src/routes/tbtc/tbtc.d.ts.map +1 -1
  109. package/lib/{sui-DDu4a1uc.mjs → sui-Btvc4SGv.mjs} +4 -4
  110. package/lib/{sui-CjRGl9Gg.mjs → sui-CXyWZ2Gp.mjs} +1 -1
  111. package/lib/{sui-B382sZz0.js → sui-DWLiZoeB.js} +1 -1
  112. package/lib/{sui-DwH1wYGH.js → sui-DbQOBpeH.js} +2 -2
  113. package/lib/{unsignedTransaction-BbAfXtog.mjs → unsignedTransaction-CtPR6znR.mjs} +2 -2
  114. package/lib/{unsignedTransaction-mu6HJcHt.js → unsignedTransaction-DZq5iThY.js} +1 -1
  115. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  var yu = Object.defineProperty;
2
2
  var bu = (e, t, n) => t in e ? yu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var at = (e, t, n) => (bu(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-CdSy2Lfd.mjs";
5
- import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-CyEOHc9J.mjs";
6
- import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-CbTKetWD.mjs";
7
- import { CosmwasmWormholeCore as pd } from "./index-CokIAiMa.mjs";
8
- import { c as gd, C as yd } from "./unsignedTransaction-BbAfXtog.mjs";
9
- import { r as bd } from "./chain-CbwtJlkc.mjs";
4
+ import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-D4oa5qLu.mjs";
5
+ import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-DQFhqeC0.mjs";
6
+ import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-BHEBPmf7.mjs";
7
+ import { CosmwasmWormholeCore as pd } from "./index-DX18kVfL.mjs";
8
+ import { c as gd, C as yd } from "./unsignedTransaction-CtPR6znR.mjs";
9
+ import { r as bd } from "./chain-Cc-vL0Ji.mjs";
10
10
  function vd(e) {
11
11
  return e.id !== void 0 && e.pending !== void 0 && e.data !== void 0;
12
12
  }
@@ -1,7 +1,7 @@
1
- import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-CdSy2Lfd.mjs";
1
+ import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-D4oa5qLu.mjs";
2
2
  import { d as ku } from "./dijkstra-BZM-8g-B.mjs";
3
- import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-33Nc32cs.mjs";
4
- import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-Cp5np38p.mjs";
3
+ import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-CIwNo6kY.mjs";
4
+ import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-G7Dlm7ed.mjs";
5
5
  let Ju = class extends Fu {
6
6
  constructor(e) {
7
7
  super(e), this.events = new er.EventEmitter(), this.hasRegisteredEventListeners = !1, this.connection = this.setConnection(e), this.connection.connected && this.registerEventListeners();
@@ -17,10 +17,10 @@ var qt = (r, e, t, n) => ({
17
17
  return b(r, e, n);
18
18
  }
19
19
  }), A = (r, e, t) => (It(r, e, "access private method"), t);
20
- import { r as w0 } from "./chain-CbwtJlkc.mjs";
21
- import { E as T0, a as Pt, b as E0, c as x0, _ as N0 } from "./evm-lHNM4jqm.mjs";
22
- import { c as v0 } from "./create-HNw0Emrd.mjs";
23
- import { by as O0, c8 as A0, at as k0 } from "./index-CdSy2Lfd.mjs";
20
+ import { r as w0 } from "./chain-Cc-vL0Ji.mjs";
21
+ import { E as T0, a as Pt, b as E0, c as x0, _ as N0 } from "./evm-B5hnoH2O.mjs";
22
+ import { c as v0 } from "./create-BIAJIVSg.mjs";
23
+ import { by as O0, c8 as A0, at as k0 } from "./index-D4oa5qLu.mjs";
24
24
  class I0 {
25
25
  constructor(e, t, n, s, i = !1) {
26
26
  u(this, "transaction");
@@ -1,10 +1,10 @@
1
1
  var d = Object.defineProperty;
2
2
  var h = (i, e, t) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var o = (i, e, t) => (h(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { bp as w, au as p, at as g } from "./index-CdSy2Lfd.mjs";
5
- import { A as u } from "./aptos-t3uXFwih.mjs";
6
- import { c as l } from "./create-HNw0Emrd.mjs";
7
- import { r as f } from "./chain-CbwtJlkc.mjs";
4
+ import { bp as w, au as p, at as g } from "./index-D4oa5qLu.mjs";
5
+ import { A as u } from "./aptos-CRkEBLid.mjs";
6
+ import { c as l } from "./create-BIAJIVSg.mjs";
7
+ import { r as f } from "./chain-Cc-vL0Ji.mjs";
8
8
  class c {
9
9
  constructor(e, t, r, s) {
10
10
  o(this, "network");
@@ -1,4 +1,4 @@
1
- import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-CdSy2Lfd.mjs";
1
+ import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-D4oa5qLu.mjs";
2
2
  var Je = {}, Qe = { exports: {} }, je = {};
3
3
  (function(o) {
4
4
  o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
@@ -1 +1 @@
1
- "use strict";var D=Object.defineProperty;var H=(o,e,t)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var p=(o,e,t)=>(H(o,typeof e!="symbol"?e+"":e,t),t);const n=require("./index-Tl7zYqHL.js"),l=require("./algorand-BDR3KPTJ.js"),z=require("./create-Chqnlpoq.js"),$=require("./chain-BT07YJHt.js");class K{constructor(e,t,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=t,this.chain=r,this.description=s,this.parallelizable=i}}const V=1002e3,U=15,L=127,C=8,N=L*C,F=L*U,O=C*F,y={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,t)=>{if(typeof o=="bigint"&&(o=l.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=y.encodingLength(o);if(e=e||new ArrayBuffer(r),t=t||0,e.byteLength<t+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,t);let i=0;for(;y._limit<o;)s[i++]=o&y._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let t=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");t+=(s&y._limit)<<r*7,r++}while(128<=s);return t}},u={forMessageId:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=n.bignum.toBytes(BigInt(n.toChainId(e.chain)),2),i=n.bytes.concat(s,r);return u.fromData({appId:o,appAddress:t,idx:e.sequence/BigInt(O),address:i})},forWrappedAsset:(o,e)=>{if(n.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(n.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:e,address:n.bytes.encode("native")})},forGuardianSet:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(e),address:n.bytes.encode("guardian")})},forEmitter:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[n.hex.encode(y.encode(o))]:[n.hex.encode(y.encode(o.length)),n.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],t=n.hex.decode(e.join(""));return new n.LogicSigAccount(t)},decodeLocalState:async(o,e,t)=>{let r;try{const a=await o.accountApplicationInformation(t,l.safeBigIntToNumber(e)).do();r=n.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=n.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=n.b64.decode(a.key)[0],A=n.b64.decode(a.value.bytes);i.set(g,A)}const d=[];for(let a=0;a<U;a++)i.has(a)&&d.push(i.get(a));return n.bytes.concat(...d)},checkBitsSet:async(o,e,t,r)=>{let s=!1,i;const d=await o.accountInformation(t).do(),g=n.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(m=>{BigInt(m.id)===e&&(i=m.keyValue)}),(i==null?void 0:i.length)===0)return s;const A=BigInt(O),h=BigInt(8),b=r/A*A,x=l.safeBigIntToNumber(r-b),w=Math.floor(x/N),I=Math.floor((x-w*N)/8),_=n.b64.encode(n.bignum.toBytes(w,1));return i==null||i.forEach(m=>{if(m.key===_){const k=n.dist.Buffer.from(m.value.bytes,"base64"),S=1<<l.safeBigIntToNumber(r%h);s=(k[I]&S)!=0;return}}),s},storageAccountExists:async(o,e,t)=>{try{const r=await o.accountApplicationInformation(e,l.safeBigIntToNumber(t)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,t,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=t,this.connection=r,this.contracts=s,this.chainId=n.toChainId(t),!s.coreBridge)throw new Error(`Core contract address for chain ${t} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=n.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${t} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=n.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,t,r){const s=new l.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,t,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,t){const[r,s]=await l.AlgorandPlatform.chainFromRpc(e),i=t[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,t){const r=new l.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const h of g)yield this.createUnsignedTx(h,"Core.publishMessage",!0);const A=n.makeApplicationCallTxnFromObject({from:s,appIndex:l.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,t,n.bignum.toBytes(0n,8)],accounts:a,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:A},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(l.safeBigIntToNumber(this.coreAppId)).do(),r=(s=n.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r)}parseTx(e){const t=[];if(e.innerTxns&&e.innerTxns.length>0&&t.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return t;const r=e.txn.txn.apaa??[];if(r.length!==3||!n.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return t;const s=n.bignum.decode(e.logs[0]),i=new l.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=n.bignum.decode(r[2]);return t.push(z.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),t}static async maybeCreateStorageTx(e,t,r,s,i){const d=n.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const A=n.makePaymentTxnWithSuggestedParamsFromObject({from:t,to:a,amount:V,suggestedParams:i});A.fee=A.fee*2,g.push({tx:A});const h=n.makeApplicationOptInTxnFromObject({from:a,appIndex:l.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return h.fee=0,g.push({tx:h,signer:{address:s.address(),signTxn:b=>Promise.resolve(n.signLogicSigTransaction(b,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,t,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:A,txs:h}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...h);const b=u.forGuardianSet(t,s.guardianSet),{accounts:[x],txs:w}=await c.maybeCreateStorageTx(e,i,t,b,d);a.push(...w);let I=[...A,x];const _=await u.decodeLocalState(e,t,x),m=n.keccak_256(s.hash),k=s.signatures.length,S=Math.ceil(k/c.MAX_SIGS_PER_TXN),E=20,v=new n.LogicSigAccount(c.ALGO_VERIFY);for(let R=0;R<S;R++){const G=R*c.MAX_SIGS_PER_TXN,B=s.signatures.slice(G,G+c.MAX_SIGS_PER_TXN),Y=B.length*E,X=new Uint8Array(Y);for(let f=0;f<B.length;f++){const j=B[f],q=_.slice(j.guardianIndex*E+1,(j.guardianIndex+1)*E+1);X.set(q,f*20)}const P=n.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,n.bytes.concat(...B.map(f=>n.bytes.concat(new Uint8Array([f.guardianIndex]),f.signature.encode()))),X,m],accounts:I,appIndex:l.safeBigIntToNumber(t),from:c.ALGO_VERIFY_HASH,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});P.fee=0,a.push({tx:P,signer:{address:v.address(),signTxn:f=>Promise.resolve(n.signLogicSigTransaction(f,v).blob)}})}const M=n.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,n.serialize(s)],accounts:I,appIndex:l.safeBigIntToNumber(t),from:i,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});return M.fee=M.fee*(2+S),a.push({tx:M}),{accounts:I,txs:a}}createUnsignedTx(e,t,r=!0){return new K(e,this.network,this.chain,t,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",n.b64.encode("MessageFee")),p(c,"verifyVaa",n.bytes.encode("verifyVAA")),p(c,"verifySigs",n.bytes.encode("verifySigs")),p(c,"publishMessage",n.bytes.encode("publishMessage"));let T=c;$.registerProtocol("Algorand","WormholeCore",T);const Z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:T,BITS_PER_BYTE:C,BITS_PER_KEY:N,MAX_BITS:O,MAX_BYTES:F,MAX_BYTES_PER_KEY:L,MAX_KEYS:U,SEED_AMT:V,StorageLogicSig:u,varint:y},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=K;exports.AlgorandWormholeCore=T;exports.StorageLogicSig=u;exports.index=Z;
1
+ "use strict";var D=Object.defineProperty;var H=(o,e,t)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var p=(o,e,t)=>(H(o,typeof e!="symbol"?e+"":e,t),t);const n=require("./index-C1oy9Lkm.js"),l=require("./algorand-BizCMnCe.js"),z=require("./create-48Wkagqs.js"),$=require("./chain-BteoJHpg.js");class K{constructor(e,t,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=t,this.chain=r,this.description=s,this.parallelizable=i}}const V=1002e3,U=15,L=127,C=8,N=L*C,F=L*U,O=C*F,y={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,t)=>{if(typeof o=="bigint"&&(o=l.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=y.encodingLength(o);if(e=e||new ArrayBuffer(r),t=t||0,e.byteLength<t+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,t);let i=0;for(;y._limit<o;)s[i++]=o&y._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let t=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");t+=(s&y._limit)<<r*7,r++}while(128<=s);return t}},u={forMessageId:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=n.bignum.toBytes(BigInt(n.toChainId(e.chain)),2),i=n.bytes.concat(s,r);return u.fromData({appId:o,appAddress:t,idx:e.sequence/BigInt(O),address:i})},forWrappedAsset:(o,e)=>{if(n.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(n.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:e,address:n.bytes.encode("native")})},forGuardianSet:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(e),address:n.bytes.encode("guardian")})},forEmitter:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[n.hex.encode(y.encode(o))]:[n.hex.encode(y.encode(o.length)),n.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],t=n.hex.decode(e.join(""));return new n.LogicSigAccount(t)},decodeLocalState:async(o,e,t)=>{let r;try{const a=await o.accountApplicationInformation(t,l.safeBigIntToNumber(e)).do();r=n.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=n.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=n.b64.decode(a.key)[0],A=n.b64.decode(a.value.bytes);i.set(g,A)}const d=[];for(let a=0;a<U;a++)i.has(a)&&d.push(i.get(a));return n.bytes.concat(...d)},checkBitsSet:async(o,e,t,r)=>{let s=!1,i;const d=await o.accountInformation(t).do(),g=n.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(m=>{BigInt(m.id)===e&&(i=m.keyValue)}),(i==null?void 0:i.length)===0)return s;const A=BigInt(O),h=BigInt(8),b=r/A*A,x=l.safeBigIntToNumber(r-b),w=Math.floor(x/N),I=Math.floor((x-w*N)/8),_=n.b64.encode(n.bignum.toBytes(w,1));return i==null||i.forEach(m=>{if(m.key===_){const k=n.dist.Buffer.from(m.value.bytes,"base64"),S=1<<l.safeBigIntToNumber(r%h);s=(k[I]&S)!=0;return}}),s},storageAccountExists:async(o,e,t)=>{try{const r=await o.accountApplicationInformation(e,l.safeBigIntToNumber(t)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,t,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=t,this.connection=r,this.contracts=s,this.chainId=n.toChainId(t),!s.coreBridge)throw new Error(`Core contract address for chain ${t} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=n.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${t} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=n.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,t,r){const s=new l.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,t,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,t){const[r,s]=await l.AlgorandPlatform.chainFromRpc(e),i=t[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,t){const r=new l.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const h of g)yield this.createUnsignedTx(h,"Core.publishMessage",!0);const A=n.makeApplicationCallTxnFromObject({from:s,appIndex:l.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,t,n.bignum.toBytes(0n,8)],accounts:a,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:A},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(l.safeBigIntToNumber(this.coreAppId)).do(),r=(s=n.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r)}parseTx(e){const t=[];if(e.innerTxns&&e.innerTxns.length>0&&t.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return t;const r=e.txn.txn.apaa??[];if(r.length!==3||!n.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return t;const s=n.bignum.decode(e.logs[0]),i=new l.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=n.bignum.decode(r[2]);return t.push(z.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),t}static async maybeCreateStorageTx(e,t,r,s,i){const d=n.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const A=n.makePaymentTxnWithSuggestedParamsFromObject({from:t,to:a,amount:V,suggestedParams:i});A.fee=A.fee*2,g.push({tx:A});const h=n.makeApplicationOptInTxnFromObject({from:a,appIndex:l.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return h.fee=0,g.push({tx:h,signer:{address:s.address(),signTxn:b=>Promise.resolve(n.signLogicSigTransaction(b,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,t,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:A,txs:h}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...h);const b=u.forGuardianSet(t,s.guardianSet),{accounts:[x],txs:w}=await c.maybeCreateStorageTx(e,i,t,b,d);a.push(...w);let I=[...A,x];const _=await u.decodeLocalState(e,t,x),m=n.keccak_256(s.hash),k=s.signatures.length,S=Math.ceil(k/c.MAX_SIGS_PER_TXN),E=20,v=new n.LogicSigAccount(c.ALGO_VERIFY);for(let R=0;R<S;R++){const G=R*c.MAX_SIGS_PER_TXN,B=s.signatures.slice(G,G+c.MAX_SIGS_PER_TXN),Y=B.length*E,X=new Uint8Array(Y);for(let f=0;f<B.length;f++){const j=B[f],q=_.slice(j.guardianIndex*E+1,(j.guardianIndex+1)*E+1);X.set(q,f*20)}const P=n.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,n.bytes.concat(...B.map(f=>n.bytes.concat(new Uint8Array([f.guardianIndex]),f.signature.encode()))),X,m],accounts:I,appIndex:l.safeBigIntToNumber(t),from:c.ALGO_VERIFY_HASH,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});P.fee=0,a.push({tx:P,signer:{address:v.address(),signTxn:f=>Promise.resolve(n.signLogicSigTransaction(f,v).blob)}})}const M=n.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,n.serialize(s)],accounts:I,appIndex:l.safeBigIntToNumber(t),from:i,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});return M.fee=M.fee*(2+S),a.push({tx:M}),{accounts:I,txs:a}}createUnsignedTx(e,t,r=!0){return new K(e,this.network,this.chain,t,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",n.b64.encode("MessageFee")),p(c,"verifyVaa",n.bytes.encode("verifyVAA")),p(c,"verifySigs",n.bytes.encode("verifySigs")),p(c,"publishMessage",n.bytes.encode("publishMessage"));let T=c;$.registerProtocol("Algorand","WormholeCore",T);const Z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:T,BITS_PER_BYTE:C,BITS_PER_KEY:N,MAX_BITS:O,MAX_BYTES:F,MAX_BYTES_PER_KEY:L,MAX_KEYS:U,SEED_AMT:V,StorageLogicSig:u,varint:y},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=K;exports.AlgorandWormholeCore=T;exports.StorageLogicSig=u;exports.index=Z;
@@ -1,11 +1,11 @@
1
1
  var lr = Object.defineProperty;
2
2
  var fr = (t, e, n) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var B = (t, e, n) => (fr(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-dJMYtBle.mjs";
5
- import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-CdSy2Lfd.mjs";
4
+ import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-DX6w1JtB.mjs";
5
+ import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-D4oa5qLu.mjs";
6
6
  import { c as xr } from "./index-DpFNxVts.mjs";
7
- import { S as qe, a as q, b as vn, _ as En } from "./solana-T2pgCVfU.mjs";
8
- import { r as Pn } from "./chain-CbwtJlkc.mjs";
7
+ import { S as qe, a as q, b as vn, _ as En } from "./solana-BMm013WW.mjs";
8
+ import { r as Pn } from "./chain-Cc-vL0Ji.mjs";
9
9
  class Wr extends TypeError {
10
10
  constructor(e, n) {
11
11
  let r;
@@ -307721,7 +307721,7 @@ const sortTokens = (e, Re) => {
307721
307721
  return e;
307722
307722
  }
307723
307723
  };
307724
- var define_import_meta_env_default$3 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.3-development" };
307724
+ var define_import_meta_env_default$3 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.5-development" };
307725
307725
  const {
307726
307726
  REACT_APP_ETHEREUM_RPC,
307727
307727
  REACT_APP_SOLANA_RPC,
@@ -311302,7 +311302,7 @@ const {
311302
311302
  }
311303
311303
  }
311304
311304
  };
311305
- var define_import_meta_env_default$2 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.3-development" };
311305
+ var define_import_meta_env_default$2 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.5-development" };
311306
311306
  const {
311307
311307
  REACT_APP_GOERLI_RPC,
311308
311308
  REACT_APP_SEPOLIA_RPC,
@@ -313748,7 +313748,7 @@ const {
313748
313748
  }
313749
313749
  }
313750
313750
  };
313751
- var define_import_meta_env_default$1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.3-development" };
313751
+ var define_import_meta_env_default$1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.5-development" };
313752
313752
  const {
313753
313753
  REACT_APP_ETHEREUM_DEVNET_RPC,
313754
313754
  REACT_APP_OSMOSIS_DEVNET_RPC,
@@ -313868,7 +313868,7 @@ const {
313868
313868
  index: 0,
313869
313869
  keys: ["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
313870
313870
  }
313871
- }, WORMSCAN = "https://wormholescan.io/#/", AVAILABLE_MARKETS_URL = "https://portalbridge.com/docs/faqs/liquid-markets/", CONNECT_VERSION = "0.3.19-beta.3-development";
313871
+ }, WORMSCAN = "https://wormholescan.io/#/", AVAILABLE_MARKETS_URL = "https://portalbridge.com/docs/faqs/liquid-markets/", CONNECT_VERSION = "0.3.19-beta.5-development";
313872
313872
  function wrapEventHandler(e) {
313873
313873
  return function(Re) {
313874
313874
  var Qe;
@@ -328006,7 +328006,7 @@ class SDKConverter {
328006
328006
  );
328007
328007
  }
328008
328008
  }
328009
- var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.3-development" };
328009
+ var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.5-development" };
328010
328010
  function buildConfig(e) {
328011
328011
  var ht, $n;
328012
328012
  const Re = ((e == null ? void 0 : e.network) || (e == null ? void 0 : e.env) || // TODO remove; deprecated
@@ -328372,7 +328372,7 @@ const walletConnection = {
328372
328372
  if (Fe.getNetworkInfo().chainId !== e) {
328373
328373
  if (Qe.context === Context.ETH)
328374
328374
  try {
328375
- const { switchChain: We } = await import("./evm-CjvzIUCn.mjs").then((Ze) => Ze.f);
328375
+ const { switchChain: We } = await import("./evm-Dd33ef5o.mjs").then((Ze) => Ze.f);
328376
328376
  await We(Fe, e);
328377
328377
  } catch (We) {
328378
328378
  if (We instanceof NotSupported)
@@ -328380,7 +328380,7 @@ const walletConnection = {
328380
328380
  throw We;
328381
328381
  }
328382
328382
  if (Qe.context === Context.COSMOS) {
328383
- const { switchChain: We } = await import("./cosmos-LlwNYP69.mjs");
328383
+ const { switchChain: We } = await import("./cosmos-5NiZ8EbB.mjs");
328384
328384
  await We(Fe, e);
328385
328385
  }
328386
328386
  return Fe.getAddress();
@@ -328389,7 +328389,7 @@ const walletConnection = {
328389
328389
  const Re = walletConnection[e];
328390
328390
  Re && await Re.disconnect();
328391
328391
  }, watchAsset = async (e, Re) => {
328392
- const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-CjvzIUCn.mjs").then((qe) => qe.f);
328392
+ const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-Dd33ef5o.mjs").then((qe) => qe.f);
328393
328393
  await Qe(e, Fe);
328394
328394
  }, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
328395
328395
  const qe = config$1.chains[e], We = walletConnection[Fe];
@@ -328399,23 +328399,23 @@ const walletConnection = {
328399
328399
  case Context.ETH:
328400
328400
  return Re.transactionHash;
328401
328401
  case Context.SOLANA: {
328402
- const { signAndSendTransaction: Ze } = await import("./solana-DvbMa7B_.mjs");
328402
+ const { signAndSendTransaction: Ze } = await import("./solana-DdaraOHp.mjs");
328403
328403
  return (await Ze(Re, We, Qe)).id;
328404
328404
  }
328405
328405
  case Context.SUI: {
328406
- const { signAndSendTransaction: Ze } = await import("./sui-CjRGl9Gg.mjs");
328406
+ const { signAndSendTransaction: Ze } = await import("./sui-CXyWZ2Gp.mjs");
328407
328407
  return (await Ze(Re, We)).id;
328408
328408
  }
328409
328409
  case Context.APTOS: {
328410
- const { signAndSendTransaction: Ze } = await import("./aptos-BPs26BCC.mjs");
328410
+ const { signAndSendTransaction: Ze } = await import("./aptos-B4ng1XsR.mjs");
328411
328411
  return (await Ze(Re, We)).id;
328412
328412
  }
328413
328413
  case Context.SEI: {
328414
- const { signAndSendTransaction: Ze } = await import("./sei-SWKTnPTF.mjs");
328414
+ const { signAndSendTransaction: Ze } = await import("./sei-C6N03jzv.mjs");
328415
328415
  return (await Ze(Re, We)).id;
328416
328416
  }
328417
328417
  case Context.COSMOS: {
328418
- const { signAndSendTransaction: Ze } = await import("./cosmos-LlwNYP69.mjs");
328418
+ const { signAndSendTransaction: Ze } = await import("./cosmos-5NiZ8EbB.mjs");
328419
328419
  return (await Ze(Re, We)).id;
328420
328420
  }
328421
328421
  default:
@@ -328448,39 +328448,39 @@ const walletConnection = {
328448
328448
  if (e === void 0)
328449
328449
  return [];
328450
328450
  if (e.context === Context.ETH) {
328451
- const { wallets: Re } = await import("./evm-CjvzIUCn.mjs").then((Fe) => Fe.f);
328451
+ const { wallets: Re } = await import("./evm-Dd33ef5o.mjs").then((Fe) => Fe.f);
328452
328452
  return Object.values(mapWallets(Re, Context.ETH));
328453
328453
  } else if (e.context === Context.SOLANA) {
328454
- const { fetchOptions: Re } = await import("./solana-DvbMa7B_.mjs"), Fe = Re();
328454
+ const { fetchOptions: Re } = await import("./solana-DdaraOHp.mjs"), Fe = Re();
328455
328455
  return Object.values(mapWallets(Fe, Context.SOLANA));
328456
328456
  } else if (e.context === Context.SUI) {
328457
- const Fe = await (await import("./sui-CjRGl9Gg.mjs")).fetchOptions();
328457
+ const Fe = await (await import("./sui-CXyWZ2Gp.mjs")).fetchOptions();
328458
328458
  return Object.values(mapWallets(Fe, Context.SUI));
328459
328459
  } else if (e.context === Context.APTOS) {
328460
- const Fe = (await import("./aptos-BPs26BCC.mjs")).fetchOptions();
328460
+ const Fe = (await import("./aptos-B4ng1XsR.mjs")).fetchOptions();
328461
328461
  return Object.values(mapWallets(Fe, Context.APTOS));
328462
328462
  } else if (e.context === Context.SEI) {
328463
- const Fe = await (await import("./sei-SWKTnPTF.mjs")).fetchOptions();
328463
+ const Fe = await (await import("./sei-C6N03jzv.mjs")).fetchOptions();
328464
328464
  return Object.values(mapWallets(Fe, Context.SEI));
328465
328465
  } else if (e.context === Context.COSMOS)
328466
328466
  if (e.id === CHAIN_ID_EVMOS$1) {
328467
328467
  const {
328468
328468
  wallets: { cosmosEvm: Re }
328469
- } = await import("./cosmos-LlwNYP69.mjs");
328469
+ } = await import("./cosmos-5NiZ8EbB.mjs");
328470
328470
  return Object.values(
328471
328471
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
328472
328472
  );
328473
328473
  } else if (e.id === CHAIN_ID_INJECTIVE$1) {
328474
328474
  const {
328475
328475
  wallets: { cosmosEvm: Re }
328476
- } = await import("./cosmos-LlwNYP69.mjs");
328476
+ } = await import("./cosmos-5NiZ8EbB.mjs");
328477
328477
  return Object.values(
328478
328478
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
328479
328479
  );
328480
328480
  } else {
328481
328481
  const {
328482
328482
  wallets: { cosmos: Re }
328483
- } = await import("./cosmos-LlwNYP69.mjs");
328483
+ } = await import("./cosmos-5NiZ8EbB.mjs");
328484
328484
  return Object.values(mapWallets(Re, Context.COSMOS));
328485
328485
  }
328486
328486
  return [];
@@ -347396,7 +347396,7 @@ const getMessageSolana = async (e) => {
347396
347396
  relayerFee: Ar || "",
347397
347397
  relayingType: Ar ? NttRelayingType.Special : NttRelayingType.Manual
347398
347398
  };
347399
- }, evm = async () => (await import("./evm-lHNM4jqm.mjs").then((e) => e.f)).default, solana = async () => (await import("./solana-T2pgCVfU.mjs").then((e) => e.s)).default, aptos = async () => (await import("./aptos-t3uXFwih.mjs").then((e) => e.e)).default, sui = async () => (await import("./sui-DDu4a1uc.mjs").then((e) => e.s)).default, cosmwasm = async () => (await import("./cosmwasm-CbTKetWD.mjs").then((e) => e.a3)).default, algorand = async () => (await import("./algorand-CNPRWbNB.mjs").then((e) => e.b)).default;
347399
+ }, evm = async () => (await import("./evm-B5hnoH2O.mjs").then((e) => e.f)).default, solana = async () => (await import("./solana-BMm013WW.mjs").then((e) => e.s)).default, aptos = async () => (await import("./aptos-CRkEBLid.mjs").then((e) => e.e)).default, sui = async () => (await import("./sui-Btvc4SGv.mjs").then((e) => e.s)).default, cosmwasm = async () => (await import("./cosmwasm-BHEBPmf7.mjs").then((e) => e.a3)).default, algorand = async () => (await import("./algorand-CZC9cPKi.mjs").then((e) => e.b)).default;
347400
347400
  class SDKv2Route extends RouteAbstract {
347401
347401
  constructor(Fe, Qe, qe) {
347402
347402
  super();
@@ -347473,8 +347473,11 @@ class SDKv2Route extends RouteAbstract {
347473
347473
  const Qe = config$1.sdkConverter.toChainV2(Fe);
347474
347474
  return this.rc.supportedChains(this.network).includes(Qe);
347475
347475
  }
347476
- async isRouteAvailable(Fe, Qe, qe, We, Ze) {
347477
- return { isAvailable: !0 };
347476
+ async isRouteAvailable(Fe, Qe, qe, We, Ze, Xe) {
347477
+ return Xe ? {
347478
+ isAvailable: !1,
347479
+ reason: REASON_MANUAL_ADDRESS_NOT_SUPPORTED
347480
+ } : { isAvailable: !0 };
347478
347481
  }
347479
347482
  async isSupportedSourceToken(Fe, Qe, qe, We) {
347480
347483
  if (!qe || !Fe)
@@ -349508,6 +349511,12 @@ class TBTCRoute extends BaseRoute {
349508
349511
  Ze
349509
349512
  ) || isGatewayChain(We) || isGatewayChain(Ze));
349510
349513
  }
349514
+ async isRouteAvailable(Fe, Qe, qe, We, Ze, Xe) {
349515
+ return Xe ? {
349516
+ isAvailable: !1,
349517
+ reason: REASON_MANUAL_ADDRESS_NOT_SUPPORTED
349518
+ } : { isAvailable: !0 };
349519
+ }
349511
349520
  async computeReceiveAmount(Fe, Qe, qe, We, Ze, Xe) {
349512
349521
  return Fe || 0;
349513
349522
  }
@@ -349839,6 +349848,12 @@ class PorticoBridge extends BaseRoute {
349839
349848
  const Dt = config$1.tokens[Qe];
349840
349849
  return !(!Dt || !this.isSupportedToken(Dt, Ze));
349841
349850
  }
349851
+ async isRouteAvailable(Fe, Qe, qe, We, Ze, Xe) {
349852
+ return Xe ? {
349853
+ isAvailable: !1,
349854
+ reason: REASON_MANUAL_ADDRESS_NOT_SUPPORTED
349855
+ } : { isAvailable: !0 };
349856
+ }
349842
349857
  async computeSwapAmounts(Fe, Qe, qe, We, Ze) {
349843
349858
  if (!Fe || !qe || !We || !Ze)
349844
349859
  throw new Error("Invalid params");
@@ -351509,6 +351524,12 @@ class CosmosGatewayRoute extends BaseRoute {
351509
351524
  async isRouteSupported(Fe, Qe, qe, We, Ze) {
351510
351525
  return config$1.routes.includes(Route$1.CosmosGateway) ? isGatewayChain(config$1.wh.toChainId(We)) || isGatewayChain(config$1.wh.toChainId(Ze)) : !1;
351511
351526
  }
351527
+ async isRouteAvailable(Fe, Qe, qe, We, Ze, Xe) {
351528
+ return Xe ? {
351529
+ isAvailable: !1,
351530
+ reason: REASON_MANUAL_ADDRESS_NOT_SUPPORTED
351531
+ } : { isAvailable: !0 };
351532
+ }
351512
351533
  async computeReceiveAmount(Fe, Qe, qe, We, Ze, Xe) {
351513
351534
  return Fe || 0;
351514
351535
  }
@@ -384102,48 +384123,48 @@ function ExplorerLink$1({
384102
384123
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: qe.dropdownItem, onClick: We, children: Qe });
384103
384124
  }
384104
384125
  function ConnectWallet(e) {
384105
- const { disabled: Re = !1, type: Fe } = e, { classes: Qe } = useStyles$y({ disabled: Re }), qe = useTheme$1(), We = useDispatch(), Ze = useMediaQuery(qe.breakpoints.down("sm")), Xe = useSelector((Un) => Un.wallet[Fe]), { manualAddressTarget: Dt } = useSelector(
384106
- (Un) => Un.transferInput
384107
- ), ht = useCallback(
384108
- (Un) => {
384109
- Re || (Un && Un.close(), Dt && We(setManualAddressTarget(!1)), We(setWalletModal(Fe)));
384110
- },
384111
- [Re, Dt]
384112
- ), $n = (Un) => {
384113
- copyTextToClipboard(Xe.address), Un.close();
384114
- }, Jn = () => {
384115
- We(disconnectWallet(Fe)), We(setManualAddressTarget(!1));
384116
- };
384117
- if (Xe && Xe.address)
384118
- return /* @__PURE__ */ jsxRuntimeExports.jsx(PopupState, { variant: "popover", popupId: "demo-popup-popover", children: (Un) => {
384119
- const { onClick: Gn, ...Fn } = bindTrigger(Un), Hn = (Wn) => {
384120
- Re || Gn(Wn);
384126
+ const { disabled: Re = !1, type: Fe, side: Qe } = e, { classes: qe } = useStyles$y({ disabled: Re }), We = useTheme$1(), Ze = useDispatch(), Xe = useMediaQuery(We.breakpoints.down("sm")), Dt = useSelector((Gn) => Gn.wallet[Fe]), { manualAddressTarget: ht } = useSelector(
384127
+ (Gn) => Gn.transferInput
384128
+ ), $n = useCallback(
384129
+ (Gn) => {
384130
+ Re || (Gn && Gn.close(), Qe === "destination" && ht && Ze(setManualAddressTarget(!1)), Ze(setWalletModal(Fe)));
384131
+ },
384132
+ [Re, ht]
384133
+ ), Jn = (Gn) => {
384134
+ copyTextToClipboard(Dt.address), Gn.close();
384135
+ }, Un = () => {
384136
+ Ze(disconnectWallet(Fe)), Qe === "destination" && Ze(setManualAddressTarget(!1));
384137
+ };
384138
+ if (Dt && Dt.address)
384139
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(PopupState, { variant: "popover", popupId: "demo-popup-popover", children: (Gn) => {
384140
+ const { onClick: Fn, ...Hn } = bindTrigger(Gn), Wn = (yr) => {
384141
+ Re || Fn(yr);
384121
384142
  };
384122
384143
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
384123
384144
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
384124
384145
  "div",
384125
384146
  {
384126
- className: Qe.connectWallet,
384127
- onClick: Hn,
384128
- ...Fn,
384147
+ className: qe.connectWallet,
384148
+ onClick: Wn,
384149
+ ...Hn,
384129
384150
  children: [
384130
384151
  /* @__PURE__ */ jsxRuntimeExports.jsx(
384131
384152
  WalletIcon,
384132
384153
  {
384133
- name: Xe.name,
384134
- icon: Xe.icon,
384154
+ name: Dt.name,
384155
+ icon: Dt.icon,
384135
384156
  height: 24
384136
384157
  }
384137
384158
  ),
384138
- displayWalletAddress(Xe.type, Xe.address),
384139
- !Re && /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, { className: Qe.down })
384159
+ displayWalletAddress(Dt.type, Dt.address),
384160
+ !Re && /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, { className: qe.down })
384140
384161
  ]
384141
384162
  }
384142
384163
  ),
384143
384164
  /* @__PURE__ */ jsxRuntimeExports.jsx(
384144
384165
  Popover,
384145
384166
  {
384146
- ...bindPopover(Un),
384167
+ ...bindPopover(Gn),
384147
384168
  sx: { marginTop: 1 },
384148
384169
  anchorOrigin: {
384149
384170
  vertical: "bottom",
@@ -384153,19 +384174,19 @@ function ConnectWallet(e) {
384153
384174
  vertical: "top",
384154
384175
  horizontal: "right"
384155
384176
  },
384156
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ScopedCssBaseline, { enableColorScheme: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: Qe.dropdown, children: [
384177
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ScopedCssBaseline, { enableColorScheme: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: qe.dropdown, children: [
384157
384178
  /* @__PURE__ */ jsxRuntimeExports.jsx(
384158
384179
  "div",
384159
384180
  {
384160
- className: Qe.dropdownItem,
384161
- onClick: () => $n(Un),
384181
+ className: qe.dropdownItem,
384182
+ onClick: () => Jn(Gn),
384162
384183
  children: "Copy address"
384163
384184
  }
384164
384185
  ),
384165
384186
  config$1.explorer ? /* @__PURE__ */ jsxRuntimeExports.jsx(
384166
384187
  ExplorerLink$1,
384167
384188
  {
384168
- address: Xe.address,
384189
+ address: Dt.address,
384169
384190
  href: config$1.explorer.href,
384170
384191
  target: config$1.explorer.target,
384171
384192
  label: config$1.explorer.label
@@ -384174,16 +384195,16 @@ function ConnectWallet(e) {
384174
384195
  /* @__PURE__ */ jsxRuntimeExports.jsx(
384175
384196
  "div",
384176
384197
  {
384177
- className: Qe.dropdownItem,
384178
- onClick: () => ht(Un),
384198
+ className: qe.dropdownItem,
384199
+ onClick: () => $n(Gn),
384179
384200
  children: "Change wallet"
384180
384201
  }
384181
384202
  ),
384182
384203
  /* @__PURE__ */ jsxRuntimeExports.jsx(
384183
384204
  "div",
384184
384205
  {
384185
- className: Qe.dropdownItem,
384186
- onClick: Jn,
384206
+ className: qe.dropdownItem,
384207
+ onClick: Un,
384187
384208
  children: "Disconnect"
384188
384209
  }
384189
384210
  )
@@ -384193,19 +384214,19 @@ function ConnectWallet(e) {
384193
384214
  ] });
384194
384215
  } });
384195
384216
  {
384196
- const Un = /* @__PURE__ */ jsxRuntimeExports.jsxs(
384217
+ const Gn = /* @__PURE__ */ jsxRuntimeExports.jsxs(
384197
384218
  "div",
384198
384219
  {
384199
- className: Qe.connectWallet,
384200
- onClick: () => ht(),
384220
+ className: qe.connectWallet,
384221
+ onClick: () => $n(),
384201
384222
  "data-testid": `${e.side}-section-connect-wallet-button`,
384202
384223
  children: [
384203
384224
  /* @__PURE__ */ jsxRuntimeExports.jsx(WalletIcon$1, {}),
384204
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: Ze ? "Connect" : "Connect wallet" })
384225
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: Xe ? "Connect" : "Connect wallet" })
384205
384226
  ]
384206
384227
  }
384207
384228
  );
384208
- return Re ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Please select a network first", children: Un }) : Un;
384229
+ return Re ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Please select a network first", children: Gn }) : Gn;
384209
384230
  }
384210
384231
  }
384211
384232
  const useStyles$x = makeStyles()((e) => ({
@@ -390374,7 +390395,9 @@ const ManualAddressInput = (e) => {
390374
390395
  const [Re, Fe] = useState(""), Qe = async () => Fe(await navigator.clipboard.readText()), qe = (Ze) => {
390375
390396
  Fe(Ze.target.value);
390376
390397
  }, We = () => {
390377
- e.handleManualConnect(Re);
390398
+ let Ze = Re;
390399
+ const Xe = /(.*):0x/;
390400
+ Xe.test(Ze) && (Ze = Ze.replace(Xe, "0x")), e.handleManualConnect(Ze);
390378
390401
  };
390379
390402
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormGroup, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [
390380
390403
  /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { variant: "outlined", children: [
@@ -1,10 +1,10 @@
1
1
  var V = Object.defineProperty;
2
2
  var Q = (O, s, t) => s in O ? V(O, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : O[s] = t;
3
3
  var d = (O, s, t) => (Q(O, typeof s != "symbol" ? s + "" : s, t), t);
4
- import { A as S, S as g, a as X } from "./index-DVH-ZIP6.mjs";
5
- import { cG as Y, b5 as C, bp as $, cv as q, cH as _, cy as D, c6 as Z, aC as b, au as tt, bO as z, cz as y, cA as k, cD as W, b_ as L, az as et, bG as H, cI as st, cJ as K, cK as ot } from "./index-CdSy2Lfd.mjs";
6
- import { a as nt, A as l, s as u, _ as rt } from "./algorand-CNPRWbNB.mjs";
7
- import { r as at } from "./chain-CbwtJlkc.mjs";
4
+ import { A as S, S as g, a as X } from "./index-ROBBwabT.mjs";
5
+ import { cG as Y, b5 as C, bp as $, cv as q, cH as _, cy as D, c6 as Z, aC as b, au as tt, bO as z, cz as y, cA as k, cD as W, b_ as L, az as et, bG as H, cI as st, cJ as K, cK as ot } from "./index-D4oa5qLu.mjs";
6
+ import { a as nt, A as l, s as u, _ as rt } from "./algorand-CZC9cPKi.mjs";
7
+ import { r as at } from "./chain-Cc-vL0Ji.mjs";
8
8
  const G = Y.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
9
9
  constructor(s, t, n, o) {
10
10
  d(this, "network");
@@ -1,9 +1,9 @@
1
1
  var Nt = Object.defineProperty;
2
2
  var Dt = (s, e, t) => e in s ? Nt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var Z = (s, e, t) => (Dt(s, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { n as b, aH as C, aI as p, aJ as y, aK as U, aL as T, aM as X, aN as ae, aO as H, aP as st, aQ as j, a2 as W, aF as Ae, aG as qe, aR as he, aS as Wt, aT as zt, aU as Lt, aV as Ut, aW as Ft, cb as Ve, c9 as qt, ca as Vt, ce as rt, d as se, cj as He, c1 as at, at as Ht, c2 as je, c0 as jt, c3 as Ge } from "./index-CdSy2Lfd.mjs";
5
- import { r as Gt } from "./chain-CbwtJlkc.mjs";
6
- import { a as xe, S as $t, b as Jt, _ as Xt } from "./solana-T2pgCVfU.mjs";
4
+ import { n as b, aH as C, aI as p, aJ as y, aK as U, aL as T, aM as X, aN as ae, aO as H, aP as st, aQ as j, a2 as W, aF as Ae, aG as qe, aR as he, aS as Wt, aT as zt, aU as Lt, aV as Ut, aW as Ft, cb as Ve, c9 as qt, ca as Vt, ce as rt, d as se, cj as He, c1 as at, at as Ht, c2 as je, c0 as jt, c3 as Ge } from "./index-D4oa5qLu.mjs";
5
+ import { r as Gt } from "./chain-Cc-vL0Ji.mjs";
6
+ import { a as xe, S as $t, b as Jt, _ as Xt } from "./solana-BMm013WW.mjs";
7
7
  import { c as it } from "./index-DpFNxVts.mjs";
8
8
  class Yt extends TypeError {
9
9
  constructor(e, t) {
@@ -1,6 +1,6 @@
1
- import { n as _t, s as ce, T as N, o as ot, R as Uo, a as C, t as H, p as K, y as gt } from "./index-DGRaAUXo.mjs";
1
+ import { n as _t, s as ce, T as N, o as ot, R as Uo, a as C, t as H, p as K, y as gt } from "./index-D8l7OdtE.mjs";
2
2
  import { d as Wo } from "./dijkstra-BZM-8g-B.mjs";
3
- import { d as Ho } from "./index-CdSy2Lfd.mjs";
3
+ import { d as Ho } from "./index-D4oa5qLu.mjs";
4
4
  var jo = function(t) {
5
5
  for (var r = [], n = t.length, o = 0; o < n; o++) {
6
6
  var i = t.charCodeAt(o);
@@ -1,7 +1,7 @@
1
1
  const fe = Symbol(), ee = Object.getPrototypeOf, G = /* @__PURE__ */ new WeakMap(), me = (e) => e && (G.has(e) ? G.get(e) : ee(e) === Object.prototype || ee(e) === Array.prototype), ge = (e) => me(e) && e[fe] || null, te = (e, t = !0) => {
2
2
  G.set(e, t);
3
3
  };
4
- var z = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.3-development" };
4
+ var z = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.19-beta.5-development" };
5
5
  const q = (e) => typeof e == "object" && e !== null, A = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), he = (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) => {
6
6
  switch (n.status) {
7
7
  case "fulfilled":
@@ -392,7 +392,7 @@ class ke {
392
392
  }
393
393
  async initUi() {
394
394
  if (typeof window < "u") {
395
- await import("./index-B6m0ovID.mjs");
395
+ await import("./index-D8SeaoGs.mjs");
396
396
  const t = document.createElement("wcm-modal");
397
397
  document.body.insertAdjacentElement("beforeend", t), w.setIsUiLoaded(!0);
398
398
  }