@wormhole-foundation/wormhole-connect 2.5.0-beta.1-development → 2.5.0-beta.2-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/dist/assets/{aptos-DLxgkT5W.js → aptos-BGyyK8mz.js} +2 -2
- package/dist/assets/{ccip-Bs93R44a.js → ccip-BpjdU5zN.js} +1 -1
- package/dist/assets/events-6PekJgMN.js +1 -0
- package/dist/assets/{evm-CuAzYJaD.js → evm-DS7RCBlt.js} +2 -2
- package/dist/assets/{evm-CxlqE7UV.js → evm-DvDOQf0K.js} +3 -3
- package/dist/assets/{index-e6M9UpWM.js → index-5kmPKAJ_.js} +1 -1
- package/dist/assets/{index-IzL7XNn3.js → index-BXRb91Mn.js} +1 -1
- package/dist/assets/{index-QjsZkUzh.js → index-Bbr14gKC.js} +1 -1
- package/dist/assets/{index-4BxLiF2M.js → index-BjVbgKwL.js} +1 -1
- package/dist/assets/{index-m0NseVbx.js → index-BwPu1wGj.js} +1 -1
- package/dist/assets/{index-CR4K0-mn.js → index-BxXKtU8j.js} +1 -1
- package/dist/assets/{index-55oWJrMY.js → index-BzNSt2uL.js} +1 -1
- package/dist/assets/{index-4bNkfrlF.js → index-C74fy0qh.js} +1 -1
- package/dist/assets/{index-8LfOenBd.js → index-CCOom38X.js} +1 -1
- package/dist/assets/{index-Cc4sWidw.js → index-CHnF49kB.js} +1 -1
- package/dist/assets/{index-DizukMyh.js → index-D1MoRUWm.js} +1 -1
- package/dist/assets/{index-CZTnhsmR.js → index-D54DXHBu.js} +1 -1
- package/dist/assets/{index-CR_EuCZh.js → index-D8nnAO88.js} +1 -1
- package/dist/assets/{index-DyI3oKqt.js → index-DpMc0uqY.js} +1 -1
- package/dist/assets/{index-6z4IDTS8.js → index-FNyibGfB.js} +2 -2
- package/dist/assets/{index-Cn7Zb7-T.js → index-X7Qc-hll.js} +1 -1
- package/dist/assets/{index.es-BSz0aeDf.js → index.es-B2WvD5Rz.js} +6 -6
- package/dist/assets/{solana-Cl8jthtC.js → solana-Dj3oh4lV.js} +2 -2
- package/dist/assets/solana-DseaNtL0.js +2 -0
- package/dist/assets/solanaEmbed.esm-xl7iC7nm.js +37 -0
- package/dist/assets/{sui-Ko5G1-gz.js → sui-BdOrw1dc.js} +2 -2
- package/dist/main.js +102 -102
- package/dist/src/AppRouter.d.ts.map +1 -1
- package/lib/{aptos-DSqOSKNb.js → aptos-BHFBFxf9.js} +1 -1
- package/lib/{aptos-BbifmBP0.mjs → aptos-BusONhYq.mjs} +5 -5
- package/lib/{aptos-CKydVwjD.mjs → aptos-DS0eK_De.mjs} +2 -2
- package/lib/{aptos-8KMeJE-o.js → aptos-Dqp93_ct.js} +2 -2
- package/lib/{base64-CpFecuyA.js → base64-Cjk6rii_.js} +1 -1
- package/lib/{base64-qaCqMb_l.mjs → base64-Vgzj53Io.mjs} +1 -1
- package/lib/{ccip-D51RTC0u.js → ccip-BLUli_Dz.js} +1 -1
- package/lib/{ccip-CVtTRfyn.mjs → ccip-FbY2UZlg.mjs} +1 -1
- package/lib/{chunk-IMTC3J2M-BxB1b0q0.js → chunk-IMTC3J2M-6yduhw0s.js} +1 -1
- package/lib/{chunk-IMTC3J2M-CKg3oVWr.mjs → chunk-IMTC3J2M-AkEA0_z6.mjs} +3 -3
- package/lib/{evm-RNshiiFP.js → evm-BB0d_Gf4.js} +2 -2
- package/lib/{evm-CHVaneje.mjs → evm-DAHEa0cY.mjs} +5 -5
- package/lib/{evm-BLoyv9Lm.js → evm-DZww7tTt.js} +3 -3
- package/lib/{evm-CQZ0vIa8.mjs → evm-gEzFFEsO.mjs} +6 -6
- package/lib/{index-BS2i3Ksw.js → index-6m6Q8Vsa.js} +1 -1
- package/lib/{index-BOiSCkY4.js → index-8STuBnQE.js} +1 -1
- package/lib/{index-DrarHdDr.js → index-B5i1j7Dy.js} +1 -1
- package/lib/{index-D9urvMDV.js → index-BZh72NtL.js} +1 -1
- package/lib/{index-xYxy17zb.mjs → index-BaMrMiTv.mjs} +1 -1
- package/lib/{index-B43BfOtT.js → index-BbxXJYWg.js} +1 -1
- package/lib/{index-BK_P-oYC.mjs → index-Bcl7n3KD.mjs} +2 -2
- package/lib/{index-C1e-lwCm.mjs → index-BeYO1LV3.mjs} +2 -2
- package/lib/{index-C41PgJpW.js → index-Bhgci81L.js} +4 -4
- package/lib/{index-CO4tNP9_.js → index-BuPKwE_4.js} +1 -1
- package/lib/{index-Cnb3Fj6a.mjs → index-C27ZY3oS.mjs} +1 -1
- package/lib/{index-D3vUo86P.mjs → index-C6YOw6gB.mjs} +4 -4
- package/lib/{index-B2bLjM93.mjs → index-CA09NOzo.mjs} +3 -3
- package/lib/{index-Bz1QpdKk.mjs → index-CHaex8L3.mjs} +1 -1
- package/lib/{index-MHSosKrJ.js → index-CSK3DRpf.js} +1 -1
- package/lib/{index-C4r2UzcB.js → index-CT45reKG.js} +1 -1
- package/lib/{index-DlqDGm7R.mjs → index-CkXJo6xD.mjs} +1 -1
- package/lib/{index-DsN7YSP1.mjs → index-Cs1dlfzD.mjs} +1 -1
- package/lib/{index-BBanb5ap.mjs → index-CxTd6N-A.mjs} +2 -2
- package/lib/{index-Dep8pAGA.mjs → index-D9hjnIst.mjs} +2 -2
- package/lib/{index-B_YK6ETC.mjs → index-DDZaEBsC.mjs} +3 -3
- package/lib/{index-BuqYv7Vr.mjs → index-DR-fv3uE.mjs} +2 -2
- package/lib/{index-CkBBICIC.js → index-DUC1gOTG.js} +1 -1
- package/lib/{index-2z8NsIQ8.js → index-DUZnVNwZ.js} +1 -1
- package/lib/{index-Y_57HCqM.js → index-DXzXHly-.js} +1 -1
- package/lib/{index-Dv60e2W9.mjs → index-D_PIxJ0d.mjs} +2 -2
- package/lib/{index-D-0atbSn.js → index-D_XBMeuk.js} +1 -1
- package/lib/{index-l9KU7K7P.js → index-DcYZkDfF.js} +1 -1
- package/lib/{index-CxoYsIft.js → index-DhR1_nfh.js} +1 -1
- package/lib/{index-Dwhn5PEn.mjs → index-DhowVYVk.mjs} +1 -1
- package/lib/{index-COs1joOZ.js → index-DlNp9VMO.js} +1 -1
- package/lib/{index-GVu1wMwM.mjs → index-DpeIjsSi.mjs} +1 -1
- package/lib/{index-BKVRZX9z.js → index-Ds5QMWJr.js} +1 -1
- package/lib/{index-BfTnUr7T.mjs → index-Ds6Q5qfX.mjs} +2 -2
- package/lib/{index-zBPInGXF.js → index-DtjJKYjA.js} +1 -1
- package/lib/{index-myqdl1wW.js → index-FoZ3qnSm.js} +1 -1
- package/lib/{index-DszDWeYi.mjs → index-GSQqQOXb.mjs} +1 -1
- package/lib/{index-BoceUAkG.mjs → index-LdDD7AAy.mjs} +13 -13
- package/lib/{index-CbZQJETK.mjs → index-OqOcvaDE.mjs} +2 -2
- package/lib/{index-DFk1H3Sj.mjs → index-QCqnETT_.mjs} +2 -2
- package/lib/{index-D7jGbtAx.js → index-j8CdhHvQ.js} +1 -1
- package/lib/{index-j1N8J-Fe.js → index-pWRTEePn.js} +1 -1
- package/lib/{index-DSsxt-9e.mjs → index-pg4EQbm-.mjs} +1 -1
- package/lib/{index-BU-5OQwh.js → index-s9pQs8eO.js} +1 -1
- package/lib/{index-DVVD_hZm.mjs → index-tI4rmxN8.mjs} +1 -1
- package/lib/{index-CtC0u7hr.js → index-u05I0QmU.js} +1 -1
- package/lib/{index.es-W0q91zRy.js → index.es-BeAVotPr.js} +2 -2
- package/lib/{index.es-Ba4xhwJc.mjs → index.es-Z5ZsZIyC.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-D0QgWaj3.mjs → signer-B0f07_6U.mjs} +1 -1
- package/lib/{signer-BbJbZn8Y.js → signer-yr6Zpc2i.js} +1 -1
- package/lib/{solana-h6jJreZX.mjs → solana-C-LeRjT-.mjs} +4 -4
- package/lib/solana-Ci7N1M7R.js +1 -0
- package/lib/solana-DCefclYK.mjs +17 -0
- package/lib/{solana-vP3qaiqp.js → solana-DWYDxAWP.js} +1 -1
- package/lib/{solanaEmbed.esm-auVokEYr.mjs → solanaEmbed.esm-CEtmCHNm.mjs} +1 -1
- package/lib/{solanaEmbed.esm-CQIYNDBD.js → solanaEmbed.esm-D5pFIuXZ.js} +1 -1
- package/lib/src/AppRouter.d.ts.map +1 -1
- package/lib/{sui-EheQCqu3.js → sui-756LVCZm.js} +1 -1
- package/lib/{sui-BCWyy1OH.js → sui-BIUo4whG.js} +1 -1
- package/lib/{sui-CCReavtD.mjs → sui-BuI3_sI0.mjs} +5 -5
- package/lib/{sui-CxwKTlzx.mjs → sui-naAV3r83.mjs} +1 -1
- package/package.json +1 -1
- package/dist/assets/solana-D2ghQqy6.js +0 -2
- package/dist/assets/solanaEmbed.esm-LTv0oYB9.js +0 -37
- package/lib/solana-B4XQWl46.js +0 -1
- package/lib/solana-Dc2NjQX4.mjs +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAI1E,OAAO,WAAW,CAAC;AAKnB,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AA+BvD,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAGD,iBAAS,SAAS,CAAC,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAI1E,OAAO,WAAW,CAAC;AAKnB,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AA+BvD,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAGD,iBAAS,SAAS,CAAC,KAAK,EAAE,KAAK,qBAkF9B;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Xh=Object.defineProperty;var Jh=(t,e,n)=>e in t?Xh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Qn=(t,e,n)=>Jh(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("./index-
|
|
1
|
+
"use strict";var Xh=Object.defineProperty;var Jh=(t,e,n)=>e in t?Xh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Qn=(t,e,n)=>Jh(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("./index-Bhgci81L.js"),U=require("./chunk-IMTC3J2M-6yduhw0s.js"),$h=require("./wallets-5qGJd8Hk.js");function Es(t,e){if(!!!t)throw new Error(e)}function ef(t){return typeof t=="object"&&t!==null}function tf(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const nf=/\r\n|[\n\r]/g;function Xi(t,e){let n=0,r=1;for(const s of t.body.matchAll(nf)){if(typeof s.index=="number"||tf(!1),s.index>=e)break;n=s.index+s[0].length,r+=1}return{line:r,column:e+1-n}}function rf(t){return Xc(t.source,Xi(t.source,t.start))}function Xc(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,s=e.line-1,o=t.locationOffset.line-1,c=e.line+o,l=e.line===1?n:0,f=e.column+l,p=`${t.name}:${c}:${f}
|
|
2
2
|
`,y=r.split(/\r\n|[\n\r]/g),w=y[s];if(w.length>120){const b=Math.floor(f/80),S=f%80,I=[];for(let k=0;k<w.length;k+=80)I.push(w.slice(k,k+80));return p+Ia([[`${c} |`,I[0]],...I.slice(1,b+1).map(k=>["|",k]),["|","^".padStart(S)],["|",I[b+1]]])}return p+Ia([[`${c-1} |`,y[s-1]],[`${c} |`,w],["|","^".padStart(f)],[`${c+1} |`,y[s+1]]])}function Ia(t){const e=t.filter(([r,s])=>s!==void 0),n=Math.max(...e.map(([r])=>r.length));return e.map(([r,s])=>r.padStart(n)+(s?" "+s:"")).join(`
|
|
3
3
|
`)}function sf(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Do extends Error{constructor(e,...n){var r,s,o;const{nodes:c,source:l,positions:f,path:p,originalError:y,extensions:w}=sf(n);super(e),this.name="GraphQLError",this.path=p??void 0,this.originalError=y??void 0,this.nodes=Ma(Array.isArray(c)?c:c?[c]:void 0);const b=Ma((r=this.nodes)===null||r===void 0?void 0:r.map(I=>I.loc).filter(I=>I!=null));this.source=l??(b==null||(s=b[0])===null||s===void 0?void 0:s.source),this.positions=f??(b==null?void 0:b.map(I=>I.start)),this.locations=f&&l?f.map(I=>Xi(l,I)):b==null?void 0:b.map(I=>Xi(I.source,I.start));const S=ef(y==null?void 0:y.extensions)?y==null?void 0:y.extensions:void 0;this.extensions=(o=w??S)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),y!=null&&y.stack?Object.defineProperty(this,"stack",{value:y.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Do):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`
|
|
4
4
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var _ = (e, t, a) => t in e ? w(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var h = (e, t, a) => _(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { $ as y, a0 as b, a1 as p, a2 as S, a3 as C, a4 as u, a5 as T, a6 as d, a7 as v, a8 as f, a9 as A, aa as N, U as I } from "./index-
|
|
5
|
-
import { e as g, s as B, t as x, o as E, z as F } from "./chunk-IMTC3J2M-
|
|
4
|
+
import { $ as y, a0 as b, a1 as p, a2 as S, a3 as C, a4 as u, a5 as T, a6 as d, a7 as v, a8 as f, a9 as A, aa as N, U as I } from "./index-LdDD7AAy.mjs";
|
|
5
|
+
import { e as g, s as B, t as x, o as E, z as F } from "./chunk-IMTC3J2M-AkEA0_z6.mjs";
|
|
6
6
|
class m extends y {
|
|
7
7
|
}
|
|
8
8
|
const c = class c extends b {
|
|
@@ -144,9 +144,9 @@ const O = {
|
|
|
144
144
|
Platform: l,
|
|
145
145
|
getSigner: k,
|
|
146
146
|
protocols: {
|
|
147
|
-
WormholeCore: () => import("./index-
|
|
148
|
-
TokenBridge: () => import("./index-
|
|
149
|
-
CircleBridge: () => import("./index-
|
|
147
|
+
WormholeCore: () => import("./index-Bcl7n3KD.mjs"),
|
|
148
|
+
TokenBridge: () => import("./index-CxTd6N-A.mjs"),
|
|
149
|
+
CircleBridge: () => import("./index-DDZaEBsC.mjs")
|
|
150
150
|
},
|
|
151
151
|
getChain: (e, t, a) => new m(t, new l(e, I(e, p, {
|
|
152
152
|
[t]: a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Uf = Object.defineProperty;
|
|
2
2
|
var Cf = (t, e, n) => e in t ? Uf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Jn = (t, e, n) => Cf(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { at as Je, b5 as zf, b6 as St, au as Iu, b7 as kf, b2 as Of, b8 as ss, b9 as kn, aw as Lf, ba as Va, ax as Za, aA as qa, aF as jf, bb as Pf, aL as _f } from "./index-
|
|
5
|
-
import { B as Xo, l as $e, f as mn, E as Ke, m as pr, d as Fn, a as as, e as Ye, r as ar, n as Gn, z as ii, b as Mu, c as un, g as on, I as Bf, h as Es, j as Rf, i as oi, k as Ff, p as Nu, q as gr, y as Jo, u as Ai, s as cr, v as xu, w as Wf, L as cs, x as Qf, A as mo, t as is, C as Kf, D as Su, F as Hf, G as Yf, H as Gf, J as Vf, K as Zf, M as qf } from "./chunk-IMTC3J2M-
|
|
4
|
+
import { at as Je, b5 as zf, b6 as St, au as Iu, b7 as kf, b2 as Of, b8 as ss, b9 as kn, aw as Lf, ba as Va, ax as Za, aA as qa, aF as jf, bb as Pf, aL as _f } from "./index-LdDD7AAy.mjs";
|
|
5
|
+
import { B as Xo, l as $e, f as mn, E as Ke, m as pr, d as Fn, a as as, e as Ye, r as ar, n as Gn, z as ii, b as Mu, c as un, g as on, I as Bf, h as Es, j as Rf, i as oi, k as Ff, p as Nu, q as gr, y as Jo, u as Ai, s as cr, v as xu, w as Wf, L as cs, x as Qf, A as mo, t as is, C as Kf, D as Su, F as Hf, G as Yf, H as Gf, J as Vf, K as Zf, M as qf } from "./chunk-IMTC3J2M-AkEA0_z6.mjs";
|
|
6
6
|
import { g as Xf } from "./wallets-B2tqS5lZ.mjs";
|
|
7
7
|
function Bs(t, e) {
|
|
8
8
|
if (!!!t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty;var p=(i,t,n)=>t in i?f(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n;var l=(i,t,n)=>p(i,typeof t!="symbol"?t+"":t,n);const a=require("./index-
|
|
2
|
-
${JSON.stringify(e,null,2)}`)})),this._rpc.signAndSubmitTransaction({signer:this._account,transaction:t}).then(n=>this._rpc.waitForTransaction({transactionHash:n.hash}))}}const _={Address:a.AptosAddress,Platform:d,getSigner:m,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-
|
|
1
|
+
"use strict";var f=Object.defineProperty;var p=(i,t,n)=>t in i?f(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n;var l=(i,t,n)=>p(i,typeof t!="symbol"?t+"":t,n);const a=require("./index-Bhgci81L.js"),u=require("./chunk-IMTC3J2M-6yduhw0s.js");class g extends a.ChainContext{}const h=class h extends a.PlatformContext{constructor(t,n){super(t,n??a.networkPlatformConfigs(t,h._platform))}getRpc(t){if(t in this.config){const n=this.network==="Mainnet"?u.e.MAINNET:u.e.TESTNET,e=new u.s({fullnode:this.config[t].rpc,network:n});return new u.t(e)}throw new Error("No configuration available for chain: "+t)}getChain(t,n){if(t in this.config)return new g(t,this);throw new Error("No configuration available for chain: "+t)}static nativeTokenId(t,n){if(!this.isSupportedChain(n))throw new Error(`invalid chain: ${n}`);return a.Wormhole.tokenId(n,a.APTOS_COIN)}static isNativeTokenId(t,n,e){return!this.isSupportedChain(n)||e.chain!==n?!1:this.nativeTokenId(t,n)==e}static isSupportedChain(t){return a.chainToPlatform(t)===h._platform}static async getDecimals(t,n,e){if(a.isNative(e)||e===a.APTOS_COIN)return a.nativeDecimals(h._platform);const s=e.toString();return(await n.getFungibleAssetMetadataByAssetType({assetType:s})).decimals}static async getBalance(t,n,e,s){var r;const c=a.isNative(s)?a.APTOS_COIN:s.toString();try{return((r=(await n.getCurrentFungibleAssetBalances({options:{where:{owner_address:{_eq:e},asset_type:{_eq:c}}}}))[0])==null?void 0:r.amount)??null}catch(o){if(o.status===404)return null;throw o}}static async getBalances(t,n,e,s){return(await Promise.all(s.map(async r=>{const o=await this.getBalance(t,n,e,r);return{[a.isNative(r)?"native":new a.AptosAddress(r).toString()]:o}}))).reduce((r,o)=>Object.assign(r,o),{})}static async sendWait(t,n,e){const s=[];for(const c of e){const r=await n.transaction.submit.simple(c.transaction),o=await n.waitForTransaction({transactionHash:r.hash});s.push(o.hash)}return s}static async getLatestBlock(t){const n=await t.getLedgerInfo();return Number(n.block_height)}static async getLatestFinalizedBlock(t){const n=await t.getLedgerInfo();return Number(n.block_height)}static chainFromChainId(t){const n=a.platformNativeChainIdToNetworkChain(h._platform,BigInt(t));if(!n)throw new Error(`No matching chainId to determine network and chain: ${t}`);const[e,s]=n;return[e,s]}static async chainFromRpc(t){const n=await t.getLedgerInfo();return this.chainFromChainId(n.chain_id.toString())}};l(h,"_platform",a._platform$2);let d=h;async function m(i,t){const[n,e]=await d.chainFromRpc(i),s=u.o.fromPrivateKey({privateKey:new u.z(a.hex.decode(t))});return new w(e,s,i)}class w{constructor(t,n,e,s){l(this,"_chain");l(this,"_account");l(this,"_rpc");l(this,"_debug");this._chain=t,this._account=n,this._rpc=e,this._debug=s}chain(){return this._chain}address(){return this._account.accountAddress.toString()}async signAndSend(t){const n=[];for(const e of t){const{description:s,transaction:c}=e;this._debug&&console.log(`Signing: ${s} for ${this.address()}`);const r=await this._rpc.transaction.build.simple({sender:this._account.accountAddress,data:c}),{hash:o}=await this._simSignSend(r);n.push(o)}return n}async _simSignSend(t){return await this._rpc.transaction.simulate.simple({signerPublicKey:this._account.publicKey,transaction:t}).then(n=>n.forEach(e=>{if(!e.success)throw new Error(`Transaction failed: ${e.vm_status}
|
|
2
|
+
${JSON.stringify(e,null,2)}`)})),this._rpc.signAndSubmitTransaction({signer:this._account,transaction:t}).then(n=>this._rpc.waitForTransaction({transactionHash:n.hash}))}}const _={Address:a.AptosAddress,Platform:d,getSigner:m,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-6m6Q8Vsa.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-Ds5QMWJr.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-FoZ3qnSm.js"))},getChain:(i,t,n)=>new g(t,new d(i,a.applyChainsConfigConfigOverrides(i,a._platform$2,{[t]:n})))},y=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"}));exports.AptosPlatform=d;exports.aptos=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-Bhgci81L.js"),x=typeof s.dist.Buffer=="function",c=typeof TextDecoder=="function"?new TextDecoder:void 0,h=typeof TextEncoder=="function"?new TextEncoder:void 0,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(C),u=(t=>{let e={};return t.forEach((o,n)=>e[o]=n),e})(d),m=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,r=String.fromCharCode.bind(String),A=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),g=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),F=t=>{let e,o,n,f,a="";const l=t.length%3;for(let i=0;i<t.length;){if((o=t.charCodeAt(i++))>255||(n=t.charCodeAt(i++))>255||(f=t.charCodeAt(i++))>255)throw new TypeError("invalid character found");e=o<<16|n<<8|f,a+=d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[e&63]}return l?a.slice(0,l-3)+"===".substring(l):a},p=typeof btoa=="function"?t=>btoa(t):x?t=>s.dist.Buffer.from(t,"binary").toString("base64"):F,B=x?t=>s.dist.Buffer.from(t).toString("base64"):t=>{let o=[];for(let n=0,f=t.length;n<f;n+=4096)o.push(r.apply(null,t.subarray(n,n+4096)));return p(o.join(""))},D=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?r(192|e>>>6)+r(128|e&63):r(224|e>>>12&15)+r(128|e>>>6&63)+r(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return r(240|e>>>18&7)+r(128|e>>>12&63)+r(128|e>>>6&63)+r(128|e&63)}},U=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=t=>t.replace(U,D),b=x?t=>s.dist.Buffer.from(t,"utf8").toString("base64"):h?t=>B(h.encode(t)):t=>p(w(t)),E=(t,e=!1)=>e?_(b(t)):b(t),S=t=>E(t,!0),T=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),o=e-65536;return r((o>>>10)+55296)+r((o&1023)+56320);case 3:return r((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return r((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},z=t=>t.replace(T,v),Z=t=>{if(t=t.replace(/\s+/g,""),!m.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,o="",n,f;for(let a=0;a<t.length;)e=u[t.charAt(a++)]<<18|u[t.charAt(a++)]<<12|(n=u[t.charAt(a++)])<<6|(f=u[t.charAt(a++)]),o+=n===64?r(e>>16&255):f===64?r(e>>16&255,e>>8&255):r(e>>16&255,e>>8&255,e&255);return o},y=typeof atob=="function"?t=>atob(g(t)):x?t=>s.dist.Buffer.from(t,"base64").toString("binary"):Z,I=x?t=>A(s.dist.Buffer.from(t,"base64")):t=>A(y(t).split("").map(e=>e.charCodeAt(0))),R=x?t=>s.dist.Buffer.from(t,"base64").toString("utf8"):c?t=>c.decode(I(t)):t=>z(y(t)),P=t=>g(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),j=t=>R(P(t));exports.decode=j;exports.encodeURI=S;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as x } from "./index-
|
|
1
|
+
import { at as x } from "./index-LdDD7AAy.mjs";
|
|
2
2
|
const s = typeof x.Buffer == "function", h = typeof TextDecoder == "function" ? new TextDecoder() : void 0, c = typeof TextEncoder == "function" ? new TextEncoder() : void 0, C = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", d = Array.prototype.slice.call(C), l = ((t) => {
|
|
3
3
|
let e = {};
|
|
4
4
|
return t.forEach((o, n) => e[o] = n), e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./evm-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./evm-DZww7tTt.js");class y extends e.BaseError{constructor({callbackSelector:r,cause:t,data:c,extraData:i,sender:u,urls:a}){var d;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(d=t.metaMessages)!=null&&d.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(f=>` ${e.getUrl(f)}`)],` Sender: ${u}`,` Data: ${c}`,` Callback selector: ${r}`,` Extra data: ${i}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class w extends e.BaseError{constructor({result:r,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e.getUrl(t)}`,`Response: ${e.stringify(r)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class b extends e.BaseError{constructor({sender:r,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${r}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function g(n,r){if(!e.isAddress(n))throw new e.InvalidAddressError({address:n});if(!e.isAddress(r))throw new e.InvalidAddressError({address:r});return n.toLowerCase()===r.toLowerCase()}const k="0x556f1830",p={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function E(n,{blockNumber:r,blockTag:t,data:c,to:i}){const{args:u}=e.decodeErrorResult({data:c,abi:[p]}),[a,d,f,s,o]=u;try{if(!g(i,a))throw new b({sender:a,to:i});const l=await h({data:f,sender:a,urls:d}),{data:m}=await e.call(n,{blockNumber:r,blockTag:t,data:e.concat([s,e.encodeAbiParameters([{type:"bytes"},{type:"bytes"}],[l,o])]),to:i});return m}catch(l){throw new y({callbackSelector:s,cause:l,data:c,extraData:o,sender:a,urls:d})}}async function h({data:n,sender:r,urls:t}){var i;let c=new Error("An unknown error occurred.");for(let u=0;u<t.length;u++){const a=t[u],d=a.includes("{data}")?"GET":"POST",f=d==="POST"?{data:n,sender:r}:void 0;try{const s=await fetch(a.replace("{sender}",r).replace("{data}",n),{body:JSON.stringify(f),method:d});let o;if((i=s.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?o=(await s.json()).data:o=await s.text(),!s.ok){c=new e.HttpRequestError({body:f,details:o!=null&&o.error?e.stringify(o.error):s.statusText,headers:s.headers,status:s.status,url:a});continue}if(!e.isHex(o)){c=new w({result:o,url:a});continue}return o}catch(s){c=new e.HttpRequestError({body:f,details:s.message,url:a})}}throw c}exports.ccipFetch=h;exports.offchainLookup=E;exports.offchainLookupAbiItem=p;exports.offchainLookupSignature=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as l, g as w, a as y, i as p, I as h, d as g, b as k, e as O, f as L, h as m, j as E } from "./evm-
|
|
1
|
+
import { B as l, g as w, a as y, i as p, I as h, d as g, b as k, e as O, f as L, h as m, j as E } from "./evm-DAHEa0cY.mjs";
|
|
2
2
|
class x extends l {
|
|
3
3
|
constructor({ callbackSelector: e, cause: a, data: o, extraData: c, sender: d, urls: r }) {
|
|
4
4
|
var i;
|