@wormhole-foundation/wormhole-connect 2.0.0-beta.1-development → 2.0.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-gRn0txr9.js → aptos-CvRULtpx.js} +61 -61
- package/dist/assets/aptos-D4y7Fo3S.js +3 -0
- package/dist/assets/{chunk-OR6GFWLG-Ci0TYwIQ.js → chunk-OR6GFWLG-BZrmB1_W.js} +1 -1
- package/dist/assets/evm-K2ASlzX-.js +2 -0
- package/dist/assets/{index-CTtLxavV.js → index-AaqmNOLf.js} +1 -1
- package/dist/assets/index-BLpnEfNA.js +1 -0
- package/dist/assets/{index-DtASoatx.js → index-BTnVHgr_.js} +1 -1
- package/dist/assets/{index-Cf10mHc-.js → index-BpWlJX3r.js} +1 -1
- package/dist/assets/{index-DTCth0iO.js → index-C1mpuWJz.js} +1 -1
- package/dist/assets/{index-cfzEp_CP.js → index-C1yBHw3e.js} +1 -1
- package/dist/assets/{index-Dwk61kXP.js → index-CEjbqPmT.js} +1 -1
- package/dist/assets/{index-BZKNZDak.js → index-CZHHMApS.js} +1 -1
- package/dist/assets/{index-Cm_KjDDY.js → index-QLnl5sO1.js} +1 -1
- package/dist/assets/{index-D7CrUmY0.js → index-_NuAK6zi.js} +1 -1
- package/dist/assets/index-rryJGGTI.js +1 -0
- package/dist/assets/{signer-BaParnK7.js → signer-dWGaM-mu.js} +1 -1
- package/dist/assets/{solana-5w7FFw9J.js → solana-D2tTKYdq.js} +1 -1
- package/dist/assets/solana-UIzLk1Ne.js +2 -0
- package/dist/assets/{sui-DaosOePU.js → sui-DVNvuW-l.js} +4 -4
- package/dist/assets/unsignedTransaction-DsxtoHjl.js +1 -0
- package/dist/main.js +73 -73
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/hooks/useWalletCompatibility.d.ts +14 -0
- package/dist/src/hooks/useWalletCompatibility.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/wallet/aptos.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/index.d.ts.map +1 -1
- package/lib/{aptos-szFJdwGu.mjs → aptos-B3TWiavl.mjs} +59 -57
- package/lib/aptos-DTHJQbIb.js +2 -0
- package/lib/{aptos-DBP3jmW7.js → aptos-Dbfuz96f.js} +9 -9
- package/lib/{aptos-ZmgQfu2i.mjs → aptos-KMTKpvnn.mjs} +1229 -1228
- package/lib/{base64-BFA_udDL.js → base64-Ci4lr2or.js} +1 -1
- package/lib/{base64-DJKqMaey.mjs → base64-D-sBGnCV.mjs} +1 -1
- package/lib/{ccip-DA2Nx1SC.js → ccip-CBfsTddJ.js} +1 -1
- package/lib/{ccip-urjf2Ohy.mjs → ccip-IV8wn7mX.mjs} +1 -1
- package/lib/{chunk-OR6GFWLG-DMRHoX5e.js → chunk-OR6GFWLG-CFPMvzOj.js} +5 -5
- package/lib/{chunk-OR6GFWLG-BxTMqzEc.mjs → chunk-OR6GFWLG-m97dlZZV.mjs} +6 -3
- package/lib/{events-CeUTM3JY.js → events-CjPLRE-d.js} +1 -1
- package/lib/{events-VkSlTRL0.mjs → events-Dtbo0st9.mjs} +1 -1
- package/lib/{evm-DR1h6onf.js → evm-BFBdsLYZ.js} +3 -3
- package/lib/{evm-rBfvNQnC.js → evm-DuCtpTHQ.js} +1 -1
- package/lib/{evm-DSWmFw3D.mjs → evm-JbOZ35C0.mjs} +5 -5
- package/lib/{evm-CVR26OSW.mjs → evm-kkjU8AsQ.mjs} +6 -6
- package/lib/{index-DbFTlikk.js → index-B0lJ-tdN.js} +1 -1
- package/lib/{index-Gq0crvhx.js → index-B1ELgSA6.js} +1 -1
- package/lib/{index-Ccg2yYsG.mjs → index-B2h28IP4.mjs} +2 -2
- package/lib/{index-BN7FfORx.mjs → index-B3CeIlMx.mjs} +25133 -25060
- package/lib/{index-DaebrvyB.js → index-B4_J2HAU.js} +1 -1
- package/lib/{index-CP1YtvQl.mjs → index-BE5ihayy.mjs} +2 -2
- package/lib/{index-C23ZcDqk.mjs → index-BL5dRh07.mjs} +2 -2
- package/lib/{index-sGgOiMAb.js → index-BasVT8K7.js} +1 -1
- package/lib/{index-C92Lbp7R.js → index-BdUX86K5.js} +1 -1
- package/lib/{index-KKiy1Hrx.mjs → index-Bo9bOQTx.mjs} +1 -1
- package/lib/{index-Fsd-hYv7.mjs → index-BoYglZwX.mjs} +38 -38
- package/lib/{index-Bh_VUH6w.js → index-Br4OTc1S.js} +154 -154
- package/lib/{index-B54uaK5S.mjs → index-CM5aJCsU.mjs} +3 -3
- package/lib/{index-pf1Hd87D.js → index-CS3m8qJT.js} +1 -1
- package/lib/{index-Cm2DqtOc.mjs → index-CWSjFjhh.mjs} +48 -57
- package/lib/{index-BGMRuYE4.mjs → index-CfVm24rf.mjs} +22 -22
- package/lib/{index-BXHKeAv4.mjs → index-D2v_ZH9c.mjs} +2 -2
- package/lib/{index-42eVh0Hb.mjs → index-D9NMKVsX.mjs} +2 -2
- package/lib/{index-DGzYkbea.mjs → index-DCfPCVGM.mjs} +7 -7
- package/lib/{index-Coap6PLP.mjs → index-DFDFr1Hv.mjs} +8 -8
- package/lib/{index-2Hoo-RF7.mjs → index-DL2KYGb2.mjs} +1 -1
- package/lib/{index-Ds36ZJFd.js → index-DLegUdzU.js} +1 -1
- package/lib/{index-COMVJ9EC.js → index-DNNfs5Ot.js} +1 -1
- package/lib/{index-Bb6FMstR.js → index-DPlTznQs.js} +1 -1
- package/lib/index-DUrL3GHD.mjs +102 -0
- package/lib/{index-CUD_KSHh.mjs → index-DWTXe9yU.mjs} +4 -4
- package/lib/{index-CtzDS4Ek.js → index-DcKePNaA.js} +1 -1
- package/lib/{index-CMS03ogd.js → index-DlMM2TKj.js} +1 -1
- package/lib/index-DmkA2z4q.js +1 -0
- package/lib/{index-y6JzKy7h.js → index-DtJ3gwwu.js} +1 -1
- package/lib/{index-BD-n4Jda.js → index-Dy3WJQ-h.js} +1 -1
- package/lib/{index-BVdejQdc.js → index-DzgnqJ7-.js} +1 -1
- package/lib/{index-BZWHrS5h.mjs → index-HF2DcpAR.mjs} +2 -2
- package/lib/{index-CCwF2yAJ.mjs → index-IbmfT3Tg.mjs} +5 -5
- package/lib/{index-D2ZFuAXe.mjs → index-MdL7XQBR.mjs} +1 -1
- package/lib/index-QzouONBY.js +1 -0
- package/lib/{index-DdleqS-C.js → index-SrHywpn-.js} +1 -1
- package/lib/{index-B6Cq1iZ2.js → index-gUz3Q8gE.js} +1 -1
- package/lib/{index-fTMcBh-E.js → index-pi5LLTZ3.js} +1 -1
- package/lib/{index-BdgBgC9M.mjs → index-vlui53ey.mjs} +2 -2
- package/lib/{index.es-Bb3szEaY.js → index.es-DFpbuPuY.js} +2 -2
- package/lib/{index.es-BwVfbE63.mjs → index.es-SaEPft-i.mjs} +6 -6
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-BYquDVs4.js → signer-CeSFiipD.js} +1 -1
- package/lib/{signer-DOhyF9G-.mjs → signer-RSvbDa7c.mjs} +19 -19
- package/lib/solana-Bwjjv4LB.js +1 -0
- package/lib/{solana-C7zGAW8V.mjs → solana-ClVJj67l.mjs} +4 -4
- package/lib/solana-DmG1qAvz.mjs +16 -0
- package/lib/{solana-cxRzZXbi.js → solana-DwgjV-W7.js} +1 -1
- package/lib/{solanaEmbed.esm-DYuDmeOj.mjs → solanaEmbed.esm-Cu2iyuQy.mjs} +959 -959
- package/lib/{solanaEmbed.esm-Bw4WVPNb.js → solanaEmbed.esm-DY919Dj0.js} +1 -1
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/hooks/useWalletCompatibility.d.ts +14 -0
- package/lib/src/hooks/useWalletCompatibility.d.ts.map +1 -0
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/wallet/aptos.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/index.d.ts.map +1 -1
- package/lib/{sui-DFYvs2lh.js → sui-BzgBbOVR.js} +2 -2
- package/lib/{sui-D2Lx7sNr.js → sui-C0CqiXaB.js} +1 -1
- package/lib/{sui-BAj9wCLR.mjs → sui-CIBoUTGj.mjs} +1 -1
- package/lib/{sui--QzlscdW.mjs → sui-D1lxvss1.mjs} +5 -5
- package/lib/unsignedTransaction-BDOQhqcZ.mjs +16 -0
- package/lib/unsignedTransaction-C1YeEl4G.js +1 -0
- package/lib/{utf8-D8MD86af.mjs → utf8-BZ7GX1-B.mjs} +1 -1
- package/lib/{utf8-C9mhtl0f.js → utf8-CQNNfvVV.js} +1 -1
- package/package.json +18 -18
- package/dist/assets/aptos-Ycl2eNjD.js +0 -3
- package/dist/assets/evm-ETvgEF-D.js +0 -2
- package/dist/assets/index-_2IpGxfE.js +0 -1
- package/dist/assets/solana-u2eYUt3V.js +0 -2
- package/lib/aptos-C698CxDU.js +0 -2
- package/lib/index-DVxKNFdQ.js +0 -1
- package/lib/solana-B0yxLYge.mjs +0 -16
- package/lib/solana-i-1aVGyQ.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Zr = Object.defineProperty;
|
|
2
2
|
var Yr = (t, e, r) => e in t ? Zr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var M = (t, e, r) => Yr(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import {
|
|
5
|
-
import { g as tt, a as gt, i as Ve, S as Q, b as H, p as ln, c as fn, d as it, u as ze, e as pr, f as hn, h as He, j as gn, k as pn } from "./sui
|
|
6
|
-
import "./index-
|
|
4
|
+
import { X as Qr, y as en, ci as ft, H as tn, cj as hr, ck as ve, b6 as rn, by as nt, bb as nn, bz as nr, b4 as ce, K as ge, m as oe, b8 as sn, bE as ir, bB as an, cl as on, bc as ht, I as cn, r as De, c7 as un, bP as sr, cm as dn, J as ar, bh as gr } from "./index-B3CeIlMx.mjs";
|
|
5
|
+
import { g as tt, a as gt, i as Ve, S as Q, b as H, p as ln, c as fn, d as it, u as ze, e as pr, f as hn, h as He, j as gn, k as pn } from "./sui-D1lxvss1.mjs";
|
|
6
|
+
import "./index-D9NMKVsX.mjs";
|
|
7
7
|
import { S as yr } from "./unsignedTransaction-BD81leu1.mjs";
|
|
8
8
|
class yn extends TypeError {
|
|
9
9
|
constructor(e, r) {
|
|
@@ -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-Br4OTc1S.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,50 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var S = (
|
|
3
|
-
var
|
|
4
|
-
import { cb as f, cc as v, c7 as I,
|
|
5
|
-
import { A as O } from "./
|
|
6
|
-
|
|
7
|
-
constructor(e, t, s, n, r = !1) {
|
|
8
|
-
a(this, "transaction");
|
|
9
|
-
a(this, "network");
|
|
10
|
-
a(this, "chain");
|
|
11
|
-
a(this, "description");
|
|
12
|
-
a(this, "parallelizable");
|
|
13
|
-
this.transaction = e, this.network = t, this.chain = s, this.description = n, this.parallelizable = r;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var S = (a, e, t) => e in a ? b(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var i = (a, e, t) => S(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { cb as f, cc as v, c7 as I, cd as A, ce as x, b4 as w, by as E, bb as U, bz as m, r as o, az as k, p as c, m as h, cf as $, bE as T, V as F, bB as C, k as _, bc as u, cg as W, bh as N } from "./index-B3CeIlMx.mjs";
|
|
5
|
+
import { A as O } from "./unsignedTransaction-BDOQhqcZ.mjs";
|
|
6
|
+
import { A as Q } from "./aptos-B3TWiavl.mjs";
|
|
16
7
|
const R = [
|
|
17
8
|
{ name: "tokenBridgeAddress", ...f },
|
|
18
9
|
{ name: "chain", ...v() },
|
|
19
10
|
{
|
|
20
11
|
name: "domainSeparator",
|
|
21
12
|
binary: "bytes",
|
|
22
|
-
custom: I.encode(
|
|
13
|
+
custom: I.encode(A),
|
|
23
14
|
omit: !0
|
|
24
15
|
},
|
|
25
16
|
{ name: "tokenId", ...f },
|
|
26
17
|
// from https://github.com/aptos-labs/aptos-core/blob/25696fd266498d81d346fe86e01c330705a71465/aptos-move/framework/aptos-framework/sources/account.move#L90-L95
|
|
27
18
|
{ name: "domainSeparator", binary: "bytes", custom: new Uint8Array([255]), omit: !0 }
|
|
28
|
-
],
|
|
19
|
+
], P = (a) => x(R, a);
|
|
29
20
|
class d {
|
|
30
|
-
constructor(e, t, s,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.network = e, this.chain = t, this.connection = s, this.contracts =
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
21
|
+
constructor(e, t, s, r) {
|
|
22
|
+
i(this, "network");
|
|
23
|
+
i(this, "chain");
|
|
24
|
+
i(this, "connection");
|
|
25
|
+
i(this, "contracts");
|
|
26
|
+
i(this, "chainId");
|
|
27
|
+
i(this, "tokenBridgeAddress");
|
|
28
|
+
this.network = e, this.chain = t, this.connection = s, this.contracts = r, this.chainId = w(t);
|
|
29
|
+
const n = r.tokenBridge;
|
|
30
|
+
if (!n)
|
|
40
31
|
throw new Error(`TokenBridge contract Address for chain ${t} not found`);
|
|
41
|
-
this.tokenBridgeAddress =
|
|
32
|
+
this.tokenBridgeAddress = n;
|
|
42
33
|
}
|
|
43
34
|
static async fromRpc(e, t) {
|
|
44
|
-
const [s,
|
|
45
|
-
if (
|
|
46
|
-
throw new Error("Network mismatch " +
|
|
47
|
-
return new d(s,
|
|
35
|
+
const [s, r] = await Q.chainFromRpc(e), n = t[r];
|
|
36
|
+
if (n.network !== s)
|
|
37
|
+
throw new Error("Network mismatch " + n.network + " !== " + s);
|
|
38
|
+
return new d(s, r, e, n.contracts);
|
|
48
39
|
}
|
|
49
40
|
async isWrappedAsset(e) {
|
|
50
41
|
try {
|
|
@@ -54,14 +45,14 @@ class d {
|
|
|
54
45
|
}
|
|
55
46
|
}
|
|
56
47
|
async getOriginalAsset(e) {
|
|
57
|
-
const t = e.toString().split(
|
|
48
|
+
const t = e.toString().split(A), s = await this.connection.getAccountResource({
|
|
58
49
|
accountAddress: t[0],
|
|
59
50
|
resourceType: `${this.tokenBridgeAddress}::state::OriginInfo`
|
|
60
51
|
});
|
|
61
52
|
if (!s)
|
|
62
53
|
throw E(e.toString());
|
|
63
|
-
const
|
|
64
|
-
return { chain:
|
|
54
|
+
const r = U(parseInt(s.token_chain.number)), n = new m(s.token_address.external_address);
|
|
55
|
+
return { chain: r, address: n };
|
|
65
56
|
}
|
|
66
57
|
async getTokenUniversalAddress(e) {
|
|
67
58
|
return new m(o.encode(k(e.toString()), !0));
|
|
@@ -112,12 +103,12 @@ class d {
|
|
|
112
103
|
return T(this.chain, _);
|
|
113
104
|
}
|
|
114
105
|
async *createAttestation(e, t) {
|
|
115
|
-
const s = { chain: this.chain, address: new c(e) },
|
|
116
|
-
if (!
|
|
106
|
+
const s = { chain: this.chain, address: new c(e) }, r = await this.getAssetFullyQualifiedType(s);
|
|
107
|
+
if (!r)
|
|
117
108
|
throw new Error("Invalid asset address.");
|
|
118
109
|
yield this.createUnsignedTx({
|
|
119
110
|
function: `${this.tokenBridgeAddress}::attest_token::attest_token_entry`,
|
|
120
|
-
typeArguments: [
|
|
111
|
+
typeArguments: [r],
|
|
121
112
|
functionArguments: []
|
|
122
113
|
}, "Aptos.AttestToken");
|
|
123
114
|
}
|
|
@@ -136,25 +127,25 @@ class d {
|
|
|
136
127
|
functionArguments: [u(e)]
|
|
137
128
|
}, "Aptos.CreateWrappedCoin");
|
|
138
129
|
}
|
|
139
|
-
async *transfer(e, t, s,
|
|
140
|
-
const
|
|
141
|
-
|
|
130
|
+
async *transfer(e, t, s, r, n) {
|
|
131
|
+
const B = 0n, p = 0n, y = h(s) ? _ : s.toString(), g = t.address.toUniversalAddress().toUint8Array(), l = w(t.chain);
|
|
132
|
+
n ? yield this.createUnsignedTx({
|
|
142
133
|
function: `${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_with_payload_entry`,
|
|
143
|
-
typeArguments: [
|
|
144
|
-
functionArguments: [
|
|
134
|
+
typeArguments: [y],
|
|
135
|
+
functionArguments: [r, l, g, p, n]
|
|
145
136
|
}, "Aptos.TransferTokensWithPayload") : yield this.createUnsignedTx({
|
|
146
137
|
function: `${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_entry`,
|
|
147
|
-
typeArguments: [
|
|
148
|
-
functionArguments: [
|
|
138
|
+
typeArguments: [y],
|
|
139
|
+
functionArguments: [r, l, g, B, p]
|
|
149
140
|
}, "Aptos.TransferTokens");
|
|
150
141
|
}
|
|
151
142
|
async *redeem(e, t, s = !0) {
|
|
152
|
-
const
|
|
153
|
-
if (!
|
|
143
|
+
const r = t.payload.token.chain === this.chain ? await this.getTypeFromExternalAddress(t.payload.token.address.toString()) : await this.getAssetFullyQualifiedType(t.payload.token);
|
|
144
|
+
if (!r)
|
|
154
145
|
throw new Error("Invalid asset address.");
|
|
155
146
|
yield this.createUnsignedTx({
|
|
156
147
|
function: `${this.tokenBridgeAddress}::complete_transfer::submit_vaa_and_register_entry`,
|
|
157
|
-
typeArguments: [
|
|
148
|
+
typeArguments: [r],
|
|
158
149
|
functionArguments: [u(t)]
|
|
159
150
|
}, "Aptos.CompleteTransfer");
|
|
160
151
|
}
|
|
@@ -171,7 +162,7 @@ class d {
|
|
|
171
162
|
const t = await this.connection.getAccountResource({
|
|
172
163
|
accountAddress: this.tokenBridgeAddress,
|
|
173
164
|
resourceType: `${this.tokenBridgeAddress}::state::State`
|
|
174
|
-
}), { handle: s } = t.native_infos,
|
|
165
|
+
}), { handle: s } = t.native_infos, r = await this.connection.getTableItem({
|
|
175
166
|
handle: s,
|
|
176
167
|
data: {
|
|
177
168
|
key_type: `${this.tokenBridgeAddress}::token_hash::TokenHash`,
|
|
@@ -179,11 +170,11 @@ class d {
|
|
|
179
170
|
key: { hash: e }
|
|
180
171
|
}
|
|
181
172
|
});
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
String.fromCharCode(...o.decode(
|
|
185
|
-
String.fromCharCode(...o.decode(
|
|
186
|
-
].join(
|
|
173
|
+
return r ? [
|
|
174
|
+
r.account_address,
|
|
175
|
+
String.fromCharCode(...o.decode(r.module_name)),
|
|
176
|
+
String.fromCharCode(...o.decode(r.struct_name))
|
|
177
|
+
].join(A) : null;
|
|
187
178
|
} catch {
|
|
188
179
|
return null;
|
|
189
180
|
}
|
|
@@ -198,15 +189,15 @@ class d {
|
|
|
198
189
|
static getForeignAssetAddress(e, t, s) {
|
|
199
190
|
if (h(s.address))
|
|
200
191
|
throw new Error("Invalid token address");
|
|
201
|
-
const
|
|
192
|
+
const r = P({
|
|
202
193
|
chain: s.chain,
|
|
203
194
|
tokenBridgeAddress: new c(t).toUniversalAddress(),
|
|
204
195
|
tokenId: s.address.toUniversalAddress()
|
|
205
196
|
});
|
|
206
|
-
return o.encode(k(
|
|
197
|
+
return o.encode(k(r), !0);
|
|
207
198
|
}
|
|
208
199
|
createUnsignedTx(e, t, s = !1) {
|
|
209
|
-
return new
|
|
200
|
+
return new O(e, this.network, this.chain, t, s);
|
|
210
201
|
}
|
|
211
202
|
}
|
|
212
203
|
N("Aptos", "TokenBridge", d);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Pt = Object.defineProperty;
|
|
2
2
|
var _t = (e, t, r) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var f = (e, t, r) => _t(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import {
|
|
4
|
+
import { ac as c, aW as A, a_ as z, aZ as U, V as l, bF as le, a$ as Z, aY as S, aX as V, bG as Ze, bH as Ge, bI as Wt, bJ as It, bK as Ut, bL as Nt, bM as O, bN as E, b4 as y, bO as T, bP as Ft, bQ as ye, bz as dt, bR as xt, bS as lt, bT as zt, bU as Ot, bV as Q, bW as Lt, bX as G, bY as H, bZ as Dt, b_ as qt, b$ as Kt, c0 as Vt, c1 as Se, c2 as Zt, c3 as v, c4 as Gt, e as oe, S as k, by as Ce, bb as Ht, m as $, bE as Be, c5 as Yt, c6 as Qt, ap as ae, ag as L, c7 as Xt, c8 as ft, bh as mt, g as gt } from "./index-B3CeIlMx.mjs";
|
|
5
5
|
const M = new c("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
|
6
6
|
new c("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
|
|
7
7
|
const Ae = new c("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"), D = new c("So11111111111111111111111111111111111111112");
|
|
@@ -70,7 +70,7 @@ function jt(e, t, r, n, i = [], a = M) {
|
|
|
70
70
|
}, s), new le({ keys: o, programId: a, data: s });
|
|
71
71
|
}
|
|
72
72
|
const Ye = A([z("instruction")]);
|
|
73
|
-
function
|
|
73
|
+
function Qe(e, t, r, n = [], i = M) {
|
|
74
74
|
const a = Ee([
|
|
75
75
|
{ pubkey: e, isSigner: !1, isWritable: !0 },
|
|
76
76
|
{ pubkey: t, isSigner: !1, isWritable: !0 }
|
|
@@ -118,7 +118,7 @@ async function tn(e, t, r, n = M) {
|
|
|
118
118
|
const i = await e.getAccountInfo(t, r);
|
|
119
119
|
return rn(t, i, n);
|
|
120
120
|
}
|
|
121
|
-
async function
|
|
121
|
+
async function Xe(e, t) {
|
|
122
122
|
return await nn(e, [], t);
|
|
123
123
|
}
|
|
124
124
|
async function nn(e, t, r) {
|
|
@@ -512,9 +512,9 @@ class Vn {
|
|
|
512
512
|
case "completeWrapped":
|
|
513
513
|
return Yn(r);
|
|
514
514
|
case "transferWrapped":
|
|
515
|
-
return Xn(r);
|
|
516
|
-
case "transferNative":
|
|
517
515
|
return Qn(r);
|
|
516
|
+
case "transferNative":
|
|
517
|
+
return Xn(r);
|
|
518
518
|
case "registerChain":
|
|
519
519
|
return Jn(r);
|
|
520
520
|
case "createWrapped":
|
|
@@ -561,10 +561,10 @@ function Tt({ nonce: e, amount: t, fee: r, targetAddress: n, targetChain: i }) {
|
|
|
561
561
|
const a = l.Buffer.alloc(54);
|
|
562
562
|
return a.writeUInt32LE(e, 0), a.writeBigUInt64LE(t, 4), a.writeBigUInt64LE(r, 12), a.write(n.toString("hex"), 20, "hex"), a.writeUInt16LE(i, 52), a;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Qn({ nonce: e, amount: t, fee: r, targetAddress: n, targetChain: i }) {
|
|
565
565
|
return N(P.TransferWrapped, Tt({ nonce: e, amount: t, fee: r, targetAddress: n, targetChain: i }));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Xn({ nonce: e, amount: t, fee: r, targetAddress: n, targetChain: i }) {
|
|
568
568
|
return N(P.TransferNative, Tt({ nonce: e, amount: t, fee: r, targetAddress: n, targetChain: i }));
|
|
569
569
|
}
|
|
570
570
|
function Jn({}) {
|
|
@@ -1675,12 +1675,12 @@ const we = class we {
|
|
|
1675
1675
|
static createMetadataAccounts(t, r, n, i, a, o, s = !1, d, u, m, h = !1, g = Te(r)) {
|
|
1676
1676
|
const w = [
|
|
1677
1677
|
Ot(g, !1),
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1678
|
+
Q(r, !1),
|
|
1679
|
+
Q(n, !0),
|
|
1680
|
+
Q(t, !0),
|
|
1681
|
+
Q(o, s),
|
|
1682
|
+
Q(E.programId, !1),
|
|
1683
|
+
Q(O, !1)
|
|
1684
1684
|
], p = pe.serializeInstructionData(i, a, d === void 0 ? "" : d, m === void 0 ? 0 : m, u === void 0 ? null : u, h);
|
|
1685
1685
|
return {
|
|
1686
1686
|
programId: we.programId,
|
|
@@ -4231,7 +4231,7 @@ class qe {
|
|
|
4231
4231
|
async *createAttestation(t, r) {
|
|
4232
4232
|
if (!r)
|
|
4233
4233
|
throw new Error("Payer required to create attestation");
|
|
4234
|
-
const n = new k(r).unwrap(), i = 0, a = await this.coreBridge.getMessageFee(), o =
|
|
4234
|
+
const n = new k(r).unwrap(), i = 0, a = await this.coreBridge.getMessageFee(), o = Qt(this.coreBridge.coreBridge.programId, n, a), s = ae.generate(), d = or(this.connection, this.tokenBridge.programId, this.coreBridge.address, n, new k(t).unwrap(), s.publicKey, i), u = new L().add(o, d);
|
|
4235
4235
|
u.feePayer = n, yield this.createUnsignedTx({ transaction: u, signers: [s] }, "Solana.AttestToken");
|
|
4236
4236
|
}
|
|
4237
4237
|
async *submitAttestation(t, r) {
|
|
@@ -4243,7 +4243,7 @@ class qe {
|
|
|
4243
4243
|
i.feePayer = n, yield this.createUnsignedTx({ transaction: i }, "Solana.CreateWrapped");
|
|
4244
4244
|
}
|
|
4245
4245
|
async transferSol(t, r, n, i) {
|
|
4246
|
-
const a = new k(t).unwrap(), o = a, s = r.address.toUniversalAddress().toUint8Array(), d = y(r.chain), u = 0, m = 0n, h = ae.generate(), g = ae.generate(), w = await
|
|
4246
|
+
const a = new k(t).unwrap(), o = a, s = r.address.toUniversalAddress().toUint8Array(), d = y(r.chain), u = 0, m = 0n, h = ae.generate(), g = ae.generate(), w = await Xe(this.connection), p = E.createAccount({
|
|
4247
4247
|
fromPubkey: o,
|
|
4248
4248
|
newAccountPubkey: g.publicKey,
|
|
4249
4249
|
lamports: w,
|
|
@@ -4254,7 +4254,7 @@ class qe {
|
|
|
4254
4254
|
fromPubkey: o,
|
|
4255
4255
|
lamports: n,
|
|
4256
4256
|
toPubkey: g.publicKey
|
|
4257
|
-
}), R = nt(g.publicKey, D, o), F = it(this.tokenBridge.programId, g.publicKey, o, n), I = i ? ut(this.connection, this.tokenBridge.programId, this.coreBridge.address, a, h.publicKey, g.publicKey, D, u, n, s, d, i) : ct(this.connection, this.tokenBridge.programId, this.coreBridge.address, a, h.publicKey, g.publicKey, D, u, n, m, s, d), ie =
|
|
4257
|
+
}), R = nt(g.publicKey, D, o), F = it(this.tokenBridge.programId, g.publicKey, o, n), I = i ? ut(this.connection, this.tokenBridge.programId, this.coreBridge.address, a, h.publicKey, g.publicKey, D, u, n, s, d, i) : ct(this.connection, this.tokenBridge.programId, this.coreBridge.address, a, h.publicKey, g.publicKey, D, u, n, m, s, d), ie = Qe(
|
|
4258
4258
|
g.publicKey,
|
|
4259
4259
|
//account to close
|
|
4260
4260
|
o,
|
|
@@ -4282,14 +4282,14 @@ class qe {
|
|
|
4282
4282
|
F.feePayer = s, yield this.createUnsignedTx({ transaction: F, signers: [p] }, "TokenBridge.TransferTokens");
|
|
4283
4283
|
}
|
|
4284
4284
|
async *redeemAndUnwrap(t, r) {
|
|
4285
|
-
const n = new k(t).unwrap(), i = new k(r.payload.to.address).unwrap(), a = await an(this.connection, D).then((p) => r.payload.token.amount * BigInt(Math.pow(10, p.decimals - 8))), o = await
|
|
4285
|
+
const n = new k(t).unwrap(), i = new k(r.payload.to.address).unwrap(), a = await an(this.connection, D).then((p) => r.payload.token.amount * BigInt(Math.pow(10, p.decimals - 8))), o = await Xe(this.connection), s = ae.generate(), d = ot(this.connection, this.tokenBridge.programId, this.coreBridge.address, n, r), u = E.createAccount({
|
|
4286
4286
|
fromPubkey: n,
|
|
4287
4287
|
newAccountPubkey: s.publicKey,
|
|
4288
4288
|
lamports: o,
|
|
4289
4289
|
//spl token accounts need rent exemption
|
|
4290
4290
|
space: _,
|
|
4291
4291
|
programId: M
|
|
4292
|
-
}), m = nt(s.publicKey, D, n), h = Ln(i, s.publicKey, n, a.valueOf()), g =
|
|
4292
|
+
}), m = nt(s.publicKey, D, n), h = Ln(i, s.publicKey, n, a.valueOf()), g = Qe(
|
|
4293
4293
|
s.publicKey,
|
|
4294
4294
|
//account to close
|
|
4295
4295
|
n,
|
|
@@ -4309,7 +4309,7 @@ class qe {
|
|
|
4309
4309
|
const i = r.payload.token.chain === this.chain ? r.payload.token.address : (await this.getWrappedAsset(r.payload.token)).toUniversalAddress();
|
|
4310
4310
|
if (yield* this.createAta(t, i), yield* this.coreBridge.postVaa(t, r), n) {
|
|
4311
4311
|
const d = new k(await this.getWrappedNative());
|
|
4312
|
-
if (
|
|
4312
|
+
if (Xt.equals(i.toUint8Array(), d.toUint8Array())) {
|
|
4313
4313
|
yield* this.redeemAndUnwrap(t, r);
|
|
4314
4314
|
return;
|
|
4315
4315
|
}
|
|
@@ -4350,7 +4350,7 @@ const Cr = {
|
|
|
4350
4350
|
"So11111111111111111111111111111111111111112"
|
|
4351
4351
|
],
|
|
4352
4352
|
Devnet: []
|
|
4353
|
-
},
|
|
4353
|
+
}, X = 9, se = new v(10), J = new v(1e8);
|
|
4354
4354
|
class Ke {
|
|
4355
4355
|
constructor(t, r, n, i) {
|
|
4356
4356
|
f(this, "network");
|
|
@@ -4406,7 +4406,7 @@ class Ke {
|
|
|
4406
4406
|
const r = this.mintAddress(t), [{ swapRate: n, maxNativeSwapAmount: i }, { swapRate: a }] = await Promise.all([
|
|
4407
4407
|
this.getRegisteredToken(r),
|
|
4408
4408
|
this.getRegisteredToken(D)
|
|
4409
|
-
]), o = Number(await oe.getDecimals(this.chain, this.connection, t)), s = this.calculateNativeSwapRate(a, n), d = o >
|
|
4409
|
+
]), o = Number(await oe.getDecimals(this.chain, this.connection, t)), s = this.calculateNativeSwapRate(a, n), d = o > X ? i.mul(s).mul(se.pow(new v(o - X))).div(J) : i.mul(s).div(se.pow(new v(X - o)).mul(J));
|
|
4410
4410
|
return BigInt(d.toString());
|
|
4411
4411
|
}
|
|
4412
4412
|
async nativeTokenAmount(t, r) {
|
|
@@ -4415,7 +4415,7 @@ class Ke {
|
|
|
4415
4415
|
const n = this.mintAddress(t), i = Number(await oe.getDecimals(this.chain, this.connection, t)), [{ swapRate: a }, { swapRate: o }] = await Promise.all([
|
|
4416
4416
|
this.getRegisteredToken(n),
|
|
4417
4417
|
this.getRegisteredToken(D)
|
|
4418
|
-
]), s = this.calculateNativeSwapRate(o, a), d = i >
|
|
4418
|
+
]), s = this.calculateNativeSwapRate(o, a), d = i > X ? J.mul(new v(r.toString())).div(s.mul(se.pow(new v(i - X)))) : J.mul(new v(r.toString())).mul(se.pow(new v(X - i))).div(s);
|
|
4419
4419
|
return BigInt(d.toString());
|
|
4420
4420
|
}
|
|
4421
4421
|
async isRegisteredToken(t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aW as f, aX as s, aY as t, aZ as c, a_ as O, a$ as d,
|
|
2
|
-
import { b2 as h } from "./index-
|
|
1
|
+
import { aW as f, aX as s, aY as t, aZ as c, a_ as O, a$ as d, ac as o, b0 as A, b1 as p } from "./index-B3CeIlMx.mjs";
|
|
2
|
+
import { b2 as h } from "./index-B3CeIlMx.mjs";
|
|
3
3
|
class l extends Error {
|
|
4
4
|
constructor(r) {
|
|
5
5
|
super(r);
|
|
@@ -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 { b4 as m, ca as w,
|
|
5
|
-
import { S as u } from "./sui
|
|
4
|
+
import { b4 as m, ca as w, K as g, bh as p } from "./index-B3CeIlMx.mjs";
|
|
5
|
+
import { S as u } from "./sui-D1lxvss1.mjs";
|
|
6
6
|
class c {
|
|
7
7
|
constructor(e, r, t, n) {
|
|
8
8
|
o(this, "network");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Q = Object.defineProperty;
|
|
2
2
|
var j = (t, e, s) => e in t ? Q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var y = (t, e, s) => j(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import {
|
|
4
|
+
import { ac as u, aW as Y, aX as I, aY as x, aZ as ee, a_ as ne, a$ as se, V as M, bN as O, bF as ae, bS as E, bT as N, c9 as B, c3 as _, bt as U, r as te, S as b, e as ie, bu as D, ag as T, bs as re, ap as me, bv as R, c8 as oe, bh as ue, g as le } from "./index-B3CeIlMx.mjs";
|
|
5
5
|
const h = new u("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
|
6
6
|
new u("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
|
|
7
7
|
const A = new u("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
|
@@ -104,10 +104,10 @@ function F(t, e, s) {
|
|
|
104
104
|
return o("used_nonces", s, [a, z(t).toString()]).publicKey;
|
|
105
105
|
}
|
|
106
106
|
async function he(t, e, s, a, i, n) {
|
|
107
|
-
const r = M.Buffer.from(U.serialize(a)), m = M.Buffer.from(te.decode(i)), l = new u(s), d = new u(a.payload.burnToken.toUint8Array()), c = new b(a.payload.mintRecipient).unwrap(), f = n ? new u(n) : c, p = a.sourceDomain.toString(), S = o("message_transmitter", t), k = o("token_messenger", e), P = o("token_minter", e), v = o("local_token", e, [l]), H = o("remote_token_messenger", e, [p]),
|
|
107
|
+
const r = M.Buffer.from(U.serialize(a)), m = M.Buffer.from(te.decode(i)), l = new u(s), d = new u(a.payload.burnToken.toUint8Array()), c = new b(a.payload.mintRecipient).unwrap(), f = n ? new u(n) : c, p = a.sourceDomain.toString(), S = o("message_transmitter", t), k = o("token_messenger", e), P = o("token_minter", e), v = o("local_token", e, [l]), H = o("remote_token_messenger", e, [p]), G = o("token_pair", e, [
|
|
108
108
|
p,
|
|
109
109
|
d
|
|
110
|
-
]),
|
|
110
|
+
]), X = o("custody", e, [l]), $ = o("message_transmitter_authority", t, [e]).publicKey, Z = F(a.nonce, a.sourceDomain, t), q = o("__event_authority", t), J = o("__event_authority", e), g = [];
|
|
111
111
|
g.push({
|
|
112
112
|
isSigner: !1,
|
|
113
113
|
isWritable: !1,
|
|
@@ -127,7 +127,7 @@ async function he(t, e, s, a, i, n) {
|
|
|
127
127
|
}), g.push({
|
|
128
128
|
isSigner: !1,
|
|
129
129
|
isWritable: !1,
|
|
130
|
-
pubkey:
|
|
130
|
+
pubkey: G.publicKey
|
|
131
131
|
}), g.push({
|
|
132
132
|
isSigner: !1,
|
|
133
133
|
isWritable: !0,
|
|
@@ -135,7 +135,7 @@ async function he(t, e, s, a, i, n) {
|
|
|
135
135
|
}), g.push({
|
|
136
136
|
isSigner: !1,
|
|
137
137
|
isWritable: !0,
|
|
138
|
-
pubkey:
|
|
138
|
+
pubkey: X.publicKey
|
|
139
139
|
}), g.push({
|
|
140
140
|
isSigner: !1,
|
|
141
141
|
isWritable: !1,
|
|
@@ -158,10 +158,10 @@ async function he(t, e, s, a, i, n) {
|
|
|
158
158
|
caller: f,
|
|
159
159
|
authorityPda: $,
|
|
160
160
|
messageTransmitter: S.publicKey,
|
|
161
|
-
usedNonces:
|
|
161
|
+
usedNonces: Z,
|
|
162
162
|
receiver: e,
|
|
163
163
|
systemProgram: O.programId,
|
|
164
|
-
eventAuthority:
|
|
164
|
+
eventAuthority: q.publicKey,
|
|
165
165
|
program: K.programId
|
|
166
166
|
}).remainingAccounts(g).transaction();
|
|
167
167
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aL as b, aS as g, aT as F, aU as k, aV as I,
|
|
2
|
-
function
|
|
1
|
+
import { aL as b, aS as g, aT as F, aU as k, aV as I, O as T, Q as P } from "./index-B3CeIlMx.mjs";
|
|
2
|
+
function S(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;
|
|
5
5
|
if (k(u), k(a), k(o), u < 1)
|
|
@@ -7,11 +7,11 @@ function R(n, t, e, s) {
|
|
|
7
7
|
const d = I(t), c = I(e), f = new Uint8Array(a), l = T.create(n, d), r = l._cloneInto().update(c);
|
|
8
8
|
return { c: u, dkLen: a, asyncTick: o, DK: f, PRF: l, PRFSalt: r };
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function D(n, t, e, s, i) {
|
|
11
11
|
return n.destroy(), t.destroy(), s && s.destroy(), i.fill(0), e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const { c: i, dkLen: u, DK: a, PRF: o, PRFSalt: d } =
|
|
13
|
+
function K(n, t, e, s) {
|
|
14
|
+
const { c: i, dkLen: u, DK: a, PRF: o, PRFSalt: d } = S(n, t, e, s);
|
|
15
15
|
let c;
|
|
16
16
|
const f = new Uint8Array(4), l = b(f), r = new Uint8Array(o.outputLen);
|
|
17
17
|
for (let w = 1, p = 0; p < u; w++, p += o.outputLen) {
|
|
@@ -23,7 +23,7 @@ function D(n, t, e, s) {
|
|
|
23
23
|
m[y] ^= r[y];
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return D(o, d, a, c, r);
|
|
27
27
|
}
|
|
28
28
|
/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
|
|
29
29
|
function L(n) {
|
|
@@ -31,7 +31,7 @@ function L(n) {
|
|
|
31
31
|
throw new TypeError("invalid mnemonic type: " + typeof n);
|
|
32
32
|
return n.normalize("NFKD");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function R(n) {
|
|
35
35
|
const t = L(n), e = t.split(" ");
|
|
36
36
|
if (![12, 15, 18, 21, 24].includes(e.length))
|
|
37
37
|
throw new Error("Invalid mnemonic");
|
|
@@ -39,7 +39,7 @@ function K(n) {
|
|
|
39
39
|
}
|
|
40
40
|
const U = (n) => L("mnemonic" + n);
|
|
41
41
|
function A(n, t = "") {
|
|
42
|
-
return
|
|
42
|
+
return K(P, R(n).nfkd, U(t), { c: 2048, dkLen: 64 });
|
|
43
43
|
}
|
|
44
44
|
export {
|
|
45
45
|
A as m
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $ = Object.defineProperty;
|
|
2
2
|
var V = (i, e, b) => e in i ? $(i, e, { enumerable: !0, configurable: !0, writable: !0, value: b }) : i[e] = b;
|
|
3
3
|
var d = (i, e, b) => V(i, typeof e != "symbol" ? e + "" : e, b);
|
|
4
|
-
import { b6 as E, E as o, by as x, b4 as l, bb as z, bz as L, a as c, m as k, bA as j, bB as Z, bc as g, bC as W, bD as T, ba as s, bE as _, bf as P, bg as N, bx as F, b3 as q,
|
|
4
|
+
import { b6 as E, E as o, by as x, b4 as l, bb as z, bz as L, a as c, m as k, bA as j, bB as Z, bc as g, bC as W, bD as T, ba as s, bE as _, bf as P, bg as N, bx as F, b3 as q, a4 as D, bh as H, _ as O } from "./index-B3CeIlMx.mjs";
|
|
5
5
|
class B {
|
|
6
6
|
constructor(e, b, a, t) {
|
|
7
7
|
d(this, "network");
|