@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.
- package/README.md +1 -1
- package/dist/main.mjs +68 -68
- package/dist/src/config/testnet/chains.d.ts.map +1 -1
- package/dist/src/config/testnet/rpcs.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/lib/{aptos-BRApiL_4.mjs → aptos-B84P9rJZ.mjs} +2 -2
- package/lib/{aptos-d56Mw8DO.js → aptos-DWDR5o78.js} +1 -1
- package/lib/{basic-DjAbnFVK.mjs → basic-BERCwt2M.mjs} +2 -2
- package/lib/{basic-DR75AlQZ.mjs → basic-CukRIaOD.mjs} +2 -2
- package/lib/{basic-BxzNlZH2.js → basic-DJXXfABO.js} +1 -1
- package/lib/{basic-Bj1RjRlj.js → basic-NhXxxbR1.js} +1 -1
- package/lib/{constants-Bkyn6tLV.js → constants-B9TBfA4z.js} +1 -1
- package/lib/{constants-PWEvTwIh.mjs → constants-VaoVbllu.mjs} +4 -4
- package/lib/{core-CkIseV8K.mjs → core-BCZrVb_s.mjs} +5 -5
- package/lib/{core-CCO0WKg_.js → core-BE6SS7Ye.js} +3 -3
- package/lib/{evm-BAU31wxF.js → evm--K7mr7Kr.js} +2 -2
- package/lib/{evm-9NnChBii.js → evm-C5BixKBn.js} +1 -1
- package/lib/{evm-2dSclZz6.mjs → evm-CmmnpcFD.mjs} +3 -3
- package/lib/{evm-CMxUV_bG.mjs → evm-DKaWm7eC.mjs} +3 -3
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{hypercore-DJV-pPts.js → hypercore-4R7JGmbr.js} +1 -1
- package/lib/{hypercore-Bmlyd4uI.mjs → hypercore-birmbh9T.mjs} +9 -9
- package/lib/{index-arjwwpj2.mjs → index-BN_2mA2n.mjs} +1 -1
- package/lib/{index-C5j1HoFr.js → index-BRFbmsc_.js} +1 -1
- package/lib/{index-CS6YnwIH.js → index-BTcij9Np.js} +1 -1
- package/lib/{index-cRi8si5A.js → index-BUbUhbMe.js} +1 -1
- package/lib/{index-DUyGY36L.js → index-Bs28m4ya.js} +1 -1
- package/lib/{index-B16yfCYF.mjs → index-C8YhpD9T.mjs} +1 -1
- package/lib/{index-BYuhx88C.js → index-C8eqQ_7p.js} +1 -1
- package/lib/{index-CZHdN9pg.js → index-CED5jdrg.js} +1 -1
- package/lib/{index-Cl9Df47-.mjs → index-CH0iw38J.mjs} +1 -1
- package/lib/{index-hyk_rzOj.mjs → index-CR1itkLl.mjs} +700 -683
- package/lib/{index-CHvWl09c.js → index-Cw0jWBks.js} +1 -1
- package/lib/{index-BXsTZ9x_.mjs → index-DSnylejH.mjs} +23 -15
- package/lib/{index-CPGWCfWD.js → index-HrZv1SyT.js} +8 -8
- package/lib/{index-_IZO0QRl.mjs → index-N4FkpEh9.mjs} +1 -1
- package/lib/{index-Ds7-hb1n.mjs → index-Txz5xwr6.mjs} +1 -1
- package/lib/{index-BCKX-m7h.mjs → index-pYTU7pQK.mjs} +1 -1
- package/lib/{index.es-ByyzusUN.mjs → index.es-B0fk_42a.mjs} +3 -3
- package/lib/{index.es-BC9c-IV7.mjs → index.es-CDqFguL5.mjs} +2 -2
- package/lib/{index.es-BmZ1Eaml.js → index.es-Dg6IFrL4.js} +1 -1
- package/lib/{index.es-DxdcaWwJ.js → index.es-DmmqAOLD.js} +3 -3
- package/lib/index.js +1 -1
- package/lib/index.mjs +6 -6
- package/lib/lifi.js +1 -1
- package/lib/lifi.mjs +2 -2
- package/lib/mayan.js +1 -1
- package/lib/mayan.mjs +2 -2
- package/lib/monad.js +1 -1
- package/lib/monad.mjs +1 -1
- package/lib/ntt.js +1 -1
- package/lib/ntt.mjs +1 -1
- package/lib/{secp256k1-BLiUzGcX.js → secp256k1-BkoM1Jum.js} +1 -1
- package/lib/{secp256k1-r0ke-jeG.js → secp256k1-CcVQkYNr.js} +1 -1
- package/lib/{secp256k1-D24BZJAq.js → secp256k1-CglUNI04.js} +1 -1
- package/lib/{secp256k1-rufcCDcw.mjs → secp256k1-DROP2Lhv.mjs} +1 -1
- package/lib/{secp256k1-ZQ8UIhmk.mjs → secp256k1-DzRCmd6a.mjs} +1 -1
- package/lib/{secp256k1-CXRI4XfW.mjs → secp256k1-LTcmQEQ5.mjs} +1 -1
- package/lib/{solana-CXtk3UX1.js → solana-C4k_Yg7w.js} +4 -4
- package/lib/{solana-lhrSUH_P.mjs → solana-D1LVIhGd.mjs} +8 -8
- package/lib/{solanaEmbed.esm-BMynjubZ.js → solanaEmbed.esm--Ac-IlRA.js} +1 -1
- package/lib/{solanaEmbed.esm-CFu0h50b.mjs → solanaEmbed.esm-AvWQUA9e.mjs} +2 -2
- package/lib/src/config/testnet/chains.d.ts.map +1 -1
- package/lib/src/config/testnet/rpcs.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
- package/lib/{sui-CZNJPZ5q.mjs → sui-BPAb7kcs.mjs} +2 -2
- package/lib/{sui-CBxh7zmc.js → sui-CgmDTkXK.js} +1 -1
- package/lib/{tokenHelpers-DZRdlDO-.js → tokenHelpers-CbE0g9BP.js} +1 -1
- package/lib/{tokenHelpers-DT6mPtNP.mjs → tokenHelpers-DvWQs1tu.mjs} +1 -1
- package/lib/{tokens-FIs8YBYj.mjs → tokens-BJDttoCp.mjs} +1 -1
- package/lib/{tokens--uOMY2-j.js → tokens-CvZuVW-g.js} +1 -1
- package/lib/{w3m-modal-B5PtkowQ.js → w3m-modal-ByamyZny.js} +1 -1
- package/lib/{w3m-modal-CBYJj-sR.mjs → w3m-modal-CtQ0TPA4.mjs} +2 -2
- package/lib/{w3m-modal-h85Jyy9l.mjs → w3m-modal-DM5Pf8SH.mjs} +2 -2
- package/lib/{w3m-modal-B3FfPDki.js → w3m-modal-k23UDiov.js} +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
111
|
-
PorticoBridge: () => import("./index-
|
|
112
|
-
CircleBridge: () => import("./index-
|
|
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-
|
|
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