@wormhole-foundation/wormhole-connect 2.4.0-beta.2-development → 2.4.0-beta.4-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/main.js +107 -107
- package/dist/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{aptos-BPPKNPmY.mjs → aptos-CkWuq_27.mjs} +2 -2
- package/lib/{aptos-DnLzj1Pw.js → aptos-DU1D2bsY.js} +1 -1
- package/lib/{aptos-BFg97d8i.js → aptos-TTV2w234.js} +2 -2
- package/lib/{aptos-UMYBfX-e.mjs → aptos-qwmh1AJp.mjs} +5 -5
- package/lib/{base64-dhNbNdy2.js → base64-CkebPGW0.js} +1 -1
- package/lib/{base64-BxOseFtQ.mjs → base64-r6lIUfD-.mjs} +1 -1
- package/lib/{ccip-Cc7zIRbR.mjs → ccip-D869mIiq.mjs} +1 -1
- package/lib/{ccip-DnuA-mnD.js → ccip-DdUs_h_I.js} +1 -1
- package/lib/{chunk-IMTC3J2M-C3XVaTOx.mjs → chunk-IMTC3J2M-CSrenBj8.mjs} +3 -3
- package/lib/{chunk-IMTC3J2M-DmAiw2IO.js → chunk-IMTC3J2M-rihZh7hM.js} +1 -1
- package/lib/{evm-BPMdXFY7.mjs → evm-BCvj1OtP.mjs} +6 -6
- package/lib/{evm-jazxlq_v.js → evm-Bj5TkyBv.js} +3 -3
- package/lib/{evm-2u0XA9Kv.mjs → evm-BtEIk2Ro.mjs} +5 -5
- package/lib/{evm-DBg_gIux.js → evm-Df4WZQgF.js} +1 -1
- package/lib/{index-BudY-hBZ.js → index-20yIH7p6.js} +1 -1
- package/lib/{index-DxHy5H3l.mjs → index-B3Lgw0sO.mjs} +1 -1
- package/lib/{index-BH5x8knT.mjs → index-BL_uPuTy.mjs} +1 -1
- package/lib/{index-CvO9BKU8.js → index-BOtebTDA.js} +1 -1
- package/lib/{index-D6PJJHPq.mjs → index-BXHY_Wc_.mjs} +2 -2
- package/lib/{index-CSWNAyvZ.mjs → index-BfQHVxEi.mjs} +2 -2
- package/lib/{index-DqPgH3Y4.js → index-BnQbapb-.js} +1 -1
- package/lib/{index-_Tjd635F.js → index-BnvAiffX.js} +1 -1
- package/lib/{index-B71D5i2u.js → index-C-9QGhXS.js} +1 -1
- package/lib/{index-gsKAo8iZ.js → index-C0UDZaND.js} +1 -1
- package/lib/{index-INXKBIVC.mjs → index-C2w2yYzm.mjs} +3 -3
- package/lib/{index-cibSzunr.mjs → index-C54QUs8N.mjs} +2 -2
- package/lib/{index-BZO8YmLX.js → index-C6Oecme5.js} +1 -1
- package/lib/{index-CLSG0-PT.mjs → index-CBM9cmhA.mjs} +2 -2
- package/lib/{index-DbgMQX1m.mjs → index-CCJUXjWs.mjs} +1 -1
- package/lib/{index-Dw6DmujE.mjs → index-CIWjtrm4.mjs} +1 -1
- package/lib/{index-CwnW1iXz.js → index-CZi3G6c5.js} +1 -1
- package/lib/{index-DYo59dOt.mjs → index-Cf6wneHs.mjs} +2 -2
- package/lib/{index-DSVsrZrI.js → index-ChLwWlxD.js} +1 -1
- package/lib/{index-3LktUEbt.js → index-Cn5RoB2l.js} +1 -1
- package/lib/{index-DS1ZxkfX.js → index-CskmLcFl.js} +1 -1
- package/lib/{index-DpL4G1gV.js → index-Cv_SfKSZ.js} +1 -1
- package/lib/{index-B9gGuUKR.js → index-CxOOdI6c.js} +1 -1
- package/lib/{index-C7SwBJ74.mjs → index-CxnykIim.mjs} +1 -1
- package/lib/{index-B6Sz2PUf.mjs → index-D5jQOGNt.mjs} +2 -2
- package/lib/{index-geFlOFCr.js → index-D8mnxtTR.js} +1 -1
- package/lib/{index-C_8uENxB.js → index-DG9DA23c.js} +1 -1
- package/lib/{index-DCXyETk0.mjs → index-DIdfi9U5.mjs} +1 -1
- package/lib/{index-BEqeue2k.js → index-DNGByy1S.js} +1 -1
- package/lib/{index-DrYmbAqE.mjs → index-DOLtniOC.mjs} +2 -2
- package/lib/{index-BbuYs0Vv.mjs → index-DS1lD1iG.mjs} +2 -2
- package/lib/{index-C0mg2EaP.js → index-DU1he9Nx.js} +120 -120
- package/lib/{index-DBF3Orza.mjs → index-Dfo3bBnl.mjs} +2 -2
- package/lib/{index-CrDmkPiL.mjs → index-Dgohn547.mjs} +3 -3
- package/lib/{index-CVVdam36.mjs → index-DjHz-TGq.mjs} +1 -1
- package/lib/{index-Ce7gKFw8.js → index-DnIR5ghZ.js} +1 -1
- package/lib/{index-CLqF0DXs.mjs → index-DqfeHeDN.mjs} +1 -1
- package/lib/{index-BZijFWem.js → index-JY_vmjxX.js} +1 -1
- package/lib/{index-BH-QrHNF.mjs → index-LaHWWgzV.mjs} +1 -1
- package/lib/{index-ndWybTXw.mjs → index-ObRYlj1l.mjs} +10178 -9472
- package/lib/{index-C2ecpt8K.mjs → index-ZuBMF5ZM.mjs} +4 -4
- package/lib/{index-BhZP5awL.js → index-l0_fPapQ.js} +1 -1
- package/lib/{index-Cleh-XCA.mjs → index-tsZGjIYB.mjs} +1 -1
- package/lib/{index-CyPQH2yv.js → index-v9fEg88t.js} +1 -1
- package/lib/{index-CiFOveV0.js → index-vPc_VIRu.js} +1 -1
- package/lib/{index-C7jR2tws.js → index-yU0Hsqz_.js} +1 -1
- package/lib/{index.es-D-KoMtU-.js → index.es-Bqw6r4nv.js} +2 -2
- package/lib/{index.es-DaqXRV0H.mjs → index.es-DFa1opYl.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-Cr8jlyL3.js → signer-DEoUkKh3.js} +1 -1
- package/lib/{signer-CGCrqc_x.mjs → signer-_KpSCeJr.mjs} +1 -1
- package/lib/{solana-YmPJnJBl.mjs → solana-CeI-x62u.mjs} +4 -4
- package/lib/solana-CzIZTTUh.js +1 -0
- package/lib/{solana-BkE0Vobm.js → solana-Dbf-kAb8.js} +1 -1
- package/lib/solana-UZrOCesE.mjs +17 -0
- package/lib/{solanaEmbed.esm-LQoue5a0.js → solanaEmbed.esm-CM69eDrj.js} +1 -1
- package/lib/{solanaEmbed.esm-QawbC8eJ.mjs → solanaEmbed.esm-rMe_voKF.mjs} +1 -1
- package/lib/src/views/v2/Redeem/index.d.ts.map +1 -1
- package/lib/{sui-CIDA-hM_.js → sui-1KKOjsyu.js} +1 -1
- package/lib/{sui-DZg5qrE0.js → sui-BRucFXyI.js} +1 -1
- package/lib/{sui-BwFJqgyM.mjs → sui-CtQtzdVy.mjs} +1 -1
- package/lib/{sui-C88m3bWr.mjs → sui-DMYKKmcs.mjs} +5 -5
- package/package.json +21 -21
- package/lib/solana-Bq3a7vGW.mjs +0 -17
- package/lib/solana-Bw-7Gaje.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/v2/Redeem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/v2/Redeem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAiIf,QAAA,MAAM,MAAM,yBAqyBX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -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 { O as Je, av as zf, aw as St, Q as Iu, ax as kf, as as Of, ay as ss, az as kn, T as Lf, aA as Va, U as Za, Z as qa, a3 as jf, aB as Pf, a7 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 { O as Je, av as zf, aw as St, Q as Iu, ax as kf, as as Of, ay as ss, az as kn, T as Lf, aA as Va, U as Za, Z as qa, a3 as jf, aB as Pf, a7 as _f } from "./index-ObRYlj1l.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-CSrenBj8.mjs";
|
|
6
6
|
import { g as Xf } from "./wallets-B2tqS5lZ.mjs";
|
|
7
7
|
function Bs(t, e) {
|
|
8
8
|
if (!!!t)
|
|
@@ -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-DU1he9Nx.js"),U=require("./chunk-IMTC3J2M-rihZh7hM.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,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-DU1he9Nx.js"),u=require("./chunk-IMTC3J2M-rihZh7hM.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-JY_vmjxX.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-l0_fPapQ.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-D8mnxtTR.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,8 +1,8 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var _ = (i, t, n) => t in i ? w(i, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[t] = n;
|
|
3
3
|
var h = (i, t, n) => _(i, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { C as y, h as b, i as p, n as C, j as S, k as u, l as T, m as d, o as v, p as f, q as A, r as N, c as I } from "./index-
|
|
5
|
-
import { e as g, s as B, t as k, o as x, z as E } from "./chunk-IMTC3J2M-
|
|
4
|
+
import { C as y, h as b, i as p, n as C, j as S, k as u, l as T, m as d, o as v, p as f, q as A, r as N, c as I } from "./index-ObRYlj1l.mjs";
|
|
5
|
+
import { e as g, s as B, t as k, o as x, z as E } from "./chunk-IMTC3J2M-CSrenBj8.mjs";
|
|
6
6
|
class m extends y {
|
|
7
7
|
}
|
|
8
8
|
const c = class c extends b {
|
|
@@ -144,9 +144,9 @@ const P = {
|
|
|
144
144
|
Platform: l,
|
|
145
145
|
getSigner: F,
|
|
146
146
|
protocols: {
|
|
147
|
-
WormholeCore: () => import("./index-
|
|
148
|
-
TokenBridge: () => import("./index-
|
|
149
|
-
CircleBridge: () => import("./index-
|
|
147
|
+
WormholeCore: () => import("./index-Dfo3bBnl.mjs"),
|
|
148
|
+
TokenBridge: () => import("./index-Cf6wneHs.mjs"),
|
|
149
|
+
CircleBridge: () => import("./index-Dgohn547.mjs")
|
|
150
150
|
},
|
|
151
151
|
getChain: (i, t, n) => new m(t, new l(i, I(i, p, {
|
|
152
152
|
[t]: n
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-DU1he9Nx.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 { O as x } from "./index-
|
|
1
|
+
import { O as x } from "./index-ObRYlj1l.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,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-BtEIk2Ro.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;
|
|
@@ -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-Bj5TkyBv.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,6 +1,6 @@
|
|
|
1
|
-
import { w as A0, aC as P3, O as R3, ay as t2, D as f3, F as p3, aD as C8, aE as U8, aF as j2, aG as q3, aH as b8, aI as V2, aJ as n2, aK as W, aL as B8, aM as k8, aN as Y4, H as _2, aO as K8, aP as j3, av as Q4 } from "./index-
|
|
2
|
-
import { m as D8 } from "./index-
|
|
3
|
-
import { d as L8 } from "./base64-
|
|
1
|
+
import { w as A0, aC as P3, O as R3, ay as t2, D as f3, F as p3, aD as C8, aE as U8, aF as j2, aG as q3, aH as b8, aI as V2, aJ as n2, aK as W, aL as B8, aM as k8, aN as Y4, H as _2, aO as K8, aP as j3, av as Q4 } from "./index-ObRYlj1l.mjs";
|
|
2
|
+
import { m as D8 } from "./index-DIdfi9U5.mjs";
|
|
3
|
+
import { d as L8 } from "./base64-r6lIUfD-.mjs";
|
|
4
4
|
var Q = {}, V3 = {};
|
|
5
5
|
const z4 = BigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617"), F8 = 8, e4 = [56, 57, 56, 60, 60, 63, 64, 63, 60, 66, 60, 65, 70, 60, 64, 68], t4 = (t) => {
|
|
6
6
|
let e = t * t;
|