@wormhole-foundation/wormhole-connect 2.5.0-beta.14-development → 2.5.0-beta.16-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 (84) hide show
  1. package/dist/main.js +49 -49
  2. package/lib/{aptos-Dtn_v6WZ.mjs → aptos-B_0vi8q5.mjs} +5 -5
  3. package/lib/{aptos-Cgp1-b7T.js → aptos-Bq95ywod.js} +1 -1
  4. package/lib/{aptos-seZijDvE.js → aptos-CZeHb71O.js} +2 -2
  5. package/lib/{aptos-BbSa_mGc.mjs → aptos-DT2vzzvi.mjs} +2 -2
  6. package/lib/{base64-BGTPgDj0.mjs → base64-COK36zSs.mjs} +1 -1
  7. package/lib/{base64-W4IFlYON.js → base64-CZQMgJPg.js} +1 -1
  8. package/lib/{ccip-DnGoqcQp.js → ccip-BMWN6mUe.js} +1 -1
  9. package/lib/{ccip-CU0yHd6-.mjs → ccip-OItyAOfS.mjs} +1 -1
  10. package/lib/{chunk-IMTC3J2M-C-28OTh-.mjs → chunk-IMTC3J2M-BDC_vQUG.mjs} +3 -3
  11. package/lib/{chunk-IMTC3J2M-Dd8fOvqx.js → chunk-IMTC3J2M-CdK66Gd0.js} +1 -1
  12. package/lib/{evm-C-TO5M1a.js → evm-B8do5bRe.js} +2 -2
  13. package/lib/{evm-CpTnIwzd.mjs → evm-BlmFliMr.mjs} +5 -5
  14. package/lib/{evm-7Vwmd0CO.js → evm-CQ-_bicP.js} +3 -3
  15. package/lib/{evm-DP9Tvv6m.mjs → evm-YzP22UIh.mjs} +6 -6
  16. package/lib/{index-DBrsckPz.js → index-9QDfPDAt.js} +1 -1
  17. package/lib/{index-CWb1ZYpF.mjs → index-B1ZLlUX_.mjs} +1 -1
  18. package/lib/{index-DM0tXAvE.js → index-B2rKFKuc.js} +1 -1
  19. package/lib/{index-CBTW7L5i.mjs → index-B8-yYDbb.mjs} +2 -2
  20. package/lib/{index-5LC4b-pO.mjs → index-B9a8iQAY.mjs} +1 -1
  21. package/lib/{index-BjY_z-gw.mjs → index-B9ceWZWn.mjs} +1 -1
  22. package/lib/{index-BmWiEnvR.mjs → index-BBDgOG5m.mjs} +1 -1
  23. package/lib/{index-DfkoMrRF.mjs → index-BOD0JbTK.mjs} +15 -17
  24. package/lib/{index-BuReoxiZ.js → index-BRgpPBei.js} +1 -1
  25. package/lib/{index-BmDEUlVB.mjs → index-BRnbVNBB.mjs} +1 -1
  26. package/lib/{index-BMhNUhvE.mjs → index-BTrEvW5f.mjs} +3 -3
  27. package/lib/{index-C80CNkxN.mjs → index-BW0PVtoo.mjs} +1 -1
  28. package/lib/{index-B2m9lkoE.mjs → index-BrjkSw_2.mjs} +2 -2
  29. package/lib/{index-B5G3cu5E.js → index-BulciDEP.js} +1 -1
  30. package/lib/{index-DCHJDpBK.js → index-C-GPWLns.js} +1 -1
  31. package/lib/{index-BJWC4ikQ.mjs → index-C0a9Lr6a.mjs} +2 -2
  32. package/lib/{index-DRi35KIT.js → index-C52V666L.js} +1 -1
  33. package/lib/{index-DBQPDo_H.js → index-C6lC72hy.js} +1 -1
  34. package/lib/{index-xytknTRG.js → index-C8i0VBfG.js} +1 -1
  35. package/lib/{index-j-EUc8_L.js → index-CIL_hNIg.js} +1 -1
  36. package/lib/{index-LpSc9A59.js → index-CUgFK5ex.js} +1 -1
  37. package/lib/{index-Bhnond7j.js → index-CUnIraeu.js} +1 -1
  38. package/lib/{index-Bm80iphq.js → index-CWv9euDC.js} +1 -1
  39. package/lib/{index-CMp128y8.mjs → index-CY6GX-7w.mjs} +1 -1
  40. package/lib/{index-D297HcpN.js → index-CliZ4E05.js} +1 -1
  41. package/lib/{index-B30Dv7_o.mjs → index-CqYIha8G.mjs} +2 -2
  42. package/lib/{index-BrSHWpbu.js → index-Cs5YQSh6.js} +1 -1
  43. package/lib/{index-e1Hudx6i.mjs → index-CwfZcLrv.mjs} +3 -3
  44. package/lib/{index-BFb3fiHJ.js → index-D1aACi02.js} +1 -1
  45. package/lib/{index-Bn1x9W9n.js → index-D4jfCW8J.js} +1 -1
  46. package/lib/{index-CNNZ1Z5o.js → index-D74R0bwx.js} +1 -1
  47. package/lib/{index-yrmpMvm2.mjs → index-DBNmOAMs.mjs} +2 -2
  48. package/lib/{index-DDgfsXFx.mjs → index-DIql-M62.mjs} +2 -2
  49. package/lib/{index-UZkx28Sb.js → index-DIvEOa-k.js} +1 -1
  50. package/lib/{index-rgBkKP4w.mjs → index-DJILvbYp.mjs} +2 -2
  51. package/lib/{index-B89_j7gM.mjs → index-DLUeHBim.mjs} +4 -4
  52. package/lib/{index-xzWh8y8K.js → index-DMhLZESv.js} +1 -1
  53. package/lib/{index-DFinrOoR.mjs → index-DOyZRNfq.mjs} +2 -2
  54. package/lib/{index-D5jR84eZ.mjs → index-DhHyV5Rf.mjs} +1 -1
  55. package/lib/{index-wf_FMA6Z.js → index-DoE4VQhB.js} +3 -3
  56. package/lib/{index-CNAd-BTw.js → index-Drp6LJGk.js} +1 -1
  57. package/lib/{index-De6ET42i.mjs → index-DtMVR4Z_.mjs} +2 -2
  58. package/lib/{index-LA38s0K5.js → index-OvtkwIrm.js} +1 -1
  59. package/lib/{index-qQxQdhLW.mjs → index-RRzYEpPP.mjs} +1 -1
  60. package/lib/{index--3Gn_sZC.mjs → index-XZFtH_Uh.mjs} +1 -1
  61. package/lib/{index-fRcGiazO.js → index-_UjA-Vft.js} +1 -1
  62. package/lib/{index-DUfyJR-M.js → index-f2frXUPl.js} +1 -1
  63. package/lib/{index-B5OjpwOE.mjs → index-qdz_PIx9.mjs} +1 -1
  64. package/lib/{index.es-Dwv0Q67K.mjs → index.es-D2nwWIpj.mjs} +5 -5
  65. package/lib/{index.es-BGZFlchk.js → index.es-DLocQOXa.js} +2 -2
  66. package/lib/index.js +1 -1
  67. package/lib/index.mjs +1 -1
  68. package/lib/{signer-BSQUEF2G.mjs → signer-DJ1HF-CK.mjs} +1 -1
  69. package/lib/{signer-DDKDkcga.js → signer-DZOcy7cH.js} +1 -1
  70. package/lib/{solana-DVDDbOBK.mjs → solana-CFnSQELF.mjs} +4 -4
  71. package/lib/solana-CrWCptDL.mjs +17 -0
  72. package/lib/{solana-BS4rkPq-.js → solana-Ct8Sn9KJ.js} +1 -1
  73. package/lib/solana-CyM9Bqyp.js +1 -0
  74. package/lib/{solanaEmbed.esm-CkklW1lt.js → solanaEmbed.esm-BD__0VpK.js} +1 -1
  75. package/lib/{solanaEmbed.esm-CDTXNqGJ.mjs → solanaEmbed.esm-CPaTID-O.mjs} +2 -2
  76. package/lib/{sui-DKcqRzDl.js → sui-Bh4bUzgA.js} +1 -1
  77. package/lib/{sui-UHmklem4.js → sui-CbwKq8Oh.js} +1 -1
  78. package/lib/{sui-JY63_B2L.mjs → sui-Da5D6kut.mjs} +1 -1
  79. package/lib/{sui-By3mO9ue.mjs → sui-DnkD0Bxo.mjs} +5 -5
  80. package/lib/{tokens-B9nkKPCf.mjs → tokens-C4Y28hR0.mjs} +2 -2
  81. package/lib/{tokens-VyJgh9tX.js → tokens-CAwPmit8.js} +1 -1
  82. package/package.json +1 -1
  83. package/lib/solana-BPFCYJze.mjs +0 -17
  84. package/lib/solana-DIk3OBjv.js +0 -1
