@wormhole-foundation/wormhole-connect 2.3.0-beta.0-development → 2.3.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/dist/main.js +4 -4
- package/dist/src/hooks/useWalletCompatibility.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/telemetry/index.d.ts +1 -0
- package/dist/src/telemetry/index.d.ts.map +1 -1
- package/lib/{aptos-C8wWowIo.js → aptos-CVrk2e8x.js} +2 -2
- package/lib/{aptos-D7c67ZLW.mjs → aptos-Cd2RxmTX.mjs} +5 -5
- package/lib/{aptos-DdE-0VJe.js → aptos-D9RWCwaG.js} +1 -1
- package/lib/{aptos-DDn36CHg.mjs → aptos-DqQeHeWd.mjs} +2 -2
- package/lib/{base64-ezgPiVRC.js → base64-D7N0XEtt.js} +1 -1
- package/lib/{base64-DDHFdAly.mjs → base64-DOdqKfyo.mjs} +1 -1
- package/lib/{ccip-cCuo9AgF.mjs → ccip-B1d8Cfcc.mjs} +1 -1
- package/lib/{ccip-CcmdyG6F.js → ccip-C4FhwB7R.js} +1 -1
- package/lib/{chunk-IMTC3J2M-CVDcZzUA.mjs → chunk-IMTC3J2M-B2ra0Z4c.mjs} +3 -3
- package/lib/{chunk-IMTC3J2M-DxYYEZPQ.js → chunk-IMTC3J2M-DtuxbHq9.js} +1 -1
- package/lib/{events-BJ__ydp1.js → events-BC1Svub2.js} +1 -1
- package/lib/{events-Cx0TtMEs.mjs → events-BrouOFcp.mjs} +1 -1
- package/lib/{evm-C1P39f42.js → evm-BXku4GNW.js} +3 -3
- package/lib/{evm-DnyX6-E0.mjs → evm-Ccy4JfF6.mjs} +17 -17
- package/lib/{evm-B2N6Szko.mjs → evm-CfS9xq5t.mjs} +5 -5
- package/lib/{evm-0ozMa6lt.js → evm-DT_W87u-.js} +1 -1
- package/lib/{index-BAH37FLm.mjs → index--0DQj_F2.mjs} +2 -2
- package/lib/{index-mCqIYfBy.js → index-1EgmRX-a.js} +1 -1
- package/lib/{index-Bu-ZkvDv.mjs → index-1LP1mA3c.mjs} +1 -1
- package/lib/{index-uXXxfGyN.mjs → index-B4hbI0dp.mjs} +2 -2
- package/lib/{index-DcIAHxwS.js → index-B58a-RHd.js} +1 -1
- package/lib/{index-Bj6DHbUk.mjs → index-BCjWPjhx.mjs} +2 -2
- package/lib/{index-ZFWFaT_g.js → index-BFFNnNKW.js} +1 -1
- package/lib/{index-BxXt3T2L.mjs → index-BODYDhXF.mjs} +2 -2
- package/lib/{index-B2v3lWOA.mjs → index-BcJBEeFA.mjs} +1 -1
- package/lib/{index-PlcYoJ_e.mjs → index-BdodDbVS.mjs} +1 -1
- package/lib/{index-DRcPh_kU.mjs → index-Bdopcy73.mjs} +4 -4
- package/lib/{index-DPCJduN1.js → index-Br4Igv20.js} +1 -1
- package/lib/{index-DvpfNUKf.mjs → index-BuGFh8C7.mjs} +2 -2
- package/lib/{index-D4vjV5Cn.js → index-C-nWxaLg.js} +1 -1
- package/lib/{index-CUb31_lx.mjs → index-C0IvEwkt.mjs} +1 -1
- package/lib/{index-vipvKyDe.js → index-CCWEM47k.js} +1 -1
- package/lib/{index-LbLfiRUY.js → index-CSKbEqQP.js} +1 -1
- package/lib/{index-DiGgidBd.mjs → index-CU9KzHgH.mjs} +35 -24
- package/lib/{index-C7o_1w2b.js → index-CUm6qdjR.js} +1 -1
- package/lib/{index-DTPmVH0m.js → index-Camctzsh.js} +1 -1
- package/lib/{index-C8klYEIV.js → index-CdB9Qj-M.js} +1 -1
- package/lib/{index-BD2_PLZI.js → index-CgISt_Up.js} +1 -1
- package/lib/{index-BxP3fEtC.mjs → index-Cmmxyf4Y.mjs} +2 -2
- package/lib/{index-CeGgtsu2.mjs → index-CnkeKt9s.mjs} +3 -3
- package/lib/{index-BzcZiOc0.mjs → index-CpQ7f1YB.mjs} +1 -1
- package/lib/{index-CyQ9IEH0.js → index-D3Mg9Eh4.js} +1 -1
- package/lib/{index-CkwnTFud.js → index-D5qBrm4q.js} +1 -1
- package/lib/{index-JqJdK8nh.js → index-DB5xCELT.js} +1 -1
- package/lib/{index-D5xbHPoy.js → index-DSTC1VGB.js} +1 -1
- package/lib/{index-DziLpE9R.mjs → index-DX-wGKTH.mjs} +2 -2
- package/lib/{index-C6dpONOU.js → index-DihlIPlD.js} +1 -1
- package/lib/{index-DPf2pllz.mjs → index-Dk29guyA.mjs} +3 -3
- package/lib/{index-BCYsl46V.js → index-DqO3qLPG.js} +1 -1
- package/lib/{index-DzM-GaLm.js → index-Dsd09IV6.js} +1 -1
- package/lib/{index-Be1t7NdK.mjs → index-DxslawxO.mjs} +2 -2
- package/lib/{index-wzIjatvw.js → index-DyqHtpmj.js} +1 -1
- package/lib/{index-DP4LajXh.js → index-RFgTGgbk.js} +5 -5
- package/lib/{index-DH7AJ70P.mjs → index-Y5ArJjKr.mjs} +1 -1
- package/lib/{index-BuYa5pxo.mjs → index-s53oBunM.mjs} +2 -2
- package/lib/{index-Cfoq6joM.mjs → index-s7S0StCX.mjs} +1 -1
- package/lib/{index-CFMLZ1vA.mjs → index-vEkD7kom.mjs} +5 -5
- package/lib/{index-DLxALGi6.js → index-xeYB5lOA.js} +1 -1
- package/lib/{index.es-CGjw8LBi.mjs → index.es-DD7lO_GM.mjs} +6 -6
- package/lib/{index.es-D45qOiuD.js → index.es-PJjmKf_k.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +32 -19
- package/lib/{signer-DteZwBbB.js → signer-Bs70WVKc.js} +1 -1
- package/lib/{signer-StZFWU4E.mjs → signer-dwfhV60M.mjs} +1 -1
- package/lib/solana-B1Wsl1Pg.js +1 -0
- package/lib/solana-BDUnTuLS.mjs +16 -0
- package/lib/{solana-IP1dZh2r.mjs → solana-D8IW8eXX.mjs} +4 -4
- package/lib/{solana-643BgaAW.js → solana-DK3yyz37.js} +1 -1
- package/lib/{solanaEmbed.esm-Cp1hmjAh.js → solanaEmbed.esm-DjNz5swk.js} +1 -1
- package/lib/{solanaEmbed.esm-nYODBqHJ.mjs → solanaEmbed.esm-DlyRzA6N.mjs} +2 -2
- package/lib/src/hooks/useWalletCompatibility.d.ts.map +1 -1
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/telemetry/index.d.ts +1 -0
- package/lib/src/telemetry/index.d.ts.map +1 -1
- package/lib/{sui-DbQenqxx.mjs → sui-BN9_xkve.mjs} +1 -1
- package/lib/{sui-BV_WN62T.js → sui-BRZ30Let.js} +1 -1
- package/lib/{sui-DdU63C8s.js → sui-BSr1lx4J.js} +2 -2
- package/lib/{sui-OujMcwQK.mjs → sui-CIYeuWco.mjs} +5 -5
- package/package.json +1 -1
- package/lib/solana-BuuMVrdp.js +0 -1
- package/lib/solana-oxjhG-3b.mjs +0 -16
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
2
|
var S = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var l = (e, t, s) =>
|
|
7
|
-
var h = (e, t, s) => (
|
|
8
|
-
var
|
|
5
|
+
var B = (e, t, s) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
|
+
var l = (e, t, s) => B(e, typeof t != "symbol" ? t + "" : t, s), E = (e, t, s) => t.has(e) || S("Cannot " + s);
|
|
7
|
+
var h = (e, t, s) => (E(e, t, "read from private field"), s ? s.call(e) : t.get(e)), u = (e, t, s) => t.has(e) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), o = (e, t, s, i) => (E(e, t, "write to private field"), i ? i.call(e, s) : t.set(e, s), s);
|
|
8
|
+
var F = (e, t, s, i) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
o(e, t, r, s);
|
|
11
11
|
},
|
|
@@ -13,9 +13,9 @@ var E = (e, t, s, i) => ({
|
|
|
13
13
|
return h(e, t, i);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { A as
|
|
16
|
+
import { A as O, d as W, W as $, E as f, P as M, a as R, b as j, c as q, _ as z } from "./index-CU9KzHgH.mjs";
|
|
17
17
|
var a, c;
|
|
18
|
-
const w = class w extends
|
|
18
|
+
const w = class w extends O {
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new **NonceManager** to manage %%signer%%.
|
|
21
21
|
*/
|
|
@@ -27,7 +27,7 @@ const w = class w extends W {
|
|
|
27
27
|
l(this, "signer");
|
|
28
28
|
u(this, a);
|
|
29
29
|
u(this, c);
|
|
30
|
-
|
|
30
|
+
W(this, { signer: s }), o(this, a, null), o(this, c, 0);
|
|
31
31
|
}
|
|
32
32
|
async getAddress() {
|
|
33
33
|
return this.signer.getAddress();
|
|
@@ -48,7 +48,7 @@ const w = class w extends W {
|
|
|
48
48
|
* offline transactions.
|
|
49
49
|
*/
|
|
50
50
|
increment() {
|
|
51
|
-
|
|
51
|
+
F(this, c)._++;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Resets the nonce, causing the **NonceManager** to reload the current
|
|
@@ -104,13 +104,13 @@ class I extends M {
|
|
|
104
104
|
g = d.gasPrice ?? g, m = d.maxFeePerGas ?? m, p = d.maxPriorityFeePerGas ?? p;
|
|
105
105
|
}
|
|
106
106
|
((y = this.opts) == null ? void 0 : y.gasLimit) !== void 0 && (n = this.opts.gasLimit), ((C = this.opts) == null ? void 0 : C.maxGasLimit) !== void 0 && (n = n > ((x = this.opts) == null ? void 0 : x.maxGasLimit) ? (T = this.opts) == null ? void 0 : T.maxGasLimit : n);
|
|
107
|
-
const
|
|
107
|
+
const L = i === "Oasis" ? { gasLimit: n, gasPrice: g, type: 0 } : { gasLimit: n, maxFeePerGas: m, maxPriorityFeePerGas: p };
|
|
108
108
|
for (const d of s) {
|
|
109
|
-
const { transaction:
|
|
110
|
-
(A = this.opts) != null && A.debug && console.log(`Signing: ${
|
|
109
|
+
const { transaction: N, description: _ } = d;
|
|
110
|
+
(A = this.opts) != null && A.debug && console.log(`Signing: ${_} for ${this.address()}`);
|
|
111
111
|
const D = {
|
|
112
|
+
...N,
|
|
112
113
|
...L,
|
|
113
|
-
...F,
|
|
114
114
|
from: this.address(),
|
|
115
115
|
nonce: await this._signer.getNonce(),
|
|
116
116
|
// Override any existing values with those passed in the constructor
|
|
@@ -126,10 +126,10 @@ const Q = {
|
|
|
126
126
|
Platform: f,
|
|
127
127
|
getSigner: H,
|
|
128
128
|
protocols: {
|
|
129
|
-
WormholeCore: () => import("./index-
|
|
130
|
-
TokenBridge: () => import("./index-
|
|
131
|
-
PorticoBridge: () => import("./index-
|
|
132
|
-
CircleBridge: () => import("./index-
|
|
129
|
+
WormholeCore: () => import("./index-CU9KzHgH.mjs").then((e) => e.db),
|
|
130
|
+
TokenBridge: () => import("./index-CpQ7f1YB.mjs"),
|
|
131
|
+
PorticoBridge: () => import("./index-BuGFh8C7.mjs"),
|
|
132
|
+
CircleBridge: () => import("./index-B4hbI0dp.mjs")
|
|
133
133
|
},
|
|
134
134
|
getChain: (e, t, s) => new R(t, new f(e, q(e, z, {
|
|
135
135
|
[t]: s
|
|
@@ -3,8 +3,8 @@ var wa = (e) => {
|
|
|
3
3
|
};
|
|
4
4
|
var Aa = (e, t, n) => t.has(e) || wa("Cannot " + n);
|
|
5
5
|
var Tr = (e, t, n) => (Aa(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ia = (e, t, n) => t.has(e) ? wa("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Na = (e, t, n, r) => (Aa(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
6
|
-
import { T as Xo, U as Ea, V as Wr, X as qo, Y as $o, Z as ec, $ as xa, a0 as tc, a1 as $e, a2 as nc, a3 as Kn, a4 as rc, a5 as sc, a6 as ac, a7 as ic, a8 as oc, a9 as cc, aa as lc, ab as uc, ac as tn, ad as hc } from "./index-
|
|
7
|
-
import "./index-
|
|
6
|
+
import { T as Xo, U as Ea, V as Wr, X as qo, Y as $o, Z as ec, $ as xa, a0 as tc, a1 as $e, a2 as nc, a3 as Kn, a4 as rc, a5 as sc, a6 as ac, a7 as ic, a8 as oc, a9 as cc, aa as lc, ab as uc, ac as tn, ad as hc } from "./index-CU9KzHgH.mjs";
|
|
7
|
+
import "./index-Y5ArJjKr.mjs";
|
|
8
8
|
import "react";
|
|
9
9
|
var kt;
|
|
10
10
|
class dc extends Xo {
|
|
@@ -4316,7 +4316,7 @@ async function gr(e, t) {
|
|
|
4316
4316
|
});
|
|
4317
4317
|
return C === "0x" ? { data: void 0 } : { data: C };
|
|
4318
4318
|
} catch (N) {
|
|
4319
|
-
const I = Hu(N), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-
|
|
4319
|
+
const I = Hu(N), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-B1d8Cfcc.mjs");
|
|
4320
4320
|
if ((I == null ? void 0 : I.slice(0, 10)) === b && f)
|
|
4321
4321
|
return { data: await l(e, { data: I, to: f }) };
|
|
4322
4322
|
throw Yu(N, {
|
|
@@ -13979,7 +13979,7 @@ var xd = Object.defineProperty, Dd = function(e, t, n) {
|
|
|
13979
13979
|
case 0:
|
|
13980
13980
|
return !Jt(i, Vt) || a || o ? (h = !((c = i.options) === null || c === void 0) && c.infuraId ? {} : i.chains.reduce(function(f, m) {
|
|
13981
13981
|
return ti(Yn({}, f), vo({}, m.id, m.rpcUrls.default.http[0]));
|
|
13982
|
-
}, {}), [4, import("./index-
|
|
13982
|
+
}, {}), [4, import("./index-Bdopcy73.mjs")]) : [3, 2];
|
|
13983
13983
|
case 1:
|
|
13984
13984
|
d = p.sent().default, Yr(i, Vt, new d(ti(Yn({}, i.options), { chainId: a, rpc: Yn({}, h, (u = i.options) === null || u === void 0 ? void 0 : u.rpc) }))), p.label = 2;
|
|
13985
13985
|
case 2:
|
|
@@ -15579,7 +15579,7 @@ Es = async function() {
|
|
|
15579
15579
|
};
|
|
15580
15580
|
fa = /* @__PURE__ */ new WeakSet();
|
|
15581
15581
|
Vo = async function() {
|
|
15582
|
-
const { EthereumProvider: e } = await import("./index.es-
|
|
15582
|
+
const { EthereumProvider: e } = await import("./index.es-DD7lO_GM.mjs"), t = this.chains.map(({ id: n }) => n);
|
|
15583
15583
|
if (t.length) {
|
|
15584
15584
|
const {
|
|
15585
15585
|
projectId: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty;var G=s=>{throw TypeError(s)};var O=(s,t,e)=>t in s?D(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var f=(s,t,e)=>O(s,typeof t!="symbol"?t+"":t,e),A=(s,t,e)=>t.has(s)||G("Cannot "+e);var l=(s,t,e)=>(A(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(s,t,e)=>t.has(s)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),c=(s,t,e,i)=>(A(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var F=(s,t,e,i)=>({set _(a){c(s,t,a,e)},get _(){return l(s,t,i)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";var D=Object.defineProperty;var G=s=>{throw TypeError(s)};var O=(s,t,e)=>t in s?D(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var f=(s,t,e)=>O(s,typeof t!="symbol"?t+"":t,e),A=(s,t,e)=>t.has(s)||G("Cannot "+e);var l=(s,t,e)=>(A(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(s,t,e)=>t.has(s)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),c=(s,t,e,i)=>(A(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var F=(s,t,e,i)=>({set _(a){c(s,t,a,e)},get _(){return l(s,t,i)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-RFgTGgbk.js");var o,g;const v=class v extends r.AbstractSigner{constructor(e){super(e.provider);f(this,"signer");p(this,o);p(this,g);r.defineProperties(this,{signer:e}),c(this,o,null),c(this,g,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new v(this.signer.connect(e))}async getNonce(e){if(e==="pending"){l(this,o)==null&&c(this,o,super.getNonce("pending"));const i=l(this,g);return await l(this,o)+i}return super.getNonce(e)}increment(){F(this,g)._++}reset(){c(this,g,0),c(this,o,null)}async sendTransaction(e){const i=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await i,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,i,a){return this.signer.signTypedData(e,i,a)}};o=new WeakMap,g=new WeakMap;let P=v;async function b(s,t,e){const i=typeof t=="string"?new r.Wallet(t,s):t,a=(e==null?void 0:e.chain)??(await r.EvmPlatform.chainFromRpc(s))[1],n=new P(i);if(n.provider===null)try{n.connect(s)}catch(d){console.error("Cannot connect to network for signer",d)}return new B(a,await i.getAddress(),n,e)}class B extends r.PlatformNativeSigner{constructor(e,i,a,n){super(e,i,a);f(this,"opts");this.opts=n}chain(){return this._chain}address(){return this._address}async sign(e){var w,y,x,C,S,T,E;const i=this.chain(),a=[];let n=500000n,d=100000000000n,m=1500000000n,u=100000000n;if(((w=this.opts)==null?void 0:w.overrides)===void 0&&i!=="Celo"){const h=await this._signer.provider.getFeeData();d=h.gasPrice??d,m=h.maxFeePerGas??m,u=h.maxPriorityFeePerGas??u}((y=this.opts)==null?void 0:y.gasLimit)!==void 0&&(n=this.opts.gasLimit),((x=this.opts)==null?void 0:x.maxGasLimit)!==void 0&&(n=n>((C=this.opts)==null?void 0:C.maxGasLimit)?(S=this.opts)==null?void 0:S.maxGasLimit:n);const L=i==="Oasis"?{gasLimit:n,gasPrice:d,type:0}:{gasLimit:n,maxFeePerGas:m,maxPriorityFeePerGas:u};for(const h of e){const{transaction:N,description:q}=h;(T=this.opts)!=null&&T.debug&&console.log(`Signing: ${q} for ${this.address()}`);const _={...N,...L,from:this.address(),nonce:await this._signer.getNonce(),...(E=this.opts)==null?void 0:E.overrides};a.push(await this._signer.signTransaction(_))}return a}}const $={Address:r.EvmAddress,Platform:r.EvmPlatform,getSigner:b,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-RFgTGgbk.js")).then(s=>s.index$1),TokenBridge:()=>Promise.resolve().then(()=>require("./index-C-nWxaLg.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-Br4Igv20.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-BFFNnNKW.js"))},getChain:(s,t,e)=>new r.EvmChain(t,new r.EvmPlatform(s,r.applyChainsConfigConfigOverrides(s,r._platform,{[t]:e})))};exports.default=$;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var h = (i, e, r) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
|
|
3
3
|
var o = (i, e, r) => h(i, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { b6 as m, cc as w, K as g, bj as p } from "./index-
|
|
5
|
-
import { S as u } from "./sui-
|
|
4
|
+
import { b6 as m, cc as w, K as g, bj as p } from "./index-CU9KzHgH.mjs";
|
|
5
|
+
import { S as u } from "./sui-CIYeuWco.mjs";
|
|
6
6
|
class c {
|
|
7
7
|
constructor(e, r, t, n) {
|
|
8
8
|
o(this, "network");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RFgTGgbk.js");class o extends Error{constructor(r){super(r)}}class s extends o{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const n=e.struct([e.u32("mintAuthorityOption"),e.publicKey("mintAuthority"),e.u64("supply"),e.u8("decimals"),e.bool("isInitialized"),e.u32("freezeAuthorityOption"),e.publicKey("freezeAuthority")]);n.span;async function c(t,r,u=!1,i=e.TOKEN_PROGRAM_ID,O=e.ASSOCIATED_TOKEN_PROGRAM_ID){if(!u&&!e.PublicKey.isOnCurve(r.toBuffer()))throw new s;const[A]=await e.PublicKey.findProgramAddress([r.toBuffer(),i.toBuffer(),t.toBuffer()],O);return A}exports.ASSOCIATED_TOKEN_PROGRAM_ID=e.ASSOCIATED_TOKEN_PROGRAM_ID;exports.TOKEN_2022_PROGRAM_ID=e.TOKEN_2022_PROGRAM_ID;exports.TOKEN_PROGRAM_ID=e.TOKEN_PROGRAM_ID;exports.MintLayout=n;exports.TokenError=o;exports.TokenOwnerOffCurveError=s;exports.getAssociatedTokenAddress=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aJ as L, aU as g, aV as F, aW as k, aX as I, O as P, Q as T } from "./index-
|
|
1
|
+
import { aJ as L, aU as g, aV as F, aW as k, aX as I, O as P, Q as T } from "./index-CU9KzHgH.mjs";
|
|
2
2
|
function D(n, t, e, s) {
|
|
3
3
|
g(n);
|
|
4
4
|
const i = F({ dkLen: 32, asyncTick: 10 }, s), { c: u, dkLen: a, asyncTick: o } = i;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Y = Object.defineProperty;
|
|
2
2
|
var Z = (n, f, e) => f in n ? Y(n, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[f] = e;
|
|
3
3
|
var d = (n, f, e) => Z(n, typeof f != "symbol" ? f + "" : f, e);
|
|
4
|
-
import { U as y, bk as f0, bl as W, bm as p, bn as e0, bo as a0, bp as t0, bq as _, br as b0, bs as n0, bt as d0, b8 as L, bu as O, E as v, b as C, bv as D, r as U, bc as u, bw as q, bf as c0, bx as N, bh as H, bi as j, b6 as s0, by as i0, bz as I, b5 as S, a4 as $, bj as V, _ as G } from "./index-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { U as y, bk as f0, bl as W, bm as p, bn as e0, bo as a0, bp as t0, bq as _, br as b0, bs as n0, bt as d0, b8 as L, bu as O, E as v, b as C, bv as D, r as U, bc as u, bw as q, bf as c0, bx as N, bh as H, bi as j, b6 as s0, by as i0, bz as I, b5 as S, a4 as $, bj as V, _ as G } from "./index-CU9KzHgH.mjs";
|
|
5
|
+
import "./index-CpQ7f1YB.mjs";
|
|
6
6
|
const r0 = new RegExp("^bytes([0-9]+)$"), p0 = new RegExp("^(u?int)([0-9]*)$"), y0 = new RegExp("^(.*)\\[([0-9]*)\\]$");
|
|
7
7
|
function J(n, f, e) {
|
|
8
8
|
switch (n) {
|