@wormhole-foundation/wormhole-connect 4.1.0-beta.0-development → 4.1.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 (79) hide show
  1. package/README.md +1 -1
  2. package/dist/main.mjs +68 -68
  3. package/dist/src/config/testnet/chains.d.ts.map +1 -1
  4. package/dist/src/config/testnet/rpcs.d.ts.map +1 -1
  5. package/dist/src/config/testnet/tokens.d.ts.map +1 -1
  6. package/dist/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
  7. package/lib/{aptos-BRApiL_4.mjs → aptos-B84P9rJZ.mjs} +2 -2
  8. package/lib/{aptos-d56Mw8DO.js → aptos-DWDR5o78.js} +1 -1
  9. package/lib/{basic-DjAbnFVK.mjs → basic-BERCwt2M.mjs} +2 -2
  10. package/lib/{basic-DR75AlQZ.mjs → basic-CukRIaOD.mjs} +2 -2
  11. package/lib/{basic-BxzNlZH2.js → basic-DJXXfABO.js} +1 -1
  12. package/lib/{basic-Bj1RjRlj.js → basic-NhXxxbR1.js} +1 -1
  13. package/lib/{constants-Bkyn6tLV.js → constants-B9TBfA4z.js} +1 -1
  14. package/lib/{constants-PWEvTwIh.mjs → constants-VaoVbllu.mjs} +4 -4
  15. package/lib/{core-CkIseV8K.mjs → core-BCZrVb_s.mjs} +5 -5
  16. package/lib/{core-CCO0WKg_.js → core-BE6SS7Ye.js} +3 -3
  17. package/lib/{evm-BAU31wxF.js → evm--K7mr7Kr.js} +2 -2
  18. package/lib/{evm-9NnChBii.js → evm-C5BixKBn.js} +1 -1
  19. package/lib/{evm-2dSclZz6.mjs → evm-CmmnpcFD.mjs} +3 -3
  20. package/lib/{evm-CMxUV_bG.mjs → evm-DKaWm7eC.mjs} +3 -3
  21. package/lib/hosted.js +1 -1
  22. package/lib/hosted.mjs +1 -1
  23. package/lib/{hypercore-DJV-pPts.js → hypercore-4R7JGmbr.js} +1 -1
  24. package/lib/{hypercore-Bmlyd4uI.mjs → hypercore-birmbh9T.mjs} +9 -9
  25. package/lib/{index-arjwwpj2.mjs → index-BN_2mA2n.mjs} +1 -1
  26. package/lib/{index-C5j1HoFr.js → index-BRFbmsc_.js} +1 -1
  27. package/lib/{index-CS6YnwIH.js → index-BTcij9Np.js} +1 -1
  28. package/lib/{index-cRi8si5A.js → index-BUbUhbMe.js} +1 -1
  29. package/lib/{index-DUyGY36L.js → index-Bs28m4ya.js} +1 -1
  30. package/lib/{index-B16yfCYF.mjs → index-C8YhpD9T.mjs} +1 -1
  31. package/lib/{index-BYuhx88C.js → index-C8eqQ_7p.js} +1 -1
  32. package/lib/{index-CZHdN9pg.js → index-CED5jdrg.js} +1 -1
  33. package/lib/{index-Cl9Df47-.mjs → index-CH0iw38J.mjs} +1 -1
  34. package/lib/{index-hyk_rzOj.mjs → index-CR1itkLl.mjs} +700 -683
  35. package/lib/{index-CHvWl09c.js → index-Cw0jWBks.js} +1 -1
  36. package/lib/{index-BXsTZ9x_.mjs → index-DSnylejH.mjs} +23 -15
  37. package/lib/{index-CPGWCfWD.js → index-HrZv1SyT.js} +8 -8
  38. package/lib/{index-_IZO0QRl.mjs → index-N4FkpEh9.mjs} +1 -1
  39. package/lib/{index-Ds7-hb1n.mjs → index-Txz5xwr6.mjs} +1 -1
  40. package/lib/{index-BCKX-m7h.mjs → index-pYTU7pQK.mjs} +1 -1
  41. package/lib/{index.es-ByyzusUN.mjs → index.es-B0fk_42a.mjs} +3 -3
  42. package/lib/{index.es-BC9c-IV7.mjs → index.es-CDqFguL5.mjs} +2 -2
  43. package/lib/{index.es-BmZ1Eaml.js → index.es-Dg6IFrL4.js} +1 -1
  44. package/lib/{index.es-DxdcaWwJ.js → index.es-DmmqAOLD.js} +3 -3
  45. package/lib/index.js +1 -1
  46. package/lib/index.mjs +6 -6
  47. package/lib/lifi.js +1 -1
  48. package/lib/lifi.mjs +2 -2
  49. package/lib/mayan.js +1 -1
  50. package/lib/mayan.mjs +2 -2
  51. package/lib/monad.js +1 -1
  52. package/lib/monad.mjs +1 -1
  53. package/lib/ntt.js +1 -1
  54. package/lib/ntt.mjs +1 -1
  55. package/lib/{secp256k1-BLiUzGcX.js → secp256k1-BkoM1Jum.js} +1 -1
  56. package/lib/{secp256k1-r0ke-jeG.js → secp256k1-CcVQkYNr.js} +1 -1
  57. package/lib/{secp256k1-D24BZJAq.js → secp256k1-CglUNI04.js} +1 -1
  58. package/lib/{secp256k1-rufcCDcw.mjs → secp256k1-DROP2Lhv.mjs} +1 -1
  59. package/lib/{secp256k1-ZQ8UIhmk.mjs → secp256k1-DzRCmd6a.mjs} +1 -1
  60. package/lib/{secp256k1-CXRI4XfW.mjs → secp256k1-LTcmQEQ5.mjs} +1 -1
  61. package/lib/{solana-CXtk3UX1.js → solana-C4k_Yg7w.js} +4 -4
  62. package/lib/{solana-lhrSUH_P.mjs → solana-D1LVIhGd.mjs} +8 -8
  63. package/lib/{solanaEmbed.esm-BMynjubZ.js → solanaEmbed.esm--Ac-IlRA.js} +1 -1
  64. package/lib/{solanaEmbed.esm-CFu0h50b.mjs → solanaEmbed.esm-AvWQUA9e.mjs} +2 -2
  65. package/lib/src/config/testnet/chains.d.ts.map +1 -1
  66. package/lib/src/config/testnet/rpcs.d.ts.map +1 -1
  67. package/lib/src/config/testnet/tokens.d.ts.map +1 -1
  68. package/lib/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
  69. package/lib/{sui-CZNJPZ5q.mjs → sui-BPAb7kcs.mjs} +2 -2
  70. package/lib/{sui-CBxh7zmc.js → sui-CgmDTkXK.js} +1 -1
  71. package/lib/{tokenHelpers-DZRdlDO-.js → tokenHelpers-CbE0g9BP.js} +1 -1
  72. package/lib/{tokenHelpers-DT6mPtNP.mjs → tokenHelpers-DvWQs1tu.mjs} +1 -1
  73. package/lib/{tokens-FIs8YBYj.mjs → tokens-BJDttoCp.mjs} +1 -1
  74. package/lib/{tokens--uOMY2-j.js → tokens-CvZuVW-g.js} +1 -1
  75. package/lib/{w3m-modal-B5PtkowQ.js → w3m-modal-ByamyZny.js} +1 -1
  76. package/lib/{w3m-modal-CBYJj-sR.mjs → w3m-modal-CtQ0TPA4.mjs} +2 -2
  77. package/lib/{w3m-modal-h85Jyy9l.mjs → w3m-modal-DM5Pf8SH.mjs} +2 -2
  78. package/lib/{w3m-modal-B3FfPDki.js → w3m-modal-k23UDiov.js} +1 -1
  79. package/package.json +6 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./platform-CCG_jgOO.js"),p=require("./wallet-BMli0fbu.js");class d extends t.AbstractSigner{signer;#e;#s;constructor(e){super(e.provider),t.defineProperties(this,{signer:e}),this.#e=null,this.#s=0}async getAddress(){return this.signer.getAddress()}connect(e){return new d(this.signer.connect(e))}async getNonce(e){if(e==="pending"){this.#e==null&&(this.#e=super.getNonce("pending"));const s=this.#s;return await this.#e+s}return super.getNonce(e)}increment(){this.#s++}reset(){this.#s=0,this.#e=null}async sendTransaction(e){const s=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await s,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,s,i){return this.signer.signTypedData(e,s,i)}}async function f(r,e,s){const i=typeof e=="string"?new p.Wallet(e,r):e,n=s?.chain??(await t.EvmPlatform.chainFromRpc(r))[1],o=new d(i);if(o.provider===null)try{o.connect(r)}catch(a){console.error("Cannot connect to network for signer",a)}return new P(n,await i.getAddress(),o,s)}class P extends t.PlatformNativeSigner{opts;constructor(e,s,i,n){super(e,s,i),this.opts=n}chain(){return this._chain}address(){return this._address}async sign(e){const s=this.chain(),i=[];let n=500000n,o=100000000000n,a=1500000000n,g=100000000n;if(this.opts?.overrides===void 0&&s!=="Celo"){const c=await this._signer.provider.getFeeData();o=c.gasPrice??o,a=c.maxFeePerGas??a,g=c.maxPriorityFeePerGas??g}this.opts?.gasLimit!==void 0&&(n=this.opts.gasLimit),this.opts?.maxGasLimit!==void 0&&(n=n>this.opts?.maxGasLimit?this.opts?.maxGasLimit:n);const h={gasLimit:n,maxFeePerGas:a,maxPriorityFeePerGas:g};for(const c of e){const{transaction:l,description:m}=c;this.opts?.debug&&console.log(`Signing: ${m} for ${this.address()}`);const u={...l,...h,from:this.address(),nonce:await this._signer.getNonce(),...this.opts?.overrides};i.push(await this._signer.signTransaction(u))}return i}}const v={Address:t.EvmAddress,Platform:t.EvmPlatform,getSigner:f,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-EbSw7SbC.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-BYuhx88C.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-CZHdN9pg.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-cRi8si5A.js")),TBTCBridge:()=>Promise.resolve().then(()=>require("./index-qL4D-cpk.js"))},getChain:(r,e,s)=>new t.EvmChain(e,new t.EvmPlatform(r,t.applyChainsConfigConfigOverrides(r,t._platform,{[e]:s})))};exports.default=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./platform-CCG_jgOO.js"),p=require("./wallet-BMli0fbu.js");class d extends t.AbstractSigner{signer;#e;#s;constructor(e){super(e.provider),t.defineProperties(this,{signer:e}),this.#e=null,this.#s=0}async getAddress(){return this.signer.getAddress()}connect(e){return new d(this.signer.connect(e))}async getNonce(e){if(e==="pending"){this.#e==null&&(this.#e=super.getNonce("pending"));const s=this.#s;return await this.#e+s}return super.getNonce(e)}increment(){this.#s++}reset(){this.#s=0,this.#e=null}async sendTransaction(e){const s=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await s,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,s,i){return this.signer.signTypedData(e,s,i)}}async function f(r,e,s){const i=typeof e=="string"?new p.Wallet(e,r):e,n=s?.chain??(await t.EvmPlatform.chainFromRpc(r))[1],o=new d(i);if(o.provider===null)try{o.connect(r)}catch(a){console.error("Cannot connect to network for signer",a)}return new P(n,await i.getAddress(),o,s)}class P extends t.PlatformNativeSigner{opts;constructor(e,s,i,n){super(e,s,i),this.opts=n}chain(){return this._chain}address(){return this._address}async sign(e){const s=this.chain(),i=[];let n=500000n,o=100000000000n,a=1500000000n,g=100000000n;if(this.opts?.overrides===void 0&&s!=="Celo"){const c=await this._signer.provider.getFeeData();o=c.gasPrice??o,a=c.maxFeePerGas??a,g=c.maxPriorityFeePerGas??g}this.opts?.gasLimit!==void 0&&(n=this.opts.gasLimit),this.opts?.maxGasLimit!==void 0&&(n=n>this.opts?.maxGasLimit?this.opts?.maxGasLimit:n);const h={gasLimit:n,maxFeePerGas:a,maxPriorityFeePerGas:g};for(const c of e){const{transaction:l,description:m}=c;this.opts?.debug&&console.log(`Signing: ${m} for ${this.address()}`);const u={...l,...h,from:this.address(),nonce:await this._signer.getNonce(),...this.opts?.overrides};i.push(await this._signer.signTransaction(u))}return i}}const v={Address:t.EvmAddress,Platform:t.EvmPlatform,getSigner:f,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-EbSw7SbC.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-C8eqQ_7p.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-CED5jdrg.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-BUbUhbMe.js")),TBTCBridge:()=>Promise.resolve().then(()=>require("./index-qL4D-cpk.js"))},getChain:(r,e,s)=>new t.EvmChain(e,new t.EvmPlatform(r,t.applyChainsConfigConfigOverrides(r,t._platform,{[e]:s})))};exports.default=v;