@@ -1,8 +1,8 @@
1
1
  var _ = Object.defineProperty;
2
2
  var w = (e, t, a) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var h = (e, t, a) => w(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { ag as y, ah as C, ai as p, aj as b, ak as S, al as u, h as T, am as d, an as v, ao as A, ap as N, aq as k, aa as I } from "./index-DfkoMrRF.mjs";
5
- import { e as g, s as x, t as B, o as F, z as E } from "./chunk-IMTC3J2M-C-28OTh-.mjs";
4
+ import { ag as y, ah as C, ai as p, aj as b, ak as S, al as u, h as T, am as d, an as v, ao as A, ap as N, aq as k, aa as I } from "./index-BOD0JbTK.mjs";
5
+ import { e as g, s as x, t as B, o as F, z as E } from "./chunk-IMTC3J2M-BDC_vQUG.mjs";
6
6
  class f extends y {
7
7
  }
8
8
  const c = class c extends C {
@@ -160,9 +160,9 @@ const P = {
160
160
  Platform: l,
161
161
  getSigner: $,
162
162
  protocols: {
163
- WormholeCore: () => import("./index-yrmpMvm2.mjs"),
164
- TokenBridge: () => import("./index-DDgfsXFx.mjs"),
165
- CircleBridge: () => import("./index-e1Hudx6i.mjs")
163
+ WormholeCore: () => import("./index-DBNmOAMs.mjs"),
164
+ TokenBridge: () => import("./index-DIql-M62.mjs"),
165
+ CircleBridge: () => import("./index-CwfZcLrv.mjs")
166
166
  },
167
167
  getChain: (e, t, a) => new f(t, new l(e, I(e, p, {
168
168
  [t]: a
@@ -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-wf_FMA6Z.js"),U=require("./chunk-IMTC3J2M-Dd8fOvqx.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}
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-DoE4VQhB.js"),U=require("./chunk-IMTC3J2M-CdK66Gd0.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 p=Object.defineProperty;var _=(i,t,n)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n;var u=(i,t,n)=>_(i,typeof t!="symbol"?t+"":t,n);const s=require("./index-wf_FMA6Z.js"),l=require("./chunk-IMTC3J2M-Dd8fOvqx.js");class g extends s.ChainContext{}const h=class h extends s.PlatformContext{constructor(t,n){super(t,n??s.networkPlatformConfigs(t,h._platform))}getRpc(t){if(t in this.config){const n=this.network==="Mainnet"?l.e.MAINNET:l.e.TESTNET,e=new l.s({fullnode:this.config[t].rpc,network:n});return new l.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 s.Wormhole.tokenId(n,s.APTOS_COIN)}static isNativeTokenId(t,n,e){return!this.isSupportedChain(n)||e.chain!==n?!1:this.nativeTokenId(t,n)==e}static isSupportedChain(t){return s.chainToPlatform(t)===h._platform}static async getDecimals(t,n,e){if(s.isNative(e)||e===s.APTOS_COIN)return s.nativeDecimals(h._platform);const a=e.toString();return(await n.getFungibleAssetMetadataByAssetType({assetType:a})).decimals}static async getBalance(t,n,e,a){var c;const o=s.isNative(a)?s.APTOS_COIN:a.toString();try{return((c=(await n.getCurrentFungibleAssetBalances({options:{where:{owner_address:{_eq:e},asset_type:{_eq:o}}}}))[0])==null?void 0:c.amount)??null}catch(r){if(r.status===404)return null;throw r}}static async getBalances(t,n,e,a){try{const o=await n.getCurrentFungibleAssetBalances({options:{where:{owner_address:{_eq:e}}}});let c={};for(const r of o)if(r.asset_type){let f=r.asset_type==="0x1::aptos_coin::AptosCoin"?"native":r.asset_type;c[f]=r.amount}return c}catch(o){if(o.status===404)return{};throw o}}static async sendWait(t,n,e){const a=[];for(const o of e){const c=await n.transaction.submit.simple(o.transaction),r=await n.waitForTransaction({transactionHash:c.hash});a.push(r.hash)}return a}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=s.platformNativeChainIdToNetworkChain(h._platform,BigInt(t));if(!n)throw new Error(`No matching chainId to determine network and chain: ${t}`);const[e,a]=n;return[e,a]}static async chainFromRpc(t){const n=await t.getLedgerInfo();return this.chainFromChainId(n.chain_id.toString())}};u(h,"_platform",s._platform$2);let d=h;async function m(i,t){const[n,e]=await d.chainFromRpc(i),a=l.o.fromPrivateKey({privateKey:new l.z(s.hex.decode(t))});return new w(e,a,i)}class w{constructor(t,n,e,a){u(this,"_chain");u(this,"_account");u(this,"_rpc");u(this,"_debug");this._chain=t,this._account=n,this._rpc=e,this._debug=a}chain(){return this._chain}address(){return this._account.accountAddress.toString()}async signAndSend(t){const n=[];for(const e of t){const{description:a,transaction:o}=e;this._debug&&console.log(`Signing: ${a} for ${this.address()}`);const c=await this._rpc.transaction.build.simple({sender:this._account.accountAddress,data:o}),{hash:r}=await this._simSignSend(c);n.push(r)}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 y={Address:s.AptosAddress,Platform:d,getSigner:m,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-UZkx28Sb.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-B5G3cu5E.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-Bn1x9W9n.js"))},getChain:(i,t,n)=>new g(t,new d(i,s.applyChainsConfigConfigOverrides(i,s._platform$2,{[t]:n})))},C=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"}));exports.AptosPlatform=d;exports.aptos=C;
1
+ "use strict";var p=Object.defineProperty;var _=(i,t,n)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n;var u=(i,t,n)=>_(i,typeof t!="symbol"?t+"":t,n);const s=require("./index-DoE4VQhB.js"),l=require("./chunk-IMTC3J2M-CdK66Gd0.js");class g extends s.ChainContext{}const h=class h extends s.PlatformContext{constructor(t,n){super(t,n??s.networkPlatformConfigs(t,h._platform))}getRpc(t){if(t in this.config){const n=this.network==="Mainnet"?l.e.MAINNET:l.e.TESTNET,e=new l.s({fullnode:this.config[t].rpc,network:n});return new l.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 s.Wormhole.tokenId(n,s.APTOS_COIN)}static isNativeTokenId(t,n,e){return!this.isSupportedChain(n)||e.chain!==n?!1:this.nativeTokenId(t,n)==e}static isSupportedChain(t){return s.chainToPlatform(t)===h._platform}static async getDecimals(t,n,e){if(s.isNative(e)||e===s.APTOS_COIN)return s.nativeDecimals(h._platform);const a=e.toString();return(await n.getFungibleAssetMetadataByAssetType({assetType:a})).decimals}static async getBalance(t,n,e,a){var c;const o=s.isNative(a)?s.APTOS_COIN:a.toString();try{return((c=(await n.getCurrentFungibleAssetBalances({options:{where:{owner_address:{_eq:e},asset_type:{_eq:o}}}}))[0])==null?void 0:c.amount)??null}catch(r){if(r.status===404)return null;throw r}}static async getBalances(t,n,e,a){try{const o=await n.getCurrentFungibleAssetBalances({options:{where:{owner_address:{_eq:e}}}});let c={};for(const r of o)if(r.asset_type){let f=r.asset_type==="0x1::aptos_coin::AptosCoin"?"native":r.asset_type;c[f]=r.amount}return c}catch(o){if(o.status===404)return{};throw o}}static async sendWait(t,n,e){const a=[];for(const o of e){const c=await n.transaction.submit.simple(o.transaction),r=await n.waitForTransaction({transactionHash:c.hash});a.push(r.hash)}return a}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=s.platformNativeChainIdToNetworkChain(h._platform,BigInt(t));if(!n)throw new Error(`No matching chainId to determine network and chain: ${t}`);const[e,a]=n;return[e,a]}static async chainFromRpc(t){const n=await t.getLedgerInfo();return this.chainFromChainId(n.chain_id.toString())}};u(h,"_platform",s._platform$2);let d=h;async function m(i,t){const[n,e]=await d.chainFromRpc(i),a=l.o.fromPrivateKey({privateKey:new l.z(s.hex.decode(t))});return new w(e,a,i)}class w{constructor(t,n,e,a){u(this,"_chain");u(this,"_account");u(this,"_rpc");u(this,"_debug");this._chain=t,this._account=n,this._rpc=e,this._debug=a}chain(){return this._chain}address(){return this._account.accountAddress.toString()}async signAndSend(t){const n=[];for(const e of t){const{description:a,transaction:o}=e;this._debug&&console.log(`Signing: ${a} for ${this.address()}`);const c=await this._rpc.transaction.build.simple({sender:this._account.accountAddress,data:o}),{hash:r}=await this._simSignSend(c);n.push(r)}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 y={Address:s.AptosAddress,Platform:d,getSigner:m,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-DIvEOa-k.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-BulciDEP.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-D4jfCW8J.js"))},getChain:(i,t,n)=>new g(t,new d(i,s.applyChainsConfigConfigOverrides(i,s._platform$2,{[t]:n})))},C=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"}));exports.AptosPlatform=d;exports.aptos=C;
@@ -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 { d as Je, bd as zf, be as St, aI as Iu, bf as kf, c as Of, bg as ss, b as kn, aK as Lf, bh as Va, aL as Za, aO as qa, aS as jf, f as Pf, aY as _f } from "./index-DfkoMrRF.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-C-28OTh-.mjs";
4
+ import { d as Je, bd as zf, be as St, aI as Iu, bf as kf, c as Of, bg as ss, b as kn, aK as Lf, bh as Va, aL as Za, aO as qa, aS as jf, f as Pf, aY as _f } from "./index-BOD0JbTK.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-BDC_vQUG.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
- import { d as x } from "./index-DfkoMrRF.mjs";
1
+ import { d as x } from "./index-BOD0JbTK.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";const s=require("./index-wf_FMA6Z.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
+ "use strict";const s=require("./index-DoE4VQhB.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./evm-7Vwmd0CO.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./evm-CQ-_bicP.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-CpTnIwzd.mjs";
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-BlmFliMr.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,6 +1,6 @@
1
- import { av as A0, bi as P3, d as R3, bg as t2, aA as f3, aB as p3, bj as C8, bk as U8, bl as j2, bm as q3, bn as b8, bo as V2, bp as n2, bq as W, br as B8, bs as k8, bt as Y4, e as _2, bu as K8, bv as j3, bd as Q4 } from "./index-DfkoMrRF.mjs";
2
- import { m as D8 } from "./index-D5jR84eZ.mjs";
3
- import { d as L8 } from "./base64-BGTPgDj0.mjs";
1
+ import { av as A0, bi as P3, d as R3, bg as t2, aA as f3, aB as p3, bj as C8, bk as U8, bl as j2, bm as q3, bn as b8, bo as V2, bp as n2, bq as W, br as B8, bs as k8, bt as Y4, e as _2, bu as K8, bv as j3, bd as Q4 } from "./index-BOD0JbTK.mjs";
2
+ import { m as D8 } from "./index-DhHyV5Rf.mjs";
3
+ import { d as L8 } from "./base64-COK36zSs.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;