@wormhole-foundation/wormhole-connect 2.2.0 → 2.3.0-beta.1-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +0 -1
  2. package/dist/main.js +108 -108
  3. package/dist/src/config/tokens.d.ts +1 -1
  4. package/dist/src/config/tokens.d.ts.map +1 -1
  5. package/dist/src/consts/wallet.d.ts.map +1 -1
  6. package/dist/src/hooks/useConfirmTransaction.d.ts +12 -0
  7. package/dist/src/hooks/useConfirmTransaction.d.ts.map +1 -0
  8. package/dist/src/hooks/useGasSlider.d.ts +1 -2
  9. package/dist/src/hooks/useGasSlider.d.ts.map +1 -1
  10. package/dist/src/hooks/useWalletCompatibility.d.ts.map +1 -1
  11. package/dist/src/index.d.ts +2 -2
  12. package/dist/src/index.d.ts.map +1 -1
  13. package/dist/src/routes/operator.d.ts +0 -1
  14. package/dist/src/routes/operator.d.ts.map +1 -1
  15. package/dist/src/routes/sdkv2/route.d.ts +0 -1
  16. package/dist/src/routes/sdkv2/route.d.ts.map +1 -1
  17. package/dist/src/store/transferInput.d.ts +2 -4
  18. package/dist/src/store/transferInput.d.ts.map +1 -1
  19. package/dist/src/telemetry/index.d.ts +1 -0
  20. package/dist/src/telemetry/index.d.ts.map +1 -1
  21. package/dist/src/utils/wallet/index.d.ts +1 -1
  22. package/dist/src/utils/wallet/index.d.ts.map +1 -1
  23. package/dist/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  24. package/dist/src/views/v2/Bridge/AssetPicker/SearchableList/index.d.ts.map +1 -1
  25. package/dist/src/views/v2/Bridge/AssetPicker/index.d.ts +1 -0
  26. package/dist/src/views/v2/Bridge/AssetPicker/index.d.ts.map +1 -1
  27. package/dist/src/views/v2/Bridge/{ReviewTransaction/GasSlider.d.ts → GasSlider/index.d.ts} +1 -1
  28. package/dist/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -0
  29. package/dist/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  30. package/dist/src/views/v2/Bridge/SwapInputs/index.d.ts.map +1 -1
  31. package/dist/src/views/v2/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  32. package/dist/src/views/v2/Bridge/index.d.ts.map +1 -1
  33. package/dist/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  34. package/dist/src/views/v2/TxHistory/Widget/Item.d.ts +1 -0
  35. package/dist/src/views/v2/TxHistory/Widget/Item.d.ts.map +1 -1
  36. package/dist/src/views/v2/TxHistory/Widget/index.d.ts +3 -1
  37. package/dist/src/views/v2/TxHistory/Widget/index.d.ts.map +1 -1
  38. package/lib/{aptos-CWfp2v_P.js → aptos-CVrk2e8x.js} +2 -2
  39. package/lib/{aptos-7dMQQEIW.mjs → aptos-Cd2RxmTX.mjs} +5 -5
  40. package/lib/{aptos-umg2ncs_.js → aptos-D9RWCwaG.js} +1 -1
  41. package/lib/{aptos-BUemveTM.mjs → aptos-DqQeHeWd.mjs} +2 -2
  42. package/lib/{base64-BlOlyzUY.js → base64-D7N0XEtt.js} +1 -1
  43. package/lib/{base64-CIH-T7Pn.mjs → base64-DOdqKfyo.mjs} +1 -1
  44. package/lib/{ccip-BhU7SDb9.mjs → ccip-B1d8Cfcc.mjs} +1 -1
  45. package/lib/{ccip-CdkU-__S.js → ccip-C4FhwB7R.js} +1 -1
  46. package/lib/{chunk-IMTC3J2M-Bm_KxGLU.mjs → chunk-IMTC3J2M-B2ra0Z4c.mjs} +3 -3
  47. package/lib/{chunk-IMTC3J2M-CG7LPkYt.js → chunk-IMTC3J2M-DtuxbHq9.js} +1 -1
  48. package/lib/{events-jQ_Do8B1.js → events-BC1Svub2.js} +1 -1
  49. package/lib/{events-hPS-mKjU.mjs → events-BrouOFcp.mjs} +1 -1
  50. package/lib/{evm-Ck-LC8K1.js → evm-BXku4GNW.js} +3 -3
  51. package/lib/{evm-AFZ_po3U.mjs → evm-Ccy4JfF6.mjs} +17 -17
  52. package/lib/{evm-DvlAO_-c.mjs → evm-CfS9xq5t.mjs} +5 -5
  53. package/lib/{evm-D4OaAvxv.js → evm-DT_W87u-.js} +1 -1
  54. package/lib/{index-DyvLFo_F.mjs → index--0DQj_F2.mjs} +2 -2
  55. package/lib/{index-CdrPNIu_.js → index-1EgmRX-a.js} +1 -1
  56. package/lib/{index-BUDas0Q7.mjs → index-1LP1mA3c.mjs} +1 -1
  57. package/lib/{index-BchoBDpT.mjs → index-B4hbI0dp.mjs} +2 -2
  58. package/lib/{index-D5fAF0iQ.js → index-B58a-RHd.js} +1 -1
  59. package/lib/{index-B3nUhqKI.mjs → index-BCjWPjhx.mjs} +2 -2
  60. package/lib/{index-B9WBHQFN.js → index-BFFNnNKW.js} +1 -1
  61. package/lib/{index-MxqIZiRX.mjs → index-BODYDhXF.mjs} +2 -2
  62. package/lib/{index-ihbUzPuY.mjs → index-BcJBEeFA.mjs} +1 -1
  63. package/lib/{index-Dhyj87bh.mjs → index-BdodDbVS.mjs} +1 -1
  64. package/lib/{index-D0QNNKvo.mjs → index-Bdopcy73.mjs} +4 -4
  65. package/lib/{index-WPYOQdpa.js → index-Br4Igv20.js} +1 -1
  66. package/lib/{index-NWE7RRiw.mjs → index-BuGFh8C7.mjs} +2 -2
  67. package/lib/{index-KdiLn9Rj.js → index-C-nWxaLg.js} +1 -1
  68. package/lib/{index-DTfWrGt3.mjs → index-C0IvEwkt.mjs} +1 -1
  69. package/lib/{index-Df5E8ttw.js → index-CCWEM47k.js} +1 -1
  70. package/lib/{index-Bd3pCFb1.js → index-CSKbEqQP.js} +1 -1
  71. package/lib/{index-CaNzAG1x.mjs → index-CU9KzHgH.mjs} +7625 -7691
  72. package/lib/{index-D9o7O_OT.js → index-CUm6qdjR.js} +1 -1
  73. package/lib/{index-PNYcH9VB.js → index-Camctzsh.js} +1 -1
  74. package/lib/{index-DV2Mc1nu.js → index-CdB9Qj-M.js} +1 -1
  75. package/lib/{index-CUR8Z8Cf.js → index-CgISt_Up.js} +1 -1
  76. package/lib/{index-C0ecUbom.mjs → index-Cmmxyf4Y.mjs} +2 -2
  77. package/lib/{index-CHWND-D1.mjs → index-CnkeKt9s.mjs} +3 -3
  78. package/lib/{index-BWsfR9uT.mjs → index-CpQ7f1YB.mjs} +1 -1
  79. package/lib/{index-BbSC7v8g.js → index-D3Mg9Eh4.js} +1 -1
  80. package/lib/{index-BFXBE_Mo.js → index-D5qBrm4q.js} +1 -1
  81. package/lib/{index-wHDS4NqS.js → index-DB5xCELT.js} +1 -1
  82. package/lib/{index-AVSrA-i6.js → index-DSTC1VGB.js} +1 -1
  83. package/lib/{index-Derjp7Zu.mjs → index-DX-wGKTH.mjs} +2 -2
  84. package/lib/{index-hus1Sl4S.js → index-DihlIPlD.js} +1 -1
  85. package/lib/{index-D1q2O2Av.mjs → index-Dk29guyA.mjs} +3 -3
  86. package/lib/{index-Bu1PkKLG.js → index-DqO3qLPG.js} +1 -1
  87. package/lib/{index-CtS6jcgq.js → index-Dsd09IV6.js} +1 -1
  88. package/lib/{index-BZs20N4K.mjs → index-DxslawxO.mjs} +2 -2
  89. package/lib/{index-DirgoiOD.js → index-DyqHtpmj.js} +1 -1
  90. package/lib/{index-BEhe2aRM.js → index-RFgTGgbk.js} +99 -99
  91. package/lib/{index-nWaQESZp.mjs → index-Y5ArJjKr.mjs} +1 -1
  92. package/lib/{index-JVwNffKI.mjs → index-s53oBunM.mjs} +2 -2
  93. package/lib/{index-BKBGPzmc.mjs → index-s7S0StCX.mjs} +1 -1
  94. package/lib/{index-BNe7LUKU.mjs → index-vEkD7kom.mjs} +5 -5
  95. package/lib/{index-Bi5J2r-k.js → index-xeYB5lOA.js} +1 -1
  96. package/lib/{index.es-D6eM34wK.mjs → index.es-DD7lO_GM.mjs} +6 -6
  97. package/lib/{index.es-CJrTwrY5.js → index.es-PJjmKf_k.js} +2 -2
  98. package/lib/index.js +1 -1
  99. package/lib/index.mjs +32 -19
  100. package/lib/{signer-C1hgiPI9.js → signer-Bs70WVKc.js} +1 -1
  101. package/lib/{signer-CXxUSLSd.mjs → signer-dwfhV60M.mjs} +1 -1
  102. package/lib/solana-B1Wsl1Pg.js +1 -0
  103. package/lib/solana-BDUnTuLS.mjs +16 -0
  104. package/lib/{solana-D4eoBu_Q.mjs → solana-D8IW8eXX.mjs} +4 -4
  105. package/lib/{solana-XXmHFxEb.js → solana-DK3yyz37.js} +1 -1
  106. package/lib/{solanaEmbed.esm-CBSm6nV9.js → solanaEmbed.esm-DjNz5swk.js} +1 -1
  107. package/lib/{solanaEmbed.esm-dce8g5AQ.mjs → solanaEmbed.esm-DlyRzA6N.mjs} +2 -2
  108. package/lib/src/config/tokens.d.ts +1 -1
  109. package/lib/src/config/tokens.d.ts.map +1 -1
  110. package/lib/src/consts/wallet.d.ts.map +1 -1
  111. package/lib/src/hooks/useConfirmTransaction.d.ts +12 -0
  112. package/lib/src/hooks/useConfirmTransaction.d.ts.map +1 -0
  113. package/lib/src/hooks/useGasSlider.d.ts +1 -2
  114. package/lib/src/hooks/useGasSlider.d.ts.map +1 -1
  115. package/lib/src/hooks/useWalletCompatibility.d.ts.map +1 -1
  116. package/lib/src/index.d.ts +2 -2
  117. package/lib/src/index.d.ts.map +1 -1
  118. package/lib/src/routes/operator.d.ts +0 -1
  119. package/lib/src/routes/operator.d.ts.map +1 -1
  120. package/lib/src/routes/sdkv2/route.d.ts +0 -1
  121. package/lib/src/routes/sdkv2/route.d.ts.map +1 -1
  122. package/lib/src/store/transferInput.d.ts +2 -4
  123. package/lib/src/store/transferInput.d.ts.map +1 -1
  124. package/lib/src/telemetry/index.d.ts +1 -0
  125. package/lib/src/telemetry/index.d.ts.map +1 -1
  126. package/lib/src/utils/wallet/index.d.ts +1 -1
  127. package/lib/src/utils/wallet/index.d.ts.map +1 -1
  128. package/lib/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  129. package/lib/src/views/v2/Bridge/AssetPicker/SearchableList/index.d.ts.map +1 -1
  130. package/lib/src/views/v2/Bridge/AssetPicker/index.d.ts +1 -0
  131. package/lib/src/views/v2/Bridge/AssetPicker/index.d.ts.map +1 -1
  132. package/lib/src/views/v2/Bridge/{ReviewTransaction/GasSlider.d.ts → GasSlider/index.d.ts} +1 -1
  133. package/lib/src/views/v2/Bridge/GasSlider/index.d.ts.map +1 -0
  134. package/lib/src/views/v2/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  135. package/lib/src/views/v2/Bridge/SwapInputs/index.d.ts.map +1 -1
  136. package/lib/src/views/v2/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  137. package/lib/src/views/v2/Bridge/index.d.ts.map +1 -1
  138. package/lib/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  139. package/lib/src/views/v2/TxHistory/Widget/Item.d.ts +1 -0
  140. package/lib/src/views/v2/TxHistory/Widget/Item.d.ts.map +1 -1
  141. package/lib/src/views/v2/TxHistory/Widget/index.d.ts +3 -1
  142. package/lib/src/views/v2/TxHistory/Widget/index.d.ts.map +1 -1
  143. package/lib/{sui-BEvt3G9o.mjs → sui-BN9_xkve.mjs} +1 -1
  144. package/lib/{sui-BDZkyTVG.js → sui-BRZ30Let.js} +1 -1
  145. package/lib/{sui-CrYGHvcd.js → sui-BSr1lx4J.js} +2 -2
  146. package/lib/{sui-D8i87rc-.mjs → sui-CIYeuWco.mjs} +5 -5
  147. package/package.json +18 -18
  148. package/dist/src/hooks/useComputeSourceTokens.d.ts +0 -15
  149. package/dist/src/hooks/useComputeSourceTokens.d.ts.map +0 -1
  150. package/dist/src/views/v2/Bridge/ReviewTransaction/GasSlider.d.ts.map +0 -1
  151. package/dist/src/views/v2/Bridge/ReviewTransaction/SendError.d.ts +0 -8
  152. package/dist/src/views/v2/Bridge/ReviewTransaction/SendError.d.ts.map +0 -1
  153. package/dist/src/views/v2/Bridge/ReviewTransaction/index.d.ts +0 -9
  154. package/dist/src/views/v2/Bridge/ReviewTransaction/index.d.ts.map +0 -1
  155. package/lib/solana-B0ZJBh57.js +0 -1
  156. package/lib/solana-C06kaujM.mjs +0 -16
  157. package/lib/src/hooks/useComputeSourceTokens.d.ts +0 -15
  158. package/lib/src/hooks/useComputeSourceTokens.d.ts.map +0 -1
  159. package/lib/src/views/v2/Bridge/ReviewTransaction/GasSlider.d.ts.map +0 -1
  160. package/lib/src/views/v2/Bridge/ReviewTransaction/SendError.d.ts +0 -8
  161. package/lib/src/views/v2/Bridge/ReviewTransaction/SendError.d.ts.map +0 -1
  162. package/lib/src/views/v2/Bridge/ReviewTransaction/index.d.ts +0 -9
  163. package/lib/src/views/v2/Bridge/ReviewTransaction/index.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
