@wormhole-foundation/wormhole-connect 3.0.0-beta.7-development → 3.0.0-beta.9-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 +48 -48
- package/dist/src/config/tokens.d.ts +0 -1
- package/dist/src/config/tokens.d.ts.map +1 -1
- package/dist/src/contexts/TokensContext.d.ts.map +1 -1
- package/dist/src/utils/errors.d.ts +1 -0
- package/dist/src/utils/errors.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/{account-QG_Hi4er.js → account-BSFuCEgk.js} +1 -1
- package/lib/{account-BK8xMTUI.mjs → account-y1ICRMSr.mjs} +1 -1
- package/lib/{address-B-_yHNB2.js → address-BwcXVurJ.js} +1 -1
- package/lib/{address-CNhzoegm.js → address-D8qNQEOW.js} +1 -1
- package/lib/{address-BWXkejmE.mjs → address-DaoiwqzU.mjs} +1 -1
- package/lib/{address-RcMobNYE.js → address-DnSRsubO.js} +7 -7
- package/lib/{address-CBux52Na.mjs → address-DqsMcbcT.mjs} +612 -588
- package/lib/{address-DKHa7TFU.mjs → address-S7wMItHX.mjs} +1 -1
- package/lib/{aptos-9aq-5gkF.mjs → aptos-CSVdIYqJ.mjs} +3 -3
- package/lib/{aptos-XxKO9242.js → aptos-C_j04MF5.js} +1 -1
- package/lib/{aptos-C180o9od.mjs → aptos-C_sLjrbm.mjs} +15 -15
- package/lib/{aptos-BZ2mcuTd.js → aptos-ma6bumqy.js} +2 -2
- package/lib/{base64-Dmj19Uvu.mjs → base64-B2xumR3a.mjs} +3 -2
- package/lib/{base64-BfY07bq5.js → base64-a1Dr6hMt.js} +1 -1
- package/lib/{blake2b-CgbIfNRX.mjs → blake2b-CR50AGep.mjs} +1 -1
- package/lib/{blake2b-CoM94_cH.js → blake2b-Dkm1d7Wp.js} +1 -1
- package/lib/{browser-ponyfill-BAEAyXvw.js → browser-ponyfill-BTt_ELXG.js} +1 -1
- package/lib/{browser-ponyfill-BecG2Lnb.mjs → browser-ponyfill-uCX78ltK.mjs} +1 -1
- package/lib/{ccip-CUqskd5M.mjs → ccip-69mFHkV9.mjs} +1 -1
- package/lib/{ccip-oytFtCzk.js → ccip-BFyWlloE.js} +1 -1
- package/lib/{chain-itK5uGYL.js → chain-Cio41-Lr.js} +1 -1
- package/lib/{chain-sKZNJgPZ.mjs → chain-DbmG-oEQ.mjs} +1 -1
- package/lib/{chunk-IMTC3J2M-DKLPKqnP.mjs → chunk-IMTC3J2M-CmFt3nz5.mjs} +137 -135
- package/lib/chunk-IMTC3J2M-NMBEZ4p8.js +471 -0
- package/lib/{constants-DrDsewBe.mjs → constants-JcrZQeMq.mjs} +3 -3
- package/lib/{constants-Bmrui4ZY.js → constants-lsjPx3va.js} +1 -1
- package/lib/{contract-MJZ8ZoSX.js → contract-CcVq6MSa.js} +1 -1
- package/lib/{contract-BVaUamai.mjs → contract-DrK81GRi.mjs} +109 -109
- package/lib/create-BtJgfMdJ.mjs +18 -0
- package/lib/{create-DO_-1_Hb.js → create-Q6N34YQz.js} +1 -1
- package/lib/{evm-IjnSHeSg.mjs → evm--hXXT-db.mjs} +9 -9
- package/lib/{evm-C-aa4dBG.mjs → evm-BBqhcxFC.mjs} +83 -83
- package/lib/{evm-D_r84vhS.js → evm-CNq2zXwl.js} +3 -3
- package/lib/{evm-ZSzF-61X.js → evm-l0300AWS.js} +2 -2
- package/lib/executor.js +470 -1
- package/lib/executor.mjs +7106 -560
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{index-aA-2Ygs3.mjs → index-98w8rrCe.mjs} +1 -1
- package/lib/{index-Bb8InrQU.mjs → index-9dr91dtY.mjs} +2 -2
- package/lib/{index-DNaxNpBa.js → index-BABC5__9.js} +1 -1
- package/lib/{index-CapdlI6H.js → index-BAjc-UZH.js} +1 -1
- package/lib/{index-Cx-ODuWg.mjs → index-BN-aj3dN.mjs} +4 -4
- package/lib/{index-BeQ668oT.js → index-BV7XVrd8.js} +1 -1
- package/lib/{index-CKaF7Gzs.mjs → index-BbUxOO56.mjs} +14 -14
- package/lib/{index-D3cDkU4S.js → index-BfPE3vDw.js} +1 -1
- package/lib/{index-Batb-GTa.mjs → index-BlCHxlUD.mjs} +5 -5
- package/lib/{index-CZYUYK5K.js → index-BnCQiOiA.js} +1 -1
- package/lib/{index-CsdQttEt.mjs → index-BqmCeCU_.mjs} +5 -5
- package/lib/{index-Ce0EI1tW.mjs → index-BtrXSq3R.mjs} +5 -5
- package/lib/{index-CE0rxdUf.js → index-C-ORpsiU.js} +1 -1
- package/lib/{index-DyE-3pz1.js → index-C0un9IYm.js} +1 -1
- package/lib/{index-DdvRmaTh.mjs → index-C4HPXgbm.mjs} +7 -7
- package/lib/{index-DgIxcujP.mjs → index-COkYtNvE.mjs} +36 -36
- package/lib/{index-CLy98PXT.mjs → index-COs6VyCx.mjs} +13 -13
- package/lib/{index-43m4zMem.js → index-COsUDXFI.js} +1 -1
- package/lib/{index-B36we0ml.mjs → index-CUYHyKgr.mjs} +7 -7
- package/lib/{index-BcAXCy1h.js → index-CUyxr8OX.js} +1 -1
- package/lib/{index-DDBLdcME.mjs → index-CX0qxE9A.mjs} +11 -11
- package/lib/{index-C2Pe6i5V.js → index-CiFTvTwg.js} +1 -1
- package/lib/{index-DNcx7dMI.mjs → index-CofxOTyV.mjs} +5 -5
- package/lib/{index-BGqRY1Ww.js → index-CsR_y9ji.js} +1 -1
- package/lib/{index-CA5XKv-J.js → index-CuoxLyOv.js} +1 -1
- package/lib/{index-DRCX2iXw.js → index-CvEfOpn2.js} +1 -1
- package/lib/{index-CV3K6bKD.js → index-Cxwfq1al.js} +1 -1
- package/lib/{index-CjroDahP.mjs → index-D0tl0B36.mjs} +2 -2
- package/lib/{index-f_27F6WX.js → index-D4KtQtgE.js} +1 -1
- package/lib/{index-D2o0FZvZ.js → index-D74ZE0n9.js} +1 -1
- package/lib/{index-DkZjpCle.js → index-DLFGcXjy.js} +1 -1
- package/lib/{index-07cEoDZD.mjs → index-DNvr2HlM.mjs} +13 -13
- package/lib/{index-Cu7gFSJv.mjs → index-DPfKYdEf.mjs} +1 -1
- package/lib/{index-Bogu114a.js → index-Db3GFx2x.js} +1 -1
- package/lib/{index-Dt-63Ecw.js → index-DbJV-Hi3.js} +1 -1
- package/lib/{index-B-S6avdv.js → index-DebLDCcs.js} +1 -1
- package/lib/{index-DC1ot7tO.js → index-DjbQ-yfQ.js} +1 -1
- package/lib/{index-Cry2AYTm.mjs → index-DsKRmXnW.mjs} +3 -3
- package/lib/{index-FCA-cXcS.js → index-DtUeWT1n.js} +1 -1
- package/lib/{index-DyvQhGPY.mjs → index-DtfwfGsA.mjs} +2 -2
- package/lib/{index-DDBdrN7Y.mjs → index-DvozGHS-.mjs} +7070 -7093
- package/lib/{index-Cyo0tNu5.mjs → index-Dx7nqevs.mjs} +2 -2
- package/lib/{index-Blzzdktm.js → index-LJw0S70V.js} +1 -1
- package/lib/{index-rAnJYuJr.mjs → index-Nh2mSVy3.mjs} +9 -9
- package/lib/{index-B5XhLD_L.mjs → index-S_O9ybUy.mjs} +5 -5
- package/lib/{index-CIhJm6vf.js → index-S_dcknx7.js} +86 -86
- package/lib/{index-Dsaj5lf_.js → index-U1ceHkB6.js} +1 -1
- package/lib/{index-BUlzgqNa.mjs → index-Yp3NfcfI.mjs} +4 -4
- package/lib/{index-DRleG63r.mjs → index-Z48MvcFr.mjs} +1 -1
- package/lib/{index-B9hin5U8.mjs → index-ejTR4WLF.mjs} +5 -5
- package/lib/{index-BUfjw4S2.mjs → index-kyD2rWx8.mjs} +11 -11
- package/lib/{index-BL4H4RbP.js → index-lG1-neJv.js} +1 -1
- package/lib/{index-CuDLHfKb.mjs → index-sz4KACqf.mjs} +5 -5
- package/lib/{index-dpkTW-H8.js → index-vIUqmO0o.js} +1 -1
- package/lib/{index.es-MXzok_Dp.js → index.es-C4RhqFy8.js} +2 -2
- package/lib/{index.es-C6ziEcYX.mjs → index.es-D5O0G4Af.mjs} +7 -7
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/mayan.js +1 -1
- package/lib/mayan.mjs +10 -10
- package/lib/{mint-C3SdQH_S.mjs → mint-CKsi-DrV.mjs} +2 -2
- package/lib/{mint-BxtkCWBh.js → mint-DNcbNuI1.js} +1 -1
- package/lib/ntt.js +1 -1
- package/lib/ntt.mjs +10 -10
- package/lib/{platform-Czq0KkFa.mjs → platform-BCxJ-CNM.mjs} +7 -7
- package/lib/{platform-CG_VHRJU.js → platform-BqUizEYV.js} +1 -1
- package/lib/{platform-CUeBR_i4.mjs → platform-CB3TPh7I.mjs} +17 -17
- package/lib/{platform-CyTWPtDR.js → platform-CGIgJRY3.js} +1 -1
- package/lib/{platform-PNwsacZi.js → platform-D7pe3gG2.js} +1 -1
- package/lib/{platform-Droe0nZu.mjs → platform-DTVt42uH.mjs} +4 -4
- package/lib/provider-jsonrpc-DYBOGqdj.js +1 -0
- package/lib/{provider-jsonrpc-CVWSLk8g.mjs → provider-jsonrpc-MOE1VIOF.mjs} +155 -155
- package/lib/{sha3-BMK6V2DM.mjs → sha3-BZUtvEPh.mjs} +1 -1
- package/lib/{sha3-uufRWTnZ.js → sha3-c6o5MDKC.js} +1 -1
- package/lib/{signer-L9IdBy4K.js → signer-BAFbrQDv.js} +1 -1
- package/lib/{signer-CYkXKdE1.mjs → signer-CwtXMDcn.mjs} +25 -25
- package/lib/solana-Cg0N1W8e.js +1 -0
- package/lib/{solana-iU2xZ6yu.js → solana-DIO5mbHM.js} +1 -1
- package/lib/{solana-CE7DDmW7.mjs → solana-Dr5BmG1x.mjs} +6 -6
- package/lib/solana-mJ922Ek9.mjs +18 -0
- package/lib/{solanaEmbed.esm-BtaI5pum.mjs → solanaEmbed.esm-C4t2kCSL.mjs} +3 -3
- package/lib/{solanaEmbed.esm-DUsdVcC-.js → solanaEmbed.esm-D0xXx6VI.js} +1 -1
- package/lib/src/config/tokens.d.ts +0 -1
- package/lib/src/config/tokens.d.ts.map +1 -1
- package/lib/src/contexts/TokensContext.d.ts.map +1 -1
- package/lib/src/utils/errors.d.ts +1 -0
- package/lib/src/utils/errors.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/WalletConnector/Sidebar.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/{sui-BIE_b_7o.mjs → sui-AbsMI4yt.mjs} +3 -3
- package/lib/{sui-CNPKXqM6.js → sui-BSJIqJNt.js} +1 -1
- package/lib/{sui-Dva2w10T.js → sui-Bzh8kAZm.js} +1 -1
- package/lib/{sui-BJsKaZg2.mjs → sui-CZTSBdD4.mjs} +16 -16
- package/lib/{tokens-D4usSvOD.js → tokens-BUeRxOcP.js} +1 -1
- package/lib/{tokens-CQnhplD_.mjs → tokens-Vm--egzg.mjs} +4 -4
- package/lib/{units-CPUigdwl.js → units-LPlUOt3D.js} +1 -1
- package/lib/{units-YkCOGDr9.mjs → units-b10-QTSu.mjs} +28 -28
- package/lib/{unsignedTransaction-C0WXQMmv.mjs → unsignedTransaction-BJw0T6uN.mjs} +28 -28
- package/lib/{unsignedTransaction-DFUF8DSp.js → unsignedTransaction-CIkLJt6N.js} +1 -1
- package/lib/{web3-B3Usc-Qj.mjs → web3-BHuP7CTp.mjs} +7 -7
- package/lib/{web3-CjTx3huW.js → web3-SO_UBSxv.js} +1 -1
- package/package.json +2 -2
- package/lib/chunk-IMTC3J2M-D-un3eDX.js +0 -471
- package/lib/create-CQ6n4Ga8.mjs +0 -18
- package/lib/provider-jsonrpc-1gjszS3Q.js +0 -1
- package/lib/solana-BRQmi9BN.js +0 -1
- package/lib/solana-Bs7_C3BS.mjs +0 -18
|
@@ -24,7 +24,7 @@ function iu(n) {
|
|
|
24
24
|
});
|
|
25
25
|
}), t;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Qe = {}, ce = {}, $i = {};
|
|
28
28
|
$i.byteLength = Ch;
|
|
29
29
|
$i.toByteArray = Dh;
|
|
30
30
|
$i.fromByteArray = Fh;
|
|
@@ -799,12 +799,12 @@ uc.write = function(n, e, t, r, s, i) {
|
|
|
799
799
|
}), a.prototype.writeBigInt64BE = Yt(function(d, f = 0) {
|
|
800
800
|
return $(this, d, f, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
801
801
|
});
|
|
802
|
-
function
|
|
802
|
+
function Z(w, d, f, v, _, P) {
|
|
803
803
|
if (f + v > w.length) throw new RangeError("Index out of range");
|
|
804
804
|
if (f < 0) throw new RangeError("Index out of range");
|
|
805
805
|
}
|
|
806
806
|
function ee(w, d, f, v, _) {
|
|
807
|
-
return d = +d, f = f >>> 0, _ ||
|
|
807
|
+
return d = +d, f = f >>> 0, _ || Z(w, d, f, 4), t.write(w, d, f, v, 23, 4), f + 4;
|
|
808
808
|
}
|
|
809
809
|
a.prototype.writeFloatLE = function(d, f, v) {
|
|
810
810
|
return ee(this, d, f, !0, v);
|
|
@@ -812,7 +812,7 @@ uc.write = function(n, e, t, r, s, i) {
|
|
|
812
812
|
return ee(this, d, f, !1, v);
|
|
813
813
|
};
|
|
814
814
|
function Be(w, d, f, v, _) {
|
|
815
|
-
return d = +d, f = f >>> 0, _ ||
|
|
815
|
+
return d = +d, f = f >>> 0, _ || Z(w, d, f, 8), t.write(w, d, f, v, 52, 8), f + 8;
|
|
816
816
|
}
|
|
817
817
|
a.prototype.writeDoubleLE = function(d, f, v) {
|
|
818
818
|
return Be(this, d, f, !0, v);
|
|
@@ -1125,17 +1125,17 @@ it.env = {};
|
|
|
1125
1125
|
it.argv = [];
|
|
1126
1126
|
it.version = "";
|
|
1127
1127
|
it.versions = {};
|
|
1128
|
-
function
|
|
1129
|
-
}
|
|
1130
|
-
it.on =
|
|
1131
|
-
it.addListener =
|
|
1132
|
-
it.once =
|
|
1133
|
-
it.off =
|
|
1134
|
-
it.removeListener =
|
|
1135
|
-
it.removeAllListeners =
|
|
1136
|
-
it.emit =
|
|
1137
|
-
it.prependListener =
|
|
1138
|
-
it.prependOnceListener =
|
|
1128
|
+
function Zn() {
|
|
1129
|
+
}
|
|
1130
|
+
it.on = Zn;
|
|
1131
|
+
it.addListener = Zn;
|
|
1132
|
+
it.once = Zn;
|
|
1133
|
+
it.off = Zn;
|
|
1134
|
+
it.removeListener = Zn;
|
|
1135
|
+
it.removeAllListeners = Zn;
|
|
1136
|
+
it.emit = Zn;
|
|
1137
|
+
it.prependListener = Zn;
|
|
1138
|
+
it.prependOnceListener = Zn;
|
|
1139
1139
|
it.listeners = function(n) {
|
|
1140
1140
|
return [];
|
|
1141
1141
|
};
|
|
@@ -1156,7 +1156,7 @@ var Uh = au.exports;
|
|
|
1156
1156
|
Object.defineProperty(n, Symbol.toStringTag, { value: "Module" });
|
|
1157
1157
|
const e = ce, t = Uh, r = (o) => o && o.__esModule ? o : { default: o }, s = r(t), i = globalThis || window || void 0 || self;
|
|
1158
1158
|
Object.defineProperty(n, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(n, "process", { enumerable: !0, get: () => s.default }), n.global = i;
|
|
1159
|
-
})(
|
|
1159
|
+
})(Qe);
|
|
1160
1160
|
const Bi = (n) => [...Array(n).keys()], uu = (n, e) => n.map((t) => t[e]), pr = (n) => Bi(n[0].length).map((e) => Bi(n.length).map((t) => n[t][e])), Mh = (n, e, t) => {
|
|
1161
1161
|
const r = new Set(Array.isArray(e) ? e : [e]);
|
|
1162
1162
|
return n.filter((s, i) => r.has(i) !== t);
|
|
@@ -1274,11 +1274,11 @@ function mu(n, e) {
|
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
1276
|
function bu(n) {
|
|
1277
|
-
return
|
|
1277
|
+
return dr(n, cn);
|
|
1278
1278
|
}
|
|
1279
1279
|
var cn = Symbol("staticCalc");
|
|
1280
1280
|
function Kh(n, e) {
|
|
1281
|
-
const t = [], r =
|
|
1281
|
+
const t = [], r = dr(n, e, t);
|
|
1282
1282
|
if (r === null)
|
|
1283
1283
|
throw new Error(
|
|
1284
1284
|
`coding error: couldn't calculate layout size for layout ${n} with data ${e}`
|
|
@@ -1294,7 +1294,7 @@ function El(n, e, t) {
|
|
|
1294
1294
|
case "bytes": {
|
|
1295
1295
|
const s = "lengthSize" in n ? n.lengthSize | 0 : 0;
|
|
1296
1296
|
if ("layout" in n) {
|
|
1297
|
-
const { custom: o } = n, a =
|
|
1297
|
+
const { custom: o } = n, a = dr(
|
|
1298
1298
|
n.layout,
|
|
1299
1299
|
o === void 0 ? e : typeof o.from == "function" ? e !== cn ? r(o.from(e)) : cn : o.from,
|
|
1300
1300
|
//flex layout bytes only allows conversions, not fixed values
|
|
@@ -1309,7 +1309,7 @@ function El(n, e, t) {
|
|
|
1309
1309
|
const s = "length" in n ? n.length : void 0;
|
|
1310
1310
|
if (e === cn) {
|
|
1311
1311
|
if (s !== void 0) {
|
|
1312
|
-
const o =
|
|
1312
|
+
const o = dr(n.layout, cn, t);
|
|
1313
1313
|
return o !== null ? s * o : null;
|
|
1314
1314
|
}
|
|
1315
1315
|
return null;
|
|
@@ -1321,7 +1321,7 @@ function El(n, e, t) {
|
|
|
1321
1321
|
);
|
|
1322
1322
|
"lengthSize" in n && n.lengthSize !== void 0 && (i += n.lengthSize);
|
|
1323
1323
|
for (let o = 0; o < e.length; ++o) {
|
|
1324
|
-
const a =
|
|
1324
|
+
const a = dr(n.layout, e[o], t);
|
|
1325
1325
|
if (a === null)
|
|
1326
1326
|
return null;
|
|
1327
1327
|
i += a;
|
|
@@ -1330,12 +1330,12 @@ function El(n, e, t) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
case "switch": {
|
|
1332
1332
|
if (e !== cn) {
|
|
1333
|
-
const [i, o] = mu(n, e), a =
|
|
1333
|
+
const [i, o] = mu(n, e), a = dr(o, e, t);
|
|
1334
1334
|
return a !== null ? n.idSize + a : null;
|
|
1335
1335
|
}
|
|
1336
1336
|
let s = null;
|
|
1337
1337
|
for (const [i, o] of n.layouts) {
|
|
1338
|
-
const a =
|
|
1338
|
+
const a = dr(o, cn, t);
|
|
1339
1339
|
if (s === null)
|
|
1340
1340
|
s = a;
|
|
1341
1341
|
else if (a !== s)
|
|
@@ -1345,7 +1345,7 @@ function El(n, e, t) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function dr(n, e, t) {
|
|
1349
1349
|
if (Cs(n))
|
|
1350
1350
|
return El(n, e, t);
|
|
1351
1351
|
let r = 0;
|
|
@@ -1494,7 +1494,7 @@ function Es(n, e) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
return t;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Zs(n, e, t = fu, r = !1) {
|
|
1498
1498
|
let s = 0n;
|
|
1499
1499
|
for (let i = 0; i < e; ++i)
|
|
1500
1500
|
s |= BigInt(n.bytes[n.offset + i]) << BigInt(8 * (t === "big" ? e - i - 1 : i));
|
|
@@ -1504,11 +1504,11 @@ function Cl(n, e) {
|
|
|
1504
1504
|
switch (n.binary) {
|
|
1505
1505
|
case "int":
|
|
1506
1506
|
case "uint": {
|
|
1507
|
-
const t =
|
|
1507
|
+
const t = Zs(e, n.size, n.endianness, n.binary === "int"), { custom: r } = n;
|
|
1508
1508
|
return Br(r) ? (Sa(r, t), r) : Br(r == null ? void 0 : r.from) ? (Sa(r.from, t), r.to) : r !== void 0 ? r.to(t) : t;
|
|
1509
1509
|
}
|
|
1510
1510
|
case "bytes": {
|
|
1511
|
-
const t = "lengthSize" in n && n.lengthSize !== void 0 ?
|
|
1511
|
+
const t = "lengthSize" in n && n.lengthSize !== void 0 ? Zs(e, n.lengthSize, n.lengthEndianness) : n == null ? void 0 : n.size;
|
|
1512
1512
|
if ("layout" in n) {
|
|
1513
1513
|
const { custom: a } = n, l = e.offset;
|
|
1514
1514
|
let h;
|
|
@@ -1547,7 +1547,7 @@ function Cl(n, e) {
|
|
|
1547
1547
|
t.push(o);
|
|
1548
1548
|
};
|
|
1549
1549
|
let i = null;
|
|
1550
|
-
if ("length" in n && n.length !== void 0 ? i = n.length : "lengthSize" in n && n.lengthSize !== void 0 && (i =
|
|
1550
|
+
if ("length" in n && n.length !== void 0 ? i = n.length : "lengthSize" in n && n.lengthSize !== void 0 && (i = Zs(e, n.lengthSize, n.lengthEndianness)), i !== null)
|
|
1551
1551
|
for (let o = 0; o < i; ++o)
|
|
1552
1552
|
s();
|
|
1553
1553
|
else
|
|
@@ -1556,7 +1556,7 @@ function Cl(n, e) {
|
|
|
1556
1556
|
return t;
|
|
1557
1557
|
}
|
|
1558
1558
|
case "switch": {
|
|
1559
|
-
const t =
|
|
1559
|
+
const t = Zs(e, n.idSize, n.idEndianness), { layouts: r } = n;
|
|
1560
1560
|
if (r.length === 0)
|
|
1561
1561
|
throw new Error("switch item has no layouts");
|
|
1562
1562
|
const s = typeof r[0][0] == "number", i = r.find(([h]) => s ? h === t : h[0] === t);
|
|
@@ -1623,7 +1623,7 @@ function $h(n, e) {
|
|
|
1623
1623
|
function va(n) {
|
|
1624
1624
|
return n.reduce((e, t) => e | BigInt(1) << BigInt(t), BigInt(0));
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function Js(n) {
|
|
1627
1627
|
const e = [];
|
|
1628
1628
|
for (let t = 0n; n > 0n; n >>= 1n, ++t)
|
|
1629
1629
|
n & 1n && e.push(Number(t));
|
|
@@ -1812,7 +1812,7 @@ function Gh(n) {
|
|
|
1812
1812
|
if (V === n.length - 1)
|
|
1813
1813
|
return [
|
|
1814
1814
|
!0,
|
|
1815
|
-
(ae) =>
|
|
1815
|
+
(ae) => Js(
|
|
1816
1816
|
ae.length <= F ? K : G.get(ae[F]) ?? e
|
|
1817
1817
|
)
|
|
1818
1818
|
];
|
|
@@ -1820,7 +1820,7 @@ function Gh(n) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
if (l === n.length - 1)
|
|
1823
|
-
return [!0, (F) =>
|
|
1823
|
+
return [!0, (F) => Js(m(F.length))];
|
|
1824
1824
|
S.sort(([F], [W]) => W - F);
|
|
1825
1825
|
let A = !0;
|
|
1826
1826
|
const g = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), x = (F, W) => {
|
|
@@ -1830,7 +1830,7 @@ function Gh(n) {
|
|
|
1830
1830
|
return;
|
|
1831
1831
|
let z = 0;
|
|
1832
1832
|
const H = /* @__PURE__ */ new Map();
|
|
1833
|
-
for (const G of
|
|
1833
|
+
for (const G of Js(F)) {
|
|
1834
1834
|
const V = s[G][0], ae = a.get(V) & F;
|
|
1835
1835
|
H.set(V, ae), z = Math.max(z, St(ae));
|
|
1836
1836
|
}
|
|
@@ -1910,7 +1910,7 @@ function Gh(n) {
|
|
|
1910
1910
|
break;
|
|
1911
1911
|
z = g.get(W) ?? R(W);
|
|
1912
1912
|
}
|
|
1913
|
-
return
|
|
1913
|
+
return Js(W);
|
|
1914
1914
|
}];
|
|
1915
1915
|
}
|
|
1916
1916
|
var hc = (n, e) => ({
|
|
@@ -1959,7 +1959,7 @@ function P4(n, e) {
|
|
|
1959
1959
|
return Number(Number(n).toFixed(e));
|
|
1960
1960
|
}
|
|
1961
1961
|
function jo(n, e) {
|
|
1962
|
-
if (
|
|
1962
|
+
if (Zh(n, e), n = n.toString(), n.includes("e"))
|
|
1963
1963
|
throw new Error("Scientific notation is not supported yet by Amount");
|
|
1964
1964
|
const t = n.split(".");
|
|
1965
1965
|
if (t.length > 2)
|
|
@@ -2022,7 +2022,7 @@ function hi(n) {
|
|
|
2022
2022
|
function kl(n, e) {
|
|
2023
2023
|
return gu(Bs(n, e));
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function Zh(n, e) {
|
|
2026
2026
|
if (typeof n == "number") {
|
|
2027
2027
|
if (!isFinite(n))
|
|
2028
2028
|
throw new Error("Amount: invalid input. Amount must be finite");
|
|
@@ -2108,7 +2108,7 @@ function Xi(n = "") {
|
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
2110
|
// @__NO_SIDE_EFFECTS__
|
|
2111
|
-
function
|
|
2111
|
+
function Jh(n, e = "=") {
|
|
2112
2112
|
return rs(n), Vr("padding", e), {
|
|
2113
2113
|
encode(t) {
|
|
2114
2114
|
for (Di("padding.encode", t); t.length * n % 8; )
|
|
@@ -2250,7 +2250,7 @@ function em(n, e) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
};
|
|
2252
2252
|
}
|
|
2253
|
-
const Il = /* @__PURE__ */ Ps(/* @__PURE__ */ bc(4), /* @__PURE__ */ Gi("0123456789ABCDEF"), /* @__PURE__ */ Xi("")), Ul = /* @__PURE__ */ Ps(/* @__PURE__ */ bc(6), /* @__PURE__ */ Gi("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */
|
|
2253
|
+
const Il = /* @__PURE__ */ Ps(/* @__PURE__ */ bc(4), /* @__PURE__ */ Gi("0123456789ABCDEF"), /* @__PURE__ */ Xi("")), Ul = /* @__PURE__ */ Ps(/* @__PURE__ */ bc(6), /* @__PURE__ */ Gi("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ Jh(6), /* @__PURE__ */ Xi("")), tm = /* @__NO_SIDE_EFFECTS__ */ (n) => /* @__PURE__ */ Ps(/* @__PURE__ */ Qh(58), /* @__PURE__ */ Gi(n), /* @__PURE__ */ Xi("")), Fa = /* @__PURE__ */ tm("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"), L4 = (n) => /* @__PURE__ */ Ps(em(4, (e) => n(n(e))), Fa), Ta = /* @__PURE__ */ Ps(/* @__PURE__ */ Gi("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), /* @__PURE__ */ Xi("")), Ml = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
2254
2254
|
function ps(n) {
|
|
2255
2255
|
const e = n >> 25;
|
|
2256
2256
|
let t = (n & 33554431) << 5;
|
|
@@ -4189,7 +4189,7 @@ function ql(n) {
|
|
|
4189
4189
|
n[e] = Ru(n[e]);
|
|
4190
4190
|
}
|
|
4191
4191
|
const qm = /* @__PURE__ */ Array.from({ length: 256 }, (n, e) => e.toString(16).padStart(2, "0"));
|
|
4192
|
-
function
|
|
4192
|
+
function Z4(n) {
|
|
4193
4193
|
ss(n);
|
|
4194
4194
|
let e = "";
|
|
4195
4195
|
for (let t = 0; t < n.length; t++)
|
|
@@ -4205,7 +4205,7 @@ function Kl(n) {
|
|
|
4205
4205
|
if (n >= Wn.a && n <= Wn.f)
|
|
4206
4206
|
return n - (Wn.a - 10);
|
|
4207
4207
|
}
|
|
4208
|
-
function
|
|
4208
|
+
function J4(n) {
|
|
4209
4209
|
if (typeof n != "string")
|
|
4210
4210
|
throw new Error("hex string expected, got " + typeof n);
|
|
4211
4211
|
const e = n.length, t = e / 2;
|
|
@@ -4254,7 +4254,7 @@ function e6(n, e) {
|
|
|
4254
4254
|
throw new Error("Options should be object or undefined");
|
|
4255
4255
|
return Object.assign(n, e);
|
|
4256
4256
|
}
|
|
4257
|
-
function
|
|
4257
|
+
function Zi(n) {
|
|
4258
4258
|
const e = (r) => n().update(zs(r)).digest(), t = n();
|
|
4259
4259
|
return e.outputLen = t.outputLen, e.blockLen = t.blockLen, e.create = () => n(), e;
|
|
4260
4260
|
}
|
|
@@ -4396,7 +4396,7 @@ const Xm = /* @__PURE__ */ new Uint32Array([
|
|
|
4396
4396
|
2756734187,
|
|
4397
4397
|
3204031479,
|
|
4398
4398
|
3329325298
|
|
4399
|
-
]),
|
|
4399
|
+
]), Jn = /* @__PURE__ */ new Uint32Array([
|
|
4400
4400
|
1779033703,
|
|
4401
4401
|
3144134277,
|
|
4402
4402
|
1013904242,
|
|
@@ -4408,7 +4408,7 @@ const Xm = /* @__PURE__ */ new Uint32Array([
|
|
|
4408
4408
|
]), Qn = /* @__PURE__ */ new Uint32Array(64);
|
|
4409
4409
|
class Ym extends Pu {
|
|
4410
4410
|
constructor() {
|
|
4411
|
-
super(64, 32, 8, !1), this.A =
|
|
4411
|
+
super(64, 32, 8, !1), this.A = Jn[0] | 0, this.B = Jn[1] | 0, this.C = Jn[2] | 0, this.D = Jn[3] | 0, this.E = Jn[4] | 0, this.F = Jn[5] | 0, this.G = Jn[6] | 0, this.H = Jn[7] | 0;
|
|
4412
4412
|
}
|
|
4413
4413
|
get() {
|
|
4414
4414
|
const { A: e, B: t, C: r, D: s, E: i, F: o, G: a, H: l } = this;
|
|
@@ -4439,7 +4439,7 @@ class Ym extends Pu {
|
|
|
4439
4439
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
const Fi = /* @__PURE__ */
|
|
4442
|
+
const Fi = /* @__PURE__ */ Zi(() => new Ym()), Qs = /* @__PURE__ */ BigInt(2 ** 32 - 1), Wa = /* @__PURE__ */ BigInt(32);
|
|
4443
4443
|
function Lu(n, e = !1) {
|
|
4444
4444
|
return e ? { h: Number(n & Qs), l: Number(n >> Wa & Qs) } : { h: Number(n >> Wa & Qs) | 0, l: Number(n & Qs) | 0 };
|
|
4445
4445
|
}
|
|
@@ -4451,7 +4451,7 @@ function Ou(n, e = !1) {
|
|
|
4451
4451
|
}
|
|
4452
4452
|
return [t, r];
|
|
4453
4453
|
}
|
|
4454
|
-
const
|
|
4454
|
+
const Zm = (n, e) => BigInt(n >>> 0) << Wa | BigInt(e >>> 0), Jm = (n, e, t) => n >>> t, Qm = (n, e, t) => n << 32 - t | e >>> t, e1 = (n, e, t) => n >>> t | e << 32 - t, t1 = (n, e, t) => n << 32 - t | e >>> t, n1 = (n, e, t) => n << 64 - t | e >>> t - 32, r1 = (n, e, t) => n >>> t - 32 | e << 64 - t, s1 = (n, e) => e, i1 = (n, e) => n, Nu = (n, e, t) => n << t | e >>> 32 - t, zu = (n, e, t) => e << t | n >>> 32 - t, Hu = (n, e, t) => e << t - 32 | n >>> 64 - t, qu = (n, e, t) => n << t - 32 | e >>> 64 - t;
|
|
4455
4455
|
function o1(n, e, t, r) {
|
|
4456
4456
|
const s = (e >>> 0) + (r >>> 0);
|
|
4457
4457
|
return { h: n + t + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
@@ -4459,8 +4459,8 @@ function o1(n, e, t, r) {
|
|
|
4459
4459
|
const a1 = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), c1 = (n, e, t, r) => e + t + r + (n / 2 ** 32 | 0) | 0, l1 = (n, e, t, r) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0), d1 = (n, e, t, r, s) => e + t + r + s + (n / 2 ** 32 | 0) | 0, u1 = (n, e, t, r, s) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0) + (s >>> 0), f1 = (n, e, t, r, s, i) => e + t + r + s + i + (n / 2 ** 32 | 0) | 0, ye = {
|
|
4460
4460
|
fromBig: Lu,
|
|
4461
4461
|
split: Ou,
|
|
4462
|
-
toBig:
|
|
4463
|
-
shrSH:
|
|
4462
|
+
toBig: Zm,
|
|
4463
|
+
shrSH: Jm,
|
|
4464
4464
|
shrSL: Qm,
|
|
4465
4465
|
rotrSH: e1,
|
|
4466
4466
|
rotrSL: t1,
|
|
@@ -4577,7 +4577,7 @@ let E1 = class Vu extends xc {
|
|
|
4577
4577
|
return e || (e = new Vu(t, r, s, o, i)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = i, e.suffix = r, e.outputLen = s, e.enableXOF = o, e.destroyed = this.destroyed, e;
|
|
4578
4578
|
}
|
|
4579
4579
|
};
|
|
4580
|
-
const Gu = (n, e, t) =>
|
|
4580
|
+
const Gu = (n, e, t) => Zi(() => new E1(e, n, t)), n6 = /* @__PURE__ */ Gu(6, 136, 256 / 8), Ti = /* @__PURE__ */ Gu(1, 136, 256 / 8), [B1, x1] = ye.split([
|
|
4581
4581
|
"0x428a2f98d728ae22",
|
|
4582
4582
|
"0x7137449123ef65cd",
|
|
4583
4583
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -4700,7 +4700,7 @@ class C1 extends Xu {
|
|
|
4700
4700
|
super(), this.Ah = 573645204, this.Al = -64227540, this.Bh = -1621794909, this.Bl = -934517566, this.Ch = 596883563, this.Cl = 1867755857, this.Dh = -1774684391, this.Dl = 1497426621, this.Eh = -1775747358, this.El = -1467023389, this.Fh = -1101128155, this.Fl = 1401305490, this.Gh = 721525244, this.Gl = 746961066, this.Hh = 246885852, this.Hl = -2117784414, this.outputLen = 32;
|
|
4701
4701
|
}
|
|
4702
4702
|
}
|
|
4703
|
-
const S1 = /* @__PURE__ */
|
|
4703
|
+
const S1 = /* @__PURE__ */ Zi(() => new Xu()), D1 = /* @__PURE__ */ Zi(() => new C1());
|
|
4704
4704
|
class Yu extends xc {
|
|
4705
4705
|
constructor(e, t) {
|
|
4706
4706
|
super(), this.finished = !1, this.destroyed = !1, zm(e);
|
|
@@ -4736,10 +4736,10 @@ class Yu extends xc {
|
|
|
4736
4736
|
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
4739
|
-
const
|
|
4740
|
-
|
|
4739
|
+
const Zu = (n, e, t) => new Yu(n, e).update(t).digest();
|
|
4740
|
+
Zu.create = (n, e) => new Yu(n, e);
|
|
4741
4741
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4742
|
-
const
|
|
4742
|
+
const Ji = /* @__PURE__ */ BigInt(0), Qi = /* @__PURE__ */ BigInt(1), v1 = /* @__PURE__ */ BigInt(2);
|
|
4743
4743
|
function xr(n) {
|
|
4744
4744
|
return n instanceof Uint8Array || ArrayBuffer.isView(n) && n.constructor.name === "Uint8Array";
|
|
4745
4745
|
}
|
|
@@ -4766,7 +4766,7 @@ function Lr(n) {
|
|
|
4766
4766
|
function Cc(n) {
|
|
4767
4767
|
if (typeof n != "string")
|
|
4768
4768
|
throw new Error("hex string expected, got " + typeof n);
|
|
4769
|
-
return n === "" ?
|
|
4769
|
+
return n === "" ? Ji : BigInt("0x" + n);
|
|
4770
4770
|
}
|
|
4771
4771
|
const Pn = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
4772
4772
|
function Vl(n) {
|
|
@@ -4852,7 +4852,7 @@ function I1(n) {
|
|
|
4852
4852
|
throw new Error("string expected");
|
|
4853
4853
|
return new Uint8Array(new TextEncoder().encode(n));
|
|
4854
4854
|
}
|
|
4855
|
-
const Yo = (n) => typeof n == "bigint" &&
|
|
4855
|
+
const Yo = (n) => typeof n == "bigint" && Ji <= n;
|
|
4856
4856
|
function eo(n, e, t) {
|
|
4857
4857
|
return Yo(n) && Yo(e) && Yo(t) && e <= n && n < t;
|
|
4858
4858
|
}
|
|
@@ -4860,9 +4860,9 @@ function dn(n, e, t, r) {
|
|
|
4860
4860
|
if (!eo(e, t, r))
|
|
4861
4861
|
throw new Error("expected valid " + n + ": " + t + " <= n < " + r + ", got " + e);
|
|
4862
4862
|
}
|
|
4863
|
-
function
|
|
4863
|
+
function Ju(n) {
|
|
4864
4864
|
let e;
|
|
4865
|
-
for (e = 0; n >
|
|
4865
|
+
for (e = 0; n > Ji; n >>= Qi, e += 1)
|
|
4866
4866
|
;
|
|
4867
4867
|
return e;
|
|
4868
4868
|
}
|
|
@@ -4870,9 +4870,9 @@ function U1(n, e) {
|
|
|
4870
4870
|
return n >> BigInt(e) & Qi;
|
|
4871
4871
|
}
|
|
4872
4872
|
function M1(n, e, t) {
|
|
4873
|
-
return n | (t ? Qi :
|
|
4873
|
+
return n | (t ? Qi : Ji) << BigInt(e);
|
|
4874
4874
|
}
|
|
4875
|
-
const Sc = (n) => (v1 << BigInt(n - 1)) - Qi,
|
|
4875
|
+
const Sc = (n) => (v1 << BigInt(n - 1)) - Qi, Zo = (n) => new Uint8Array(n), Gl = (n) => Uint8Array.from(n);
|
|
4876
4876
|
function Qu(n, e, t) {
|
|
4877
4877
|
if (typeof n != "number" || n < 2)
|
|
4878
4878
|
throw new Error("hashLen must be a number");
|
|
@@ -4880,10 +4880,10 @@ function Qu(n, e, t) {
|
|
|
4880
4880
|
throw new Error("qByteLen must be a number");
|
|
4881
4881
|
if (typeof t != "function")
|
|
4882
4882
|
throw new Error("hmacFn must be a function");
|
|
4883
|
-
let r =
|
|
4883
|
+
let r = Zo(n), s = Zo(n), i = 0;
|
|
4884
4884
|
const o = () => {
|
|
4885
4885
|
r.fill(1), s.fill(0), i = 0;
|
|
4886
|
-
}, a = (...E) => t(s, r, ...E), l = (E =
|
|
4886
|
+
}, a = (...E) => t(s, r, ...E), l = (E = Zo()) => {
|
|
4887
4887
|
s = a(Gl([0]), E), r = a(), E.length !== 0 && (s = a(Gl([1]), E), r = a());
|
|
4888
4888
|
}, h = () => {
|
|
4889
4889
|
if (i++ >= 1e3)
|
|
@@ -4950,7 +4950,7 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4950
4950
|
abool: $n,
|
|
4951
4951
|
abytes: Hs,
|
|
4952
4952
|
bitGet: U1,
|
|
4953
|
-
bitLen:
|
|
4953
|
+
bitLen: Ju,
|
|
4954
4954
|
bitMask: Sc,
|
|
4955
4955
|
bitSet: M1,
|
|
4956
4956
|
bytesToHex: Cr,
|
|
@@ -4974,8 +4974,8 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4974
4974
|
validateObject: is
|
|
4975
4975
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4976
4976
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4977
|
-
const Tt = BigInt(0),
|
|
4978
|
-
function
|
|
4977
|
+
const Tt = BigInt(0), Je = BigInt(1), rr = /* @__PURE__ */ BigInt(2), P1 = /* @__PURE__ */ BigInt(3), Pa = /* @__PURE__ */ BigInt(4), Xl = /* @__PURE__ */ BigInt(5), Yl = /* @__PURE__ */ BigInt(8);
|
|
4978
|
+
function Ze(n, e) {
|
|
4979
4979
|
const t = n % e;
|
|
4980
4980
|
return t >= Tt ? t : e + t;
|
|
4981
4981
|
}
|
|
@@ -4984,11 +4984,11 @@ function L1(n, e, t) {
|
|
|
4984
4984
|
throw new Error("invalid exponent, negatives unsupported");
|
|
4985
4985
|
if (t <= Tt)
|
|
4986
4986
|
throw new Error("invalid modulus");
|
|
4987
|
-
if (t ===
|
|
4987
|
+
if (t === Je)
|
|
4988
4988
|
return Tt;
|
|
4989
|
-
let r =
|
|
4989
|
+
let r = Je;
|
|
4990
4990
|
for (; e > Tt; )
|
|
4991
|
-
e &
|
|
4991
|
+
e & Je && (r = r * n % t), n = n * n % t, e >>= Je;
|
|
4992
4992
|
return r;
|
|
4993
4993
|
}
|
|
4994
4994
|
function rt(n, e, t) {
|
|
@@ -5002,25 +5002,25 @@ function La(n, e) {
|
|
|
5002
5002
|
throw new Error("invert: expected non-zero number");
|
|
5003
5003
|
if (e <= Tt)
|
|
5004
5004
|
throw new Error("invert: expected positive modulus, got " + e);
|
|
5005
|
-
let t =
|
|
5005
|
+
let t = Ze(n, e), r = e, s = Tt, i = Je;
|
|
5006
5006
|
for (; t !== Tt; ) {
|
|
5007
5007
|
const a = r / t, l = r % t, h = s - i * a;
|
|
5008
5008
|
r = t, t = l, s = i, i = h;
|
|
5009
5009
|
}
|
|
5010
|
-
if (r !==
|
|
5010
|
+
if (r !== Je)
|
|
5011
5011
|
throw new Error("invert: does not exist");
|
|
5012
|
-
return
|
|
5012
|
+
return Ze(s, e);
|
|
5013
5013
|
}
|
|
5014
5014
|
function O1(n) {
|
|
5015
|
-
const e = (n -
|
|
5015
|
+
const e = (n - Je) / rr;
|
|
5016
5016
|
let t, r, s;
|
|
5017
|
-
for (t = n -
|
|
5017
|
+
for (t = n - Je, r = 0; t % rr === Tt; t /= rr, r++)
|
|
5018
5018
|
;
|
|
5019
|
-
for (s =
|
|
5019
|
+
for (s = rr; s < n && L1(s, e, n) !== n - Je; s++)
|
|
5020
5020
|
if (s > 1e3)
|
|
5021
5021
|
throw new Error("Cannot find square root: likely non-prime P");
|
|
5022
5022
|
if (r === 1) {
|
|
5023
|
-
const o = (n +
|
|
5023
|
+
const o = (n + Je) / Pa;
|
|
5024
5024
|
return function(l, h) {
|
|
5025
5025
|
const m = l.pow(h, o);
|
|
5026
5026
|
if (!l.eql(l.sqr(m), h))
|
|
@@ -5028,7 +5028,7 @@ function O1(n) {
|
|
|
5028
5028
|
return m;
|
|
5029
5029
|
};
|
|
5030
5030
|
}
|
|
5031
|
-
const i = (t +
|
|
5031
|
+
const i = (t + Je) / rr;
|
|
5032
5032
|
return function(a, l) {
|
|
5033
5033
|
if (a.pow(l, e) === a.neg(a.ONE))
|
|
5034
5034
|
throw new Error("Cannot find square root");
|
|
@@ -5039,7 +5039,7 @@ function O1(n) {
|
|
|
5039
5039
|
let A = 1;
|
|
5040
5040
|
for (let D = a.sqr(S); A < h && !a.eql(D, a.ONE); A++)
|
|
5041
5041
|
D = a.sqr(D);
|
|
5042
|
-
const g = a.pow(m,
|
|
5042
|
+
const g = a.pow(m, Je << BigInt(h - A - 1));
|
|
5043
5043
|
m = a.sqr(g), E = a.mul(E, g), S = a.mul(S, m), h = A;
|
|
5044
5044
|
}
|
|
5045
5045
|
return E;
|
|
@@ -5047,7 +5047,7 @@ function O1(n) {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
function N1(n) {
|
|
5049
5049
|
if (n % Pa === P1) {
|
|
5050
|
-
const e = (n +
|
|
5050
|
+
const e = (n + Je) / Pa;
|
|
5051
5051
|
return function(r, s) {
|
|
5052
5052
|
const i = r.pow(s, e);
|
|
5053
5053
|
if (!r.eql(r.sqr(i), s))
|
|
@@ -5058,7 +5058,7 @@ function N1(n) {
|
|
|
5058
5058
|
if (n % Yl === Xl) {
|
|
5059
5059
|
const e = (n - Xl) / Yl;
|
|
5060
5060
|
return function(r, s) {
|
|
5061
|
-
const i = r.mul(s,
|
|
5061
|
+
const i = r.mul(s, rr), o = r.pow(i, e), a = r.mul(s, o), l = r.mul(r.mul(a, rr), o), h = r.mul(a, r.sub(l, r.ONE));
|
|
5062
5062
|
if (!r.eql(r.sqr(h), s))
|
|
5063
5063
|
throw new Error("Cannot find square root");
|
|
5064
5064
|
return h;
|
|
@@ -5066,7 +5066,7 @@ function N1(n) {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
return O1(n);
|
|
5068
5068
|
}
|
|
5069
|
-
const z1 = (n, e) => (
|
|
5069
|
+
const z1 = (n, e) => (Ze(n, e) & Je) === Je, H1 = [
|
|
5070
5070
|
"create",
|
|
5071
5071
|
"isValid",
|
|
5072
5072
|
"is0",
|
|
@@ -5099,17 +5099,21 @@ function K1(n, e, t) {
|
|
|
5099
5099
|
throw new Error("invalid exponent, negatives unsupported");
|
|
5100
5100
|
if (t === Tt)
|
|
5101
5101
|
return n.ONE;
|
|
5102
|
-
if (t ===
|
|
5102
|
+
if (t === Je)
|
|
5103
5103
|
return e;
|
|
5104
5104
|
let r = n.ONE, s = e;
|
|
5105
5105
|
for (; t > Tt; )
|
|
5106
|
-
t &
|
|
5106
|
+
t & Je && (r = n.mul(r, s)), s = n.sqr(s), t >>= Je;
|
|
5107
5107
|
return r;
|
|
5108
5108
|
}
|
|
5109
5109
|
function j1(n, e) {
|
|
5110
5110
|
const t = new Array(e.length), r = e.reduce((i, o, a) => n.is0(o) ? i : (t[a] = i, n.mul(i, o)), n.ONE), s = n.inv(r);
|
|
5111
5111
|
return e.reduceRight((i, o, a) => n.is0(o) ? i : (t[a] = n.mul(i, t[a]), n.mul(i, o)), s), t;
|
|
5112
5112
|
}
|
|
5113
|
+
function r6(n) {
|
|
5114
|
+
const e = (n - Je) / rr;
|
|
5115
|
+
return (t, r) => t.pow(r, e);
|
|
5116
|
+
}
|
|
5113
5117
|
function ef(n, e) {
|
|
5114
5118
|
const t = e !== void 0 ? e : n.toString(2).length, r = Math.ceil(t / 8);
|
|
5115
5119
|
return { nBitLength: t, nByteLength: r };
|
|
@@ -5128,23 +5132,23 @@ function to(n, e, t = !1, r = {}) {
|
|
|
5128
5132
|
BYTES: i,
|
|
5129
5133
|
MASK: Sc(s),
|
|
5130
5134
|
ZERO: Tt,
|
|
5131
|
-
ONE:
|
|
5132
|
-
create: (l) =>
|
|
5135
|
+
ONE: Je,
|
|
5136
|
+
create: (l) => Ze(l, n),
|
|
5133
5137
|
isValid: (l) => {
|
|
5134
5138
|
if (typeof l != "bigint")
|
|
5135
5139
|
throw new Error("invalid field element: expected bigint, got " + typeof l);
|
|
5136
5140
|
return Tt <= l && l < n;
|
|
5137
5141
|
},
|
|
5138
5142
|
is0: (l) => l === Tt,
|
|
5139
|
-
isOdd: (l) => (l &
|
|
5140
|
-
neg: (l) =>
|
|
5143
|
+
isOdd: (l) => (l & Je) === Je,
|
|
5144
|
+
neg: (l) => Ze(-l, n),
|
|
5141
5145
|
eql: (l, h) => l === h,
|
|
5142
|
-
sqr: (l) =>
|
|
5143
|
-
add: (l, h) =>
|
|
5144
|
-
sub: (l, h) =>
|
|
5145
|
-
mul: (l, h) =>
|
|
5146
|
+
sqr: (l) => Ze(l * l, n),
|
|
5147
|
+
add: (l, h) => Ze(l + h, n),
|
|
5148
|
+
sub: (l, h) => Ze(l - h, n),
|
|
5149
|
+
mul: (l, h) => Ze(l * h, n),
|
|
5146
5150
|
pow: (l, h) => K1(a, l, h),
|
|
5147
|
-
div: (l, h) =>
|
|
5151
|
+
div: (l, h) => Ze(l * La(h, n), n),
|
|
5148
5152
|
// Same as above, but doesn't normalize
|
|
5149
5153
|
sqrN: (l) => l * l,
|
|
5150
5154
|
addN: (l, h) => l + h,
|
|
@@ -5179,12 +5183,12 @@ function $1(n, e, t = !1) {
|
|
|
5179
5183
|
const r = n.length, s = tf(e), i = nf(e);
|
|
5180
5184
|
if (r < 16 || r < i || r > 1024)
|
|
5181
5185
|
throw new Error("expected " + i + "-1024 bytes of input, got " + r);
|
|
5182
|
-
const o = t ? Hr(n) : Ar(n), a =
|
|
5186
|
+
const o = t ? Hr(n) : Ar(n), a = Ze(o, e - Je) + Je;
|
|
5183
5187
|
return t ? Ds(a, s) : Yr(a, s);
|
|
5184
5188
|
}
|
|
5185
5189
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5186
|
-
const
|
|
5187
|
-
function
|
|
5190
|
+
const Zl = BigInt(0), ei = BigInt(1);
|
|
5191
|
+
function Jo(n, e) {
|
|
5188
5192
|
const t = e.negate();
|
|
5189
5193
|
return n ? t : e;
|
|
5190
5194
|
}
|
|
@@ -5219,14 +5223,14 @@ function ta(n) {
|
|
|
5219
5223
|
}
|
|
5220
5224
|
function of(n, e) {
|
|
5221
5225
|
return {
|
|
5222
|
-
constTimeNegate:
|
|
5226
|
+
constTimeNegate: Jo,
|
|
5223
5227
|
hasPrecomputes(t) {
|
|
5224
5228
|
return ta(t) !== 1;
|
|
5225
5229
|
},
|
|
5226
5230
|
// non-const time multiplication ladder
|
|
5227
5231
|
unsafeLadder(t, r, s = n.ZERO) {
|
|
5228
5232
|
let i = t;
|
|
5229
|
-
for (; r >
|
|
5233
|
+
for (; r > Zl; )
|
|
5230
5234
|
r & ei && (s = s.add(i)), i = i.double(), r >>= ei;
|
|
5231
5235
|
return s;
|
|
5232
5236
|
},
|
|
@@ -5269,7 +5273,7 @@ function of(n, e) {
|
|
|
5269
5273
|
let g = Number(s & h);
|
|
5270
5274
|
s >>= E, g > o && (g -= m, s += ei);
|
|
5271
5275
|
const D = A, x = A + Math.abs(g) - 1, U = S % 2 !== 0, R = g < 0;
|
|
5272
|
-
g === 0 ? l = l.add(
|
|
5276
|
+
g === 0 ? l = l.add(Jo(U, r[D])) : a = a.add(Jo(R, r[x]));
|
|
5273
5277
|
}
|
|
5274
5278
|
return { p: a, f: l };
|
|
5275
5279
|
},
|
|
@@ -5285,7 +5289,7 @@ function of(n, e) {
|
|
|
5285
5289
|
const { windows: o, windowSize: a } = Qo(t, e), l = BigInt(2 ** t - 1), h = 2 ** t, m = BigInt(t);
|
|
5286
5290
|
for (let E = 0; E < o; E++) {
|
|
5287
5291
|
const S = E * a;
|
|
5288
|
-
if (s ===
|
|
5292
|
+
if (s === Zl)
|
|
5289
5293
|
break;
|
|
5290
5294
|
let A = Number(s & l);
|
|
5291
5295
|
if (s >>= m, A > a && (A -= h, s += ei), A === 0)
|
|
@@ -5318,7 +5322,7 @@ function of(n, e) {
|
|
|
5318
5322
|
function af(n, e, t, r) {
|
|
5319
5323
|
if (V1(t, n), G1(r, e), t.length !== r.length)
|
|
5320
5324
|
throw new Error("arrays of points and scalars must have equal length");
|
|
5321
|
-
const s = n.ZERO, i =
|
|
5325
|
+
const s = n.ZERO, i = Ju(BigInt(t.length)), o = i > 12 ? i - 3 : i > 4 ? i - 2 : i ? 2 : 1, a = (1 << o) - 1, l = new Array(a + 1).fill(s), h = Math.floor((e.BITS - 1) / o) * o;
|
|
5322
5326
|
let m = s;
|
|
5323
5327
|
for (let E = h; E >= 0; E -= o) {
|
|
5324
5328
|
l.fill(s);
|
|
@@ -5351,7 +5355,7 @@ function Dc(n) {
|
|
|
5351
5355
|
});
|
|
5352
5356
|
}
|
|
5353
5357
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5354
|
-
function
|
|
5358
|
+
function Jl(n) {
|
|
5355
5359
|
n.lowS !== void 0 && $n("lowS", n.lowS), n.prehash !== void 0 && $n("prehash", n.prehash);
|
|
5356
5360
|
}
|
|
5357
5361
|
function X1(n) {
|
|
@@ -5377,15 +5381,15 @@ function X1(n) {
|
|
|
5377
5381
|
}
|
|
5378
5382
|
return Object.freeze({ ...e });
|
|
5379
5383
|
}
|
|
5380
|
-
const { bytesToNumberBE: Y1, hexToBytes:
|
|
5381
|
-
class
|
|
5384
|
+
const { bytesToNumberBE: Y1, hexToBytes: Z1 } = W1;
|
|
5385
|
+
class J1 extends Error {
|
|
5382
5386
|
constructor(e = "") {
|
|
5383
5387
|
super(e);
|
|
5384
5388
|
}
|
|
5385
5389
|
}
|
|
5386
5390
|
const Nn = {
|
|
5387
5391
|
// asn.1 DER encoding utils
|
|
5388
|
-
Err:
|
|
5392
|
+
Err: J1,
|
|
5389
5393
|
// Basic building block is TLV (Tag-Length-Value)
|
|
5390
5394
|
_tlv: {
|
|
5391
5395
|
encode: (n, e) => {
|
|
@@ -5458,7 +5462,7 @@ const Nn = {
|
|
|
5458
5462
|
}
|
|
5459
5463
|
},
|
|
5460
5464
|
toSig(n) {
|
|
5461
|
-
const { Err: e, _int: t, _tlv: r } = Nn, s = typeof n == "string" ?
|
|
5465
|
+
const { Err: e, _int: t, _tlv: r } = Nn, s = typeof n == "string" ? Z1(n) : n;
|
|
5462
5466
|
Hs(s);
|
|
5463
5467
|
const { v: i, l: o } = r.decode(48, s);
|
|
5464
5468
|
if (o.length)
|
|
@@ -5506,7 +5510,7 @@ function Q1(n) {
|
|
|
5506
5510
|
} catch {
|
|
5507
5511
|
throw new Error("invalid private key, expected hex or " + U + " bytes, got " + typeof D);
|
|
5508
5512
|
}
|
|
5509
|
-
return R && (W =
|
|
5513
|
+
return R && (W = Ze(W, F)), dn("private key", W, vt, F), W;
|
|
5510
5514
|
}
|
|
5511
5515
|
function h(D) {
|
|
5512
5516
|
if (!(D instanceof S))
|
|
@@ -5756,7 +5760,7 @@ function eb(n) {
|
|
|
5756
5760
|
function tb(n) {
|
|
5757
5761
|
const e = eb(n), { Fp: t, n: r } = e, s = t.BYTES + 1, i = 2 * t.BYTES + 1;
|
|
5758
5762
|
function o(c) {
|
|
5759
|
-
return
|
|
5763
|
+
return Ze(c, r);
|
|
5760
5764
|
}
|
|
5761
5765
|
function a(c) {
|
|
5762
5766
|
return La(c, r);
|
|
@@ -5828,7 +5832,7 @@ function tb(n) {
|
|
|
5828
5832
|
const M = C === 2 || C === 3 ? p + e.n : p;
|
|
5829
5833
|
if (M >= t.ORDER)
|
|
5830
5834
|
throw new Error("recovery id 2 or 3 invalid");
|
|
5831
|
-
const B = C & 1 ? "03" : "02", u = l.fromHex(B + S(M)), k = a(M), $ = o(-T * k),
|
|
5835
|
+
const B = C & 1 ? "03" : "02", u = l.fromHex(B + S(M)), k = a(M), $ = o(-T * k), Z = o(y * k), ee = l.BASE.multiplyAndAddUnsafe(u, $, Z);
|
|
5832
5836
|
if (!ee)
|
|
5833
5837
|
throw new Error("point at infinify");
|
|
5834
5838
|
return ee.assertValidity(), ee;
|
|
@@ -5914,13 +5918,13 @@ function tb(n) {
|
|
|
5914
5918
|
throw new Error("sign() legacy options not supported");
|
|
5915
5919
|
const { hash: y, randomBytes: C } = e;
|
|
5916
5920
|
let { lowS: T, prehash: M, extraEntropy: B } = p;
|
|
5917
|
-
T == null && (T = !0), c = Ct("msgHash", c),
|
|
5921
|
+
T == null && (T = !0), c = Ct("msgHash", c), Jl(p), M && (c = Ct("prehashed msgHash", y(c)));
|
|
5918
5922
|
const u = H(c), k = h(b), $ = [G(k), G(u)];
|
|
5919
5923
|
if (B != null && B !== !1) {
|
|
5920
5924
|
const ue = B === !0 ? C(t.BYTES) : B;
|
|
5921
5925
|
$.push(Ct("extraEntropy", ue));
|
|
5922
5926
|
}
|
|
5923
|
-
const
|
|
5927
|
+
const Z = Sr(...$), ee = u;
|
|
5924
5928
|
function Be(ue) {
|
|
5925
5929
|
const me = z(ue);
|
|
5926
5930
|
if (!E(me))
|
|
@@ -5934,7 +5938,7 @@ function tb(n) {
|
|
|
5934
5938
|
let De = (Ce.x === Ee ? 0 : 2) | Number(Ce.y & vt), Ie = ot;
|
|
5935
5939
|
return T && A(ot) && (Ie = g(ot), De ^= 1), new x(Ee, Ie, De);
|
|
5936
5940
|
}
|
|
5937
|
-
return { seed:
|
|
5941
|
+
return { seed: Z, k2sig: Be };
|
|
5938
5942
|
}
|
|
5939
5943
|
const ae = { lowS: e.lowS, prehash: !1 }, ne = { lowS: e.lowS, prehash: !1 };
|
|
5940
5944
|
function le(c, b, p = ae) {
|
|
@@ -5947,14 +5951,14 @@ function tb(n) {
|
|
|
5947
5951
|
const C = c;
|
|
5948
5952
|
b = Ct("msgHash", b), p = Ct("publicKey", p);
|
|
5949
5953
|
const { lowS: T, prehash: M, format: B } = y;
|
|
5950
|
-
if (
|
|
5954
|
+
if (Jl(y), "strict" in y)
|
|
5951
5955
|
throw new Error("options.strict was renamed to lowS");
|
|
5952
5956
|
if (B !== void 0 && B !== "compact" && B !== "der")
|
|
5953
5957
|
throw new Error("format must be compact or der");
|
|
5954
5958
|
const u = typeof C == "string" || xr(C), k = !u && !B && typeof C == "object" && C !== null && typeof C.r == "bigint" && typeof C.s == "bigint";
|
|
5955
5959
|
if (!u && !k)
|
|
5956
5960
|
throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
|
|
5957
|
-
let $,
|
|
5961
|
+
let $, Z;
|
|
5958
5962
|
try {
|
|
5959
5963
|
if (k && ($ = new x(C.r, C.s)), u) {
|
|
5960
5964
|
try {
|
|
@@ -5965,14 +5969,14 @@ function tb(n) {
|
|
|
5965
5969
|
}
|
|
5966
5970
|
!$ && B !== "der" && ($ = x.fromCompact(C));
|
|
5967
5971
|
}
|
|
5968
|
-
|
|
5972
|
+
Z = l.fromHex(p);
|
|
5969
5973
|
} catch {
|
|
5970
5974
|
return !1;
|
|
5971
5975
|
}
|
|
5972
5976
|
if (!$ || T && $.hasHighS())
|
|
5973
5977
|
return !1;
|
|
5974
5978
|
M && (b = e.hash(b));
|
|
5975
|
-
const { r: ee, s: Be } = $, ue = H(b), me = a(Be), nt = o(ue * me), Ce = o(ee * me), Ee = (De = l.BASE.multiplyAndAddUnsafe(
|
|
5979
|
+
const { r: ee, s: Be } = $, ue = H(b), me = a(Be), nt = o(ue * me), Ce = o(ee * me), Ee = (De = l.BASE.multiplyAndAddUnsafe(Z, nt, Ce)) == null ? void 0 : De.toAffine();
|
|
5976
5980
|
return Ee ? o(Ee.x) === ee : !1;
|
|
5977
5981
|
}
|
|
5978
5982
|
return {
|
|
@@ -5990,7 +5994,7 @@ function tb(n) {
|
|
|
5990
5994
|
function nb(n) {
|
|
5991
5995
|
return {
|
|
5992
5996
|
hash: n,
|
|
5993
|
-
hmac: (e, ...t) =>
|
|
5997
|
+
hmac: (e, ...t) => Zu(n, e, jm(...t)),
|
|
5994
5998
|
randomBytes: Wu
|
|
5995
5999
|
};
|
|
5996
6000
|
}
|
|
@@ -6006,7 +6010,7 @@ function ib(n) {
|
|
|
6006
6010
|
throw new Error("Cannot find square root");
|
|
6007
6011
|
return H;
|
|
6008
6012
|
}
|
|
6009
|
-
const Na = to(cf, void 0, void 0, { sqrt: ib }),
|
|
6013
|
+
const Na = to(cf, void 0, void 0, { sqrt: ib }), sr = rb({
|
|
6010
6014
|
a: BigInt(0),
|
|
6011
6015
|
// equation params: a, b
|
|
6012
6016
|
b: BigInt(7),
|
|
@@ -6026,7 +6030,7 @@ const Na = to(cf, void 0, void 0, { sqrt: ib }), rr = rb({
|
|
|
6026
6030
|
beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
|
|
6027
6031
|
splitScalar: (n) => {
|
|
6028
6032
|
const e = ed, t = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), r = -sb * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), s = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), i = t, o = BigInt("0x100000000000000000000000000000000"), a = td(i * n, e), l = td(-r * n, e);
|
|
6029
|
-
let h =
|
|
6033
|
+
let h = Ze(n - a * t - l * s, e), m = Ze(-a * r - l * i, e);
|
|
6030
6034
|
const E = h > o, S = m > o;
|
|
6031
6035
|
if (E && (h = e - h), S && (m = e - m), h > o || m > o)
|
|
6032
6036
|
throw new Error("splitScalar: Endomorphism failed, k=" + n);
|
|
@@ -6035,9 +6039,9 @@ const Na = to(cf, void 0, void 0, { sqrt: ib }), rr = rb({
|
|
|
6035
6039
|
}
|
|
6036
6040
|
}, Fi);
|
|
6037
6041
|
BigInt(0);
|
|
6038
|
-
|
|
6042
|
+
sr.ProjectivePoint;
|
|
6039
6043
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
6040
|
-
const mn = BigInt(0),
|
|
6044
|
+
const mn = BigInt(0), Zt = BigInt(1), ti = BigInt(2), ob = BigInt(8), ab = { zip215: !0 };
|
|
6041
6045
|
function cb(n) {
|
|
6042
6046
|
const e = Dc(n);
|
|
6043
6047
|
return is(n, {
|
|
@@ -6053,7 +6057,7 @@ function cb(n) {
|
|
|
6053
6057
|
}), Object.freeze({ ...e });
|
|
6054
6058
|
}
|
|
6055
6059
|
function lb(n) {
|
|
6056
|
-
const e = cb(n), { Fp: t, n: r, prehash: s, hash: i, randomBytes: o, nByteLength: a, h: l } = e, h = ti << BigInt(a * 8) -
|
|
6060
|
+
const e = cb(n), { Fp: t, n: r, prehash: s, hash: i, randomBytes: o, nByteLength: a, h: l } = e, h = ti << BigInt(a * 8) - Zt, m = t.create, E = to(e.n, e.nBitLength), S = e.uvRatio || ((p, y) => {
|
|
6057
6061
|
try {
|
|
6058
6062
|
return { isValid: !0, value: t.sqrt(p * t.inv(y)) };
|
|
6059
6063
|
} catch {
|
|
@@ -6076,15 +6080,15 @@ function lb(n) {
|
|
|
6076
6080
|
y == null && (y = B ? ob : t.inv(M));
|
|
6077
6081
|
const u = m(C * y), k = m(T * y), $ = m(M * y);
|
|
6078
6082
|
if (B)
|
|
6079
|
-
return { x: mn, y:
|
|
6080
|
-
if ($ !==
|
|
6083
|
+
return { x: mn, y: Zt };
|
|
6084
|
+
if ($ !== Zt)
|
|
6081
6085
|
throw new Error("invZ was invalid");
|
|
6082
6086
|
return { x: u, y: k };
|
|
6083
6087
|
}), R = vs((p) => {
|
|
6084
6088
|
const { a: y, d: C } = e;
|
|
6085
6089
|
if (p.is0())
|
|
6086
6090
|
throw new Error("bad point: ZERO");
|
|
6087
|
-
const { ex: T, ey: M, ez: B, et: u } = p, k = m(T * T), $ = m(M * M),
|
|
6091
|
+
const { ex: T, ey: M, ez: B, et: u } = p, k = m(T * T), $ = m(M * M), Z = m(B * B), ee = m(Z * Z), Be = m(k * y), ue = m(Z * m(Be + $)), me = m(ee + m(C * m(k * $)));
|
|
6088
6092
|
if (ue !== me)
|
|
6089
6093
|
throw new Error("bad point: equation left != right (1)");
|
|
6090
6094
|
const nt = m(T * M), Ce = m(B * u);
|
|
@@ -6106,7 +6110,7 @@ function lb(n) {
|
|
|
6106
6110
|
if (y instanceof F)
|
|
6107
6111
|
throw new Error("extended point not allowed");
|
|
6108
6112
|
const { x: C, y: T } = y || {};
|
|
6109
|
-
return D("x", C), D("y", T), new F(C, T,
|
|
6113
|
+
return D("x", C), D("y", T), new F(C, T, Zt, m(C * T));
|
|
6110
6114
|
}
|
|
6111
6115
|
static normalizeZ(y) {
|
|
6112
6116
|
const C = t.invertBatch(y.map((T) => T.ez));
|
|
@@ -6128,8 +6132,8 @@ function lb(n) {
|
|
|
6128
6132
|
// Compare one point to another.
|
|
6129
6133
|
equals(y) {
|
|
6130
6134
|
x(y);
|
|
6131
|
-
const { ex: C, ey: T, ez: M } = this, { ex: B, ey: u, ez: k } = y, $ = m(C * k),
|
|
6132
|
-
return $ ===
|
|
6135
|
+
const { ex: C, ey: T, ez: M } = this, { ex: B, ey: u, ez: k } = y, $ = m(C * k), Z = m(B * M), ee = m(T * k), Be = m(u * M);
|
|
6136
|
+
return $ === Z && ee === Be;
|
|
6133
6137
|
}
|
|
6134
6138
|
is0() {
|
|
6135
6139
|
return this.equals(F.ZERO);
|
|
@@ -6141,7 +6145,7 @@ function lb(n) {
|
|
|
6141
6145
|
// https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd
|
|
6142
6146
|
// Cost: 4M + 4S + 1*a + 6add + 1*2.
|
|
6143
6147
|
double() {
|
|
6144
|
-
const { a: y } = e, { ex: C, ey: T, ez: M } = this, B = m(C * C), u = m(T * T), k = m(ti * m(M * M)), $ = m(y * B),
|
|
6148
|
+
const { a: y } = e, { ex: C, ey: T, ez: M } = this, B = m(C * C), u = m(T * T), k = m(ti * m(M * M)), $ = m(y * B), Z = C + T, ee = m(m(Z * Z) - B - u), Be = $ + u, ue = Be - k, me = $ - u, nt = m(ee * ue), Ce = m(Be * me), Ee = m(ee * me), ot = m(ue * Be);
|
|
6145
6149
|
return new F(nt, Ce, ot, Ee);
|
|
6146
6150
|
}
|
|
6147
6151
|
// Fast algo for adding 2 Extended Points.
|
|
@@ -6149,15 +6153,15 @@ function lb(n) {
|
|
|
6149
6153
|
// Cost: 9M + 1*a + 1*d + 7add.
|
|
6150
6154
|
add(y) {
|
|
6151
6155
|
x(y);
|
|
6152
|
-
const { a: C, d: T } = e, { ex: M, ey: B, ez: u, et: k } = this, { ex: $, ey:
|
|
6156
|
+
const { a: C, d: T } = e, { ex: M, ey: B, ez: u, et: k } = this, { ex: $, ey: Z, ez: ee, et: Be } = y;
|
|
6153
6157
|
if (C === BigInt(-1)) {
|
|
6154
|
-
const qe = m((B - M) * (
|
|
6158
|
+
const qe = m((B - M) * (Z + $)), Oe = m((B + M) * (Z - $)), Ut = m(Oe - qe);
|
|
6155
6159
|
if (Ut === mn)
|
|
6156
6160
|
return this.double();
|
|
6157
6161
|
const Ne = m(u * ti * Be), $e = m(k * ti * ee), Yt = $e + Ne, Ve = Oe + qe, w = $e - Ne, d = m(Yt * Ut), f = m(Ve * w), v = m(Yt * w), _ = m(Ut * Ve);
|
|
6158
6162
|
return new F(d, f, _, v);
|
|
6159
6163
|
}
|
|
6160
|
-
const ue = m(M * $), me = m(B *
|
|
6164
|
+
const ue = m(M * $), me = m(B * Z), nt = m(k * T * Be), Ce = m(u * ee), Ee = m((M + B) * ($ + Z) - ue - me), ot = Ce - nt, De = Ce + nt, Ie = m(me - C * ue), Mr = m(Ee * ot), He = m(De * Ie), Ye = m(Ee * Ie), _r = m(ot * De);
|
|
6161
6165
|
return new F(Mr, He, _r, Ye);
|
|
6162
6166
|
}
|
|
6163
6167
|
subtract(y) {
|
|
@@ -6169,7 +6173,7 @@ function lb(n) {
|
|
|
6169
6173
|
// Constant-time multiplication.
|
|
6170
6174
|
multiply(y) {
|
|
6171
6175
|
const C = y;
|
|
6172
|
-
dn("scalar", C,
|
|
6176
|
+
dn("scalar", C, Zt, r);
|
|
6173
6177
|
const { p: T, f: M } = this.wNAF(C);
|
|
6174
6178
|
return F.normalizeZ([T, M])[0];
|
|
6175
6179
|
}
|
|
@@ -6180,7 +6184,7 @@ function lb(n) {
|
|
|
6180
6184
|
// Accepts optional accumulator to merge with multiply (important for sparse scalars)
|
|
6181
6185
|
multiplyUnsafe(y, C = F.ZERO) {
|
|
6182
6186
|
const T = y;
|
|
6183
|
-
return dn("scalar", T, mn, r), T === mn ? z : this.is0() || T ===
|
|
6187
|
+
return dn("scalar", T, mn, r), T === mn ? z : this.is0() || T === Zt ? this : H.wNAFCachedUnsafe(this, T, F.normalizeZ, C);
|
|
6184
6188
|
}
|
|
6185
6189
|
// Checks if point is of small order.
|
|
6186
6190
|
// If you add something to small order point, you will have "dirty"
|
|
@@ -6201,7 +6205,7 @@ function lb(n) {
|
|
|
6201
6205
|
}
|
|
6202
6206
|
clearCofactor() {
|
|
6203
6207
|
const { h: y } = e;
|
|
6204
|
-
return y ===
|
|
6208
|
+
return y === Zt ? this : this.multiplyUnsafe(y);
|
|
6205
6209
|
}
|
|
6206
6210
|
// Converts hash string or Uint8Array to Point.
|
|
6207
6211
|
// Uses algo from RFC8032 5.1.3.
|
|
@@ -6210,13 +6214,13 @@ function lb(n) {
|
|
|
6210
6214
|
y = Ct("pointHex", y, B), $n("zip215", C);
|
|
6211
6215
|
const u = y.slice(), k = y[B - 1];
|
|
6212
6216
|
u[B - 1] = k & -129;
|
|
6213
|
-
const $ = Hr(u),
|
|
6214
|
-
dn("pointHex.y", $, mn,
|
|
6215
|
-
const ee = m($ * $), Be = m(ee -
|
|
6217
|
+
const $ = Hr(u), Z = C ? h : t.ORDER;
|
|
6218
|
+
dn("pointHex.y", $, mn, Z);
|
|
6219
|
+
const ee = m($ * $), Be = m(ee - Zt), ue = m(T * ee - M);
|
|
6216
6220
|
let { isValid: me, value: nt } = S(Be, ue);
|
|
6217
6221
|
if (!me)
|
|
6218
6222
|
throw new Error("Point.fromHex: invalid y coordinate");
|
|
6219
|
-
const Ce = (nt &
|
|
6223
|
+
const Ce = (nt & Zt) === Zt, Ee = (k & 128) !== 0;
|
|
6220
6224
|
if (!C && nt === mn && Ee)
|
|
6221
6225
|
throw new Error("Point.fromHex: x=0 and x_0=1");
|
|
6222
6226
|
return Ee !== Ce && (nt = m(-nt)), F.fromAffine({ x: nt, y: $ });
|
|
@@ -6226,16 +6230,16 @@ function lb(n) {
|
|
|
6226
6230
|
}
|
|
6227
6231
|
toRawBytes() {
|
|
6228
6232
|
const { x: y, y: C } = this.toAffine(), T = Ds(C, t.BYTES);
|
|
6229
|
-
return T[T.length - 1] |= y &
|
|
6233
|
+
return T[T.length - 1] |= y & Zt ? 128 : 0, T;
|
|
6230
6234
|
}
|
|
6231
6235
|
toHex() {
|
|
6232
6236
|
return Cr(this.toRawBytes());
|
|
6233
6237
|
}
|
|
6234
6238
|
}
|
|
6235
|
-
F.BASE = new F(e.Gx, e.Gy,
|
|
6239
|
+
F.BASE = new F(e.Gx, e.Gy, Zt, m(e.Gx * e.Gy)), F.ZERO = new F(mn, Zt, Zt, mn);
|
|
6236
6240
|
const { BASE: W, ZERO: z } = F, H = of(F, a * 8);
|
|
6237
6241
|
function K(p) {
|
|
6238
|
-
return
|
|
6242
|
+
return Ze(p, r);
|
|
6239
6243
|
}
|
|
6240
6244
|
function G(p) {
|
|
6241
6245
|
return K(Hr(p));
|
|
@@ -6255,9 +6259,9 @@ function lb(n) {
|
|
|
6255
6259
|
}
|
|
6256
6260
|
function le(p, y, C = {}) {
|
|
6257
6261
|
p = Ct("message", p), s && (p = s(p));
|
|
6258
|
-
const { prefix: T, scalar: M, pointBytes: B } = V(y), u = ne(C.context, T, p), k = W.multiply(u).toRawBytes(), $ = ne(C.context, k, B, p),
|
|
6259
|
-
dn("signature.s",
|
|
6260
|
-
const ee = Sr(k, Ds(
|
|
6262
|
+
const { prefix: T, scalar: M, pointBytes: B } = V(y), u = ne(C.context, T, p), k = W.multiply(u).toRawBytes(), $ = ne(C.context, k, B, p), Z = K(u + $ * M);
|
|
6263
|
+
dn("signature.s", Z, mn, r);
|
|
6264
|
+
const ee = Sr(k, Ds(Z, t.BYTES));
|
|
6261
6265
|
return Ct("result", ee, t.BYTES * 2);
|
|
6262
6266
|
}
|
|
6263
6267
|
const I = ab;
|
|
@@ -6265,16 +6269,16 @@ function lb(n) {
|
|
|
6265
6269
|
const { context: M, zip215: B } = T, u = t.BYTES;
|
|
6266
6270
|
p = Ct("signature", p, 2 * u), y = Ct("message", y), C = Ct("publicKey", C, u), B !== void 0 && $n("zip215", B), s && (y = s(y));
|
|
6267
6271
|
const k = Hr(p.slice(u, 2 * u));
|
|
6268
|
-
let $,
|
|
6272
|
+
let $, Z, ee;
|
|
6269
6273
|
try {
|
|
6270
|
-
$ = F.fromHex(C, B),
|
|
6274
|
+
$ = F.fromHex(C, B), Z = F.fromHex(p.slice(0, u), B), ee = W.multiplyUnsafe(k);
|
|
6271
6275
|
} catch {
|
|
6272
6276
|
return !1;
|
|
6273
6277
|
}
|
|
6274
6278
|
if (!B && $.isSmallOrder())
|
|
6275
6279
|
return !1;
|
|
6276
|
-
const Be = ne(M,
|
|
6277
|
-
return
|
|
6280
|
+
const Be = ne(M, Z.toRawBytes(), $.toRawBytes(), y);
|
|
6281
|
+
return Z.add($.multiplyUnsafe(Be)).subtract(ee).clearCofactor().equals(F.ZERO);
|
|
6278
6282
|
}
|
|
6279
6283
|
return W._setWindowSize(8), {
|
|
6280
6284
|
CURVE: e,
|
|
@@ -6312,10 +6316,10 @@ function mb(n) {
|
|
|
6312
6316
|
return n[0] &= 248, n[31] &= 127, n[31] |= 64, n;
|
|
6313
6317
|
}
|
|
6314
6318
|
function bb(n, e) {
|
|
6315
|
-
const t = vc, r =
|
|
6316
|
-
let o =
|
|
6317
|
-
const a =
|
|
6318
|
-
return m && (o = l), (E || S) && (o = h), z1(o, t) && (o =
|
|
6319
|
+
const t = vc, r = Ze(e * e * e, t), s = Ze(r * r * e, t), i = hb(n * s).pow_p_5_8;
|
|
6320
|
+
let o = Ze(n * r * i, t);
|
|
6321
|
+
const a = Ze(e * o * o, t), l = o, h = Ze(o * nd, t), m = a === n, E = a === Ze(-n, t), S = a === Ze(-n * nd, t);
|
|
6322
|
+
return m && (o = l), (E || S) && (o = h), z1(o, t) && (o = Ze(-o, t)), { isValid: m || E, value: o };
|
|
6319
6323
|
}
|
|
6320
6324
|
const pb = to(vc, void 0, !0), gb = {
|
|
6321
6325
|
// Param: a
|
|
@@ -6461,7 +6465,7 @@ const Ot = {
|
|
|
6461
6465
|
}, df = {
|
|
6462
6466
|
binary: "uint",
|
|
6463
6467
|
size: 4
|
|
6464
|
-
},
|
|
6468
|
+
}, lr = (n) => ({
|
|
6465
6469
|
name: "payloadId",
|
|
6466
6470
|
binary: "uint",
|
|
6467
6471
|
size: 1,
|
|
@@ -6488,22 +6492,22 @@ class xb {
|
|
|
6488
6492
|
var sd;
|
|
6489
6493
|
(function(n) {
|
|
6490
6494
|
function e(i) {
|
|
6491
|
-
return
|
|
6495
|
+
return sr.getPublicKey(i);
|
|
6492
6496
|
}
|
|
6493
6497
|
n.toPubkey = e;
|
|
6494
6498
|
function t(i, o) {
|
|
6495
6499
|
if (o.length != 32)
|
|
6496
6500
|
throw new Error("hash.length != 32");
|
|
6497
|
-
return
|
|
6501
|
+
return sr.sign(o, i);
|
|
6498
6502
|
}
|
|
6499
6503
|
n.sign = t;
|
|
6500
6504
|
function r(i, o, a) {
|
|
6501
6505
|
const { r: l, s: h } = i;
|
|
6502
|
-
return
|
|
6506
|
+
return sr.verify({ r: l, s: h }, a, o);
|
|
6503
6507
|
}
|
|
6504
6508
|
n.validate = r;
|
|
6505
6509
|
function s(i, o) {
|
|
6506
|
-
const { r: a, s: l, v: h } = i, m = new
|
|
6510
|
+
const { r: a, s: l, v: h } = i, m = new sr.Signature(a, l);
|
|
6507
6511
|
return m.recovery = h, m.recoverPublicKey(o).toRawBytes();
|
|
6508
6512
|
}
|
|
6509
6513
|
n.recover = s;
|
|
@@ -6579,7 +6583,7 @@ function id(n) {
|
|
|
6579
6583
|
];
|
|
6580
6584
|
return Vn(e, n);
|
|
6581
6585
|
}
|
|
6582
|
-
function
|
|
6586
|
+
function s6(n, e) {
|
|
6583
6587
|
if (n === "Uint8Array")
|
|
6584
6588
|
return e;
|
|
6585
6589
|
const t = Fs(n);
|
|
@@ -14194,7 +14198,7 @@ function Mb(n, e) {
|
|
|
14194
14198
|
const t = no(n, e);
|
|
14195
14199
|
return t ? Ns.native(t) : void 0;
|
|
14196
14200
|
}
|
|
14197
|
-
function
|
|
14201
|
+
function i6(n, e, t) {
|
|
14198
14202
|
const r = no(n, e);
|
|
14199
14203
|
return r ? Ns.byAddress(r, t) : void 0;
|
|
14200
14204
|
}
|
|
@@ -14228,7 +14232,7 @@ function Pb(n, e) {
|
|
|
14228
14232
|
function Xn(n) {
|
|
14229
14233
|
return Ic(n) && jt(n.address) ? n.address : n.address.toNative(n.chain).toString();
|
|
14230
14234
|
}
|
|
14231
|
-
function
|
|
14235
|
+
function o6(n) {
|
|
14232
14236
|
if (jt(n.address))
|
|
14233
14237
|
throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");
|
|
14234
14238
|
return n.address.toUniversalAddress().toString();
|
|
@@ -14290,7 +14294,7 @@ function Nb(n) {
|
|
|
14290
14294
|
function bf(n) {
|
|
14291
14295
|
return typeof n == "object" && "chain" in n && typeof n.chain == "function" && "address" in n && typeof n.address == "function" && "signAndSend" in n && typeof n.signAndSend == "function";
|
|
14292
14296
|
}
|
|
14293
|
-
class
|
|
14297
|
+
class a6 {
|
|
14294
14298
|
constructor(e, t, r) {
|
|
14295
14299
|
ie(this, "_chain");
|
|
14296
14300
|
ie(this, "_address");
|
|
@@ -14308,7 +14312,7 @@ function Ui(n) {
|
|
|
14308
14312
|
return n.hash !== void 0;
|
|
14309
14313
|
}
|
|
14310
14314
|
const ld = (n) => [
|
|
14311
|
-
|
|
14315
|
+
lr(1),
|
|
14312
14316
|
{
|
|
14313
14317
|
name: "token",
|
|
14314
14318
|
binary: "bytes",
|
|
@@ -14324,7 +14328,7 @@ const ld = (n) => [
|
|
|
14324
14328
|
{ name: "mintRecipient", ...ve },
|
|
14325
14329
|
hc({ name: "payload", lengthSize: 2 }, n)
|
|
14326
14330
|
], zb = [
|
|
14327
|
-
|
|
14331
|
+
lr(1),
|
|
14328
14332
|
{ name: "targetRelayerFee", ...Ot },
|
|
14329
14333
|
{ name: "toNativeTokenAmount", ...Ot },
|
|
14330
14334
|
{ name: "targetRecipient", ...ve }
|
|
@@ -14399,11 +14403,11 @@ const ud = {
|
|
|
14399
14403
|
]
|
|
14400
14404
|
}
|
|
14401
14405
|
], yf = [
|
|
14402
|
-
|
|
14406
|
+
lr(1),
|
|
14403
14407
|
...gf,
|
|
14404
14408
|
{ name: "fee", ...Ot }
|
|
14405
14409
|
], ro = (n) => [
|
|
14406
|
-
|
|
14410
|
+
lr(3),
|
|
14407
14411
|
...gf,
|
|
14408
14412
|
{ name: "from", ...ve },
|
|
14409
14413
|
hc({ name: "payload" }, n)
|
|
@@ -14411,7 +14415,7 @@ const ud = {
|
|
|
14411
14415
|
[
|
|
14412
14416
|
"AttestMeta",
|
|
14413
14417
|
[
|
|
14414
|
-
|
|
14418
|
+
lr(2),
|
|
14415
14419
|
{
|
|
14416
14420
|
name: "token",
|
|
14417
14421
|
binary: "bytes",
|
|
@@ -14482,8 +14486,8 @@ const wf = {
|
|
|
14482
14486
|
[[1, "VAA"], Xb],
|
|
14483
14487
|
[[2, "CCTP"], Yb]
|
|
14484
14488
|
]
|
|
14485
|
-
},
|
|
14486
|
-
|
|
14489
|
+
}, Zb = (n) => [
|
|
14490
|
+
lr(1),
|
|
14487
14491
|
{ name: "target", ...hd },
|
|
14488
14492
|
hc({ name: "payload", lengthSize: 4 }, n),
|
|
14489
14493
|
{ name: "requestedReceiverValue", ...Ot },
|
|
@@ -14494,12 +14498,12 @@ const wf = {
|
|
|
14494
14498
|
{ name: "sourceDeliveryProvider", ...ve },
|
|
14495
14499
|
{ name: "senderAddress", ...ve },
|
|
14496
14500
|
{ name: "messageKeys", binary: "array", lengthSize: 1, layout: Af }
|
|
14497
|
-
],
|
|
14498
|
-
["DeliveryInstruction",
|
|
14501
|
+
], Jb = [
|
|
14502
|
+
["DeliveryInstruction", Zb()],
|
|
14499
14503
|
[
|
|
14500
14504
|
"RedeliveryInstruction",
|
|
14501
14505
|
[
|
|
14502
|
-
|
|
14506
|
+
lr(2),
|
|
14503
14507
|
{ name: "deliveryVaaKey", binary: "bytes", layout: Af },
|
|
14504
14508
|
{ name: "targetChain", ...tn() },
|
|
14505
14509
|
{ name: "newRequestedReceiverValue", ...Ot },
|
|
@@ -14509,9 +14513,9 @@ const wf = {
|
|
|
14509
14513
|
]
|
|
14510
14514
|
]
|
|
14511
14515
|
];
|
|
14512
|
-
It("Relayer",
|
|
14516
|
+
It("Relayer", Jb);
|
|
14513
14517
|
const Qb = [
|
|
14514
|
-
|
|
14518
|
+
lr(1),
|
|
14515
14519
|
{ name: "targetRelayerFee", ...Ot },
|
|
14516
14520
|
{ name: "toNativeTokenAmount", ...Ot },
|
|
14517
14521
|
{ name: "targetRecipient", ...ve }
|
|
@@ -14519,7 +14523,7 @@ const Qb = [
|
|
|
14519
14523
|
["TransferWithRelay", ro(Qb)]
|
|
14520
14524
|
];
|
|
14521
14525
|
It("AutomaticTokenBridge", ep);
|
|
14522
|
-
const
|
|
14526
|
+
const c6 = (n) => new Error(`Token ${n} is not a wrapped asset`);
|
|
14523
14527
|
var Ga;
|
|
14524
14528
|
(function(n) {
|
|
14525
14529
|
const e = "TokenBridge", t = ["Transfer", "TransferWithPayload"], r = ["AttestMeta"];
|
|
@@ -14832,7 +14836,7 @@ function Sf(n, e) {
|
|
|
14832
14836
|
return s;
|
|
14833
14837
|
return null;
|
|
14834
14838
|
}
|
|
14835
|
-
const Df = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
14839
|
+
const Df = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Qe.global, vf = (n) => !Is(n) && n !== Df;
|
|
14836
14840
|
function Ya() {
|
|
14837
14841
|
const { caseless: n } = vf(this) && this || {}, e = {}, t = (r, s) => {
|
|
14838
14842
|
const i = n && Sf(e, s) || s;
|
|
@@ -14884,12 +14888,12 @@ const zp = (n, e, t, { allOwnKeys: r } = {}) => (qs(e, (s, i) => {
|
|
|
14884
14888
|
for (; (t = n.exec(e)) !== null; )
|
|
14885
14889
|
r.push(t);
|
|
14886
14890
|
return r;
|
|
14887
|
-
}, Yp = Un("HTMLFormElement"),
|
|
14891
|
+
}, Yp = Un("HTMLFormElement"), Zp = (n) => n.toLowerCase().replace(
|
|
14888
14892
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
14889
14893
|
function(t, r, s) {
|
|
14890
14894
|
return r.toUpperCase() + s;
|
|
14891
14895
|
}
|
|
14892
|
-
), gd = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype),
|
|
14896
|
+
), gd = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Jp = Un("RegExp"), kf = (n, e) => {
|
|
14893
14897
|
const t = Object.getOwnPropertyDescriptors(n), r = {};
|
|
14894
14898
|
qs(t, (s, i) => {
|
|
14895
14899
|
e(s, i, n) !== !1 && (r[i] = s);
|
|
@@ -14963,7 +14967,7 @@ const ig = (n) => {
|
|
|
14963
14967
|
isDate: Mp,
|
|
14964
14968
|
isFile: _p,
|
|
14965
14969
|
isBlob: Rp,
|
|
14966
|
-
isRegExp:
|
|
14970
|
+
isRegExp: Jp,
|
|
14967
14971
|
isFunction: un,
|
|
14968
14972
|
isStream: Pp,
|
|
14969
14973
|
isURLSearchParams: Op,
|
|
@@ -14989,7 +14993,7 @@ const ig = (n) => {
|
|
|
14989
14993
|
reduceDescriptors: kf,
|
|
14990
14994
|
freezeMethods: Qp,
|
|
14991
14995
|
toObjectSet: eg,
|
|
14992
|
-
toCamelCase:
|
|
14996
|
+
toCamelCase: Zp,
|
|
14993
14997
|
noop: tg,
|
|
14994
14998
|
toFiniteNumber: ng,
|
|
14995
14999
|
findKey: Sf,
|
|
@@ -15053,7 +15057,7 @@ Fe.from = (n, e, t, r, s, i) => {
|
|
|
15053
15057
|
}, (a) => a !== "isAxiosError"), Fe.call(o, n.message, e, t, r, s), o.cause = n, o.name = n.name, i && Object.assign(o, i), o;
|
|
15054
15058
|
};
|
|
15055
15059
|
const cg = null;
|
|
15056
|
-
function
|
|
15060
|
+
function Za(n) {
|
|
15057
15061
|
return q.isPlainObject(n) || q.isArray(n);
|
|
15058
15062
|
}
|
|
15059
15063
|
function Uf(n) {
|
|
@@ -15065,7 +15069,7 @@ function wd(n, e, t) {
|
|
|
15065
15069
|
}).join(t ? "." : "") : e;
|
|
15066
15070
|
}
|
|
15067
15071
|
function lg(n) {
|
|
15068
|
-
return q.isArray(n) && !n.some(
|
|
15072
|
+
return q.isArray(n) && !n.some(Za);
|
|
15069
15073
|
}
|
|
15070
15074
|
const dg = q.toFlatObject(q, {}, null, function(e) {
|
|
15071
15075
|
return /^is[A-Z]/.test(e);
|
|
@@ -15089,7 +15093,7 @@ function ao(n, e, t) {
|
|
|
15089
15093
|
return g.toISOString();
|
|
15090
15094
|
if (!l && q.isBlob(g))
|
|
15091
15095
|
throw new Fe("Blob is not supported. Use a Buffer instead.");
|
|
15092
|
-
return q.isArrayBuffer(g) || q.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) :
|
|
15096
|
+
return q.isArrayBuffer(g) || q.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Qe.Buffer.from(g) : g;
|
|
15093
15097
|
}
|
|
15094
15098
|
function m(g, D, x) {
|
|
15095
15099
|
let U = g;
|
|
@@ -15105,12 +15109,12 @@ function ao(n, e, t) {
|
|
|
15105
15109
|
);
|
|
15106
15110
|
}), !1;
|
|
15107
15111
|
}
|
|
15108
|
-
return
|
|
15112
|
+
return Za(g) ? !0 : (e.append(wd(x, D, i), h(g)), !1);
|
|
15109
15113
|
}
|
|
15110
15114
|
const E = [], S = Object.assign(dg, {
|
|
15111
15115
|
defaultVisitor: m,
|
|
15112
15116
|
convertValue: h,
|
|
15113
|
-
isVisitable:
|
|
15117
|
+
isVisitable: Za
|
|
15114
15118
|
});
|
|
15115
15119
|
function A(g, D) {
|
|
15116
15120
|
if (!q.isUndefined(g)) {
|
|
@@ -15795,7 +15799,7 @@ function Cd(n) {
|
|
|
15795
15799
|
});
|
|
15796
15800
|
}
|
|
15797
15801
|
const Sd = (n) => n instanceof fn ? n.toJSON() : n;
|
|
15798
|
-
function
|
|
15802
|
+
function Zr(n, e) {
|
|
15799
15803
|
e = e || {};
|
|
15800
15804
|
const t = {};
|
|
15801
15805
|
function r(h, m, E) {
|
|
@@ -15900,10 +15904,10 @@ function Lg(n, e, t) {
|
|
|
15900
15904
|
throw new Fe("Unknown option " + i, Fe.ERR_BAD_OPTION);
|
|
15901
15905
|
}
|
|
15902
15906
|
}
|
|
15903
|
-
const
|
|
15907
|
+
const Ja = {
|
|
15904
15908
|
assertOptions: Lg,
|
|
15905
15909
|
validators: _c
|
|
15906
|
-
}, nr =
|
|
15910
|
+
}, nr = Ja.validators;
|
|
15907
15911
|
let Er = class {
|
|
15908
15912
|
constructor(e) {
|
|
15909
15913
|
this.defaults = e, this.interceptors = {
|
|
@@ -15920,15 +15924,15 @@ let Er = class {
|
|
|
15920
15924
|
* @returns {Promise} The Promise to be fulfilled
|
|
15921
15925
|
*/
|
|
15922
15926
|
request(e, t) {
|
|
15923
|
-
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t =
|
|
15927
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Zr(this.defaults, t);
|
|
15924
15928
|
const { transitional: r, paramsSerializer: s, headers: i } = t;
|
|
15925
|
-
r !== void 0 &&
|
|
15929
|
+
r !== void 0 && Ja.assertOptions(r, {
|
|
15926
15930
|
silentJSONParsing: nr.transitional(nr.boolean),
|
|
15927
15931
|
forcedJSONParsing: nr.transitional(nr.boolean),
|
|
15928
15932
|
clarifyTimeoutError: nr.transitional(nr.boolean)
|
|
15929
15933
|
}, !1), s != null && (q.isFunction(s) ? t.paramsSerializer = {
|
|
15930
15934
|
serialize: s
|
|
15931
|
-
} :
|
|
15935
|
+
} : Ja.assertOptions(s, {
|
|
15932
15936
|
encode: nr.function,
|
|
15933
15937
|
serialize: nr.function
|
|
15934
15938
|
}, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -15979,14 +15983,14 @@ let Er = class {
|
|
|
15979
15983
|
return m;
|
|
15980
15984
|
}
|
|
15981
15985
|
getUri(e) {
|
|
15982
|
-
e =
|
|
15986
|
+
e = Zr(this.defaults, e);
|
|
15983
15987
|
const t = Lf(e.baseURL, e.url);
|
|
15984
15988
|
return _f(t, e.params, e.paramsSerializer);
|
|
15985
15989
|
}
|
|
15986
15990
|
};
|
|
15987
15991
|
q.forEach(["delete", "get", "head", "options"], function(e) {
|
|
15988
15992
|
Er.prototype[e] = function(t, r) {
|
|
15989
|
-
return this.request(
|
|
15993
|
+
return this.request(Zr(r || {}, {
|
|
15990
15994
|
method: e,
|
|
15991
15995
|
url: t,
|
|
15992
15996
|
data: (r || {}).data
|
|
@@ -15996,7 +16000,7 @@ q.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
15996
16000
|
q.forEach(["post", "put", "patch"], function(e) {
|
|
15997
16001
|
function t(r) {
|
|
15998
16002
|
return function(i, o, a) {
|
|
15999
|
-
return this.request(
|
|
16003
|
+
return this.request(Zr(a || {}, {
|
|
16000
16004
|
method: e,
|
|
16001
16005
|
headers: r ? {
|
|
16002
16006
|
"Content-Type": "multipart/form-data"
|
|
@@ -16154,7 +16158,7 @@ Object.entries(Qa).forEach(([n, e]) => {
|
|
|
16154
16158
|
function zf(n) {
|
|
16155
16159
|
const e = new Er(n), t = Bf(Er.prototype.request, e);
|
|
16156
16160
|
return q.extend(t, Er.prototype, e, { allOwnKeys: !0 }), q.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
|
|
16157
|
-
return zf(
|
|
16161
|
+
return zf(Zr(n, s));
|
|
16158
16162
|
}, t;
|
|
16159
16163
|
}
|
|
16160
16164
|
const _e = zf(cs);
|
|
@@ -16171,27 +16175,27 @@ _e.all = function(e) {
|
|
|
16171
16175
|
};
|
|
16172
16176
|
_e.spread = Ng;
|
|
16173
16177
|
_e.isAxiosError = zg;
|
|
16174
|
-
_e.mergeConfig =
|
|
16178
|
+
_e.mergeConfig = Zr;
|
|
16175
16179
|
_e.AxiosHeaders = fn;
|
|
16176
16180
|
_e.formToJSON = (n) => Wf(q.isHTMLForm(n) ? new FormData(n) : n);
|
|
16177
16181
|
_e.HttpStatusCode = Qa;
|
|
16178
16182
|
_e.default = _e;
|
|
16179
16183
|
const {
|
|
16180
|
-
Axios:
|
|
16181
|
-
AxiosError:
|
|
16182
|
-
CanceledError:
|
|
16183
|
-
isCancel:
|
|
16184
|
-
CancelToken:
|
|
16185
|
-
VERSION:
|
|
16186
|
-
all:
|
|
16187
|
-
Cancel:
|
|
16188
|
-
isAxiosError:
|
|
16189
|
-
spread:
|
|
16190
|
-
toFormData:
|
|
16191
|
-
AxiosHeaders:
|
|
16192
|
-
HttpStatusCode:
|
|
16193
|
-
formToJSON:
|
|
16194
|
-
mergeConfig:
|
|
16184
|
+
Axios: u6,
|
|
16185
|
+
AxiosError: f6,
|
|
16186
|
+
CanceledError: h6,
|
|
16187
|
+
isCancel: m6,
|
|
16188
|
+
CancelToken: b6,
|
|
16189
|
+
VERSION: p6,
|
|
16190
|
+
all: g6,
|
|
16191
|
+
Cancel: y6,
|
|
16192
|
+
isAxiosError: w6,
|
|
16193
|
+
spread: A6,
|
|
16194
|
+
toFormData: E6,
|
|
16195
|
+
AxiosHeaders: B6,
|
|
16196
|
+
HttpStatusCode: x6,
|
|
16197
|
+
formToJSON: C6,
|
|
16198
|
+
mergeConfig: S6
|
|
16195
16199
|
} = _e, Hn = 60 * 1e3, Hf = {
|
|
16196
16200
|
Mainnet: {
|
|
16197
16201
|
api: "https://api.wormholescan.io",
|
|
@@ -16217,7 +16221,7 @@ function qg(n, e) {
|
|
|
16217
16221
|
let t = Hf[n];
|
|
16218
16222
|
return e ? Rc(t, e) : t;
|
|
16219
16223
|
}
|
|
16220
|
-
function
|
|
16224
|
+
function D6(n, e, t) {
|
|
16221
16225
|
const r = Hg(n, e);
|
|
16222
16226
|
return t ? Rc(r, t) : r;
|
|
16223
16227
|
}
|
|
@@ -16227,8 +16231,8 @@ function Rc(n, e) {
|
|
|
16227
16231
|
typeof r == "object" && !Array.isArray(r) ? n[t] = Rc(n[t], r) : n[t] = r;
|
|
16228
16232
|
return n;
|
|
16229
16233
|
}
|
|
16230
|
-
const Kg = typeof
|
|
16231
|
-
Kg &&
|
|
16234
|
+
const Kg = typeof Qe.process < "u";
|
|
16235
|
+
Kg && Qe.process.env.NETWORK;
|
|
16232
16236
|
async function ls(n, e, t = Hn, r) {
|
|
16233
16237
|
const s = Math.floor(t / e);
|
|
16234
16238
|
let i = 0;
|
|
@@ -16301,19 +16305,19 @@ function kd(n) {
|
|
|
16301
16305
|
function Ri(n) {
|
|
16302
16306
|
return n.state === fe.Attested;
|
|
16303
16307
|
}
|
|
16304
|
-
function
|
|
16308
|
+
function v6(n) {
|
|
16305
16309
|
return n.state === fe.Refunded;
|
|
16306
16310
|
}
|
|
16307
16311
|
function Kf(n) {
|
|
16308
16312
|
return n.state === fe.DestinationInitiated;
|
|
16309
16313
|
}
|
|
16310
|
-
function
|
|
16314
|
+
function k6(n) {
|
|
16311
16315
|
return n.state === fe.DestinationQueued;
|
|
16312
16316
|
}
|
|
16313
|
-
function
|
|
16317
|
+
function F6(n) {
|
|
16314
16318
|
return n.state === fe.DestinationFinalized;
|
|
16315
16319
|
}
|
|
16316
|
-
function
|
|
16320
|
+
function T6(n) {
|
|
16317
16321
|
return n.state < 0;
|
|
16318
16322
|
}
|
|
16319
16323
|
class Rt {
|
|
@@ -16652,12 +16656,12 @@ async function jf(n, e) {
|
|
|
16652
16656
|
async function Yg(n, e, t) {
|
|
16653
16657
|
return await ls(() => jf(n, e), co, t, "Wormholescan:GetVaaBytes");
|
|
16654
16658
|
}
|
|
16655
|
-
async function
|
|
16659
|
+
async function Zg(n, e, t) {
|
|
16656
16660
|
const r = await jf(n, e);
|
|
16657
16661
|
return r ? Ii(t, r) : null;
|
|
16658
16662
|
}
|
|
16659
|
-
async function
|
|
16660
|
-
return await ls(() =>
|
|
16663
|
+
async function Jg(n, e, t, r) {
|
|
16664
|
+
return await ls(() => Zg(n, e, t), co, r, "Wormholescan:GetVaaBytes");
|
|
16661
16665
|
}
|
|
16662
16666
|
async function Qg(n, e) {
|
|
16663
16667
|
var l;
|
|
@@ -17159,7 +17163,7 @@ function oy(n) {
|
|
|
17159
17163
|
throw new Error("Not every chain is equal");
|
|
17160
17164
|
return Array.from(new Set(n.map((t) => Xn(t)))).map((t) => bn.tokenId(e, t));
|
|
17161
17165
|
}
|
|
17162
|
-
async function
|
|
17166
|
+
async function I6(n, e, t) {
|
|
17163
17167
|
const r = Xn(e), s = n.config.tokenMap ? Ns.byAddress(n.config.tokenMap, r) : void 0, i = s ? s.symbol : void 0, o = jt(e.address) ? await n.getNativeWrappedTokenId() : void 0;
|
|
17164
17168
|
return t = t ?? await n.getDecimals(e.address), {
|
|
17165
17169
|
id: e,
|
|
@@ -17403,7 +17407,7 @@ class bn {
|
|
|
17403
17407
|
* @throws Errors if the VAA is not available after the retries
|
|
17404
17408
|
*/
|
|
17405
17409
|
async getVaa(e, t, r = Hn) {
|
|
17406
|
-
return typeof e == "string" ? await Fd(this.config.api, e, t, r) : await
|
|
17410
|
+
return typeof e == "string" ? await Fd(this.config.api, e, t, r) : await Jg(this.config.api, e, t, r);
|
|
17407
17411
|
}
|
|
17408
17412
|
/**
|
|
17409
17413
|
* Gets if the token bridge transfer VAA has been enqueued by the Governor.
|
|
@@ -17523,18 +17527,18 @@ class Wc {
|
|
|
17523
17527
|
class cy extends Wc {
|
|
17524
17528
|
}
|
|
17525
17529
|
ie(cy, "IS_AUTOMATIC", !0);
|
|
17526
|
-
function
|
|
17530
|
+
function U6(n) {
|
|
17527
17531
|
return !!n.constructor.IS_AUTOMATIC;
|
|
17528
17532
|
}
|
|
17529
17533
|
class Td extends Wc {
|
|
17530
17534
|
}
|
|
17531
17535
|
ie(Td, "NATIVE_GAS_DROPOFF_SUPPORTED", !1), ie(Td, "IS_AUTOMATIC", !1);
|
|
17532
|
-
function
|
|
17536
|
+
function M6(n) {
|
|
17533
17537
|
return n.complete !== void 0;
|
|
17534
17538
|
}
|
|
17535
|
-
class
|
|
17539
|
+
class _6 extends Wc {
|
|
17536
17540
|
}
|
|
17537
|
-
function
|
|
17541
|
+
function R6(n) {
|
|
17538
17542
|
return n.finalize !== void 0;
|
|
17539
17543
|
}
|
|
17540
17544
|
var ec = { exports: {} };
|
|
@@ -17837,8 +17841,8 @@ Pc.exports;
|
|
|
17837
17841
|
p = "";
|
|
17838
17842
|
var $ = this.clone();
|
|
17839
17843
|
for ($.negative = 0; !$.isZero(); ) {
|
|
17840
|
-
var
|
|
17841
|
-
$ = $.idivn(k), $.isZero() ? p =
|
|
17844
|
+
var Z = $.modrn(k).toString(c);
|
|
17845
|
+
$ = $.idivn(k), $.isZero() ? p = Z + p : p = S[u - Z.length] + Z + p;
|
|
17842
17846
|
}
|
|
17843
17847
|
for (this.isZero() && (p = "0" + p); p.length % b !== 0; )
|
|
17844
17848
|
p = "0" + p;
|
|
@@ -18022,7 +18026,7 @@ Pc.exports;
|
|
|
18022
18026
|
var y = I.words[0] | 0, C = c.words[0] | 0, T = y * C, M = T & 67108863, B = T / 67108864 | 0;
|
|
18023
18027
|
b.words[0] = M;
|
|
18024
18028
|
for (var u = 1; u < p; u++) {
|
|
18025
|
-
for (var k = B >>> 26, $ = B & 67108863,
|
|
18029
|
+
for (var k = B >>> 26, $ = B & 67108863, Z = Math.min(u, c.length - 1), ee = Math.max(0, u - I.length + 1); ee <= Z; ee++) {
|
|
18026
18030
|
var Be = u - ee | 0;
|
|
18027
18031
|
y = I.words[Be] | 0, C = c.words[ee] | 0, T = y * C + $, k += T / 67108864 | 0, $ = T & 67108863;
|
|
18028
18032
|
}
|
|
@@ -18031,26 +18035,26 @@ Pc.exports;
|
|
|
18031
18035
|
return B !== 0 ? b.words[u] = B | 0 : b.length--, b._strip();
|
|
18032
18036
|
}
|
|
18033
18037
|
var R = function(c, b, p) {
|
|
18034
|
-
var y = c.words, C = b.words, T = p.words, M = 0, B, u, k, $ = y[0] | 0,
|
|
18035
|
-
p.negative = c.negative ^ b.negative, p.length = 19, B = Math.imul(
|
|
18038
|
+
var y = c.words, C = b.words, T = p.words, M = 0, B, u, k, $ = y[0] | 0, Z = $ & 8191, ee = $ >>> 13, Be = y[1] | 0, ue = Be & 8191, me = Be >>> 13, nt = y[2] | 0, Ce = nt & 8191, Ee = nt >>> 13, ot = y[3] | 0, De = ot & 8191, Ie = ot >>> 13, Mr = y[4] | 0, He = Mr & 8191, Ye = Mr >>> 13, _r = y[5] | 0, qe = _r & 8191, Oe = _r >>> 13, Ut = y[6] | 0, Ne = Ut & 8191, $e = Ut >>> 13, Yt = y[7] | 0, Ve = Yt & 8191, w = Yt >>> 13, d = y[8] | 0, f = d & 8191, v = d >>> 13, _ = y[9] | 0, P = _ & 8191, N = _ >>> 13, ge = C[0] | 0, pe = ge & 8191, be = ge >>> 13, Ge = C[1] | 0, he = Ge & 8191, at = Ge >>> 13, fl = C[2] | 0, ct = fl & 8191, lt = fl >>> 13, hl = C[3] | 0, dt = hl & 8191, ut = hl >>> 13, ml = C[4] | 0, ft = ml & 8191, ht = ml >>> 13, bl = C[5] | 0, mt = bl & 8191, bt = bl >>> 13, pl = C[6] | 0, pt = pl & 8191, gt = pl >>> 13, gl = C[7] | 0, yt = gl & 8191, wt = gl >>> 13, yl = C[8] | 0, At = yl & 8191, Et = yl >>> 13, wl = C[9] | 0, Bt = wl & 8191, xt = wl >>> 13;
|
|
18039
|
+
p.negative = c.negative ^ b.negative, p.length = 19, B = Math.imul(Z, pe), u = Math.imul(Z, be), u = u + Math.imul(ee, pe) | 0, k = Math.imul(ee, be);
|
|
18036
18040
|
var Co = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18037
|
-
M = (k + (u >>> 13) | 0) + (Co >>> 26) | 0, Co &= 67108863, B = Math.imul(ue, pe), u = Math.imul(ue, be), u = u + Math.imul(me, pe) | 0, k = Math.imul(me, be), B = B + Math.imul(
|
|
18041
|
+
M = (k + (u >>> 13) | 0) + (Co >>> 26) | 0, Co &= 67108863, B = Math.imul(ue, pe), u = Math.imul(ue, be), u = u + Math.imul(me, pe) | 0, k = Math.imul(me, be), B = B + Math.imul(Z, he) | 0, u = u + Math.imul(Z, at) | 0, u = u + Math.imul(ee, he) | 0, k = k + Math.imul(ee, at) | 0;
|
|
18038
18042
|
var So = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18039
|
-
M = (k + (u >>> 13) | 0) + (So >>> 26) | 0, So &= 67108863, B = Math.imul(Ce, pe), u = Math.imul(Ce, be), u = u + Math.imul(Ee, pe) | 0, k = Math.imul(Ee, be), B = B + Math.imul(ue, he) | 0, u = u + Math.imul(ue, at) | 0, u = u + Math.imul(me, he) | 0, k = k + Math.imul(me, at) | 0, B = B + Math.imul(
|
|
18043
|
+
M = (k + (u >>> 13) | 0) + (So >>> 26) | 0, So &= 67108863, B = Math.imul(Ce, pe), u = Math.imul(Ce, be), u = u + Math.imul(Ee, pe) | 0, k = Math.imul(Ee, be), B = B + Math.imul(ue, he) | 0, u = u + Math.imul(ue, at) | 0, u = u + Math.imul(me, he) | 0, k = k + Math.imul(me, at) | 0, B = B + Math.imul(Z, ct) | 0, u = u + Math.imul(Z, lt) | 0, u = u + Math.imul(ee, ct) | 0, k = k + Math.imul(ee, lt) | 0;
|
|
18040
18044
|
var Do = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18041
|
-
M = (k + (u >>> 13) | 0) + (Do >>> 26) | 0, Do &= 67108863, B = Math.imul(De, pe), u = Math.imul(De, be), u = u + Math.imul(Ie, pe) | 0, k = Math.imul(Ie, be), B = B + Math.imul(Ce, he) | 0, u = u + Math.imul(Ce, at) | 0, u = u + Math.imul(Ee, he) | 0, k = k + Math.imul(Ee, at) | 0, B = B + Math.imul(ue, ct) | 0, u = u + Math.imul(ue, lt) | 0, u = u + Math.imul(me, ct) | 0, k = k + Math.imul(me, lt) | 0, B = B + Math.imul(
|
|
18045
|
+
M = (k + (u >>> 13) | 0) + (Do >>> 26) | 0, Do &= 67108863, B = Math.imul(De, pe), u = Math.imul(De, be), u = u + Math.imul(Ie, pe) | 0, k = Math.imul(Ie, be), B = B + Math.imul(Ce, he) | 0, u = u + Math.imul(Ce, at) | 0, u = u + Math.imul(Ee, he) | 0, k = k + Math.imul(Ee, at) | 0, B = B + Math.imul(ue, ct) | 0, u = u + Math.imul(ue, lt) | 0, u = u + Math.imul(me, ct) | 0, k = k + Math.imul(me, lt) | 0, B = B + Math.imul(Z, dt) | 0, u = u + Math.imul(Z, ut) | 0, u = u + Math.imul(ee, dt) | 0, k = k + Math.imul(ee, ut) | 0;
|
|
18042
18046
|
var vo = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18043
|
-
M = (k + (u >>> 13) | 0) + (vo >>> 26) | 0, vo &= 67108863, B = Math.imul(He, pe), u = Math.imul(He, be), u = u + Math.imul(Ye, pe) | 0, k = Math.imul(Ye, be), B = B + Math.imul(De, he) | 0, u = u + Math.imul(De, at) | 0, u = u + Math.imul(Ie, he) | 0, k = k + Math.imul(Ie, at) | 0, B = B + Math.imul(Ce, ct) | 0, u = u + Math.imul(Ce, lt) | 0, u = u + Math.imul(Ee, ct) | 0, k = k + Math.imul(Ee, lt) | 0, B = B + Math.imul(ue, dt) | 0, u = u + Math.imul(ue, ut) | 0, u = u + Math.imul(me, dt) | 0, k = k + Math.imul(me, ut) | 0, B = B + Math.imul(
|
|
18047
|
+
M = (k + (u >>> 13) | 0) + (vo >>> 26) | 0, vo &= 67108863, B = Math.imul(He, pe), u = Math.imul(He, be), u = u + Math.imul(Ye, pe) | 0, k = Math.imul(Ye, be), B = B + Math.imul(De, he) | 0, u = u + Math.imul(De, at) | 0, u = u + Math.imul(Ie, he) | 0, k = k + Math.imul(Ie, at) | 0, B = B + Math.imul(Ce, ct) | 0, u = u + Math.imul(Ce, lt) | 0, u = u + Math.imul(Ee, ct) | 0, k = k + Math.imul(Ee, lt) | 0, B = B + Math.imul(ue, dt) | 0, u = u + Math.imul(ue, ut) | 0, u = u + Math.imul(me, dt) | 0, k = k + Math.imul(me, ut) | 0, B = B + Math.imul(Z, ft) | 0, u = u + Math.imul(Z, ht) | 0, u = u + Math.imul(ee, ft) | 0, k = k + Math.imul(ee, ht) | 0;
|
|
18044
18048
|
var ko = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18045
|
-
M = (k + (u >>> 13) | 0) + (ko >>> 26) | 0, ko &= 67108863, B = Math.imul(qe, pe), u = Math.imul(qe, be), u = u + Math.imul(Oe, pe) | 0, k = Math.imul(Oe, be), B = B + Math.imul(He, he) | 0, u = u + Math.imul(He, at) | 0, u = u + Math.imul(Ye, he) | 0, k = k + Math.imul(Ye, at) | 0, B = B + Math.imul(De, ct) | 0, u = u + Math.imul(De, lt) | 0, u = u + Math.imul(Ie, ct) | 0, k = k + Math.imul(Ie, lt) | 0, B = B + Math.imul(Ce, dt) | 0, u = u + Math.imul(Ce, ut) | 0, u = u + Math.imul(Ee, dt) | 0, k = k + Math.imul(Ee, ut) | 0, B = B + Math.imul(ue, ft) | 0, u = u + Math.imul(ue, ht) | 0, u = u + Math.imul(me, ft) | 0, k = k + Math.imul(me, ht) | 0, B = B + Math.imul(
|
|
18049
|
+
M = (k + (u >>> 13) | 0) + (ko >>> 26) | 0, ko &= 67108863, B = Math.imul(qe, pe), u = Math.imul(qe, be), u = u + Math.imul(Oe, pe) | 0, k = Math.imul(Oe, be), B = B + Math.imul(He, he) | 0, u = u + Math.imul(He, at) | 0, u = u + Math.imul(Ye, he) | 0, k = k + Math.imul(Ye, at) | 0, B = B + Math.imul(De, ct) | 0, u = u + Math.imul(De, lt) | 0, u = u + Math.imul(Ie, ct) | 0, k = k + Math.imul(Ie, lt) | 0, B = B + Math.imul(Ce, dt) | 0, u = u + Math.imul(Ce, ut) | 0, u = u + Math.imul(Ee, dt) | 0, k = k + Math.imul(Ee, ut) | 0, B = B + Math.imul(ue, ft) | 0, u = u + Math.imul(ue, ht) | 0, u = u + Math.imul(me, ft) | 0, k = k + Math.imul(me, ht) | 0, B = B + Math.imul(Z, mt) | 0, u = u + Math.imul(Z, bt) | 0, u = u + Math.imul(ee, mt) | 0, k = k + Math.imul(ee, bt) | 0;
|
|
18046
18050
|
var Fo = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18047
|
-
M = (k + (u >>> 13) | 0) + (Fo >>> 26) | 0, Fo &= 67108863, B = Math.imul(Ne, pe), u = Math.imul(Ne, be), u = u + Math.imul($e, pe) | 0, k = Math.imul($e, be), B = B + Math.imul(qe, he) | 0, u = u + Math.imul(qe, at) | 0, u = u + Math.imul(Oe, he) | 0, k = k + Math.imul(Oe, at) | 0, B = B + Math.imul(He, ct) | 0, u = u + Math.imul(He, lt) | 0, u = u + Math.imul(Ye, ct) | 0, k = k + Math.imul(Ye, lt) | 0, B = B + Math.imul(De, dt) | 0, u = u + Math.imul(De, ut) | 0, u = u + Math.imul(Ie, dt) | 0, k = k + Math.imul(Ie, ut) | 0, B = B + Math.imul(Ce, ft) | 0, u = u + Math.imul(Ce, ht) | 0, u = u + Math.imul(Ee, ft) | 0, k = k + Math.imul(Ee, ht) | 0, B = B + Math.imul(ue, mt) | 0, u = u + Math.imul(ue, bt) | 0, u = u + Math.imul(me, mt) | 0, k = k + Math.imul(me, bt) | 0, B = B + Math.imul(
|
|
18051
|
+
M = (k + (u >>> 13) | 0) + (Fo >>> 26) | 0, Fo &= 67108863, B = Math.imul(Ne, pe), u = Math.imul(Ne, be), u = u + Math.imul($e, pe) | 0, k = Math.imul($e, be), B = B + Math.imul(qe, he) | 0, u = u + Math.imul(qe, at) | 0, u = u + Math.imul(Oe, he) | 0, k = k + Math.imul(Oe, at) | 0, B = B + Math.imul(He, ct) | 0, u = u + Math.imul(He, lt) | 0, u = u + Math.imul(Ye, ct) | 0, k = k + Math.imul(Ye, lt) | 0, B = B + Math.imul(De, dt) | 0, u = u + Math.imul(De, ut) | 0, u = u + Math.imul(Ie, dt) | 0, k = k + Math.imul(Ie, ut) | 0, B = B + Math.imul(Ce, ft) | 0, u = u + Math.imul(Ce, ht) | 0, u = u + Math.imul(Ee, ft) | 0, k = k + Math.imul(Ee, ht) | 0, B = B + Math.imul(ue, mt) | 0, u = u + Math.imul(ue, bt) | 0, u = u + Math.imul(me, mt) | 0, k = k + Math.imul(me, bt) | 0, B = B + Math.imul(Z, pt) | 0, u = u + Math.imul(Z, gt) | 0, u = u + Math.imul(ee, pt) | 0, k = k + Math.imul(ee, gt) | 0;
|
|
18048
18052
|
var To = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18049
|
-
M = (k + (u >>> 13) | 0) + (To >>> 26) | 0, To &= 67108863, B = Math.imul(Ve, pe), u = Math.imul(Ve, be), u = u + Math.imul(w, pe) | 0, k = Math.imul(w, be), B = B + Math.imul(Ne, he) | 0, u = u + Math.imul(Ne, at) | 0, u = u + Math.imul($e, he) | 0, k = k + Math.imul($e, at) | 0, B = B + Math.imul(qe, ct) | 0, u = u + Math.imul(qe, lt) | 0, u = u + Math.imul(Oe, ct) | 0, k = k + Math.imul(Oe, lt) | 0, B = B + Math.imul(He, dt) | 0, u = u + Math.imul(He, ut) | 0, u = u + Math.imul(Ye, dt) | 0, k = k + Math.imul(Ye, ut) | 0, B = B + Math.imul(De, ft) | 0, u = u + Math.imul(De, ht) | 0, u = u + Math.imul(Ie, ft) | 0, k = k + Math.imul(Ie, ht) | 0, B = B + Math.imul(Ce, mt) | 0, u = u + Math.imul(Ce, bt) | 0, u = u + Math.imul(Ee, mt) | 0, k = k + Math.imul(Ee, bt) | 0, B = B + Math.imul(ue, pt) | 0, u = u + Math.imul(ue, gt) | 0, u = u + Math.imul(me, pt) | 0, k = k + Math.imul(me, gt) | 0, B = B + Math.imul(
|
|
18053
|
+
M = (k + (u >>> 13) | 0) + (To >>> 26) | 0, To &= 67108863, B = Math.imul(Ve, pe), u = Math.imul(Ve, be), u = u + Math.imul(w, pe) | 0, k = Math.imul(w, be), B = B + Math.imul(Ne, he) | 0, u = u + Math.imul(Ne, at) | 0, u = u + Math.imul($e, he) | 0, k = k + Math.imul($e, at) | 0, B = B + Math.imul(qe, ct) | 0, u = u + Math.imul(qe, lt) | 0, u = u + Math.imul(Oe, ct) | 0, k = k + Math.imul(Oe, lt) | 0, B = B + Math.imul(He, dt) | 0, u = u + Math.imul(He, ut) | 0, u = u + Math.imul(Ye, dt) | 0, k = k + Math.imul(Ye, ut) | 0, B = B + Math.imul(De, ft) | 0, u = u + Math.imul(De, ht) | 0, u = u + Math.imul(Ie, ft) | 0, k = k + Math.imul(Ie, ht) | 0, B = B + Math.imul(Ce, mt) | 0, u = u + Math.imul(Ce, bt) | 0, u = u + Math.imul(Ee, mt) | 0, k = k + Math.imul(Ee, bt) | 0, B = B + Math.imul(ue, pt) | 0, u = u + Math.imul(ue, gt) | 0, u = u + Math.imul(me, pt) | 0, k = k + Math.imul(me, gt) | 0, B = B + Math.imul(Z, yt) | 0, u = u + Math.imul(Z, wt) | 0, u = u + Math.imul(ee, yt) | 0, k = k + Math.imul(ee, wt) | 0;
|
|
18050
18054
|
var Io = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18051
|
-
M = (k + (u >>> 13) | 0) + (Io >>> 26) | 0, Io &= 67108863, B = Math.imul(f, pe), u = Math.imul(f, be), u = u + Math.imul(v, pe) | 0, k = Math.imul(v, be), B = B + Math.imul(Ve, he) | 0, u = u + Math.imul(Ve, at) | 0, u = u + Math.imul(w, he) | 0, k = k + Math.imul(w, at) | 0, B = B + Math.imul(Ne, ct) | 0, u = u + Math.imul(Ne, lt) | 0, u = u + Math.imul($e, ct) | 0, k = k + Math.imul($e, lt) | 0, B = B + Math.imul(qe, dt) | 0, u = u + Math.imul(qe, ut) | 0, u = u + Math.imul(Oe, dt) | 0, k = k + Math.imul(Oe, ut) | 0, B = B + Math.imul(He, ft) | 0, u = u + Math.imul(He, ht) | 0, u = u + Math.imul(Ye, ft) | 0, k = k + Math.imul(Ye, ht) | 0, B = B + Math.imul(De, mt) | 0, u = u + Math.imul(De, bt) | 0, u = u + Math.imul(Ie, mt) | 0, k = k + Math.imul(Ie, bt) | 0, B = B + Math.imul(Ce, pt) | 0, u = u + Math.imul(Ce, gt) | 0, u = u + Math.imul(Ee, pt) | 0, k = k + Math.imul(Ee, gt) | 0, B = B + Math.imul(ue, yt) | 0, u = u + Math.imul(ue, wt) | 0, u = u + Math.imul(me, yt) | 0, k = k + Math.imul(me, wt) | 0, B = B + Math.imul(
|
|
18055
|
+
M = (k + (u >>> 13) | 0) + (Io >>> 26) | 0, Io &= 67108863, B = Math.imul(f, pe), u = Math.imul(f, be), u = u + Math.imul(v, pe) | 0, k = Math.imul(v, be), B = B + Math.imul(Ve, he) | 0, u = u + Math.imul(Ve, at) | 0, u = u + Math.imul(w, he) | 0, k = k + Math.imul(w, at) | 0, B = B + Math.imul(Ne, ct) | 0, u = u + Math.imul(Ne, lt) | 0, u = u + Math.imul($e, ct) | 0, k = k + Math.imul($e, lt) | 0, B = B + Math.imul(qe, dt) | 0, u = u + Math.imul(qe, ut) | 0, u = u + Math.imul(Oe, dt) | 0, k = k + Math.imul(Oe, ut) | 0, B = B + Math.imul(He, ft) | 0, u = u + Math.imul(He, ht) | 0, u = u + Math.imul(Ye, ft) | 0, k = k + Math.imul(Ye, ht) | 0, B = B + Math.imul(De, mt) | 0, u = u + Math.imul(De, bt) | 0, u = u + Math.imul(Ie, mt) | 0, k = k + Math.imul(Ie, bt) | 0, B = B + Math.imul(Ce, pt) | 0, u = u + Math.imul(Ce, gt) | 0, u = u + Math.imul(Ee, pt) | 0, k = k + Math.imul(Ee, gt) | 0, B = B + Math.imul(ue, yt) | 0, u = u + Math.imul(ue, wt) | 0, u = u + Math.imul(me, yt) | 0, k = k + Math.imul(me, wt) | 0, B = B + Math.imul(Z, At) | 0, u = u + Math.imul(Z, Et) | 0, u = u + Math.imul(ee, At) | 0, k = k + Math.imul(ee, Et) | 0;
|
|
18052
18056
|
var Uo = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18053
|
-
M = (k + (u >>> 13) | 0) + (Uo >>> 26) | 0, Uo &= 67108863, B = Math.imul(P, pe), u = Math.imul(P, be), u = u + Math.imul(N, pe) | 0, k = Math.imul(N, be), B = B + Math.imul(f, he) | 0, u = u + Math.imul(f, at) | 0, u = u + Math.imul(v, he) | 0, k = k + Math.imul(v, at) | 0, B = B + Math.imul(Ve, ct) | 0, u = u + Math.imul(Ve, lt) | 0, u = u + Math.imul(w, ct) | 0, k = k + Math.imul(w, lt) | 0, B = B + Math.imul(Ne, dt) | 0, u = u + Math.imul(Ne, ut) | 0, u = u + Math.imul($e, dt) | 0, k = k + Math.imul($e, ut) | 0, B = B + Math.imul(qe, ft) | 0, u = u + Math.imul(qe, ht) | 0, u = u + Math.imul(Oe, ft) | 0, k = k + Math.imul(Oe, ht) | 0, B = B + Math.imul(He, mt) | 0, u = u + Math.imul(He, bt) | 0, u = u + Math.imul(Ye, mt) | 0, k = k + Math.imul(Ye, bt) | 0, B = B + Math.imul(De, pt) | 0, u = u + Math.imul(De, gt) | 0, u = u + Math.imul(Ie, pt) | 0, k = k + Math.imul(Ie, gt) | 0, B = B + Math.imul(Ce, yt) | 0, u = u + Math.imul(Ce, wt) | 0, u = u + Math.imul(Ee, yt) | 0, k = k + Math.imul(Ee, wt) | 0, B = B + Math.imul(ue, At) | 0, u = u + Math.imul(ue, Et) | 0, u = u + Math.imul(me, At) | 0, k = k + Math.imul(me, Et) | 0, B = B + Math.imul(
|
|
18057
|
+
M = (k + (u >>> 13) | 0) + (Uo >>> 26) | 0, Uo &= 67108863, B = Math.imul(P, pe), u = Math.imul(P, be), u = u + Math.imul(N, pe) | 0, k = Math.imul(N, be), B = B + Math.imul(f, he) | 0, u = u + Math.imul(f, at) | 0, u = u + Math.imul(v, he) | 0, k = k + Math.imul(v, at) | 0, B = B + Math.imul(Ve, ct) | 0, u = u + Math.imul(Ve, lt) | 0, u = u + Math.imul(w, ct) | 0, k = k + Math.imul(w, lt) | 0, B = B + Math.imul(Ne, dt) | 0, u = u + Math.imul(Ne, ut) | 0, u = u + Math.imul($e, dt) | 0, k = k + Math.imul($e, ut) | 0, B = B + Math.imul(qe, ft) | 0, u = u + Math.imul(qe, ht) | 0, u = u + Math.imul(Oe, ft) | 0, k = k + Math.imul(Oe, ht) | 0, B = B + Math.imul(He, mt) | 0, u = u + Math.imul(He, bt) | 0, u = u + Math.imul(Ye, mt) | 0, k = k + Math.imul(Ye, bt) | 0, B = B + Math.imul(De, pt) | 0, u = u + Math.imul(De, gt) | 0, u = u + Math.imul(Ie, pt) | 0, k = k + Math.imul(Ie, gt) | 0, B = B + Math.imul(Ce, yt) | 0, u = u + Math.imul(Ce, wt) | 0, u = u + Math.imul(Ee, yt) | 0, k = k + Math.imul(Ee, wt) | 0, B = B + Math.imul(ue, At) | 0, u = u + Math.imul(ue, Et) | 0, u = u + Math.imul(me, At) | 0, k = k + Math.imul(me, Et) | 0, B = B + Math.imul(Z, Bt) | 0, u = u + Math.imul(Z, xt) | 0, u = u + Math.imul(ee, Bt) | 0, k = k + Math.imul(ee, xt) | 0;
|
|
18054
18058
|
var Mo = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
18055
18059
|
M = (k + (u >>> 13) | 0) + (Mo >>> 26) | 0, Mo &= 67108863, B = Math.imul(P, he), u = Math.imul(P, at), u = u + Math.imul(N, he) | 0, k = Math.imul(N, at), B = B + Math.imul(f, ct) | 0, u = u + Math.imul(f, lt) | 0, u = u + Math.imul(v, ct) | 0, k = k + Math.imul(v, lt) | 0, B = B + Math.imul(Ve, dt) | 0, u = u + Math.imul(Ve, ut) | 0, u = u + Math.imul(w, dt) | 0, k = k + Math.imul(w, ut) | 0, B = B + Math.imul(Ne, ft) | 0, u = u + Math.imul(Ne, ht) | 0, u = u + Math.imul($e, ft) | 0, k = k + Math.imul($e, ht) | 0, B = B + Math.imul(qe, mt) | 0, u = u + Math.imul(qe, bt) | 0, u = u + Math.imul(Oe, mt) | 0, k = k + Math.imul(Oe, bt) | 0, B = B + Math.imul(He, pt) | 0, u = u + Math.imul(He, gt) | 0, u = u + Math.imul(Ye, pt) | 0, k = k + Math.imul(Ye, gt) | 0, B = B + Math.imul(De, yt) | 0, u = u + Math.imul(De, wt) | 0, u = u + Math.imul(Ie, yt) | 0, k = k + Math.imul(Ie, wt) | 0, B = B + Math.imul(Ce, At) | 0, u = u + Math.imul(Ce, Et) | 0, u = u + Math.imul(Ee, At) | 0, k = k + Math.imul(Ee, Et) | 0, B = B + Math.imul(ue, Bt) | 0, u = u + Math.imul(ue, xt) | 0, u = u + Math.imul(me, Bt) | 0, k = k + Math.imul(me, xt) | 0;
|
|
18056
18060
|
var _o = (M + B | 0) + ((u & 8191) << 13) | 0;
|
|
@@ -18079,7 +18083,7 @@ Pc.exports;
|
|
|
18079
18083
|
var T = y;
|
|
18080
18084
|
y = 0;
|
|
18081
18085
|
for (var M = p & 67108863, B = Math.min(C, c.length - 1), u = Math.max(0, C - I.length + 1); u <= B; u++) {
|
|
18082
|
-
var k = C - u, $ = I.words[k] | 0,
|
|
18086
|
+
var k = C - u, $ = I.words[k] | 0, Z = c.words[u] | 0, ee = $ * Z, Be = ee & 67108863;
|
|
18083
18087
|
T = T + (ee / 67108864 | 0) | 0, Be = Be + M | 0, M = Be & 67108863, T = T + (Be >>> 26) | 0, y += T >>> 26, T &= 67108863;
|
|
18084
18088
|
}
|
|
18085
18089
|
b.words[C] = M, p = T, T = y;
|
|
@@ -18244,11 +18248,11 @@ Pc.exports;
|
|
|
18244
18248
|
}
|
|
18245
18249
|
var $ = y.clone()._ishlnsubmul(C, 1, B);
|
|
18246
18250
|
$.negative === 0 && (y = $, u && (u.words[B] = 1));
|
|
18247
|
-
for (var
|
|
18248
|
-
var ee = (y.words[C.length +
|
|
18249
|
-
for (ee = Math.min(ee / T | 0, 67108863), y._ishlnsubmul(C, ee,
|
|
18250
|
-
ee--, y.negative = 0, y._ishlnsubmul(C, 1,
|
|
18251
|
-
u && (u.words[
|
|
18251
|
+
for (var Z = B - 1; Z >= 0; Z--) {
|
|
18252
|
+
var ee = (y.words[C.length + Z] | 0) * 67108864 + (y.words[C.length + Z - 1] | 0);
|
|
18253
|
+
for (ee = Math.min(ee / T | 0, 67108863), y._ishlnsubmul(C, ee, Z); y.negative !== 0; )
|
|
18254
|
+
ee--, y.negative = 0, y._ishlnsubmul(C, 1, Z), y.isZero() || (y.negative ^= 1);
|
|
18255
|
+
u && (u.words[Z] = ee);
|
|
18252
18256
|
}
|
|
18253
18257
|
return u && u._strip(), y._strip(), b !== "div" && p !== 0 && y.iushrn(p), {
|
|
18254
18258
|
div: u || null,
|
|
@@ -18319,7 +18323,7 @@ Pc.exports;
|
|
|
18319
18323
|
for (var y = new i(1), C = new i(0), T = new i(0), M = new i(1), B = 0; b.isEven() && p.isEven(); )
|
|
18320
18324
|
b.iushrn(1), p.iushrn(1), ++B;
|
|
18321
18325
|
for (var u = p.clone(), k = b.clone(); !b.isZero(); ) {
|
|
18322
|
-
for (var $ = 0,
|
|
18326
|
+
for (var $ = 0, Z = 1; !(b.words[0] & Z) && $ < 26; ++$, Z <<= 1) ;
|
|
18323
18327
|
if ($ > 0)
|
|
18324
18328
|
for (b.iushrn($); $-- > 0; )
|
|
18325
18329
|
(y.isOdd() || C.isOdd()) && (y.iadd(u), C.isub(k)), y.iushrn(1), C.iushrn(1);
|
|
@@ -18632,12 +18636,12 @@ Pc.exports;
|
|
|
18632
18636
|
var T = new i(1).toRed(this), M = T.redNeg(), B = this.m.subn(1).iushrn(1), u = this.m.bitLength();
|
|
18633
18637
|
for (u = new i(2 * u * u).toRed(this); this.pow(u, B).cmp(M) !== 0; )
|
|
18634
18638
|
u.redIAdd(M);
|
|
18635
|
-
for (var k = this.pow(u, y), $ = this.pow(c, y.addn(1).iushrn(1)),
|
|
18636
|
-
for (var Be =
|
|
18639
|
+
for (var k = this.pow(u, y), $ = this.pow(c, y.addn(1).iushrn(1)), Z = this.pow(c, y), ee = C; Z.cmp(T) !== 0; ) {
|
|
18640
|
+
for (var Be = Z, ue = 0; Be.cmp(T) !== 0; ue++)
|
|
18637
18641
|
Be = Be.redSqr();
|
|
18638
18642
|
r(ue < ee);
|
|
18639
18643
|
var me = this.pow(k, new i(1).iushln(ee - ue - 1));
|
|
18640
|
-
$ = $.redMul(me), k = me.redSqr(),
|
|
18644
|
+
$ = $.redMul(me), k = me.redSqr(), Z = Z.redMul(k), ee = ue;
|
|
18641
18645
|
}
|
|
18642
18646
|
return $;
|
|
18643
18647
|
}, ne.prototype.invm = function(c) {
|
|
@@ -18653,12 +18657,12 @@ Pc.exports;
|
|
|
18653
18657
|
var T = y[0], M = 0, B = 0, u = b.bitLength() % 26;
|
|
18654
18658
|
for (u === 0 && (u = 26), C = b.length - 1; C >= 0; C--) {
|
|
18655
18659
|
for (var k = b.words[C], $ = u - 1; $ >= 0; $--) {
|
|
18656
|
-
var
|
|
18657
|
-
if (T !== y[0] && (T = this.sqr(T)),
|
|
18660
|
+
var Z = k >> $ & 1;
|
|
18661
|
+
if (T !== y[0] && (T = this.sqr(T)), Z === 0 && M === 0) {
|
|
18658
18662
|
B = 0;
|
|
18659
18663
|
continue;
|
|
18660
18664
|
}
|
|
18661
|
-
M <<= 1, M |=
|
|
18665
|
+
M <<= 1, M |= Z, B++, !(B !== p && (C !== 0 || $ !== 0)) && (T = this.mul(T, y[M]), B = 0, M = 0);
|
|
18662
18666
|
}
|
|
18663
18667
|
u = 26;
|
|
18664
18668
|
}
|
|
@@ -18713,7 +18717,7 @@ function uy(n, e, t) {
|
|
|
18713
18717
|
const s = new Error(`invalid value for type ${e}`);
|
|
18714
18718
|
throw s.code = "INVALID_ARGUMENT", s.argument = `value.${t}`, s.value = n, s;
|
|
18715
18719
|
}
|
|
18716
|
-
async function
|
|
18720
|
+
async function W6(n) {
|
|
18717
18721
|
const e = Object.keys(n);
|
|
18718
18722
|
return (await Promise.all(e.map((r) => Promise.resolve(n[r])))).reduce((r, s, i) => (r[e[i]] = s, r), {});
|
|
18719
18723
|
}
|
|
@@ -18758,7 +18762,7 @@ function Or(n) {
|
|
|
18758
18762
|
function fy(n, e) {
|
|
18759
18763
|
return n && n.code === e;
|
|
18760
18764
|
}
|
|
18761
|
-
function
|
|
18765
|
+
function P6(n) {
|
|
18762
18766
|
return fy(n, "CALL_EXCEPTION");
|
|
18763
18767
|
}
|
|
18764
18768
|
function hy(n, e, t) {
|
|
@@ -18798,7 +18802,7 @@ function Yn(n, e, t, r) {
|
|
|
18798
18802
|
function yr(n, e, t, r) {
|
|
18799
18803
|
Yn(n, e, "INVALID_ARGUMENT", { argument: t, value: r });
|
|
18800
18804
|
}
|
|
18801
|
-
function
|
|
18805
|
+
function L6(n, e, t) {
|
|
18802
18806
|
t == null && (t = ""), t && (t = ": " + t), Yn(n >= e, "missing argument" + t, "MISSING_ARGUMENT", {
|
|
18803
18807
|
count: n,
|
|
18804
18808
|
expectedCount: e
|
|
@@ -18818,13 +18822,13 @@ const my = ["NFD", "NFC", "NFKD", "NFKC"].reduce((n, e) => {
|
|
|
18818
18822
|
}
|
|
18819
18823
|
return n;
|
|
18820
18824
|
}, []);
|
|
18821
|
-
function
|
|
18825
|
+
function O6(n) {
|
|
18822
18826
|
Yn(my.indexOf(n) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", {
|
|
18823
18827
|
operation: "String.prototype.normalize",
|
|
18824
18828
|
info: { form: n }
|
|
18825
18829
|
});
|
|
18826
18830
|
}
|
|
18827
|
-
function
|
|
18831
|
+
function N6(n, e, t) {
|
|
18828
18832
|
if (t == null && (t = ""), n !== e) {
|
|
18829
18833
|
let r = t, s = "new";
|
|
18830
18834
|
t && (r += ".", s += " " + t), Yn(!1, `private constructor; use ${r}from* methods`, "UNSUPPORTED_OPERATION", {
|
|
@@ -18847,13 +18851,13 @@ function Vf(n, e, t) {
|
|
|
18847
18851
|
function ds(n, e) {
|
|
18848
18852
|
return Vf(n, e, !1);
|
|
18849
18853
|
}
|
|
18850
|
-
function
|
|
18854
|
+
function z6(n, e) {
|
|
18851
18855
|
return Vf(n, e, !0);
|
|
18852
18856
|
}
|
|
18853
18857
|
function Gf(n, e) {
|
|
18854
18858
|
return !(typeof n != "string" || !n.match(/^0x[0-9A-Fa-f]*$/) || typeof e == "number" && n.length !== 2 + 2 * e || e === !0 && n.length % 2 !== 0);
|
|
18855
18859
|
}
|
|
18856
|
-
function
|
|
18860
|
+
function H6(n) {
|
|
18857
18861
|
return Gf(n, !0) || n instanceof Uint8Array;
|
|
18858
18862
|
}
|
|
18859
18863
|
const Md = "0123456789abcdef";
|
|
@@ -18866,13 +18870,13 @@ function lo(n) {
|
|
|
18866
18870
|
}
|
|
18867
18871
|
return t;
|
|
18868
18872
|
}
|
|
18869
|
-
function
|
|
18873
|
+
function q6(n) {
|
|
18870
18874
|
return "0x" + n.map((e) => lo(e).substring(2)).join("");
|
|
18871
18875
|
}
|
|
18872
|
-
function
|
|
18876
|
+
function K6(n) {
|
|
18873
18877
|
return Gf(n, !0) ? (n.length - 2) / 2 : ds(n).length;
|
|
18874
18878
|
}
|
|
18875
|
-
function
|
|
18879
|
+
function j6(n, e, t) {
|
|
18876
18880
|
const r = ds(n);
|
|
18877
18881
|
return t != null && t > r.length && Yn(!1, "cannot slice beyond data bounds", "BUFFER_OVERRUN", {
|
|
18878
18882
|
buffer: r,
|
|
@@ -18890,10 +18894,10 @@ function Xf(n, e, t) {
|
|
|
18890
18894
|
const s = new Uint8Array(e);
|
|
18891
18895
|
return s.fill(0), t ? s.set(r, e - r.length) : s.set(r, 0), lo(s);
|
|
18892
18896
|
}
|
|
18893
|
-
function
|
|
18897
|
+
function $6(n, e) {
|
|
18894
18898
|
return Xf(n, e, !0);
|
|
18895
18899
|
}
|
|
18896
|
-
function
|
|
18900
|
+
function V6(n, e) {
|
|
18897
18901
|
return Xf(n, e, !1);
|
|
18898
18902
|
}
|
|
18899
18903
|
function Wi(n) {
|
|
@@ -18906,7 +18910,7 @@ function Yf(n, ...e) {
|
|
|
18906
18910
|
if (e.length > 0 && !e.includes(n.length))
|
|
18907
18911
|
throw new Error(`Expected Uint8Array of length ${e}, not of length=${n.length}`);
|
|
18908
18912
|
}
|
|
18909
|
-
function
|
|
18913
|
+
function G6(n) {
|
|
18910
18914
|
if (typeof n != "function" || typeof n.create != "function")
|
|
18911
18915
|
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
18912
18916
|
Wi(n.outputLen), Wi(n.blockLen);
|
|
@@ -18925,12 +18929,12 @@ function by(n, e) {
|
|
|
18925
18929
|
}
|
|
18926
18930
|
const ca = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
18927
18931
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
18928
|
-
const
|
|
18932
|
+
const Zf = (n) => n instanceof Uint8Array, py = (n) => new Uint32Array(n.buffer, n.byteOffset, Math.floor(n.byteLength / 4)), X6 = (n) => new DataView(n.buffer, n.byteOffset, n.byteLength), Y6 = (n, e) => n << 32 - e | n >>> e, gy = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
18929
18933
|
if (!gy)
|
|
18930
18934
|
throw new Error("Non little-endian hardware is not supported");
|
|
18931
18935
|
const yy = async () => {
|
|
18932
18936
|
};
|
|
18933
|
-
async function
|
|
18937
|
+
async function Z6(n, e, t) {
|
|
18934
18938
|
let r = Date.now();
|
|
18935
18939
|
for (let s = 0; s < n; s++) {
|
|
18936
18940
|
t(s);
|
|
@@ -18943,8 +18947,8 @@ function wy(n) {
|
|
|
18943
18947
|
throw new Error(`utf8ToBytes expected string, got ${typeof n}`);
|
|
18944
18948
|
return new Uint8Array(new TextEncoder().encode(n));
|
|
18945
18949
|
}
|
|
18946
|
-
function
|
|
18947
|
-
if (typeof n == "string" && (n = wy(n)), !
|
|
18950
|
+
function Jf(n) {
|
|
18951
|
+
if (typeof n == "string" && (n = wy(n)), !Zf(n))
|
|
18948
18952
|
throw new Error(`expected Uint8Array, got ${typeof n}`);
|
|
18949
18953
|
return n;
|
|
18950
18954
|
}
|
|
@@ -18952,7 +18956,7 @@ function J6(...n) {
|
|
|
18952
18956
|
const e = new Uint8Array(n.reduce((r, s) => r + s.length, 0));
|
|
18953
18957
|
let t = 0;
|
|
18954
18958
|
return n.forEach((r) => {
|
|
18955
|
-
if (!
|
|
18959
|
+
if (!Zf(r))
|
|
18956
18960
|
throw new Error("Uint8Array expected");
|
|
18957
18961
|
e.set(r, t), t += r.length;
|
|
18958
18962
|
}), e;
|
|
@@ -18964,16 +18968,16 @@ class Ay {
|
|
|
18964
18968
|
}
|
|
18965
18969
|
}
|
|
18966
18970
|
const Ey = {}.toString;
|
|
18967
|
-
function
|
|
18971
|
+
function Q6(n, e) {
|
|
18968
18972
|
if (e !== void 0 && Ey.call(e) !== "[object Object]")
|
|
18969
18973
|
throw new Error("Options should be object or undefined");
|
|
18970
18974
|
return Object.assign(n, e);
|
|
18971
18975
|
}
|
|
18972
18976
|
function By(n) {
|
|
18973
|
-
const e = (r) => n().update(
|
|
18977
|
+
const e = (r) => n().update(Jf(r)).digest(), t = n();
|
|
18974
18978
|
return e.outputLen = t.outputLen, e.blockLen = t.blockLen, e.create = () => n(), e;
|
|
18975
18979
|
}
|
|
18976
|
-
function
|
|
18980
|
+
function ew(n = 32) {
|
|
18977
18981
|
if (ca && typeof ca.getRandomValues == "function")
|
|
18978
18982
|
return ca.getRandomValues(new Uint8Array(n));
|
|
18979
18983
|
throw new Error("crypto.getRandomValues must be defined");
|
|
@@ -18995,7 +18999,7 @@ function Uy(n, e, t, r) {
|
|
|
18995
18999
|
const s = (e >>> 0) + (r >>> 0);
|
|
18996
19000
|
return { h: n + t + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
18997
19001
|
}
|
|
18998
|
-
const My = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), _y = (n, e, t, r) => e + t + r + (n / 2 ** 32 | 0) | 0, Ry = (n, e, t, r) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0), Wy = (n, e, t, r, s) => e + t + r + s + (n / 2 ** 32 | 0) | 0, Py = (n, e, t, r, s) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0) + (s >>> 0), Ly = (n, e, t, r, s, i) => e + t + r + s + i + (n / 2 ** 32 | 0) | 0,
|
|
19002
|
+
const My = (n, e, t) => (n >>> 0) + (e >>> 0) + (t >>> 0), _y = (n, e, t, r) => e + t + r + (n / 2 ** 32 | 0) | 0, Ry = (n, e, t, r) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0), Wy = (n, e, t, r, s) => e + t + r + s + (n / 2 ** 32 | 0) | 0, Py = (n, e, t, r, s) => (n >>> 0) + (e >>> 0) + (t >>> 0) + (r >>> 0) + (s >>> 0), Ly = (n, e, t, r, s, i) => e + t + r + s + i + (n / 2 ** 32 | 0) | 0, tw = {
|
|
18999
19003
|
fromBig: Qf,
|
|
19000
19004
|
split: e0,
|
|
19001
19005
|
toBig: xy,
|
|
@@ -19065,7 +19069,7 @@ class Lc extends Ay {
|
|
|
19065
19069
|
update(e) {
|
|
19066
19070
|
_d(this);
|
|
19067
19071
|
const { blockLen: t, state: r } = this;
|
|
19068
|
-
e =
|
|
19072
|
+
e = Jf(e);
|
|
19069
19073
|
const s = e.length;
|
|
19070
19074
|
for (let i = 0; i < s; ) {
|
|
19071
19075
|
const o = Math.min(t - this.pos, s - i);
|
|
@@ -19153,7 +19157,7 @@ for (let n = 0; n < 10; n++)
|
|
|
19153
19157
|
for (let n = 0; n < 26; n++)
|
|
19154
19158
|
Oc[String.fromCharCode(65 + n)] = String(10 + n);
|
|
19155
19159
|
const Ld = 15;
|
|
19156
|
-
function
|
|
19160
|
+
function Zy(n) {
|
|
19157
19161
|
n = n.toUpperCase(), n = n.substring(4) + n.substring(0, 2) + "00";
|
|
19158
19162
|
let e = n.split("").map((r) => Oc[r]).join("");
|
|
19159
19163
|
for (; e.length >= Ld; ) {
|
|
@@ -19165,7 +19169,7 @@ function Jy(n) {
|
|
|
19165
19169
|
t = "0" + t;
|
|
19166
19170
|
return t;
|
|
19167
19171
|
}
|
|
19168
|
-
const
|
|
19172
|
+
const Jy = function() {
|
|
19169
19173
|
const n = {};
|
|
19170
19174
|
for (let e = 0; e < 36; e++) {
|
|
19171
19175
|
const t = "0123456789abcdefghijklmnopqrstuvwxyz"[e];
|
|
@@ -19177,7 +19181,7 @@ function Qy(n) {
|
|
|
19177
19181
|
n = n.toLowerCase();
|
|
19178
19182
|
let e = Xy;
|
|
19179
19183
|
for (let t = 0; t < n.length; t++)
|
|
19180
|
-
e = e * Yy +
|
|
19184
|
+
e = e * Yy + Jy[n[t]];
|
|
19181
19185
|
return e;
|
|
19182
19186
|
}
|
|
19183
19187
|
function Kr(n) {
|
|
@@ -19187,7 +19191,7 @@ function Kr(n) {
|
|
|
19187
19191
|
return yr(!n.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || e === n, "bad address checksum", "address", n), e;
|
|
19188
19192
|
}
|
|
19189
19193
|
if (n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
|
|
19190
|
-
yr(n.substring(2, 4) ===
|
|
19194
|
+
yr(n.substring(2, 4) === Zy(n), "bad icap checksum", "address", n);
|
|
19191
19195
|
let e = Qy(n.substring(4)).toString(16);
|
|
19192
19196
|
for (; e.length < 40; )
|
|
19193
19197
|
e = "0" + e;
|
|
@@ -19209,7 +19213,7 @@ async function la(n, e) {
|
|
|
19209
19213
|
const t = await e;
|
|
19210
19214
|
return (t == null || t === "0x0000000000000000000000000000000000000000") && (Yn(typeof n != "string", "unconfigured name", "UNCONFIGURED_NAME", { value: n }), yr(!1, "invalid AddressLike value; did not resolve to a value address", "target", n)), Kr(t);
|
|
19211
19215
|
}
|
|
19212
|
-
function
|
|
19216
|
+
function nw(n, e) {
|
|
19213
19217
|
if (typeof n == "string")
|
|
19214
19218
|
return n.match(/^0x[0-9a-f]{40}$/i) ? Kr(n) : (Yn(e != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }), la(n, e.resolveName(n)));
|
|
19215
19219
|
if (e2(n))
|
|
@@ -19218,13 +19222,13 @@ function tw(n, e) {
|
|
|
19218
19222
|
return la(n, n);
|
|
19219
19223
|
yr(!1, "unsupported addressable value", "target", n);
|
|
19220
19224
|
}
|
|
19221
|
-
const
|
|
19225
|
+
const rw = 0, sw = 0n, u0 = "Evm", iw = (n, e) => ({
|
|
19222
19226
|
...n,
|
|
19223
19227
|
from: e
|
|
19224
|
-
}),
|
|
19228
|
+
}), ow = (n, e) => ({
|
|
19225
19229
|
...n,
|
|
19226
19230
|
chainId: e
|
|
19227
|
-
}),
|
|
19231
|
+
}), aw = "0x0000000000000000000000000000000000000000", on = class on {
|
|
19228
19232
|
constructor(e) {
|
|
19229
19233
|
ie(this, "type", "Native");
|
|
19230
19234
|
// stored as checksum address
|
|
@@ -19455,7 +19459,7 @@ Nc.prototype = {
|
|
|
19455
19459
|
this.tokens.push(n);
|
|
19456
19460
|
}
|
|
19457
19461
|
};
|
|
19458
|
-
var
|
|
19462
|
+
var Jr = -1;
|
|
19459
19463
|
function da(n, e) {
|
|
19460
19464
|
if (n)
|
|
19461
19465
|
throw TypeError("Decoder error");
|
|
@@ -19482,7 +19486,7 @@ Oi.prototype = {
|
|
|
19482
19486
|
e.byteOffset,
|
|
19483
19487
|
e.byteLength
|
|
19484
19488
|
) : r = new Uint8Array(0), t = uo(t), this._streaming || (this._decoder = new c2({ fatal: this._fatal }), this._BOMseen = !1), this._streaming = !!t.stream;
|
|
19485
|
-
for (var s = new Nc(r), i = [], o; !s.endOfStream() && (o = this._decoder.handler(s, s.read()), o !==
|
|
19489
|
+
for (var s = new Nc(r), i = [], o; !s.endOfStream() && (o = this._decoder.handler(s, s.read()), o !== Jr); )
|
|
19486
19490
|
o !== null && (Array.isArray(o) ? i.push.apply(
|
|
19487
19491
|
i,
|
|
19488
19492
|
/**@type {!Array.<number>}*/
|
|
@@ -19490,7 +19494,7 @@ Oi.prototype = {
|
|
|
19490
19494
|
) : i.push(o));
|
|
19491
19495
|
if (!this._streaming) {
|
|
19492
19496
|
do {
|
|
19493
|
-
if (o = this._decoder.handler(s, s.read()), o ===
|
|
19497
|
+
if (o = this._decoder.handler(s, s.read()), o === Jr)
|
|
19494
19498
|
break;
|
|
19495
19499
|
o !== null && (Array.isArray(o) ? i.push.apply(
|
|
19496
19500
|
i,
|
|
@@ -19518,14 +19522,14 @@ Ni.prototype = {
|
|
|
19518
19522
|
*/
|
|
19519
19523
|
encode: function(e, t) {
|
|
19520
19524
|
e = e ? String(e) : "", t = uo(t), this._streaming || (this._encoder = new l2(this._options)), this._streaming = !!t.stream;
|
|
19521
|
-
for (var r = [], s = new Nc(o2(e)), i; !s.endOfStream() && (i = this._encoder.handler(s, s.read()), i !==
|
|
19525
|
+
for (var r = [], s = new Nc(o2(e)), i; !s.endOfStream() && (i = this._encoder.handler(s, s.read()), i !== Jr); )
|
|
19522
19526
|
Array.isArray(i) ? r.push.apply(
|
|
19523
19527
|
r,
|
|
19524
19528
|
/**@type {!Array.<number>}*/
|
|
19525
19529
|
i
|
|
19526
19530
|
) : r.push(i);
|
|
19527
19531
|
if (!this._streaming) {
|
|
19528
|
-
for (; i = this._encoder.handler(s, s.read()), i !==
|
|
19532
|
+
for (; i = this._encoder.handler(s, s.read()), i !== Jr; )
|
|
19529
19533
|
Array.isArray(i) ? r.push.apply(
|
|
19530
19534
|
r,
|
|
19531
19535
|
/**@type {!Array.<number>}*/
|
|
@@ -19542,7 +19546,7 @@ function c2(n) {
|
|
|
19542
19546
|
if (l === Pi && s !== 0)
|
|
19543
19547
|
return s = 0, da(e);
|
|
19544
19548
|
if (l === Pi)
|
|
19545
|
-
return
|
|
19549
|
+
return Jr;
|
|
19546
19550
|
if (s === 0) {
|
|
19547
19551
|
if (qn(l, 0, 127))
|
|
19548
19552
|
return l;
|
|
@@ -19567,7 +19571,7 @@ function c2(n) {
|
|
|
19567
19571
|
function l2(n) {
|
|
19568
19572
|
n.fatal, this.handler = function(e, t) {
|
|
19569
19573
|
if (t === Pi)
|
|
19570
|
-
return
|
|
19574
|
+
return Jr;
|
|
19571
19575
|
if (qn(t, 0, 127))
|
|
19572
19576
|
return t;
|
|
19573
19577
|
var r, s;
|
|
@@ -19609,13 +19613,13 @@ var f2 = gn && gn.__createBinding || (Object.create ? function(n, e, t, r) {
|
|
|
19609
19613
|
};
|
|
19610
19614
|
Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
19611
19615
|
var m0 = Wt.deserializeUnchecked = A0 = Wt.deserialize = w0 = Wt.serialize = Wt.BinaryReader = Wt.BinaryWriter = Wt.BorshError = Wt.baseDecode = Wt.baseEncode = void 0;
|
|
19612
|
-
const
|
|
19616
|
+
const ir = h0($f), b0 = h0(f0), b2 = m2(u2), p2 = typeof TextDecoder != "function" ? b2.TextDecoder : TextDecoder, g2 = new p2("utf-8", { fatal: !0 });
|
|
19613
19617
|
function y2(n) {
|
|
19614
|
-
return typeof n == "string" && (n =
|
|
19618
|
+
return typeof n == "string" && (n = Qe.Buffer.from(n, "utf8")), b0.default.encode(Qe.Buffer.from(n));
|
|
19615
19619
|
}
|
|
19616
19620
|
Wt.baseEncode = y2;
|
|
19617
19621
|
function w2(n) {
|
|
19618
|
-
return
|
|
19622
|
+
return Qe.Buffer.from(b0.default.decode(n));
|
|
19619
19623
|
}
|
|
19620
19624
|
Wt.baseDecode = w2;
|
|
19621
19625
|
const ua = 1024;
|
|
@@ -19630,10 +19634,10 @@ class Vt extends Error {
|
|
|
19630
19634
|
Wt.BorshError = Vt;
|
|
19631
19635
|
class p0 {
|
|
19632
19636
|
constructor() {
|
|
19633
|
-
this.buf =
|
|
19637
|
+
this.buf = Qe.Buffer.alloc(ua), this.length = 0;
|
|
19634
19638
|
}
|
|
19635
19639
|
maybeResize() {
|
|
19636
|
-
this.buf.length < 16 + this.length && (this.buf =
|
|
19640
|
+
this.buf.length < 16 + this.length && (this.buf = Qe.Buffer.concat([this.buf, Qe.Buffer.alloc(ua)]));
|
|
19637
19641
|
}
|
|
19638
19642
|
writeU8(e) {
|
|
19639
19643
|
this.maybeResize(), this.buf.writeUInt8(e, this.length), this.length += 1;
|
|
@@ -19645,31 +19649,31 @@ class p0 {
|
|
|
19645
19649
|
this.maybeResize(), this.buf.writeUInt32LE(e, this.length), this.length += 4;
|
|
19646
19650
|
}
|
|
19647
19651
|
writeU64(e) {
|
|
19648
|
-
this.maybeResize(), this.writeBuffer(
|
|
19652
|
+
this.maybeResize(), this.writeBuffer(Qe.Buffer.from(new ir.default(e).toArray("le", 8)));
|
|
19649
19653
|
}
|
|
19650
19654
|
writeU128(e) {
|
|
19651
|
-
this.maybeResize(), this.writeBuffer(
|
|
19655
|
+
this.maybeResize(), this.writeBuffer(Qe.Buffer.from(new ir.default(e).toArray("le", 16)));
|
|
19652
19656
|
}
|
|
19653
19657
|
writeU256(e) {
|
|
19654
|
-
this.maybeResize(), this.writeBuffer(
|
|
19658
|
+
this.maybeResize(), this.writeBuffer(Qe.Buffer.from(new ir.default(e).toArray("le", 32)));
|
|
19655
19659
|
}
|
|
19656
19660
|
writeU512(e) {
|
|
19657
|
-
this.maybeResize(), this.writeBuffer(
|
|
19661
|
+
this.maybeResize(), this.writeBuffer(Qe.Buffer.from(new ir.default(e).toArray("le", 64)));
|
|
19658
19662
|
}
|
|
19659
19663
|
writeBuffer(e) {
|
|
19660
|
-
this.buf =
|
|
19661
|
-
|
|
19664
|
+
this.buf = Qe.Buffer.concat([
|
|
19665
|
+
Qe.Buffer.from(this.buf.subarray(0, this.length)),
|
|
19662
19666
|
e,
|
|
19663
|
-
|
|
19667
|
+
Qe.Buffer.alloc(ua)
|
|
19664
19668
|
]), this.length += e.length;
|
|
19665
19669
|
}
|
|
19666
19670
|
writeString(e) {
|
|
19667
19671
|
this.maybeResize();
|
|
19668
|
-
const t =
|
|
19672
|
+
const t = Qe.Buffer.from(e, "utf8");
|
|
19669
19673
|
this.writeU32(t.length), this.writeBuffer(t);
|
|
19670
19674
|
}
|
|
19671
19675
|
writeFixedArray(e) {
|
|
19672
|
-
this.writeBuffer(
|
|
19676
|
+
this.writeBuffer(Qe.Buffer.from(e));
|
|
19673
19677
|
}
|
|
19674
19678
|
writeArray(e, t) {
|
|
19675
19679
|
this.maybeResize(), this.writeU32(e.length);
|
|
@@ -19714,19 +19718,19 @@ class sn {
|
|
|
19714
19718
|
}
|
|
19715
19719
|
readU64() {
|
|
19716
19720
|
const e = this.readBuffer(8);
|
|
19717
|
-
return new
|
|
19721
|
+
return new ir.default(e, "le");
|
|
19718
19722
|
}
|
|
19719
19723
|
readU128() {
|
|
19720
19724
|
const e = this.readBuffer(16);
|
|
19721
|
-
return new
|
|
19725
|
+
return new ir.default(e, "le");
|
|
19722
19726
|
}
|
|
19723
19727
|
readU256() {
|
|
19724
19728
|
const e = this.readBuffer(32);
|
|
19725
|
-
return new
|
|
19729
|
+
return new ir.default(e, "le");
|
|
19726
19730
|
}
|
|
19727
19731
|
readU512() {
|
|
19728
19732
|
const e = this.readBuffer(64);
|
|
19729
|
-
return new
|
|
19733
|
+
return new ir.default(e, "le");
|
|
19730
19734
|
}
|
|
19731
19735
|
readBuffer(e) {
|
|
19732
19736
|
if (this.offset + e > this.buf.length)
|
|
@@ -19920,7 +19924,7 @@ function B2(n, e, t, r = sn) {
|
|
|
19920
19924
|
m0 = Wt.deserializeUnchecked = B2;
|
|
19921
19925
|
var O = {};
|
|
19922
19926
|
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
19923
|
-
var x2 = O.s16 = O.s8 = O.nu64be = O.u48be = O.u40be = O.u32be = O.u24be = O.u16be = _t = O.nu64 = O.u48 = O.u40 = re = O.u32 = O.u24 = ln = O.u16 = Te = O.u8 =
|
|
19927
|
+
var x2 = O.s16 = O.s8 = O.nu64be = O.u48be = O.u40be = O.u32be = O.u24be = O.u16be = _t = O.nu64 = O.u48 = O.u40 = re = O.u32 = O.u24 = ln = O.u16 = Te = O.u8 = ar = O.offset = S2 = O.greedy = O.Constant = O.UTF8 = O.CString = O.Blob = O.Boolean = O.BitField = O.BitStructure = O.VariantLayout = O.Union = O.UnionLayoutDiscriminator = O.UnionDiscriminator = O.Structure = O.Sequence = O.DoubleBE = O.Double = O.FloatBE = O.Float = O.NearInt64BE = O.NearInt64 = O.NearUInt64BE = O.NearUInt64 = O.IntBE = O.Int = O.UIntBE = O.UInt = O.OffsetLayout = O.GreedyCount = O.ExternalLayout = O.bindConstructorLayout = O.nameWithProperty = O.Layout = O.uint8ArrayToBuffer = O.checkUint8Array = void 0;
|
|
19924
19928
|
O.constant = O.utf8 = O.cstr = Xe = O.blob = O.unionLayoutDiscriminator = O.union = Lt = O.seq = O.bits = se = O.struct = O.f64be = O.f64 = O.f32be = O.f32 = O.ns64be = O.s48be = O.s40be = O.s32be = O.s24be = O.s16be = nn = O.ns64 = O.s48 = O.s40 = O.s32 = O.s24 = void 0;
|
|
19925
19929
|
const Hc = ce;
|
|
19926
19930
|
function us(n) {
|
|
@@ -20918,7 +20922,7 @@ class P0 extends Le {
|
|
|
20918
20922
|
}
|
|
20919
20923
|
}
|
|
20920
20924
|
O.Constant = P0;
|
|
20921
|
-
var S2 = O.greedy = (n, e) => new E0(n, e),
|
|
20925
|
+
var S2 = O.greedy = (n, e) => new E0(n, e), ar = O.offset = (n, e, t) => new Kc(n, e, t), Te = O.u8 = (n) => new hn(1, n), ln = O.u16 = (n) => new hn(2, n);
|
|
20922
20926
|
O.u24 = (n) => new hn(3, n);
|
|
20923
20927
|
var re = O.u32 = (n) => new hn(4, n);
|
|
20924
20928
|
O.u40 = (n) => new hn(5, n);
|
|
@@ -20960,7 +20964,7 @@ var $s = {};
|
|
|
20960
20964
|
Object.defineProperty($s, "__esModule", { value: !0 });
|
|
20961
20965
|
function D2(n) {
|
|
20962
20966
|
{
|
|
20963
|
-
const e =
|
|
20967
|
+
const e = Qe.Buffer.from(n);
|
|
20964
20968
|
e.reverse();
|
|
20965
20969
|
const t = e.toString("hex");
|
|
20966
20970
|
return t.length === 0 ? BigInt(0) : BigInt(`0x${t}`);
|
|
@@ -20976,7 +20980,7 @@ function k2(n) {
|
|
|
20976
20980
|
$s.toBigIntBE = k2;
|
|
20977
20981
|
function F2(n, e) {
|
|
20978
20982
|
{
|
|
20979
|
-
const t = n.toString(16), r =
|
|
20983
|
+
const t = n.toString(16), r = Qe.Buffer.from(t.padStart(e * 2, "0").slice(0, e * 2), "hex");
|
|
20980
20984
|
return r.reverse(), r;
|
|
20981
20985
|
}
|
|
20982
20986
|
}
|
|
@@ -20984,7 +20988,7 @@ var L0 = $s.toBufferLE = F2;
|
|
|
20984
20988
|
function T2(n, e) {
|
|
20985
20989
|
{
|
|
20986
20990
|
const t = n.toString(16);
|
|
20987
|
-
return
|
|
20991
|
+
return Qe.Buffer.from(t.padStart(e * 2, "0").slice(0, e * 2), "hex");
|
|
20988
20992
|
}
|
|
20989
20993
|
}
|
|
20990
20994
|
$s.toBufferBE = T2;
|
|
@@ -21078,7 +21082,7 @@ let Rn = class {
|
|
|
21078
21082
|
* Create a value with the struct's coercion logic, then validate it.
|
|
21079
21083
|
*/
|
|
21080
21084
|
create(e, t) {
|
|
21081
|
-
return
|
|
21085
|
+
return J(e, this, t);
|
|
21082
21086
|
}
|
|
21083
21087
|
/**
|
|
21084
21088
|
* Check if a value passes the struct's validation.
|
|
@@ -21112,7 +21116,7 @@ function O0(n, e, t) {
|
|
|
21112
21116
|
if (r[0])
|
|
21113
21117
|
throw r[0];
|
|
21114
21118
|
}
|
|
21115
|
-
function
|
|
21119
|
+
function J(n, e, t) {
|
|
21116
21120
|
const r = Gs(n, e, { coerce: !0, message: t });
|
|
21117
21121
|
if (r[0])
|
|
21118
21122
|
throw r[0];
|
|
@@ -21163,7 +21167,7 @@ function In() {
|
|
|
21163
21167
|
function Yc(n) {
|
|
21164
21168
|
return Tr("instance", (e) => e instanceof n || `Expected a \`${n.name}\` instance, but received: ${yn(e)}`);
|
|
21165
21169
|
}
|
|
21166
|
-
function
|
|
21170
|
+
function et(n) {
|
|
21167
21171
|
const e = yn(n), t = typeof n;
|
|
21168
21172
|
return new Rn({
|
|
21169
21173
|
type: "literal",
|
|
@@ -21215,7 +21219,7 @@ function z0(n, e) {
|
|
|
21215
21219
|
function X() {
|
|
21216
21220
|
return Tr("string", (n) => typeof n == "string" || `Expected a string, but received: ${yn(n)}`);
|
|
21217
21221
|
}
|
|
21218
|
-
function
|
|
21222
|
+
function Zc(n) {
|
|
21219
21223
|
const e = P2();
|
|
21220
21224
|
return new Rn({
|
|
21221
21225
|
type: "tuple",
|
|
@@ -21390,7 +21394,7 @@ function $2(n, e) {
|
|
|
21390
21394
|
n[e >> 5] |= 128 << e % 32, n[j0(e) - 1] = e;
|
|
21391
21395
|
for (var t = 1732584193, r = -271733879, s = -1732584194, i = 271733878, o = 0; o < n.length; o += 16) {
|
|
21392
21396
|
var a = t, l = r, h = s, m = i;
|
|
21393
|
-
t = Nt(t, r, s, i, n[o], 7, -680876936), i = Nt(i, t, r, s, n[o + 1], 12, -389564586), s = Nt(s, i, t, r, n[o + 2], 17, 606105819), r = Nt(r, s, i, t, n[o + 3], 22, -1044525330), t = Nt(t, r, s, i, n[o + 4], 7, -176418897), i = Nt(i, t, r, s, n[o + 5], 12, 1200080426), s = Nt(s, i, t, r, n[o + 6], 17, -1473231341), r = Nt(r, s, i, t, n[o + 7], 22, -45705983), t = Nt(t, r, s, i, n[o + 8], 7, 1770035416), i = Nt(i, t, r, s, n[o + 9], 12, -1958414417), s = Nt(s, i, t, r, n[o + 10], 17, -42063), r = Nt(r, s, i, t, n[o + 11], 22, -1990404162), t = Nt(t, r, s, i, n[o + 12], 7, 1804603682), i = Nt(i, t, r, s, n[o + 13], 12, -40341101), s = Nt(s, i, t, r, n[o + 14], 17, -1502002290), r = Nt(r, s, i, t, n[o + 15], 22, 1236535329), t = zt(t, r, s, i, n[o + 1], 5, -165796510), i = zt(i, t, r, s, n[o + 6], 9, -1069501632), s = zt(s, i, t, r, n[o + 11], 14, 643717713), r = zt(r, s, i, t, n[o], 20, -373897302), t = zt(t, r, s, i, n[o + 5], 5, -701558691), i = zt(i, t, r, s, n[o + 10], 9, 38016083), s = zt(s, i, t, r, n[o + 15], 14, -660478335), r = zt(r, s, i, t, n[o + 4], 20, -405537848), t = zt(t, r, s, i, n[o + 9], 5, 568446438), i = zt(i, t, r, s, n[o + 14], 9, -1019803690), s = zt(s, i, t, r, n[o + 3], 14, -187363961), r = zt(r, s, i, t, n[o + 8], 20, 1163531501), t = zt(t, r, s, i, n[o + 13], 5, -1444681467), i = zt(i, t, r, s, n[o + 2], 9, -51403784), s = zt(s, i, t, r, n[o + 7], 14, 1735328473), r = zt(r, s, i, t, n[o + 12], 20, -1926607734), t = Ht(t, r, s, i, n[o + 5], 4, -378558), i = Ht(i, t, r, s, n[o + 8], 11, -2022574463), s = Ht(s, i, t, r, n[o + 11], 16, 1839030562), r = Ht(r, s, i, t, n[o + 14], 23, -35309556), t = Ht(t, r, s, i, n[o + 1], 4, -1530992060), i = Ht(i, t, r, s, n[o + 4], 11, 1272893353), s = Ht(s, i, t, r, n[o + 7], 16, -155497632), r = Ht(r, s, i, t, n[o + 10], 23, -1094730640), t = Ht(t, r, s, i, n[o + 13], 4, 681279174), i = Ht(i, t, r, s, n[o], 11, -358537222), s = Ht(s, i, t, r, n[o + 3], 16, -722521979), r = Ht(r, s, i, t, n[o + 6], 23, 76029189), t = Ht(t, r, s, i, n[o + 9], 4, -640364487), i = Ht(i, t, r, s, n[o + 12], 11, -421815835), s = Ht(s, i, t, r, n[o + 15], 16, 530742520), r = Ht(r, s, i, t, n[o + 2], 23, -995338651), t = qt(t, r, s, i, n[o], 6, -198630844), i = qt(i, t, r, s, n[o + 7], 10, 1126891415), s = qt(s, i, t, r, n[o + 14], 15, -1416354905), r = qt(r, s, i, t, n[o + 5], 21, -57434055), t = qt(t, r, s, i, n[o + 12], 6, 1700485571), i = qt(i, t, r, s, n[o + 3], 10, -1894986606), s = qt(s, i, t, r, n[o + 10], 15, -1051523), r = qt(r, s, i, t, n[o + 1], 21, -2054922799), t = qt(t, r, s, i, n[o + 8], 6, 1873313359), i = qt(i, t, r, s, n[o + 15], 10, -30611744), s = qt(s, i, t, r, n[o + 6], 15, -1560198380), r = qt(r, s, i, t, n[o + 13], 21, 1309151649), t = qt(t, r, s, i, n[o + 4], 6, -145523070), i = qt(i, t, r, s, n[o + 11], 10, -1120210379), s = qt(s, i, t, r, n[o + 2], 15, 718787259), r = qt(r, s, i, t, n[o + 9], 21, -343485551), t =
|
|
21397
|
+
t = Nt(t, r, s, i, n[o], 7, -680876936), i = Nt(i, t, r, s, n[o + 1], 12, -389564586), s = Nt(s, i, t, r, n[o + 2], 17, 606105819), r = Nt(r, s, i, t, n[o + 3], 22, -1044525330), t = Nt(t, r, s, i, n[o + 4], 7, -176418897), i = Nt(i, t, r, s, n[o + 5], 12, 1200080426), s = Nt(s, i, t, r, n[o + 6], 17, -1473231341), r = Nt(r, s, i, t, n[o + 7], 22, -45705983), t = Nt(t, r, s, i, n[o + 8], 7, 1770035416), i = Nt(i, t, r, s, n[o + 9], 12, -1958414417), s = Nt(s, i, t, r, n[o + 10], 17, -42063), r = Nt(r, s, i, t, n[o + 11], 22, -1990404162), t = Nt(t, r, s, i, n[o + 12], 7, 1804603682), i = Nt(i, t, r, s, n[o + 13], 12, -40341101), s = Nt(s, i, t, r, n[o + 14], 17, -1502002290), r = Nt(r, s, i, t, n[o + 15], 22, 1236535329), t = zt(t, r, s, i, n[o + 1], 5, -165796510), i = zt(i, t, r, s, n[o + 6], 9, -1069501632), s = zt(s, i, t, r, n[o + 11], 14, 643717713), r = zt(r, s, i, t, n[o], 20, -373897302), t = zt(t, r, s, i, n[o + 5], 5, -701558691), i = zt(i, t, r, s, n[o + 10], 9, 38016083), s = zt(s, i, t, r, n[o + 15], 14, -660478335), r = zt(r, s, i, t, n[o + 4], 20, -405537848), t = zt(t, r, s, i, n[o + 9], 5, 568446438), i = zt(i, t, r, s, n[o + 14], 9, -1019803690), s = zt(s, i, t, r, n[o + 3], 14, -187363961), r = zt(r, s, i, t, n[o + 8], 20, 1163531501), t = zt(t, r, s, i, n[o + 13], 5, -1444681467), i = zt(i, t, r, s, n[o + 2], 9, -51403784), s = zt(s, i, t, r, n[o + 7], 14, 1735328473), r = zt(r, s, i, t, n[o + 12], 20, -1926607734), t = Ht(t, r, s, i, n[o + 5], 4, -378558), i = Ht(i, t, r, s, n[o + 8], 11, -2022574463), s = Ht(s, i, t, r, n[o + 11], 16, 1839030562), r = Ht(r, s, i, t, n[o + 14], 23, -35309556), t = Ht(t, r, s, i, n[o + 1], 4, -1530992060), i = Ht(i, t, r, s, n[o + 4], 11, 1272893353), s = Ht(s, i, t, r, n[o + 7], 16, -155497632), r = Ht(r, s, i, t, n[o + 10], 23, -1094730640), t = Ht(t, r, s, i, n[o + 13], 4, 681279174), i = Ht(i, t, r, s, n[o], 11, -358537222), s = Ht(s, i, t, r, n[o + 3], 16, -722521979), r = Ht(r, s, i, t, n[o + 6], 23, 76029189), t = Ht(t, r, s, i, n[o + 9], 4, -640364487), i = Ht(i, t, r, s, n[o + 12], 11, -421815835), s = Ht(s, i, t, r, n[o + 15], 16, 530742520), r = Ht(r, s, i, t, n[o + 2], 23, -995338651), t = qt(t, r, s, i, n[o], 6, -198630844), i = qt(i, t, r, s, n[o + 7], 10, 1126891415), s = qt(s, i, t, r, n[o + 14], 15, -1416354905), r = qt(r, s, i, t, n[o + 5], 21, -57434055), t = qt(t, r, s, i, n[o + 12], 6, 1700485571), i = qt(i, t, r, s, n[o + 3], 10, -1894986606), s = qt(s, i, t, r, n[o + 10], 15, -1051523), r = qt(r, s, i, t, n[o + 1], 21, -2054922799), t = qt(t, r, s, i, n[o + 8], 6, 1873313359), i = qt(i, t, r, s, n[o + 15], 10, -30611744), s = qt(s, i, t, r, n[o + 6], 15, -1560198380), r = qt(r, s, i, t, n[o + 13], 21, 1309151649), t = qt(t, r, s, i, n[o + 4], 6, -145523070), i = qt(i, t, r, s, n[o + 11], 10, -1120210379), s = qt(s, i, t, r, n[o + 2], 15, 718787259), r = qt(r, s, i, t, n[o + 9], 21, -343485551), t = or(t, a), r = or(r, l), s = or(s, h), i = or(i, m);
|
|
21394
21398
|
}
|
|
21395
21399
|
return [t, r, s, i];
|
|
21396
21400
|
}
|
|
@@ -21401,7 +21405,7 @@ function V2(n) {
|
|
|
21401
21405
|
t[r >> 5] |= (n[r / 8] & 255) << r % 32;
|
|
21402
21406
|
return t;
|
|
21403
21407
|
}
|
|
21404
|
-
function
|
|
21408
|
+
function or(n, e) {
|
|
21405
21409
|
var t = (n & 65535) + (e & 65535), r = (n >> 16) + (e >> 16) + (t >> 16);
|
|
21406
21410
|
return r << 16 | t & 65535;
|
|
21407
21411
|
}
|
|
@@ -21409,7 +21413,7 @@ function G2(n, e) {
|
|
|
21409
21413
|
return n << e | n >>> 32 - e;
|
|
21410
21414
|
}
|
|
21411
21415
|
function po(n, e, t, r, s, i) {
|
|
21412
|
-
return
|
|
21416
|
+
return or(G2(or(or(e, n), or(r, i)), s), t);
|
|
21413
21417
|
}
|
|
21414
21418
|
function Nt(n, e, t, r, s, i, o) {
|
|
21415
21419
|
return po(e & t | ~e & r, n, e, s, i, o);
|
|
@@ -21435,7 +21439,7 @@ function Y2(n, e, t) {
|
|
|
21435
21439
|
}
|
|
21436
21440
|
return bo(r);
|
|
21437
21441
|
}
|
|
21438
|
-
function
|
|
21442
|
+
function Z2(n, e, t, r) {
|
|
21439
21443
|
switch (n) {
|
|
21440
21444
|
case 0:
|
|
21441
21445
|
return e & t ^ ~e & r;
|
|
@@ -21450,7 +21454,7 @@ function J2(n, e, t, r) {
|
|
|
21450
21454
|
function pa(n, e) {
|
|
21451
21455
|
return n << e | n >>> 32 - e;
|
|
21452
21456
|
}
|
|
21453
|
-
function
|
|
21457
|
+
function J2(n) {
|
|
21454
21458
|
var e = [1518500249, 1859775393, 2400959708, 3395469782], t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
21455
21459
|
if (typeof n == "string") {
|
|
21456
21460
|
var r = unescape(encodeURIComponent(n));
|
|
@@ -21471,14 +21475,14 @@ function Z2(n) {
|
|
|
21471
21475
|
for (var g = 16; g < 80; ++g)
|
|
21472
21476
|
S[g] = pa(S[g - 3] ^ S[g - 8] ^ S[g - 14] ^ S[g - 16], 1);
|
|
21473
21477
|
for (var D = t[0], x = t[1], U = t[2], R = t[3], F = t[4], W = 0; W < 80; ++W) {
|
|
21474
|
-
var z = Math.floor(W / 20), H = pa(D, 5) +
|
|
21478
|
+
var z = Math.floor(W / 20), H = pa(D, 5) + Z2(z, x, U, R) + F + e[z] + S[W] >>> 0;
|
|
21475
21479
|
F = R, R = U, U = pa(x, 30) >>> 0, x = D, D = H;
|
|
21476
21480
|
}
|
|
21477
21481
|
t[0] = t[0] + D >>> 0, t[1] = t[1] + x >>> 0, t[2] = t[2] + U >>> 0, t[3] = t[3] + R >>> 0, t[4] = t[4] + F >>> 0;
|
|
21478
21482
|
}
|
|
21479
21483
|
return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
|
|
21480
21484
|
}
|
|
21481
|
-
var Q2 = K0("v5", 80,
|
|
21485
|
+
var Q2 = K0("v5", 80, J2);
|
|
21482
21486
|
const e8 = "00000000-0000-0000-0000-000000000000";
|
|
21483
21487
|
function t8(n) {
|
|
21484
21488
|
if (!mo(n))
|
|
@@ -22009,7 +22013,7 @@ function Hd(n) {
|
|
|
22009
22013
|
return !1;
|
|
22010
22014
|
}
|
|
22011
22015
|
}
|
|
22012
|
-
const
|
|
22016
|
+
const Jc = (n, e) => os.sign(n, e.slice(0, 32)), p8 = os.verify, Ae = (n) => ce.Buffer.isBuffer(n) ? n : n instanceof Uint8Array ? ce.Buffer.from(n.buffer, n.byteOffset, n.byteLength) : ce.Buffer.from(n);
|
|
22013
22017
|
class Qc {
|
|
22014
22018
|
constructor(e) {
|
|
22015
22019
|
Object.assign(this, e);
|
|
@@ -22227,7 +22231,7 @@ class w8 {
|
|
|
22227
22231
|
return ce.Buffer.concat([this._secretKey, this._publicKey], 64);
|
|
22228
22232
|
}
|
|
22229
22233
|
}
|
|
22230
|
-
const A8 = new Y("BPFLoader1111111111111111111111111111111111"),
|
|
22234
|
+
const A8 = new Y("BPFLoader1111111111111111111111111111111111"), cr = 1232, go = 127, Ms = 64;
|
|
22231
22235
|
class el extends Error {
|
|
22232
22236
|
constructor(e) {
|
|
22233
22237
|
super(`Signature ${e} has expired: block height exceeded.`), this.signature = void 0, this.signature = e;
|
|
@@ -22290,7 +22294,7 @@ class _s {
|
|
|
22290
22294
|
}
|
|
22291
22295
|
}
|
|
22292
22296
|
const Se = (n = "publicKey") => Xe(32, n), E8 = (n = "signature") => Xe(64, n), wr = (n = "string") => {
|
|
22293
|
-
const e = se([re("length"), re("lengthPadding"), Xe(
|
|
22297
|
+
const e = se([re("length"), re("lengthPadding"), Xe(ar(re(), -8), "chars")], n), t = e.decode.bind(e), r = e.encode.bind(e), s = e;
|
|
22294
22298
|
return s.decode = (i, o) => t(i, o).chars.toString(), s.encode = (i, o, a) => {
|
|
22295
22299
|
const l = {
|
|
22296
22300
|
chars: ce.Buffer.from(i, "utf8")
|
|
@@ -22298,7 +22302,7 @@ const Se = (n = "publicKey") => Xe(32, n), E8 = (n = "signature") => Xe(64, n),
|
|
|
22298
22302
|
return r(l, o, a);
|
|
22299
22303
|
}, s.alloc = (i) => re().span + re().span + ce.Buffer.from(i, "utf8").length, s;
|
|
22300
22304
|
}, B8 = (n = "authorized") => se([Se("staker"), Se("withdrawer")], n), x8 = (n = "lockup") => se([nn("unixTimestamp"), nn("epoch"), Se("custodian")], n), C8 = (n = "voteInit") => se([Se("nodePubkey"), Se("authorizedVoter"), Se("authorizedWithdrawer"), Te("commission")], n), S8 = (n = "voteAuthorizeWithSeedArgs") => se([re("voteAuthorizationType"), Se("currentAuthorityDerivedKeyOwnerPubkey"), wr("currentAuthorityDerivedKeySeed"), Se("newAuthorized")], n);
|
|
22301
|
-
function
|
|
22305
|
+
function Z0(n, e) {
|
|
22302
22306
|
const t = (s) => {
|
|
22303
22307
|
if (s.span >= 0)
|
|
22304
22308
|
return s.span;
|
|
@@ -22309,7 +22313,7 @@ function J0(n, e) {
|
|
|
22309
22313
|
if (Array.isArray(i))
|
|
22310
22314
|
return i.length * t(s.elementLayout);
|
|
22311
22315
|
} else if ("fields" in s)
|
|
22312
|
-
return
|
|
22316
|
+
return Z0({
|
|
22313
22317
|
layout: s
|
|
22314
22318
|
}, e[s.property]);
|
|
22315
22319
|
return 0;
|
|
@@ -22319,7 +22323,7 @@ function J0(n, e) {
|
|
|
22319
22323
|
r += t(s);
|
|
22320
22324
|
}), r;
|
|
22321
22325
|
}
|
|
22322
|
-
function
|
|
22326
|
+
function Jt(n) {
|
|
22323
22327
|
let e = 0, t = 0;
|
|
22324
22328
|
for (; ; ) {
|
|
22325
22329
|
let r = n.shift();
|
|
@@ -22406,16 +22410,16 @@ class yo {
|
|
|
22406
22410
|
return [r, s];
|
|
22407
22411
|
}
|
|
22408
22412
|
}
|
|
22409
|
-
const
|
|
22413
|
+
const J0 = "Reached end of buffer unexpectedly";
|
|
22410
22414
|
function Dn(n) {
|
|
22411
22415
|
if (n.length === 0)
|
|
22412
|
-
throw new Error(
|
|
22416
|
+
throw new Error(J0);
|
|
22413
22417
|
return n.shift();
|
|
22414
22418
|
}
|
|
22415
22419
|
function Qt(n, ...e) {
|
|
22416
22420
|
const [t] = e;
|
|
22417
22421
|
if (e.length === 2 ? t + (e[1] ?? 0) > n.length : t >= n.length)
|
|
22418
|
-
throw new Error(
|
|
22422
|
+
throw new Error(J0);
|
|
22419
22423
|
return n.splice(...e);
|
|
22420
22424
|
}
|
|
22421
22425
|
class wn {
|
|
@@ -22498,7 +22502,7 @@ class wn {
|
|
|
22498
22502
|
});
|
|
22499
22503
|
let s = [];
|
|
22500
22504
|
rn(s, r.length);
|
|
22501
|
-
let i = ce.Buffer.alloc(
|
|
22505
|
+
let i = ce.Buffer.alloc(cr);
|
|
22502
22506
|
ce.Buffer.from(s).copy(i);
|
|
22503
22507
|
let o = s.length;
|
|
22504
22508
|
r.forEach((E) => {
|
|
@@ -22525,16 +22529,16 @@ class wn {
|
|
|
22525
22529
|
const r = Dn(t);
|
|
22526
22530
|
if (r !== (r & go))
|
|
22527
22531
|
throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");
|
|
22528
|
-
const s = Dn(t), i = Dn(t), o =
|
|
22532
|
+
const s = Dn(t), i = Dn(t), o = Jt(t);
|
|
22529
22533
|
let a = [];
|
|
22530
22534
|
for (let S = 0; S < o; S++) {
|
|
22531
22535
|
const A = Qt(t, 0, Tn);
|
|
22532
22536
|
a.push(new Y(ce.Buffer.from(A)));
|
|
22533
22537
|
}
|
|
22534
|
-
const l = Qt(t, 0, Tn), h =
|
|
22538
|
+
const l = Qt(t, 0, Tn), h = Jt(t);
|
|
22535
22539
|
let m = [];
|
|
22536
22540
|
for (let S = 0; S < h; S++) {
|
|
22537
|
-
const A = Dn(t), g =
|
|
22541
|
+
const A = Dn(t), g = Jt(t), D = Qt(t, 0, g), x = Jt(t), U = Qt(t, 0, x), R = Pt.encode(ce.Buffer.from(U));
|
|
22538
22542
|
m.push({
|
|
22539
22543
|
programIdIndex: A,
|
|
22540
22544
|
accounts: D,
|
|
@@ -22648,7 +22652,7 @@ class vr {
|
|
|
22648
22652
|
rn(r, this.compiledInstructions.length);
|
|
22649
22653
|
const s = this.serializeAddressTableLookups(), i = Array();
|
|
22650
22654
|
rn(i, this.addressTableLookups.length);
|
|
22651
|
-
const o = se([Te("prefix"), se([Te("numRequiredSignatures"), Te("numReadonlySignedAccounts"), Te("numReadonlyUnsignedAccounts")], "header"), Xe(e.length, "staticAccountKeysLength"), Lt(Se(), this.staticAccountKeys.length, "staticAccountKeys"), Se("recentBlockhash"), Xe(r.length, "instructionsLength"), Xe(t.length, "serializedInstructions"), Xe(i.length, "addressTableLookupsLength"), Xe(s.length, "serializedAddressTableLookups")]), a = new Uint8Array(
|
|
22655
|
+
const o = se([Te("prefix"), se([Te("numRequiredSignatures"), Te("numReadonlySignedAccounts"), Te("numReadonlyUnsignedAccounts")], "header"), Xe(e.length, "staticAccountKeysLength"), Lt(Se(), this.staticAccountKeys.length, "staticAccountKeys"), Se("recentBlockhash"), Xe(r.length, "instructionsLength"), Xe(t.length, "serializedInstructions"), Xe(i.length, "addressTableLookupsLength"), Xe(s.length, "serializedAddressTableLookups")]), a = new Uint8Array(cr), h = o.encode({
|
|
22652
22656
|
prefix: 128,
|
|
22653
22657
|
header: this.header,
|
|
22654
22658
|
staticAccountKeysLength: new Uint8Array(e),
|
|
@@ -22663,7 +22667,7 @@ class vr {
|
|
|
22663
22667
|
}
|
|
22664
22668
|
serializeInstructions() {
|
|
22665
22669
|
let e = 0;
|
|
22666
|
-
const t = new Uint8Array(
|
|
22670
|
+
const t = new Uint8Array(cr);
|
|
22667
22671
|
for (const r of this.compiledInstructions) {
|
|
22668
22672
|
const s = Array();
|
|
22669
22673
|
rn(s, r.accountKeyIndexes.length);
|
|
@@ -22682,7 +22686,7 @@ class vr {
|
|
|
22682
22686
|
}
|
|
22683
22687
|
serializeAddressTableLookups() {
|
|
22684
22688
|
let e = 0;
|
|
22685
|
-
const t = new Uint8Array(
|
|
22689
|
+
const t = new Uint8Array(cr);
|
|
22686
22690
|
for (const r of this.addressTableLookups) {
|
|
22687
22691
|
const s = Array();
|
|
22688
22692
|
rn(s, r.writableIndexes.length);
|
|
@@ -22709,21 +22713,21 @@ class vr {
|
|
|
22709
22713
|
numRequiredSignatures: Dn(t),
|
|
22710
22714
|
numReadonlySignedAccounts: Dn(t),
|
|
22711
22715
|
numReadonlyUnsignedAccounts: Dn(t)
|
|
22712
|
-
}, a = [], l =
|
|
22716
|
+
}, a = [], l = Jt(t);
|
|
22713
22717
|
for (let g = 0; g < l; g++)
|
|
22714
22718
|
a.push(new Y(Qt(t, 0, Tn)));
|
|
22715
|
-
const h = Pt.encode(Qt(t, 0, Tn)), m =
|
|
22719
|
+
const h = Pt.encode(Qt(t, 0, Tn)), m = Jt(t), E = [];
|
|
22716
22720
|
for (let g = 0; g < m; g++) {
|
|
22717
|
-
const D = Dn(t), x =
|
|
22721
|
+
const D = Dn(t), x = Jt(t), U = Qt(t, 0, x), R = Jt(t), F = new Uint8Array(Qt(t, 0, R));
|
|
22718
22722
|
E.push({
|
|
22719
22723
|
programIdIndex: D,
|
|
22720
22724
|
accountKeyIndexes: U,
|
|
22721
22725
|
data: F
|
|
22722
22726
|
});
|
|
22723
22727
|
}
|
|
22724
|
-
const S =
|
|
22728
|
+
const S = Jt(t), A = [];
|
|
22725
22729
|
for (let g = 0; g < S; g++) {
|
|
22726
|
-
const D = new Y(Qt(t, 0, Tn)), x =
|
|
22730
|
+
const D = new Y(Qt(t, 0, Tn)), x = Jt(t), U = Qt(t, 0, x), R = Jt(t), F = Qt(t, 0, R);
|
|
22727
22731
|
A.push({
|
|
22728
22732
|
accountKey: D,
|
|
22729
22733
|
writableIndexes: U,
|
|
@@ -23062,7 +23066,7 @@ class Re {
|
|
|
23062
23066
|
_partialSign(e, ...t) {
|
|
23063
23067
|
const r = e.serialize();
|
|
23064
23068
|
t.forEach((s) => {
|
|
23065
|
-
const i =
|
|
23069
|
+
const i = Jc(r, s.secretKey);
|
|
23066
23070
|
this._addSignature(s.publicKey, Ae(i));
|
|
23067
23071
|
});
|
|
23068
23072
|
}
|
|
@@ -23148,7 +23152,7 @@ Missing signature for public key${i.missing.length === 1 ? "" : "(s)"} [\`${i.mi
|
|
|
23148
23152
|
signature: o
|
|
23149
23153
|
}, a) => {
|
|
23150
23154
|
o !== null && (Ue(o.length === 64, "signature has invalid length"), ce.Buffer.from(o).copy(i, r.length + a * 64));
|
|
23151
|
-
}), e.copy(i, r.length + t.length * 64), Ue(i.length <=
|
|
23155
|
+
}), e.copy(i, r.length + t.length * 64), Ue(i.length <= cr, `Transaction too large: ${i.length} > ${cr}`), i;
|
|
23152
23156
|
}
|
|
23153
23157
|
/**
|
|
23154
23158
|
* Deprecated method
|
|
@@ -23180,7 +23184,7 @@ Missing signature for public key${i.missing.length === 1 ? "" : "(s)"} [\`${i.mi
|
|
|
23180
23184
|
*/
|
|
23181
23185
|
static from(e) {
|
|
23182
23186
|
let t = [...e];
|
|
23183
|
-
const r =
|
|
23187
|
+
const r = Jt(t);
|
|
23184
23188
|
let s = [];
|
|
23185
23189
|
for (let i = 0; i < r; i++) {
|
|
23186
23190
|
const o = Qt(t, 0, Ms);
|
|
@@ -23315,7 +23319,7 @@ class sl {
|
|
|
23315
23319
|
}
|
|
23316
23320
|
static deserialize(e) {
|
|
23317
23321
|
let t = [...e];
|
|
23318
|
-
const r = [], s =
|
|
23322
|
+
const r = [], s = Jt(t);
|
|
23319
23323
|
for (let o = 0; o < s; o++)
|
|
23320
23324
|
r.push(new Uint8Array(Qt(t, 0, Ms)));
|
|
23321
23325
|
const i = nl.deserialize(new Uint8Array(t));
|
|
@@ -23325,7 +23329,7 @@ class sl {
|
|
|
23325
23329
|
const t = this.message.serialize(), r = this.message.staticAccountKeys.slice(0, this.message.header.numRequiredSignatures);
|
|
23326
23330
|
for (const s of e) {
|
|
23327
23331
|
const i = r.findIndex((o) => o.equals(s.publicKey));
|
|
23328
|
-
Ue(i >= 0, `Cannot sign with non signer key ${s.publicKey.toBase58()}`), this.signatures[i] =
|
|
23332
|
+
Ue(i >= 0, `Cannot sign with non signer key ${s.publicKey.toBase58()}`), this.signatures[i] = Jc(t, s.secretKey);
|
|
23329
23333
|
}
|
|
23330
23334
|
}
|
|
23331
23335
|
addSignature(e, t) {
|
|
@@ -23451,7 +23455,7 @@ function hr(n) {
|
|
|
23451
23455
|
return new Promise((e) => setTimeout(e, n));
|
|
23452
23456
|
}
|
|
23453
23457
|
function ke(n, e) {
|
|
23454
|
-
const t = n.layout.span >= 0 ? n.layout.span :
|
|
23458
|
+
const t = n.layout.span >= 0 ? n.layout.span : Z0(n, e), r = ce.Buffer.alloc(t), s = Object.assign({
|
|
23455
23459
|
instruction: n.index
|
|
23456
23460
|
}, e);
|
|
23457
23461
|
return n.layout.encode(s, r), r;
|
|
@@ -24097,7 +24101,7 @@ class Ft {
|
|
|
24097
24101
|
}
|
|
24098
24102
|
}
|
|
24099
24103
|
Ft.programId = new Y("11111111111111111111111111111111");
|
|
24100
|
-
const O8 =
|
|
24104
|
+
const O8 = cr - 300;
|
|
24101
24105
|
class kr {
|
|
24102
24106
|
/**
|
|
24103
24107
|
* @internal
|
|
@@ -24158,7 +24162,7 @@ class kr {
|
|
|
24158
24162
|
commitment: "confirmed"
|
|
24159
24163
|
});
|
|
24160
24164
|
}
|
|
24161
|
-
const o = se([re("instruction"), re("offset"), re("bytesLength"), re("bytesLengthPadding"), Lt(Te("byte"),
|
|
24165
|
+
const o = se([re("instruction"), re("offset"), re("bytesLength"), re("bytesLengthPadding"), Lt(Te("byte"), ar(re(), -8), "bytes")]), a = kr.chunkSize;
|
|
24162
24166
|
let l = 0, h = i, m = [];
|
|
24163
24167
|
for (; h.length > 0; ) {
|
|
24164
24168
|
const E = h.slice(0, a), S = ce.Buffer.alloc(a + 16);
|
|
@@ -24411,10 +24415,10 @@ const X8 = {
|
|
|
24411
24415
|
Te("lastExtendedStartIndex"),
|
|
24412
24416
|
Te(),
|
|
24413
24417
|
// option
|
|
24414
|
-
Lt(Se(),
|
|
24418
|
+
Lt(Se(), ar(Te(), -1), "authority")
|
|
24415
24419
|
])
|
|
24416
24420
|
}, Y8 = /^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;
|
|
24417
|
-
function
|
|
24421
|
+
function Z8(n) {
|
|
24418
24422
|
const e = n.match(Y8);
|
|
24419
24423
|
if (e == null)
|
|
24420
24424
|
throw TypeError(`Failed to validate endpoint URL \`${n}\``);
|
|
@@ -24435,8 +24439,8 @@ function J8(n) {
|
|
|
24435
24439
|
);
|
|
24436
24440
|
return `${o}//${r}${l}${i}`;
|
|
24437
24441
|
}
|
|
24438
|
-
const tt = Xs(Yc(Y), X(), (n) => new Y(n)), rh =
|
|
24439
|
-
function
|
|
24442
|
+
const tt = Xs(Yc(Y), X(), (n) => new Y(n)), rh = Zc([X(), et("base64")]), il = Xs(Yc(ce.Buffer), rh, (n) => ce.Buffer.from(n[0], "base64")), sh = 30 * 1e3;
|
|
24443
|
+
function J8(n) {
|
|
24440
24444
|
if (/^https?:/.test(n) === !1)
|
|
24441
24445
|
throw new TypeError("Endpoint URL must start with `http:` or `https:`.");
|
|
24442
24446
|
return n;
|
|
@@ -24468,11 +24472,11 @@ function Vd(n) {
|
|
|
24468
24472
|
}
|
|
24469
24473
|
function ih(n) {
|
|
24470
24474
|
return Xt([j({
|
|
24471
|
-
jsonrpc:
|
|
24475
|
+
jsonrpc: et("2.0"),
|
|
24472
24476
|
id: X(),
|
|
24473
24477
|
result: n
|
|
24474
24478
|
}), j({
|
|
24475
|
-
jsonrpc:
|
|
24479
|
+
jsonrpc: et("2.0"),
|
|
24476
24480
|
id: X(),
|
|
24477
24481
|
error: j({
|
|
24478
24482
|
code: hs(),
|
|
@@ -24485,7 +24489,7 @@ const Q8 = ih(hs());
|
|
|
24485
24489
|
function we(n) {
|
|
24486
24490
|
return Xs(ih(n), Q8, (e) => "error" in e ? e : {
|
|
24487
24491
|
...e,
|
|
24488
|
-
result:
|
|
24492
|
+
result: J(e.result, n)
|
|
24489
24493
|
});
|
|
24490
24494
|
}
|
|
24491
24495
|
function st(n) {
|
|
@@ -24552,7 +24556,7 @@ const e3 = j({
|
|
|
24552
24556
|
firstNormalSlot: L()
|
|
24553
24557
|
}), o3 = z0(X(), Q(L())), Ir = te(Xt([j({}), X()])), a3 = j({
|
|
24554
24558
|
err: Ir
|
|
24555
|
-
}), c3 =
|
|
24559
|
+
}), c3 = et("receivedSignature"), l3 = j({
|
|
24556
24560
|
"solana-core": X(),
|
|
24557
24561
|
"feature-set": de(L())
|
|
24558
24562
|
}), d3 = j({
|
|
@@ -24576,7 +24580,7 @@ const e3 = j({
|
|
|
24576
24580
|
unitsConsumed: de(L()),
|
|
24577
24581
|
returnData: de(te(j({
|
|
24578
24582
|
programId: X(),
|
|
24579
|
-
data:
|
|
24583
|
+
data: Zc([X(), et("base64")])
|
|
24580
24584
|
}))),
|
|
24581
24585
|
innerInstructions: de(te(Q(j({
|
|
24582
24586
|
index: L(),
|
|
@@ -24697,7 +24701,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24697
24701
|
}), k3 = j({
|
|
24698
24702
|
pubkey: tt,
|
|
24699
24703
|
account: Ws
|
|
24700
|
-
}), F3 = Xs(Xt([Yc(ce.Buffer), cc]), Xt([rh, cc]), (n) => Array.isArray(n) ?
|
|
24704
|
+
}), F3 = Xs(Xt([Yc(ce.Buffer), cc]), Xt([rh, cc]), (n) => Array.isArray(n) ? J(n, il) : n), lc = j({
|
|
24701
24705
|
executable: In(),
|
|
24702
24706
|
owner: tt,
|
|
24703
24707
|
lamports: L(),
|
|
@@ -24707,7 +24711,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24707
24711
|
pubkey: tt,
|
|
24708
24712
|
account: lc
|
|
24709
24713
|
}), I3 = j({
|
|
24710
|
-
state: Xt([
|
|
24714
|
+
state: Xt([et("active"), et("inactive"), et("activating"), et("deactivating")]),
|
|
24711
24715
|
active: L(),
|
|
24712
24716
|
inactive: L()
|
|
24713
24717
|
}), U3 = we(Q(j({
|
|
@@ -24739,16 +24743,16 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24739
24743
|
subscription: L(),
|
|
24740
24744
|
result: P3
|
|
24741
24745
|
}), O3 = Xt([j({
|
|
24742
|
-
type: Xt([
|
|
24746
|
+
type: Xt([et("firstShredReceived"), et("completed"), et("optimisticConfirmation"), et("root")]),
|
|
24743
24747
|
slot: L(),
|
|
24744
24748
|
timestamp: L()
|
|
24745
24749
|
}), j({
|
|
24746
|
-
type:
|
|
24750
|
+
type: et("createdBank"),
|
|
24747
24751
|
parent: L(),
|
|
24748
24752
|
slot: L(),
|
|
24749
24753
|
timestamp: L()
|
|
24750
24754
|
}), j({
|
|
24751
|
-
type:
|
|
24755
|
+
type: et("frozen"),
|
|
24752
24756
|
slot: L(),
|
|
24753
24757
|
timestamp: L(),
|
|
24754
24758
|
stats: j({
|
|
@@ -24758,7 +24762,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24758
24762
|
maxTransactionsPerEntry: L()
|
|
24759
24763
|
})
|
|
24760
24764
|
}), j({
|
|
24761
|
-
type:
|
|
24765
|
+
type: et("dead"),
|
|
24762
24766
|
slot: L(),
|
|
24763
24767
|
timestamp: L(),
|
|
24764
24768
|
err: X()
|
|
@@ -24782,14 +24786,14 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24782
24786
|
nodePubkey: X(),
|
|
24783
24787
|
activatedStake: L(),
|
|
24784
24788
|
epochVoteAccount: In(),
|
|
24785
|
-
epochCredits: Q(
|
|
24789
|
+
epochCredits: Q(Zc([L(), L(), L()])),
|
|
24786
24790
|
commission: L(),
|
|
24787
24791
|
lastVote: L(),
|
|
24788
24792
|
rootSlot: te(L())
|
|
24789
24793
|
}), K3 = we(j({
|
|
24790
24794
|
current: Q(Xd),
|
|
24791
24795
|
delinquent: Q(Xd)
|
|
24792
|
-
})), j3 = Xt([
|
|
24796
|
+
})), j3 = Xt([et("processed"), et("confirmed"), et("finalized")]), $3 = j({
|
|
24793
24797
|
slot: L(),
|
|
24794
24798
|
confirmations: te(L()),
|
|
24795
24799
|
err: Ir,
|
|
@@ -24819,7 +24823,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24819
24823
|
pubkey: tt,
|
|
24820
24824
|
signer: In(),
|
|
24821
24825
|
writable: In(),
|
|
24822
|
-
source: de(Xt([
|
|
24826
|
+
source: de(Xt([et("transaction"), et("lookupTable")]))
|
|
24823
24827
|
}), ch = j({
|
|
24824
24828
|
accountKeys: Q(ah),
|
|
24825
24829
|
signatures: Q(X())
|
|
@@ -24839,7 +24843,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24839
24843
|
accounts: Q(X()),
|
|
24840
24844
|
data: X(),
|
|
24841
24845
|
programId: X()
|
|
24842
|
-
})]), uh = Xs(X3, Y3, (n) => "accounts" in n ?
|
|
24846
|
+
})]), uh = Xs(X3, Y3, (n) => "accounts" in n ? J(n, dh) : J(n, lh)), fh = j({
|
|
24843
24847
|
signatures: Q(X()),
|
|
24844
24848
|
message: j({
|
|
24845
24849
|
accountKeys: Q(ah),
|
|
@@ -24888,13 +24892,13 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24888
24892
|
postTokenBalances: de(te(Q(Ki))),
|
|
24889
24893
|
loadedAddresses: de(hh),
|
|
24890
24894
|
computeUnitsConsumed: de(L())
|
|
24891
|
-
}), ms = Xt([
|
|
24895
|
+
}), ms = Xt([et(0), et("legacy")]), Ur = j({
|
|
24892
24896
|
pubkey: X(),
|
|
24893
24897
|
lamports: L(),
|
|
24894
24898
|
postBalance: te(L()),
|
|
24895
24899
|
rewardType: te(X()),
|
|
24896
24900
|
commission: de(te(L()))
|
|
24897
|
-
}),
|
|
24901
|
+
}), Z3 = we(te(j({
|
|
24898
24902
|
blockhash: X(),
|
|
24899
24903
|
previousBlockhash: X(),
|
|
24900
24904
|
parentSlot: L(),
|
|
@@ -24906,7 +24910,7 @@ const p3 = we(e3), g3 = we(r3), y3 = we(n3), w3 = we(s3), A3 = we(i3), E3 = we(o
|
|
|
24906
24910
|
rewards: de(Q(Ur)),
|
|
24907
24911
|
blockTime: te(L()),
|
|
24908
24912
|
blockHeight: te(L())
|
|
24909
|
-
}))),
|
|
24913
|
+
}))), J3 = we(te(j({
|
|
24910
24914
|
blockhash: X(),
|
|
24911
24915
|
previousBlockhash: X(),
|
|
24912
24916
|
parentSlot: L(),
|
|
@@ -25028,7 +25032,7 @@ class m4 {
|
|
|
25028
25032
|
} = Ke(m), A = this._buildArgs([], E, void 0, S), g = jd(A);
|
|
25029
25033
|
return h[g] = h[g] ?? (async () => {
|
|
25030
25034
|
try {
|
|
25031
|
-
const D = await this._rpcRequest("getBlockHeight", A), x =
|
|
25035
|
+
const D = await this._rpcRequest("getBlockHeight", A), x = J(D, we(L()));
|
|
25032
25036
|
if ("error" in x)
|
|
25033
25037
|
throw new oe(x.error, "failed to get block height information");
|
|
25034
25038
|
return x.result;
|
|
@@ -25039,7 +25043,7 @@ class m4 {
|
|
|
25039
25043
|
};
|
|
25040
25044
|
})();
|
|
25041
25045
|
let r, s, i, o, a, l;
|
|
25042
|
-
t && typeof t == "string" ? this._commitment = t : t && (this._commitment = t.commitment, this._confirmTransactionInitialTimeout = t.confirmTransactionInitialTimeout, r = t.wsEndpoint, s = t.httpHeaders, i = t.fetch, o = t.fetchMiddleware, a = t.disableRetryOnRateLimit, l = t.httpAgent), this._rpcEndpoint =
|
|
25046
|
+
t && typeof t == "string" ? this._commitment = t : t && (this._commitment = t.commitment, this._confirmTransactionInitialTimeout = t.confirmTransactionInitialTimeout, r = t.wsEndpoint, s = t.httpHeaders, i = t.fetch, o = t.fetchMiddleware, a = t.disableRetryOnRateLimit, l = t.httpAgent), this._rpcEndpoint = J8(e), this._rpcWsEndpoint = r || Z8(e), this._rpcClient = h3(e, s, i, o, a, l), this._rpcRequest = m3(this._rpcClient), this._rpcBatchRequest = b3(this._rpcClient), this._rpcWebSocket = new V8(this._rpcWsEndpoint, {
|
|
25043
25047
|
autoconnect: !1,
|
|
25044
25048
|
max_reconnects: 1 / 0
|
|
25045
25049
|
}), this._rpcWebSocket.on("open", this._wsOnOpen.bind(this)), this._rpcWebSocket.on("error", this._wsOnError.bind(this)), this._rpcWebSocket.on("close", this._wsOnClose.bind(this)), this._rpcWebSocket.on("accountNotification", this._wsOnAccountNotification.bind(this)), this._rpcWebSocket.on("programNotification", this._wsOnProgramAccountNotification.bind(this)), this._rpcWebSocket.on("slotNotification", this._wsOnSlotNotification.bind(this)), this._rpcWebSocket.on("slotsUpdatesNotification", this._wsOnSlotUpdatesNotification.bind(this)), this._rpcWebSocket.on("signatureNotification", this._wsOnSignatureNotification.bind(this)), this._rpcWebSocket.on("rootNotification", this._wsOnRootNotification.bind(this)), this._rpcWebSocket.on("logsNotification", this._wsOnLogsNotification.bind(this));
|
|
@@ -25063,7 +25067,7 @@ class m4 {
|
|
|
25063
25067
|
const {
|
|
25064
25068
|
commitment: r,
|
|
25065
25069
|
config: s
|
|
25066
|
-
} = Ke(t), i = this._buildArgs([e.toBase58()], r, void 0, s), o = await this._rpcRequest("getBalance", i), a =
|
|
25070
|
+
} = Ke(t), i = this._buildArgs([e.toBase58()], r, void 0, s), o = await this._rpcRequest("getBalance", i), a = J(o, st(L()));
|
|
25067
25071
|
if ("error" in a)
|
|
25068
25072
|
throw new oe(a.error, `failed to get balance for ${e.toBase58()}`);
|
|
25069
25073
|
return a.result;
|
|
@@ -25080,7 +25084,7 @@ class m4 {
|
|
|
25080
25084
|
* Fetch the estimated production time of a block
|
|
25081
25085
|
*/
|
|
25082
25086
|
async getBlockTime(e) {
|
|
25083
|
-
const t = await this._rpcRequest("getBlockTime", [e]), r =
|
|
25087
|
+
const t = await this._rpcRequest("getBlockTime", [e]), r = J(t, we(te(L())));
|
|
25084
25088
|
if ("error" in r)
|
|
25085
25089
|
throw new oe(r.error, `failed to get block time for slot ${e}`);
|
|
25086
25090
|
return r.result;
|
|
@@ -25090,7 +25094,7 @@ class m4 {
|
|
|
25090
25094
|
* This value may increase over time if the node is configured to purge older ledger data
|
|
25091
25095
|
*/
|
|
25092
25096
|
async getMinimumLedgerSlot() {
|
|
25093
|
-
const e = await this._rpcRequest("minimumLedgerSlot", []), t =
|
|
25097
|
+
const e = await this._rpcRequest("minimumLedgerSlot", []), t = J(e, we(L()));
|
|
25094
25098
|
if ("error" in t)
|
|
25095
25099
|
throw new oe(t.error, "failed to get minimum ledger slot");
|
|
25096
25100
|
return t.result;
|
|
@@ -25099,7 +25103,7 @@ class m4 {
|
|
|
25099
25103
|
* Fetch the slot of the lowest confirmed block that has not been purged from the ledger
|
|
25100
25104
|
*/
|
|
25101
25105
|
async getFirstAvailableBlock() {
|
|
25102
|
-
const e = await this._rpcRequest("getFirstAvailableBlock", []), t =
|
|
25106
|
+
const e = await this._rpcRequest("getFirstAvailableBlock", []), t = J(e, B3);
|
|
25103
25107
|
if ("error" in t)
|
|
25104
25108
|
throw new oe(t.error, "failed to get first available block");
|
|
25105
25109
|
return t.result;
|
|
@@ -25117,7 +25121,7 @@ class m4 {
|
|
|
25117
25121
|
} : t = {
|
|
25118
25122
|
commitment: this.commitment
|
|
25119
25123
|
};
|
|
25120
|
-
const r = await this._rpcRequest("getSupply", [t]), s =
|
|
25124
|
+
const r = await this._rpcRequest("getSupply", [t]), s = J(r, x3);
|
|
25121
25125
|
if ("error" in s)
|
|
25122
25126
|
throw new oe(s.error, "failed to get supply");
|
|
25123
25127
|
return s.result;
|
|
@@ -25126,7 +25130,7 @@ class m4 {
|
|
|
25126
25130
|
* Fetch the current supply of a token mint
|
|
25127
25131
|
*/
|
|
25128
25132
|
async getTokenSupply(e, t) {
|
|
25129
|
-
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenSupply", r), i =
|
|
25133
|
+
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenSupply", r), i = J(s, st(ac));
|
|
25130
25134
|
if ("error" in i)
|
|
25131
25135
|
throw new oe(i.error, "failed to get token supply");
|
|
25132
25136
|
return i.result;
|
|
@@ -25135,7 +25139,7 @@ class m4 {
|
|
|
25135
25139
|
* Fetch the current balance of a token account
|
|
25136
25140
|
*/
|
|
25137
25141
|
async getTokenAccountBalance(e, t) {
|
|
25138
|
-
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenAccountBalance", r), i =
|
|
25142
|
+
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenAccountBalance", r), i = J(s, st(ac));
|
|
25139
25143
|
if ("error" in i)
|
|
25140
25144
|
throw new oe(i.error, "failed to get token account balance");
|
|
25141
25145
|
return i.result;
|
|
@@ -25156,7 +25160,7 @@ class m4 {
|
|
|
25156
25160
|
}) : o.push({
|
|
25157
25161
|
programId: t.programId.toBase58()
|
|
25158
25162
|
});
|
|
25159
|
-
const a = this._buildArgs(o, s, "base64", i), l = await this._rpcRequest("getTokenAccountsByOwner", a), h =
|
|
25163
|
+
const a = this._buildArgs(o, s, "base64", i), l = await this._rpcRequest("getTokenAccountsByOwner", a), h = J(l, S3);
|
|
25160
25164
|
if ("error" in h)
|
|
25161
25165
|
throw new oe(h.error, `failed to get token accounts owned by account ${e.toBase58()}`);
|
|
25162
25166
|
return h.result;
|
|
@@ -25173,7 +25177,7 @@ class m4 {
|
|
|
25173
25177
|
}) : s.push({
|
|
25174
25178
|
programId: t.programId.toBase58()
|
|
25175
25179
|
});
|
|
25176
|
-
const i = this._buildArgs(s, r, "jsonParsed"), o = await this._rpcRequest("getTokenAccountsByOwner", i), a =
|
|
25180
|
+
const i = this._buildArgs(s, r, "jsonParsed"), o = await this._rpcRequest("getTokenAccountsByOwner", i), a = J(o, D3);
|
|
25177
25181
|
if ("error" in a)
|
|
25178
25182
|
throw new oe(a.error, `failed to get token accounts owned by account ${e.toBase58()}`);
|
|
25179
25183
|
return a.result;
|
|
@@ -25185,7 +25189,7 @@ class m4 {
|
|
|
25185
25189
|
const t = {
|
|
25186
25190
|
...e,
|
|
25187
25191
|
commitment: e && e.commitment || this.commitment
|
|
25188
|
-
}, r = t.filter || t.commitment ? [t] : [], s = await this._rpcRequest("getLargestAccounts", r), i =
|
|
25192
|
+
}, r = t.filter || t.commitment ? [t] : [], s = await this._rpcRequest("getLargestAccounts", r), i = J(s, v3);
|
|
25189
25193
|
if ("error" in i)
|
|
25190
25194
|
throw new oe(i.error, "failed to get largest accounts");
|
|
25191
25195
|
return i.result;
|
|
@@ -25195,7 +25199,7 @@ class m4 {
|
|
|
25195
25199
|
* for a given mint.
|
|
25196
25200
|
*/
|
|
25197
25201
|
async getTokenLargestAccounts(e, t) {
|
|
25198
|
-
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenLargestAccounts", r), i =
|
|
25202
|
+
const r = this._buildArgs([e.toBase58()], t), s = await this._rpcRequest("getTokenLargestAccounts", r), i = J(s, C3);
|
|
25199
25203
|
if ("error" in i)
|
|
25200
25204
|
throw new oe(i.error, "failed to get token largest accounts");
|
|
25201
25205
|
return i.result;
|
|
@@ -25207,7 +25211,7 @@ class m4 {
|
|
|
25207
25211
|
const {
|
|
25208
25212
|
commitment: r,
|
|
25209
25213
|
config: s
|
|
25210
|
-
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "base64", s), o = await this._rpcRequest("getAccountInfo", i), a =
|
|
25214
|
+
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "base64", s), o = await this._rpcRequest("getAccountInfo", i), a = J(o, st(te(Ws)));
|
|
25211
25215
|
if ("error" in a)
|
|
25212
25216
|
throw new oe(a.error, `failed to get info about account ${e.toBase58()}`);
|
|
25213
25217
|
return a.result;
|
|
@@ -25219,7 +25223,7 @@ class m4 {
|
|
|
25219
25223
|
const {
|
|
25220
25224
|
commitment: r,
|
|
25221
25225
|
config: s
|
|
25222
|
-
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getAccountInfo", i), a =
|
|
25226
|
+
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getAccountInfo", i), a = J(o, st(te(lc)));
|
|
25223
25227
|
if ("error" in a)
|
|
25224
25228
|
throw new oe(a.error, `failed to get info about account ${e.toBase58()}`);
|
|
25225
25229
|
return a.result;
|
|
@@ -25241,7 +25245,7 @@ class m4 {
|
|
|
25241
25245
|
const {
|
|
25242
25246
|
commitment: r,
|
|
25243
25247
|
config: s
|
|
25244
|
-
} = Ke(t), i = e.map((h) => h.toBase58()), o = this._buildArgs([i], r, "jsonParsed", s), a = await this._rpcRequest("getMultipleAccounts", o), l =
|
|
25248
|
+
} = Ke(t), i = e.map((h) => h.toBase58()), o = this._buildArgs([i], r, "jsonParsed", s), a = await this._rpcRequest("getMultipleAccounts", o), l = J(a, st(Q(te(lc))));
|
|
25245
25249
|
if ("error" in l)
|
|
25246
25250
|
throw new oe(l.error, `failed to get info for accounts ${i}`);
|
|
25247
25251
|
return l.result;
|
|
@@ -25253,7 +25257,7 @@ class m4 {
|
|
|
25253
25257
|
const {
|
|
25254
25258
|
commitment: r,
|
|
25255
25259
|
config: s
|
|
25256
|
-
} = Ke(t), i = e.map((h) => h.toBase58()), o = this._buildArgs([i], r, "base64", s), a = await this._rpcRequest("getMultipleAccounts", o), l =
|
|
25260
|
+
} = Ke(t), i = e.map((h) => h.toBase58()), o = this._buildArgs([i], r, "base64", s), a = await this._rpcRequest("getMultipleAccounts", o), l = J(a, st(Q(te(Ws))));
|
|
25257
25261
|
if ("error" in l)
|
|
25258
25262
|
throw new oe(l.error, `failed to get info for accounts ${i}`);
|
|
25259
25263
|
return l.result;
|
|
@@ -25276,7 +25280,7 @@ class m4 {
|
|
|
25276
25280
|
} = Ke(t), o = this._buildArgs([e.toBase58()], s, void 0, {
|
|
25277
25281
|
...i,
|
|
25278
25282
|
epoch: r ?? (i == null ? void 0 : i.epoch)
|
|
25279
|
-
}), a = await this._rpcRequest("getStakeActivation", o), l =
|
|
25283
|
+
}), a = await this._rpcRequest("getStakeActivation", o), l = J(a, we(I3));
|
|
25280
25284
|
if ("error" in l)
|
|
25281
25285
|
throw new oe(l.error, `failed to get Stake Activation ${e.toBase58()}`);
|
|
25282
25286
|
return l.result;
|
|
@@ -25300,7 +25304,7 @@ class m4 {
|
|
|
25300
25304
|
...o.filters ? {
|
|
25301
25305
|
filters: Vd(o.filters)
|
|
25302
25306
|
} : null
|
|
25303
|
-
}), l = await this._rpcRequest("getProgramAccounts", a), h = Q(k3), m = o.withContext === !0 ?
|
|
25307
|
+
}), l = await this._rpcRequest("getProgramAccounts", a), h = Q(k3), m = o.withContext === !0 ? J(l, st(h)) : J(l, we(h));
|
|
25304
25308
|
if ("error" in m)
|
|
25305
25309
|
throw new oe(m.error, `failed to get accounts owned by program ${e.toBase58()}`);
|
|
25306
25310
|
return m.result;
|
|
@@ -25314,7 +25318,7 @@ class m4 {
|
|
|
25314
25318
|
const {
|
|
25315
25319
|
commitment: r,
|
|
25316
25320
|
config: s
|
|
25317
|
-
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getProgramAccounts", i), a =
|
|
25321
|
+
} = Ke(t), i = this._buildArgs([e.toBase58()], r, "jsonParsed", s), o = await this._rpcRequest("getProgramAccounts", i), a = J(o, we(Q(T3)));
|
|
25318
25322
|
if ("error" in a)
|
|
25319
25323
|
throw new oe(a.error, `failed to get accounts owned by program ${e.toBase58()}`);
|
|
25320
25324
|
return a.result;
|
|
@@ -25624,7 +25628,7 @@ class m4 {
|
|
|
25624
25628
|
* Return the list of nodes that are currently participating in the cluster
|
|
25625
25629
|
*/
|
|
25626
25630
|
async getClusterNodes() {
|
|
25627
|
-
const e = await this._rpcRequest("getClusterNodes", []), t =
|
|
25631
|
+
const e = await this._rpcRequest("getClusterNodes", []), t = J(e, we(Q(q3)));
|
|
25628
25632
|
if ("error" in t)
|
|
25629
25633
|
throw new oe(t.error, "failed to get cluster nodes");
|
|
25630
25634
|
return t.result;
|
|
@@ -25633,7 +25637,7 @@ class m4 {
|
|
|
25633
25637
|
* Return the list of nodes that are currently participating in the cluster
|
|
25634
25638
|
*/
|
|
25635
25639
|
async getVoteAccounts(e) {
|
|
25636
|
-
const t = this._buildArgs([], e), r = await this._rpcRequest("getVoteAccounts", t), s =
|
|
25640
|
+
const t = this._buildArgs([], e), r = await this._rpcRequest("getVoteAccounts", t), s = J(r, K3);
|
|
25637
25641
|
if ("error" in s)
|
|
25638
25642
|
throw new oe(s.error, "failed to get vote accounts");
|
|
25639
25643
|
return s.result;
|
|
@@ -25645,7 +25649,7 @@ class m4 {
|
|
|
25645
25649
|
const {
|
|
25646
25650
|
commitment: t,
|
|
25647
25651
|
config: r
|
|
25648
|
-
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlot", s), o =
|
|
25652
|
+
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlot", s), o = J(i, we(L()));
|
|
25649
25653
|
if ("error" in o)
|
|
25650
25654
|
throw new oe(o.error, "failed to get slot");
|
|
25651
25655
|
return o.result;
|
|
@@ -25657,7 +25661,7 @@ class m4 {
|
|
|
25657
25661
|
const {
|
|
25658
25662
|
commitment: t,
|
|
25659
25663
|
config: r
|
|
25660
|
-
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlotLeader", s), o =
|
|
25664
|
+
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getSlotLeader", s), o = J(i, we(X()));
|
|
25661
25665
|
if ("error" in o)
|
|
25662
25666
|
throw new oe(o.error, "failed to get slot leader");
|
|
25663
25667
|
return o.result;
|
|
@@ -25669,7 +25673,7 @@ class m4 {
|
|
|
25669
25673
|
* @param limit number of slot leaders to return
|
|
25670
25674
|
*/
|
|
25671
25675
|
async getSlotLeaders(e, t) {
|
|
25672
|
-
const r = [e, t], s = await this._rpcRequest("getSlotLeaders", r), i =
|
|
25676
|
+
const r = [e, t], s = await this._rpcRequest("getSlotLeaders", r), i = J(s, we(Q(tt)));
|
|
25673
25677
|
if ("error" in i)
|
|
25674
25678
|
throw new oe(i.error, "failed to get slot leaders");
|
|
25675
25679
|
return i.result;
|
|
@@ -25695,7 +25699,7 @@ class m4 {
|
|
|
25695
25699
|
async getSignatureStatuses(e, t) {
|
|
25696
25700
|
const r = [e];
|
|
25697
25701
|
t && r.push(t);
|
|
25698
|
-
const s = await this._rpcRequest("getSignatureStatuses", r), i =
|
|
25702
|
+
const s = await this._rpcRequest("getSignatureStatuses", r), i = J(s, V3);
|
|
25699
25703
|
if ("error" in i)
|
|
25700
25704
|
throw new oe(i.error, "failed to get signature status");
|
|
25701
25705
|
return i.result;
|
|
@@ -25707,7 +25711,7 @@ class m4 {
|
|
|
25707
25711
|
const {
|
|
25708
25712
|
commitment: t,
|
|
25709
25713
|
config: r
|
|
25710
|
-
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getTransactionCount", s), o =
|
|
25714
|
+
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getTransactionCount", s), o = J(i, we(L()));
|
|
25711
25715
|
if ("error" in o)
|
|
25712
25716
|
throw new oe(o.error, "failed to get transaction count");
|
|
25713
25717
|
return o.result;
|
|
@@ -25727,7 +25731,7 @@ class m4 {
|
|
|
25727
25731
|
* Fetch the cluster InflationGovernor parameters
|
|
25728
25732
|
*/
|
|
25729
25733
|
async getInflationGovernor(e) {
|
|
25730
|
-
const t = this._buildArgs([], e), r = await this._rpcRequest("getInflationGovernor", t), s =
|
|
25734
|
+
const t = this._buildArgs([], e), r = await this._rpcRequest("getInflationGovernor", t), s = J(r, p3);
|
|
25731
25735
|
if ("error" in s)
|
|
25732
25736
|
throw new oe(s.error, "failed to get inflation");
|
|
25733
25737
|
return s.result;
|
|
@@ -25742,7 +25746,7 @@ class m4 {
|
|
|
25742
25746
|
} = Ke(r), o = this._buildArgs([e.map((h) => h.toBase58())], s, void 0, {
|
|
25743
25747
|
...i,
|
|
25744
25748
|
epoch: t ?? (i == null ? void 0 : i.epoch)
|
|
25745
|
-
}), a = await this._rpcRequest("getInflationReward", o), l =
|
|
25749
|
+
}), a = await this._rpcRequest("getInflationReward", o), l = J(a, t3);
|
|
25746
25750
|
if ("error" in l)
|
|
25747
25751
|
throw new oe(l.error, "failed to get inflation reward");
|
|
25748
25752
|
return l.result;
|
|
@@ -25751,7 +25755,7 @@ class m4 {
|
|
|
25751
25755
|
* Fetch the specific inflation values for the current epoch
|
|
25752
25756
|
*/
|
|
25753
25757
|
async getInflationRate() {
|
|
25754
|
-
const e = await this._rpcRequest("getInflationRate", []), t =
|
|
25758
|
+
const e = await this._rpcRequest("getInflationRate", []), t = J(e, g3);
|
|
25755
25759
|
if ("error" in t)
|
|
25756
25760
|
throw new oe(t.error, "failed to get inflation rate");
|
|
25757
25761
|
return t.result;
|
|
@@ -25763,7 +25767,7 @@ class m4 {
|
|
|
25763
25767
|
const {
|
|
25764
25768
|
commitment: t,
|
|
25765
25769
|
config: r
|
|
25766
|
-
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getEpochInfo", s), o =
|
|
25770
|
+
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getEpochInfo", s), o = J(i, w3);
|
|
25767
25771
|
if ("error" in o)
|
|
25768
25772
|
throw new oe(o.error, "failed to get epoch info");
|
|
25769
25773
|
return o.result;
|
|
@@ -25772,7 +25776,7 @@ class m4 {
|
|
|
25772
25776
|
* Fetch the Epoch Schedule parameters
|
|
25773
25777
|
*/
|
|
25774
25778
|
async getEpochSchedule() {
|
|
25775
|
-
const e = await this._rpcRequest("getEpochSchedule", []), t =
|
|
25779
|
+
const e = await this._rpcRequest("getEpochSchedule", []), t = J(e, A3);
|
|
25776
25780
|
if ("error" in t)
|
|
25777
25781
|
throw new oe(t.error, "failed to get epoch schedule");
|
|
25778
25782
|
const r = t.result;
|
|
@@ -25783,7 +25787,7 @@ class m4 {
|
|
|
25783
25787
|
* @return {Promise<RpcResponseAndContext<LeaderSchedule>>}
|
|
25784
25788
|
*/
|
|
25785
25789
|
async getLeaderSchedule() {
|
|
25786
|
-
const e = await this._rpcRequest("getLeaderSchedule", []), t =
|
|
25790
|
+
const e = await this._rpcRequest("getLeaderSchedule", []), t = J(e, E3);
|
|
25787
25791
|
if ("error" in t)
|
|
25788
25792
|
throw new oe(t.error, "failed to get leader schedule");
|
|
25789
25793
|
return t.result;
|
|
@@ -25793,7 +25797,7 @@ class m4 {
|
|
|
25793
25797
|
* size from rent
|
|
25794
25798
|
*/
|
|
25795
25799
|
async getMinimumBalanceForRentExemption(e, t) {
|
|
25796
|
-
const r = this._buildArgs([e], t), s = await this._rpcRequest("getMinimumBalanceForRentExemption", r), i =
|
|
25800
|
+
const r = this._buildArgs([e], t), s = await this._rpcRequest("getMinimumBalanceForRentExemption", r), i = J(s, G3);
|
|
25797
25801
|
return "error" in i ? (console.warn("Unable to fetch minimum balance for rent exemption"), 0) : i.result;
|
|
25798
25802
|
}
|
|
25799
25803
|
/**
|
|
@@ -25829,7 +25833,7 @@ class m4 {
|
|
|
25829
25833
|
* @return {Promise<Array<PerfSample>>}
|
|
25830
25834
|
*/
|
|
25831
25835
|
async getRecentPerformanceSamples(e) {
|
|
25832
|
-
const t = await this._rpcRequest("getRecentPerformanceSamples", e ? [e] : []), r =
|
|
25836
|
+
const t = await this._rpcRequest("getRecentPerformanceSamples", e ? [e] : []), r = J(t, a4);
|
|
25833
25837
|
if ("error" in r)
|
|
25834
25838
|
throw new oe(r.error, "failed to get recent performance samples");
|
|
25835
25839
|
return r.result;
|
|
@@ -25840,7 +25844,7 @@ class m4 {
|
|
|
25840
25844
|
* @deprecated Deprecated since RPC v1.9.0. Please use {@link getFeeForMessage} instead.
|
|
25841
25845
|
*/
|
|
25842
25846
|
async getFeeCalculatorForBlockhash(e, t) {
|
|
25843
|
-
const r = this._buildArgs([e], t), s = await this._rpcRequest("getFeeCalculatorForBlockhash", r), i =
|
|
25847
|
+
const r = this._buildArgs([e], t), s = await this._rpcRequest("getFeeCalculatorForBlockhash", r), i = J(s, c4);
|
|
25844
25848
|
if ("error" in i)
|
|
25845
25849
|
throw new oe(i.error, "failed to get fee calculator");
|
|
25846
25850
|
const {
|
|
@@ -25856,7 +25860,7 @@ class m4 {
|
|
|
25856
25860
|
* Fetch the fee for a message from the cluster, return with context
|
|
25857
25861
|
*/
|
|
25858
25862
|
async getFeeForMessage(e, t) {
|
|
25859
|
-
const r = Ae(e.serialize()).toString("base64"), s = this._buildArgs([r], t), i = await this._rpcRequest("getFeeForMessage", s), o =
|
|
25863
|
+
const r = Ae(e.serialize()).toString("base64"), s = this._buildArgs([r], t), i = await this._rpcRequest("getFeeForMessage", s), o = J(i, st(te(L())));
|
|
25860
25864
|
if ("error" in o)
|
|
25861
25865
|
throw new oe(o.error, "failed to get fee for message");
|
|
25862
25866
|
if (o.result === null)
|
|
@@ -25868,7 +25872,7 @@ class m4 {
|
|
|
25868
25872
|
*/
|
|
25869
25873
|
async getRecentPrioritizationFees(e) {
|
|
25870
25874
|
var o;
|
|
25871
|
-
const t = (o = e == null ? void 0 : e.lockedWritableAccounts) == null ? void 0 : o.map((a) => a.toBase58()), r = t != null && t.length ? [t] : [], s = await this._rpcRequest("getRecentPrioritizationFees", r), i =
|
|
25875
|
+
const t = (o = e == null ? void 0 : e.lockedWritableAccounts) == null ? void 0 : o.map((a) => a.toBase58()), r = t != null && t.length ? [t] : [], s = await this._rpcRequest("getRecentPrioritizationFees", r), i = J(s, y3);
|
|
25872
25876
|
if ("error" in i)
|
|
25873
25877
|
throw new oe(i.error, "failed to get recent prioritization fees");
|
|
25874
25878
|
return i.result;
|
|
@@ -25905,7 +25909,7 @@ class m4 {
|
|
|
25905
25909
|
const {
|
|
25906
25910
|
commitment: t,
|
|
25907
25911
|
config: r
|
|
25908
|
-
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getLatestBlockhash", s), o =
|
|
25912
|
+
} = Ke(e), s = this._buildArgs([], t, void 0, r), i = await this._rpcRequest("getLatestBlockhash", s), o = J(i, s4);
|
|
25909
25913
|
if ("error" in o)
|
|
25910
25914
|
throw new oe(o.error, "failed to get latest blockhash");
|
|
25911
25915
|
return o.result;
|
|
@@ -25917,7 +25921,7 @@ class m4 {
|
|
|
25917
25921
|
const {
|
|
25918
25922
|
commitment: r,
|
|
25919
25923
|
config: s
|
|
25920
|
-
} = Ke(t), i = this._buildArgs([e], r, void 0, s), o = await this._rpcRequest("isBlockhashValid", i), a =
|
|
25924
|
+
} = Ke(t), i = this._buildArgs([e], r, void 0, s), o = await this._rpcRequest("isBlockhashValid", i), a = J(o, i4);
|
|
25921
25925
|
if ("error" in a)
|
|
25922
25926
|
throw new oe(a.error, "failed to determine if the blockhash `" + e + "`is valid");
|
|
25923
25927
|
return a.result;
|
|
@@ -25926,7 +25930,7 @@ class m4 {
|
|
|
25926
25930
|
* Fetch the node version
|
|
25927
25931
|
*/
|
|
25928
25932
|
async getVersion() {
|
|
25929
|
-
const e = await this._rpcRequest("getVersion", []), t =
|
|
25933
|
+
const e = await this._rpcRequest("getVersion", []), t = J(e, we(l3));
|
|
25930
25934
|
if ("error" in t)
|
|
25931
25935
|
throw new oe(t.error, "failed to get version");
|
|
25932
25936
|
return t.result;
|
|
@@ -25935,7 +25939,7 @@ class m4 {
|
|
|
25935
25939
|
* Fetch the genesis hash
|
|
25936
25940
|
*/
|
|
25937
25941
|
async getGenesisHash() {
|
|
25938
|
-
const e = await this._rpcRequest("getGenesisHash", []), t =
|
|
25942
|
+
const e = await this._rpcRequest("getGenesisHash", []), t = J(e, we(X()));
|
|
25939
25943
|
if ("error" in t)
|
|
25940
25944
|
throw new oe(t.error, "failed to get genesis hash");
|
|
25941
25945
|
return t.result;
|
|
@@ -25974,19 +25978,19 @@ class m4 {
|
|
|
25974
25978
|
try {
|
|
25975
25979
|
switch (s == null ? void 0 : s.transactionDetails) {
|
|
25976
25980
|
case "accounts": {
|
|
25977
|
-
const a =
|
|
25981
|
+
const a = J(o, Q3);
|
|
25978
25982
|
if ("error" in a)
|
|
25979
25983
|
throw a.error;
|
|
25980
25984
|
return a.result;
|
|
25981
25985
|
}
|
|
25982
25986
|
case "none": {
|
|
25983
|
-
const a =
|
|
25987
|
+
const a = J(o, J3);
|
|
25984
25988
|
if ("error" in a)
|
|
25985
25989
|
throw a.error;
|
|
25986
25990
|
return a.result;
|
|
25987
25991
|
}
|
|
25988
25992
|
default: {
|
|
25989
|
-
const a =
|
|
25993
|
+
const a = J(o, Z3);
|
|
25990
25994
|
if ("error" in a)
|
|
25991
25995
|
throw a.error;
|
|
25992
25996
|
const {
|
|
@@ -26027,19 +26031,19 @@ class m4 {
|
|
|
26027
26031
|
try {
|
|
26028
26032
|
switch (s == null ? void 0 : s.transactionDetails) {
|
|
26029
26033
|
case "accounts": {
|
|
26030
|
-
const a =
|
|
26034
|
+
const a = J(o, t4);
|
|
26031
26035
|
if ("error" in a)
|
|
26032
26036
|
throw a.error;
|
|
26033
26037
|
return a.result;
|
|
26034
26038
|
}
|
|
26035
26039
|
case "none": {
|
|
26036
|
-
const a =
|
|
26040
|
+
const a = J(o, n4);
|
|
26037
26041
|
if ("error" in a)
|
|
26038
26042
|
throw a.error;
|
|
26039
26043
|
return a.result;
|
|
26040
26044
|
}
|
|
26041
26045
|
default: {
|
|
26042
|
-
const a =
|
|
26046
|
+
const a = J(o, e4);
|
|
26043
26047
|
if ("error" in a)
|
|
26044
26048
|
throw a.error;
|
|
26045
26049
|
return a.result;
|
|
@@ -26063,7 +26067,7 @@ class m4 {
|
|
|
26063
26067
|
} = e;
|
|
26064
26068
|
r = a, t = l;
|
|
26065
26069
|
}
|
|
26066
|
-
const s = this._buildArgs([], r, "base64", t), i = await this._rpcRequest("getBlockProduction", s), o =
|
|
26070
|
+
const s = this._buildArgs([], r, "base64", t), i = await this._rpcRequest("getBlockProduction", s), o = J(i, f3);
|
|
26067
26071
|
if ("error" in o)
|
|
26068
26072
|
throw new oe(o.error, "failed to get block production information");
|
|
26069
26073
|
return o.result;
|
|
@@ -26087,7 +26091,7 @@ class m4 {
|
|
|
26087
26091
|
const {
|
|
26088
26092
|
commitment: r,
|
|
26089
26093
|
config: s
|
|
26090
|
-
} = Ke(t), i = this._buildArgsAtLeastConfirmed([e], r, void 0, s), o = await this._rpcRequest("getTransaction", i), a =
|
|
26094
|
+
} = Ke(t), i = this._buildArgsAtLeastConfirmed([e], r, void 0, s), o = await this._rpcRequest("getTransaction", i), a = J(o, Aa);
|
|
26091
26095
|
if ("error" in a)
|
|
26092
26096
|
throw new oe(a.error, "failed to get transaction");
|
|
26093
26097
|
const l = a.result;
|
|
@@ -26106,7 +26110,7 @@ class m4 {
|
|
|
26106
26110
|
const {
|
|
26107
26111
|
commitment: r,
|
|
26108
26112
|
config: s
|
|
26109
|
-
} = Ke(t), i = this._buildArgsAtLeastConfirmed([e], r, "jsonParsed", s), o = await this._rpcRequest("getTransaction", i), a =
|
|
26113
|
+
} = Ke(t), i = this._buildArgsAtLeastConfirmed([e], r, "jsonParsed", s), o = await this._rpcRequest("getTransaction", i), a = J(o, ii);
|
|
26110
26114
|
if ("error" in a)
|
|
26111
26115
|
throw new oe(a.error, "failed to get transaction");
|
|
26112
26116
|
return a.result;
|
|
@@ -26123,7 +26127,7 @@ class m4 {
|
|
|
26123
26127
|
args: this._buildArgsAtLeastConfirmed([l], r, "jsonParsed", s)
|
|
26124
26128
|
}));
|
|
26125
26129
|
return (await this._rpcBatchRequest(i)).map((l) => {
|
|
26126
|
-
const h =
|
|
26130
|
+
const h = J(l, ii);
|
|
26127
26131
|
if ("error" in h)
|
|
26128
26132
|
throw new oe(h.error, "failed to get transactions");
|
|
26129
26133
|
return h.result;
|
|
@@ -26158,7 +26162,7 @@ class m4 {
|
|
|
26158
26162
|
args: this._buildArgsAtLeastConfirmed([l], r, void 0, s)
|
|
26159
26163
|
}));
|
|
26160
26164
|
return (await this._rpcBatchRequest(i)).map((l) => {
|
|
26161
|
-
const h =
|
|
26165
|
+
const h = J(l, Aa);
|
|
26162
26166
|
if ("error" in h)
|
|
26163
26167
|
throw new oe(h.error, "failed to get transactions");
|
|
26164
26168
|
const m = h.result;
|
|
@@ -26178,7 +26182,7 @@ class m4 {
|
|
|
26178
26182
|
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlock} instead.
|
|
26179
26183
|
*/
|
|
26180
26184
|
async getConfirmedBlock(e, t) {
|
|
26181
|
-
const r = this._buildArgsAtLeastConfirmed([e], t), s = await this._rpcRequest("getBlock", r), i =
|
|
26185
|
+
const r = this._buildArgsAtLeastConfirmed([e], t), s = await this._rpcRequest("getBlock", r), i = J(s, r4);
|
|
26182
26186
|
if ("error" in i)
|
|
26183
26187
|
throw new oe(i.error, "failed to get confirmed block");
|
|
26184
26188
|
const o = i.result;
|
|
@@ -26215,7 +26219,7 @@ class m4 {
|
|
|
26215
26219
|
* Fetch confirmed blocks between two slots
|
|
26216
26220
|
*/
|
|
26217
26221
|
async getBlocks(e, t, r) {
|
|
26218
|
-
const s = this._buildArgsAtLeastConfirmed(t !== void 0 ? [e, t] : [e], r), i = await this._rpcRequest("getBlocks", s), o =
|
|
26222
|
+
const s = this._buildArgsAtLeastConfirmed(t !== void 0 ? [e, t] : [e], r), i = await this._rpcRequest("getBlocks", s), o = J(i, we(Q(L())));
|
|
26219
26223
|
if ("error" in o)
|
|
26220
26224
|
throw new oe(o.error, "failed to get blocks");
|
|
26221
26225
|
return o.result;
|
|
@@ -26227,7 +26231,7 @@ class m4 {
|
|
|
26227
26231
|
const r = this._buildArgsAtLeastConfirmed([e], t, void 0, {
|
|
26228
26232
|
transactionDetails: "signatures",
|
|
26229
26233
|
rewards: !1
|
|
26230
|
-
}), s = await this._rpcRequest("getBlock", r), i =
|
|
26234
|
+
}), s = await this._rpcRequest("getBlock", r), i = J(s, Yd);
|
|
26231
26235
|
if ("error" in i)
|
|
26232
26236
|
throw new oe(i.error, "failed to get block");
|
|
26233
26237
|
const o = i.result;
|
|
@@ -26244,7 +26248,7 @@ class m4 {
|
|
|
26244
26248
|
const r = this._buildArgsAtLeastConfirmed([e], t, void 0, {
|
|
26245
26249
|
transactionDetails: "signatures",
|
|
26246
26250
|
rewards: !1
|
|
26247
|
-
}), s = await this._rpcRequest("getBlock", r), i =
|
|
26251
|
+
}), s = await this._rpcRequest("getBlock", r), i = J(s, Yd);
|
|
26248
26252
|
if ("error" in i)
|
|
26249
26253
|
throw new oe(i.error, "failed to get confirmed block");
|
|
26250
26254
|
const o = i.result;
|
|
@@ -26258,7 +26262,7 @@ class m4 {
|
|
|
26258
26262
|
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getTransaction} instead.
|
|
26259
26263
|
*/
|
|
26260
26264
|
async getConfirmedTransaction(e, t) {
|
|
26261
|
-
const r = this._buildArgsAtLeastConfirmed([e], t), s = await this._rpcRequest("getTransaction", r), i =
|
|
26265
|
+
const r = this._buildArgsAtLeastConfirmed([e], t), s = await this._rpcRequest("getTransaction", r), i = J(s, Aa);
|
|
26262
26266
|
if ("error" in i)
|
|
26263
26267
|
throw new oe(i.error, "failed to get transaction");
|
|
26264
26268
|
const o = i.result;
|
|
@@ -26275,7 +26279,7 @@ class m4 {
|
|
|
26275
26279
|
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransaction} instead.
|
|
26276
26280
|
*/
|
|
26277
26281
|
async getParsedConfirmedTransaction(e, t) {
|
|
26278
|
-
const r = this._buildArgsAtLeastConfirmed([e], t, "jsonParsed"), s = await this._rpcRequest("getTransaction", r), i =
|
|
26282
|
+
const r = this._buildArgsAtLeastConfirmed([e], t, "jsonParsed"), s = await this._rpcRequest("getTransaction", r), i = J(s, ii);
|
|
26279
26283
|
if ("error" in i)
|
|
26280
26284
|
throw new oe(i.error, "failed to get confirmed transaction");
|
|
26281
26285
|
return i.result;
|
|
@@ -26291,7 +26295,7 @@ class m4 {
|
|
|
26291
26295
|
args: this._buildArgsAtLeastConfirmed([o], t, "jsonParsed")
|
|
26292
26296
|
}));
|
|
26293
26297
|
return (await this._rpcBatchRequest(r)).map((o) => {
|
|
26294
|
-
const a =
|
|
26298
|
+
const a = J(o, ii);
|
|
26295
26299
|
if ("error" in a)
|
|
26296
26300
|
throw new oe(a.error, "failed to get confirmed transactions");
|
|
26297
26301
|
return a.result;
|
|
@@ -26337,7 +26341,7 @@ class m4 {
|
|
|
26337
26341
|
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
|
|
26338
26342
|
*/
|
|
26339
26343
|
async getConfirmedSignaturesForAddress2(e, t, r) {
|
|
26340
|
-
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getConfirmedSignaturesForAddress2", s), o =
|
|
26344
|
+
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getConfirmedSignaturesForAddress2", s), o = J(i, U3);
|
|
26341
26345
|
if ("error" in o)
|
|
26342
26346
|
throw new oe(o.error, "failed to get confirmed signatures for address");
|
|
26343
26347
|
return o.result;
|
|
@@ -26351,7 +26355,7 @@ class m4 {
|
|
|
26351
26355
|
* @param options
|
|
26352
26356
|
*/
|
|
26353
26357
|
async getSignaturesForAddress(e, t, r) {
|
|
26354
|
-
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getSignaturesForAddress", s), o =
|
|
26358
|
+
const s = this._buildArgsAtLeastConfirmed([e.toBase58()], r, void 0, t), i = await this._rpcRequest("getSignaturesForAddress", s), o = J(i, M3);
|
|
26355
26359
|
if ("error" in o)
|
|
26356
26360
|
throw new oe(o.error, "failed to get signatures for address");
|
|
26357
26361
|
return o.result;
|
|
@@ -26407,7 +26411,7 @@ class m4 {
|
|
|
26407
26411
|
* ```
|
|
26408
26412
|
*/
|
|
26409
26413
|
async requestAirdrop(e, t) {
|
|
26410
|
-
const r = await this._rpcRequest("requestAirdrop", [e.toBase58(), t]), s =
|
|
26414
|
+
const r = await this._rpcRequest("requestAirdrop", [e.toBase58(), t]), s = J(r, l4);
|
|
26411
26415
|
if ("error" in s)
|
|
26412
26416
|
throw new oe(s.error, `airdrop to ${e.toBase58()} failed`);
|
|
26413
26417
|
return s.result;
|
|
@@ -26455,7 +26459,7 @@ class m4 {
|
|
|
26455
26459
|
const {
|
|
26456
26460
|
commitment: t,
|
|
26457
26461
|
config: r
|
|
26458
|
-
} = Ke(e), s = this._buildArgs([], t, "base64", r), i = await this._rpcRequest("getStakeMinimumDelegation", s), o =
|
|
26462
|
+
} = Ke(e), s = this._buildArgs([], t, "base64", r), i = await this._rpcRequest("getStakeMinimumDelegation", s), o = J(i, st(L()));
|
|
26459
26463
|
if ("error" in o)
|
|
26460
26464
|
throw new oe(o.error, "failed to get stake minimum delegation");
|
|
26461
26465
|
return o.result;
|
|
@@ -26481,7 +26485,7 @@ class m4 {
|
|
|
26481
26485
|
throw new Error("Invalid arguments");
|
|
26482
26486
|
const U = t || {};
|
|
26483
26487
|
U.encoding = "base64", "commitment" in U || (U.commitment = this.commitment), t && typeof t == "object" && "innerInstructions" in t && (U.innerInstructions = t.innerInstructions);
|
|
26484
|
-
const R = [x, U], F = await this._rpcRequest("simulateTransaction", R), W =
|
|
26488
|
+
const R = [x, U], F = await this._rpcRequest("simulateTransaction", R), W = J(F, Gd);
|
|
26485
26489
|
if ("error" in W)
|
|
26486
26490
|
throw new Error("failed to simulate transaction: " + W.error.message);
|
|
26487
26491
|
return W.result;
|
|
@@ -26524,7 +26528,7 @@ class m4 {
|
|
|
26524
26528
|
};
|
|
26525
26529
|
}
|
|
26526
26530
|
i && (m.sigVerify = !0), t && typeof t == "object" && "innerInstructions" in t && (m.innerInstructions = t.innerInstructions);
|
|
26527
|
-
const E = [h, m], S = await this._rpcRequest("simulateTransaction", E), A =
|
|
26531
|
+
const E = [h, m], S = await this._rpcRequest("simulateTransaction", E), A = J(S, Gd);
|
|
26528
26532
|
if ("error" in A) {
|
|
26529
26533
|
let g;
|
|
26530
26534
|
if ("data" in A.error && (g = A.error.data.logs, g && Array.isArray(g))) {
|
|
@@ -26602,7 +26606,7 @@ class m4 {
|
|
|
26602
26606
|
encoding: "base64"
|
|
26603
26607
|
}, s = t && t.skipPreflight, i = s === !0 ? "processed" : t && t.preflightCommitment || this.commitment;
|
|
26604
26608
|
t && t.maxRetries != null && (r.maxRetries = t.maxRetries), t && t.minContextSlot != null && (r.minContextSlot = t.minContextSlot), s && (r.skipPreflight = s), i && (r.preflightCommitment = i);
|
|
26605
|
-
const o = [e, r], a = await this._rpcRequest("sendTransaction", o), l =
|
|
26609
|
+
const o = [e, r], a = await this._rpcRequest("sendTransaction", o), l = J(a, d4);
|
|
26606
26610
|
if ("error" in l) {
|
|
26607
26611
|
let h;
|
|
26608
26612
|
throw "data" in l.error && (h = l.error.data.logs), new Rs({
|
|
@@ -26802,7 +26806,7 @@ class m4 {
|
|
|
26802
26806
|
const {
|
|
26803
26807
|
result: t,
|
|
26804
26808
|
subscription: r
|
|
26805
|
-
} =
|
|
26809
|
+
} = J(e, _3);
|
|
26806
26810
|
this._handleServerNotification(r, [t.value, t.context]);
|
|
26807
26811
|
}
|
|
26808
26812
|
/**
|
|
@@ -26864,7 +26868,7 @@ class m4 {
|
|
|
26864
26868
|
const {
|
|
26865
26869
|
result: t,
|
|
26866
26870
|
subscription: r
|
|
26867
|
-
} =
|
|
26871
|
+
} = J(e, W3);
|
|
26868
26872
|
this._handleServerNotification(r, [{
|
|
26869
26873
|
accountId: t.value.pubkey,
|
|
26870
26874
|
accountInfo: t.value.account
|
|
@@ -26942,7 +26946,7 @@ class m4 {
|
|
|
26942
26946
|
const {
|
|
26943
26947
|
result: t,
|
|
26944
26948
|
subscription: r
|
|
26945
|
-
} =
|
|
26949
|
+
} = J(e, f4);
|
|
26946
26950
|
this._handleServerNotification(r, [t.value, t.context]);
|
|
26947
26951
|
}
|
|
26948
26952
|
/**
|
|
@@ -26952,7 +26956,7 @@ class m4 {
|
|
|
26952
26956
|
const {
|
|
26953
26957
|
result: t,
|
|
26954
26958
|
subscription: r
|
|
26955
|
-
} =
|
|
26959
|
+
} = J(e, L3);
|
|
26956
26960
|
this._handleServerNotification(r, [t]);
|
|
26957
26961
|
}
|
|
26958
26962
|
/**
|
|
@@ -26987,7 +26991,7 @@ class m4 {
|
|
|
26987
26991
|
const {
|
|
26988
26992
|
result: t,
|
|
26989
26993
|
subscription: r
|
|
26990
|
-
} =
|
|
26994
|
+
} = J(e, N3);
|
|
26991
26995
|
this._handleServerNotification(r, [t]);
|
|
26992
26996
|
}
|
|
26993
26997
|
/**
|
|
@@ -27047,7 +27051,7 @@ class m4 {
|
|
|
27047
27051
|
const {
|
|
27048
27052
|
result: t,
|
|
27049
27053
|
subscription: r
|
|
27050
|
-
} =
|
|
27054
|
+
} = J(e, z3);
|
|
27051
27055
|
t.value !== "receivedSignature" && this._subscriptionsAutoDisposedByRpc.add(r), this._handleServerNotification(r, t.value === "receivedSignature" ? [{
|
|
27052
27056
|
type: "received"
|
|
27053
27057
|
}, t.context] : [{
|
|
@@ -27129,7 +27133,7 @@ class m4 {
|
|
|
27129
27133
|
const {
|
|
27130
27134
|
result: t,
|
|
27131
27135
|
subscription: r
|
|
27132
|
-
} =
|
|
27136
|
+
} = J(e, H3);
|
|
27133
27137
|
this._handleServerNotification(r, [t]);
|
|
27134
27138
|
}
|
|
27135
27139
|
/**
|
|
@@ -27246,7 +27250,7 @@ const Kn = Object.freeze({
|
|
|
27246
27250
|
},
|
|
27247
27251
|
ExtendLookupTable: {
|
|
27248
27252
|
index: 2,
|
|
27249
|
-
layout: se([re("instruction"), es(), Lt(Se(),
|
|
27253
|
+
layout: se([re("instruction"), es(), Lt(Se(), ar(re(), -8), "addresses")])
|
|
27250
27254
|
},
|
|
27251
27255
|
DeactivateLookupTable: {
|
|
27252
27256
|
index: 3,
|
|
@@ -27593,7 +27597,7 @@ class ll {
|
|
|
27593
27597
|
}
|
|
27594
27598
|
}
|
|
27595
27599
|
ll.programId = new Y("ComputeBudget111111111111111111111111111111");
|
|
27596
|
-
const
|
|
27600
|
+
const Zd = 64, Jd = 32, Qd = 64, eu = se([Te("numSignatures"), Te("padding"), ln("signatureOffset"), ln("signatureInstructionIndex"), ln("publicKeyOffset"), ln("publicKeyInstructionIndex"), ln("messageDataOffset"), ln("messageDataSize"), ln("messageInstructionIndex")]);
|
|
27597
27601
|
class Bo {
|
|
27598
27602
|
/**
|
|
27599
27603
|
* @internal
|
|
@@ -27615,7 +27619,7 @@ class Bo {
|
|
|
27615
27619
|
signature: s,
|
|
27616
27620
|
instructionIndex: i
|
|
27617
27621
|
} = e;
|
|
27618
|
-
Ue(t.length ===
|
|
27622
|
+
Ue(t.length === Jd, `Public Key must be ${Jd} bytes but received ${t.length} bytes`), Ue(s.length === Qd, `Signature must be ${Qd} bytes but received ${s.length} bytes`);
|
|
27619
27623
|
const o = eu.span, a = o + t.length, l = a + s.length, h = 1, m = ce.Buffer.alloc(l + r.length), E = i ?? 65535;
|
|
27620
27624
|
return eu.encode({
|
|
27621
27625
|
numSignatures: h,
|
|
@@ -27643,9 +27647,9 @@ class Bo {
|
|
|
27643
27647
|
message: r,
|
|
27644
27648
|
instructionIndex: s
|
|
27645
27649
|
} = e;
|
|
27646
|
-
Ue(t.length ===
|
|
27650
|
+
Ue(t.length === Zd, `Private key must be ${Zd} bytes but received ${t.length} bytes`);
|
|
27647
27651
|
try {
|
|
27648
|
-
const i = jr.fromSecretKey(t), o = i.publicKey.toBytes(), a =
|
|
27652
|
+
const i = jr.fromSecretKey(t), o = i.publicKey.toBytes(), a = Jc(r, i.secretKey);
|
|
27649
27653
|
return this.createInstructionWithPublicKey({
|
|
27650
27654
|
publicKey: o,
|
|
27651
27655
|
message: r,
|
|
@@ -27659,11 +27663,11 @@ class Bo {
|
|
|
27659
27663
|
}
|
|
27660
27664
|
Bo.programId = new Y("Ed25519SigVerify111111111111111111111111111");
|
|
27661
27665
|
const g4 = (n, e) => {
|
|
27662
|
-
const t =
|
|
27666
|
+
const t = sr.sign(n, e);
|
|
27663
27667
|
return [t.toCompactRawBytes(), t.recovery];
|
|
27664
27668
|
};
|
|
27665
|
-
|
|
27666
|
-
const y4 =
|
|
27669
|
+
sr.utils.isValidPrivateKey;
|
|
27670
|
+
const y4 = sr.getPublicKey, tu = 32, Ea = 20, nu = 64, w4 = 11, Ba = se([Te("numSignatures"), ln("signatureOffset"), Te("signatureInstructionIndex"), ln("ethAddressOffset"), Te("ethAddressInstructionIndex"), ln("messageDataOffset"), ln("messageDataSize"), Te("messageInstructionIndex"), Xe(20, "ethAddress"), Xe(64, "signature"), Te("recoveryId")]);
|
|
27667
27671
|
class $r {
|
|
27668
27672
|
/**
|
|
27669
27673
|
* @internal
|
|
@@ -28750,7 +28754,7 @@ class dl {
|
|
|
28750
28754
|
*/
|
|
28751
28755
|
static fromConfigData(e) {
|
|
28752
28756
|
let t = [...e];
|
|
28753
|
-
if (
|
|
28757
|
+
if (Jt(t) !== 2) return null;
|
|
28754
28758
|
const s = [];
|
|
28755
28759
|
for (let i = 0; i < 2; i++) {
|
|
28756
28760
|
const o = new Y(Qt(t, 0, Tn)), a = Dn(t) === 1;
|
|
@@ -28772,16 +28776,16 @@ const S4 = new Y("Vote111111111111111111111111111111111111111"), D4 = se([
|
|
|
28772
28776
|
Te("commission"),
|
|
28773
28777
|
_t(),
|
|
28774
28778
|
// votes.length
|
|
28775
|
-
Lt(se([_t("slot"), re("confirmationCount")]),
|
|
28779
|
+
Lt(se([_t("slot"), re("confirmationCount")]), ar(re(), -8), "votes"),
|
|
28776
28780
|
Te("rootSlotValid"),
|
|
28777
28781
|
_t("rootSlot"),
|
|
28778
28782
|
_t(),
|
|
28779
28783
|
// authorizedVoters.length
|
|
28780
|
-
Lt(se([_t("epoch"), Se("authorizedVoter")]),
|
|
28784
|
+
Lt(se([_t("epoch"), Se("authorizedVoter")]), ar(re(), -8), "authorizedVoters"),
|
|
28781
28785
|
se([Lt(se([Se("authorizedPubkey"), _t("epochOfLastAuthorizedSwitch"), _t("targetEpoch")]), 32, "buf"), _t("idx"), Te("isEmpty")], "priorVoters"),
|
|
28782
28786
|
_t(),
|
|
28783
28787
|
// epochCredits.length
|
|
28784
|
-
Lt(se([_t("epoch"), _t("credits"), _t("prevCredits")]),
|
|
28788
|
+
Lt(se([_t("epoch"), _t("credits"), _t("prevCredits")]), ar(re(), -8), "epochCredits"),
|
|
28785
28789
|
se([_t("slot"), _t("timestamp")], "lastTimestamp")
|
|
28786
28790
|
]);
|
|
28787
28791
|
class ul {
|
|
@@ -28877,7 +28881,7 @@ async function T4(n, e, t, r) {
|
|
|
28877
28881
|
}) : new Error(`Raw transaction ${a} failed (${JSON.stringify(m)})`);
|
|
28878
28882
|
return a;
|
|
28879
28883
|
}
|
|
28880
|
-
const I4 = 1e9,
|
|
28884
|
+
const I4 = 1e9, uw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28881
28885
|
__proto__: null,
|
|
28882
28886
|
Account: w8,
|
|
28883
28887
|
AddressLookupTableAccount: oc,
|
|
@@ -28907,7 +28911,7 @@ const I4 = 1e9, dw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
28907
28911
|
MessageV0: vr,
|
|
28908
28912
|
NONCE_ACCOUNT_LENGTH: ic,
|
|
28909
28913
|
NonceAccount: wo,
|
|
28910
|
-
PACKET_DATA_SIZE:
|
|
28914
|
+
PACKET_DATA_SIZE: cr,
|
|
28911
28915
|
PUBLIC_KEY_LENGTH: Tn,
|
|
28912
28916
|
PublicKey: Y,
|
|
28913
28917
|
SIGNATURE_LENGTH_IN_BYTES: Ms,
|
|
@@ -28955,7 +28959,7 @@ const I4 = 1e9, dw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
28955
28959
|
clusterApiUrl: F4,
|
|
28956
28960
|
sendAndConfirmRawTransaction: T4,
|
|
28957
28961
|
sendAndConfirmTransaction: sc
|
|
28958
|
-
}, Symbol.toStringTag, { value: "Module" })), wh = "Solana",
|
|
28962
|
+
}, Symbol.toStringTag, { value: "Module" })), wh = "Solana", fw = "11111111111111111111111111111111", mr = class mr {
|
|
28959
28963
|
constructor(e) {
|
|
28960
28964
|
ie(this, "type", "Native");
|
|
28961
28965
|
ie(this, "address");
|
|
@@ -29003,10 +29007,10 @@ export {
|
|
|
29003
29007
|
Td as M,
|
|
29004
29008
|
id as N,
|
|
29005
29009
|
Ii as O,
|
|
29006
|
-
|
|
29010
|
+
_6 as P,
|
|
29007
29011
|
ay as Q,
|
|
29008
29012
|
Wc as R,
|
|
29009
|
-
|
|
29013
|
+
U6 as S,
|
|
29010
29014
|
fe as T,
|
|
29011
29015
|
ly as U,
|
|
29012
29016
|
gn as V,
|
|
@@ -29026,7 +29030,7 @@ export {
|
|
|
29026
29030
|
wc as a6,
|
|
29027
29031
|
Dr as a7,
|
|
29028
29032
|
hi as a8,
|
|
29029
|
-
|
|
29033
|
+
gu as a9,
|
|
29030
29034
|
Ls as aA,
|
|
29031
29035
|
vr as aB,
|
|
29032
29036
|
sl as aC,
|
|
@@ -29039,32 +29043,32 @@ export {
|
|
|
29039
29043
|
ve as aJ,
|
|
29040
29044
|
hc as aK,
|
|
29041
29045
|
tn as aL,
|
|
29042
|
-
|
|
29046
|
+
Zb as aM,
|
|
29043
29047
|
Vn as aN,
|
|
29044
29048
|
Ti as aO,
|
|
29045
29049
|
Yi as aP,
|
|
29046
29050
|
It as aQ,
|
|
29047
29051
|
nc as aR,
|
|
29048
29052
|
Ab as aS,
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29053
|
+
o6 as aT,
|
|
29054
|
+
iw as aU,
|
|
29055
|
+
ow as aV,
|
|
29052
29056
|
u0 as aW,
|
|
29053
29057
|
Id as aX,
|
|
29054
29058
|
Am as aY,
|
|
29055
29059
|
rl as aZ,
|
|
29056
29060
|
Gn as a_,
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29061
|
+
G0 as aa,
|
|
29062
|
+
yc as ab,
|
|
29063
|
+
Gf as ac,
|
|
29060
29064
|
m4 as ad,
|
|
29061
29065
|
Y as ae,
|
|
29062
29066
|
Wb as af,
|
|
29063
29067
|
Kr as ag,
|
|
29064
29068
|
P4 as ah,
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29069
|
+
v6 as ai,
|
|
29070
|
+
T6 as aj,
|
|
29071
|
+
k6 as ak,
|
|
29068
29072
|
Ia as al,
|
|
29069
29073
|
ll as am,
|
|
29070
29074
|
Ft as an,
|
|
@@ -29073,132 +29077,152 @@ export {
|
|
|
29073
29077
|
Qr as aq,
|
|
29074
29078
|
se as ar,
|
|
29075
29079
|
ze as as,
|
|
29076
|
-
|
|
29080
|
+
$6 as at,
|
|
29077
29081
|
Te as au,
|
|
29078
29082
|
Xe as av,
|
|
29079
29083
|
ln as aw,
|
|
29080
29084
|
oc as ax,
|
|
29081
29085
|
js as ay,
|
|
29082
29086
|
_e as az,
|
|
29083
|
-
|
|
29084
|
-
|
|
29087
|
+
I6 as b,
|
|
29088
|
+
G6 as b$,
|
|
29085
29089
|
I4 as b0,
|
|
29086
29090
|
dc as b1,
|
|
29087
29091
|
Re as b2,
|
|
29088
29092
|
wh as b3,
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
|
|
29093
|
-
|
|
29094
|
-
|
|
29095
|
-
|
|
29096
|
-
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29132
|
-
|
|
29133
|
-
|
|
29134
|
-
|
|
29135
|
-
|
|
29136
|
-
|
|
29137
|
-
|
|
29138
|
-
|
|
29139
|
-
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
|
|
29155
|
-
|
|
29156
|
-
|
|
29157
|
-
|
|
29158
|
-
|
|
29159
|
-
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29093
|
+
is as b4,
|
|
29094
|
+
Hs as b5,
|
|
29095
|
+
I1 as b6,
|
|
29096
|
+
Ze as b7,
|
|
29097
|
+
Ar as b8,
|
|
29098
|
+
Sr as b9,
|
|
29099
|
+
ds as bA,
|
|
29100
|
+
lo as bB,
|
|
29101
|
+
By as bC,
|
|
29102
|
+
Z6 as bD,
|
|
29103
|
+
Q6 as bE,
|
|
29104
|
+
Wi as bF,
|
|
29105
|
+
py as bG,
|
|
29106
|
+
q6 as bH,
|
|
29107
|
+
Ud as bI,
|
|
29108
|
+
yr as bJ,
|
|
29109
|
+
W6 as bK,
|
|
29110
|
+
nw as bL,
|
|
29111
|
+
Yn as bM,
|
|
29112
|
+
N6 as bN,
|
|
29113
|
+
O6 as bO,
|
|
29114
|
+
z6 as bP,
|
|
29115
|
+
dy as bQ,
|
|
29116
|
+
j6 as bR,
|
|
29117
|
+
H6 as bS,
|
|
29118
|
+
a6 as bT,
|
|
29119
|
+
D6 as bU,
|
|
29120
|
+
Hg as bV,
|
|
29121
|
+
aw as bW,
|
|
29122
|
+
mm as bX,
|
|
29123
|
+
N4 as bY,
|
|
29124
|
+
hy as bZ,
|
|
29125
|
+
Ay as b_,
|
|
29126
|
+
Z4 as ba,
|
|
29127
|
+
J4 as bb,
|
|
29128
|
+
Zu as bc,
|
|
29129
|
+
S1 as bd,
|
|
29130
|
+
sr as be,
|
|
29131
|
+
n6 as bf,
|
|
29132
|
+
os as bg,
|
|
29133
|
+
Q1 as bh,
|
|
29134
|
+
vs as bi,
|
|
29135
|
+
nf as bj,
|
|
29136
|
+
$1 as bk,
|
|
29137
|
+
Ct as bl,
|
|
29138
|
+
to as bm,
|
|
29139
|
+
Sc as bn,
|
|
29140
|
+
Ju as bo,
|
|
29141
|
+
j1 as bp,
|
|
29142
|
+
K1 as bq,
|
|
29143
|
+
R1 as br,
|
|
29144
|
+
r6 as bs,
|
|
29145
|
+
Fi as bt,
|
|
29146
|
+
U1 as bu,
|
|
29147
|
+
Wu as bv,
|
|
29148
|
+
tb as bw,
|
|
29149
|
+
nb as bx,
|
|
29150
|
+
Sm as by,
|
|
29151
|
+
wn as bz,
|
|
29152
|
+
M6 as c,
|
|
29153
|
+
hf as c$,
|
|
29154
|
+
Jf as c0,
|
|
29155
|
+
_d as c1,
|
|
29156
|
+
Yf as c2,
|
|
29157
|
+
X6 as c3,
|
|
29158
|
+
by as c4,
|
|
29159
|
+
Y6 as c5,
|
|
29160
|
+
tw as c6,
|
|
29161
|
+
ew as c7,
|
|
29162
|
+
J6 as c8,
|
|
29163
|
+
K6 as c9,
|
|
29164
|
+
Zi as cA,
|
|
29165
|
+
Pu as cB,
|
|
29166
|
+
X4 as cC,
|
|
29167
|
+
Xo as cD,
|
|
29168
|
+
L4 as cE,
|
|
29169
|
+
jm as cF,
|
|
29170
|
+
ss as cG,
|
|
29171
|
+
Km as cH,
|
|
29172
|
+
zm as cI,
|
|
29173
|
+
e6 as cJ,
|
|
29174
|
+
v2 as cK,
|
|
29175
|
+
L0 as cL,
|
|
29176
|
+
fd as cM,
|
|
29177
|
+
lm as cN,
|
|
29178
|
+
Vo as cO,
|
|
29179
|
+
c6 as cP,
|
|
29180
|
+
sw as cQ,
|
|
29181
|
+
rw as cR,
|
|
29182
|
+
qr as cS,
|
|
29183
|
+
nn as cT,
|
|
29184
|
+
x2 as cU,
|
|
29185
|
+
$r as cV,
|
|
29186
|
+
s6 as cW,
|
|
29187
|
+
I8 as cX,
|
|
29188
|
+
uw as cY,
|
|
29189
|
+
vb as cZ,
|
|
29190
|
+
W4 as c_,
|
|
29191
|
+
fy as ca,
|
|
29192
|
+
P6 as cb,
|
|
29193
|
+
L6 as cc,
|
|
29194
|
+
V6 as cd,
|
|
29195
|
+
e2 as ce,
|
|
29196
|
+
Pt as cf,
|
|
29197
|
+
F4 as cg,
|
|
29198
|
+
_4 as ch,
|
|
29199
|
+
R4 as ci,
|
|
29200
|
+
om as cj,
|
|
29201
|
+
el as ck,
|
|
29202
|
+
Rs as cl,
|
|
29203
|
+
fw as cm,
|
|
29204
|
+
i6 as cn,
|
|
29205
|
+
l8 as co,
|
|
29206
|
+
xc as cp,
|
|
29207
|
+
ki as cq,
|
|
29208
|
+
Hm as cr,
|
|
29209
|
+
Gr as cs,
|
|
29210
|
+
zs as ct,
|
|
29211
|
+
Ra as cu,
|
|
29212
|
+
ql as cv,
|
|
29213
|
+
_u as cw,
|
|
29214
|
+
Y4 as cx,
|
|
29215
|
+
t6 as cy,
|
|
29216
|
+
ye as cz,
|
|
29217
|
+
Qe as d,
|
|
29218
|
+
Tb as d0,
|
|
29219
|
+
ff as d1,
|
|
29220
|
+
Uh as d2,
|
|
29197
29221
|
Ri as e,
|
|
29198
29222
|
Bs as f,
|
|
29199
29223
|
ji as g,
|
|
29200
|
-
|
|
29201
|
-
|
|
29224
|
+
R6 as h,
|
|
29225
|
+
F6 as i,
|
|
29202
29226
|
Kf as j,
|
|
29203
29227
|
jt as k,
|
|
29204
29228
|
Dt as l,
|