@wormhole-foundation/wormhole-connect 0.3.19-beta.4-development → 0.3.19-beta.5-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/{ccip-fCzlhBBT.js → ccip-De5bB7ry.js} +1 -1
- package/dist/assets/{evm-zyz5dAmi.js → evm-DJTN7n-6.js} +4 -4
- package/dist/assets/{index-Cjisu-Ym.js → index-CdA027fm.js} +1 -1
- package/dist/assets/{index-DYCDjsFo.js → index-D8xdfMo8.js} +2 -2
- package/dist/assets/{index.es-LrzWWyFt.js → index.es-DsPAzXeV.js} +2 -2
- package/dist/main.js +5 -5
- package/dist/src/routes/cosmosGateway/cosmosGateway.d.ts +2 -0
- package/dist/src/routes/cosmosGateway/cosmosGateway.d.ts.map +1 -1
- package/dist/src/routes/porticoBridge/porticoBridge.d.ts +2 -0
- package/dist/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/dist/src/routes/sdkv2/route.d.ts +1 -1
- package/dist/src/routes/sdkv2/route.d.ts.map +1 -1
- package/dist/src/routes/tbtc/tbtc.d.ts +2 -0
- package/dist/src/routes/tbtc/tbtc.d.ts.map +1 -1
- package/lib/{algorand-BOA88Yi9.js → algorand-BizCMnCe.js} +1 -1
- package/lib/{algorand-BNtk5Zlz.mjs → algorand-CZC9cPKi.mjs} +4 -4
- package/lib/{aptos-ofb4q2o1.mjs → aptos-B4ng1XsR.mjs} +1 -1
- package/lib/{aptos-DsuCT57P.mjs → aptos-CRkEBLid.mjs} +4 -4
- package/lib/{aptos-2Xg1Y_0j.js → aptos-CXyHqFt8.js} +2 -2
- package/lib/{aptos-09IlHhtG.js → aptos-i8WEm-Fe.js} +1 -1
- package/lib/{browser-5rNYk7ew.mjs → browser-CIwNo6kY.mjs} +2 -2
- package/lib/{browser-CMlhlM7_.js → browser-DEzmpMBm.js} +1 -1
- package/lib/{ccip-BnSw75yc.js → ccip-6omn1tDF.js} +1 -1
- package/lib/{ccip-rZCaMFot.mjs → ccip-LzzuUWf7.mjs} +1 -1
- package/lib/{chain-NLYiTi92.js → chain-BteoJHpg.js} +1 -1
- package/lib/{chain-BZjg2BoT.mjs → chain-Cc-vL0Ji.mjs} +1 -1
- package/lib/{cosmos-IWVkyjMV.mjs → cosmos-5NiZ8EbB.mjs} +6 -6
- package/lib/cosmos-DM4Lrmu1.js +37 -0
- package/lib/{cosmwasm-BFtZD1Ru.js → cosmwasm-8FJsT7LT.js} +2 -2
- package/lib/{cosmwasm-CGR89px_.mjs → cosmwasm-BHEBPmf7.mjs} +6 -6
- package/lib/{create-Bpjnlpg_.js → create-48Wkagqs.js} +1 -1
- package/lib/{create-PB82rGuQ.mjs → create-BIAJIVSg.mjs} +1 -1
- package/lib/{ens-validation.es6-BY6Eu6az.js → ens-validation.es6-Bw--s4Qc.js} +1 -1
- package/lib/{ens-validation.es6-D6AE2QT0.mjs → ens-validation.es6-DQFhqeC0.mjs} +2 -2
- package/lib/{evm-DB1-WEEt.mjs → evm-B5hnoH2O.mjs} +6 -6
- package/lib/{evm-FMLhTUS9.mjs → evm-Dd33ef5o.mjs} +6 -6
- package/lib/{evm-aLUoXBeT.js → evm-JNEgzI8_.js} +4 -4
- package/lib/{evm-DY9ovr2c.js → evm-OwiMOsDg.js} +2 -2
- package/lib/{index-Bdzevkwx.mjs → index-10BWvX1N.mjs} +3 -3
- package/lib/{index-BwTYRqte.js → index-670AMJe5.js} +1 -1
- package/lib/{index-BEQsB526.mjs → index-B03MiI2p.mjs} +2 -2
- package/lib/{index-Clclaa8l.js → index-B9pFbfyU.js} +1 -1
- package/lib/{index-6GqC5Hzz.js → index-BDi5PNJc.js} +1 -1
- package/lib/{index-DzVxkotY.js → index-BFIX3imu.js} +1 -1
- package/lib/{index-CefRPGIJ.js → index-BHUxBugG.js} +1 -1
- package/lib/{index-COcHH6cV.js → index-BHWhOqWI.js} +1 -1
- package/lib/{index-Na_--gcE.js → index-BJPmRnHn.js} +1 -1
- package/lib/{index-CPg2DDGG.mjs → index-Bg59b-Bk.mjs} +4 -4
- package/lib/{index-Cn3ZByEn.mjs → index-By8Yxkcx.mjs} +5 -5
- package/lib/{index-DfYc88fY.js → index-C1oy9Lkm.js} +9 -9
- package/lib/{index-B2JrUboW.mjs → index-CHqEmT8z.mjs} +6 -6
- package/lib/{index-Dvg604_r.mjs → index-CMKVJZ8E.mjs} +3 -3
- package/lib/{index-BqGrE5rX.mjs → index-CNbmckF9.mjs} +4 -4
- package/lib/{index-BULQb7l7.mjs → index-CU3qSQjR.mjs} +4 -4
- package/lib/{index-DHsWcdrI.mjs → index-CVjCpWVm.mjs} +72 -72
- package/lib/{index-C7pm5tV-.js → index-CYRY8C8f.js} +1 -1
- package/lib/{index-CFc6ua8j.mjs → index-Cx7DnGQ7.mjs} +4 -4
- package/lib/{index-C1JlVOwd.mjs → index-D4oa5qLu.mjs} +109 -90
- package/lib/{index-BSpDXKq1.mjs → index-D7DR5q91.mjs} +4 -4
- package/lib/{index-CswKQSoP.mjs → index-D83yFXT3.mjs} +3 -3
- package/lib/{index-Df-PgrLd.mjs → index-D8SeaoGs.mjs} +2 -2
- package/lib/{index-CfOBXKOA.mjs → index-D8l7OdtE.mjs} +2 -2
- package/lib/{index-aCI_DUM-.js → index-DETB2K9l.js} +1 -1
- package/lib/{index-BG24T1GX.js → index-DGfMxIjQ.js} +1 -1
- package/lib/{index-tMk2zWGF.js → index-DLpTO2U3.js} +1 -1
- package/lib/{index-BAMSsTuN.mjs → index-DX18kVfL.mjs} +4 -4
- package/lib/{index-afsYF03s.mjs → index-DX6w1JtB.mjs} +4 -4
- package/lib/{index-CxU-Gb5y.mjs → index-DbMbSuyg.mjs} +4 -4
- package/lib/{index-DRhnM5uA.js → index-DfYaeaDv.js} +1 -1
- package/lib/{index-D_ETBz6p.js → index-DjmghqSr.js} +1 -1
- package/lib/{index-BQqBYm1C.js → index-DlRC-hs-.js} +1 -1
- package/lib/{index-BI-a425p.mjs → index-G7Dlm7ed.mjs} +1 -1
- package/lib/index-Hyeca4Ym.js +3 -0
- package/lib/{index-D0taDsGK.mjs → index-ROBBwabT.mjs} +4 -4
- package/lib/{index-Dph4RybI.js → index-WhcobQtR.js} +1 -1
- package/lib/{index-9SUIf5nS.js → index-X-BikqCf.js} +1 -1
- package/lib/{index-B2IuVewp.js → index-ZCZHbA1F.js} +1 -1
- package/lib/{index-DIhwpM7p.js → index-isN8Fo1n.js} +1 -1
- package/lib/{index-M0F8WpQR.js → index-j8isX5f9.js} +1 -1
- package/lib/{index-Cu-QZ2Yi.mjs → index-jlt17KkN.mjs} +4 -4
- package/lib/{index-BEjdY6hm.mjs → index-mtuCwj6Z.mjs} +5 -5
- package/lib/{index-CaF25_vp.js → index-oVIYJXdI.js} +1 -1
- package/lib/{index-LMP2SXjR.js → index-tvG-rfJZ.js} +1 -1
- package/lib/{index-95lzn8zO.mjs → index-ybRLAtD8.mjs} +5 -5
- package/lib/{index.es-uerP6wyE.js → index.es-B33YjOZu.js} +2 -2
- package/lib/{index.es-DqS4HLZw.mjs → index.es-BON8c55F.mjs} +4 -4
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-B78L643V.mjs → libsodium-wrappers-DTuXKVrZ.mjs} +1 -1
- package/lib/{libsodium-wrappers-DP3-RcK9.js → libsodium-wrappers-VihnPAqR.js} +1 -1
- package/lib/{sei-CvQ5fq9U.mjs → sei-C6N03jzv.mjs} +2 -2
- package/lib/{sei-D8YL8hcu.js → sei-DTeCXpXl.js} +1 -1
- package/lib/{solana-Q02Qu6Us.js → solana--YauUjmQ.js} +2 -2
- package/lib/{solana-eqcW3EUS.mjs → solana-BMm013WW.mjs} +6 -6
- package/lib/{solana-DIKpxJ66.mjs → solana-DdaraOHp.mjs} +3 -3
- package/lib/{solana-PbyA60e9.js → solana-T3yS-Q_9.js} +1 -1
- package/lib/{solanaEmbed.esm-DAJICEjv.js → solanaEmbed.esm-DMwXbxXO.js} +1 -1
- package/lib/{solanaEmbed.esm-B35xqpi9.mjs → solanaEmbed.esm-D_lKLzGu.mjs} +2 -2
- package/lib/src/routes/cosmosGateway/cosmosGateway.d.ts +2 -0
- package/lib/src/routes/cosmosGateway/cosmosGateway.d.ts.map +1 -1
- package/lib/src/routes/porticoBridge/porticoBridge.d.ts +2 -0
- package/lib/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/lib/src/routes/sdkv2/route.d.ts +1 -1
- package/lib/src/routes/sdkv2/route.d.ts.map +1 -1
- package/lib/src/routes/tbtc/tbtc.d.ts +2 -0
- package/lib/src/routes/tbtc/tbtc.d.ts.map +1 -1
- package/lib/{sui-DWSLoSDK.mjs → sui-Btvc4SGv.mjs} +4 -4
- package/lib/{sui-CmBrrkS9.mjs → sui-CXyWZ2Gp.mjs} +1 -1
- package/lib/{sui-Cz7TcwK6.js → sui-DWLiZoeB.js} +1 -1
- package/lib/{sui-YcpSM6BX.js → sui-DbQOBpeH.js} +2 -2
- package/lib/{unsignedTransaction-Dgrq3Lq3.mjs → unsignedTransaction-CtPR6znR.mjs} +2 -2
- package/lib/{unsignedTransaction-CuG8xbiM.js → unsignedTransaction-DZq5iThY.js} +1 -1
- package/package.json +1 -1
- package/lib/cosmos-DeEa4QWd.js +0 -37
- package/lib/index-D1vD1x9T.js +0 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var yu = Object.defineProperty;
|
|
2
2
|
var bu = (e, t, n) => t in e ? yu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var at = (e, t, n) => (bu(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-
|
|
5
|
-
import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-
|
|
6
|
-
import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-
|
|
7
|
-
import { CosmwasmWormholeCore as pd } from "./index-
|
|
8
|
-
import { c as gd, C as yd } from "./unsignedTransaction-
|
|
9
|
-
import { r as bd } from "./chain-
|
|
4
|
+
import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-D4oa5qLu.mjs";
|
|
5
|
+
import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-DQFhqeC0.mjs";
|
|
6
|
+
import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-BHEBPmf7.mjs";
|
|
7
|
+
import { CosmwasmWormholeCore as pd } from "./index-DX18kVfL.mjs";
|
|
8
|
+
import { c as gd, C as yd } from "./unsignedTransaction-CtPR6znR.mjs";
|
|
9
|
+
import { r as bd } from "./chain-Cc-vL0Ji.mjs";
|
|
10
10
|
function vd(e) {
|
|
11
11
|
return e.id !== void 0 && e.pending !== void 0 && e.data !== void 0;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-
|
|
1
|
+
import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-D4oa5qLu.mjs";
|
|
2
2
|
import { d as ku } from "./dijkstra-BZM-8g-B.mjs";
|
|
3
|
-
import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-
|
|
4
|
-
import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-
|
|
3
|
+
import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-CIwNo6kY.mjs";
|
|
4
|
+
import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-G7Dlm7ed.mjs";
|
|
5
5
|
let Ju = class extends Fu {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(e), this.events = new er.EventEmitter(), this.hasRegisteredEventListeners = !1, this.connection = this.setConnection(e), this.connection.connected && this.registerEventListeners();
|
|
@@ -17,10 +17,10 @@ var qt = (r, e, t, n) => ({
|
|
|
17
17
|
return b(r, e, n);
|
|
18
18
|
}
|
|
19
19
|
}), A = (r, e, t) => (It(r, e, "access private method"), t);
|
|
20
|
-
import { r as w0 } from "./chain-
|
|
21
|
-
import { E as T0, a as Pt, b as E0, c as x0, _ as N0 } from "./evm-
|
|
22
|
-
import { c as v0 } from "./create-
|
|
23
|
-
import { by as O0, c8 as A0, at as k0 } from "./index-
|
|
20
|
+
import { r as w0 } from "./chain-Cc-vL0Ji.mjs";
|
|
21
|
+
import { E as T0, a as Pt, b as E0, c as x0, _ as N0 } from "./evm-B5hnoH2O.mjs";
|
|
22
|
+
import { c as v0 } from "./create-BIAJIVSg.mjs";
|
|
23
|
+
import { by as O0, c8 as A0, at as k0 } from "./index-D4oa5qLu.mjs";
|
|
24
24
|
class I0 {
|
|
25
25
|
constructor(e, t, n, s, i = !1) {
|
|
26
26
|
u(this, "transaction");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var h = (i, e, t) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var o = (i, e, t) => (h(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { bp as w, au as p, at as g } from "./index-
|
|
5
|
-
import { A as u } from "./aptos-
|
|
6
|
-
import { c as l } from "./create-
|
|
7
|
-
import { r as f } from "./chain-
|
|
4
|
+
import { bp as w, au as p, at as g } from "./index-D4oa5qLu.mjs";
|
|
5
|
+
import { A as u } from "./aptos-CRkEBLid.mjs";
|
|
6
|
+
import { c as l } from "./create-BIAJIVSg.mjs";
|
|
7
|
+
import { r as f } from "./chain-Cc-vL0Ji.mjs";
|
|
8
8
|
class c {
|
|
9
9
|
constructor(e, t, r, s) {
|
|
10
10
|
o(this, "network");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as P,
|
|
1
|
+
import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-D4oa5qLu.mjs";
|
|
2
2
|
var Je = {}, Qe = { exports: {} }, je = {};
|
|
3
3
|
(function(o) {
|
|
4
4
|
o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
|
|
@@ -33,13 +33,13 @@ var Je = {}, Qe = { exports: {} }, je = {};
|
|
|
33
33
|
}
|
|
34
34
|
r = null;
|
|
35
35
|
})(je);
|
|
36
|
-
var
|
|
36
|
+
var qe = {}, We = je, ft = Ye, et = Ze, Ae = qe.readyStates = {
|
|
37
37
|
UNSENT: 0,
|
|
38
38
|
OPENED: 1,
|
|
39
39
|
HEADERS_RECEIVED: 2,
|
|
40
40
|
LOADING: 3,
|
|
41
41
|
DONE: 4
|
|
42
|
-
}, $e =
|
|
42
|
+
}, $e = qe.IncomingMessage = function(o, r, h, f) {
|
|
43
43
|
var n = this;
|
|
44
44
|
if (et.Readable.call(n), n._mode = h, n.headers = {}, n.rawHeaders = [], n.trailers = {}, n.rawTrailers = [], n.on("end", function() {
|
|
45
45
|
Z.process.nextTick(function() {
|
|
@@ -147,11 +147,11 @@ $e.prototype._onXHRProgress = function(o) {
|
|
|
147
147
|
}
|
|
148
148
|
r._xhr.readyState === Ae.DONE && r._mode !== "ms-stream" && (o(!0), r.push(null));
|
|
149
149
|
};
|
|
150
|
-
var he = je, ht = Ye
|
|
150
|
+
var he = je, ht = Ye, tt = qe, ke = Ze, ut = tt.IncomingMessage, Ke = tt.readyStates;
|
|
151
151
|
function ct(o, r) {
|
|
152
152
|
return he.fetch && r ? "fetch" : he.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : he.msstream ? "ms-stream" : he.arraybuffer && o ? "arraybuffer" : "text";
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var S = Qe.exports = function(o) {
|
|
155
155
|
var r = this;
|
|
156
156
|
ke.Writable.call(r), r._opts = o, r._body = [], r._headers = {}, o.auth && r.setHeader("Authorization", "Basic " + Z.Buffer.from(o.auth).toString("base64")), Object.keys(o.headers).forEach(function(n) {
|
|
157
157
|
r.setHeader(n, o.headers[n]);
|
|
@@ -171,23 +171,23 @@ var I = Qe.exports = function(o) {
|
|
|
171
171
|
r._onFinish();
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
ht(
|
|
175
|
-
|
|
174
|
+
ht(S, ke.Writable);
|
|
175
|
+
S.prototype.setHeader = function(o, r) {
|
|
176
176
|
var h = this, f = o.toLowerCase();
|
|
177
177
|
pt.indexOf(f) === -1 && (h._headers[f] = {
|
|
178
178
|
name: o,
|
|
179
179
|
value: r
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
S.prototype.getHeader = function(o) {
|
|
183
183
|
var r = this._headers[o.toLowerCase()];
|
|
184
184
|
return r ? r.value : null;
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
S.prototype.removeHeader = function(o) {
|
|
187
187
|
var r = this;
|
|
188
188
|
delete r._headers[o.toLowerCase()];
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
S.prototype._onFinish = function() {
|
|
191
191
|
var o = this;
|
|
192
192
|
if (!o._destroyed) {
|
|
193
193
|
var r = o._opts;
|
|
@@ -267,43 +267,43 @@ function lt(o) {
|
|
|
267
267
|
return !1;
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
S.prototype._onXHRProgress = function() {
|
|
271
271
|
var o = this;
|
|
272
272
|
o._resetTimers(!1), !(!lt(o._xhr) || o._destroyed) && (o._response || o._connect(), o._response._onXHRProgress(o._resetTimers.bind(o)));
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
S.prototype._connect = function() {
|
|
275
275
|
var o = this;
|
|
276
276
|
o._destroyed || (o._response = new ut(o._xhr, o._fetchResponse, o._mode, o._resetTimers.bind(o)), o._response.on("error", function(r) {
|
|
277
277
|
o.emit("error", r);
|
|
278
278
|
}), o.emit("response", o._response));
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
S.prototype._write = function(o, r, h) {
|
|
281
281
|
var f = this;
|
|
282
282
|
f._body.push(o), h();
|
|
283
283
|
};
|
|
284
|
-
|
|
284
|
+
S.prototype._resetTimers = function(o) {
|
|
285
285
|
var r = this;
|
|
286
286
|
P.clearTimeout(r._socketTimer), r._socketTimer = null, o ? (P.clearTimeout(r._fetchTimer), r._fetchTimer = null) : r._socketTimeout && (r._socketTimer = P.setTimeout(function() {
|
|
287
287
|
r.emit("timeout");
|
|
288
288
|
}, r._socketTimeout));
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
S.prototype.abort = S.prototype.destroy = function(o) {
|
|
291
291
|
var r = this;
|
|
292
292
|
r._destroyed = !0, r._resetTimers(!0), r._response && (r._response._destroyed = !0), r._xhr ? r._xhr.abort() : r._fetchAbortController && r._fetchAbortController.abort(), o && r.emit("error", o);
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
S.prototype.end = function(o, r, h) {
|
|
295
295
|
var f = this;
|
|
296
296
|
typeof o == "function" && (h = o, o = void 0), ke.Writable.prototype.end.call(f, o, r, h);
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
S.prototype.setTimeout = function(o, r) {
|
|
299
299
|
var h = this;
|
|
300
300
|
r && h.once("timeout", r), h._socketTimeout = o, h._resetTimers(!1);
|
|
301
301
|
};
|
|
302
|
-
|
|
302
|
+
S.prototype.flushHeaders = function() {
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
S.prototype.setNoDelay = function() {
|
|
305
305
|
};
|
|
306
|
-
|
|
306
|
+
S.prototype.setSocketKeepAlive = function() {
|
|
307
307
|
};
|
|
308
308
|
var pt = [
|
|
309
309
|
"accept-charset",
|
|
@@ -398,14 +398,14 @@ var gt = {
|
|
|
398
398
|
509: "Bandwidth Limit Exceeded",
|
|
399
399
|
510: "Not Extended",
|
|
400
400
|
511: "Network Authentication Required"
|
|
401
|
-
}, He = { exports: {} },
|
|
401
|
+
}, He = { exports: {} }, xe = { exports: {} };
|
|
402
402
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
403
|
-
|
|
403
|
+
xe.exports;
|
|
404
404
|
(function(o, r) {
|
|
405
405
|
(function(h) {
|
|
406
406
|
var f = r && !r.nodeType && r, n = o && !o.nodeType && o, g = typeof P == "object" && P;
|
|
407
407
|
(g.global === g || g.window === g || g.self === g) && (h = g);
|
|
408
|
-
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128,
|
|
408
|
+
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128, I = "-", Oe = /^xn--/, Ee = /[^\x20-\x7E]/, Ue = /[\x2E\u3002\uFF0E\uFF61]/g, Le = {
|
|
409
409
|
overflow: "Overflow: input needs wider integers to process",
|
|
410
410
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
411
411
|
"invalid-input": "Invalid input"
|
|
@@ -448,25 +448,25 @@ qe.exports;
|
|
|
448
448
|
return M(b + (pe + 1) * i / (i + m));
|
|
449
449
|
}
|
|
450
450
|
function we(i) {
|
|
451
|
-
var p = [], y = i.length, b, w = 0, U = ae,
|
|
452
|
-
for (R = i.lastIndexOf(
|
|
451
|
+
var p = [], y = i.length, b, w = 0, U = ae, x = te, R, N, B, G, L, H, k, V, Q;
|
|
452
|
+
for (R = i.lastIndexOf(I), R < 0 && (R = 0), N = 0; N < R; ++N)
|
|
453
453
|
i.charCodeAt(N) >= 128 && J("not-basic"), p.push(i.charCodeAt(N));
|
|
454
454
|
for (B = R > 0 ? R + 1 : 0; B < y; ) {
|
|
455
|
-
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <=
|
|
455
|
+
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <= x ? T : H >= x + C ? C : H - x, !(k < V); H += v)
|
|
456
456
|
Q = v - V, L > M(a / Q) && J("overflow"), L *= Q;
|
|
457
|
-
b = p.length + 1,
|
|
457
|
+
b = p.length + 1, x = ne(w - G, b, G == 0), M(w / b) > a - U && J("overflow"), U += M(w / b), w %= b, p.splice(w++, 0, U);
|
|
458
458
|
}
|
|
459
459
|
return ue(p);
|
|
460
460
|
}
|
|
461
461
|
function Re(i) {
|
|
462
|
-
var p, y, b, w, U,
|
|
463
|
-
for (i = Te(i), k = i.length, p = ae, y = 0, U = te,
|
|
464
|
-
L = i[
|
|
465
|
-
for (b = w = H.length, w && H.push(
|
|
466
|
-
for (R = a,
|
|
467
|
-
L = i[
|
|
468
|
-
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R,
|
|
469
|
-
if (L = i[
|
|
462
|
+
var p, y, b, w, U, x, R, N, B, G, L, H = [], k, V, Q, me;
|
|
463
|
+
for (i = Te(i), k = i.length, p = ae, y = 0, U = te, x = 0; x < k; ++x)
|
|
464
|
+
L = i[x], L < 128 && H.push(re(L));
|
|
465
|
+
for (b = w = H.length, w && H.push(I); b < k; ) {
|
|
466
|
+
for (R = a, x = 0; x < k; ++x)
|
|
467
|
+
L = i[x], L >= p && L < R && (R = L);
|
|
468
|
+
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R, x = 0; x < k; ++x)
|
|
469
|
+
if (L = i[x], L < p && ++y > a && J("overflow"), L == p) {
|
|
470
470
|
for (N = y, B = v; G = B <= U ? T : B >= U + C ? C : B - U, !(N < G); B += v)
|
|
471
471
|
me = N - G, Q = v - G, H.push(
|
|
472
472
|
re(ce(G + me % Q, 0))
|
|
@@ -482,7 +482,7 @@ qe.exports;
|
|
|
482
482
|
return Oe.test(p) ? we(p.slice(4).toLowerCase()) : p;
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Se(i) {
|
|
486
486
|
return be(i, function(p) {
|
|
487
487
|
return Ee.test(p) ? "xn--" + Re(p) : p;
|
|
488
488
|
});
|
|
@@ -507,7 +507,7 @@ qe.exports;
|
|
|
507
507
|
},
|
|
508
508
|
decode: we,
|
|
509
509
|
encode: Re,
|
|
510
|
-
toASCII:
|
|
510
|
+
toASCII: Se,
|
|
511
511
|
toUnicode: Pe
|
|
512
512
|
}, f && n)
|
|
513
513
|
if (o.exports == f)
|
|
@@ -518,8 +518,8 @@ qe.exports;
|
|
|
518
518
|
else
|
|
519
519
|
h.punycode = u;
|
|
520
520
|
})(P);
|
|
521
|
-
})(
|
|
522
|
-
var _t =
|
|
521
|
+
})(xe, xe.exports);
|
|
522
|
+
var _t = xe.exports;
|
|
523
523
|
(function(o, r) {
|
|
524
524
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
525
525
|
var h = _t, f = it;
|
|
@@ -539,8 +539,8 @@ var _t = qe.exports;
|
|
|
539
539
|
isNullOrUndefined: function(e) {
|
|
540
540
|
return e == null;
|
|
541
541
|
}
|
|
542
|
-
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae =
|
|
543
|
-
function
|
|
542
|
+
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae = I;
|
|
543
|
+
function I() {
|
|
544
544
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
545
545
|
}
|
|
546
546
|
var Oe = /^([a-z0-9.+-]+:)/i, Ee = /:[0-9]*$/, Ue = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Le = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -563,12 +563,12 @@ var _t = qe.exports;
|
|
|
563
563
|
"file:": !0
|
|
564
564
|
}, ce = u.default;
|
|
565
565
|
function ne(e, s, t) {
|
|
566
|
-
if (e && T.isObject(e) && e instanceof
|
|
566
|
+
if (e && T.isObject(e) && e instanceof I)
|
|
567
567
|
return e;
|
|
568
|
-
var l = new
|
|
568
|
+
var l = new I();
|
|
569
569
|
return l.parse(e, s, t), l;
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
I.prototype.parse = function(e, s, t) {
|
|
572
572
|
if (!T.isString(e))
|
|
573
573
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
|
|
574
574
|
var l = e.indexOf("?"), _ = l !== -1 && l < e.indexOf("#") ? "?" : "#", D = e.split(_), j = /\\/g;
|
|
@@ -579,17 +579,17 @@ var _t = qe.exports;
|
|
|
579
579
|
if (W)
|
|
580
580
|
return this.path = c, this.href = c, this.pathname = W[1], W[2] ? (this.search = W[2], s ? this.query = ce.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : s && (this.search = "", this.query = {}), this;
|
|
581
581
|
}
|
|
582
|
-
var
|
|
583
|
-
if (
|
|
584
|
-
|
|
585
|
-
var fe =
|
|
586
|
-
this.protocol = fe, c = c.substr(
|
|
582
|
+
var q = Oe.exec(c);
|
|
583
|
+
if (q) {
|
|
584
|
+
q = q[0];
|
|
585
|
+
var fe = q.toLowerCase();
|
|
586
|
+
this.protocol = fe, c = c.substr(q.length);
|
|
587
587
|
}
|
|
588
|
-
if (t ||
|
|
588
|
+
if (t || q || c.match(/^\/\/[^@\/]+@[^@\/]+/)) {
|
|
589
589
|
var ve = c.substr(0, 2) === "//";
|
|
590
|
-
ve && !(
|
|
590
|
+
ve && !(q && ue[q]) && (c = c.substr(2), this.slashes = !0);
|
|
591
591
|
}
|
|
592
|
-
if (!ue[
|
|
592
|
+
if (!ue[q] && (ve || q && !oe[q])) {
|
|
593
593
|
for (var F = -1, O = 0; O < ie.length; O++) {
|
|
594
594
|
var ee = c.indexOf(ie[O]);
|
|
595
595
|
ee !== -1 && (F === -1 || ee < F) && (F = ee);
|
|
@@ -606,7 +606,7 @@ var _t = qe.exports;
|
|
|
606
606
|
for (var d = this.hostname.split(/\./), O = 0, E = d.length; O < E; O++) {
|
|
607
607
|
var K = d[O];
|
|
608
608
|
if (K && !K.match(de)) {
|
|
609
|
-
for (var z = "", X = 0,
|
|
609
|
+
for (var z = "", X = 0, Ie = K.length; X < Ie; X++)
|
|
610
610
|
K.charCodeAt(X) > 127 ? z += "x" : z += K[X];
|
|
611
611
|
if (!z.match(de)) {
|
|
612
612
|
var se = d.slice(0, O), Y = d.slice(O + 1), le = K.match(be);
|
|
@@ -637,9 +637,9 @@ var _t = qe.exports;
|
|
|
637
637
|
return this.href = this.format(), this;
|
|
638
638
|
};
|
|
639
639
|
function we(e) {
|
|
640
|
-
return T.isString(e) && (e = ne(e)), e instanceof
|
|
640
|
+
return T.isString(e) && (e = ne(e)), e instanceof I ? e.format() : I.prototype.format.call(e);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
I.prototype.format = function() {
|
|
643
643
|
var e = this.auth || "";
|
|
644
644
|
e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
|
|
645
645
|
var s = this.protocol || "", t = this.pathname || "", l = this.hash || "", _ = !1, D = "";
|
|
@@ -652,18 +652,18 @@ var _t = qe.exports;
|
|
|
652
652
|
function Re(e, s) {
|
|
653
653
|
return ne(e, !1, !0).resolve(s);
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
I.prototype.resolve = function(e) {
|
|
656
656
|
return this.resolveObject(ne(e, !1, !0)).format();
|
|
657
657
|
};
|
|
658
658
|
function Pe(e, s) {
|
|
659
659
|
return e ? ne(e, !1, !0).resolveObject(s) : s;
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
I.prototype.resolveObject = function(e) {
|
|
662
662
|
if (T.isString(e)) {
|
|
663
|
-
var s = new
|
|
663
|
+
var s = new I();
|
|
664
664
|
s.parse(e, !1, !0), e = s;
|
|
665
665
|
}
|
|
666
|
-
for (var t = new
|
|
666
|
+
for (var t = new I(), l = Object.keys(this), _ = 0; _ < l.length; _++) {
|
|
667
667
|
var D = l[_];
|
|
668
668
|
t[D] = this[D];
|
|
669
669
|
}
|
|
@@ -678,8 +678,8 @@ var _t = qe.exports;
|
|
|
678
678
|
}
|
|
679
679
|
if (e.protocol && e.protocol !== t.protocol) {
|
|
680
680
|
if (!oe[e.protocol]) {
|
|
681
|
-
for (var
|
|
682
|
-
var ve =
|
|
681
|
+
for (var q = Object.keys(e), fe = 0; fe < q.length; fe++) {
|
|
682
|
+
var ve = q[fe];
|
|
683
683
|
t[ve] = e[ve];
|
|
684
684
|
}
|
|
685
685
|
return t.href = t.format(), t;
|
|
@@ -711,12 +711,12 @@ var _t = qe.exports;
|
|
|
711
711
|
}
|
|
712
712
|
if (!d.length)
|
|
713
713
|
return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
|
|
714
|
-
for (var X = d.slice(-1)[0],
|
|
714
|
+
for (var X = d.slice(-1)[0], Ie = (t.host || e.host || d.length > 1) && (X === "." || X === "..") || X === "", se = 0, Y = d.length; Y >= 0; Y--)
|
|
715
715
|
X = d[Y], X === "." ? d.splice(Y, 1) : X === ".." ? (d.splice(Y, 1), se++) : se && (d.splice(Y, 1), se--);
|
|
716
716
|
if (!$ && !ge)
|
|
717
717
|
for (; se--; se)
|
|
718
718
|
d.unshift("..");
|
|
719
|
-
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""),
|
|
719
|
+
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""), Ie && d.join("/").substr(-1) !== "/" && d.push("");
|
|
720
720
|
var le = d[0] === "" || d[0] && d[0].charAt(0) === "/";
|
|
721
721
|
if (K) {
|
|
722
722
|
t.hostname = t.host = le ? "" : d.length ? d.shift() : "";
|
|
@@ -724,11 +724,11 @@ var _t = qe.exports;
|
|
|
724
724
|
z && (t.auth = z.shift(), t.host = t.hostname = z.shift());
|
|
725
725
|
}
|
|
726
726
|
return $ = $ || t.host && d.length, $ && !le && d.unshift(""), d.length ? t.pathname = d.join("/") : (t.pathname = null, t.path = null), (!T.isNull(t.pathname) || !T.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = e.auth || t.auth, t.slashes = t.slashes || e.slashes, t.href = t.format(), t;
|
|
727
|
-
},
|
|
727
|
+
}, I.prototype.parseHost = function() {
|
|
728
728
|
var e = this.host, s = Ee.exec(e);
|
|
729
729
|
s && (s = s[0], s !== ":" && (this.port = s.substr(1)), e = e.substr(0, e.length - s.length)), e && (this.hostname = e);
|
|
730
730
|
};
|
|
731
|
-
function
|
|
731
|
+
function Se(e, s) {
|
|
732
732
|
for (var t = 0, l = e.length - 1; l >= 0; l--) {
|
|
733
733
|
var _ = e[l];
|
|
734
734
|
_ === "." ? e.splice(l, 1) : _ === ".." ? (e.splice(l, 1), t++) : t && (e.splice(l, 1), t--);
|
|
@@ -747,7 +747,7 @@ var _t = qe.exports;
|
|
|
747
747
|
continue;
|
|
748
748
|
e = l + "/" + e, s = l.charAt(0) === "/";
|
|
749
749
|
}
|
|
750
|
-
return e =
|
|
750
|
+
return e = Se(p(e.split("/"), function(_) {
|
|
751
751
|
return !!_;
|
|
752
752
|
}), !s).join("/"), (s ? "/" : "") + e || ".";
|
|
753
753
|
}
|
|
@@ -782,7 +782,7 @@ var _t = qe.exports;
|
|
|
782
782
|
), U = (
|
|
783
783
|
/** @type {resolveImport}*/
|
|
784
784
|
m
|
|
785
|
-
),
|
|
785
|
+
), x = (
|
|
786
786
|
/** @type {UrlImport}*/
|
|
787
787
|
ae
|
|
788
788
|
), R = y.URL, N = y.URLSearchParams, B = /%/g, G = /\\/g, L = /\n/g, H = /\r/g, k = /\t/g, V = 47;
|
|
@@ -859,15 +859,15 @@ var _t = qe.exports;
|
|
|
859
859
|
return b(s);
|
|
860
860
|
if (typeof t != "object" || t === null)
|
|
861
861
|
throw new TypeError('The "options" argument must be of type object.');
|
|
862
|
-
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0,
|
|
863
|
-
return j || (
|
|
862
|
+
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0, q = new R(s.toString());
|
|
863
|
+
return j || (q.username = "", q.password = ""), c || (q.hash = ""), W || (q.search = ""), q.toString();
|
|
864
864
|
}
|
|
865
865
|
), Ve = {
|
|
866
866
|
format: Xe,
|
|
867
867
|
parse: w,
|
|
868
868
|
resolve: U,
|
|
869
869
|
resolveObject: A,
|
|
870
|
-
Url:
|
|
870
|
+
Url: x,
|
|
871
871
|
URL: R,
|
|
872
872
|
URLSearchParams: N,
|
|
873
873
|
domainToASCII: De,
|
|
@@ -875,11 +875,11 @@ var _t = qe.exports;
|
|
|
875
875
|
pathToFileURL: Ge,
|
|
876
876
|
fileURLToPath: ze
|
|
877
877
|
};
|
|
878
|
-
r.URL = R, r.URLSearchParams = N, r.Url =
|
|
878
|
+
r.URL = R, r.URLSearchParams = N, r.Url = x, r.default = Ve, r.domainToASCII = De, r.domainToUnicode = Be, r.fileURLToPath = ze, r.format = Xe, r.parse = w, r.pathToFileURL = Ge, r.resolve = U, r.resolveObject = A, r = o.exports = Ve;
|
|
879
879
|
})(He, He.exports);
|
|
880
880
|
var rt = He.exports;
|
|
881
881
|
(function(o) {
|
|
882
|
-
var r = dt, h =
|
|
882
|
+
var r = dt, h = qe, f = mt, n = gt, g = rt, u = o;
|
|
883
883
|
u.request = function(a, v) {
|
|
884
884
|
typeof a == "string" ? a = g.parse(a) : a = f(a);
|
|
885
885
|
var T = P.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", C = a.protocol || T, m = a.hostname || a.host, A = a.port, te = a.path || "/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty;var H=(o,e,t)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var p=(o,e,t)=>(H(o,typeof e!="symbol"?e+"":e,t),t);const n=require("./index-DfYc88fY.js"),l=require("./algorand-BOA88Yi9.js"),z=require("./create-Bpjnlpg_.js"),$=require("./chain-NLYiTi92.js");class K{constructor(e,t,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=t,this.chain=r,this.description=s,this.parallelizable=i}}const V=1002e3,U=15,L=127,C=8,N=L*C,F=L*U,O=C*F,y={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,t)=>{if(typeof o=="bigint"&&(o=l.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=y.encodingLength(o);if(e=e||new ArrayBuffer(r),t=t||0,e.byteLength<t+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,t);let i=0;for(;y._limit<o;)s[i++]=o&y._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let t=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");t+=(s&y._limit)<<r*7,r++}while(128<=s);return t}},u={forMessageId:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=n.bignum.toBytes(BigInt(n.toChainId(e.chain)),2),i=n.bytes.concat(s,r);return u.fromData({appId:o,appAddress:t,idx:e.sequence/BigInt(O),address:i})},forWrappedAsset:(o,e)=>{if(n.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(n.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:e,address:n.bytes.encode("native")})},forGuardianSet:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(e),address:n.bytes.encode("guardian")})},forEmitter:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[n.hex.encode(y.encode(o))]:[n.hex.encode(y.encode(o.length)),n.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],t=n.hex.decode(e.join(""));return new n.LogicSigAccount(t)},decodeLocalState:async(o,e,t)=>{let r;try{const a=await o.accountApplicationInformation(t,l.safeBigIntToNumber(e)).do();r=n.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=n.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=n.b64.decode(a.key)[0],A=n.b64.decode(a.value.bytes);i.set(g,A)}const d=[];for(let a=0;a<U;a++)i.has(a)&&d.push(i.get(a));return n.bytes.concat(...d)},checkBitsSet:async(o,e,t,r)=>{let s=!1,i;const d=await o.accountInformation(t).do(),g=n.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(m=>{BigInt(m.id)===e&&(i=m.keyValue)}),(i==null?void 0:i.length)===0)return s;const A=BigInt(O),h=BigInt(8),b=r/A*A,x=l.safeBigIntToNumber(r-b),w=Math.floor(x/N),I=Math.floor((x-w*N)/8),_=n.b64.encode(n.bignum.toBytes(w,1));return i==null||i.forEach(m=>{if(m.key===_){const k=n.dist.Buffer.from(m.value.bytes,"base64"),S=1<<l.safeBigIntToNumber(r%h);s=(k[I]&S)!=0;return}}),s},storageAccountExists:async(o,e,t)=>{try{const r=await o.accountApplicationInformation(e,l.safeBigIntToNumber(t)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,t,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=t,this.connection=r,this.contracts=s,this.chainId=n.toChainId(t),!s.coreBridge)throw new Error(`Core contract address for chain ${t} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=n.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${t} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=n.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,t,r){const s=new l.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,t,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,t){const[r,s]=await l.AlgorandPlatform.chainFromRpc(e),i=t[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,t){const r=new l.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const h of g)yield this.createUnsignedTx(h,"Core.publishMessage",!0);const A=n.makeApplicationCallTxnFromObject({from:s,appIndex:l.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,t,n.bignum.toBytes(0n,8)],accounts:a,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:A},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(l.safeBigIntToNumber(this.coreAppId)).do(),r=(s=n.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r)}parseTx(e){const t=[];if(e.innerTxns&&e.innerTxns.length>0&&t.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return t;const r=e.txn.txn.apaa??[];if(r.length!==3||!n.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return t;const s=n.bignum.decode(e.logs[0]),i=new l.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=n.bignum.decode(r[2]);return t.push(z.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),t}static async maybeCreateStorageTx(e,t,r,s,i){const d=n.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const A=n.makePaymentTxnWithSuggestedParamsFromObject({from:t,to:a,amount:V,suggestedParams:i});A.fee=A.fee*2,g.push({tx:A});const h=n.makeApplicationOptInTxnFromObject({from:a,appIndex:l.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return h.fee=0,g.push({tx:h,signer:{address:s.address(),signTxn:b=>Promise.resolve(n.signLogicSigTransaction(b,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,t,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:A,txs:h}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...h);const b=u.forGuardianSet(t,s.guardianSet),{accounts:[x],txs:w}=await c.maybeCreateStorageTx(e,i,t,b,d);a.push(...w);let I=[...A,x];const _=await u.decodeLocalState(e,t,x),m=n.keccak_256(s.hash),k=s.signatures.length,S=Math.ceil(k/c.MAX_SIGS_PER_TXN),E=20,v=new n.LogicSigAccount(c.ALGO_VERIFY);for(let R=0;R<S;R++){const G=R*c.MAX_SIGS_PER_TXN,B=s.signatures.slice(G,G+c.MAX_SIGS_PER_TXN),Y=B.length*E,X=new Uint8Array(Y);for(let f=0;f<B.length;f++){const j=B[f],q=_.slice(j.guardianIndex*E+1,(j.guardianIndex+1)*E+1);X.set(q,f*20)}const P=n.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,n.bytes.concat(...B.map(f=>n.bytes.concat(new Uint8Array([f.guardianIndex]),f.signature.encode()))),X,m],accounts:I,appIndex:l.safeBigIntToNumber(t),from:c.ALGO_VERIFY_HASH,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});P.fee=0,a.push({tx:P,signer:{address:v.address(),signTxn:f=>Promise.resolve(n.signLogicSigTransaction(f,v).blob)}})}const M=n.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,n.serialize(s)],accounts:I,appIndex:l.safeBigIntToNumber(t),from:i,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});return M.fee=M.fee*(2+S),a.push({tx:M}),{accounts:I,txs:a}}createUnsignedTx(e,t,r=!0){return new K(e,this.network,this.chain,t,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",n.b64.encode("MessageFee")),p(c,"verifyVaa",n.bytes.encode("verifyVAA")),p(c,"verifySigs",n.bytes.encode("verifySigs")),p(c,"publishMessage",n.bytes.encode("publishMessage"));let T=c;$.registerProtocol("Algorand","WormholeCore",T);const Z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:T,BITS_PER_BYTE:C,BITS_PER_KEY:N,MAX_BITS:O,MAX_BYTES:F,MAX_BYTES_PER_KEY:L,MAX_KEYS:U,SEED_AMT:V,StorageLogicSig:u,varint:y},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=K;exports.AlgorandWormholeCore=T;exports.StorageLogicSig=u;exports.index=Z;
|
|
1
|
+
"use strict";var D=Object.defineProperty;var H=(o,e,t)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var p=(o,e,t)=>(H(o,typeof e!="symbol"?e+"":e,t),t);const n=require("./index-C1oy9Lkm.js"),l=require("./algorand-BizCMnCe.js"),z=require("./create-48Wkagqs.js"),$=require("./chain-BteoJHpg.js");class K{constructor(e,t,r,s,i=!1){p(this,"transaction");p(this,"network");p(this,"chain");p(this,"description");p(this,"parallelizable");this.transaction=e,this.network=t,this.chain=r,this.description=s,this.parallelizable=i}}const V=1002e3,U=15,L=127,C=8,N=L*C,F=L*U,O=C*F,y={_limit:127,encodingLength:o=>{let e=0;for(;o>=128;e++)o>>=7;return e+1},encode:(o,e,t)=>{if(typeof o=="bigint"&&(o=l.safeBigIntToNumber(o)),o<0)throw new RangeError("value must be unsigned");const r=y.encodingLength(o);if(e=e||new ArrayBuffer(r),t=t||0,e.byteLength<t+r)throw new RangeError("the buffer is too small to encode the number at the offset");const s=new Uint8Array(e,t);let i=0;for(;y._limit<o;)s[i++]=o&y._limit|128,o>>=7;return s[i]=Number(o),s},decode:(o,e=0)=>{let t=0,r=0,s;do{if(s=o[e+r],s===void 0)throw new RangeError("offset out of range");t+=(s&y._limit)<<r*7,r++}while(128<=s);return t}},u={forMessageId:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey,r=e.emitter.toUniversalAddress().toUint8Array(),s=n.bignum.toBytes(BigInt(n.toChainId(e.chain)),2),i=n.bytes.concat(s,r);return u.fromData({appId:o,appAddress:t,idx:e.sequence/BigInt(O),address:i})},forWrappedAsset:(o,e)=>{if(n.isNative(e.address))throw new Error("native asset cannot be a wrapped asset");const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(n.toChainId(e.chain)),address:e.address.toUniversalAddress().toUint8Array()})},forNativeAsset:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:e,address:n.bytes.encode("native")})},forGuardianSet:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:BigInt(e),address:n.bytes.encode("guardian")})},forEmitter:(o,e)=>{const t=n.decodeAddress(n.getApplicationAddress(o)).publicKey;return u.fromData({appId:o,appAddress:t,idx:0n,address:e})},_encode:o=>typeof o=="bigint"?[n.hex.encode(y.encode(o))]:[n.hex.encode(y.encode(o.length)),n.hex.encode(o)],fromData:o=>{const e=["0620010181",...u._encode(o.idx),"4880",...u._encode(o.address),"483110810612443119221244311881",...u._encode(o.appId),"1244312080",...u._encode(o.appAddress),"124431018100124431093203124431153203124422"],t=n.hex.decode(e.join(""));return new n.LogicSigAccount(t)},decodeLocalState:async(o,e,t)=>{let r;try{const a=await o.accountApplicationInformation(t,l.safeBigIntToNumber(e)).do();r=n.AccountApplicationResponse.from_obj_for_encoding(a).appLocalState}catch{return new Uint8Array}const s=n.b64.encode("meta");let i=new Map;for(const a of r.keyValue){if(a.key===s)continue;const g=n.b64.decode(a.key)[0],A=n.b64.decode(a.value.bytes);i.set(g,A)}const d=[];for(let a=0;a<U;a++)i.has(a)&&d.push(i.get(a));return n.bytes.concat(...d)},checkBitsSet:async(o,e,t,r)=>{let s=!1,i;const d=await o.accountInformation(t).do(),g=n.Account.from_obj_for_encoding(d).appsLocalState;if(g&&g.forEach(m=>{BigInt(m.id)===e&&(i=m.keyValue)}),(i==null?void 0:i.length)===0)return s;const A=BigInt(O),h=BigInt(8),b=r/A*A,x=l.safeBigIntToNumber(r-b),w=Math.floor(x/N),I=Math.floor((x-w*N)/8),_=n.b64.encode(n.bignum.toBytes(w,1));return i==null||i.forEach(m=>{if(m.key===_){const k=n.dist.Buffer.from(m.value.bytes,"base64"),S=1<<l.safeBigIntToNumber(r%h);s=(k[I]&S)!=0;return}}),s},storageAccountExists:async(o,e,t)=>{try{const r=await o.accountApplicationInformation(e,l.safeBigIntToNumber(t)).do();return Object.keys(r).length>0}catch{}return!1}},c=class c{constructor(e,t,r,s){p(this,"network");p(this,"chain");p(this,"connection");p(this,"contracts");p(this,"chainId");p(this,"coreAppId");p(this,"coreAppAddress");p(this,"tokenBridgeAppId");p(this,"tokenBridgeAppAddress");if(this.network=e,this.chain=t,this.connection=r,this.contracts=s,this.chainId=n.toChainId(t),!s.coreBridge)throw new Error(`Core contract address for chain ${t} not found`);const i=BigInt(s.coreBridge);if(this.coreAppId=i,this.coreAppAddress=n.getApplicationAddress(i),!s.tokenBridge)throw new Error(`TokenBridge contract address for chain ${t} not found`);const d=BigInt(s.tokenBridge);this.tokenBridgeAppId=d,this.tokenBridgeAppAddress=n.getApplicationAddress(d)}getGuardianSet(e){throw new Error("Method not implemented.")}async*verifyMessage(e,t,r){const s=new l.AlgorandAddress(e).toString(),i=await c.submitVAAHeader(this.connection,this.coreAppId,r??this.coreAppId,t,s);for(const d of i.txs)yield this.createUnsignedTx(d,"Core.verifyMessage")}static async fromRpc(e,t){const[r,s]=await l.AlgorandPlatform.chainFromRpc(e),i=t[s];if(i.network!==r)throw new Error(`Network mismatch: ${i.network} !== ${r}`);return new c(r,s,e,i.contracts)}async*publishMessage(e,t){const r=new l.AlgorandAddress(e),s=r.toString(),i=await this.connection.getTransactionParams().do(),d=u.forEmitter(this.coreAppId,r.toUint8Array()),{accounts:a,txs:g}=await c.maybeCreateStorageTx(this.connection,s,this.coreAppId,d,i);for(const h of g)yield this.createUnsignedTx(h,"Core.publishMessage",!0);const A=n.makeApplicationCallTxnFromObject({from:s,appIndex:l.safeBigIntToNumber(this.coreAppId),appArgs:[c.publishMessage,t,n.bignum.toBytes(0n,8)],accounts:a,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:i});yield this.createUnsignedTx({tx:A},"Core.publishMessage",!0)}async getMessageFee(){var s;const e=await this.connection.getApplicationByID(l.safeBigIntToNumber(this.coreAppId)).do(),r=(s=n.Application.from_obj_for_encoding(e).params.globalState)==null?void 0:s.find(i=>i.key===c.feeKey);return r?BigInt(r.value.uint):0n}async getGuardianSetIndex(){throw new Error("Not implemented")}async parseTransaction(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r).map(s=>({chain:s.emitterChain,emitter:s.emitterAddress,sequence:s.sequence}))}async parseMessages(e){const t=await this.connection.pendingTransactionInformation(e).do(),r=n.PendingTransactionResponse.from_obj_for_encoding(t);return this.parseTx(r)}parseTx(e){const t=[];if(e.innerTxns&&e.innerTxns.length>0&&t.push(...e.innerTxns.flatMap(g=>this.parseTx(g))),BigInt(e.txn.txn.apid??0)!==this.coreAppId||!e.logs||e.logs.length===0)return t;const r=e.txn.txn.apaa??[];if(r.length!==3||!n.bytes.equals(new Uint8Array(r[0]),c.publishMessage))return t;const s=n.bignum.decode(e.logs[0]),i=new l.AlgorandAddress(e.txn.txn.snd).toUniversalAddress(),d=new Uint8Array(r[1]),a=n.bignum.decode(r[2]);return t.push(z.createVAA("Uint8Array",{emitterChain:this.chain,emitterAddress:i,sequence:s,guardianSet:0,timestamp:0,consistencyLevel:0,nonce:Number(a),payload:d,signatures:[]})),t}static async maybeCreateStorageTx(e,t,r,s,i){const d=n.getApplicationAddress(r),a=s.address(),g=[];if(await u.storageAccountExists(e,a,r))return{accounts:[a],txs:g};i=i??await e.getTransactionParams().do();const A=n.makePaymentTxnWithSuggestedParamsFromObject({from:t,to:a,amount:V,suggestedParams:i});A.fee=A.fee*2,g.push({tx:A});const h=n.makeApplicationOptInTxnFromObject({from:a,appIndex:l.safeBigIntToNumber(r),rekeyTo:d,suggestedParams:i});return h.fee=0,g.push({tx:h,signer:{address:s.address(),signTxn:b=>Promise.resolve(n.signLogicSigTransaction(b,s).blob)}}),{accounts:[a],txs:g}}static async submitVAAHeader(e,t,r,s,i,d){d=d??await e.getTransactionParams().do();let a=[];const g=u.forMessageId(r,{chain:s.emitterChain,sequence:s.sequence,emitter:s.emitterAddress}),{accounts:A,txs:h}=await c.maybeCreateStorageTx(e,i,r,g,d);a.push(...h);const b=u.forGuardianSet(t,s.guardianSet),{accounts:[x],txs:w}=await c.maybeCreateStorageTx(e,i,t,b,d);a.push(...w);let I=[...A,x];const _=await u.decodeLocalState(e,t,x),m=n.keccak_256(s.hash),k=s.signatures.length,S=Math.ceil(k/c.MAX_SIGS_PER_TXN),E=20,v=new n.LogicSigAccount(c.ALGO_VERIFY);for(let R=0;R<S;R++){const G=R*c.MAX_SIGS_PER_TXN,B=s.signatures.slice(G,G+c.MAX_SIGS_PER_TXN),Y=B.length*E,X=new Uint8Array(Y);for(let f=0;f<B.length;f++){const j=B[f],q=_.slice(j.guardianIndex*E+1,(j.guardianIndex+1)*E+1);X.set(q,f*20)}const P=n.makeApplicationCallTxnFromObject({appArgs:[c.verifySigs,n.bytes.concat(...B.map(f=>n.bytes.concat(new Uint8Array([f.guardianIndex]),f.signature.encode()))),X,m],accounts:I,appIndex:l.safeBigIntToNumber(t),from:c.ALGO_VERIFY_HASH,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});P.fee=0,a.push({tx:P,signer:{address:v.address(),signTxn:f=>Promise.resolve(n.signLogicSigTransaction(f,v).blob)}})}const M=n.makeApplicationCallTxnFromObject({appArgs:[c.verifyVaa,n.serialize(s)],accounts:I,appIndex:l.safeBigIntToNumber(t),from:i,onComplete:n.OnApplicationComplete.NoOpOC,suggestedParams:d});return M.fee=M.fee*(2+S),a.push({tx:M}),{accounts:I,txs:a}}createUnsignedTx(e,t,r=!0){return new K(e,this.network,this.chain,t,r)}};p(c,"MAX_SIGS_PER_TXN",6),p(c,"ALGO_VERIFY_HASH","EZATROXX2HISIRZDRGXW4LRQ46Z6IUJYYIHU3PJGP7P5IQDPKVX42N767A"),p(c,"ALGO_VERIFY",new Uint8Array([6,32,4,1,0,32,20,38,1,0,49,32,50,3,18,68,49,1,35,18,68,49,16,129,6,18,68,54,26,1,54,26,3,54,26,2,136,0,3,68,34,67,53,2,53,1,53,0,40,53,240,40,53,241,52,0,21,53,5,35,53,3,35,53,4,52,3,52,5,12,65,0,68,52,1,52,0,52,3,129,65,8,34,88,23,52,0,52,3,34,8,36,88,52,0,52,3,129,33,8,36,88,7,0,53,241,53,240,52,2,52,4,37,88,52,240,52,241,80,2,87,12,20,18,68,52,3,129,66,8,53,3,52,4,37,8,53,4,66,255,180,34,137])),p(c,"feeKey",n.b64.encode("MessageFee")),p(c,"verifyVaa",n.bytes.encode("verifyVAA")),p(c,"verifySigs",n.bytes.encode("verifySigs")),p(c,"publishMessage",n.bytes.encode("publishMessage"));let T=c;$.registerProtocol("Algorand","WormholeCore",T);const Z=Object.freeze(Object.defineProperty({__proto__:null,AlgorandWormholeCore:T,BITS_PER_BYTE:C,BITS_PER_KEY:N,MAX_BITS:O,MAX_BYTES:F,MAX_BYTES_PER_KEY:L,MAX_KEYS:U,SEED_AMT:V,StorageLogicSig:u,varint:y},Symbol.toStringTag,{value:"Module"}));exports.AlgorandUnsignedTransaction=K;exports.AlgorandWormholeCore=T;exports.StorageLogicSig=u;exports.index=Z;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var lr = Object.defineProperty;
|
|
2
2
|
var fr = (t, e, n) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var B = (t, e, n) => (fr(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-
|
|
5
|
-
import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-
|
|
4
|
+
import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-DX6w1JtB.mjs";
|
|
5
|
+
import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-D4oa5qLu.mjs";
|
|
6
6
|
import { c as xr } from "./index-DpFNxVts.mjs";
|
|
7
|
-
import { S as qe, a as q, b as vn, _ as En } from "./solana-
|
|
8
|
-
import { r as Pn } from "./chain-
|
|
7
|
+
import { S as qe, a as q, b as vn, _ as En } from "./solana-BMm013WW.mjs";
|
|
8
|
+
import { r as Pn } from "./chain-Cc-vL0Ji.mjs";
|
|
9
9
|
class Wr extends TypeError {
|
|
10
10
|
constructor(e, n) {
|
|
11
11
|
let r;
|