- var B = Object.defineProperty;
1
+ var b = Object.defineProperty;
2
2
  var S = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var O = (e, t, s) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
6
- var l = (e, t, s) => O(e, typeof t != "symbol" ? t + "" : t, s), _ = (e, t, s) => t.has(e) || S("Cannot " + s);
7
- var h = (e, t, s) => (_(e, t, "read from private field"), s ? s.call(e) : t.get(e)), u = (e, t, s) => t.has(e) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), o = (e, t, s, i) => (_(e, t, "write to private field"), i ? i.call(e, s) : t.set(e, s), s);
8
- var E = (e, t, s, i) => ({
5
+ var B = (e, t, s) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
6
+ var l = (e, t, s) => B(e, typeof t != "symbol" ? t + "" : t, s), E = (e, t, s) => t.has(e) || S("Cannot " + s);
7
+ var h = (e, t, s) => (E(e, t, "read from private field"), s ? s.call(e) : t.get(e)), u = (e, t, s) => t.has(e) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), o = (e, t, s, i) => (E(e, t, "write to private field"), i ? i.call(e, s) : t.set(e, s), s);
8
+ var F = (e, t, s, i) => ({
9
9
  set _(r) {
10
10
  o(e, t, r, s);
11
11
  },
@@ -13,9 +13,9 @@ var E = (e, t, s, i) => ({
13
13
  return h(e, t, i);
14
14
  }
15
15
  });
16
- import { A as W, d as b, W as $, E as f, P as M, a as R, b as j, c as q, _ as z } from "./index-CaNzAG1x.mjs";
16
+ import { A as O, d as W, W as $, E as f, P as M, a as R, b as j, c as q, _ as z } from "./index-CU9KzHgH.mjs";
17
17
  var a, c;
18
- const w = class w extends W {
18
+ const w = class w extends O {
19
19
  /**
20
20
  * Creates a new **NonceManager** to manage %%signer%%.
21
21
  */
@@ -27,7 +27,7 @@ const w = class w extends W {
27
27
  l(this, "signer");
28
28
  u(this, a);
29
29
  u(this, c);
30
- b(this, { signer: s }), o(this, a, null), o(this, c, 0);
30
+ W(this, { signer: s }), o(this, a, null), o(this, c, 0);
31
31
  }
32
32
  async getAddress() {
33
33
  return this.signer.getAddress();
@@ -48,7 +48,7 @@ const w = class w extends W {
48
48
  * offline transactions.
49
49
  */
50
50
  increment() {
51
- E(this, c)._++;
51
+ F(this, c)._++;
52
52
  }
53
53
  /**
54
54
  * Resets the nonce, causing the **NonceManager** to reload the current
@@ -104,13 +104,13 @@ class I extends M {
104
104
  g = d.gasPrice ?? g, m = d.maxFeePerGas ?? m, p = d.maxPriorityFeePerGas ?? p;
105
105
  }
106
106
  ((y = this.opts) == null ? void 0 : y.gasLimit) !== void 0 && (n = this.opts.gasLimit), ((C = this.opts) == null ? void 0 : C.maxGasLimit) !== void 0 && (n = n > ((x = this.opts) == null ? void 0 : x.maxGasLimit) ? (T = this.opts) == null ? void 0 : T.maxGasLimit : n);
107
- const F = i === "Oasis" ? { gasLimit: n, gasPrice: g, type: 0 } : { gasLimit: n, maxFeePerGas: m, maxPriorityFeePerGas: p };
107
+ const L = i === "Oasis" ? { gasLimit: n, gasPrice: g, type: 0 } : { gasLimit: n, maxFeePerGas: m, maxPriorityFeePerGas: p };
108
108
  for (const d of s) {
109
- const { transaction: L, description: N } = d;
110
- (A = this.opts) != null && A.debug && console.log(`Signing: ${N} for ${this.address()}`);
109
+ const { transaction: N, description: _ } = d;
110
+ (A = this.opts) != null && A.debug && console.log(`Signing: ${_} for ${this.address()}`);
111
111
  const D = {
112
+ ...N,
112
113
  ...L,
113
- ...F,
114
114
  from: this.address(),
115
115
  nonce: await this._signer.getNonce(),
116
116
  // Override any existing values with those passed in the constructor
@@ -126,10 +126,10 @@ const Q = {
126
126
  Platform: f,
127
127
  getSigner: H,
128
128
  protocols: {
129
- WormholeCore: () => import("./index-CaNzAG1x.mjs").then((e) => e.c_),
130
- TokenBridge: () => import("./index-BWsfR9uT.mjs"),
131
- PorticoBridge: () => import("./index-NWE7RRiw.mjs"),
132
- CircleBridge: () => import("./index-BchoBDpT.mjs")
129
+ WormholeCore: () => import("./index-CU9KzHgH.mjs").then((e) => e.db),
130
+ TokenBridge: () => import("./index-CpQ7f1YB.mjs"),
131
+ PorticoBridge: () => import("./index-BuGFh8C7.mjs"),
132
+ CircleBridge: () => import("./index-B4hbI0dp.mjs")
133
133
  },
134
134
  getChain: (e, t, s) => new R(t, new f(e, q(e, z, {
135
135
  [t]: s
@@ -3,8 +3,8 @@ var wa = (e) => {
3
3
  };
4
4
  var Aa = (e, t, n) => t.has(e) || wa("Cannot " + n);
5
5
  var Tr = (e, t, n) => (Aa(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ia = (e, t, n) => t.has(e) ? wa("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Na = (e, t, n, r) => (Aa(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
6
- import { T as Xo, U as Ea, V as Wr, X as qo, Y as $o, Z as ec, $ as xa, a0 as tc, a1 as $e, a2 as nc, a3 as Kn, a4 as rc, a5 as sc, a6 as ac, a7 as ic, a8 as oc, a9 as cc, aa as lc, ab as uc, ac as tn, ad as hc } from "./index-CaNzAG1x.mjs";
7
- import "./index-nWaQESZp.mjs";
6
+ import { T as Xo, U as Ea, V as Wr, X as qo, Y as $o, Z as ec, $ as xa, a0 as tc, a1 as $e, a2 as nc, a3 as Kn, a4 as rc, a5 as sc, a6 as ac, a7 as ic, a8 as oc, a9 as cc, aa as lc, ab as uc, ac as tn, ad as hc } from "./index-CU9KzHgH.mjs";
7
+ import "./index-Y5ArJjKr.mjs";
8
8
  import "react";
9
9
  var kt;
10
10
  class dc extends Xo {
@@ -4316,7 +4316,7 @@ async function gr(e, t) {
4316
4316
  });
4317
4317
  return C === "0x" ? { data: void 0 } : { data: C };
4318
4318
  } catch (N) {
4319
- const I = Hu(N), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-BhU7SDb9.mjs");
4319
+ const I = Hu(N), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-B1d8Cfcc.mjs");
4320
4320
  if ((I == null ? void 0 : I.slice(0, 10)) === b && f)
4321
4321
  return { data: await l(e, { data: I, to: f }) };
4322
4322
  throw Yu(N, {
@@ -13979,7 +13979,7 @@ var xd = Object.defineProperty, Dd = function(e, t, n) {
13979
13979
  case 0:
13980
13980
  return !Jt(i, Vt) || a || o ? (h = !((c = i.options) === null || c === void 0) && c.infuraId ? {} : i.chains.reduce(function(f, m) {
13981
13981
  return ti(Yn({}, f), vo({}, m.id, m.rpcUrls.default.http[0]));
13982
- }, {}), [4, import("./index-D0QNNKvo.mjs")]) : [3, 2];
13982
+ }, {}), [4, import("./index-Bdopcy73.mjs")]) : [3, 2];
13983
13983
  case 1:
13984
13984
  d = p.sent().default, Yr(i, Vt, new d(ti(Yn({}, i.options), { chainId: a, rpc: Yn({}, h, (u = i.options) === null || u === void 0 ? void 0 : u.rpc) }))), p.label = 2;
13985
13985
  case 2:
@@ -15579,7 +15579,7 @@ Es = async function() {
15579
15579
  };
15580
15580
  fa = /* @__PURE__ */ new WeakSet();
15581
15581
  Vo = async function() {
15582
- const { EthereumProvider: e } = await import("./index.es-D6eM34wK.mjs"), t = this.chains.map(({ id: n }) => n);
15582
+ const { EthereumProvider: e } = await import("./index.es-DD7lO_GM.mjs"), t = this.chains.map(({ id: n }) => n);
15583
15583
  if (t.length) {
15584
15584
  const {
15585
15585
  projectId: n,
@@ -1 +1 @@
1
- "use strict";var D=Object.defineProperty;var G=s=>{throw TypeError(s)};var O=(s,t,e)=>t in s?D(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var f=(s,t,e)=>O(s,typeof t!="symbol"?t+"":t,e),A=(s,t,e)=>t.has(s)||G("Cannot "+e);var l=(s,t,e)=>(A(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(s,t,e)=>t.has(s)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),c=(s,t,e,i)=>(A(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var F=(s,t,e,i)=>({set _(a){c(s,t,a,e)},get _(){return l(s,t,i)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BEhe2aRM.js");var o,g;const v=class v extends r.AbstractSigner{constructor(e){super(e.provider);f(this,"signer");p(this,o);p(this,g);r.defineProperties(this,{signer:e}),c(this,o,null),c(this,g,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new v(this.signer.connect(e))}async getNonce(e){if(e==="pending"){l(this,o)==null&&c(this,o,super.getNonce("pending"));const i=l(this,g);return await l(this,o)+i}return super.getNonce(e)}increment(){F(this,g)._++}reset(){c(this,g,0),c(this,o,null)}async sendTransaction(e){const i=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await i,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,i,a){return this.signer.signTypedData(e,i,a)}};o=new WeakMap,g=new WeakMap;let P=v;async function b(s,t,e){const i=typeof t=="string"?new r.Wallet(t,s):t,a=(e==null?void 0:e.chain)??(await r.EvmPlatform.chainFromRpc(s))[1],n=new P(i);if(n.provider===null)try{n.connect(s)}catch(d){console.error("Cannot connect to network for signer",d)}return new B(a,await i.getAddress(),n,e)}class B extends r.PlatformNativeSigner{constructor(e,i,a,n){super(e,i,a);f(this,"opts");this.opts=n}chain(){return this._chain}address(){return this._address}async sign(e){var w,y,x,C,S,T,E;const i=this.chain(),a=[];let n=500000n,d=100000000000n,m=1500000000n,u=100000000n;if(((w=this.opts)==null?void 0:w.overrides)===void 0&&i!=="Celo"){const h=await this._signer.provider.getFeeData();d=h.gasPrice??d,m=h.maxFeePerGas??m,u=h.maxPriorityFeePerGas??u}((y=this.opts)==null?void 0:y.gasLimit)!==void 0&&(n=this.opts.gasLimit),((x=this.opts)==null?void 0:x.maxGasLimit)!==void 0&&(n=n>((C=this.opts)==null?void 0:C.maxGasLimit)?(S=this.opts)==null?void 0:S.maxGasLimit:n);const L=i==="Oasis"?{gasLimit:n,gasPrice:d,type:0}:{gasLimit:n,maxFeePerGas:m,maxPriorityFeePerGas:u};for(const h of e){const{transaction:N,description:q}=h;(T=this.opts)!=null&&T.debug&&console.log(`Signing: ${q} for ${this.address()}`);const _={...N,...L,from:this.address(),nonce:await this._signer.getNonce(),...(E=this.opts)==null?void 0:E.overrides};a.push(await this._signer.signTransaction(_))}return a}}const $={Address:r.EvmAddress,Platform:r.EvmPlatform,getSigner:b,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-BEhe2aRM.js")).then(s=>s.index$1),TokenBridge:()=>Promise.resolve().then(()=>require("./index-KdiLn9Rj.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-WPYOQdpa.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-B9WBHQFN.js"))},getChain:(s,t,e)=>new r.EvmChain(t,new r.EvmPlatform(s,r.applyChainsConfigConfigOverrides(s,r._platform,{[t]:e})))};exports.default=$;
1
+ "use strict";var D=Object.defineProperty;var G=s=>{throw TypeError(s)};var O=(s,t,e)=>t in s?D(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var f=(s,t,e)=>O(s,typeof t!="symbol"?t+"":t,e),A=(s,t,e)=>t.has(s)||G("Cannot "+e);var l=(s,t,e)=>(A(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(s,t,e)=>t.has(s)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),c=(s,t,e,i)=>(A(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var F=(s,t,e,i)=>({set _(a){c(s,t,a,e)},get _(){return l(s,t,i)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-RFgTGgbk.js");var o,g;const v=class v extends r.AbstractSigner{constructor(e){super(e.provider);f(this,"signer");p(this,o);p(this,g);r.defineProperties(this,{signer:e}),c(this,o,null),c(this,g,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new v(this.signer.connect(e))}async getNonce(e){if(e==="pending"){l(this,o)==null&&c(this,o,super.getNonce("pending"));const i=l(this,g);return await l(this,o)+i}return super.getNonce(e)}increment(){F(this,g)._++}reset(){c(this,g,0),c(this,o,null)}async sendTransaction(e){const i=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await i,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,i,a){return this.signer.signTypedData(e,i,a)}};o=new WeakMap,g=new WeakMap;let P=v;async function b(s,t,e){const i=typeof t=="string"?new r.Wallet(t,s):t,a=(e==null?void 0:e.chain)??(await r.EvmPlatform.chainFromRpc(s))[1],n=new P(i);if(n.provider===null)try{n.connect(s)}catch(d){console.error("Cannot connect to network for signer",d)}return new B(a,await i.getAddress(),n,e)}class B extends r.PlatformNativeSigner{constructor(e,i,a,n){super(e,i,a);f(this,"opts");this.opts=n}chain(){return this._chain}address(){return this._address}async sign(e){var w,y,x,C,S,T,E;const i=this.chain(),a=[];let n=500000n,d=100000000000n,m=1500000000n,u=100000000n;if(((w=this.opts)==null?void 0:w.overrides)===void 0&&i!=="Celo"){const h=await this._signer.provider.getFeeData();d=h.gasPrice??d,m=h.maxFeePerGas??m,u=h.maxPriorityFeePerGas??u}((y=this.opts)==null?void 0:y.gasLimit)!==void 0&&(n=this.opts.gasLimit),((x=this.opts)==null?void 0:x.maxGasLimit)!==void 0&&(n=n>((C=this.opts)==null?void 0:C.maxGasLimit)?(S=this.opts)==null?void 0:S.maxGasLimit:n);const L=i==="Oasis"?{gasLimit:n,gasPrice:d,type:0}:{gasLimit:n,maxFeePerGas:m,maxPriorityFeePerGas:u};for(const h of e){const{transaction:N,description:q}=h;(T=this.opts)!=null&&T.debug&&console.log(`Signing: ${q} for ${this.address()}`);const _={...N,...L,from:this.address(),nonce:await this._signer.getNonce(),...(E=this.opts)==null?void 0:E.overrides};a.push(await this._signer.signTransaction(_))}return a}}const $={Address:r.EvmAddress,Platform:r.EvmPlatform,getSigner:b,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-RFgTGgbk.js")).then(s=>s.index$1),TokenBridge:()=>Promise.resolve().then(()=>require("./index-C-nWxaLg.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-Br4Igv20.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-BFFNnNKW.js"))},getChain:(s,t,e)=>new r.EvmChain(t,new r.EvmPlatform(s,r.applyChainsConfigConfigOverrides(s,r._platform,{[t]:e})))};exports.default=$;
@@ -1,8 +1,8 @@
1
1
  var d = Object.defineProperty;
2
2
  var h = (i, e, r) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
3
3
  var o = (i, e, r) => h(i, typeof e != "symbol" ? e + "" : e, r);
4
- import { b6 as m, cc as w, K as g, bj as p } from "./index-CaNzAG1x.mjs";
5
- import { S as u } from "./sui-D8i87rc-.mjs";
4
+ import { b6 as m, cc as w, K as g, bj as p } from "./index-CU9KzHgH.mjs";
5
+ import { S as u } from "./sui-CIYeuWco.mjs";
6
6
  class c {
7
7
  constructor(e, r, t, n) {
8
8
  o(this, "network");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BEhe2aRM.js");class o extends Error{constructor(r){super(r)}}class s extends o{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const n=e.struct([e.u32("mintAuthorityOption"),e.publicKey("mintAuthority"),e.u64("supply"),e.u8("decimals"),e.bool("isInitialized"),e.u32("freezeAuthorityOption"),e.publicKey("freezeAuthority")]);n.span;async function c(t,r,u=!1,i=e.TOKEN_PROGRAM_ID,O=e.ASSOCIATED_TOKEN_PROGRAM_ID){if(!u&&!e.PublicKey.isOnCurve(r.toBuffer()))throw new s;const[A]=await e.PublicKey.findProgramAddress([r.toBuffer(),i.toBuffer(),t.toBuffer()],O);return A}exports.ASSOCIATED_TOKEN_PROGRAM_ID=e.ASSOCIATED_TOKEN_PROGRAM_ID;exports.TOKEN_2022_PROGRAM_ID=e.TOKEN_2022_PROGRAM_ID;exports.TOKEN_PROGRAM_ID=e.TOKEN_PROGRAM_ID;exports.MintLayout=n;exports.TokenError=o;exports.TokenOwnerOffCurveError=s;exports.getAssociatedTokenAddress=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RFgTGgbk.js");class o extends Error{constructor(r){super(r)}}class s extends o{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const n=e.struct([e.u32("mintAuthorityOption"),e.publicKey("mintAuthority"),e.u64("supply"),e.u8("decimals"),e.bool("isInitialized"),e.u32("freezeAuthorityOption"),e.publicKey("freezeAuthority")]);n.span;async function c(t,r,u=!1,i=e.TOKEN_PROGRAM_ID,O=e.ASSOCIATED_TOKEN_PROGRAM_ID){if(!u&&!e.PublicKey.isOnCurve(r.toBuffer()))throw new s;const[A]=await e.PublicKey.findProgramAddress([r.toBuffer(),i.toBuffer(),t.toBuffer()],O);return A}exports.ASSOCIATED_TOKEN_PROGRAM_ID=e.ASSOCIATED_TOKEN_PROGRAM_ID;exports.TOKEN_2022_PROGRAM_ID=e.TOKEN_2022_PROGRAM_ID;exports.TOKEN_PROGRAM_ID=e.TOKEN_PROGRAM_ID;exports.MintLayout=n;exports.TokenError=o;exports.TokenOwnerOffCurveError=s;exports.getAssociatedTokenAddress=c;
@@ -1,4 +1,4 @@
1
- import { aJ as L, aU as g, aV as F, aW as k, aX as I, O as P, Q as T } from "./index-CaNzAG1x.mjs";
1
+ import { aJ as L, aU as g, aV as F, aW as k, aX as I, O as P, Q as T } from "./index-CU9KzHgH.mjs";
2
2
  function D(n, t, e, s) {
3
3
  g(n);
4
4
  const i = F({ dkLen: 32, asyncTick: 10 }, s), { c: u, dkLen: a, asyncTick: o } = i;
@@ -1,8 +1,8 @@
1
1
  var Y = Object.defineProperty;
2
2
  var Z = (n, f, e) => f in n ? Y(n, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[f] = e;
3
3
  var d = (n, f, e) => Z(n, typeof f != "symbol" ? f + "" : f, e);
4
- import { U as y, bk as f0, bl as W, bm as p, bn as e0, bo as a0, bp as t0, bq as _, br as b0, bs as n0, bt as d0, b8 as L, bu as O, E as v, b as C, bv as D, r as U, bc as u, bw as q, bf as c0, bx as N, bh as H, bi as j, b6 as s0, by as i0, bz as I, b5 as S, a4 as $, bj as V, _ as G } from "./index-CaNzAG1x.mjs";
5
- import "./index-BWsfR9uT.mjs";
4
+ import { U as y, bk as f0, bl as W, bm as p, bn as e0, bo as a0, bp as t0, bq as _, br as b0, bs as n0, bt as d0, b8 as L, bu as O, E as v, b as C, bv as D, r as U, bc as u, bw as q, bf as c0, bx as N, bh as H, bi as j, b6 as s0, by as i0, bz as I, b5 as S, a4 as $, bj as V, _ as G } from "./index-CU9KzHgH.mjs";
5
+ import "./index-CpQ7f1YB.mjs";
6
6
  const r0 = new RegExp("^bytes([0-9]+)$"), p0 = new RegExp("^(u?int)([0-9]*)$"), y0 = new RegExp("^(.*)\\[([0-9]*)\\]$");
7
7
  function J(n, f, e) {
8
8
  switch (n) {