@wormhole-foundation/wormhole-connect 0.3.4-beta.4-development → 0.3.4-beta.5-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ccip-xr4FQXXG.js → ccip-3Wt6ReJT.js} +1 -1
- package/dist/assets/{cosmos-TcYN7x14.js → cosmos-9t5ds48M.js} +1 -1
- package/dist/assets/{evm-hFktu6UR.js → evm-OtsElgWW.js} +15 -15
- package/dist/assets/index-bti7uInf.js +3 -0
- package/dist/assets/{solana-r3vOVfGL.js → solana-QOFlt-jY.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-8lU7Qhqn.js → solanaEmbed.esm-bag_3ej_.js} +1 -1
- package/dist/main.js +87 -87
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts +3 -4
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/dist/src/views/Bridge/Bridge.d.ts.map +1 -1
- package/lib/{aptos-yj-TK3PA.js → aptos-FYfrFJAn.js} +1 -1
- package/lib/{aptos-XkxFn0iA.mjs → aptos-yOAGVL0A.mjs} +1 -1
- package/lib/{ccip-fjiaQRuA.js → ccip-4DZ4y4JK.js} +1 -1
- package/lib/{ccip-FGsI2Vy1.mjs → ccip-bVd-xAgW.mjs} +3 -3
- package/lib/{cosmos-MDA8Rp7a.mjs → cosmos-1ZHcemM-.mjs} +3 -3
- package/lib/{cosmos-AUjYaZap.js → cosmos-I3W2GDrq.js} +1 -1
- package/lib/{evm-EK7l4v5F.mjs → evm-6AZAv06H.mjs} +344 -342
- package/lib/{evm-AzWd7TIg.js → evm-Dzswfm9c.js} +12 -12
- package/lib/index-89JtoVA8.js +3 -0
- package/lib/{index-i3M9x9ys.mjs → index-9RUWMOOC.mjs} +2 -2
- package/lib/{index-M5muoSKm.js → index-IL1hzgXP.js} +1 -1
- package/lib/{index-ZqzSOsNH.mjs → index-NnYKIwKJ.mjs} +1 -1
- package/lib/{index-uD29Qviy.js → index-SMvLj77M.js} +1 -1
- package/lib/{index-Lyx2KgEl.js → index-V4A_PX6c.js} +7 -7
- package/lib/{index-e4IwQovx.js → index-Y9Whgj7X.js} +1 -1
- package/lib/{index-GqCbgO6w.mjs → index-aNk0rR65.mjs} +195 -187
- package/lib/{index-0q2THm2w.mjs → index-n7HccAMm.mjs} +3 -3
- package/lib/{index-U4-cs6LF.mjs → index-sTeBL6uV.mjs} +68 -68
- package/lib/{index.es-sWP5wBk1.mjs → index.es-B5KKhbgG.mjs} +1 -1
- package/lib/{index.es-OMs0sEbV.js → index.es-FooOQYo2.js} +1 -1
- package/lib/{index.es-m2T5sCHF.js → index.es-Fw2-l5Vm.js} +1 -1
- package/lib/{index.es-4yp-p17j.mjs → index.es-XUetntT2.mjs} +2 -2
- package/lib/{index.es-3N17U6U-.js → index.es-iJxWQe3h.js} +2 -2
- package/lib/{index.es-D5PlxUXA.mjs → index.es-uE9XWdwW.mjs} +4 -4
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-LCJ8UHG9.js → libsodium-wrappers-HWiLdcvs.js} +1 -1
- package/lib/{libsodium-wrappers-w6994RX-.mjs → libsodium-wrappers-Iiu5QMxq.mjs} +1 -1
- package/lib/{sei-Oplz3AG7.js → sei-DXA4aJ5R.js} +1 -1
- package/lib/{sei-w_LUpthw.mjs → sei-tHeAuZcQ.mjs} +2 -2
- package/lib/{solana-1K5mHs_m.mjs → solana-tyLp6YrX.mjs} +3 -3
- package/lib/{solana-GtJSObQi.js → solana-zPx_afVl.js} +1 -1
- package/lib/{solanaEmbed.esm-7dEAUE3p.mjs → solanaEmbed.esm-fOkHBl3q.mjs} +2 -2
- package/lib/{solanaEmbed.esm-3t3NYEW9.js → solanaEmbed.esm-tQPC6nIa.js} +1 -1
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts +3 -4
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/lib/src/views/Bridge/Bridge.d.ts.map +1 -1
- package/lib/{sui-tt-QRxQS.js → sui-ATDAv5fP.js} +1 -1
- package/lib/{sui-Z4KdsJtV.mjs → sui-l6oFo8G_.mjs} +1 -1
- package/package.json +2 -2
- package/dist/assets/index-7UgR9Epe.js +0 -3
- package/lib/index-9vpoegf2.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as na, d as rn, e as ra, g as sa, C as aa, W as oa, a as ia, N as mr, b as ca, c as ae, h as la, f as br, i as ua, j as da, l as pa, m as ha, B as ma, n as ba, o as fr } from "./index-
|
|
2
|
-
import { s as Br } from "./index.es-
|
|
1
|
+
import { k as na, d as rn, e as ra, g as sa, C as aa, W as oa, a as ia, N as mr, b as ca, c as ae, h as la, f as br, i as ua, j as da, l as pa, m as ha, B as ma, n as ba, o as fr } from "./index-aNk0rR65.mjs";
|
|
2
|
+
import { s as Br } from "./index.es-B5KKhbgG.mjs";
|
|
3
3
|
function m(e, t = {}) {
|
|
4
4
|
const { fees: n = e.fees, formatters: r = e.formatters, serializers: s = e.serializers } = t;
|
|
5
5
|
return {
|
|
@@ -188,7 +188,7 @@ const fa = /* @__PURE__ */ m({
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
testnet: !0
|
|
191
|
-
}),
|
|
191
|
+
}), Ia = /* @__PURE__ */ m({
|
|
192
192
|
id: 1261120,
|
|
193
193
|
name: "Astar zkEVM Testnet zKatana",
|
|
194
194
|
network: "zKatana",
|
|
@@ -248,7 +248,7 @@ const fa = /* @__PURE__ */ m({
|
|
|
248
248
|
blockCreated: 62907816
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
}),
|
|
251
|
+
}), ka = /* @__PURE__ */ m({
|
|
252
252
|
id: 1313161555,
|
|
253
253
|
name: "Aurora Testnet",
|
|
254
254
|
network: "aurora-testnet",
|
|
@@ -500,7 +500,7 @@ function Oa(e, { dir: t, size: n = 32 } = {}) {
|
|
|
500
500
|
return r;
|
|
501
501
|
}
|
|
502
502
|
const La = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
503
|
-
function
|
|
503
|
+
function k(e, t = {}) {
|
|
504
504
|
return typeof e == "number" || typeof e == "bigint" ? D(e, t) : typeof e == "string" ? Tn(e, t) : typeof e == "boolean" ? Yr(e, t) : Ee(e, t);
|
|
505
505
|
}
|
|
506
506
|
function Yr(e, t = {}) {
|
|
@@ -717,7 +717,7 @@ function Wr(e) {
|
|
|
717
717
|
type: e.type ? Rr[e.type] || e.type : null
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
const
|
|
720
|
+
const Zr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
721
721
|
block: /* @__PURE__ */ Sn({
|
|
722
722
|
format(e) {
|
|
723
723
|
var n;
|
|
@@ -738,7 +738,7 @@ const Hr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
|
738
738
|
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? T(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
739
739
|
}
|
|
740
740
|
}),
|
|
741
|
-
transactionReceipt: /* @__PURE__ */
|
|
741
|
+
transactionReceipt: /* @__PURE__ */ Zr({
|
|
742
742
|
format(e) {
|
|
743
743
|
return {
|
|
744
744
|
l1GasPrice: e.l1GasPrice ? T(e.l1GasPrice) : null,
|
|
@@ -829,7 +829,7 @@ const Hr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
|
829
829
|
// goerli
|
|
830
830
|
}, {
|
|
831
831
|
formatters: $
|
|
832
|
-
}),
|
|
832
|
+
}), Za = /* @__PURE__ */ m({
|
|
833
833
|
id: 84532,
|
|
834
834
|
network: "base-sepolia",
|
|
835
835
|
name: "Base Sepolia",
|
|
@@ -861,7 +861,7 @@ const Hr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
|
861
861
|
// sepolia
|
|
862
862
|
}, {
|
|
863
863
|
formatters: $
|
|
864
|
-
}),
|
|
864
|
+
}), Ha = /* @__PURE__ */ m({
|
|
865
865
|
id: 641230,
|
|
866
866
|
name: "Bear Network Chain Mainnet",
|
|
867
867
|
network: "BearNetworkChainMainnet",
|
|
@@ -924,7 +924,7 @@ const Hr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
|
924
924
|
default: { name: "Bttcscan", url: "https://testnet.bttcscan.com" }
|
|
925
925
|
},
|
|
926
926
|
testnet: !0
|
|
927
|
-
}),
|
|
927
|
+
}), Xa = /* @__PURE__ */ m({
|
|
928
928
|
id: 288,
|
|
929
929
|
name: "Boba Network",
|
|
930
930
|
network: "boba",
|
|
@@ -947,7 +947,7 @@ const Hr = /* @__PURE__ */ Ot("transactionReceipt", Wr), $ = {
|
|
|
947
947
|
blockCreated: 446859
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
}),
|
|
950
|
+
}), qa = /* @__PURE__ */ m({
|
|
951
951
|
id: 1039,
|
|
952
952
|
name: "Bronos",
|
|
953
953
|
network: "bronos",
|
|
@@ -1111,7 +1111,7 @@ function lt(e) {
|
|
|
1111
1111
|
value: typeof e.value < "u" ? D(e.value) : void 0
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const Hr = /* @__PURE__ */ Ot("transactionRequest", lt);
|
|
1115
1115
|
function oe(e) {
|
|
1116
1116
|
return e === 0 || e === 0n || e === void 0 || e === null || e === "0" || e === "" || typeof e == "string" && (G(e).toLowerCase() === "0x" || G(e).toLowerCase() === "0x00");
|
|
1117
1117
|
}
|
|
@@ -1152,7 +1152,7 @@ const On = {
|
|
|
1152
1152
|
return e.type === "0x7b" ? t.type = "cip64" : (e.type === "0x7c" && (t.type = "cip42"), t.gatewayFee = e.gatewayFee ? T(e.gatewayFee) : null, t.gatewayFeeRecipient = e.gatewayFeeRecipient), t;
|
|
1153
1153
|
}
|
|
1154
1154
|
}),
|
|
1155
|
-
transactionRequest: /* @__PURE__ */
|
|
1155
|
+
transactionRequest: /* @__PURE__ */ Hr({
|
|
1156
1156
|
format(e) {
|
|
1157
1157
|
const t = {
|
|
1158
1158
|
feeCurrency: e.feeCurrency
|
|
@@ -1219,7 +1219,7 @@ class oo extends x {
|
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
class
|
|
1222
|
+
class Xr extends x {
|
|
1223
1223
|
constructor() {
|
|
1224
1224
|
super("No chain was provided to the Client."), Object.defineProperty(this, "name", {
|
|
1225
1225
|
enumerable: !0,
|
|
@@ -1246,7 +1246,7 @@ const io = {
|
|
|
1246
1246
|
ether: -9,
|
|
1247
1247
|
wei: 9
|
|
1248
1248
|
};
|
|
1249
|
-
function
|
|
1249
|
+
function qr(e, t) {
|
|
1250
1250
|
let n = e.toString();
|
|
1251
1251
|
const r = n.startsWith("-");
|
|
1252
1252
|
r && (n = n.slice(1)), n = n.padStart(t, "0");
|
|
@@ -1256,10 +1256,10 @@ function Xr(e, t) {
|
|
|
1256
1256
|
];
|
|
1257
1257
|
return a = a.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${a ? `.${a}` : ""}`;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function Z(e, t = "wei") {
|
|
1260
|
+
return qr(e, co[t]);
|
|
1261
1261
|
}
|
|
1262
|
-
class
|
|
1262
|
+
class Ie extends x {
|
|
1263
1263
|
constructor({ cause: t, message: n } = {}) {
|
|
1264
1264
|
var s;
|
|
1265
1265
|
const r = (s = n == null ? void 0 : n.replace("execution reverted: ", "")) == null ? void 0 : s.replace("execution reverted", "");
|
|
@@ -1273,13 +1273,13 @@ class ke extends x {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
Object.defineProperty(
|
|
1276
|
+
Object.defineProperty(Ie, "code", {
|
|
1277
1277
|
enumerable: !0,
|
|
1278
1278
|
configurable: !0,
|
|
1279
1279
|
writable: !0,
|
|
1280
1280
|
value: 3
|
|
1281
1281
|
});
|
|
1282
|
-
Object.defineProperty(
|
|
1282
|
+
Object.defineProperty(Ie, "nodeMessage", {
|
|
1283
1283
|
enumerable: !0,
|
|
1284
1284
|
configurable: !0,
|
|
1285
1285
|
writable: !0,
|
|
@@ -1287,7 +1287,7 @@ Object.defineProperty(ke, "nodeMessage", {
|
|
|
1287
1287
|
});
|
|
1288
1288
|
class ne extends x {
|
|
1289
1289
|
constructor({ cause: t, maxFeePerGas: n } = {}) {
|
|
1290
|
-
super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${
|
|
1290
|
+
super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${Z(n)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
1291
1291
|
cause: t
|
|
1292
1292
|
}), Object.defineProperty(this, "name", {
|
|
1293
1293
|
enumerable: !0,
|
|
@@ -1305,7 +1305,7 @@ Object.defineProperty(ne, "nodeMessage", {
|
|
|
1305
1305
|
});
|
|
1306
1306
|
class an extends x {
|
|
1307
1307
|
constructor({ cause: t, maxFeePerGas: n } = {}) {
|
|
1308
|
-
super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${
|
|
1308
|
+
super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${Z(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
1309
1309
|
cause: t
|
|
1310
1310
|
}), Object.defineProperty(this, "name", {
|
|
1311
1311
|
enumerable: !0,
|
|
@@ -1461,7 +1461,7 @@ Object.defineProperty(hn, "nodeMessage", {
|
|
|
1461
1461
|
class fe extends x {
|
|
1462
1462
|
constructor({ cause: t, maxPriorityFeePerGas: n, maxFeePerGas: r } = {}) {
|
|
1463
1463
|
super([
|
|
1464
|
-
`The provided tip (\`maxPriorityFeePerGas\`${n ? ` = ${
|
|
1464
|
+
`The provided tip (\`maxPriorityFeePerGas\`${n ? ` = ${Z(n)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r ? ` = ${Z(r)} gwei` : ""}).`
|
|
1465
1465
|
].join(`
|
|
1466
1466
|
`), {
|
|
1467
1467
|
cause: t
|
|
@@ -1775,7 +1775,7 @@ class xo extends x {
|
|
|
1775
1775
|
});
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
|
-
class
|
|
1778
|
+
class Io extends x {
|
|
1779
1779
|
constructor(t, n) {
|
|
1780
1780
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
1781
1781
|
metaMessages: [
|
|
@@ -1859,7 +1859,7 @@ class ve extends x {
|
|
|
1859
1859
|
}), this.abiItem = t;
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
|
-
class
|
|
1862
|
+
class ko extends x {
|
|
1863
1863
|
constructor(t, { docsPath: n }) {
|
|
1864
1864
|
super([
|
|
1865
1865
|
`Type "${t}" is not a valid encoding type.`,
|
|
@@ -1953,7 +1953,7 @@ const _r = (e) => {
|
|
|
1953
1953
|
}, To = (e) => _r(e);
|
|
1954
1954
|
function Y(e, t) {
|
|
1955
1955
|
const n = t || "hex", r = na(_(e, { strict: !1 }) ? ce(e) : e);
|
|
1956
|
-
return n === "bytes" ? r :
|
|
1956
|
+
return n === "bytes" ? r : k(r);
|
|
1957
1957
|
}
|
|
1958
1958
|
const vo = (e) => Y(ce(e)), Pn = (e) => vo(To(e));
|
|
1959
1959
|
function S(e, t, n, { strict: r } = {}) {
|
|
@@ -2029,7 +2029,7 @@ function Un({ param: e, value: t }) {
|
|
|
2029
2029
|
return Uo(t, { param: e });
|
|
2030
2030
|
if (e.type === "string")
|
|
2031
2031
|
return Fo(t);
|
|
2032
|
-
throw new
|
|
2032
|
+
throw new ko(e.type, {
|
|
2033
2033
|
docsPath: "/docs/contract/encodeAbiParameters"
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
@@ -2177,7 +2177,7 @@ function dt({ abi: e, args: t = [], name: n }) {
|
|
|
2177
2177
|
if (a && "inputs" in a && a.inputs) {
|
|
2178
2178
|
const c = ns(o.inputs, a.inputs, t);
|
|
2179
2179
|
if (c)
|
|
2180
|
-
throw new
|
|
2180
|
+
throw new Io({
|
|
2181
2181
|
abiItem: o,
|
|
2182
2182
|
type: c[0]
|
|
2183
2183
|
}, {
|
|
@@ -2284,7 +2284,7 @@ async function rs(e, { address: t, abi: n, args: r, eventName: s, fromBlock: a,
|
|
|
2284
2284
|
type: "event"
|
|
2285
2285
|
};
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function X(e) {
|
|
2288
2288
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
2289
2289
|
}
|
|
2290
2290
|
function he({ abi: e, args: t, functionName: n }) {
|
|
@@ -2353,12 +2353,12 @@ function Ft(e, t) {
|
|
|
2353
2353
|
params: e,
|
|
2354
2354
|
size: L(t)
|
|
2355
2355
|
});
|
|
2356
|
-
return
|
|
2356
|
+
return Zo({
|
|
2357
2357
|
data: t,
|
|
2358
2358
|
params: e
|
|
2359
2359
|
});
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Zo({ data: e, params: t }) {
|
|
2362
2362
|
const n = [];
|
|
2363
2363
|
let r = 0;
|
|
2364
2364
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2386,21 +2386,21 @@ function Ae({ data: e, param: t, position: n }) {
|
|
|
2386
2386
|
if (t.type === "tuple")
|
|
2387
2387
|
return $o(e, { param: t, position: n });
|
|
2388
2388
|
if (t.type === "string")
|
|
2389
|
-
return
|
|
2389
|
+
return qo(e, { position: n });
|
|
2390
2390
|
if (t.type.startsWith("bytes"))
|
|
2391
2391
|
return Ko(e, { param: t, position: n });
|
|
2392
2392
|
const s = S(e, n, n + 32, { strict: !0 });
|
|
2393
2393
|
if (t.type.startsWith("uint") || t.type.startsWith("int"))
|
|
2394
|
-
return
|
|
2394
|
+
return Xo(s, { param: t });
|
|
2395
2395
|
if (t.type === "address")
|
|
2396
|
-
return
|
|
2396
|
+
return Ho(s);
|
|
2397
2397
|
if (t.type === "bool")
|
|
2398
2398
|
return Jo(s);
|
|
2399
2399
|
throw new Eo(t.type, {
|
|
2400
2400
|
docsPath: "/docs/contract/decodeAbiParameters"
|
|
2401
2401
|
});
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function Ho(e) {
|
|
2404
2404
|
return { consumed: 32, value: Fn(S(e, -20)) };
|
|
2405
2405
|
}
|
|
2406
2406
|
function Vo(e, { param: t, length: n, position: r }) {
|
|
@@ -2459,14 +2459,14 @@ function Ko(e, { param: t, position: n }) {
|
|
|
2459
2459
|
strict: !0
|
|
2460
2460
|
}) };
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function Xo(e, { param: t }) {
|
|
2463
2463
|
const n = t.type.startsWith("int");
|
|
2464
2464
|
return {
|
|
2465
2465
|
consumed: 32,
|
|
2466
2466
|
value: parseInt(t.type.split("int")[1] || "256") > 48 ? T(e, { signed: n }) : F(e, { signed: n })
|
|
2467
2467
|
};
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function qo(e, { position: t }) {
|
|
2470
2470
|
const n = F(S(e, t, t + 32, { strict: !0 })), r = F(S(e, n, n + 32, { strict: !0 }));
|
|
2471
2471
|
return r === 0 ? { consumed: 32, value: "" } : { consumed: 32, value: Ga(G(S(e, n + 32, n + 32 + r, { strict: !0 }))) };
|
|
2472
2472
|
}
|
|
@@ -2529,7 +2529,7 @@ function as({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r =
|
|
|
2529
2529
|
return `${n ? e.name : ""}(${e.inputs.map((s, a) => `${r && s.name ? `${s.name}: ` : ""}${typeof t[a] == "object" ? W(t[a]) : t[a]}`).join(", ")})`;
|
|
2530
2530
|
}
|
|
2531
2531
|
function Gn(e, t = "wei") {
|
|
2532
|
-
return
|
|
2532
|
+
return qr(e, io[t]);
|
|
2533
2533
|
}
|
|
2534
2534
|
function ht(e) {
|
|
2535
2535
|
const t = Object.entries(e).map(([r, s]) => s === void 0 || s === !1 ? null : [r, s]).filter(Boolean), n = t.reduce((r, [s]) => Math.max(r, s.length), 0);
|
|
@@ -2603,9 +2603,9 @@ class si extends x {
|
|
|
2603
2603
|
value: typeof h < "u" && `${Gn(h)} ${((p = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : p.symbol) || "ETH"}`,
|
|
2604
2604
|
data: a,
|
|
2605
2605
|
gas: o,
|
|
2606
|
-
gasPrice: typeof i < "u" && `${
|
|
2607
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
2608
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
2606
|
+
gasPrice: typeof i < "u" && `${Z(i)} gwei`,
|
|
2607
|
+
maxFeePerGas: typeof c < "u" && `${Z(c)} gwei`,
|
|
2608
|
+
maxPriorityFeePerGas: typeof l < "u" && `${Z(l)} gwei`,
|
|
2609
2609
|
nonce: u
|
|
2610
2610
|
});
|
|
2611
2611
|
super(t.shortMessage, {
|
|
@@ -2663,15 +2663,15 @@ class ai extends x {
|
|
|
2663
2663
|
class cs extends x {
|
|
2664
2664
|
constructor(t, { account: n, docsPath: r, chain: s, data: a, gas: o, gasPrice: i, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: u, to: d, value: h }) {
|
|
2665
2665
|
var b;
|
|
2666
|
-
const f = n ?
|
|
2666
|
+
const f = n ? X(n) : void 0, p = ht({
|
|
2667
2667
|
from: f == null ? void 0 : f.address,
|
|
2668
2668
|
to: d,
|
|
2669
2669
|
value: typeof h < "u" && `${Gn(h)} ${((b = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : b.symbol) || "ETH"}`,
|
|
2670
2670
|
data: a,
|
|
2671
2671
|
gas: o,
|
|
2672
|
-
gasPrice: typeof i < "u" && `${
|
|
2673
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
2674
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
2672
|
+
gasPrice: typeof i < "u" && `${Z(i)} gwei`,
|
|
2673
|
+
maxFeePerGas: typeof c < "u" && `${Z(c)} gwei`,
|
|
2674
|
+
maxPriorityFeePerGas: typeof l < "u" && `${Z(l)} gwei`,
|
|
2675
2675
|
nonce: u
|
|
2676
2676
|
});
|
|
2677
2677
|
super(t.shortMessage, {
|
|
@@ -2943,7 +2943,7 @@ class gn extends x {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
}
|
|
2945
2945
|
const li = -1;
|
|
2946
|
-
class
|
|
2946
|
+
class H extends x {
|
|
2947
2947
|
constructor(t, { code: n, docsPath: r, metaMessages: s, shortMessage: a }) {
|
|
2948
2948
|
super(a, {
|
|
2949
2949
|
cause: t,
|
|
@@ -2962,7 +2962,7 @@ class Z extends x {
|
|
|
2962
2962
|
}), this.name = t.name, this.code = t instanceof Rn ? t.code : n ?? li;
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
class ze extends
|
|
2965
|
+
class ze extends H {
|
|
2966
2966
|
constructor(t, n) {
|
|
2967
2967
|
super(t, n), Object.defineProperty(this, "name", {
|
|
2968
2968
|
enumerable: !0,
|
|
@@ -2977,10 +2977,10 @@ class ze extends Z {
|
|
|
2977
2977
|
}), this.data = n.data;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
class
|
|
2980
|
+
class Ze extends H {
|
|
2981
2981
|
constructor(t) {
|
|
2982
2982
|
super(t, {
|
|
2983
|
-
code:
|
|
2983
|
+
code: Ze.code,
|
|
2984
2984
|
shortMessage: "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."
|
|
2985
2985
|
}), Object.defineProperty(this, "name", {
|
|
2986
2986
|
enumerable: !0,
|
|
@@ -2990,16 +2990,16 @@ class He extends Z {
|
|
|
2990
2990
|
});
|
|
2991
2991
|
}
|
|
2992
2992
|
}
|
|
2993
|
-
Object.defineProperty(
|
|
2993
|
+
Object.defineProperty(Ze, "code", {
|
|
2994
2994
|
enumerable: !0,
|
|
2995
2995
|
configurable: !0,
|
|
2996
2996
|
writable: !0,
|
|
2997
2997
|
value: -32700
|
|
2998
2998
|
});
|
|
2999
|
-
class
|
|
2999
|
+
class He extends H {
|
|
3000
3000
|
constructor(t) {
|
|
3001
3001
|
super(t, {
|
|
3002
|
-
code:
|
|
3002
|
+
code: He.code,
|
|
3003
3003
|
shortMessage: "JSON is not a valid request object."
|
|
3004
3004
|
}), Object.defineProperty(this, "name", {
|
|
3005
3005
|
enumerable: !0,
|
|
@@ -3009,13 +3009,13 @@ class Ze extends Z {
|
|
|
3009
3009
|
});
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
Object.defineProperty(
|
|
3012
|
+
Object.defineProperty(He, "code", {
|
|
3013
3013
|
enumerable: !0,
|
|
3014
3014
|
configurable: !0,
|
|
3015
3015
|
writable: !0,
|
|
3016
3016
|
value: -32600
|
|
3017
3017
|
});
|
|
3018
|
-
class Ve extends
|
|
3018
|
+
class Ve extends H {
|
|
3019
3019
|
constructor(t) {
|
|
3020
3020
|
super(t, {
|
|
3021
3021
|
code: Ve.code,
|
|
@@ -3034,7 +3034,7 @@ Object.defineProperty(Ve, "code", {
|
|
|
3034
3034
|
writable: !0,
|
|
3035
3035
|
value: -32601
|
|
3036
3036
|
});
|
|
3037
|
-
class Je extends
|
|
3037
|
+
class Je extends H {
|
|
3038
3038
|
constructor(t) {
|
|
3039
3039
|
super(t, {
|
|
3040
3040
|
code: Je.code,
|
|
@@ -3057,7 +3057,7 @@ Object.defineProperty(Je, "code", {
|
|
|
3057
3057
|
writable: !0,
|
|
3058
3058
|
value: -32602
|
|
3059
3059
|
});
|
|
3060
|
-
class Ce extends
|
|
3060
|
+
class Ce extends H {
|
|
3061
3061
|
constructor(t) {
|
|
3062
3062
|
super(t, {
|
|
3063
3063
|
code: Ce.code,
|
|
@@ -3076,7 +3076,7 @@ Object.defineProperty(Ce, "code", {
|
|
|
3076
3076
|
writable: !0,
|
|
3077
3077
|
value: -32603
|
|
3078
3078
|
});
|
|
3079
|
-
class ye extends
|
|
3079
|
+
class ye extends H {
|
|
3080
3080
|
constructor(t) {
|
|
3081
3081
|
super(t, {
|
|
3082
3082
|
code: ye.code,
|
|
@@ -3099,7 +3099,7 @@ Object.defineProperty(ye, "code", {
|
|
|
3099
3099
|
writable: !0,
|
|
3100
3100
|
value: -32e3
|
|
3101
3101
|
});
|
|
3102
|
-
class Ke extends
|
|
3102
|
+
class Ke extends H {
|
|
3103
3103
|
constructor(t) {
|
|
3104
3104
|
super(t, {
|
|
3105
3105
|
code: Ke.code,
|
|
@@ -3118,7 +3118,7 @@ Object.defineProperty(Ke, "code", {
|
|
|
3118
3118
|
writable: !0,
|
|
3119
3119
|
value: -32001
|
|
3120
3120
|
});
|
|
3121
|
-
class Ne extends
|
|
3121
|
+
class Ne extends H {
|
|
3122
3122
|
constructor(t) {
|
|
3123
3123
|
super(t, {
|
|
3124
3124
|
code: Ne.code,
|
|
@@ -3137,10 +3137,10 @@ Object.defineProperty(Ne, "code", {
|
|
|
3137
3137
|
writable: !0,
|
|
3138
3138
|
value: -32002
|
|
3139
3139
|
});
|
|
3140
|
-
class
|
|
3140
|
+
class Xe extends H {
|
|
3141
3141
|
constructor(t) {
|
|
3142
3142
|
super(t, {
|
|
3143
|
-
code:
|
|
3143
|
+
code: Xe.code,
|
|
3144
3144
|
shortMessage: "Transaction creation failed."
|
|
3145
3145
|
}), Object.defineProperty(this, "name", {
|
|
3146
3146
|
enumerable: !0,
|
|
@@ -3150,16 +3150,16 @@ class qe extends Z {
|
|
|
3150
3150
|
});
|
|
3151
3151
|
}
|
|
3152
3152
|
}
|
|
3153
|
-
Object.defineProperty(
|
|
3153
|
+
Object.defineProperty(Xe, "code", {
|
|
3154
3154
|
enumerable: !0,
|
|
3155
3155
|
configurable: !0,
|
|
3156
3156
|
writable: !0,
|
|
3157
3157
|
value: -32003
|
|
3158
3158
|
});
|
|
3159
|
-
class
|
|
3159
|
+
class qe extends H {
|
|
3160
3160
|
constructor(t) {
|
|
3161
3161
|
super(t, {
|
|
3162
|
-
code:
|
|
3162
|
+
code: qe.code,
|
|
3163
3163
|
shortMessage: "Method is not implemented."
|
|
3164
3164
|
}), Object.defineProperty(this, "name", {
|
|
3165
3165
|
enumerable: !0,
|
|
@@ -3169,13 +3169,13 @@ class Xe extends Z {
|
|
|
3169
3169
|
});
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
|
-
Object.defineProperty(
|
|
3172
|
+
Object.defineProperty(qe, "code", {
|
|
3173
3173
|
enumerable: !0,
|
|
3174
3174
|
configurable: !0,
|
|
3175
3175
|
writable: !0,
|
|
3176
3176
|
value: -32004
|
|
3177
3177
|
});
|
|
3178
|
-
class $e extends
|
|
3178
|
+
class $e extends H {
|
|
3179
3179
|
constructor(t) {
|
|
3180
3180
|
super(t, {
|
|
3181
3181
|
code: $e.code,
|
|
@@ -3194,7 +3194,7 @@ Object.defineProperty($e, "code", {
|
|
|
3194
3194
|
writable: !0,
|
|
3195
3195
|
value: -32005
|
|
3196
3196
|
});
|
|
3197
|
-
class _e extends
|
|
3197
|
+
class _e extends H {
|
|
3198
3198
|
constructor(t) {
|
|
3199
3199
|
super(t, {
|
|
3200
3200
|
code: _e.code,
|
|
@@ -3327,7 +3327,7 @@ Object.defineProperty(De, "code", {
|
|
|
3327
3327
|
writable: !0,
|
|
3328
3328
|
value: 4902
|
|
3329
3329
|
});
|
|
3330
|
-
class ui extends
|
|
3330
|
+
class ui extends H {
|
|
3331
3331
|
constructor(t) {
|
|
3332
3332
|
super(t, {
|
|
3333
3333
|
shortMessage: "An unknown RPC error occurred."
|
|
@@ -3382,9 +3382,9 @@ class pi extends x {
|
|
|
3382
3382
|
value: typeof h < "u" && `${Gn(h)} ${((p = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : p.symbol) || "ETH"}`,
|
|
3383
3383
|
data: a,
|
|
3384
3384
|
gas: o,
|
|
3385
|
-
gasPrice: typeof i < "u" && `${
|
|
3386
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
3387
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
3385
|
+
gasPrice: typeof i < "u" && `${Z(i)} gwei`,
|
|
3386
|
+
maxFeePerGas: typeof c < "u" && `${Z(c)} gwei`,
|
|
3387
|
+
maxPriorityFeePerGas: typeof l < "u" && `${Z(l)} gwei`,
|
|
3388
3388
|
nonce: u
|
|
3389
3389
|
});
|
|
3390
3390
|
super(t.shortMessage, {
|
|
@@ -3409,11 +3409,11 @@ class pi extends x {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
}
|
|
3411
3411
|
function Wn(e, t) {
|
|
3412
|
-
const n = (e.details || "").toLowerCase(), r = e.walk((s) => s.code ===
|
|
3413
|
-
return r instanceof x ? new
|
|
3412
|
+
const n = (e.details || "").toLowerCase(), r = e.walk((s) => s.code === Ie.code);
|
|
3413
|
+
return r instanceof x ? new Ie({
|
|
3414
3414
|
cause: e,
|
|
3415
3415
|
message: r.details
|
|
3416
|
-
}) :
|
|
3416
|
+
}) : Ie.nodeMessage.test(n) ? new Ie({
|
|
3417
3417
|
cause: e,
|
|
3418
3418
|
message: e.details
|
|
3419
3419
|
}) : ne.nodeMessage.test(n) ? new ne({
|
|
@@ -3440,7 +3440,7 @@ function hi(e, { docsPath: t, ...n }) {
|
|
|
3440
3440
|
...n
|
|
3441
3441
|
});
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function Zn(e, { format: t }) {
|
|
3444
3444
|
if (!t)
|
|
3445
3445
|
return {};
|
|
3446
3446
|
const n = {};
|
|
@@ -3453,7 +3453,7 @@ function Hn(e, { format: t }) {
|
|
|
3453
3453
|
return r(s), n;
|
|
3454
3454
|
}
|
|
3455
3455
|
function mt(e) {
|
|
3456
|
-
const { account: t, gasPrice: n, maxFeePerGas: r, maxPriorityFeePerGas: s, to: a } = e, o = t ?
|
|
3456
|
+
const { account: t, gasPrice: n, maxFeePerGas: r, maxPriorityFeePerGas: s, to: a } = e, o = t ? X(t) : void 0;
|
|
3457
3457
|
if (o && !O(o.address))
|
|
3458
3458
|
throw new R({ address: o.address });
|
|
3459
3459
|
if (a && !O(a))
|
|
@@ -3475,7 +3475,7 @@ class mi extends x {
|
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
|
-
class
|
|
3478
|
+
class Hn extends x {
|
|
3479
3479
|
constructor() {
|
|
3480
3480
|
super("Chain does not support EIP-1559 fees."), Object.defineProperty(this, "name", {
|
|
3481
3481
|
enumerable: !0,
|
|
@@ -3487,7 +3487,7 @@ class Zn extends x {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
class bi extends x {
|
|
3489
3489
|
constructor({ maxPriorityFeePerGas: t }) {
|
|
3490
|
-
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${
|
|
3490
|
+
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Z(t)} gwei).`), Object.defineProperty(this, "name", {
|
|
3491
3491
|
enumerable: !0,
|
|
3492
3492
|
configurable: !0,
|
|
3493
3493
|
writable: !0,
|
|
@@ -3553,7 +3553,7 @@ async function ds(e, t) {
|
|
|
3553
3553
|
E(e, Vn, "getGasPrice")({})
|
|
3554
3554
|
]);
|
|
3555
3555
|
if (typeof c.baseFeePerGas != "bigint")
|
|
3556
|
-
throw new
|
|
3556
|
+
throw new Hn();
|
|
3557
3557
|
const u = l - c.baseFeePerGas;
|
|
3558
3558
|
return u < 0n ? 0n : u;
|
|
3559
3559
|
}
|
|
@@ -3584,7 +3584,7 @@ async function yn(e, t) {
|
|
|
3584
3584
|
});
|
|
3585
3585
|
if (a === "eip1559") {
|
|
3586
3586
|
if (typeof u.baseFeePerGas != "bigint")
|
|
3587
|
-
throw new
|
|
3587
|
+
throw new Hn();
|
|
3588
3588
|
const p = s != null && s.maxPriorityFeePerGas ? s.maxPriorityFeePerGas : await ds(e, {
|
|
3589
3589
|
block: u,
|
|
3590
3590
|
chain: r,
|
|
@@ -3619,7 +3619,7 @@ async function Gt(e, t) {
|
|
|
3619
3619
|
const { account: n = e.account, chain: r, gas: s, nonce: a, type: o } = t;
|
|
3620
3620
|
if (!n)
|
|
3621
3621
|
throw new Se();
|
|
3622
|
-
const i =
|
|
3622
|
+
const i = X(n), c = await E(e, le, "getBlock")({ blockTag: "latest" }), l = { ...t, from: i.address };
|
|
3623
3623
|
if (typeof a > "u" && (l.nonce = await E(e, ps, "getTransactionCount")({
|
|
3624
3624
|
address: i.address,
|
|
3625
3625
|
blockTag: "pending"
|
|
@@ -3642,7 +3642,7 @@ async function Gt(e, t) {
|
|
|
3642
3642
|
l.maxPriorityFeePerGas = d, l.maxFeePerGas = u;
|
|
3643
3643
|
} else {
|
|
3644
3644
|
if (typeof t.maxFeePerGas < "u" || typeof t.maxPriorityFeePerGas < "u")
|
|
3645
|
-
throw new
|
|
3645
|
+
throw new Hn();
|
|
3646
3646
|
const { gasPrice: u } = await yn(e, {
|
|
3647
3647
|
block: c,
|
|
3648
3648
|
chain: r,
|
|
@@ -3663,13 +3663,13 @@ async function Jn(e, t) {
|
|
|
3663
3663
|
throw new Se({
|
|
3664
3664
|
docsPath: "/docs/actions/public/estimateGas"
|
|
3665
3665
|
});
|
|
3666
|
-
const r =
|
|
3666
|
+
const r = X(n);
|
|
3667
3667
|
try {
|
|
3668
3668
|
const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: h, maxFeePerGas: f, maxPriorityFeePerGas: p, nonce: b, to: g, value: w, ...y } = r.type === "local" ? await Gt(e, t) : t, N = (c ? D(c) : void 0) || l;
|
|
3669
3669
|
mt(t);
|
|
3670
3670
|
const A = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, C = (A || lt)({
|
|
3671
3671
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
3672
|
-
...
|
|
3672
|
+
...Zn(y, { format: A }),
|
|
3673
3673
|
from: r.address,
|
|
3674
3674
|
accessList: i,
|
|
3675
3675
|
data: u,
|
|
@@ -3706,7 +3706,7 @@ async function yi(e, { abi: t, address: n, args: r, functionName: s, ...a }) {
|
|
|
3706
3706
|
...a
|
|
3707
3707
|
});
|
|
3708
3708
|
} catch (i) {
|
|
3709
|
-
const c = a.account ?
|
|
3709
|
+
const c = a.account ? X(a.account) : void 0;
|
|
3710
3710
|
throw st(i, {
|
|
3711
3711
|
abi: t,
|
|
3712
3712
|
address: n,
|
|
@@ -3717,17 +3717,17 @@ async function yi(e, { abi: t, address: n, args: r, functionName: s, ...a }) {
|
|
|
3717
3717
|
});
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
|
-
const
|
|
3720
|
+
const Ir = "/docs/contract/decodeEventLog";
|
|
3721
3721
|
function bt({ abi: e, data: t, strict: n, topics: r }) {
|
|
3722
3722
|
const s = n ?? !0, [a, ...o] = r;
|
|
3723
3723
|
if (!a)
|
|
3724
3724
|
throw new wo({
|
|
3725
|
-
docsPath:
|
|
3725
|
+
docsPath: Ir
|
|
3726
3726
|
});
|
|
3727
3727
|
const i = e.find((p) => p.type === "event" && a === Pn(se(p)));
|
|
3728
3728
|
if (!(i && "name" in i) || i.type !== "event")
|
|
3729
3729
|
throw new Mo(a, {
|
|
3730
|
-
docsPath:
|
|
3730
|
+
docsPath: Ir
|
|
3731
3731
|
});
|
|
3732
3732
|
const { name: c, inputs: l } = i, u = l == null ? void 0 : l.some((p) => !("name" in p && p.name));
|
|
3733
3733
|
let d = u ? [] : {};
|
|
@@ -3947,7 +3947,7 @@ const wn = [
|
|
|
3947
3947
|
],
|
|
3948
3948
|
outputs: [{ name: "", type: "string" }]
|
|
3949
3949
|
}
|
|
3950
|
-
],
|
|
3950
|
+
], kr = [
|
|
3951
3951
|
{
|
|
3952
3952
|
name: "addr",
|
|
3953
3953
|
type: "function",
|
|
@@ -3987,7 +3987,7 @@ const wn = [
|
|
|
3987
3987
|
stateMutability: "nonpayable",
|
|
3988
3988
|
type: "constructor"
|
|
3989
3989
|
}
|
|
3990
|
-
],
|
|
3990
|
+
], Ii = "0x82ad56cb";
|
|
3991
3991
|
function Le({ blockNumber: e, chain: t, contract: n }) {
|
|
3992
3992
|
var s;
|
|
3993
3993
|
const r = (s = t == null ? void 0 : t.contracts) == null ? void 0 : s[n];
|
|
@@ -4017,8 +4017,8 @@ function Ai(e, { docsPath: t, ...n }) {
|
|
|
4017
4017
|
...n
|
|
4018
4018
|
});
|
|
4019
4019
|
}
|
|
4020
|
-
const
|
|
4021
|
-
function
|
|
4020
|
+
const Xt = /* @__PURE__ */ new Map();
|
|
4021
|
+
function Xn({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
|
|
4022
4022
|
const a = async () => {
|
|
4023
4023
|
const u = c();
|
|
4024
4024
|
o();
|
|
@@ -4037,7 +4037,7 @@ function qn({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
|
|
|
4037
4037
|
(f = b.reject) == null || f.call(b, h);
|
|
4038
4038
|
}
|
|
4039
4039
|
});
|
|
4040
|
-
}, o = () =>
|
|
4040
|
+
}, o = () => Xt.delete(t), i = () => c().map(({ args: u }) => u), c = () => Xt.get(t) || [], l = (u) => Xt.set(t, [...c(), u]);
|
|
4041
4041
|
return {
|
|
4042
4042
|
flush: o,
|
|
4043
4043
|
async schedule(u) {
|
|
@@ -4050,12 +4050,12 @@ function qn({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
async function Yt(e, t) {
|
|
4052
4052
|
var w, y, M, N;
|
|
4053
|
-
const { account: n = e.account, batch: r = !!((w = e.batch) != null && w.multicall), blockNumber: s, blockTag: a = "latest", accessList: o, data: i, gas: c, gasPrice: l, maxFeePerGas: u, maxPriorityFeePerGas: d, nonce: h, to: f, value: p, ...b } = t, g = n ?
|
|
4053
|
+
const { account: n = e.account, batch: r = !!((w = e.batch) != null && w.multicall), blockNumber: s, blockTag: a = "latest", accessList: o, data: i, gas: c, gasPrice: l, maxFeePerGas: u, maxPriorityFeePerGas: d, nonce: h, to: f, value: p, ...b } = t, g = n ? X(n) : void 0;
|
|
4054
4054
|
try {
|
|
4055
4055
|
mt(t);
|
|
4056
|
-
const
|
|
4056
|
+
const I = (s ? D(s) : void 0) || a, C = (N = (M = (y = e.chain) == null ? void 0 : y.formatters) == null ? void 0 : M.transactionRequest) == null ? void 0 : N.format, B = (C || lt)({
|
|
4057
4057
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
4058
|
-
...
|
|
4058
|
+
...Zn(b, { format: C }),
|
|
4059
4059
|
from: g == null ? void 0 : g.address,
|
|
4060
4060
|
accessList: o,
|
|
4061
4061
|
data: i,
|
|
@@ -4067,26 +4067,26 @@ async function Yt(e, t) {
|
|
|
4067
4067
|
to: f,
|
|
4068
4068
|
value: p
|
|
4069
4069
|
});
|
|
4070
|
-
if (r &&
|
|
4070
|
+
if (r && ki({ request: B }))
|
|
4071
4071
|
try {
|
|
4072
4072
|
return await Ei(e, {
|
|
4073
4073
|
...B,
|
|
4074
4074
|
blockNumber: s,
|
|
4075
4075
|
blockTag: a
|
|
4076
4076
|
});
|
|
4077
|
-
} catch (
|
|
4078
|
-
if (!(
|
|
4079
|
-
throw
|
|
4077
|
+
} catch (q) {
|
|
4078
|
+
if (!(q instanceof Xr) && !(q instanceof sn))
|
|
4079
|
+
throw q;
|
|
4080
4080
|
}
|
|
4081
4081
|
const me = await e.request({
|
|
4082
4082
|
method: "eth_call",
|
|
4083
|
-
params:
|
|
4083
|
+
params: I ? [B, I] : [B]
|
|
4084
4084
|
});
|
|
4085
4085
|
return me === "0x" ? { data: void 0 } : { data: me };
|
|
4086
4086
|
} catch (A) {
|
|
4087
|
-
const
|
|
4088
|
-
if ((
|
|
4089
|
-
return { data: await C(e, { data:
|
|
4087
|
+
const I = Ci(A), { offchainLookup: C, offchainLookupSignature: U } = await import("./ccip-bVd-xAgW.mjs");
|
|
4088
|
+
if ((I == null ? void 0 : I.slice(0, 10)) === U && f)
|
|
4089
|
+
return { data: await C(e, { data: I, to: f }) };
|
|
4090
4090
|
throw Ai(A, {
|
|
4091
4091
|
...t,
|
|
4092
4092
|
account: g,
|
|
@@ -4094,9 +4094,9 @@ async function Yt(e, t) {
|
|
|
4094
4094
|
});
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function ki({ request: e }) {
|
|
4098
4098
|
const { data: t, to: n, ...r } = e;
|
|
4099
|
-
return !(!t || t.startsWith(
|
|
4099
|
+
return !(!t || t.startsWith(Ii) || !n || Object.values(r).filter((s) => typeof s < "u").length > 0);
|
|
4100
4100
|
}
|
|
4101
4101
|
async function Ei(e, t) {
|
|
4102
4102
|
var b;
|
|
@@ -4104,14 +4104,14 @@ async function Ei(e, t) {
|
|
|
4104
4104
|
let l = i;
|
|
4105
4105
|
if (!l) {
|
|
4106
4106
|
if (!e.chain)
|
|
4107
|
-
throw new
|
|
4107
|
+
throw new Xr();
|
|
4108
4108
|
l = Le({
|
|
4109
4109
|
blockNumber: s,
|
|
4110
4110
|
chain: e.chain,
|
|
4111
4111
|
contract: "multicall3"
|
|
4112
4112
|
});
|
|
4113
4113
|
}
|
|
4114
|
-
const d = (s ? D(s) : void 0) || a, { schedule: h } =
|
|
4114
|
+
const d = (s ? D(s) : void 0) || a, { schedule: h } = Xn({
|
|
4115
4115
|
id: `${e.uid}.${d}`,
|
|
4116
4116
|
wait: r,
|
|
4117
4117
|
shouldSplitBatch(g) {
|
|
@@ -4183,7 +4183,7 @@ async function ue(e, { abi: t, address: n, args: r, functionName: s, ...a }) {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
}
|
|
4185
4185
|
async function Ni(e, { abi: t, address: n, args: r, dataSuffix: s, functionName: a, ...o }) {
|
|
4186
|
-
const i = o.account ?
|
|
4186
|
+
const i = o.account ? X(o.account) : void 0, c = he({
|
|
4187
4187
|
abi: t,
|
|
4188
4188
|
args: r,
|
|
4189
4189
|
functionName: a
|
|
@@ -4222,17 +4222,17 @@ async function Ni(e, { abi: t, address: n, args: r, dataSuffix: s, functionName:
|
|
|
4222
4222
|
});
|
|
4223
4223
|
}
|
|
4224
4224
|
}
|
|
4225
|
-
const
|
|
4225
|
+
const qt = /* @__PURE__ */ new Map(), Er = /* @__PURE__ */ new Map();
|
|
4226
4226
|
let Di = 0;
|
|
4227
4227
|
function Pe(e, t, n) {
|
|
4228
|
-
const r = ++Di, s = () =>
|
|
4228
|
+
const r = ++Di, s = () => qt.get(e) || [], a = () => {
|
|
4229
4229
|
const u = s();
|
|
4230
|
-
|
|
4230
|
+
qt.set(e, u.filter((d) => d.id !== r));
|
|
4231
4231
|
}, o = () => {
|
|
4232
4232
|
const u = Er.get(e);
|
|
4233
4233
|
s().length === 1 && u && u(), a();
|
|
4234
4234
|
}, i = s();
|
|
4235
|
-
if (
|
|
4235
|
+
if (qt.set(e, [
|
|
4236
4236
|
...i,
|
|
4237
4237
|
{ id: r, fns: t }
|
|
4238
4238
|
]), i && i.length > 0)
|
|
@@ -4365,12 +4365,12 @@ function Oi(e, { abi: t, address: n, args: r, batch: s = !0, eventName: a, onErr
|
|
|
4365
4365
|
return;
|
|
4366
4366
|
}
|
|
4367
4367
|
try {
|
|
4368
|
-
let
|
|
4368
|
+
let I;
|
|
4369
4369
|
if (y)
|
|
4370
|
-
|
|
4370
|
+
I = await E(e, Rt, "getFilterChanges")({ filter: y });
|
|
4371
4371
|
else {
|
|
4372
4372
|
const C = await E(e, gt, "getBlockNumber")({});
|
|
4373
|
-
w && w !== C ?
|
|
4373
|
+
w && w !== C ? I = await E(e, ms, "getContractEvents")({
|
|
4374
4374
|
abi: t,
|
|
4375
4375
|
address: n,
|
|
4376
4376
|
args: r,
|
|
@@ -4378,17 +4378,17 @@ function Oi(e, { abi: t, address: n, args: r, batch: s = !0, eventName: a, onErr
|
|
|
4378
4378
|
fromBlock: w + 1n,
|
|
4379
4379
|
toBlock: C,
|
|
4380
4380
|
strict: b
|
|
4381
|
-
}) :
|
|
4381
|
+
}) : I = [], w = C;
|
|
4382
4382
|
}
|
|
4383
|
-
if (
|
|
4383
|
+
if (I.length === 0)
|
|
4384
4384
|
return;
|
|
4385
4385
|
if (s)
|
|
4386
|
-
g.onLogs(
|
|
4386
|
+
g.onLogs(I);
|
|
4387
4387
|
else
|
|
4388
|
-
for (const C of
|
|
4388
|
+
for (const C of I)
|
|
4389
4389
|
g.onLogs([C]);
|
|
4390
|
-
} catch (
|
|
4391
|
-
y &&
|
|
4390
|
+
} catch (I) {
|
|
4391
|
+
y && I instanceof ye && (M = !1), (A = g.onError) == null || A.call(g, I);
|
|
4392
4392
|
}
|
|
4393
4393
|
}, {
|
|
4394
4394
|
emitOnBegin: !0,
|
|
@@ -4414,26 +4414,26 @@ function Oi(e, { abi: t, address: n, args: r, batch: s = !0, eventName: a, onErr
|
|
|
4414
4414
|
return;
|
|
4415
4415
|
const M = y.result;
|
|
4416
4416
|
try {
|
|
4417
|
-
const { eventName: A, args:
|
|
4417
|
+
const { eventName: A, args: I } = bt({
|
|
4418
4418
|
abi: t,
|
|
4419
4419
|
data: M.data,
|
|
4420
4420
|
topics: M.topics,
|
|
4421
4421
|
strict: u
|
|
4422
4422
|
}), C = K(M, {
|
|
4423
|
-
args:
|
|
4423
|
+
args: I,
|
|
4424
4424
|
eventName: A
|
|
4425
4425
|
});
|
|
4426
4426
|
i([C]);
|
|
4427
4427
|
} catch (A) {
|
|
4428
|
-
let
|
|
4428
|
+
let I, C;
|
|
4429
4429
|
if (A instanceof ge || A instanceof ve) {
|
|
4430
4430
|
if (u)
|
|
4431
4431
|
return;
|
|
4432
|
-
|
|
4432
|
+
I = A.abiItem.name, C = (N = A.abiItem.inputs) == null ? void 0 : N.some((B) => !("name" in B && B.name));
|
|
4433
4433
|
}
|
|
4434
4434
|
const U = K(M, {
|
|
4435
4435
|
args: C ? [] : {},
|
|
4436
|
-
eventName:
|
|
4436
|
+
eventName: I
|
|
4437
4437
|
});
|
|
4438
4438
|
i([U]);
|
|
4439
4439
|
}
|
|
@@ -4471,7 +4471,7 @@ async function at(e) {
|
|
|
4471
4471
|
});
|
|
4472
4472
|
return F(t);
|
|
4473
4473
|
}
|
|
4474
|
-
async function
|
|
4474
|
+
async function qn(e, { serializedTransaction: t }) {
|
|
4475
4475
|
return e.request({
|
|
4476
4476
|
method: "eth_sendRawTransaction",
|
|
4477
4477
|
params: [t]
|
|
@@ -4484,7 +4484,7 @@ async function $n(e, t) {
|
|
|
4484
4484
|
throw new Se({
|
|
4485
4485
|
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
4486
4486
|
});
|
|
4487
|
-
const p =
|
|
4487
|
+
const p = X(n);
|
|
4488
4488
|
try {
|
|
4489
4489
|
mt(t);
|
|
4490
4490
|
let M;
|
|
@@ -4511,13 +4511,13 @@ async function $n(e, t) {
|
|
|
4511
4511
|
...C,
|
|
4512
4512
|
chainId: M
|
|
4513
4513
|
}, { serializer: U });
|
|
4514
|
-
return await E(e,
|
|
4514
|
+
return await E(e, qn, "sendRawTransaction")({
|
|
4515
4515
|
serializedTransaction: B
|
|
4516
4516
|
});
|
|
4517
4517
|
}
|
|
4518
|
-
const N = (y = (w = (g = e.chain) == null ? void 0 : g.formatters) == null ? void 0 : w.transactionRequest) == null ? void 0 : y.format,
|
|
4518
|
+
const N = (y = (w = (g = e.chain) == null ? void 0 : g.formatters) == null ? void 0 : w.transactionRequest) == null ? void 0 : y.format, I = (N || lt)({
|
|
4519
4519
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
4520
|
-
...
|
|
4520
|
+
...Zn(f, { format: N }),
|
|
4521
4521
|
accessList: s,
|
|
4522
4522
|
data: a,
|
|
4523
4523
|
from: p.address,
|
|
@@ -4531,7 +4531,7 @@ async function $n(e, t) {
|
|
|
4531
4531
|
});
|
|
4532
4532
|
return await e.request({
|
|
4533
4533
|
method: "eth_sendTransaction",
|
|
4534
|
-
params: [
|
|
4534
|
+
params: [I]
|
|
4535
4535
|
});
|
|
4536
4536
|
} catch (M) {
|
|
4537
4537
|
throw Li(M, {
|
|
@@ -4579,7 +4579,7 @@ function Bi(e = 11) {
|
|
|
4579
4579
|
return wt.substring(yt, yt++ + e);
|
|
4580
4580
|
}
|
|
4581
4581
|
function ys(e) {
|
|
4582
|
-
const { batch: t, cacheTime: n = e.pollingInterval ?? 4e3, key: r = "base", name: s = "Base Client", pollingInterval: a = 4e3, type: o = "base" } = e, i = e.chain, c = e.account ?
|
|
4582
|
+
const { batch: t, cacheTime: n = e.pollingInterval ?? 4e3, key: r = "base", name: s = "Base Client", pollingInterval: a = 4e3, type: o = "base" } = e, i = e.chain, c = e.account ? X(e.account) : void 0, { config: l, request: u, value: d } = e.transport({
|
|
4583
4583
|
chain: i,
|
|
4584
4584
|
pollingInterval: a
|
|
4585
4585
|
}), h = { ...l, ...d }, f = {
|
|
@@ -4633,10 +4633,10 @@ function Qi(e, { retryDelay: t = 150, retryCount: n = 3 } = {}) {
|
|
|
4633
4633
|
} catch (s) {
|
|
4634
4634
|
const a = s;
|
|
4635
4635
|
switch (a.code) {
|
|
4636
|
-
case He.code:
|
|
4637
|
-
throw new He(a);
|
|
4638
4636
|
case Ze.code:
|
|
4639
4637
|
throw new Ze(a);
|
|
4638
|
+
case He.code:
|
|
4639
|
+
throw new He(a);
|
|
4640
4640
|
case Ve.code:
|
|
4641
4641
|
throw new Ve(a);
|
|
4642
4642
|
case Je.code:
|
|
@@ -4649,10 +4649,10 @@ function Qi(e, { retryDelay: t = 150, retryCount: n = 3 } = {}) {
|
|
|
4649
4649
|
throw new Ke(a);
|
|
4650
4650
|
case Ne.code:
|
|
4651
4651
|
throw new Ne(a);
|
|
4652
|
-
case qe.code:
|
|
4653
|
-
throw new qe(a);
|
|
4654
4652
|
case Xe.code:
|
|
4655
4653
|
throw new Xe(a);
|
|
4654
|
+
case qe.code:
|
|
4655
|
+
throw new qe(a);
|
|
4656
4656
|
case $e.code:
|
|
4657
4657
|
throw new $e(a);
|
|
4658
4658
|
case _e.code:
|
|
@@ -4689,7 +4689,7 @@ function Qi(e, { retryDelay: t = 150, retryCount: n = 3 } = {}) {
|
|
|
4689
4689
|
shouldRetry: ({ error: s }) => !ws(s)
|
|
4690
4690
|
});
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function Zt({ key: e, name: t, request: n, retryCount: r = 3, retryDelay: s = 150, timeout: a, type: o }, i) {
|
|
4693
4693
|
return {
|
|
4694
4694
|
config: { key: e, name: t, request: n, retryCount: r, retryDelay: s, timeout: a, type: o },
|
|
4695
4695
|
request: Qi(n, { retryCount: r, retryDelay: s }),
|
|
@@ -4698,7 +4698,7 @@ function Ht({ key: e, name: t, request: n, retryCount: r = 3, retryDelay: s = 15
|
|
|
4698
4698
|
}
|
|
4699
4699
|
function Ms(e, t = {}) {
|
|
4700
4700
|
const { key: n = "custom", name: r = "Custom Provider", retryDelay: s } = t;
|
|
4701
|
-
return ({ retryCount: a }) =>
|
|
4701
|
+
return ({ retryCount: a }) => Zt({
|
|
4702
4702
|
key: n,
|
|
4703
4703
|
name: r,
|
|
4704
4704
|
request: e.request.bind(e),
|
|
@@ -4712,7 +4712,7 @@ function Cr(e, t = {}) {
|
|
|
4712
4712
|
return ({ chain: i, pollingInterval: c = 4e3, timeout: l }) => {
|
|
4713
4713
|
let u = e, d = () => {
|
|
4714
4714
|
};
|
|
4715
|
-
const h =
|
|
4715
|
+
const h = Zt({
|
|
4716
4716
|
key: n,
|
|
4717
4717
|
name: r,
|
|
4718
4718
|
async request({ method: f, params: p }) {
|
|
@@ -4782,7 +4782,7 @@ function Fi({ chain: e, interval: t = 4e3, onTransports: n, sampleCount: r = 10,
|
|
|
4782
4782
|
}));
|
|
4783
4783
|
l.push(d), l.length > r && l.shift();
|
|
4784
4784
|
const h = Math.max(...l.map((p) => Math.max(...p.map(({ latency: b }) => b)))), f = a.map((p, b) => {
|
|
4785
|
-
const g = l.map((A) => A[b].latency), y = 1 - g.reduce((A,
|
|
4785
|
+
const g = l.map((A) => A[b].latency), y = 1 - g.reduce((A, I) => A + I, 0) / g.length / h, M = l.map((A) => A[b].success), N = M.reduce((A, I) => A + I, 0) / M.length;
|
|
4786
4786
|
return N === 0 ? [0, b] : [
|
|
4787
4787
|
c * y + i * N,
|
|
4788
4788
|
b
|
|
@@ -4811,7 +4811,7 @@ function Gi() {
|
|
|
4811
4811
|
throw new Error("`WebSocket` is not supported in this environment");
|
|
4812
4812
|
}
|
|
4813
4813
|
const Nr = Gi();
|
|
4814
|
-
function
|
|
4814
|
+
function Is(e, { errorInstance: t = new Error("timed out"), timeout: n, signal: r }) {
|
|
4815
4815
|
return new Promise((s, a) => {
|
|
4816
4816
|
(async () => {
|
|
4817
4817
|
let o;
|
|
@@ -4828,18 +4828,18 @@ function ks(e, { errorInstance: t = new Error("timed out"), timeout: n, signal:
|
|
|
4828
4828
|
})();
|
|
4829
4829
|
});
|
|
4830
4830
|
}
|
|
4831
|
-
let
|
|
4831
|
+
let In = 0;
|
|
4832
4832
|
async function Yi(e, { body: t, fetchOptions: n = {}, timeout: r = 1e4 }) {
|
|
4833
4833
|
var i;
|
|
4834
4834
|
const { headers: s, method: a, signal: o } = n;
|
|
4835
4835
|
try {
|
|
4836
|
-
const c = await
|
|
4836
|
+
const c = await Is(async ({ signal: u }) => await fetch(e, {
|
|
4837
4837
|
...n,
|
|
4838
4838
|
body: Array.isArray(t) ? W(t.map((h) => ({
|
|
4839
4839
|
jsonrpc: "2.0",
|
|
4840
|
-
id: h.id ??
|
|
4840
|
+
id: h.id ?? In++,
|
|
4841
4841
|
...h
|
|
4842
|
-
}))) : W({ jsonrpc: "2.0", id: t.id ??
|
|
4842
|
+
}))) : W({ jsonrpc: "2.0", id: t.id ?? In++, ...t }),
|
|
4843
4843
|
headers: {
|
|
4844
4844
|
...s,
|
|
4845
4845
|
"Content-Type": "application/json"
|
|
@@ -4874,7 +4874,7 @@ async function _t(e) {
|
|
|
4874
4874
|
let t = $t.get(e);
|
|
4875
4875
|
if (t)
|
|
4876
4876
|
return t;
|
|
4877
|
-
const { schedule: n } =
|
|
4877
|
+
const { schedule: n } = Xn({
|
|
4878
4878
|
id: e,
|
|
4879
4879
|
fn: async () => {
|
|
4880
4880
|
const a = new Nr(e), o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), c = ({ data: u }) => {
|
|
@@ -4900,7 +4900,7 @@ function Ri(e, { body: t, onResponse: n }) {
|
|
|
4900
4900
|
url: e.url,
|
|
4901
4901
|
details: "Socket is closed."
|
|
4902
4902
|
});
|
|
4903
|
-
const r =
|
|
4903
|
+
const r = In++, s = ({ data: a }) => {
|
|
4904
4904
|
var i;
|
|
4905
4905
|
const o = JSON.parse(a);
|
|
4906
4906
|
typeof o.id == "number" && r !== o.id || (n == null || n(o), t.method === "eth_subscribe" && typeof o.result == "string" && e.subscriptions.set(o.result, s), t.method === "eth_unsubscribe" && e.subscriptions.delete((i = t.params) == null ? void 0 : i[0]));
|
|
@@ -4908,7 +4908,7 @@ function Ri(e, { body: t, onResponse: n }) {
|
|
|
4908
4908
|
return e.requests.set(r, s), e.send(JSON.stringify({ jsonrpc: "2.0", ...t, id: r })), e;
|
|
4909
4909
|
}
|
|
4910
4910
|
async function Wi(e, { body: t, timeout: n = 1e4 }) {
|
|
4911
|
-
return
|
|
4911
|
+
return Is(() => new Promise((r) => ke.webSocket(e, {
|
|
4912
4912
|
body: t,
|
|
4913
4913
|
onResponse: r
|
|
4914
4914
|
})), {
|
|
@@ -4916,34 +4916,34 @@ async function Wi(e, { body: t, timeout: n = 1e4 }) {
|
|
|
4916
4916
|
timeout: n
|
|
4917
4917
|
});
|
|
4918
4918
|
}
|
|
4919
|
-
const
|
|
4919
|
+
const ke = {
|
|
4920
4920
|
http: Yi,
|
|
4921
4921
|
webSocket: Ri,
|
|
4922
4922
|
webSocketAsync: Wi
|
|
4923
4923
|
};
|
|
4924
|
-
function
|
|
4924
|
+
function Zi(e, t = {}) {
|
|
4925
4925
|
const { batch: n, fetchOptions: r, key: s = "http", name: a = "HTTP JSON-RPC", retryDelay: o } = t;
|
|
4926
4926
|
return ({ chain: i, retryCount: c, timeout: l }) => {
|
|
4927
4927
|
const { batchSize: u = 1e3, wait: d = 0 } = typeof n == "object" ? n : {}, h = t.retryCount ?? c, f = l ?? t.timeout ?? 1e4, p = e || (i == null ? void 0 : i.rpcUrls.default.http[0]);
|
|
4928
4928
|
if (!p)
|
|
4929
4929
|
throw new xs();
|
|
4930
|
-
return
|
|
4930
|
+
return Zt({
|
|
4931
4931
|
key: s,
|
|
4932
4932
|
name: a,
|
|
4933
4933
|
async request({ method: b, params: g }) {
|
|
4934
|
-
const w = { method: b, params: g }, { schedule: y } =
|
|
4934
|
+
const w = { method: b, params: g }, { schedule: y } = Xn({
|
|
4935
4935
|
id: `${e}`,
|
|
4936
4936
|
wait: d,
|
|
4937
|
-
shouldSplitBatch(
|
|
4938
|
-
return
|
|
4937
|
+
shouldSplitBatch(I) {
|
|
4938
|
+
return I.length > u;
|
|
4939
4939
|
},
|
|
4940
|
-
fn: (
|
|
4941
|
-
body:
|
|
4940
|
+
fn: (I) => ke.http(p, {
|
|
4941
|
+
body: I,
|
|
4942
4942
|
fetchOptions: r,
|
|
4943
4943
|
timeout: f
|
|
4944
4944
|
}),
|
|
4945
|
-
sort: (
|
|
4946
|
-
}), M = async (
|
|
4945
|
+
sort: (I, C) => I.id - C.id
|
|
4946
|
+
}), M = async (I) => n ? y(I) : [await ke.http(p, { body: I, fetchOptions: r, timeout: f })], [{ error: N, result: A }] = await M(w);
|
|
4947
4947
|
if (N)
|
|
4948
4948
|
throw new Rn({
|
|
4949
4949
|
body: w,
|
|
@@ -4986,14 +4986,14 @@ function xt(e) {
|
|
|
4986
4986
|
}
|
|
4987
4987
|
return Ee(t);
|
|
4988
4988
|
}
|
|
4989
|
-
function
|
|
4989
|
+
function Hi(e) {
|
|
4990
4990
|
return `[${e.slice(2)}]`;
|
|
4991
4991
|
}
|
|
4992
4992
|
function Vi(e) {
|
|
4993
4993
|
const t = new Uint8Array(32).fill(0);
|
|
4994
4994
|
return e ? As(e) || Y(te(e)) : Ee(t);
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4996
|
+
function Ht(e) {
|
|
4997
4997
|
const t = e.replace(/^\.|\.$/gm, "");
|
|
4998
4998
|
if (t.length === 0)
|
|
4999
4999
|
return new Uint8Array(1);
|
|
@@ -5002,7 +5002,7 @@ function Zt(e) {
|
|
|
5002
5002
|
const s = t.split(".");
|
|
5003
5003
|
for (let a = 0; a < s.length; a++) {
|
|
5004
5004
|
let o = te(s[a]);
|
|
5005
|
-
o.byteLength > 255 && (o = te(
|
|
5005
|
+
o.byteLength > 255 && (o = te(Hi(Vi(s[a])))), n[r] = o.length, n.set(o, r + 1), r += o.length + 1;
|
|
5006
5006
|
}
|
|
5007
5007
|
return n.byteLength !== r + 1 ? n.slice(0, r + 1) : n;
|
|
5008
5008
|
}
|
|
@@ -5019,21 +5019,21 @@ async function Ji(e, { blockNumber: t, blockTag: n, coinType: r, name: s, univer
|
|
|
5019
5019
|
}
|
|
5020
5020
|
try {
|
|
5021
5021
|
const i = he({
|
|
5022
|
-
abi:
|
|
5022
|
+
abi: kr,
|
|
5023
5023
|
functionName: "addr",
|
|
5024
5024
|
...r != null ? { args: [xt(s), BigInt(r)] } : { args: [xt(s)] }
|
|
5025
5025
|
}), c = await E(e, ue, "readContract")({
|
|
5026
5026
|
address: o,
|
|
5027
5027
|
abi: fs,
|
|
5028
5028
|
functionName: "resolve",
|
|
5029
|
-
args: [
|
|
5029
|
+
args: [k(Ht(s)), i],
|
|
5030
5030
|
blockNumber: t,
|
|
5031
5031
|
blockTag: n
|
|
5032
5032
|
});
|
|
5033
5033
|
if (c[0] === "0x")
|
|
5034
5034
|
return null;
|
|
5035
5035
|
const l = Oe({
|
|
5036
|
-
abi:
|
|
5036
|
+
abi: kr,
|
|
5037
5037
|
args: r != null ? [xt(s), BigInt(r)] : void 0,
|
|
5038
5038
|
functionName: "addr",
|
|
5039
5039
|
data: c[0]
|
|
@@ -5081,7 +5081,7 @@ class er extends x {
|
|
|
5081
5081
|
});
|
|
5082
5082
|
}
|
|
5083
5083
|
}
|
|
5084
|
-
class
|
|
5084
|
+
class Xi extends x {
|
|
5085
5085
|
constructor({ namespace: t }) {
|
|
5086
5086
|
super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`), Object.defineProperty(this, "name", {
|
|
5087
5087
|
enumerable: !0,
|
|
@@ -5091,7 +5091,7 @@ class qi extends x {
|
|
|
5091
5091
|
});
|
|
5092
5092
|
}
|
|
5093
5093
|
}
|
|
5094
|
-
const
|
|
5094
|
+
const qi = /(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/, $i = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/, _i = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/, ec = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;
|
|
5095
5095
|
async function tc(e) {
|
|
5096
5096
|
try {
|
|
5097
5097
|
const t = await fetch(e, { method: "HEAD" });
|
|
@@ -5114,11 +5114,11 @@ async function tc(e) {
|
|
|
5114
5114
|
function Dr(e, t) {
|
|
5115
5115
|
return e ? e.endsWith("/") ? e.slice(0, -1) : e : t;
|
|
5116
5116
|
}
|
|
5117
|
-
function
|
|
5117
|
+
function ks({ uri: e, gatewayUrls: t }) {
|
|
5118
5118
|
const n = _i.test(e);
|
|
5119
5119
|
if (n)
|
|
5120
5120
|
return { uri: e, isOnChain: !0, isEncoded: n };
|
|
5121
|
-
const r = Dr(t == null ? void 0 : t.ipfs, "https://ipfs.io"), s = Dr(t == null ? void 0 : t.arweave, "https://arweave.net"), a = e.match(
|
|
5121
|
+
const r = Dr(t == null ? void 0 : t.ipfs, "https://ipfs.io"), s = Dr(t == null ? void 0 : t.arweave, "https://arweave.net"), a = e.match(qi), { protocol: o, subpath: i, target: c, subtarget: l = "" } = (a == null ? void 0 : a.groups) || {}, u = o === "ipns:/" || i === "ipns/", d = o === "ipfs:/" || i === "ipfs/" || $i.test(e);
|
|
5122
5122
|
if (e.startsWith("http") && !u && !d) {
|
|
5123
5123
|
let f = e;
|
|
5124
5124
|
return t != null && t.arweave && (f = e.replace(/https:\/\/arweave.net/g, t == null ? void 0 : t.arweave)), { uri: f, isOnChain: !1, isEncoded: !1 };
|
|
@@ -5161,7 +5161,7 @@ async function nc({ gatewayUrls: e, uri: t }) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
}
|
|
5163
5163
|
async function tr({ gatewayUrls: e, uri: t }) {
|
|
5164
|
-
const { uri: n, isOnChain: r } =
|
|
5164
|
+
const { uri: n, isOnChain: r } = ks({ uri: t, gatewayUrls: e });
|
|
5165
5165
|
if (r || await tc(n))
|
|
5166
5166
|
return n;
|
|
5167
5167
|
throw new er({ uri: t });
|
|
@@ -5220,13 +5220,13 @@ async function sc(e, { nft: t }) {
|
|
|
5220
5220
|
functionName: "uri",
|
|
5221
5221
|
args: [BigInt(t.tokenID)]
|
|
5222
5222
|
});
|
|
5223
|
-
throw new
|
|
5223
|
+
throw new Xi({ namespace: t.namespace });
|
|
5224
5224
|
}
|
|
5225
5225
|
async function ac(e, { gatewayUrls: t, record: n }) {
|
|
5226
5226
|
return /eip155:/i.test(n) ? oc(e, { gatewayUrls: t, record: n }) : tr({ uri: n, gatewayUrls: t });
|
|
5227
5227
|
}
|
|
5228
5228
|
async function oc(e, { gatewayUrls: t, record: n }) {
|
|
5229
|
-
const r = rc(n), s = await sc(e, { nft: r }), { uri: a, isOnChain: o, isEncoded: i } =
|
|
5229
|
+
const r = rc(n), s = await sc(e, { nft: r }), { uri: a, isOnChain: o, isEncoded: i } = ks({ uri: s, gatewayUrls: t });
|
|
5230
5230
|
if (o && (a.includes("data:application/json;base64,") || a.startsWith("{"))) {
|
|
5231
5231
|
const l = i ? (
|
|
5232
5232
|
// if it is encoded, decode it
|
|
@@ -5260,7 +5260,7 @@ async function Cs(e, { blockNumber: t, blockTag: n, name: r, key: s, universalRe
|
|
|
5260
5260
|
abi: fs,
|
|
5261
5261
|
functionName: "resolve",
|
|
5262
5262
|
args: [
|
|
5263
|
-
|
|
5263
|
+
k(Ht(r)),
|
|
5264
5264
|
he({
|
|
5265
5265
|
abi: Ar,
|
|
5266
5266
|
functionName: "text",
|
|
@@ -5317,7 +5317,7 @@ async function cc(e, { address: t, blockNumber: n, blockTag: r, universalResolve
|
|
|
5317
5317
|
address: a,
|
|
5318
5318
|
abi: Mi,
|
|
5319
5319
|
functionName: "reverse",
|
|
5320
|
-
args: [
|
|
5320
|
+
args: [k(Ht(o))],
|
|
5321
5321
|
blockNumber: n,
|
|
5322
5322
|
blockTag: r
|
|
5323
5323
|
});
|
|
@@ -5351,7 +5351,7 @@ async function lc(e, { blockNumber: t, blockTag: n, name: r, universalResolverAd
|
|
|
5351
5351
|
}
|
|
5352
5352
|
],
|
|
5353
5353
|
functionName: "findResolver",
|
|
5354
|
-
args: [
|
|
5354
|
+
args: [k(Ht(r))],
|
|
5355
5355
|
blockNumber: t,
|
|
5356
5356
|
blockTag: n
|
|
5357
5357
|
});
|
|
@@ -5531,10 +5531,10 @@ function Ts({ data: e, primaryType: t, types: n }) {
|
|
|
5531
5531
|
return ut(r, s);
|
|
5532
5532
|
}
|
|
5533
5533
|
function xc({ primaryType: e, types: t }) {
|
|
5534
|
-
const n =
|
|
5534
|
+
const n = k(Ic({ primaryType: e, types: t }));
|
|
5535
5535
|
return Y(n);
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function Ic({ primaryType: e, types: t }) {
|
|
5538
5538
|
let n = "";
|
|
5539
5539
|
const r = vs({ primaryType: e, types: t });
|
|
5540
5540
|
r.delete(e);
|
|
@@ -5561,7 +5561,7 @@ function zs({ types: e, name: t, type: n, value: r }) {
|
|
|
5561
5561
|
if (n === "bytes")
|
|
5562
5562
|
return r = `0x${(r.length % 2 ? "0" : "") + r.slice(2)}`, [{ type: "bytes32" }, Y(r)];
|
|
5563
5563
|
if (n === "string")
|
|
5564
|
-
return [{ type: "bytes32" }, Y(
|
|
5564
|
+
return [{ type: "bytes32" }, Y(k(r))];
|
|
5565
5565
|
if (n.lastIndexOf("]") === n.length - 1) {
|
|
5566
5566
|
const s = n.slice(0, n.lastIndexOf("[")), a = r.map((o) => zs({
|
|
5567
5567
|
name: t,
|
|
@@ -5656,7 +5656,7 @@ class Ac extends x {
|
|
|
5656
5656
|
});
|
|
5657
5657
|
}
|
|
5658
5658
|
}
|
|
5659
|
-
const
|
|
5659
|
+
const kc = {
|
|
5660
5660
|
bytes: new Uint8Array(),
|
|
5661
5661
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
5662
5662
|
position: 0,
|
|
@@ -5750,7 +5750,7 @@ const Ic = {
|
|
|
5750
5750
|
}
|
|
5751
5751
|
};
|
|
5752
5752
|
function Ec(e) {
|
|
5753
|
-
const t = Object.create(
|
|
5753
|
+
const t = Object.create(kc);
|
|
5754
5754
|
return t.bytes = e, t.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), t;
|
|
5755
5755
|
}
|
|
5756
5756
|
const Cc = `Ethereum Signed Message:
|
|
@@ -5819,18 +5819,18 @@ function vc(e, t) {
|
|
|
5819
5819
|
const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, data: u } = e;
|
|
5820
5820
|
Dc(e);
|
|
5821
5821
|
const d = Vt(l), h = [
|
|
5822
|
-
|
|
5823
|
-
s ?
|
|
5824
|
-
c ?
|
|
5825
|
-
i ?
|
|
5826
|
-
r ?
|
|
5822
|
+
k(n),
|
|
5823
|
+
s ? k(s) : "0x",
|
|
5824
|
+
c ? k(c) : "0x",
|
|
5825
|
+
i ? k(i) : "0x",
|
|
5826
|
+
r ? k(r) : "0x",
|
|
5827
5827
|
a ?? "0x",
|
|
5828
|
-
o ?
|
|
5828
|
+
o ? k(o) : "0x",
|
|
5829
5829
|
u ?? "0x",
|
|
5830
5830
|
d
|
|
5831
5831
|
];
|
|
5832
5832
|
if (t) {
|
|
5833
|
-
const f = t.v === 0n ? "0x" : t.v === 1n ?
|
|
5833
|
+
const f = t.v === 0n ? "0x" : t.v === 1n ? k(1) : t.v === 27n ? "0x" : k(1);
|
|
5834
5834
|
h.push(f, G(t.r), G(t.s));
|
|
5835
5835
|
}
|
|
5836
5836
|
return pe([
|
|
@@ -5842,17 +5842,17 @@ function zc(e, t) {
|
|
|
5842
5842
|
const { chainId: n, gas: r, data: s, nonce: a, to: o, value: i, accessList: c, gasPrice: l } = e;
|
|
5843
5843
|
jc(e);
|
|
5844
5844
|
const u = Vt(c), d = [
|
|
5845
|
-
|
|
5846
|
-
a ?
|
|
5847
|
-
l ?
|
|
5848
|
-
r ?
|
|
5845
|
+
k(n),
|
|
5846
|
+
a ? k(a) : "0x",
|
|
5847
|
+
l ? k(l) : "0x",
|
|
5848
|
+
r ? k(r) : "0x",
|
|
5849
5849
|
o ?? "0x",
|
|
5850
|
-
i ?
|
|
5850
|
+
i ? k(i) : "0x",
|
|
5851
5851
|
s ?? "0x",
|
|
5852
5852
|
u
|
|
5853
5853
|
];
|
|
5854
5854
|
if (t) {
|
|
5855
|
-
const h = t.v === 0n ? "0x" : t.v === 1n ?
|
|
5855
|
+
const h = t.v === 0n ? "0x" : t.v === 1n ? k(1) : t.v === 27n ? "0x" : k(1);
|
|
5856
5856
|
d.push(h, G(t.r), G(t.s));
|
|
5857
5857
|
}
|
|
5858
5858
|
return pe([
|
|
@@ -5864,11 +5864,11 @@ function Sc(e, t) {
|
|
|
5864
5864
|
const { chainId: n = 0, gas: r, data: s, nonce: a, to: o, value: i, gasPrice: c } = e;
|
|
5865
5865
|
Tc(e);
|
|
5866
5866
|
let l = [
|
|
5867
|
-
a ?
|
|
5868
|
-
c ?
|
|
5869
|
-
r ?
|
|
5867
|
+
a ? k(a) : "0x",
|
|
5868
|
+
c ? k(c) : "0x",
|
|
5869
|
+
r ? k(r) : "0x",
|
|
5870
5870
|
o ?? "0x",
|
|
5871
|
-
i ?
|
|
5871
|
+
i ? k(i) : "0x",
|
|
5872
5872
|
s ?? "0x"
|
|
5873
5873
|
];
|
|
5874
5874
|
if (t) {
|
|
@@ -5884,14 +5884,14 @@ function Sc(e, t) {
|
|
|
5884
5884
|
})();
|
|
5885
5885
|
l = [
|
|
5886
5886
|
...l,
|
|
5887
|
-
|
|
5887
|
+
k(u),
|
|
5888
5888
|
t.r,
|
|
5889
5889
|
t.s
|
|
5890
5890
|
];
|
|
5891
5891
|
} else
|
|
5892
5892
|
n > 0 && (l = [
|
|
5893
5893
|
...l,
|
|
5894
|
-
|
|
5894
|
+
k(n),
|
|
5895
5895
|
"0x",
|
|
5896
5896
|
"0x"
|
|
5897
5897
|
]);
|
|
@@ -6000,7 +6000,7 @@ async function Qc(e, t) {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
];
|
|
6002
6002
|
} catch (A) {
|
|
6003
|
-
const
|
|
6003
|
+
const I = st(A, {
|
|
6004
6004
|
abi: w,
|
|
6005
6005
|
address: y,
|
|
6006
6006
|
args: M,
|
|
@@ -6008,7 +6008,7 @@ async function Qc(e, t) {
|
|
|
6008
6008
|
functionName: N
|
|
6009
6009
|
});
|
|
6010
6010
|
if (!n)
|
|
6011
|
-
throw
|
|
6011
|
+
throw I;
|
|
6012
6012
|
u[d] = [
|
|
6013
6013
|
...u[d],
|
|
6014
6014
|
{
|
|
@@ -6042,21 +6042,21 @@ async function Qc(e, t) {
|
|
|
6042
6042
|
}
|
|
6043
6043
|
const y = w.value;
|
|
6044
6044
|
for (let M = 0; M < y.length; M++) {
|
|
6045
|
-
const { returnData: N, success: A } = y[M], { callData:
|
|
6045
|
+
const { returnData: N, success: A } = y[M], { callData: I } = u[g][M], { abi: C, address: U, functionName: B, args: me } = o[p.length];
|
|
6046
6046
|
try {
|
|
6047
|
-
if (
|
|
6047
|
+
if (I === "0x")
|
|
6048
6048
|
throw new Ut();
|
|
6049
6049
|
if (!A)
|
|
6050
6050
|
throw new Yn({ data: N });
|
|
6051
|
-
const
|
|
6051
|
+
const q = Oe({
|
|
6052
6052
|
abi: C,
|
|
6053
6053
|
args: me,
|
|
6054
6054
|
data: N,
|
|
6055
6055
|
functionName: B
|
|
6056
6056
|
});
|
|
6057
|
-
p.push(n ? { result:
|
|
6058
|
-
} catch (
|
|
6059
|
-
const hr = st(
|
|
6057
|
+
p.push(n ? { result: q, status: "success" } : q);
|
|
6058
|
+
} catch (q) {
|
|
6059
|
+
const hr = st(q, {
|
|
6060
6060
|
abi: C,
|
|
6061
6061
|
address: U,
|
|
6062
6062
|
args: me,
|
|
@@ -6079,7 +6079,7 @@ function Gc(e, t) {
|
|
|
6079
6079
|
return ra(n, r);
|
|
6080
6080
|
}
|
|
6081
6081
|
async function Us(e, { address: t, hash: n, signature: r, ...s }) {
|
|
6082
|
-
const a = _(r) ? r :
|
|
6082
|
+
const a = _(r) ? r : k(r);
|
|
6083
6083
|
try {
|
|
6084
6084
|
const { data: o } = await E(e, Yt, "call")({
|
|
6085
6085
|
data: Ls({
|
|
@@ -6221,11 +6221,11 @@ async function Wc(e, { confirmations: t = 1, hash: n, onReplaced: r, pollingInte
|
|
|
6221
6221
|
hash: A.hash
|
|
6222
6222
|
}), t > 1 && (!l.blockNumber || w - l.blockNumber + 1n < t)))
|
|
6223
6223
|
return;
|
|
6224
|
-
let
|
|
6225
|
-
A.to === c.to && A.value === c.value ?
|
|
6224
|
+
let I = "replaced";
|
|
6225
|
+
A.to === c.to && A.value === c.value ? I = "repriced" : A.from === A.to && A.value === 0n && (I = "cancelled"), y(() => {
|
|
6226
6226
|
var C;
|
|
6227
6227
|
(C = p.onReplaced) == null || C.call(p, {
|
|
6228
|
-
reason:
|
|
6228
|
+
reason: I,
|
|
6229
6229
|
replacedTransaction: c,
|
|
6230
6230
|
transaction: A,
|
|
6231
6231
|
transactionReceipt: l
|
|
@@ -6242,7 +6242,7 @@ async function Wc(e, { confirmations: t = 1, hash: n, onReplaced: r, pollingInte
|
|
|
6242
6242
|
});
|
|
6243
6243
|
});
|
|
6244
6244
|
}
|
|
6245
|
-
function
|
|
6245
|
+
function Zc(e, { blockTag: t = "latest", emitMissed: n = !1, emitOnBegin: r = !1, onBlock: s, onError: a, includeTransactions: o, poll: i, pollingInterval: c = e.pollingInterval }) {
|
|
6246
6246
|
const l = typeof i < "u" ? i : e.transport.type !== "webSocket", u = o ?? !1;
|
|
6247
6247
|
let d;
|
|
6248
6248
|
return l ? (() => {
|
|
@@ -6292,10 +6292,10 @@ function Hc(e, { blockTag: t = "latest", emitMissed: n = !1, emitOnBegin: r = !1
|
|
|
6292
6292
|
const { unsubscribe: g } = await e.transport.subscribe({
|
|
6293
6293
|
params: ["newHeads"],
|
|
6294
6294
|
onData(w) {
|
|
6295
|
-
var N, A,
|
|
6295
|
+
var N, A, I;
|
|
6296
6296
|
if (!p)
|
|
6297
6297
|
return;
|
|
6298
|
-
const M = (((
|
|
6298
|
+
const M = (((I = (A = (N = e.chain) == null ? void 0 : N.formatters) == null ? void 0 : A.block) == null ? void 0 : I.format) || zn)(w.result);
|
|
6299
6299
|
s(M, d), d = M;
|
|
6300
6300
|
},
|
|
6301
6301
|
onError(w) {
|
|
@@ -6309,7 +6309,7 @@ function Hc(e, { blockTag: t = "latest", emitMissed: n = !1, emitOnBegin: r = !1
|
|
|
6309
6309
|
})(), b;
|
|
6310
6310
|
})();
|
|
6311
6311
|
}
|
|
6312
|
-
function
|
|
6312
|
+
function Hc(e, { address: t, args: n, batch: r = !0, event: s, events: a, onError: o, onLogs: i, poll: c, pollingInterval: l = e.pollingInterval, strict: u }) {
|
|
6313
6313
|
const d = typeof c < "u" ? c : e.transport.type !== "webSocket", h = u ?? !1;
|
|
6314
6314
|
return d ? (() => {
|
|
6315
6315
|
const b = W([
|
|
@@ -6340,29 +6340,29 @@ function Zc(e, { address: t, args: n, batch: r = !0, event: s, events: a, onErro
|
|
|
6340
6340
|
return;
|
|
6341
6341
|
}
|
|
6342
6342
|
try {
|
|
6343
|
-
let
|
|
6343
|
+
let I;
|
|
6344
6344
|
if (y)
|
|
6345
|
-
|
|
6345
|
+
I = await E(e, Rt, "getFilterChanges")({ filter: y });
|
|
6346
6346
|
else {
|
|
6347
6347
|
const C = await E(e, gt, "getBlockNumber")({});
|
|
6348
|
-
w && w !== C ?
|
|
6348
|
+
w && w !== C ? I = await E(e, Kn, "getLogs")({
|
|
6349
6349
|
address: t,
|
|
6350
6350
|
args: n,
|
|
6351
6351
|
event: s,
|
|
6352
6352
|
events: a,
|
|
6353
6353
|
fromBlock: w + 1n,
|
|
6354
6354
|
toBlock: C
|
|
6355
|
-
}) :
|
|
6355
|
+
}) : I = [], w = C;
|
|
6356
6356
|
}
|
|
6357
|
-
if (
|
|
6357
|
+
if (I.length === 0)
|
|
6358
6358
|
return;
|
|
6359
6359
|
if (r)
|
|
6360
|
-
g.onLogs(
|
|
6360
|
+
g.onLogs(I);
|
|
6361
6361
|
else
|
|
6362
|
-
for (const C of
|
|
6362
|
+
for (const C of I)
|
|
6363
6363
|
g.onLogs([C]);
|
|
6364
|
-
} catch (
|
|
6365
|
-
y &&
|
|
6364
|
+
} catch (I) {
|
|
6365
|
+
y && I instanceof ye && (M = !1), (A = g.onError) == null || A.call(g, I);
|
|
6366
6366
|
}
|
|
6367
6367
|
}, {
|
|
6368
6368
|
emitOnBegin: !0,
|
|
@@ -6388,7 +6388,7 @@ function Zc(e, { address: t, args: n, batch: r = !0, event: s, events: a, onErro
|
|
|
6388
6388
|
const { unsubscribe: M } = await e.transport.subscribe({
|
|
6389
6389
|
params: ["logs", { address: t, topics: y }],
|
|
6390
6390
|
onData(N) {
|
|
6391
|
-
var
|
|
6391
|
+
var I;
|
|
6392
6392
|
if (!b)
|
|
6393
6393
|
return;
|
|
6394
6394
|
const A = N.result;
|
|
@@ -6408,7 +6408,7 @@ function Zc(e, { address: t, args: n, batch: r = !0, event: s, events: a, onErro
|
|
|
6408
6408
|
if (C instanceof ge || C instanceof ve) {
|
|
6409
6409
|
if (u)
|
|
6410
6410
|
return;
|
|
6411
|
-
U = C.abiItem.name, B = (
|
|
6411
|
+
U = C.abiItem.name, B = (I = C.abiItem.inputs) == null ? void 0 : I.some((q) => !("name" in q && q.name));
|
|
6412
6412
|
}
|
|
6413
6413
|
const me = K(A, {
|
|
6414
6414
|
args: B ? [] : {},
|
|
@@ -6527,16 +6527,16 @@ function Jc(e) {
|
|
|
6527
6527
|
multicall: (t) => Qc(e, t),
|
|
6528
6528
|
prepareTransactionRequest: (t) => Gt(e, t),
|
|
6529
6529
|
readContract: (t) => ue(e, t),
|
|
6530
|
-
sendRawTransaction: (t) =>
|
|
6530
|
+
sendRawTransaction: (t) => qn(e, t),
|
|
6531
6531
|
simulateContract: (t) => Ni(e, t),
|
|
6532
6532
|
verifyMessage: (t) => Yc(e, t),
|
|
6533
6533
|
verifyTypedData: (t) => Rc(e, t),
|
|
6534
6534
|
uninstallFilter: (t) => Wt(e, t),
|
|
6535
6535
|
waitForTransactionReceipt: (t) => Wc(e, t),
|
|
6536
|
-
watchBlocks: (t) =>
|
|
6536
|
+
watchBlocks: (t) => Zc(e, t),
|
|
6537
6537
|
watchBlockNumber: (t) => Bs(e, t),
|
|
6538
6538
|
watchContractEvent: (t) => Oi(e, t),
|
|
6539
|
-
watchEvent: (t) =>
|
|
6539
|
+
watchEvent: (t) => Hc(e, t),
|
|
6540
6540
|
watchPendingTransactions: (t) => Vc(e, t)
|
|
6541
6541
|
};
|
|
6542
6542
|
}
|
|
@@ -6560,11 +6560,11 @@ function Kc(e, { abi: t, args: n, bytecode: r, ...s }) {
|
|
|
6560
6560
|
data: a
|
|
6561
6561
|
});
|
|
6562
6562
|
}
|
|
6563
|
-
async function
|
|
6563
|
+
async function Xc(e) {
|
|
6564
6564
|
var n;
|
|
6565
6565
|
return ((n = e.account) == null ? void 0 : n.type) === "local" ? [e.account.address] : (await e.request({ method: "eth_accounts" })).map((r) => Fn(r));
|
|
6566
6566
|
}
|
|
6567
|
-
async function
|
|
6567
|
+
async function qc(e) {
|
|
6568
6568
|
return await e.request({ method: "wallet_getPermissions" });
|
|
6569
6569
|
}
|
|
6570
6570
|
async function $c(e) {
|
|
@@ -6581,10 +6581,10 @@ async function el(e, { account: t = e.account, message: n }) {
|
|
|
6581
6581
|
throw new Se({
|
|
6582
6582
|
docsPath: "/docs/actions/wallet/signMessage"
|
|
6583
6583
|
});
|
|
6584
|
-
const r =
|
|
6584
|
+
const r = X(t);
|
|
6585
6585
|
if (r.type === "local")
|
|
6586
6586
|
return r.signMessage({ message: n });
|
|
6587
|
-
const s = typeof n == "string" ? Tn(n) : n.raw instanceof Uint8Array ?
|
|
6587
|
+
const s = typeof n == "string" ? Tn(n) : n.raw instanceof Uint8Array ? k(n.raw) : n.raw;
|
|
6588
6588
|
return e.request({
|
|
6589
6589
|
method: "personal_sign",
|
|
6590
6590
|
params: [s, r.address]
|
|
@@ -6597,7 +6597,7 @@ async function tl(e, t) {
|
|
|
6597
6597
|
throw new Se({
|
|
6598
6598
|
docsPath: "/docs/actions/wallet/signTransaction"
|
|
6599
6599
|
});
|
|
6600
|
-
const a =
|
|
6600
|
+
const a = X(n);
|
|
6601
6601
|
mt({
|
|
6602
6602
|
account: a,
|
|
6603
6603
|
...t
|
|
@@ -6627,7 +6627,7 @@ async function nl(e, { account: t = e.account, domain: n, message: r, primaryTyp
|
|
|
6627
6627
|
throw new Se({
|
|
6628
6628
|
docsPath: "/docs/actions/wallet/signTypedData"
|
|
6629
6629
|
});
|
|
6630
|
-
const o =
|
|
6630
|
+
const o = X(t), i = {
|
|
6631
6631
|
EIP712Domain: Os({ domain: n }),
|
|
6632
6632
|
...a
|
|
6633
6633
|
};
|
|
@@ -6669,13 +6669,13 @@ function al(e) {
|
|
|
6669
6669
|
return {
|
|
6670
6670
|
addChain: (t) => Ui(e, t),
|
|
6671
6671
|
deployContract: (t) => Kc(e, t),
|
|
6672
|
-
getAddresses: () =>
|
|
6672
|
+
getAddresses: () => Xc(e),
|
|
6673
6673
|
getChainId: () => at(e),
|
|
6674
|
-
getPermissions: () =>
|
|
6674
|
+
getPermissions: () => qc(e),
|
|
6675
6675
|
prepareTransactionRequest: (t) => Gt(e, t),
|
|
6676
6676
|
requestAddresses: () => $c(e),
|
|
6677
6677
|
requestPermissions: (t) => _c(e, t),
|
|
6678
|
-
sendRawTransaction: (t) =>
|
|
6678
|
+
sendRawTransaction: (t) => qn(e, t),
|
|
6679
6679
|
sendTransaction: (t) => $n(e, t),
|
|
6680
6680
|
signMessage: (t) => el(e, t),
|
|
6681
6681
|
signTransaction: (t) => tl(e, t),
|
|
@@ -6702,11 +6702,11 @@ function ol(e, t = {}) {
|
|
|
6702
6702
|
const c = t.retryCount ?? o, l = i ?? t.timeout ?? 1e4, u = e || ((d = a == null ? void 0 : a.rpcUrls.default.webSocket) == null ? void 0 : d[0]);
|
|
6703
6703
|
if (!u)
|
|
6704
6704
|
throw new xs();
|
|
6705
|
-
return
|
|
6705
|
+
return Zt({
|
|
6706
6706
|
key: n,
|
|
6707
6707
|
name: r,
|
|
6708
6708
|
async request({ method: h, params: f }) {
|
|
6709
|
-
const p = { method: h, params: f }, b = await _t(u), { error: g, result: w } = await
|
|
6709
|
+
const p = { method: h, params: f }, b = await _t(u), { error: g, result: w } = await ke.webSocketAsync(b, {
|
|
6710
6710
|
body: p,
|
|
6711
6711
|
timeout: l
|
|
6712
6712
|
});
|
|
@@ -6727,7 +6727,7 @@ function ol(e, t = {}) {
|
|
|
6727
6727
|
return _t(u);
|
|
6728
6728
|
},
|
|
6729
6729
|
async subscribe({ params: h, onData: f, onError: p }) {
|
|
6730
|
-
const b = await _t(u), { result: g } = await new Promise((w, y) =>
|
|
6730
|
+
const b = await _t(u), { result: g } = await new Promise((w, y) => ke.webSocket(b, {
|
|
6731
6731
|
body: {
|
|
6732
6732
|
method: "eth_subscribe",
|
|
6733
6733
|
params: h
|
|
@@ -6747,7 +6747,7 @@ function ol(e, t = {}) {
|
|
|
6747
6747
|
return {
|
|
6748
6748
|
subscriptionId: g,
|
|
6749
6749
|
async unsubscribe() {
|
|
6750
|
-
return new Promise((w) =>
|
|
6750
|
+
return new Promise((w) => ke.webSocket(b, {
|
|
6751
6751
|
body: {
|
|
6752
6752
|
method: "eth_unsubscribe",
|
|
6753
6753
|
params: [g]
|
|
@@ -6804,21 +6804,21 @@ const ll = (e, t) => Kr(e) ? dl(e, t) : Jr(e) ? ul(e, t) : Ps(e, t), rr = {
|
|
|
6804
6804
|
function ul(e, t) {
|
|
6805
6805
|
pl(e);
|
|
6806
6806
|
const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, feeCurrency: u, gatewayFeeRecipient: d, gatewayFee: h, data: f } = e, p = [
|
|
6807
|
-
|
|
6808
|
-
s ?
|
|
6809
|
-
c ?
|
|
6810
|
-
i ?
|
|
6811
|
-
r ?
|
|
6807
|
+
k(n),
|
|
6808
|
+
s ? k(s) : "0x",
|
|
6809
|
+
c ? k(c) : "0x",
|
|
6810
|
+
i ? k(i) : "0x",
|
|
6811
|
+
r ? k(r) : "0x",
|
|
6812
6812
|
u ?? "0x",
|
|
6813
6813
|
d ?? "0x",
|
|
6814
|
-
h ?
|
|
6814
|
+
h ? k(h) : "0x",
|
|
6815
6815
|
a ?? "0x",
|
|
6816
|
-
o ?
|
|
6816
|
+
o ? k(o) : "0x",
|
|
6817
6817
|
f ?? "0x",
|
|
6818
6818
|
Vt(l)
|
|
6819
6819
|
];
|
|
6820
6820
|
return t && p.push(
|
|
6821
|
-
t.v === 27n ? "0x" :
|
|
6821
|
+
t.v === 27n ? "0x" : k(1),
|
|
6822
6822
|
// yParity
|
|
6823
6823
|
G(t.r),
|
|
6824
6824
|
G(t.s)
|
|
@@ -6830,19 +6830,19 @@ function ul(e, t) {
|
|
|
6830
6830
|
function dl(e, t) {
|
|
6831
6831
|
hl(e);
|
|
6832
6832
|
const { chainId: n, gas: r, nonce: s, to: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, accessList: l, feeCurrency: u, data: d } = e, h = [
|
|
6833
|
-
|
|
6834
|
-
s ?
|
|
6835
|
-
c ?
|
|
6836
|
-
i ?
|
|
6837
|
-
r ?
|
|
6833
|
+
k(n),
|
|
6834
|
+
s ? k(s) : "0x",
|
|
6835
|
+
c ? k(c) : "0x",
|
|
6836
|
+
i ? k(i) : "0x",
|
|
6837
|
+
r ? k(r) : "0x",
|
|
6838
6838
|
a ?? "0x",
|
|
6839
|
-
o ?
|
|
6839
|
+
o ? k(o) : "0x",
|
|
6840
6840
|
d ?? "0x",
|
|
6841
6841
|
Vt(l),
|
|
6842
6842
|
u
|
|
6843
6843
|
];
|
|
6844
6844
|
return t && h.push(
|
|
6845
|
-
t.v === 27n ? "0x" :
|
|
6845
|
+
t.v === 27n ? "0x" : k(1),
|
|
6846
6846
|
// yParity
|
|
6847
6847
|
G(t.r),
|
|
6848
6848
|
G(t.s)
|
|
@@ -7116,7 +7116,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7116
7116
|
}
|
|
7117
7117
|
},
|
|
7118
7118
|
testnet: !1
|
|
7119
|
-
}),
|
|
7119
|
+
}), Il = /* @__PURE__ */ m({
|
|
7120
7120
|
id: 25,
|
|
7121
7121
|
name: "Cronos Mainnet",
|
|
7122
7122
|
network: "cronos",
|
|
@@ -7164,7 +7164,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7164
7164
|
}
|
|
7165
7165
|
},
|
|
7166
7166
|
testnet: !0
|
|
7167
|
-
}),
|
|
7167
|
+
}), kl = /* @__PURE__ */ m({
|
|
7168
7168
|
id: 3737,
|
|
7169
7169
|
network: "crossbell",
|
|
7170
7170
|
name: "Crossbell",
|
|
@@ -7611,7 +7611,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7611
7611
|
webSocket: ["ws://127.0.0.1:8545"]
|
|
7612
7612
|
}
|
|
7613
7613
|
}
|
|
7614
|
-
}),
|
|
7614
|
+
}), Zl = /* @__PURE__ */ m({
|
|
7615
7615
|
id: 122,
|
|
7616
7616
|
name: "Fuse",
|
|
7617
7617
|
network: "fuse",
|
|
@@ -7629,7 +7629,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7629
7629
|
blockCreated: 16146628
|
|
7630
7630
|
}
|
|
7631
7631
|
}
|
|
7632
|
-
}),
|
|
7632
|
+
}), Hl = /* @__PURE__ */ m({
|
|
7633
7633
|
id: 123,
|
|
7634
7634
|
name: "Fuse Sparknet",
|
|
7635
7635
|
network: "fuse",
|
|
@@ -7714,7 +7714,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7714
7714
|
}
|
|
7715
7715
|
},
|
|
7716
7716
|
testnet: !1
|
|
7717
|
-
}),
|
|
7717
|
+
}), Xl = /* @__PURE__ */ m({
|
|
7718
7718
|
id: 686,
|
|
7719
7719
|
name: "Karura",
|
|
7720
7720
|
network: "karura",
|
|
@@ -7740,7 +7740,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
7740
7740
|
}
|
|
7741
7741
|
},
|
|
7742
7742
|
testnet: !1
|
|
7743
|
-
}),
|
|
7743
|
+
}), ql = /* @__PURE__ */ m({
|
|
7744
7744
|
id: 1663,
|
|
7745
7745
|
name: "Horizen Gobi Testnet",
|
|
7746
7746
|
network: "gobi",
|
|
@@ -8442,7 +8442,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
8442
8442
|
url: "https://scan-warringstakes.meter.io"
|
|
8443
8443
|
}
|
|
8444
8444
|
}
|
|
8445
|
-
}),
|
|
8445
|
+
}), Iu = /* @__PURE__ */ m({
|
|
8446
8446
|
id: 1088,
|
|
8447
8447
|
name: "Metis",
|
|
8448
8448
|
network: "andromeda",
|
|
@@ -8492,7 +8492,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
8492
8492
|
blockCreated: 1006207
|
|
8493
8493
|
}
|
|
8494
8494
|
}
|
|
8495
|
-
}),
|
|
8495
|
+
}), ku = /* @__PURE__ */ m({
|
|
8496
8496
|
id: 7518,
|
|
8497
8497
|
network: "MEVerse",
|
|
8498
8498
|
name: "MEVerse Chain Mainnet",
|
|
@@ -9083,7 +9083,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
9083
9083
|
testnet: !0
|
|
9084
9084
|
}, {
|
|
9085
9085
|
formatters: $
|
|
9086
|
-
}),
|
|
9086
|
+
}), Zu = /* @__PURE__ */ m({
|
|
9087
9087
|
id: 242,
|
|
9088
9088
|
name: "Plinga",
|
|
9089
9089
|
network: "plinga",
|
|
@@ -9108,7 +9108,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
9108
9108
|
blockCreated: 204489
|
|
9109
9109
|
}
|
|
9110
9110
|
}
|
|
9111
|
-
}),
|
|
9111
|
+
}), Hu = /* @__PURE__ */ m({
|
|
9112
9112
|
id: 137,
|
|
9113
9113
|
name: "Polygon",
|
|
9114
9114
|
network: "matic",
|
|
@@ -9238,7 +9238,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
9238
9238
|
blockCreated: 57746
|
|
9239
9239
|
}
|
|
9240
9240
|
}
|
|
9241
|
-
}),
|
|
9241
|
+
}), Xu = /* @__PURE__ */ m({
|
|
9242
9242
|
id: 369,
|
|
9243
9243
|
network: "pulsechain",
|
|
9244
9244
|
name: "PulseChain",
|
|
@@ -9269,7 +9269,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
9269
9269
|
blockCreated: 14353601
|
|
9270
9270
|
}
|
|
9271
9271
|
}
|
|
9272
|
-
}),
|
|
9272
|
+
}), qu = /* @__PURE__ */ m({
|
|
9273
9273
|
id: 943,
|
|
9274
9274
|
network: "pulsechainV4",
|
|
9275
9275
|
name: "PulseChain V4",
|
|
@@ -9972,7 +9972,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
9972
9972
|
}
|
|
9973
9973
|
},
|
|
9974
9974
|
contracts: {}
|
|
9975
|
-
}),
|
|
9975
|
+
}), Id = /* @__PURE__ */ m({
|
|
9976
9976
|
id: 1273227453,
|
|
9977
9977
|
name: "SKALE | Human Protocol",
|
|
9978
9978
|
network: "skale-human-protocol",
|
|
@@ -10029,7 +10029,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10029
10029
|
blockCreated: 2372986
|
|
10030
10030
|
}
|
|
10031
10031
|
}
|
|
10032
|
-
}),
|
|
10032
|
+
}), kd = /* @__PURE__ */ m({
|
|
10033
10033
|
id: 503129905,
|
|
10034
10034
|
name: "SKALE | Nebula Gaming Hub Testnet",
|
|
10035
10035
|
network: "skale-nebula-testnet",
|
|
@@ -10561,7 +10561,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10561
10561
|
blockCreated: 25312390
|
|
10562
10562
|
}
|
|
10563
10563
|
}
|
|
10564
|
-
}),
|
|
10564
|
+
}), Zd = /* @__PURE__ */ m({
|
|
10565
10565
|
id: 999,
|
|
10566
10566
|
name: "Wanchain Testnet",
|
|
10567
10567
|
network: "wanchainTestnet",
|
|
@@ -10591,7 +10591,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10591
10591
|
}
|
|
10592
10592
|
},
|
|
10593
10593
|
testnet: !0
|
|
10594
|
-
}),
|
|
10594
|
+
}), Hd = /* @__PURE__ */ m({
|
|
10595
10595
|
id: 1111,
|
|
10596
10596
|
name: "WEMIX",
|
|
10597
10597
|
network: "wemix-mainnet",
|
|
@@ -10652,7 +10652,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10652
10652
|
xinfin: { name: "XinFin", url: "https://explorer.apothem.network" },
|
|
10653
10653
|
default: { name: "Blocksscan", url: "https://apothem.blocksscan.io" }
|
|
10654
10654
|
}
|
|
10655
|
-
}),
|
|
10655
|
+
}), Xd = /* @__PURE__ */ m({
|
|
10656
10656
|
id: 1337803,
|
|
10657
10657
|
network: "zhejiang",
|
|
10658
10658
|
name: "Zhejiang",
|
|
@@ -10680,7 +10680,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10680
10680
|
}
|
|
10681
10681
|
},
|
|
10682
10682
|
testnet: !0
|
|
10683
|
-
}),
|
|
10683
|
+
}), qd = /* @__PURE__ */ m({
|
|
10684
10684
|
id: 42766,
|
|
10685
10685
|
name: "ZKFair Mainnet",
|
|
10686
10686
|
network: "zkfair-mainnet",
|
|
@@ -10755,7 +10755,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10755
10755
|
};
|
|
10756
10756
|
}
|
|
10757
10757
|
}),
|
|
10758
|
-
transactionReceipt: /* @__PURE__ */
|
|
10758
|
+
transactionReceipt: /* @__PURE__ */ Zr({
|
|
10759
10759
|
format(e) {
|
|
10760
10760
|
return {
|
|
10761
10761
|
l1BatchNumber: e.l1BatchNumber ? T(e.l1BatchNumber) : null,
|
|
@@ -10782,7 +10782,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10782
10782
|
};
|
|
10783
10783
|
}
|
|
10784
10784
|
}),
|
|
10785
|
-
transactionRequest: /* @__PURE__ */
|
|
10785
|
+
transactionRequest: /* @__PURE__ */ Hr({
|
|
10786
10786
|
exclude: [
|
|
10787
10787
|
"customSignature",
|
|
10788
10788
|
"factoryDeps",
|
|
@@ -10793,7 +10793,7 @@ const ml = /* @__PURE__ */ m({
|
|
|
10793
10793
|
format(e) {
|
|
10794
10794
|
return e.gasPerPubdata || e.paymaster && e.paymasterInput || e.factoryDeps || e.customSignature ? {
|
|
10795
10795
|
eip712Meta: {
|
|
10796
|
-
...e.gasPerPubdata ? { gasPerPubdata:
|
|
10796
|
+
...e.gasPerPubdata ? { gasPerPubdata: k(e.gasPerPubdata) } : {},
|
|
10797
10797
|
...e.paymaster && e.paymasterInput ? {
|
|
10798
10798
|
paymasterParams: {
|
|
10799
10799
|
paymaster: e.paymaster,
|
|
@@ -10814,19 +10814,19 @@ function ep(e) {
|
|
|
10814
10814
|
const { chainId: t, gas: n, nonce: r, to: s, from: a, value: o, maxFeePerGas: i, maxPriorityFeePerGas: c, customSignature: l, factoryDeps: u, paymaster: d, paymasterInput: h, gasPerPubdata: f, data: p } = e;
|
|
10815
10815
|
np(e);
|
|
10816
10816
|
const b = [
|
|
10817
|
-
r ?
|
|
10818
|
-
c ?
|
|
10819
|
-
i ?
|
|
10820
|
-
n ?
|
|
10817
|
+
r ? k(r) : "0x",
|
|
10818
|
+
c ? k(c) : "0x",
|
|
10819
|
+
i ? k(i) : "0x",
|
|
10820
|
+
n ? k(n) : "0x",
|
|
10821
10821
|
s ?? "0x",
|
|
10822
|
-
o ?
|
|
10822
|
+
o ? k(o) : "0x",
|
|
10823
10823
|
p ?? "0x",
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10824
|
+
k(t),
|
|
10825
|
+
k(""),
|
|
10826
|
+
k(""),
|
|
10827
|
+
k(t),
|
|
10828
10828
|
a ?? "0x",
|
|
10829
|
-
f ?
|
|
10829
|
+
f ? k(f) : "0x",
|
|
10830
10830
|
u ?? [],
|
|
10831
10831
|
l ?? "0x",
|
|
10832
10832
|
d && h ? [d, h] : []
|
|
@@ -11128,7 +11128,7 @@ function vr(e) {
|
|
|
11128
11128
|
e.trim().substring(0, 2) === "0x" ? 16 : 10
|
|
11129
11129
|
) : typeof e == "bigint" ? Number(e) : e;
|
|
11130
11130
|
}
|
|
11131
|
-
var
|
|
11131
|
+
var Zs = { exports: {} };
|
|
11132
11132
|
(function(e) {
|
|
11133
11133
|
var t = Object.prototype.hasOwnProperty, n = "~";
|
|
11134
11134
|
function r() {
|
|
@@ -11238,8 +11238,8 @@ var Hs = { exports: {} };
|
|
|
11238
11238
|
var u;
|
|
11239
11239
|
return l ? (u = n ? n + l : l, this._events[u] && o(this, u)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
11240
11240
|
}, i.prototype.off = i.prototype.removeListener, i.prototype.addListener = i.prototype.on, i.prefixed = n, i.EventEmitter = i, e.exports = i;
|
|
11241
|
-
})(
|
|
11242
|
-
var hp =
|
|
11241
|
+
})(Zs);
|
|
11242
|
+
var hp = Zs.exports;
|
|
11243
11243
|
const mp = /* @__PURE__ */ sa(hp);
|
|
11244
11244
|
var ar = (e, t, n) => {
|
|
11245
11245
|
if (!t.has(e))
|
|
@@ -11248,7 +11248,7 @@ var ar = (e, t, n) => {
|
|
|
11248
11248
|
if (t.has(e))
|
|
11249
11249
|
throw TypeError("Cannot add the same private member more than once");
|
|
11250
11250
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
11251
|
-
}, or = (e, t, n, r) => (ar(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), P = (e, t, n) => (ar(e, t, "access private method"), n),
|
|
11251
|
+
}, or = (e, t, n, r) => (ar(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), P = (e, t, n) => (ar(e, t, "access private method"), n), Hs = class extends mp {
|
|
11252
11252
|
constructor({
|
|
11253
11253
|
chains: e = [Ws, Rs],
|
|
11254
11254
|
options: t
|
|
@@ -11384,7 +11384,7 @@ function bp(e) {
|
|
|
11384
11384
|
}
|
|
11385
11385
|
return t(e) ?? "Injected";
|
|
11386
11386
|
}
|
|
11387
|
-
var
|
|
11387
|
+
var It, Vs = class extends Hs {
|
|
11388
11388
|
constructor({
|
|
11389
11389
|
chains: e,
|
|
11390
11390
|
options: t
|
|
@@ -11399,7 +11399,7 @@ var kt, Vs = class extends Zs {
|
|
|
11399
11399
|
},
|
|
11400
11400
|
...t
|
|
11401
11401
|
};
|
|
11402
|
-
super({ chains: e, options: n }), this.id = "injected", V(this,
|
|
11402
|
+
super({ chains: e, options: n }), this.id = "injected", V(this, It, void 0), this.shimDisconnectKey = `${this.id}.shimDisconnect`, this.onAccountsChanged = (s) => {
|
|
11403
11403
|
s.length === 0 ? this.emit("disconnect") : this.emit("change", {
|
|
11404
11404
|
account: be(s[0])
|
|
11405
11405
|
});
|
|
@@ -11458,7 +11458,7 @@ var kt, Vs = class extends Zs {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
async getProvider() {
|
|
11460
11460
|
const e = this.options.getProvider();
|
|
11461
|
-
return e && or(this,
|
|
11461
|
+
return e && or(this, It, e), v(this, It);
|
|
11462
11462
|
}
|
|
11463
11463
|
async getWalletClient({
|
|
11464
11464
|
chainId: e
|
|
@@ -11568,7 +11568,7 @@ var kt, Vs = class extends Zs {
|
|
|
11568
11568
|
return e.code === 4001;
|
|
11569
11569
|
}
|
|
11570
11570
|
};
|
|
11571
|
-
|
|
11571
|
+
It = /* @__PURE__ */ new WeakMap();
|
|
11572
11572
|
var ir = (e, t, n) => {
|
|
11573
11573
|
if (!t.has(e))
|
|
11574
11574
|
throw TypeError("Cannot " + n);
|
|
@@ -11742,7 +11742,7 @@ const ot = (e) => (t) => {
|
|
|
11742
11742
|
c.delete(g);
|
|
11743
11743
|
})
|
|
11744
11744
|
}, b(), p || f;
|
|
11745
|
-
},
|
|
11745
|
+
}, Ip = (e, t) => (n, r, s) => {
|
|
11746
11746
|
let a = {
|
|
11747
11747
|
storage: Mp(() => localStorage),
|
|
11748
11748
|
partialize: (b) => b,
|
|
@@ -11839,7 +11839,7 @@ const ot = (e) => (t) => {
|
|
|
11839
11839
|
}, a.skipHydration || p(), f || h;
|
|
11840
11840
|
}, Ap = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((gp ? "production" : void 0) !== "production" && console.warn(
|
|
11841
11841
|
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
11842
|
-
), xp(e, t)) :
|
|
11842
|
+
), xp(e, t)) : Ip(e, t), kp = Ap;
|
|
11843
11843
|
var Ep = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
11844
11844
|
const zr = (e) => {
|
|
11845
11845
|
let t;
|
|
@@ -11901,7 +11901,7 @@ function Np(e, t, {
|
|
|
11901
11901
|
batch: n,
|
|
11902
11902
|
chain: h,
|
|
11903
11903
|
transport: Cr(
|
|
11904
|
-
f.map((b) =>
|
|
11904
|
+
f.map((b) => Zi(b, { timeout: i })),
|
|
11905
11905
|
{ rank: s, retryCount: a, retryDelay: o }
|
|
11906
11906
|
),
|
|
11907
11907
|
pollingInterval: r
|
|
@@ -11929,19 +11929,19 @@ function Np(e, t, {
|
|
|
11929
11929
|
}
|
|
11930
11930
|
};
|
|
11931
11931
|
}
|
|
11932
|
-
var
|
|
11932
|
+
var kn = (e, {
|
|
11933
11933
|
find: t,
|
|
11934
11934
|
replace: n
|
|
11935
|
-
}) => e && t(e) ? n(e) : typeof e != "object" ? e : Array.isArray(e) ? e.map((r) =>
|
|
11935
|
+
}) => e && t(e) ? n(e) : typeof e != "object" ? e : Array.isArray(e) ? e.map((r) => kn(r, { find: t, replace: n })) : e instanceof Object ? Object.entries(e).reduce(
|
|
11936
11936
|
(r, [s, a]) => ({
|
|
11937
11937
|
...r,
|
|
11938
|
-
[s]:
|
|
11938
|
+
[s]: kn(a, { find: t, replace: n })
|
|
11939
11939
|
}),
|
|
11940
11940
|
{}
|
|
11941
11941
|
) : e;
|
|
11942
11942
|
function Dp(e) {
|
|
11943
11943
|
const t = JSON.parse(e);
|
|
11944
|
-
return
|
|
11944
|
+
return kn(t, {
|
|
11945
11945
|
find: (r) => typeof r == "string" && r.startsWith("#bigint."),
|
|
11946
11946
|
replace: (r) => BigInt(r.replace("#bigint.", ""))
|
|
11947
11947
|
});
|
|
@@ -12052,7 +12052,7 @@ var Lr = "store", Me, Fe, En, Js, Sp = class {
|
|
|
12052
12052
|
const c = typeof t == "function" ? t() : t;
|
|
12053
12053
|
c.forEach((d) => d.setStorage(r)), this.store = Cp(
|
|
12054
12054
|
wp(
|
|
12055
|
-
|
|
12055
|
+
kp(
|
|
12056
12056
|
() => ({
|
|
12057
12057
|
connectors: c,
|
|
12058
12058
|
publicClient: this.getPublicClient({ chainId: i }),
|
|
@@ -12273,21 +12273,21 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12273
12273
|
arbitrumNova: wa,
|
|
12274
12274
|
arbitrumSepolia: xa,
|
|
12275
12275
|
astar: Ma,
|
|
12276
|
-
astarZkatana:
|
|
12276
|
+
astarZkatana: Ia,
|
|
12277
12277
|
aurora: Aa,
|
|
12278
|
-
auroraTestnet:
|
|
12278
|
+
auroraTestnet: ka,
|
|
12279
12279
|
avalanche: Ea,
|
|
12280
12280
|
avalancheFuji: Ca,
|
|
12281
12281
|
bahamut: Na,
|
|
12282
12282
|
base: Ra,
|
|
12283
12283
|
baseGoerli: Wa,
|
|
12284
|
-
baseSepolia:
|
|
12285
|
-
bearNetworkChainMainnet:
|
|
12284
|
+
baseSepolia: Za,
|
|
12285
|
+
bearNetworkChainMainnet: Ha,
|
|
12286
12286
|
bearNetworkChainTestnet: Va,
|
|
12287
12287
|
bitTorrent: Ja,
|
|
12288
12288
|
bitTorrentTestnet: Ka,
|
|
12289
|
-
boba:
|
|
12290
|
-
bronos:
|
|
12289
|
+
boba: Xa,
|
|
12290
|
+
bronos: qa,
|
|
12291
12291
|
bronosTestnet: $a,
|
|
12292
12292
|
bsc: _a,
|
|
12293
12293
|
bscTestnet: eo,
|
|
@@ -12302,9 +12302,9 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12302
12302
|
confluxESpace: wl,
|
|
12303
12303
|
confluxESpaceTestnet: Ml,
|
|
12304
12304
|
coreDao: xl,
|
|
12305
|
-
cronos:
|
|
12305
|
+
cronos: Il,
|
|
12306
12306
|
cronosTestnet: Al,
|
|
12307
|
-
crossbell:
|
|
12307
|
+
crossbell: kl,
|
|
12308
12308
|
dfk: El,
|
|
12309
12309
|
dogechain: Cl,
|
|
12310
12310
|
edgeware: Nl,
|
|
@@ -12325,11 +12325,11 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12325
12325
|
flare: Yl,
|
|
12326
12326
|
flareTestnet: Rl,
|
|
12327
12327
|
foundry: Wl,
|
|
12328
|
-
fuse:
|
|
12329
|
-
fuseSparknet:
|
|
12328
|
+
fuse: Zl,
|
|
12329
|
+
fuseSparknet: Hl,
|
|
12330
12330
|
gnosis: $l,
|
|
12331
12331
|
gnosisChiado: _l,
|
|
12332
|
-
gobi:
|
|
12332
|
+
gobi: ql,
|
|
12333
12333
|
goerli: Rs,
|
|
12334
12334
|
haqqMainnet: nu,
|
|
12335
12335
|
haqqTestedge2: ru,
|
|
@@ -12339,7 +12339,7 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12339
12339
|
iotex: Vl,
|
|
12340
12340
|
iotexTestnet: Jl,
|
|
12341
12341
|
jbc: Kl,
|
|
12342
|
-
karura:
|
|
12342
|
+
karura: Xl,
|
|
12343
12343
|
kava: au,
|
|
12344
12344
|
kavaTestnet: ou,
|
|
12345
12345
|
klaytn: iu,
|
|
@@ -12358,9 +12358,9 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12358
12358
|
mantleTestnet: wu,
|
|
12359
12359
|
meter: Mu,
|
|
12360
12360
|
meterTestnet: xu,
|
|
12361
|
-
metis:
|
|
12361
|
+
metis: Iu,
|
|
12362
12362
|
metisGoerli: Au,
|
|
12363
|
-
mev:
|
|
12363
|
+
mev: ku,
|
|
12364
12364
|
mevTestnet: Eu,
|
|
12365
12365
|
modeTestnet: Cu,
|
|
12366
12366
|
moonbaseAlpha: Nu,
|
|
@@ -12381,13 +12381,13 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12381
12381
|
optimismSepolia: Fu,
|
|
12382
12382
|
pgn: Ru,
|
|
12383
12383
|
pgnTestnet: Wu,
|
|
12384
|
-
plinga:
|
|
12385
|
-
polygon:
|
|
12384
|
+
plinga: Zu,
|
|
12385
|
+
polygon: Hu,
|
|
12386
12386
|
polygonMumbai: Vu,
|
|
12387
12387
|
polygonZkEvm: Ku,
|
|
12388
12388
|
polygonZkEvmTestnet: Ju,
|
|
12389
|
-
pulsechain:
|
|
12390
|
-
pulsechainV4:
|
|
12389
|
+
pulsechain: Xu,
|
|
12390
|
+
pulsechainV4: qu,
|
|
12391
12391
|
qMainnet: $u,
|
|
12392
12392
|
qTestnet: _u,
|
|
12393
12393
|
rollux: ed,
|
|
@@ -12414,9 +12414,9 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12414
12414
|
skaleEuropa: wd,
|
|
12415
12415
|
skaleEuropaTestnet: Md,
|
|
12416
12416
|
skaleExorde: xd,
|
|
12417
|
-
skaleHumanProtocol:
|
|
12417
|
+
skaleHumanProtocol: Id,
|
|
12418
12418
|
skaleNebula: Ad,
|
|
12419
|
-
skaleNebulaTestnet:
|
|
12419
|
+
skaleNebulaTestnet: kd,
|
|
12420
12420
|
skaleRazor: Ed,
|
|
12421
12421
|
skaleTitan: Cd,
|
|
12422
12422
|
skaleTitanTestnet: Nd,
|
|
@@ -12435,16 +12435,16 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12435
12435
|
thunderTestnet: Yd,
|
|
12436
12436
|
vechain: Rd,
|
|
12437
12437
|
wanchain: Wd,
|
|
12438
|
-
wanchainTestnet:
|
|
12439
|
-
wemix:
|
|
12438
|
+
wanchainTestnet: Zd,
|
|
12439
|
+
wemix: Hd,
|
|
12440
12440
|
wemixTestnet: Vd,
|
|
12441
12441
|
xdc: Jd,
|
|
12442
12442
|
xdcTestnet: Kd,
|
|
12443
12443
|
zetachainAthensTestnet: op,
|
|
12444
|
-
zhejiang:
|
|
12444
|
+
zhejiang: Xd,
|
|
12445
12445
|
zilliqa: ip,
|
|
12446
12446
|
zilliqaTestnet: cp,
|
|
12447
|
-
zkFair:
|
|
12447
|
+
zkFair: qd,
|
|
12448
12448
|
zkFairTestnet: $d,
|
|
12449
12449
|
zkSync: rp,
|
|
12450
12450
|
zkSyncSepoliaTestnet: ap,
|
|
@@ -12576,10 +12576,10 @@ const Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12576
12576
|
optimism: 420,
|
|
12577
12577
|
moonbeam: 1287,
|
|
12578
12578
|
base: 84531
|
|
12579
|
-
},
|
|
12579
|
+
}, Xs = (e) => Object.entries(e).reduce((t, [n, r]) => Object.assign(t, { [r]: n }), {}), Zp = Xs(Wp), Hp = Xs(Ks);
|
|
12580
12580
|
function Vp(e, t = "MAINNET") {
|
|
12581
12581
|
let n;
|
|
12582
|
-
if (t === "MAINNET" && (n =
|
|
12582
|
+
if (t === "MAINNET" && (n = Zp[e]), t === "TESTNET" && (n = Hp[e]), n === void 0)
|
|
12583
12583
|
throw new Error(`No chain found for evm chain id ${e}`);
|
|
12584
12584
|
return aa[n];
|
|
12585
12585
|
}
|
|
@@ -12599,7 +12599,7 @@ class Jp extends Error {
|
|
|
12599
12599
|
super(t), this.code = n, this.stack = r;
|
|
12600
12600
|
}
|
|
12601
12601
|
}
|
|
12602
|
-
class
|
|
12602
|
+
class qs extends oa {
|
|
12603
12603
|
constructor(t = {}) {
|
|
12604
12604
|
super(), this.addresses = [], this.switchingChain = !1, this.chains = t.chains || Rp, this.autoSwitch = t.autoSwitch || !1, this.connectorOptions = t.connectorOptions || {}, this.config = t, this.connector = this.createConnector();
|
|
12605
12605
|
}
|
|
@@ -12830,12 +12830,12 @@ class Xs extends oa {
|
|
|
12830
12830
|
return Pr(t) || ba(t);
|
|
12831
12831
|
}
|
|
12832
12832
|
}
|
|
12833
|
-
var $s = "eip155", Kp = "store", _s = "requestedChains", Cn = "wallet_addEthereumChain", z, We, At, Nn, cr, ea,
|
|
12833
|
+
var $s = "eip155", Kp = "store", _s = "requestedChains", Cn = "wallet_addEthereumChain", z, We, At, Nn, cr, ea, kt, Dn, jn, ta, jt, lr, xe, Ge, Tt, ur, vt, dr, zt, pr, Xp = class extends Hs {
|
|
12834
12834
|
constructor(e) {
|
|
12835
12835
|
super({
|
|
12836
12836
|
...e,
|
|
12837
12837
|
options: { isNewChainsStale: !0, ...e.options }
|
|
12838
|
-
}), V(this, At), V(this, cr), V(this,
|
|
12838
|
+
}), V(this, At), V(this, cr), V(this, kt), V(this, jn), V(this, jt), V(this, xe), V(this, Tt), V(this, vt), V(this, zt), this.id = "walletConnect", this.name = "WalletConnect", this.ready = !0, V(this, z, void 0), V(this, We, void 0), this.onAccountsChanged = (t) => {
|
|
12839
12839
|
t.length === 0 ? this.emit("disconnect") : this.emit("change", { account: be(t[0]) });
|
|
12840
12840
|
}, this.onChainChanged = (t) => {
|
|
12841
12841
|
const n = Number(t), r = this.isChainUnsupported(n);
|
|
@@ -12860,7 +12860,7 @@ var $s = "eip155", Kp = "store", _s = "requestedChains", Cn = "wallet_addEthereu
|
|
|
12860
12860
|
throw new Error("No chains found on connector.");
|
|
12861
12861
|
const c = await this.getProvider();
|
|
12862
12862
|
P(this, jn, ta).call(this);
|
|
12863
|
-
const l = P(this,
|
|
12863
|
+
const l = P(this, kt, Dn).call(this);
|
|
12864
12864
|
if (c.session && l && await c.disconnect(), !c.session || l) {
|
|
12865
12865
|
const p = this.chains.filter((b) => b.id !== i).map((b) => b.id);
|
|
12866
12866
|
this.emit("message", { type: "connecting" }), await c.connect({
|
|
@@ -12919,7 +12919,7 @@ var $s = "eip155", Kp = "store", _s = "requestedChains", Cn = "wallet_addEthereu
|
|
|
12919
12919
|
const [e, t] = await Promise.all([
|
|
12920
12920
|
this.getAccount(),
|
|
12921
12921
|
this.getProvider()
|
|
12922
|
-
]), n = P(this,
|
|
12922
|
+
]), n = P(this, kt, Dn).call(this);
|
|
12923
12923
|
if (!e)
|
|
12924
12924
|
return !1;
|
|
12925
12925
|
if (n && t.session) {
|
|
@@ -12975,7 +12975,7 @@ Nn = async function() {
|
|
|
12975
12975
|
};
|
|
12976
12976
|
cr = /* @__PURE__ */ new WeakSet();
|
|
12977
12977
|
ea = async function() {
|
|
12978
|
-
const { EthereumProvider: e } = await import("./index.es-
|
|
12978
|
+
const { EthereumProvider: e } = await import("./index.es-uE9XWdwW.mjs"), t = this.chains.map(({ id: n }) => n);
|
|
12979
12979
|
if (t.length) {
|
|
12980
12980
|
const {
|
|
12981
12981
|
projectId: n,
|
|
@@ -13000,7 +13000,7 @@ ea = async function() {
|
|
|
13000
13000
|
}));
|
|
13001
13001
|
}
|
|
13002
13002
|
};
|
|
13003
|
-
|
|
13003
|
+
kt = /* @__PURE__ */ new WeakSet();
|
|
13004
13004
|
Dn = function() {
|
|
13005
13005
|
if (P(this, zt, pr).call(this).includes(Cn) || !this.options.isNewChainsStale)
|
|
13006
13006
|
return !1;
|
|
@@ -13043,7 +13043,7 @@ pr = function() {
|
|
|
13043
13043
|
const e = (r = v(this, z).session) == null ? void 0 : r.namespaces;
|
|
13044
13044
|
return e ? ((s = Br(e)[$s]) == null ? void 0 : s.methods) ?? [] : [];
|
|
13045
13045
|
};
|
|
13046
|
-
class
|
|
13046
|
+
class qp extends qs {
|
|
13047
13047
|
getName() {
|
|
13048
13048
|
return "WalletConnect";
|
|
13049
13049
|
}
|
|
@@ -13057,12 +13057,12 @@ class Xp extends Xs {
|
|
|
13057
13057
|
return Dt.WalletConnect;
|
|
13058
13058
|
}
|
|
13059
13059
|
}
|
|
13060
|
-
class $p extends
|
|
13060
|
+
class $p extends qp {
|
|
13061
13061
|
constructor(t = {}) {
|
|
13062
13062
|
super(t);
|
|
13063
13063
|
}
|
|
13064
13064
|
createConnector() {
|
|
13065
|
-
return new
|
|
13065
|
+
return new Xp({
|
|
13066
13066
|
chains: this.chains,
|
|
13067
13067
|
options: this.connectorOptions
|
|
13068
13068
|
});
|
|
@@ -13073,7 +13073,7 @@ var j;
|
|
|
13073
13073
|
e.MetaMask = "MetaMask", e.BitgetWallet = "Bitget Wallet", e.BraveWallet = "Brave Wallet", e.KuCoinWallet = "KuCoin Wallet", e.CoinbaseWallet = "Coinbase Wallet", e.FrontierWallet = "Frontier Wallet", e.BitKeepWallet = "BitKeep", e.OKXWallet = "OKX Wallet", e.RabbyWallet = "Rabby Wallet", e.Generic = "Injected Wallet", e.OktoWallet = "Okto Wallet";
|
|
13074
13074
|
})(j || (j = {}));
|
|
13075
13075
|
const Ur = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPCEtLSBDcmVhdG9yOiBDb3JlbERSQVcgMjAxOSAoNjQtQml0KSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZlcnNpb249IjEuMSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaXR5IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIKdmlld0JveD0iMCAwIDc4NC4zNyAxMjc3LjM5IgogeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiCiB4bWxuczp4b2RtPSJodHRwOi8vd3d3LmNvcmVsLmNvbS9jb3JlbGRyYXcvb2RtLzIwMDMiPgogPGcgaWQ9IkxheWVyX3gwMDIwXzEiPgogIDxtZXRhZGF0YSBpZD0iQ29yZWxDb3JwSURfMENvcmVsLUxheWVyIi8+CiAgPGcgaWQ9Il8xNDIxMzk0MzQyNDAwIj4KICAgPGc+CiAgICA8cG9seWdvbiBmaWxsPSIjMzQzNDM0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIHBvaW50cz0iMzkyLjA3LDAgMzgzLjUsMjkuMTEgMzgzLjUsODczLjc0IDM5Mi4wNyw4ODIuMjkgNzg0LjEzLDY1MC41NCAiLz4KICAgIDxwb2x5Z29uIGZpbGw9IiM4QzhDOEMiIGZpbGwtcnVsZT0ibm9uemVybyIgcG9pbnRzPSIzOTIuMDcsMCAtMCw2NTAuNTQgMzkyLjA3LDg4Mi4yOSAzOTIuMDcsNDcyLjMzICIvPgogICAgPHBvbHlnb24gZmlsbD0iIzNDM0MzQiIgZmlsbC1ydWxlPSJub256ZXJvIiBwb2ludHM9IjM5Mi4wNyw5NTYuNTIgMzg3LjI0LDk2Mi40MSAzODcuMjQsMTI2My4yOCAzOTIuMDcsMTI3Ny4zOCA3ODQuMzcsNzI0Ljg5ICIvPgogICAgPHBvbHlnb24gZmlsbD0iIzhDOEM4QyIgZmlsbC1ydWxlPSJub256ZXJvIiBwb2ludHM9IjM5Mi4wNywxMjc3LjM4IDM5Mi4wNyw5NTYuNTIgLTAsNzI0Ljg5ICIvPgogICAgPHBvbHlnb24gZmlsbD0iIzE0MTQxNCIgZmlsbC1ydWxlPSJub256ZXJvIiBwb2ludHM9IjM5Mi4wNyw4ODIuMjkgNzg0LjEzLDY1MC41NCAzOTIuMDcsNDcyLjMzICIvPgogICAgPHBvbHlnb24gZmlsbD0iIzM5MzkzOSIgZmlsbC1ydWxlPSJub256ZXJvIiBwb2ludHM9IjAsNjUwLjU0IDM5Mi4wNyw4ODIuMjkgMzkyLjA3LDQ3Mi4zMyAiLz4KICAgPC9nPgogIDwvZz4KIDwvZz4KPC9zdmc+Cg==";
|
|
13076
|
-
class _p extends
|
|
13076
|
+
class _p extends qs {
|
|
13077
13077
|
constructor(t = {}) {
|
|
13078
13078
|
super(t), this.config = t;
|
|
13079
13079
|
}
|
|
@@ -13136,6 +13136,8 @@ class _p extends Xs {
|
|
|
13136
13136
|
return "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik00MzguNDcgMjc5LjA5N0M0NTIuOTUyIDI0Ni42MzcgMzgxLjM1OSAxNTUuOTQ4IDMxMi45NjQgMTE4LjE2NUMyNjkuODUzIDg4Ljg5NSAyMjQuOTMgOTIuOTE2MiAyMTUuODMyIDEwNS43NjhDMTk1Ljg2NSAxMzMuOTcyIDI4MS45NDggMTU3Ljg3MSAzMzkuNTE4IDE4NS43NTlDMzI3LjE0MyAxOTEuMTUyIDMxNS40ODEgMjAwLjgzIDMwOC42MjMgMjEzLjIwN0MyODcuMTYgMTg5LjY5NyAyNDAuMDUyIDE2OS40NTEgMTg0Ljc3NyAxODUuNzU5QzE0Ny41MjggMTk2Ljc0OSAxMTYuNTcxIDIyMi42NTggMTA0LjYwNiAyNjEuNzkxQzEwMS42OTkgMjYwLjQ5NSA5OC40Nzk5IDI1OS43NzQgOTUuMDkzNCAyNTkuNzc0QzgyLjE0MzYgMjU5Ljc3NCA3MS42NDU2IDI3MC4zMDggNzEuNjQ1NiAyODMuMzAxQzcxLjY0NTYgMjk2LjI5NSA4Mi4xNDM2IDMwNi44MjggOTUuMDkzNCAzMDYuODI4Qzk3LjQ5MzcgMzA2LjgyOCAxMDQuOTk5IDMwNS4yMTMgMTA0Ljk5OSAzMDUuMjEzTDIyNC45MyAzMDYuMDg1QzE3Ni45NjcgMzgyLjQzIDEzOS4wNjMgMzkzLjU5IDEzOS4wNjMgNDA2LjgxN0MxMzkuMDYzIDQyMC4wNDMgMTc1LjMzMSA0MTYuNDU5IDE4OC45NDggNDExLjUyOUMyNTQuMTM4IDM4Ny45MjggMzI0LjE1NSAzMTQuMzczIDMzNi4xNyAyOTMuMTk5QzM4Ni42MjUgMjk5LjUxNSA0MjkuMDI4IDMwMC4yNjIgNDM4LjQ3IDI3OS4wOTdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTc1OF82NTYpIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzM5LjUxMyAxODUuNzYzQzMzOS41MTYgMTg1Ljc2NCAzMzkuNTE5IDE4NS43NjYgMzM5LjUyMiAxODUuNzY3QzM0Mi4xOTEgMTg0LjcxMiAzNDEuNzU5IDE4MC43NTggMzQxLjAyNiAxNzcuNjUyQzMzOS4zNDIgMTcwLjUxNSAzMTAuMjg0IDE0MS43MjQgMjgyLjk5NyAxMjguODI5QzI0NS44MTUgMTExLjI1NyAyMTguNDM1IDExMi4xNjMgMjE0LjM5IDEyMC4yNjJDMjIxLjk2NCAxMzUuODM3IDI1Ny4wNzcgMTUwLjQ2MSAyOTMuNzQ4IDE2NS43MzNDMzA5LjM5NCAxNzIuMjQ5IDMyNS4zMjMgMTc4Ljg4MyAzMzkuNTE5IDE4NS43NkMzMzkuNTE3IDE4NS43NjEgMzM5LjUxNSAxODUuNzYyIDMzOS41MTMgMTg1Ljc2M1oiIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcl8xNzU4XzY1NikiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yOTIuMzI5IDM0Mi41MjNDMjg0LjgwOSAzMzkuNjQgMjc2LjMxNSAzMzYuOTk0IDI2Ni42NTggMzM0LjU5NEMyNzYuOTU1IDMxNi4xMDggMjc5LjExNSAyODguNzQgMjY5LjM5MSAyNzEuNDM3QzI1NS43NDMgMjQ3LjE1MyAyMzguNjEyIDIzNC4yMjggMTk4LjgwMiAyMzQuMjI4QzE3Ni45MDcgMjM0LjIyOCAxMTcuOTU1IDI0MS42MjggMTE2LjkwOSAyOTEuMDA2QzExNi43OTkgMjk2LjE4NyAxMTYuOTA2IDMwMC45MzUgMTE3LjI4IDMwNS4zMDFMMjI0LjkzIDMwNi4wODRDMjEwLjQxNyAzMjkuMTg1IDE5Ni44MjUgMzQ2LjMxOCAxODQuOTI2IDM1OS4zNDVDMTk5LjIxMyAzNjMuMDE5IDIxMS4wMDMgMzY2LjEwMyAyMjEuODI4IDM2OC45MzRDMjMyLjA5OCAzNzEuNjIgMjQxLjQ5OSAzNzQuMDc5IDI1MS4zMzkgMzc2LjU5OEMyNjYuMTgyIDM2NS43NDggMjgwLjEzNSAzNTMuOTE3IDI5Mi4zMjkgMzQyLjUyM1oiIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl8xNzU4XzY1NikiLz4KPHBhdGggZD0iTTEwMy4xNjkgMzAwLjIyOEMxMDcuNTY3IDMzNy43MzcgMTI4LjgxMyAzNTIuNDM3IDE3Mi4yMjcgMzU2Ljc4OEMyMTUuNjQxIDM2MS4xMzggMjQwLjU0NCAzNTguMjIgMjczLjY5OCAzNjEuMjQ2QzMwMS4zODkgMzYzLjc3NCAzMjYuMTEzIDM3Ny45MzIgMzM1LjI4NSAzNzMuMDRDMzQzLjUzOSAzNjguNjM2IDMzOC45MjEgMzUyLjcyOCAzMjcuODc2IDM0Mi41MjFDMzEzLjU1OCAzMjkuMjkxIDI5My43NDIgMzIwLjA5MyAyNTguODc1IDMxNi44MjhDMjY1LjgyNCAyOTcuNzM5IDI2My44NzcgMjcwLjk3MyAyNTMuMDg1IDI1Ni40MTFDMjM3LjQ4MSAyMzUuMzU1IDIwOC42OCAyMjUuODM2IDE3Mi4yMjcgMjI5Ljk5NUMxMzQuMTQzIDIzNC4zNCA5Ny42NTA0IDI1My4xNTMgMTAzLjE2OSAzMDAuMjI4WiIgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzE3NThfNjU2KSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzE3NThfNjU2IiB4MT0iMTgwLjQzOSIgeTE9IjI1MC4zNTIiIHgyPSI0MzUuNDc5IiB5Mj0iMzIyLjQzMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjODY5N0ZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0FCQjdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfMTc1OF82NTYiIHgxPSIzOTIuNDI4IiB5MT0iMjQ1LjQ4OSIgeDI9IjIwNy44NzYiIHkyPSI2MS4xMDc3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM4Njk3RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNTE1NkQ4IiBzdG9wLW9wYWNpdHk9IjAiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDJfbGluZWFyXzE3NThfNjU2IiB4MT0iMjk3LjQ0NiIgeTE9IjM0OC45NjciIHgyPSIxMjAuNDY1IiB5Mj0iMjQ3LjU1OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNDY1RUVEIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzg2OTdGRiIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQzX2xpbmVhcl8xNzU4XzY1NiIgeDE9IjE5NS42NTgiIHkxPSIyNDguNDQzIiB4Mj0iMzE1LjU4MSIgeTI9IjQwMC4zMDYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzg4OThGRiIvPgo8c3RvcCBvZmZzZXQ9IjAuOTgzODk1IiBzdG9wLWNvbG9yPSIjNjI3N0YxIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";
|
|
13137
13137
|
case j.OktoWallet:
|
|
13138
13138
|
return "data:image/svg+xml;charset=UTF-8,%3csvg width='83' height='82' viewBox='0 0 83 82' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_1120_17431)'%3e%3cpath d='M82.4999 41C82.4999 63.6436 64.1437 81.9999 41.4999 81.9999C18.8563 81.9999 0.500009 63.6436 0.5 41C0.499991 18.3564 18.8563 8.54166e-06 41.4999 0C64.1435 -8.54166e-06 82.4999 18.3564 82.4999 41Z' fill='url(%23paint0_linear_1120_17431)'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M41.5 18.8601C29.2724 18.8601 19.36 28.7725 19.36 41.0001C19.36 42.2001 19.4555 43.3779 19.6392 44.5261C19.7607 45.31 20.2188 47.0099 21.079 47.5385C22.1525 48.1981 23.3676 47.631 24.3623 47.1668L24.3671 47.1646C25.1635 46.7929 27.5018 45.703 28.5714 45.2045C28.8163 45.0825 29.4633 44.9192 30.0923 45.2412C30.8786 45.6437 31.1095 46.4705 31.0627 46.9635C31.0159 47.4565 30.7506 48.1075 30.0807 48.4179C29.5448 48.6663 26.3908 50.1362 24.8808 50.8402C24.5568 50.9654 23.8392 51.4349 23.5615 52.3107C23.2142 53.4054 23.7556 54.2502 23.9452 54.493C24.0869 54.686 24.5091 55.1169 25.0646 55.2966C25.7591 55.5213 26.3554 55.4355 26.8211 55.2231C27.1936 55.0532 34.584 51.6064 38.2326 49.9043C38.4717 49.7857 39.1066 49.6309 39.7336 49.9603C40.5174 50.372 40.7431 51.1479 40.7035 51.6269C40.6639 52.1059 40.3987 52.8106 39.7455 53.1154C39.2229 53.3592 34.3691 55.6194 32.0075 56.7189C31.5911 56.9074 30.7459 57.5713 30.6966 58.7187C30.6349 60.153 31.6269 60.8328 32.0421 61.0241C32.3698 61.193 33.232 61.4351 34.0587 61.0526C34.8853 60.6702 43.6698 56.5731 47.9588 54.5724C48.2131 54.4411 48.9044 54.2717 49.4937 54.5724C50.2655 54.9662 50.5219 55.6383 50.5219 56.1467C50.5219 56.6551 50.4988 57.028 49.6946 57.7484C48.9911 58.3787 47.9588 58.9988 44.4412 60.4978C43.2365 61.0112 42.4155 61.3891 42.5506 62.0374C42.652 62.5245 43.0066 62.7098 44.1846 62.6565C45.3626 62.6032 50.6669 62.1869 55.9806 57.7484C60.6719 53.6887 63.64 47.691 63.64 41.0001C63.64 38.5346 63.237 36.1632 62.4932 33.9482C62.2405 34.0538 61.963 34.1121 61.672 34.1121C60.4945 34.1121 59.54 33.1576 59.54 31.9801C59.54 31.1326 60.0345 30.4005 60.7508 30.0568C56.9411 23.3694 49.7471 18.8601 41.5 18.8601ZM49.7 32.8001C49.7 33.9776 48.7455 34.9321 47.568 34.9321C46.3905 34.9321 45.436 33.9776 45.436 32.8001C45.436 31.6226 46.3905 30.6681 47.568 30.6681C48.7455 30.6681 49.7 31.6226 49.7 32.8001Z' fill='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_1120_17431' x1='41.4999' y1='0' x2='41.4999' y2='81.9999' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%236246F5'/%3e%3cstop offset='0.493007' stop-color='%235166EE'/%3e%3cstop offset='1' stop-color='%2356B9F9'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_1120_17431'%3e%3crect width='82' height='82' fill='white' transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
13139
|
+
case j.CoinbaseWallet:
|
|
13140
|
+
return "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjEwMDAiIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIGZpbGw9Im5vbmUiPgo8Y2lyY2xlIGN4PSI1MDAiIGN5PSI1MDAiIHI9IjUwMCIgZmlsbD0iIzAwNTJGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1MCA1MDBDMTUwIDY5My4zIDMwNi43IDg1MCA1MDAgODUwQzY5My4zIDg1MCA4NTAgNjkzLjMgODUwIDUwMEM4NTAgMzA2LjcgNjkzLjMgMTUwIDUwMCAxNTBDMzA2LjcgMTUwIDE1MCAzMDYuNyAxNTAgNTAwWk00MTAuNTU2IDM4Ny4yMjJDMzk3LjY2OSAzODcuMjIyIDM4Ny4yMjIgMzk3LjY2OSAzODcuMjIyIDQxMC41NTZWNTg5LjQ0NEMzODcuMjIyIDYwMi4zMzEgMzk3LjY2OSA2MTIuNzc4IDQxMC41NTYgNjEyLjc3OEg1ODkuNDQ0QzYwMi4zMzEgNjEyLjc3OCA2MTIuNzc4IDYwMi4zMzEgNjEyLjc3OCA1ODkuNDQ0VjQxMC41NTZDNjEyLjc3OCAzOTcuNjY5IDYwMi4zMzEgMzg3LjIyMiA1ODkuNDQ0IDM4Ny4yMjJINDEwLjU1NloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==";
|
|
13139
13141
|
default:
|
|
13140
13142
|
return this.config.genericIcon || Ur;
|
|
13141
13143
|
}
|