@@ -1,8 +1,8 @@
1
- import { C as ar, W as rr, N as wt, f as sr, h as R, j as rt, k as nr, l as cr, B as or, n as lr } from "./hypercore-Bmlyd4uI.mjs";
1
+ import { C as ar, W as rr, N as wt, f as sr, h as R, j as rt, k as nr, l as cr, B as or, n as lr } from "./hypercore-birmbh9T.mjs";
2
2
  import { cb as ir, a2 as Gt, ap as pr, bC as dr, C as ur, F as mr, E as hr, b6 as br, a5 as yr } from "./platform-Cil_UtAQ.mjs";
3
3
  import { B as D, a as jt, p as it, i as pt, n as C, L as Ma, s as st, S as Mr, b as V, f as xr, e as Er, t as z, F as J, T as ye, h as Me, c as ht, E as ge, d as Yt, N as Ht, g as Rt, j as Zt, I as Wt, k as Jt, l as Vt, m as Xt, U as xa, u as Ar, o as S, q as Tt, r as B, w as Cr, v as fr, R as bt, x as gr } from "./http-BRrcyI2V.mjs";
4
4
  import { E as kr } from "./unsignedTransaction-DCDxTFq8.mjs";
5
- import { c as nt, n as Ir } from "./index-hyk_rzOj.mjs";
5
+ import { c as nt, n as Ir } from "./index-CR1itkLl.mjs";
6
6
  class wr extends ir {
7
7
  #e;
8
8
  /**
@@ -18920,7 +18920,7 @@ function Pt(e) {
18920
18920
  const m = M.chains.map((y) => y.id);
18921
18921
  if (!m.length)
18922
18922
  return;
18923
- const { EthereumProvider: E } = await import("./index.es-ByyzusUN.mjs").then((y) => y.i);
18923
+ const { EthereumProvider: E } = await import("./index.es-B0fk_42a.mjs").then((y) => y.i);
18924
18924
  return await E.init({
18925
18925
  ...e,
18926
18926
  disableProviderPing: !0,
@@ -107,9 +107,9 @@ const A = {
107
107
  getSigner: x,
108
108
  protocols: {
109
109
  WormholeCore: () => import("./index-BKgliEPZ.mjs"),
110
- TokenBridge: () => import("./index-BCKX-m7h.mjs"),
111
- PorticoBridge: () => import("./index-Cl9Df47-.mjs"),
112
- CircleBridge: () => import("./index-_IZO0QRl.mjs"),
110
+ TokenBridge: () => import("./index-pYTU7pQK.mjs"),
111
+ PorticoBridge: () => import("./index-CH0iw38J.mjs"),
112
+ CircleBridge: () => import("./index-N4FkpEh9.mjs"),
113
113
  TBTCBridge: () => import("./index-BuHdMHLz.mjs")
114
114
  },
115
115
  getChain: (n, s, e) => new P(s, new g(n, y(n, C, {
package/lib/hosted.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./constants-Bkyn6tLV.js");function d(o,e={}){window.__CONNECT_CONFIG=e.config,window.__CONNECT_THEME=e.theme;const n=document.createElement("div");n.id="wormhole-connect";const c=e.version??s.CONNECT_VERSION,i=e.cdnBaseUrl??`https://cdn.jsdelivr.net/npm/@wormhole-foundation/wormhole-connect@${c}`,t=document.createElement("script");t.setAttribute("src",`${i}/dist/main.js`),t.setAttribute("type","module"),o.appendChild(n),o.appendChild(t)}exports.wormholeConnectHosted=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./constants-B9TBfA4z.js");function d(o,e={}){window.__CONNECT_CONFIG=e.config,window.__CONNECT_THEME=e.theme;const n=document.createElement("div");n.id="wormhole-connect";const c=e.version??s.CONNECT_VERSION,i=e.cdnBaseUrl??`https://cdn.jsdelivr.net/npm/@wormhole-foundation/wormhole-connect@${c}`,t=document.createElement("script");t.setAttribute("src",`${i}/dist/main.js`),t.setAttribute("type","module"),o.appendChild(n),o.appendChild(t)}exports.wormholeConnectHosted=d;
package/lib/hosted.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as d } from "./constants-PWEvTwIh.mjs";
1
+ import { C as d } from "./constants-VaoVbllu.mjs";
2
2
  function r(o, t = {}) {
3
3
  window.__CONNECT_CONFIG = t.config, window.__CONNECT_THEME = t.theme;
4
4
  const n = document.createElement("div");