@jaw.id/ui 1.2.1 → 1.2.3
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/ccip-Cv7Gq-9l.js +146 -0
- package/dist/components/FeeTokenSelector/index.d.ts +3 -0
- package/dist/components/FeeTokenSelector/index.d.ts.map +1 -1
- package/dist/components/PermissionDialog/index.d.ts.map +1 -1
- package/dist/components/TransactionDialog/index.d.ts.map +1 -1
- package/dist/hooks/useGasEstimation.d.ts.map +1 -1
- package/dist/index.js +5795 -48704
- package/dist/{localBatchGatewayRequest-5ZaE1WvO.js → localBatchGatewayRequest-CPuG8OVP.js} +1022 -928
- package/dist/react/ReactUIHandler.d.ts.map +1 -1
- package/dist/{smartAccount-DYk6CqRF.js → smartAccount-Dz-QWL0Y.js} +3403 -2988
- package/package.json +4 -4
- package/dist/ccip-BzdqKpq_.js +0 -137
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, D as t, H as n, M as r, N as i, T as a, U as o, V as s, W as c, Z as l, b as u, j as d, w as f, x as p, y as
|
|
1
|
+
import { C as e, D as t, H as n, M as r, N as i, T as a, U as o, V as s, W as c, Z as l, b as u, j as d, w as f, x as p, y as m } from "./utils-so0pTN_S.js";
|
|
2
2
|
//#region ../../node_modules/abitype/dist/esm/version.js
|
|
3
|
-
var
|
|
3
|
+
var h = "1.2.3", g = class e extends Error {
|
|
4
4
|
constructor(t, n = {}) {
|
|
5
5
|
let r = n.cause instanceof e ? n.cause.details : n.cause?.message ? n.cause.message : n.details, i = n.cause instanceof e && n.cause.docsPath || n.docsPath, a = [
|
|
6
6
|
t || "An error occurred.",
|
|
@@ -8,7 +8,7 @@ var te = "1.2.3", m = class e extends Error {
|
|
|
8
8
|
...n.metaMessages ? [...n.metaMessages, ""] : [],
|
|
9
9
|
...i ? [`Docs: https://abitype.dev${i}`] : [],
|
|
10
10
|
...r ? [`Details: ${r}`] : [],
|
|
11
|
-
`Version: abitype@${
|
|
11
|
+
`Version: abitype@${h}`
|
|
12
12
|
].join("\n");
|
|
13
13
|
super(a), Object.defineProperty(this, "details", {
|
|
14
14
|
enumerable: !0,
|
|
@@ -40,21 +40,21 @@ var te = "1.2.3", m = class e extends Error {
|
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region ../../node_modules/abitype/dist/esm/regex.js
|
|
43
|
-
function
|
|
43
|
+
function _(e, t) {
|
|
44
44
|
return e.exec(t)?.groups;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var ee = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, v = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, te = /^\(.+?\).*?$/, ne = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
47
|
+
function y(e) {
|
|
48
48
|
let t = e.type;
|
|
49
|
-
if (
|
|
49
|
+
if (ne.test(e.type) && "components" in e) {
|
|
50
50
|
t = "(";
|
|
51
51
|
let n = e.components.length;
|
|
52
52
|
for (let r = 0; r < n; r++) {
|
|
53
53
|
let i = e.components[r];
|
|
54
|
-
t +=
|
|
54
|
+
t += y(i), r < n - 1 && (t += ", ");
|
|
55
55
|
}
|
|
56
|
-
let r =
|
|
57
|
-
return t += `)${r?.array || ""}`,
|
|
56
|
+
let r = _(ne, e.type);
|
|
57
|
+
return t += `)${r?.array || ""}`, y({
|
|
58
58
|
...e,
|
|
59
59
|
type: t
|
|
60
60
|
});
|
|
@@ -63,77 +63,77 @@ function ae(e) {
|
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region ../../node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
66
|
-
function
|
|
66
|
+
function b(e) {
|
|
67
67
|
let t = "", n = e.length;
|
|
68
68
|
for (let r = 0; r < n; r++) {
|
|
69
69
|
let i = e[r];
|
|
70
|
-
t +=
|
|
70
|
+
t += y(i), r !== n - 1 && (t += ", ");
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region ../../node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
76
|
-
function
|
|
77
|
-
return e.type === "function" ? `function ${e.name}(${
|
|
76
|
+
function re(e) {
|
|
77
|
+
return e.type === "function" ? `function ${e.name}(${b(e.inputs)})${e.stateMutability && e.stateMutability !== "nonpayable" ? ` ${e.stateMutability}` : ""}${e.outputs?.length ? ` returns (${b(e.outputs)})` : ""}` : e.type === "event" ? `event ${e.name}(${b(e.inputs)})` : e.type === "error" ? `error ${e.name}(${b(e.inputs)})` : e.type === "constructor" ? `constructor(${b(e.inputs)})${e.stateMutability === "payable" ? " payable" : ""}` : e.type === "fallback" ? `fallback() external${e.stateMutability === "payable" ? " payable" : ""}` : "receive() external payable";
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../../node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
81
|
-
var
|
|
81
|
+
var ie = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
82
|
+
function ae(e) {
|
|
83
|
+
return ie.test(e);
|
|
84
|
+
}
|
|
85
|
+
function oe(e) {
|
|
86
|
+
return _(ie, e);
|
|
87
|
+
}
|
|
88
|
+
var se = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
82
89
|
function ce(e) {
|
|
83
90
|
return se.test(e);
|
|
84
91
|
}
|
|
85
92
|
function le(e) {
|
|
86
|
-
return
|
|
93
|
+
return _(se, e);
|
|
87
94
|
}
|
|
88
|
-
var ue = /^
|
|
95
|
+
var ue = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
89
96
|
function de(e) {
|
|
90
97
|
return ue.test(e);
|
|
91
98
|
}
|
|
92
99
|
function fe(e) {
|
|
93
|
-
return
|
|
100
|
+
return _(ue, e);
|
|
94
101
|
}
|
|
95
|
-
var pe = /^
|
|
102
|
+
var pe = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
96
103
|
function me(e) {
|
|
97
104
|
return pe.test(e);
|
|
98
105
|
}
|
|
99
106
|
function he(e) {
|
|
100
|
-
return
|
|
107
|
+
return _(pe, e);
|
|
101
108
|
}
|
|
102
|
-
var ge = /^
|
|
109
|
+
var ge = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
103
110
|
function _e(e) {
|
|
104
111
|
return ge.test(e);
|
|
105
112
|
}
|
|
106
113
|
function ve(e) {
|
|
107
|
-
return
|
|
114
|
+
return _(ge, e);
|
|
108
115
|
}
|
|
109
|
-
var ye = /^
|
|
116
|
+
var ye = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
110
117
|
function be(e) {
|
|
111
118
|
return ye.test(e);
|
|
112
119
|
}
|
|
113
120
|
function xe(e) {
|
|
114
|
-
return
|
|
121
|
+
return _(ye, e);
|
|
115
122
|
}
|
|
116
|
-
var Se = /^
|
|
123
|
+
var Se = /^receive\(\) external payable$/;
|
|
117
124
|
function Ce(e) {
|
|
118
125
|
return Se.test(e);
|
|
119
126
|
}
|
|
120
|
-
|
|
121
|
-
return h(Se, e);
|
|
122
|
-
}
|
|
123
|
-
var Te = /^receive\(\) external payable$/;
|
|
124
|
-
function Ee(e) {
|
|
125
|
-
return Te.test(e);
|
|
126
|
-
}
|
|
127
|
-
var De = new Set([
|
|
127
|
+
var we = new Set([
|
|
128
128
|
"memory",
|
|
129
129
|
"indexed",
|
|
130
130
|
"storage",
|
|
131
131
|
"calldata"
|
|
132
|
-
]),
|
|
132
|
+
]), Te = new Set(["indexed"]), Ee = new Set([
|
|
133
133
|
"calldata",
|
|
134
134
|
"memory",
|
|
135
135
|
"storage"
|
|
136
|
-
]),
|
|
136
|
+
]), De = class extends g {
|
|
137
137
|
constructor({ signature: e }) {
|
|
138
138
|
super("Failed to parse ABI item.", {
|
|
139
139
|
details: `parseAbiItem(${JSON.stringify(e, null, 2)})`,
|
|
@@ -145,7 +145,7 @@ var De = new Set([
|
|
|
145
145
|
value: "InvalidAbiItemError"
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, Oe = class extends g {
|
|
149
149
|
constructor({ type: e }) {
|
|
150
150
|
super("Unknown type.", { metaMessages: [`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`] }), Object.defineProperty(this, "name", {
|
|
151
151
|
enumerable: !0,
|
|
@@ -154,7 +154,7 @@ var De = new Set([
|
|
|
154
154
|
value: "UnknownTypeError"
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, ke = class extends g {
|
|
158
158
|
constructor({ type: e }) {
|
|
159
159
|
super("Unknown type.", { metaMessages: [`Type "${e}" is not a valid ABI type.`] }), Object.defineProperty(this, "name", {
|
|
160
160
|
enumerable: !0,
|
|
@@ -163,7 +163,7 @@ var De = new Set([
|
|
|
163
163
|
value: "UnknownSolidityTypeError"
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, Ae = class extends g {
|
|
167
167
|
constructor({ params: e }) {
|
|
168
168
|
super("Failed to parse ABI parameters.", {
|
|
169
169
|
details: `parseAbiParameters(${JSON.stringify(e, null, 2)})`,
|
|
@@ -175,7 +175,7 @@ var De = new Set([
|
|
|
175
175
|
value: "InvalidAbiParametersError"
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, je = class extends g {
|
|
179
179
|
constructor({ param: e }) {
|
|
180
180
|
super("Invalid ABI parameter.", { details: e }), Object.defineProperty(this, "name", {
|
|
181
181
|
enumerable: !0,
|
|
@@ -184,7 +184,7 @@ var De = new Set([
|
|
|
184
184
|
value: "InvalidParameterError"
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, Me = class extends g {
|
|
188
188
|
constructor({ param: e, name: t }) {
|
|
189
189
|
super("Invalid ABI parameter.", {
|
|
190
190
|
details: e,
|
|
@@ -196,7 +196,7 @@ var De = new Set([
|
|
|
196
196
|
value: "SolidityProtectedKeywordError"
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, Ne = class extends g {
|
|
200
200
|
constructor({ param: e, type: t, modifier: n }) {
|
|
201
201
|
super("Invalid ABI parameter.", {
|
|
202
202
|
details: e,
|
|
@@ -208,7 +208,7 @@ var De = new Set([
|
|
|
208
208
|
value: "InvalidModifierError"
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
},
|
|
211
|
+
}, Pe = class extends g {
|
|
212
212
|
constructor({ param: e, type: t, modifier: n }) {
|
|
213
213
|
super("Invalid ABI parameter.", {
|
|
214
214
|
details: e,
|
|
@@ -220,7 +220,7 @@ var De = new Set([
|
|
|
220
220
|
value: "InvalidFunctionModifierError"
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
},
|
|
223
|
+
}, Fe = class extends g {
|
|
224
224
|
constructor({ abiParameter: e }) {
|
|
225
225
|
super("Invalid ABI parameter.", {
|
|
226
226
|
details: JSON.stringify(e, null, 2),
|
|
@@ -232,7 +232,7 @@ var De = new Set([
|
|
|
232
232
|
value: "InvalidAbiTypeParameterError"
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
},
|
|
235
|
+
}, x = class extends g {
|
|
236
236
|
constructor({ signature: e, type: t }) {
|
|
237
237
|
super(`Invalid ${t} signature.`, { details: e }), Object.defineProperty(this, "name", {
|
|
238
238
|
enumerable: !0,
|
|
@@ -241,7 +241,7 @@ var De = new Set([
|
|
|
241
241
|
value: "InvalidSignatureError"
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, Ie = class extends g {
|
|
245
245
|
constructor({ signature: e }) {
|
|
246
246
|
super("Unknown signature.", { details: e }), Object.defineProperty(this, "name", {
|
|
247
247
|
enumerable: !0,
|
|
@@ -250,7 +250,7 @@ var De = new Set([
|
|
|
250
250
|
value: "UnknownSignatureError"
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, Le = class extends g {
|
|
254
254
|
constructor({ signature: e }) {
|
|
255
255
|
super("Invalid struct signature.", {
|
|
256
256
|
details: e,
|
|
@@ -262,7 +262,7 @@ var De = new Set([
|
|
|
262
262
|
value: "InvalidStructSignatureError"
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
},
|
|
265
|
+
}, Re = class extends g {
|
|
266
266
|
constructor({ type: e }) {
|
|
267
267
|
super("Circular reference detected.", { metaMessages: [`Struct "${e}" is a circular reference.`] }), Object.defineProperty(this, "name", {
|
|
268
268
|
enumerable: !0,
|
|
@@ -271,7 +271,7 @@ var De = new Set([
|
|
|
271
271
|
value: "CircularReferenceError"
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, ze = class extends g {
|
|
275
275
|
constructor({ current: e, depth: t }) {
|
|
276
276
|
super("Unbalanced parentheses.", {
|
|
277
277
|
metaMessages: [`"${e.trim()}" has too many ${t > 0 ? "opening" : "closing"} parentheses.`],
|
|
@@ -286,7 +286,7 @@ var De = new Set([
|
|
|
286
286
|
};
|
|
287
287
|
//#endregion
|
|
288
288
|
//#region ../../node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
289
|
-
function
|
|
289
|
+
function Be(e, t, n) {
|
|
290
290
|
let r = "";
|
|
291
291
|
if (n) for (let e of Object.entries(n)) {
|
|
292
292
|
if (!e) continue;
|
|
@@ -296,7 +296,7 @@ function Ue(e, t, n) {
|
|
|
296
296
|
}
|
|
297
297
|
return t ? `${t}:${e}${r}` : `${e}${r}`;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var Ve = new Map([
|
|
300
300
|
["address", { type: "address" }],
|
|
301
301
|
["bool", { type: "bool" }],
|
|
302
302
|
["bytes", { type: "bytes" }],
|
|
@@ -410,35 +410,35 @@ var We = new Map([
|
|
|
410
410
|
]);
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region ../../node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
413
|
-
function
|
|
414
|
-
if (
|
|
415
|
-
if (
|
|
416
|
-
if (
|
|
417
|
-
if (
|
|
418
|
-
if (
|
|
419
|
-
if (
|
|
413
|
+
function He(e, t = {}) {
|
|
414
|
+
if (de(e)) return Ue(e, t);
|
|
415
|
+
if (ce(e)) return We(e, t);
|
|
416
|
+
if (ae(e)) return Ge(e, t);
|
|
417
|
+
if (_e(e)) return Ke(e, t);
|
|
418
|
+
if (be(e)) return qe(e);
|
|
419
|
+
if (Ce(e)) return {
|
|
420
420
|
type: "receive",
|
|
421
421
|
stateMutability: "payable"
|
|
422
422
|
};
|
|
423
|
-
throw new
|
|
423
|
+
throw new Ie({ signature: e });
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let n =
|
|
427
|
-
if (!n) throw new
|
|
425
|
+
function Ue(e, t = {}) {
|
|
426
|
+
let n = fe(e);
|
|
427
|
+
if (!n) throw new x({
|
|
428
428
|
signature: e,
|
|
429
429
|
type: "function"
|
|
430
430
|
});
|
|
431
|
-
let r =
|
|
432
|
-
for (let e = 0; e < a; e++) i.push(
|
|
433
|
-
modifiers:
|
|
431
|
+
let r = C(n.parameters), i = [], a = r.length;
|
|
432
|
+
for (let e = 0; e < a; e++) i.push(S(r[e], {
|
|
433
|
+
modifiers: Ee,
|
|
434
434
|
structs: t,
|
|
435
435
|
type: "function"
|
|
436
436
|
}));
|
|
437
437
|
let o = [];
|
|
438
438
|
if (n.returns) {
|
|
439
|
-
let e =
|
|
440
|
-
for (let n = 0; n < r; n++) o.push(
|
|
441
|
-
modifiers:
|
|
439
|
+
let e = C(n.returns), r = e.length;
|
|
440
|
+
for (let n = 0; n < r; n++) o.push(S(e[n], {
|
|
441
|
+
modifiers: Ee,
|
|
442
442
|
structs: t,
|
|
443
443
|
type: "function"
|
|
444
444
|
}));
|
|
@@ -451,15 +451,15 @@ function Ke(e, t = {}) {
|
|
|
451
451
|
outputs: o
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let n =
|
|
456
|
-
if (!n) throw new
|
|
454
|
+
function We(e, t = {}) {
|
|
455
|
+
let n = le(e);
|
|
456
|
+
if (!n) throw new x({
|
|
457
457
|
signature: e,
|
|
458
458
|
type: "event"
|
|
459
459
|
});
|
|
460
|
-
let r =
|
|
461
|
-
for (let e = 0; e < a; e++) i.push(
|
|
462
|
-
modifiers:
|
|
460
|
+
let r = C(n.parameters), i = [], a = r.length;
|
|
461
|
+
for (let e = 0; e < a; e++) i.push(S(r[e], {
|
|
462
|
+
modifiers: Te,
|
|
463
463
|
structs: t,
|
|
464
464
|
type: "event"
|
|
465
465
|
}));
|
|
@@ -469,14 +469,14 @@ function qe(e, t = {}) {
|
|
|
469
469
|
inputs: i
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
let n =
|
|
474
|
-
if (!n) throw new
|
|
472
|
+
function Ge(e, t = {}) {
|
|
473
|
+
let n = oe(e);
|
|
474
|
+
if (!n) throw new x({
|
|
475
475
|
signature: e,
|
|
476
476
|
type: "error"
|
|
477
477
|
});
|
|
478
|
-
let r =
|
|
479
|
-
for (let e = 0; e < a; e++) i.push(
|
|
478
|
+
let r = C(n.parameters), i = [], a = r.length;
|
|
479
|
+
for (let e = 0; e < a; e++) i.push(S(r[e], {
|
|
480
480
|
structs: t,
|
|
481
481
|
type: "error"
|
|
482
482
|
}));
|
|
@@ -486,14 +486,14 @@ function Je(e, t = {}) {
|
|
|
486
486
|
inputs: i
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
let n =
|
|
491
|
-
if (!n) throw new
|
|
489
|
+
function Ke(e, t = {}) {
|
|
490
|
+
let n = ve(e);
|
|
491
|
+
if (!n) throw new x({
|
|
492
492
|
signature: e,
|
|
493
493
|
type: "constructor"
|
|
494
494
|
});
|
|
495
|
-
let r =
|
|
496
|
-
for (let e = 0; e < a; e++) i.push(
|
|
495
|
+
let r = C(n.parameters), i = [], a = r.length;
|
|
496
|
+
for (let e = 0; e < a; e++) i.push(S(r[e], {
|
|
497
497
|
structs: t,
|
|
498
498
|
type: "constructor"
|
|
499
499
|
}));
|
|
@@ -503,9 +503,9 @@ function Ye(e, t = {}) {
|
|
|
503
503
|
inputs: i
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
let t =
|
|
508
|
-
if (!t) throw new
|
|
506
|
+
function qe(e) {
|
|
507
|
+
let t = xe(e);
|
|
508
|
+
if (!t) throw new x({
|
|
509
509
|
signature: e,
|
|
510
510
|
type: "fallback"
|
|
511
511
|
});
|
|
@@ -514,33 +514,33 @@ function Xe(e) {
|
|
|
514
514
|
stateMutability: t.stateMutability ?? "nonpayable"
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
var
|
|
518
|
-
function
|
|
519
|
-
let n =
|
|
520
|
-
if (
|
|
521
|
-
let r =
|
|
522
|
-
if (!i) throw new
|
|
523
|
-
if (i.name &&
|
|
517
|
+
var Je = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Ye = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Xe = /^u?int$/;
|
|
518
|
+
function S(e, t) {
|
|
519
|
+
let n = Be(e, t?.type, t?.structs);
|
|
520
|
+
if (Ve.has(n)) return Ve.get(n);
|
|
521
|
+
let r = te.test(e), i = _(r ? Ye : Je, e);
|
|
522
|
+
if (!i) throw new je({ param: e });
|
|
523
|
+
if (i.name && $e(i.name)) throw new Me({
|
|
524
524
|
param: e,
|
|
525
525
|
name: i.name
|
|
526
526
|
});
|
|
527
527
|
let a = i.name ? { name: i.name } : {}, o = i.modifier === "indexed" ? { indexed: !0 } : {}, s = t?.structs ?? {}, c, l = {};
|
|
528
528
|
if (r) {
|
|
529
529
|
c = "tuple";
|
|
530
|
-
let e =
|
|
531
|
-
for (let r = 0; r < n; r++) t.push(
|
|
530
|
+
let e = C(i.type), t = [], n = e.length;
|
|
531
|
+
for (let r = 0; r < n; r++) t.push(S(e[r], { structs: s }));
|
|
532
532
|
l = { components: t };
|
|
533
533
|
} else if (i.type in s) c = "tuple", l = { components: s[i.type] };
|
|
534
|
-
else if (
|
|
534
|
+
else if (Xe.test(i.type)) c = `${i.type}256`;
|
|
535
535
|
else if (i.type === "address payable") c = "address";
|
|
536
|
-
else if (c = i.type, t?.type !== "struct" && !
|
|
536
|
+
else if (c = i.type, t?.type !== "struct" && !Ze(c)) throw new ke({ type: c });
|
|
537
537
|
if (i.modifier) {
|
|
538
|
-
if (!t?.modifiers?.has?.(i.modifier)) throw new
|
|
538
|
+
if (!t?.modifiers?.has?.(i.modifier)) throw new Ne({
|
|
539
539
|
param: e,
|
|
540
540
|
type: t?.type,
|
|
541
541
|
modifier: i.modifier
|
|
542
542
|
});
|
|
543
|
-
if (
|
|
543
|
+
if (Ee.has(i.modifier) && !et(c, !!i.array)) throw new Pe({
|
|
544
544
|
param: e,
|
|
545
545
|
type: t?.type,
|
|
546
546
|
modifier: i.modifier
|
|
@@ -552,45 +552,45 @@ function y(e, t) {
|
|
|
552
552
|
...o,
|
|
553
553
|
...l
|
|
554
554
|
};
|
|
555
|
-
return
|
|
555
|
+
return Ve.set(n, u), u;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function C(e, t = [], n = "", r = 0) {
|
|
558
558
|
let i = e.trim().length;
|
|
559
559
|
for (let a = 0; a < i; a++) {
|
|
560
560
|
let i = e[a], o = e.slice(a + 1);
|
|
561
561
|
switch (i) {
|
|
562
|
-
case ",": return r === 0 ?
|
|
563
|
-
case "(": return
|
|
564
|
-
case ")": return
|
|
565
|
-
default: return
|
|
562
|
+
case ",": return r === 0 ? C(o, [...t, n.trim()]) : C(o, t, `${n}${i}`, r);
|
|
563
|
+
case "(": return C(o, t, `${n}${i}`, r + 1);
|
|
564
|
+
case ")": return C(o, t, `${n}${i}`, r - 1);
|
|
565
|
+
default: return C(o, t, `${n}${i}`, r);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
if (n === "") return t;
|
|
569
|
-
if (r !== 0) throw new
|
|
569
|
+
if (r !== 0) throw new ze({
|
|
570
570
|
current: n,
|
|
571
571
|
depth: r
|
|
572
572
|
});
|
|
573
573
|
return t.push(n.trim()), t;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return e === "address" || e === "bool" || e === "function" || e === "string" ||
|
|
575
|
+
function Ze(e) {
|
|
576
|
+
return e === "address" || e === "bool" || e === "function" || e === "string" || ee.test(e) || v.test(e);
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" ||
|
|
578
|
+
var Qe = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
579
|
+
function $e(e) {
|
|
580
|
+
return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" || ee.test(e) || v.test(e) || Qe.test(e);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function et(e, t) {
|
|
583
583
|
return t || e === "bytes" || e === "string" || e === "tuple";
|
|
584
584
|
}
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region ../../node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
587
|
-
function
|
|
587
|
+
function tt(e) {
|
|
588
588
|
let t = {}, n = e.length;
|
|
589
589
|
for (let r = 0; r < n; r++) {
|
|
590
590
|
let n = e[r];
|
|
591
|
-
if (!
|
|
592
|
-
let i =
|
|
593
|
-
if (!i) throw new
|
|
591
|
+
if (!me(n)) continue;
|
|
592
|
+
let i = he(n);
|
|
593
|
+
if (!i) throw new x({
|
|
594
594
|
signature: n,
|
|
595
595
|
type: "struct"
|
|
596
596
|
});
|
|
@@ -598,82 +598,82 @@ function it(e) {
|
|
|
598
598
|
for (let e = 0; e < s; e++) {
|
|
599
599
|
let t = a[e].trim();
|
|
600
600
|
if (!t) continue;
|
|
601
|
-
let n =
|
|
601
|
+
let n = S(t, { type: "struct" });
|
|
602
602
|
o.push(n);
|
|
603
603
|
}
|
|
604
|
-
if (!o.length) throw new
|
|
604
|
+
if (!o.length) throw new Le({ signature: n });
|
|
605
605
|
t[i.name] = o;
|
|
606
606
|
}
|
|
607
607
|
let r = {}, i = Object.entries(t), a = i.length;
|
|
608
608
|
for (let e = 0; e < a; e++) {
|
|
609
609
|
let [n, a] = i[e];
|
|
610
|
-
r[n] =
|
|
610
|
+
r[n] = rt(a, t);
|
|
611
611
|
}
|
|
612
612
|
return r;
|
|
613
613
|
}
|
|
614
|
-
var
|
|
615
|
-
function
|
|
614
|
+
var nt = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
615
|
+
function rt(e = [], t = {}, n = /* @__PURE__ */ new Set()) {
|
|
616
616
|
let r = [], i = e.length;
|
|
617
617
|
for (let a = 0; a < i; a++) {
|
|
618
618
|
let i = e[a];
|
|
619
|
-
if (
|
|
619
|
+
if (te.test(i.type)) r.push(i);
|
|
620
620
|
else {
|
|
621
|
-
let e =
|
|
622
|
-
if (!e?.type) throw new
|
|
621
|
+
let e = _(nt, i.type);
|
|
622
|
+
if (!e?.type) throw new Fe({ abiParameter: i });
|
|
623
623
|
let { array: a, type: o } = e;
|
|
624
624
|
if (o in t) {
|
|
625
|
-
if (n.has(o)) throw new
|
|
625
|
+
if (n.has(o)) throw new Re({ type: o });
|
|
626
626
|
r.push({
|
|
627
627
|
...i,
|
|
628
628
|
type: `tuple${a ?? ""}`,
|
|
629
|
-
components:
|
|
629
|
+
components: rt(t[o], t, new Set([...n, o]))
|
|
630
630
|
});
|
|
631
|
-
} else if (
|
|
632
|
-
else throw new
|
|
631
|
+
} else if (Ze(o)) r.push(i);
|
|
632
|
+
else throw new Oe({ type: o });
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
return r;
|
|
636
636
|
}
|
|
637
637
|
//#endregion
|
|
638
638
|
//#region ../../node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
639
|
-
function
|
|
640
|
-
let t =
|
|
639
|
+
function it(e) {
|
|
640
|
+
let t = tt(e), n = [], r = e.length;
|
|
641
641
|
for (let i = 0; i < r; i++) {
|
|
642
642
|
let r = e[i];
|
|
643
|
-
|
|
643
|
+
me(r) || n.push(He(r, t));
|
|
644
644
|
}
|
|
645
645
|
return n;
|
|
646
646
|
}
|
|
647
647
|
//#endregion
|
|
648
648
|
//#region ../../node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
649
|
-
function
|
|
650
|
-
if (e.type !== "function" && e.type !== "event" && e.type !== "error") throw new
|
|
651
|
-
return `${e.name}(${
|
|
649
|
+
function w(e, { includeName: t = !1 } = {}) {
|
|
650
|
+
if (e.type !== "function" && e.type !== "event" && e.type !== "error") throw new Mt(e.type);
|
|
651
|
+
return `${e.name}(${at(e.inputs, { includeName: t })})`;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return e ? e.map((e) =>
|
|
653
|
+
function at(e, { includeName: t = !1 } = {}) {
|
|
654
|
+
return e ? e.map((e) => ot(e, { includeName: t })).join(t ? ", " : ",") : "";
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
return e.type.startsWith("tuple") ? `(${
|
|
656
|
+
function ot(e, { includeName: t }) {
|
|
657
|
+
return e.type.startsWith("tuple") ? `(${at(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region ../../node_modules/viem/_esm/utils/data/isHex.js
|
|
661
|
-
function
|
|
661
|
+
function T(e, { strict: t = !0 } = {}) {
|
|
662
662
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
663
663
|
}
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region ../../node_modules/viem/_esm/utils/data/size.js
|
|
666
|
-
function
|
|
667
|
-
return
|
|
666
|
+
function E(e) {
|
|
667
|
+
return T(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
668
668
|
}
|
|
669
669
|
//#endregion
|
|
670
670
|
//#region ../../node_modules/viem/_esm/errors/version.js
|
|
671
|
-
var
|
|
671
|
+
var st = "2.54.2", ct = {
|
|
672
672
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: n }) => t ? `${e ?? "https://viem.sh"}${t}${n ? `#${n}` : ""}` : void 0,
|
|
673
|
-
version: `viem@${
|
|
674
|
-
},
|
|
673
|
+
version: `viem@${st}`
|
|
674
|
+
}, D = class e extends Error {
|
|
675
675
|
constructor(t, n = {}) {
|
|
676
|
-
let r = n.cause instanceof e ? n.cause.details : n.cause?.message ? n.cause.message : n.details, i = n.cause instanceof e && n.cause.docsPath || n.docsPath, a =
|
|
676
|
+
let r = n.cause instanceof e ? n.cause.details : n.cause?.message ? n.cause.message : n.details, i = n.cause instanceof e && n.cause.docsPath || n.docsPath, a = ct.getDocsUrl?.({
|
|
677
677
|
...n,
|
|
678
678
|
docsPath: i
|
|
679
679
|
}), o = [
|
|
@@ -682,7 +682,7 @@ var ut = "2.46.2", dt = {
|
|
|
682
682
|
...n.metaMessages ? [...n.metaMessages, ""] : [],
|
|
683
683
|
...a ? [`Docs: ${a}`] : [],
|
|
684
684
|
...r ? [`Details: ${r}`] : [],
|
|
685
|
-
...
|
|
685
|
+
...ct.version ? [`Version: ${ct.version}`] : []
|
|
686
686
|
].join("\n");
|
|
687
687
|
super(o, n.cause ? { cause: n.cause } : void 0), Object.defineProperty(this, "details", {
|
|
688
688
|
enumerable: !0,
|
|
@@ -714,35 +714,35 @@ var ut = "2.46.2", dt = {
|
|
|
714
714
|
configurable: !0,
|
|
715
715
|
writable: !0,
|
|
716
716
|
value: "BaseError"
|
|
717
|
-
}), this.details = r, this.docsPath = i, this.metaMessages = n.metaMessages, this.name = n.name ?? this.name, this.shortMessage = t, this.version =
|
|
717
|
+
}), this.details = r, this.docsPath = i, this.metaMessages = n.metaMessages, this.name = n.name ?? this.name, this.shortMessage = t, this.version = st;
|
|
718
718
|
}
|
|
719
719
|
walk(e) {
|
|
720
|
-
return
|
|
720
|
+
return lt(this, e);
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
|
-
function
|
|
724
|
-
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ?
|
|
723
|
+
function lt(e, t) {
|
|
724
|
+
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? lt(e.cause, t) : t ? null : e;
|
|
725
725
|
}
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region ../../node_modules/viem/_esm/errors/abi.js
|
|
728
|
-
var
|
|
728
|
+
var ut = class extends D {
|
|
729
729
|
constructor({ docsPath: e }) {
|
|
730
730
|
super(["A constructor was not found on the ABI.", "Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"), {
|
|
731
731
|
docsPath: e,
|
|
732
732
|
name: "AbiConstructorNotFoundError"
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
},
|
|
735
|
+
}, dt = class extends D {
|
|
736
736
|
constructor({ docsPath: e }) {
|
|
737
737
|
super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.", "Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"), {
|
|
738
738
|
docsPath: e,
|
|
739
739
|
name: "AbiConstructorParamsNotFoundError"
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
},
|
|
742
|
+
}, ft = class extends D {
|
|
743
743
|
constructor({ data: e, params: t, size: n }) {
|
|
744
744
|
super([`Data size of ${n} bytes is too small for given parameters.`].join("\n"), {
|
|
745
|
-
metaMessages: [`Params: (${
|
|
745
|
+
metaMessages: [`Params: (${at(t, { includeName: !0 })})`, `Data: ${e} (${n} bytes)`],
|
|
746
746
|
name: "AbiDecodingDataSizeTooSmallError"
|
|
747
747
|
}), Object.defineProperty(this, "data", {
|
|
748
748
|
enumerable: !0,
|
|
@@ -761,11 +761,14 @@ var pt = class extends w {
|
|
|
761
761
|
value: void 0
|
|
762
762
|
}), this.data = e, this.params = t, this.size = n;
|
|
763
763
|
}
|
|
764
|
-
},
|
|
765
|
-
constructor() {
|
|
766
|
-
super("Cannot decode zero data (\"0x\") with ABI parameters.", {
|
|
764
|
+
}, pt = class extends D {
|
|
765
|
+
constructor({ cause: e } = {}) {
|
|
766
|
+
super("Cannot decode zero data (\"0x\") with ABI parameters.", {
|
|
767
|
+
name: "AbiDecodingZeroDataError",
|
|
768
|
+
cause: e
|
|
769
|
+
});
|
|
767
770
|
}
|
|
768
|
-
},
|
|
771
|
+
}, mt = class extends D {
|
|
769
772
|
constructor({ expectedLength: e, givenLength: t, type: n }) {
|
|
770
773
|
super([
|
|
771
774
|
`ABI encoding array length mismatch for type ${n}.`,
|
|
@@ -773,11 +776,11 @@ var pt = class extends w {
|
|
|
773
776
|
`Given length: ${t}`
|
|
774
777
|
].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
775
778
|
}
|
|
776
|
-
},
|
|
779
|
+
}, ht = class extends D {
|
|
777
780
|
constructor({ expectedSize: e, value: t }) {
|
|
778
|
-
super(`Size of bytes "${t}" (bytes${
|
|
781
|
+
super(`Size of bytes "${t}" (bytes${E(t)}) does not match expected size (bytes${e}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
779
782
|
}
|
|
780
|
-
},
|
|
783
|
+
}, gt = class extends D {
|
|
781
784
|
constructor({ expectedLength: e, givenLength: t }) {
|
|
782
785
|
super([
|
|
783
786
|
"ABI encoding params/values length mismatch.",
|
|
@@ -785,7 +788,7 @@ var pt = class extends w {
|
|
|
785
788
|
`Given length (values): ${t}`
|
|
786
789
|
].join("\n"), { name: "AbiEncodingLengthMismatchError" });
|
|
787
790
|
}
|
|
788
|
-
},
|
|
791
|
+
}, _t = class extends D {
|
|
789
792
|
constructor(e, { docsPath: t }) {
|
|
790
793
|
super([
|
|
791
794
|
`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,
|
|
@@ -796,22 +799,23 @@ var pt = class extends w {
|
|
|
796
799
|
name: "AbiErrorInputsNotFoundError"
|
|
797
800
|
});
|
|
798
801
|
}
|
|
799
|
-
},
|
|
802
|
+
}, vt = class extends D {
|
|
800
803
|
constructor(e, { docsPath: t } = {}) {
|
|
801
804
|
super([`Error ${e ? `"${e}" ` : ""}not found on ABI.`, "Make sure you are using the correct ABI and that the error exists on it."].join("\n"), {
|
|
802
805
|
docsPath: t,
|
|
803
806
|
name: "AbiErrorNotFoundError"
|
|
804
807
|
});
|
|
805
808
|
}
|
|
806
|
-
},
|
|
807
|
-
constructor(e, { docsPath: t }) {
|
|
809
|
+
}, yt = class extends D {
|
|
810
|
+
constructor(e, { docsPath: t, cause: n }) {
|
|
808
811
|
super([
|
|
809
812
|
`Encoded error signature "${e}" not found on ABI.`,
|
|
810
813
|
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
811
814
|
`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`
|
|
812
815
|
].join("\n"), {
|
|
813
816
|
docsPath: t,
|
|
814
|
-
name: "AbiErrorSignatureNotFoundError"
|
|
817
|
+
name: "AbiErrorSignatureNotFoundError",
|
|
818
|
+
cause: n
|
|
815
819
|
}), Object.defineProperty(this, "signature", {
|
|
816
820
|
enumerable: !0,
|
|
817
821
|
configurable: !0,
|
|
@@ -819,14 +823,14 @@ var pt = class extends w {
|
|
|
819
823
|
value: void 0
|
|
820
824
|
}), this.signature = e;
|
|
821
825
|
}
|
|
822
|
-
},
|
|
826
|
+
}, bt = class extends D {
|
|
823
827
|
constructor({ docsPath: e }) {
|
|
824
828
|
super("Cannot extract event signature from empty topics.", {
|
|
825
829
|
docsPath: e,
|
|
826
830
|
name: "AbiEventSignatureEmptyTopicsError"
|
|
827
831
|
});
|
|
828
832
|
}
|
|
829
|
-
},
|
|
833
|
+
}, xt = class extends D {
|
|
830
834
|
constructor(e, { docsPath: t }) {
|
|
831
835
|
super([
|
|
832
836
|
`Encoded event signature "${e}" not found on ABI.`,
|
|
@@ -837,21 +841,21 @@ var pt = class extends w {
|
|
|
837
841
|
name: "AbiEventSignatureNotFoundError"
|
|
838
842
|
});
|
|
839
843
|
}
|
|
840
|
-
},
|
|
844
|
+
}, St = class extends D {
|
|
841
845
|
constructor(e, { docsPath: t } = {}) {
|
|
842
846
|
super([`Event ${e ? `"${e}" ` : ""}not found on ABI.`, "Make sure you are using the correct ABI and that the event exists on it."].join("\n"), {
|
|
843
847
|
docsPath: t,
|
|
844
848
|
name: "AbiEventNotFoundError"
|
|
845
849
|
});
|
|
846
850
|
}
|
|
847
|
-
},
|
|
851
|
+
}, O = class extends D {
|
|
848
852
|
constructor(e, { docsPath: t } = {}) {
|
|
849
853
|
super([`Function ${e ? `"${e}" ` : ""}not found on ABI.`, "Make sure you are using the correct ABI and that the function exists on it."].join("\n"), {
|
|
850
854
|
docsPath: t,
|
|
851
855
|
name: "AbiFunctionNotFoundError"
|
|
852
856
|
});
|
|
853
857
|
}
|
|
854
|
-
},
|
|
858
|
+
}, Ct = class extends D {
|
|
855
859
|
constructor(e, { docsPath: t }) {
|
|
856
860
|
super([
|
|
857
861
|
`Function "${e}" does not contain any \`outputs\` on ABI.`,
|
|
@@ -862,7 +866,7 @@ var pt = class extends w {
|
|
|
862
866
|
name: "AbiFunctionOutputsNotFoundError"
|
|
863
867
|
});
|
|
864
868
|
}
|
|
865
|
-
},
|
|
869
|
+
}, wt = class extends D {
|
|
866
870
|
constructor(e, { docsPath: t }) {
|
|
867
871
|
super([
|
|
868
872
|
`Encoded function signature "${e}" not found on ABI.`,
|
|
@@ -873,12 +877,12 @@ var pt = class extends w {
|
|
|
873
877
|
name: "AbiFunctionSignatureNotFoundError"
|
|
874
878
|
});
|
|
875
879
|
}
|
|
876
|
-
},
|
|
880
|
+
}, Tt = class extends D {
|
|
877
881
|
constructor(e, t) {
|
|
878
882
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
879
883
|
metaMessages: [
|
|
880
|
-
`\`${e.type}\` in \`${
|
|
881
|
-
`\`${t.type}\` in \`${
|
|
884
|
+
`\`${e.type}\` in \`${w(e.abiItem)}\`, and`,
|
|
885
|
+
`\`${t.type}\` in \`${w(t.abiItem)}\``,
|
|
882
886
|
"",
|
|
883
887
|
"These types encode differently and cannot be distinguished at runtime.",
|
|
884
888
|
"Remove one of the ambiguous items in the ABI."
|
|
@@ -886,14 +890,14 @@ var pt = class extends w {
|
|
|
886
890
|
name: "AbiItemAmbiguityError"
|
|
887
891
|
});
|
|
888
892
|
}
|
|
889
|
-
},
|
|
893
|
+
}, Et = class extends D {
|
|
890
894
|
constructor({ expectedSize: e, givenSize: t }) {
|
|
891
895
|
super(`Expected bytes${e}, got bytes${t}.`, { name: "BytesSizeMismatchError" });
|
|
892
896
|
}
|
|
893
|
-
},
|
|
897
|
+
}, Dt = class extends D {
|
|
894
898
|
constructor({ abiItem: e, data: t, params: n, size: r }) {
|
|
895
899
|
super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join("\n"), {
|
|
896
|
-
metaMessages: [`Params: (${
|
|
900
|
+
metaMessages: [`Params: (${at(n, { includeName: !0 })})`, `Data: ${t} (${r} bytes)`],
|
|
897
901
|
name: "DecodeLogDataMismatch"
|
|
898
902
|
}), Object.defineProperty(this, "abiItem", {
|
|
899
903
|
enumerable: !0,
|
|
@@ -917,78 +921,78 @@ var pt = class extends w {
|
|
|
917
921
|
value: void 0
|
|
918
922
|
}), this.abiItem = e, this.data = t, this.params = n, this.size = r;
|
|
919
923
|
}
|
|
920
|
-
},
|
|
924
|
+
}, Ot = class extends D {
|
|
921
925
|
constructor({ abiItem: e, param: t }) {
|
|
922
|
-
super([`Expected a topic for indexed event parameter${t.name ? ` "${t.name}"` : ""} on event "${
|
|
926
|
+
super([`Expected a topic for indexed event parameter${t.name ? ` "${t.name}"` : ""} on event "${w(e, { includeName: !0 })}".`].join("\n"), { name: "DecodeLogTopicsMismatch" }), Object.defineProperty(this, "abiItem", {
|
|
923
927
|
enumerable: !0,
|
|
924
928
|
configurable: !0,
|
|
925
929
|
writable: !0,
|
|
926
930
|
value: void 0
|
|
927
931
|
}), this.abiItem = e;
|
|
928
932
|
}
|
|
929
|
-
},
|
|
933
|
+
}, kt = class extends D {
|
|
930
934
|
constructor(e, { docsPath: t }) {
|
|
931
935
|
super([`Type "${e}" is not a valid encoding type.`, "Please provide a valid ABI type."].join("\n"), {
|
|
932
936
|
docsPath: t,
|
|
933
937
|
name: "InvalidAbiEncodingType"
|
|
934
938
|
});
|
|
935
939
|
}
|
|
936
|
-
},
|
|
940
|
+
}, At = class extends D {
|
|
937
941
|
constructor(e, { docsPath: t }) {
|
|
938
942
|
super([`Type "${e}" is not a valid decoding type.`, "Please provide a valid ABI type."].join("\n"), {
|
|
939
943
|
docsPath: t,
|
|
940
944
|
name: "InvalidAbiDecodingType"
|
|
941
945
|
});
|
|
942
946
|
}
|
|
943
|
-
},
|
|
947
|
+
}, jt = class extends D {
|
|
944
948
|
constructor(e) {
|
|
945
949
|
super([`Value "${e}" is not a valid array.`].join("\n"), { name: "InvalidArrayError" });
|
|
946
950
|
}
|
|
947
|
-
},
|
|
951
|
+
}, Mt = class extends D {
|
|
948
952
|
constructor(e) {
|
|
949
953
|
super([`"${e}" is not a valid definition type.`, "Valid types: \"function\", \"event\", \"error\""].join("\n"), { name: "InvalidDefinitionTypeError" });
|
|
950
954
|
}
|
|
951
|
-
},
|
|
955
|
+
}, Nt = class extends D {
|
|
952
956
|
constructor(e) {
|
|
953
957
|
super(`Type "${e}" is not supported for packed encoding.`, { name: "UnsupportedPackedAbiType" });
|
|
954
958
|
}
|
|
955
|
-
},
|
|
959
|
+
}, Pt = class extends D {
|
|
956
960
|
constructor({ offset: e, position: t, size: n }) {
|
|
957
961
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset "${e}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
958
962
|
}
|
|
959
|
-
},
|
|
963
|
+
}, Ft = class extends D {
|
|
960
964
|
constructor({ size: e, targetSize: t, type: n }) {
|
|
961
965
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
962
966
|
}
|
|
963
|
-
},
|
|
967
|
+
}, It = class extends D {
|
|
964
968
|
constructor({ size: e, targetSize: t, type: n }) {
|
|
965
969
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`, { name: "InvalidBytesLengthError" });
|
|
966
970
|
}
|
|
967
971
|
};
|
|
968
972
|
//#endregion
|
|
969
973
|
//#region ../../node_modules/viem/_esm/utils/data/pad.js
|
|
970
|
-
function
|
|
971
|
-
return typeof e == "string" ?
|
|
974
|
+
function k(e, { dir: t, size: n = 32 } = {}) {
|
|
975
|
+
return typeof e == "string" ? A(e, {
|
|
972
976
|
dir: t,
|
|
973
977
|
size: n
|
|
974
|
-
}) :
|
|
978
|
+
}) : Lt(e, {
|
|
975
979
|
dir: t,
|
|
976
980
|
size: n
|
|
977
981
|
});
|
|
978
982
|
}
|
|
979
|
-
function
|
|
983
|
+
function A(e, { dir: t, size: n = 32 } = {}) {
|
|
980
984
|
if (n === null) return e;
|
|
981
985
|
let r = e.replace("0x", "");
|
|
982
|
-
if (r.length > n * 2) throw new
|
|
986
|
+
if (r.length > n * 2) throw new Ft({
|
|
983
987
|
size: Math.ceil(r.length / 2),
|
|
984
988
|
targetSize: n,
|
|
985
989
|
type: "hex"
|
|
986
990
|
});
|
|
987
991
|
return `0x${r[t === "right" ? "padEnd" : "padStart"](n * 2, "0")}`;
|
|
988
992
|
}
|
|
989
|
-
function
|
|
993
|
+
function Lt(e, { dir: t, size: n = 32 } = {}) {
|
|
990
994
|
if (n === null) return e;
|
|
991
|
-
if (e.length > n) throw new
|
|
995
|
+
if (e.length > n) throw new Ft({
|
|
992
996
|
size: e.length,
|
|
993
997
|
targetSize: n,
|
|
994
998
|
type: "bytes"
|
|
@@ -1002,55 +1006,55 @@ function Bt(e, { dir: t, size: n = 32 } = {}) {
|
|
|
1002
1006
|
}
|
|
1003
1007
|
//#endregion
|
|
1004
1008
|
//#region ../../node_modules/viem/_esm/errors/encoding.js
|
|
1005
|
-
var
|
|
1009
|
+
var Rt = class extends D {
|
|
1006
1010
|
constructor({ max: e, min: t, signed: n, size: r, value: i }) {
|
|
1007
1011
|
super(`Number "${i}" is not in safe ${r ? `${r * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${e ? `(${t} to ${e})` : `(above ${t})`}`, { name: "IntegerOutOfRangeError" });
|
|
1008
1012
|
}
|
|
1009
|
-
},
|
|
1013
|
+
}, zt = class extends D {
|
|
1010
1014
|
constructor(e) {
|
|
1011
1015
|
super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, { name: "InvalidBytesBooleanError" });
|
|
1012
1016
|
}
|
|
1013
|
-
},
|
|
1017
|
+
}, Bt = class extends D {
|
|
1014
1018
|
constructor(e) {
|
|
1015
1019
|
super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
1016
1020
|
}
|
|
1017
|
-
},
|
|
1021
|
+
}, Vt = class extends D {
|
|
1018
1022
|
constructor({ givenSize: e, maxSize: t }) {
|
|
1019
1023
|
super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`, { name: "SizeOverflowError" });
|
|
1020
1024
|
}
|
|
1021
1025
|
};
|
|
1022
1026
|
//#endregion
|
|
1023
1027
|
//#region ../../node_modules/viem/_esm/utils/data/trim.js
|
|
1024
|
-
function
|
|
1028
|
+
function j(e, { dir: t = "left" } = {}) {
|
|
1025
1029
|
let n = typeof e == "string" ? e.replace("0x", "") : e, r = 0;
|
|
1026
1030
|
for (let e = 0; e < n.length - 1 && n[t === "left" ? e : n.length - e - 1].toString() === "0"; e++) r++;
|
|
1027
1031
|
return n = t === "left" ? n.slice(r) : n.slice(0, n.length - r), typeof e == "string" ? (n.length === 1 && t === "right" && (n = `${n}0`), `0x${n.length % 2 == 1 ? `0${n}` : n}`) : n;
|
|
1028
1032
|
}
|
|
1029
1033
|
//#endregion
|
|
1030
1034
|
//#region ../../node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1033
|
-
givenSize:
|
|
1035
|
+
function M(e, { size: t }) {
|
|
1036
|
+
if (E(e) > t) throw new Vt({
|
|
1037
|
+
givenSize: E(e),
|
|
1034
1038
|
maxSize: t
|
|
1035
1039
|
});
|
|
1036
1040
|
}
|
|
1037
|
-
function
|
|
1041
|
+
function Ht(e, t = {}) {
|
|
1038
1042
|
let { signed: n } = t;
|
|
1039
|
-
t.size &&
|
|
1043
|
+
t.size && M(e, { size: t.size });
|
|
1040
1044
|
let r = BigInt(e);
|
|
1041
1045
|
if (!n) return r;
|
|
1042
1046
|
let i = (e.length - 2) / 2;
|
|
1043
1047
|
return r <= (1n << BigInt(i) * 8n - 1n) - 1n ? r : r - BigInt(`0x${"f".padStart(i * 2, "f")}`) - 1n;
|
|
1044
1048
|
}
|
|
1045
|
-
function
|
|
1049
|
+
function Ut(e, t = {}) {
|
|
1046
1050
|
let n = e;
|
|
1047
|
-
if (t.size && (
|
|
1048
|
-
if (
|
|
1049
|
-
throw new
|
|
1051
|
+
if (t.size && (M(n, { size: t.size }), n = j(n)), j(n) === "0x00") return !1;
|
|
1052
|
+
if (j(n) === "0x01") return !0;
|
|
1053
|
+
throw new Bt(n);
|
|
1050
1054
|
}
|
|
1051
|
-
function
|
|
1052
|
-
let n =
|
|
1053
|
-
if (!Number.isSafeInteger(r)) throw new
|
|
1055
|
+
function Wt(e, t = {}) {
|
|
1056
|
+
let n = Ht(e, t), r = Number(n);
|
|
1057
|
+
if (!Number.isSafeInteger(r)) throw new Rt({
|
|
1054
1058
|
max: `${2 ** 53 - 1}`,
|
|
1055
1059
|
min: `${-(2 ** 53 - 1)}`,
|
|
1056
1060
|
signed: t.signed,
|
|
@@ -1061,30 +1065,30 @@ function qt(e, t = {}) {
|
|
|
1061
1065
|
}
|
|
1062
1066
|
//#endregion
|
|
1063
1067
|
//#region ../../node_modules/viem/_esm/utils/encoding/toHex.js
|
|
1064
|
-
var
|
|
1065
|
-
function
|
|
1066
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
1068
|
+
var Gt = /*#__PURE__*/ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
1069
|
+
function Kt(e, t = {}) {
|
|
1070
|
+
return typeof e == "number" || typeof e == "bigint" ? P(e, t) : typeof e == "string" ? Yt(e, t) : typeof e == "boolean" ? qt(e, t) : N(e, t);
|
|
1067
1071
|
}
|
|
1068
|
-
function
|
|
1072
|
+
function qt(e, t = {}) {
|
|
1069
1073
|
let n = `0x${Number(e)}`;
|
|
1070
|
-
return typeof t.size == "number" ? (
|
|
1074
|
+
return typeof t.size == "number" ? (M(n, { size: t.size }), k(n, { size: t.size })) : n;
|
|
1071
1075
|
}
|
|
1072
|
-
function
|
|
1076
|
+
function N(e, t = {}) {
|
|
1073
1077
|
let n = "";
|
|
1074
|
-
for (let t = 0; t < e.length; t++) n +=
|
|
1078
|
+
for (let t = 0; t < e.length; t++) n += Gt[e[t]];
|
|
1075
1079
|
let r = `0x${n}`;
|
|
1076
|
-
return typeof t.size == "number" ? (
|
|
1080
|
+
return typeof t.size == "number" ? (M(r, { size: t.size }), k(r, {
|
|
1077
1081
|
dir: "right",
|
|
1078
1082
|
size: t.size
|
|
1079
1083
|
})) : r;
|
|
1080
1084
|
}
|
|
1081
|
-
function
|
|
1085
|
+
function P(e, t = {}) {
|
|
1082
1086
|
let { signed: n, size: r } = t, i = BigInt(e), a;
|
|
1083
1087
|
r ? a = n ? (1n << BigInt(r) * 8n - 1n) - 1n : 2n ** (BigInt(r) * 8n) - 1n : typeof e == "number" && (a = BigInt(2 ** 53 - 1));
|
|
1084
1088
|
let o = typeof a == "bigint" && n ? -a - 1n : 0;
|
|
1085
1089
|
if (a && i > a || i < o) {
|
|
1086
1090
|
let t = typeof e == "bigint" ? "n" : "";
|
|
1087
|
-
throw new
|
|
1091
|
+
throw new Rt({
|
|
1088
1092
|
max: a ? `${a}${t}` : void 0,
|
|
1089
1093
|
min: `${o}${t}`,
|
|
1090
1094
|
signed: n,
|
|
@@ -1093,23 +1097,23 @@ function j(e, t = {}) {
|
|
|
1093
1097
|
});
|
|
1094
1098
|
}
|
|
1095
1099
|
let s = `0x${(n && i < 0 ? (1n << BigInt(r * 8)) + BigInt(i) : i).toString(16)}`;
|
|
1096
|
-
return r ?
|
|
1100
|
+
return r ? k(s, { size: r }) : s;
|
|
1097
1101
|
}
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1102
|
+
var Jt = /*#__PURE__*/ new TextEncoder();
|
|
1103
|
+
function Yt(e, t = {}) {
|
|
1104
|
+
return N(Jt.encode(e), t);
|
|
1101
1105
|
}
|
|
1102
1106
|
//#endregion
|
|
1103
1107
|
//#region ../../node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
1104
|
-
var
|
|
1105
|
-
function
|
|
1106
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
1108
|
+
var Xt = /*#__PURE__*/ new TextEncoder();
|
|
1109
|
+
function Zt(e, t = {}) {
|
|
1110
|
+
return typeof e == "number" || typeof e == "bigint" ? tn(e, t) : typeof e == "boolean" ? Qt(e, t) : T(e) ? en(e, t) : nn(e, t);
|
|
1107
1111
|
}
|
|
1108
|
-
function
|
|
1112
|
+
function Qt(e, t = {}) {
|
|
1109
1113
|
let n = new Uint8Array(1);
|
|
1110
|
-
return n[0] = Number(e), typeof t.size == "number" ? (
|
|
1114
|
+
return n[0] = Number(e), typeof t.size == "number" ? (M(n, { size: t.size }), k(n, { size: t.size })) : n;
|
|
1111
1115
|
}
|
|
1112
|
-
var
|
|
1116
|
+
var F = {
|
|
1113
1117
|
zero: 48,
|
|
1114
1118
|
nine: 57,
|
|
1115
1119
|
A: 65,
|
|
@@ -1117,14 +1121,14 @@ var M = {
|
|
|
1117
1121
|
a: 97,
|
|
1118
1122
|
f: 102
|
|
1119
1123
|
};
|
|
1120
|
-
function
|
|
1121
|
-
if (e >=
|
|
1122
|
-
if (e >=
|
|
1123
|
-
if (e >=
|
|
1124
|
+
function $t(e) {
|
|
1125
|
+
if (e >= F.zero && e <= F.nine) return e - F.zero;
|
|
1126
|
+
if (e >= F.A && e <= F.F) return e - (F.A - 10);
|
|
1127
|
+
if (e >= F.a && e <= F.f) return e - (F.a - 10);
|
|
1124
1128
|
}
|
|
1125
|
-
function
|
|
1129
|
+
function en(e, t = {}) {
|
|
1126
1130
|
let n = e;
|
|
1127
|
-
t.size && (
|
|
1131
|
+
t.size && (M(n, { size: t.size }), n = k(n, {
|
|
1128
1132
|
dir: "right",
|
|
1129
1133
|
size: t.size
|
|
1130
1134
|
}));
|
|
@@ -1132,54 +1136,54 @@ function rn(e, t = {}) {
|
|
|
1132
1136
|
r.length % 2 && (r = `0${r}`);
|
|
1133
1137
|
let i = r.length / 2, a = new Uint8Array(i);
|
|
1134
1138
|
for (let e = 0, t = 0; e < i; e++) {
|
|
1135
|
-
let n =
|
|
1136
|
-
if (n === void 0 || i === void 0) throw new
|
|
1139
|
+
let n = $t(r.charCodeAt(t++)), i = $t(r.charCodeAt(t++));
|
|
1140
|
+
if (n === void 0 || i === void 0) throw new D(`Invalid byte sequence ("${r[t - 2]}${r[t - 1]}" in "${r}").`);
|
|
1137
1141
|
a[e] = n * 16 + i;
|
|
1138
1142
|
}
|
|
1139
1143
|
return a;
|
|
1140
1144
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1145
|
+
function tn(e, t) {
|
|
1146
|
+
return en(P(e, t));
|
|
1143
1147
|
}
|
|
1144
|
-
function
|
|
1145
|
-
let n =
|
|
1146
|
-
return typeof t.size == "number" ? (
|
|
1148
|
+
function nn(e, t = {}) {
|
|
1149
|
+
let n = Xt.encode(e);
|
|
1150
|
+
return typeof t.size == "number" ? (M(n, { size: t.size }), k(n, {
|
|
1147
1151
|
dir: "right",
|
|
1148
1152
|
size: t.size
|
|
1149
1153
|
})) : n;
|
|
1150
1154
|
}
|
|
1151
1155
|
//#endregion
|
|
1152
1156
|
//#region ../../node_modules/@noble/hashes/esm/sha3.js
|
|
1153
|
-
var
|
|
1154
|
-
for (let e = 0, t =
|
|
1155
|
-
[n, r] = [r, (2 * n + 3 * r) % 5],
|
|
1156
|
-
let i =
|
|
1157
|
-
for (let e = 0; e < 7; e++) t = (t <<
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1160
|
-
var
|
|
1161
|
-
function
|
|
1157
|
+
var rn = BigInt(0), an = BigInt(1), on = BigInt(2), sn = BigInt(7), cn = BigInt(256), ln = BigInt(113), un = [], dn = [], fn = [];
|
|
1158
|
+
for (let e = 0, t = an, n = 1, r = 0; e < 24; e++) {
|
|
1159
|
+
[n, r] = [r, (2 * n + 3 * r) % 5], un.push(2 * (5 * r + n)), dn.push((e + 1) * (e + 2) / 2 % 64);
|
|
1160
|
+
let i = rn;
|
|
1161
|
+
for (let e = 0; e < 7; e++) t = (t << an ^ (t >> sn) * ln) % cn, t & on && (i ^= an << (an << /* @__PURE__ */ BigInt(e)) - an);
|
|
1162
|
+
fn.push(i);
|
|
1163
|
+
}
|
|
1164
|
+
var pn = l(fn, !0), mn = pn[0], hn = pn[1], gn = (e, t, n) => n > 32 ? s(e, t, n) : o(e, t, n), _n = (e, t, r) => r > 32 ? n(e, t, r) : c(e, t, r);
|
|
1165
|
+
function vn(e, t = 24) {
|
|
1162
1166
|
let n = new Uint32Array(10);
|
|
1163
1167
|
for (let r = 24 - t; r < 24; r++) {
|
|
1164
1168
|
for (let t = 0; t < 10; t++) n[t] = e[t] ^ e[t + 10] ^ e[t + 20] ^ e[t + 30] ^ e[t + 40];
|
|
1165
1169
|
for (let t = 0; t < 10; t += 2) {
|
|
1166
|
-
let r = (t + 8) % 10, i = (t + 2) % 10, a = n[i], o = n[i + 1], s =
|
|
1170
|
+
let r = (t + 8) % 10, i = (t + 2) % 10, a = n[i], o = n[i + 1], s = gn(a, o, 1) ^ n[r], c = _n(a, o, 1) ^ n[r + 1];
|
|
1167
1171
|
for (let n = 0; n < 50; n += 10) e[t + n] ^= s, e[t + n + 1] ^= c;
|
|
1168
1172
|
}
|
|
1169
1173
|
let t = e[2], i = e[3];
|
|
1170
1174
|
for (let n = 0; n < 24; n++) {
|
|
1171
|
-
let r =
|
|
1175
|
+
let r = dn[n], a = gn(t, i, r), o = _n(t, i, r), s = un[n];
|
|
1172
1176
|
t = e[s], i = e[s + 1], e[s] = a, e[s + 1] = o;
|
|
1173
1177
|
}
|
|
1174
1178
|
for (let t = 0; t < 50; t += 10) {
|
|
1175
1179
|
for (let r = 0; r < 10; r++) n[r] = e[t + r];
|
|
1176
1180
|
for (let r = 0; r < 10; r++) e[t + r] ^= ~n[(r + 2) % 10] & n[(r + 4) % 10];
|
|
1177
1181
|
}
|
|
1178
|
-
e[0] ^=
|
|
1182
|
+
e[0] ^= mn[r], e[1] ^= hn[r];
|
|
1179
1183
|
}
|
|
1180
1184
|
a(n);
|
|
1181
1185
|
}
|
|
1182
|
-
var
|
|
1186
|
+
var yn = class t extends m {
|
|
1183
1187
|
constructor(t, n, r, a = !1, o = 24) {
|
|
1184
1188
|
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = a, this.rounds = o, e(r), !(0 < t && t < 200)) throw Error("only keccak-f1600 function is supported");
|
|
1185
1189
|
this.state = new Uint8Array(200), this.state32 = i(this.state);
|
|
@@ -1188,7 +1192,7 @@ var Sn = class t extends ee {
|
|
|
1188
1192
|
return this._cloneInto();
|
|
1189
1193
|
}
|
|
1190
1194
|
keccak() {
|
|
1191
|
-
d(this.state32),
|
|
1195
|
+
d(this.state32), vn(this.state32, this.rounds), d(this.state32), this.posOut = 0, this.pos = 0;
|
|
1192
1196
|
}
|
|
1193
1197
|
update(e) {
|
|
1194
1198
|
p(this), e = r(e), u(e);
|
|
@@ -1237,22 +1241,22 @@ var Sn = class t extends ee {
|
|
|
1237
1241
|
let { blockLen: n, suffix: r, outputLen: i, rounds: a, enableXOF: o } = this;
|
|
1238
1242
|
return e ||= new t(n, r, i, o, a), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = a, e.suffix = r, e.outputLen = i, e.enableXOF = o, e.destroyed = this.destroyed, e;
|
|
1239
1243
|
}
|
|
1240
|
-
},
|
|
1244
|
+
}, bn = /* @__PURE__ */ ((e, n, r) => t(() => new yn(n, e, r)))(1, 136, 256 / 8);
|
|
1241
1245
|
//#endregion
|
|
1242
1246
|
//#region ../../node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1243
|
-
function
|
|
1244
|
-
let n = t || "hex", r =
|
|
1245
|
-
return n === "bytes" ? r :
|
|
1247
|
+
function xn(e, t) {
|
|
1248
|
+
let n = t || "hex", r = bn(T(e, { strict: !1 }) ? Zt(e) : e);
|
|
1249
|
+
return n === "bytes" ? r : Kt(r);
|
|
1246
1250
|
}
|
|
1247
1251
|
//#endregion
|
|
1248
1252
|
//#region ../../node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1253
|
+
var Sn = (e) => xn(Zt(e));
|
|
1254
|
+
function Cn(e) {
|
|
1255
|
+
return Sn(e);
|
|
1252
1256
|
}
|
|
1253
1257
|
//#endregion
|
|
1254
1258
|
//#region ../../node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1255
|
-
function
|
|
1259
|
+
function wn(e) {
|
|
1256
1260
|
let t = !0, n = "", r = 0, i = "", a = !1;
|
|
1257
1261
|
for (let o = 0; o < e.length; o++) {
|
|
1258
1262
|
let s = e[o];
|
|
@@ -1280,27 +1284,27 @@ function Dn(e) {
|
|
|
1280
1284
|
i += s, n += s;
|
|
1281
1285
|
}
|
|
1282
1286
|
}
|
|
1283
|
-
if (!a) throw new
|
|
1287
|
+
if (!a) throw new D("Unable to normalize signature.");
|
|
1284
1288
|
return i;
|
|
1285
1289
|
}
|
|
1286
1290
|
//#endregion
|
|
1287
1291
|
//#region ../../node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1288
|
-
var
|
|
1292
|
+
var Tn = (e) => wn(typeof e == "string" ? e : re(e));
|
|
1289
1293
|
//#endregion
|
|
1290
1294
|
//#region ../../node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1295
|
+
function En(e) {
|
|
1296
|
+
return Cn(Tn(e));
|
|
1293
1297
|
}
|
|
1294
1298
|
//#endregion
|
|
1295
1299
|
//#region ../../node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1296
|
-
var
|
|
1300
|
+
var Dn = En, I = class extends D {
|
|
1297
1301
|
constructor({ address: e }) {
|
|
1298
1302
|
super(`Address "${e}" is invalid.`, {
|
|
1299
1303
|
metaMessages: ["- Address must be a hex value of 20 bytes (40 hex characters).", "- Address must match its checksum counterpart."],
|
|
1300
1304
|
name: "InvalidAddressError"
|
|
1301
1305
|
});
|
|
1302
1306
|
}
|
|
1303
|
-
},
|
|
1307
|
+
}, On = class extends Map {
|
|
1304
1308
|
constructor(e) {
|
|
1305
1309
|
super(), Object.defineProperty(this, "maxSize", {
|
|
1306
1310
|
enumerable: !0,
|
|
@@ -1311,109 +1315,109 @@ var An = kn, N = class extends w {
|
|
|
1311
1315
|
}
|
|
1312
1316
|
get(e) {
|
|
1313
1317
|
let t = super.get(e);
|
|
1314
|
-
return super.has(e) &&
|
|
1318
|
+
return super.has(e) && (super.delete(e), super.set(e, t)), t;
|
|
1315
1319
|
}
|
|
1316
1320
|
set(e, t) {
|
|
1317
|
-
if (super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
1318
|
-
let e =
|
|
1319
|
-
e &&
|
|
1321
|
+
if (super.has(e) && super.delete(e), super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
1322
|
+
let e = super.keys().next().value;
|
|
1323
|
+
e !== void 0 && super.delete(e);
|
|
1320
1324
|
}
|
|
1321
1325
|
return this;
|
|
1322
1326
|
}
|
|
1323
|
-
},
|
|
1324
|
-
function
|
|
1325
|
-
if (
|
|
1326
|
-
let n = t ? `${t}${e.toLowerCase()}` : e.substring(2).toLowerCase(), r =
|
|
1327
|
+
}, kn = /*#__PURE__*/ new On(8192);
|
|
1328
|
+
function An(e, t) {
|
|
1329
|
+
if (kn.has(`${e}.${t}`)) return kn.get(`${e}.${t}`);
|
|
1330
|
+
let n = t ? `${t}${e.toLowerCase()}` : e.substring(2).toLowerCase(), r = xn(nn(n), "bytes"), i = (t ? n.substring(`${t}0x`.length) : n).split("");
|
|
1327
1331
|
for (let e = 0; e < 40; e += 2) r[e >> 1] >> 4 >= 8 && i[e] && (i[e] = i[e].toUpperCase()), (r[e >> 1] & 15) >= 8 && i[e + 1] && (i[e + 1] = i[e + 1].toUpperCase());
|
|
1328
1332
|
let a = `0x${i.join("")}`;
|
|
1329
|
-
return
|
|
1333
|
+
return kn.set(`${e}.${t}`, a), a;
|
|
1330
1334
|
}
|
|
1331
|
-
function
|
|
1332
|
-
if (!
|
|
1333
|
-
return
|
|
1335
|
+
function jn(e, t) {
|
|
1336
|
+
if (!L(e, { strict: !1 })) throw new I({ address: e });
|
|
1337
|
+
return An(e, t);
|
|
1334
1338
|
}
|
|
1335
1339
|
//#endregion
|
|
1336
1340
|
//#region ../../node_modules/viem/_esm/utils/address/isAddress.js
|
|
1337
|
-
var
|
|
1338
|
-
function
|
|
1341
|
+
var Mn = /^0x[a-fA-F0-9]{40}$/, Nn = /*#__PURE__*/ new On(8192);
|
|
1342
|
+
function L(e, t) {
|
|
1339
1343
|
let { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
|
|
1340
|
-
if (
|
|
1341
|
-
let i =
|
|
1342
|
-
return
|
|
1344
|
+
if (Nn.has(r)) return Nn.get(r);
|
|
1345
|
+
let i = Mn.test(e) ? e.toLowerCase() === e ? !0 : n ? An(e) === e : !0 : !1;
|
|
1346
|
+
return Nn.set(r, i), i;
|
|
1343
1347
|
}
|
|
1344
1348
|
//#endregion
|
|
1345
1349
|
//#region ../../node_modules/viem/_esm/utils/data/concat.js
|
|
1346
|
-
function
|
|
1347
|
-
return typeof e[0] == "string" ?
|
|
1350
|
+
function R(e) {
|
|
1351
|
+
return typeof e[0] == "string" ? Fn(e) : Pn(e);
|
|
1348
1352
|
}
|
|
1349
|
-
function
|
|
1353
|
+
function Pn(e) {
|
|
1350
1354
|
let t = 0;
|
|
1351
1355
|
for (let n of e) t += n.length;
|
|
1352
1356
|
let n = new Uint8Array(t), r = 0;
|
|
1353
1357
|
for (let t of e) n.set(t, r), r += t.length;
|
|
1354
1358
|
return n;
|
|
1355
1359
|
}
|
|
1356
|
-
function
|
|
1360
|
+
function Fn(e) {
|
|
1357
1361
|
return `0x${e.reduce((e, t) => e + t.replace("0x", ""), "")}`;
|
|
1358
1362
|
}
|
|
1359
1363
|
//#endregion
|
|
1360
1364
|
//#region ../../node_modules/viem/_esm/utils/data/slice.js
|
|
1361
|
-
function
|
|
1362
|
-
return
|
|
1365
|
+
function z(e, t, n, { strict: r } = {}) {
|
|
1366
|
+
return T(e, { strict: !1 }) ? zn(e, t, n, { strict: r }) : Rn(e, t, n, { strict: r });
|
|
1363
1367
|
}
|
|
1364
|
-
function
|
|
1365
|
-
if (typeof t == "number" && t > 0 && t >
|
|
1368
|
+
function In(e, t) {
|
|
1369
|
+
if (typeof t == "number" && t > 0 && t > E(e) - 1) throw new Pt({
|
|
1366
1370
|
offset: t,
|
|
1367
1371
|
position: "start",
|
|
1368
|
-
size:
|
|
1372
|
+
size: E(e)
|
|
1369
1373
|
});
|
|
1370
1374
|
}
|
|
1371
|
-
function
|
|
1372
|
-
if (typeof t == "number" && typeof n == "number" &&
|
|
1375
|
+
function Ln(e, t, n) {
|
|
1376
|
+
if (typeof t == "number" && typeof n == "number" && E(e) !== n - t) throw new Pt({
|
|
1373
1377
|
offset: n,
|
|
1374
1378
|
position: "end",
|
|
1375
|
-
size:
|
|
1379
|
+
size: E(e)
|
|
1376
1380
|
});
|
|
1377
1381
|
}
|
|
1378
|
-
function
|
|
1379
|
-
|
|
1382
|
+
function Rn(e, t, n, { strict: r } = {}) {
|
|
1383
|
+
In(e, t);
|
|
1380
1384
|
let i = e.slice(t, n);
|
|
1381
|
-
return r &&
|
|
1385
|
+
return r && Ln(i, t, n), i;
|
|
1382
1386
|
}
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1387
|
+
function zn(e, t, n, { strict: r } = {}) {
|
|
1388
|
+
In(e, t);
|
|
1385
1389
|
let i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
1386
|
-
return r &&
|
|
1390
|
+
return r && Ln(i, t, n), i;
|
|
1387
1391
|
}
|
|
1388
1392
|
//#endregion
|
|
1389
1393
|
//#region ../../node_modules/viem/_esm/utils/regex.js
|
|
1390
|
-
var
|
|
1394
|
+
var Bn = /^(.*)\[([0-9]*)\]$/, Vn = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, Hn = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1391
1395
|
//#endregion
|
|
1392
1396
|
//#region ../../node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1393
|
-
function
|
|
1394
|
-
if (e.length !== t.length) throw new
|
|
1397
|
+
function Un(e, t) {
|
|
1398
|
+
if (e.length !== t.length) throw new gt({
|
|
1395
1399
|
expectedLength: e.length,
|
|
1396
1400
|
givenLength: t.length
|
|
1397
1401
|
});
|
|
1398
|
-
let n =
|
|
1402
|
+
let n = Kn(Wn({
|
|
1399
1403
|
params: e,
|
|
1400
1404
|
values: t
|
|
1401
1405
|
}));
|
|
1402
1406
|
return n.length === 0 ? "0x" : n;
|
|
1403
1407
|
}
|
|
1404
|
-
function
|
|
1408
|
+
function Wn({ params: e, values: t }) {
|
|
1405
1409
|
let n = [];
|
|
1406
|
-
for (let r = 0; r < e.length; r++) n.push(
|
|
1410
|
+
for (let r = 0; r < e.length; r++) n.push(Gn({
|
|
1407
1411
|
param: e[r],
|
|
1408
1412
|
value: t[r]
|
|
1409
1413
|
}));
|
|
1410
1414
|
return n;
|
|
1411
1415
|
}
|
|
1412
|
-
function
|
|
1413
|
-
let n =
|
|
1416
|
+
function Gn({ param: e, value: t }) {
|
|
1417
|
+
let n = er(e.type);
|
|
1414
1418
|
if (n) {
|
|
1415
1419
|
let [r, i] = n;
|
|
1416
|
-
return
|
|
1420
|
+
return Jn(t, {
|
|
1417
1421
|
length: r,
|
|
1418
1422
|
param: {
|
|
1419
1423
|
...e,
|
|
@@ -1421,63 +1425,63 @@ function Jn({ param: e, value: t }) {
|
|
|
1421
1425
|
}
|
|
1422
1426
|
});
|
|
1423
1427
|
}
|
|
1424
|
-
if (e.type === "tuple") return
|
|
1425
|
-
if (e.type === "address") return
|
|
1426
|
-
if (e.type === "bool") return
|
|
1428
|
+
if (e.type === "tuple") return $n(t, { param: e });
|
|
1429
|
+
if (e.type === "address") return qn(t);
|
|
1430
|
+
if (e.type === "bool") return Xn(t);
|
|
1427
1431
|
if (e.type.startsWith("uint") || e.type.startsWith("int")) {
|
|
1428
|
-
let n = e.type.startsWith("int"), [, , r = "256"] =
|
|
1429
|
-
return
|
|
1432
|
+
let n = e.type.startsWith("int"), [, , r = "256"] = Hn.exec(e.type) ?? [];
|
|
1433
|
+
return Zn(t, {
|
|
1430
1434
|
signed: n,
|
|
1431
1435
|
size: Number(r)
|
|
1432
1436
|
});
|
|
1433
1437
|
}
|
|
1434
|
-
if (e.type.startsWith("bytes")) return
|
|
1435
|
-
if (e.type === "string") return
|
|
1436
|
-
throw new
|
|
1438
|
+
if (e.type.startsWith("bytes")) return Yn(t, { param: e });
|
|
1439
|
+
if (e.type === "string") return Qn(t);
|
|
1440
|
+
throw new kt(e.type, { docsPath: "/docs/contract/encodeAbiParameters" });
|
|
1437
1441
|
}
|
|
1438
|
-
function
|
|
1442
|
+
function Kn(e) {
|
|
1439
1443
|
let t = 0;
|
|
1440
1444
|
for (let n = 0; n < e.length; n++) {
|
|
1441
1445
|
let { dynamic: r, encoded: i } = e[n];
|
|
1442
|
-
r ? t += 32 : t +=
|
|
1446
|
+
r ? t += 32 : t += E(i);
|
|
1443
1447
|
}
|
|
1444
1448
|
let n = [], r = [], i = 0;
|
|
1445
1449
|
for (let a = 0; a < e.length; a++) {
|
|
1446
1450
|
let { dynamic: o, encoded: s } = e[a];
|
|
1447
|
-
o ? (n.push(
|
|
1451
|
+
o ? (n.push(P(t + i, { size: 32 })), r.push(s), i += E(s)) : n.push(s);
|
|
1448
1452
|
}
|
|
1449
|
-
return
|
|
1453
|
+
return R([...n, ...r]);
|
|
1450
1454
|
}
|
|
1451
|
-
function
|
|
1452
|
-
if (!
|
|
1455
|
+
function qn(e) {
|
|
1456
|
+
if (!L(e)) throw new I({ address: e });
|
|
1453
1457
|
return {
|
|
1454
1458
|
dynamic: !1,
|
|
1455
|
-
encoded:
|
|
1459
|
+
encoded: A(e.toLowerCase())
|
|
1456
1460
|
};
|
|
1457
1461
|
}
|
|
1458
|
-
function
|
|
1462
|
+
function Jn(e, { length: t, param: n }) {
|
|
1459
1463
|
let r = t === null;
|
|
1460
|
-
if (!Array.isArray(e)) throw new
|
|
1461
|
-
if (!r && e.length !== t) throw new
|
|
1464
|
+
if (!Array.isArray(e)) throw new jt(e);
|
|
1465
|
+
if (!r && e.length !== t) throw new mt({
|
|
1462
1466
|
expectedLength: t,
|
|
1463
1467
|
givenLength: e.length,
|
|
1464
1468
|
type: `${n.type}[${t}]`
|
|
1465
1469
|
});
|
|
1466
1470
|
let i = !1, a = [];
|
|
1467
1471
|
for (let t = 0; t < e.length; t++) {
|
|
1468
|
-
let r =
|
|
1472
|
+
let r = Gn({
|
|
1469
1473
|
param: n,
|
|
1470
1474
|
value: e[t]
|
|
1471
1475
|
});
|
|
1472
1476
|
r.dynamic && (i = !0), a.push(r);
|
|
1473
1477
|
}
|
|
1474
1478
|
if (r || i) {
|
|
1475
|
-
let e =
|
|
1479
|
+
let e = Kn(a);
|
|
1476
1480
|
if (r) {
|
|
1477
|
-
let t =
|
|
1481
|
+
let t = P(a.length, { size: 32 });
|
|
1478
1482
|
return {
|
|
1479
1483
|
dynamic: !0,
|
|
1480
|
-
encoded: a.length > 0 ?
|
|
1484
|
+
encoded: a.length > 0 ? R([t, e]) : t
|
|
1481
1485
|
};
|
|
1482
1486
|
}
|
|
1483
1487
|
if (i) return {
|
|
@@ -1487,41 +1491,41 @@ function Zn(e, { length: t, param: n }) {
|
|
|
1487
1491
|
}
|
|
1488
1492
|
return {
|
|
1489
1493
|
dynamic: !1,
|
|
1490
|
-
encoded:
|
|
1494
|
+
encoded: R(a.map(({ encoded: e }) => e))
|
|
1491
1495
|
};
|
|
1492
1496
|
}
|
|
1493
|
-
function
|
|
1494
|
-
let [, n] = t.type.split("bytes"), r =
|
|
1497
|
+
function Yn(e, { param: t }) {
|
|
1498
|
+
let [, n] = t.type.split("bytes"), r = E(e);
|
|
1495
1499
|
if (!n) {
|
|
1496
1500
|
let t = e;
|
|
1497
|
-
return r % 32 != 0 && (t =
|
|
1501
|
+
return r % 32 != 0 && (t = A(t, {
|
|
1498
1502
|
dir: "right",
|
|
1499
1503
|
size: Math.ceil((e.length - 2) / 2 / 32) * 32
|
|
1500
1504
|
})), {
|
|
1501
1505
|
dynamic: !0,
|
|
1502
|
-
encoded:
|
|
1506
|
+
encoded: R([A(P(r, { size: 32 })), t])
|
|
1503
1507
|
};
|
|
1504
1508
|
}
|
|
1505
|
-
if (r !== Number.parseInt(n, 10)) throw new
|
|
1509
|
+
if (r !== Number.parseInt(n, 10)) throw new ht({
|
|
1506
1510
|
expectedSize: Number.parseInt(n, 10),
|
|
1507
1511
|
value: e
|
|
1508
1512
|
});
|
|
1509
1513
|
return {
|
|
1510
1514
|
dynamic: !1,
|
|
1511
|
-
encoded:
|
|
1515
|
+
encoded: A(e, { dir: "right" })
|
|
1512
1516
|
};
|
|
1513
1517
|
}
|
|
1514
|
-
function
|
|
1515
|
-
if (typeof e != "boolean") throw new
|
|
1518
|
+
function Xn(e) {
|
|
1519
|
+
if (typeof e != "boolean") throw new D(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
|
|
1516
1520
|
return {
|
|
1517
1521
|
dynamic: !1,
|
|
1518
|
-
encoded:
|
|
1522
|
+
encoded: A(qt(e))
|
|
1519
1523
|
};
|
|
1520
1524
|
}
|
|
1521
|
-
function
|
|
1525
|
+
function Zn(e, { signed: t, size: n = 256 }) {
|
|
1522
1526
|
if (typeof n == "number") {
|
|
1523
1527
|
let r = 2n ** (BigInt(n) - (t ? 1n : 0n)) - 1n, i = t ? -r - 1n : 0n;
|
|
1524
|
-
if (e > r || e < i) throw new
|
|
1528
|
+
if (e > r || e < i) throw new Rt({
|
|
1525
1529
|
max: r.toString(),
|
|
1526
1530
|
min: i.toString(),
|
|
1527
1531
|
signed: t,
|
|
@@ -1531,24 +1535,24 @@ function er(e, { signed: t, size: n = 256 }) {
|
|
|
1531
1535
|
}
|
|
1532
1536
|
return {
|
|
1533
1537
|
dynamic: !1,
|
|
1534
|
-
encoded:
|
|
1538
|
+
encoded: P(e, {
|
|
1535
1539
|
size: 32,
|
|
1536
1540
|
signed: t
|
|
1537
1541
|
})
|
|
1538
1542
|
};
|
|
1539
1543
|
}
|
|
1540
|
-
function
|
|
1541
|
-
let t =
|
|
1542
|
-
for (let e = 0; e < n; e++) r.push(
|
|
1544
|
+
function Qn(e) {
|
|
1545
|
+
let t = Yt(e), n = Math.ceil(E(t) / 32), r = [];
|
|
1546
|
+
for (let e = 0; e < n; e++) r.push(A(z(t, e * 32, (e + 1) * 32), { dir: "right" }));
|
|
1543
1547
|
return {
|
|
1544
1548
|
dynamic: !0,
|
|
1545
|
-
encoded:
|
|
1549
|
+
encoded: R([A(P(E(t), { size: 32 })), ...r])
|
|
1546
1550
|
};
|
|
1547
1551
|
}
|
|
1548
|
-
function
|
|
1552
|
+
function $n(e, { param: t }) {
|
|
1549
1553
|
let n = !1, r = [];
|
|
1550
1554
|
for (let i = 0; i < t.components.length; i++) {
|
|
1551
|
-
let a = t.components[i], o =
|
|
1555
|
+
let a = t.components[i], o = Gn({
|
|
1552
1556
|
param: a,
|
|
1553
1557
|
value: e[Array.isArray(e) ? i : a.name]
|
|
1554
1558
|
});
|
|
@@ -1556,20 +1560,20 @@ function nr(e, { param: t }) {
|
|
|
1556
1560
|
}
|
|
1557
1561
|
return {
|
|
1558
1562
|
dynamic: n,
|
|
1559
|
-
encoded: n ?
|
|
1563
|
+
encoded: n ? Kn(r) : R(r.map(({ encoded: e }) => e))
|
|
1560
1564
|
};
|
|
1561
1565
|
}
|
|
1562
|
-
function
|
|
1566
|
+
function er(e) {
|
|
1563
1567
|
let t = e.match(/^(.*)\[(\d+)?\]$/);
|
|
1564
1568
|
return t ? [t[2] ? Number(t[2]) : null, t[1]] : void 0;
|
|
1565
1569
|
}
|
|
1566
1570
|
//#endregion
|
|
1567
1571
|
//#region ../../node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1568
|
-
var
|
|
1572
|
+
var B = (e) => z(En(e), 0, 4);
|
|
1569
1573
|
//#endregion
|
|
1570
1574
|
//#region ../../node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1571
|
-
function
|
|
1572
|
-
let { abi: t, args: n = [], name: r } = e, i =
|
|
1575
|
+
function V(e) {
|
|
1576
|
+
let { abi: t, args: n = [], name: r } = e, i = T(r, { strict: !1 }), a = t.filter((e) => i ? e.type === "function" ? B(e) === r : e.type === "event" ? Dn(e) === r : !1 : "name" in e && e.name === r);
|
|
1573
1577
|
if (a.length === 0) return;
|
|
1574
1578
|
if (a.length === 1) return a[0];
|
|
1575
1579
|
let o;
|
|
@@ -1580,11 +1584,11 @@ function R(e) {
|
|
|
1580
1584
|
}
|
|
1581
1585
|
if (e.inputs && e.inputs.length !== 0 && e.inputs.length === n.length && n.every((t, n) => {
|
|
1582
1586
|
let r = "inputs" in e && e.inputs[n];
|
|
1583
|
-
return r ?
|
|
1587
|
+
return r ? tr(t, r) : !1;
|
|
1584
1588
|
})) {
|
|
1585
1589
|
if (o && "inputs" in o && o.inputs) {
|
|
1586
|
-
let t =
|
|
1587
|
-
if (t) throw new
|
|
1590
|
+
let t = nr(e.inputs, o.inputs, n);
|
|
1591
|
+
if (t) throw new Tt({
|
|
1588
1592
|
abiItem: e,
|
|
1589
1593
|
type: t[0]
|
|
1590
1594
|
}, {
|
|
@@ -1597,30 +1601,30 @@ function R(e) {
|
|
|
1597
1601
|
}
|
|
1598
1602
|
return o || a[0];
|
|
1599
1603
|
}
|
|
1600
|
-
function
|
|
1604
|
+
function tr(e, t) {
|
|
1601
1605
|
let n = typeof e, r = t.type;
|
|
1602
1606
|
switch (r) {
|
|
1603
|
-
case "address": return
|
|
1607
|
+
case "address": return L(e, { strict: !1 });
|
|
1604
1608
|
case "bool": return n === "boolean";
|
|
1605
1609
|
case "function": return n === "string";
|
|
1606
1610
|
case "string": return n === "string";
|
|
1607
|
-
default: return r === "tuple" && "components" in t ? Object.values(t.components).every((t, r) => n === "object" &&
|
|
1611
|
+
default: return r === "tuple" && "components" in t ? Object.values(t.components).every((t, r) => n === "object" && tr(Object.values(e)[r], t)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r) ? Array.isArray(e) && e.every((e) => tr(e, {
|
|
1608
1612
|
...t,
|
|
1609
1613
|
type: r.replace(/(\[[0-9]{0,}\])$/, "")
|
|
1610
1614
|
})) : !1;
|
|
1611
1615
|
}
|
|
1612
1616
|
}
|
|
1613
|
-
function
|
|
1617
|
+
function nr(e, t, n) {
|
|
1614
1618
|
for (let r in e) {
|
|
1615
1619
|
let i = e[r], a = t[r];
|
|
1616
|
-
if (i.type === "tuple" && a.type === "tuple" && "components" in i && "components" in a) return
|
|
1620
|
+
if (i.type === "tuple" && a.type === "tuple" && "components" in i && "components" in a) return nr(i.components, a.components, n[r]);
|
|
1617
1621
|
let o = [i.type, a.type];
|
|
1618
|
-
if (o.includes("address") && o.includes("bytes20") || (o.includes("address") && o.includes("string") || o.includes("address") && o.includes("bytes")) &&
|
|
1622
|
+
if (o.includes("address") && o.includes("bytes20") || (o.includes("address") && o.includes("string") || o.includes("address") && o.includes("bytes")) && L(n[r], { strict: !1 })) return o;
|
|
1619
1623
|
}
|
|
1620
1624
|
}
|
|
1621
1625
|
//#endregion
|
|
1622
1626
|
//#region ../../node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
1623
|
-
function
|
|
1627
|
+
function rr(e) {
|
|
1624
1628
|
return typeof e == "string" ? {
|
|
1625
1629
|
address: e,
|
|
1626
1630
|
type: "json-rpc"
|
|
@@ -1628,33 +1632,33 @@ function or(e) {
|
|
|
1628
1632
|
}
|
|
1629
1633
|
//#endregion
|
|
1630
1634
|
//#region ../../node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
1631
|
-
var
|
|
1632
|
-
function
|
|
1635
|
+
var ir = "/docs/contract/encodeFunctionData";
|
|
1636
|
+
function ar(e) {
|
|
1633
1637
|
let { abi: t, args: n, functionName: r } = e, i = t[0];
|
|
1634
1638
|
if (r) {
|
|
1635
|
-
let e =
|
|
1639
|
+
let e = V({
|
|
1636
1640
|
abi: t,
|
|
1637
1641
|
args: n,
|
|
1638
1642
|
name: r
|
|
1639
1643
|
});
|
|
1640
|
-
if (!e) throw new
|
|
1644
|
+
if (!e) throw new O(r, { docsPath: ir });
|
|
1641
1645
|
i = e;
|
|
1642
1646
|
}
|
|
1643
|
-
if (i.type !== "function") throw new
|
|
1647
|
+
if (i.type !== "function") throw new O(void 0, { docsPath: ir });
|
|
1644
1648
|
return {
|
|
1645
1649
|
abi: [i],
|
|
1646
|
-
functionName:
|
|
1650
|
+
functionName: B(w(i))
|
|
1647
1651
|
};
|
|
1648
1652
|
}
|
|
1649
1653
|
//#endregion
|
|
1650
1654
|
//#region ../../node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
1651
|
-
function
|
|
1652
|
-
let { args: t } = e, { abi: n, functionName: r } = e.abi.length === 1 && e.functionName?.startsWith("0x") ? e :
|
|
1653
|
-
return
|
|
1655
|
+
function or(e) {
|
|
1656
|
+
let { args: t } = e, { abi: n, functionName: r } = e.abi.length === 1 && e.functionName?.startsWith("0x") ? e : ar(e), i = n[0];
|
|
1657
|
+
return Fn([r, ("inputs" in i && i.inputs ? Un(i.inputs, t ?? []) : void 0) ?? "0x"]);
|
|
1654
1658
|
}
|
|
1655
1659
|
//#endregion
|
|
1656
1660
|
//#region ../../node_modules/viem/_esm/constants/solidity.js
|
|
1657
|
-
var
|
|
1661
|
+
var sr = {
|
|
1658
1662
|
1: "An `assert` condition failed.",
|
|
1659
1663
|
17: "Arithmetic operation resulted in underflow or overflow.",
|
|
1660
1664
|
18: "Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",
|
|
@@ -1664,33 +1668,33 @@ var ur = {
|
|
|
1664
1668
|
50: "Array index is out of bounds.",
|
|
1665
1669
|
65: "Allocated too much memory or created an array which is too large.",
|
|
1666
1670
|
81: "Attempted to call a zero-initialized variable of internal function type."
|
|
1667
|
-
},
|
|
1671
|
+
}, cr = {
|
|
1668
1672
|
inputs: [{
|
|
1669
1673
|
name: "message",
|
|
1670
1674
|
type: "string"
|
|
1671
1675
|
}],
|
|
1672
1676
|
name: "Error",
|
|
1673
1677
|
type: "error"
|
|
1674
|
-
},
|
|
1678
|
+
}, lr = {
|
|
1675
1679
|
inputs: [{
|
|
1676
1680
|
name: "reason",
|
|
1677
1681
|
type: "uint256"
|
|
1678
1682
|
}],
|
|
1679
1683
|
name: "Panic",
|
|
1680
1684
|
type: "error"
|
|
1681
|
-
},
|
|
1685
|
+
}, ur = class extends D {
|
|
1682
1686
|
constructor({ offset: e }) {
|
|
1683
1687
|
super(`Offset \`${e}\` cannot be negative.`, { name: "NegativeOffsetError" });
|
|
1684
1688
|
}
|
|
1685
|
-
},
|
|
1689
|
+
}, dr = class extends D {
|
|
1686
1690
|
constructor({ length: e, position: t }) {
|
|
1687
1691
|
super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`, { name: "PositionOutOfBoundsError" });
|
|
1688
1692
|
}
|
|
1689
|
-
},
|
|
1693
|
+
}, fr = class extends D {
|
|
1690
1694
|
constructor({ count: e, limit: t }) {
|
|
1691
1695
|
super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
1692
1696
|
}
|
|
1693
|
-
},
|
|
1697
|
+
}, pr = {
|
|
1694
1698
|
bytes: new Uint8Array(),
|
|
1695
1699
|
dataView: /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(0)),
|
|
1696
1700
|
position: 0,
|
|
@@ -1698,19 +1702,19 @@ var ur = {
|
|
|
1698
1702
|
recursiveReadCount: 0,
|
|
1699
1703
|
recursiveReadLimit: Infinity,
|
|
1700
1704
|
assertReadLimit() {
|
|
1701
|
-
if (this.recursiveReadCount >= this.recursiveReadLimit) throw new
|
|
1705
|
+
if (this.recursiveReadCount >= this.recursiveReadLimit) throw new fr({
|
|
1702
1706
|
count: this.recursiveReadCount + 1,
|
|
1703
1707
|
limit: this.recursiveReadLimit
|
|
1704
1708
|
});
|
|
1705
1709
|
},
|
|
1706
1710
|
assertPosition(e) {
|
|
1707
|
-
if (e < 0 || e > this.bytes.length - 1) throw new
|
|
1711
|
+
if (e < 0 || e > this.bytes.length - 1) throw new dr({
|
|
1708
1712
|
length: this.bytes.length,
|
|
1709
1713
|
position: e
|
|
1710
1714
|
});
|
|
1711
1715
|
},
|
|
1712
1716
|
decrementPosition(e) {
|
|
1713
|
-
if (e < 0) throw new
|
|
1717
|
+
if (e < 0) throw new ur({ offset: e });
|
|
1714
1718
|
let t = this.position - e;
|
|
1715
1719
|
this.assertPosition(t), this.position = t;
|
|
1716
1720
|
},
|
|
@@ -1718,7 +1722,7 @@ var ur = {
|
|
|
1718
1722
|
return this.positionReadCount.get(e || this.position) || 0;
|
|
1719
1723
|
},
|
|
1720
1724
|
incrementPosition(e) {
|
|
1721
|
-
if (e < 0) throw new
|
|
1725
|
+
if (e < 0) throw new ur({ offset: e });
|
|
1722
1726
|
let t = this.position + e;
|
|
1723
1727
|
this.assertPosition(t), this.position = t;
|
|
1724
1728
|
},
|
|
@@ -1807,51 +1811,51 @@ var ur = {
|
|
|
1807
1811
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
1808
1812
|
}
|
|
1809
1813
|
};
|
|
1810
|
-
function
|
|
1811
|
-
let n = Object.create(
|
|
1814
|
+
function mr(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
1815
|
+
let n = Object.create(pr);
|
|
1812
1816
|
return n.bytes = e, n.dataView = new DataView(e.buffer ?? e, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
|
|
1813
1817
|
}
|
|
1814
1818
|
//#endregion
|
|
1815
1819
|
//#region ../../node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
1816
|
-
function
|
|
1817
|
-
return t.size !== void 0 &&
|
|
1820
|
+
function hr(e, t = {}) {
|
|
1821
|
+
return t.size !== void 0 && M(e, { size: t.size }), Ht(N(e, t), t);
|
|
1818
1822
|
}
|
|
1819
|
-
function
|
|
1823
|
+
function gr(e, t = {}) {
|
|
1820
1824
|
let n = e;
|
|
1821
|
-
if (t.size !== void 0 && (
|
|
1825
|
+
if (t.size !== void 0 && (M(n, { size: t.size }), n = j(n)), n.length > 1 || n[0] > 1) throw new zt(n);
|
|
1822
1826
|
return !!n[0];
|
|
1823
1827
|
}
|
|
1824
|
-
function
|
|
1825
|
-
return t.size !== void 0 &&
|
|
1828
|
+
function H(e, t = {}) {
|
|
1829
|
+
return t.size !== void 0 && M(e, { size: t.size }), Wt(N(e, t), t);
|
|
1826
1830
|
}
|
|
1827
|
-
function
|
|
1831
|
+
function _r(e, t = {}) {
|
|
1828
1832
|
let n = e;
|
|
1829
|
-
return t.size !== void 0 && (
|
|
1833
|
+
return t.size !== void 0 && (M(n, { size: t.size }), n = j(n, { dir: "right" })), new TextDecoder().decode(n);
|
|
1830
1834
|
}
|
|
1831
1835
|
//#endregion
|
|
1832
1836
|
//#region ../../node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
1833
|
-
function
|
|
1834
|
-
let n = typeof t == "string" ?
|
|
1835
|
-
if (
|
|
1836
|
-
if (
|
|
1837
|
-
data: typeof t == "string" ? t :
|
|
1837
|
+
function vr(e, t) {
|
|
1838
|
+
let n = typeof t == "string" ? en(t) : t, r = mr(n);
|
|
1839
|
+
if (E(n) === 0 && e.length > 0) throw new pt();
|
|
1840
|
+
if (E(t) && E(t) < 32) throw new ft({
|
|
1841
|
+
data: typeof t == "string" ? t : N(t),
|
|
1838
1842
|
params: e,
|
|
1839
|
-
size:
|
|
1843
|
+
size: E(t)
|
|
1840
1844
|
});
|
|
1841
1845
|
let i = 0, a = [];
|
|
1842
1846
|
for (let t = 0; t < e.length; ++t) {
|
|
1843
1847
|
let n = e[t];
|
|
1844
1848
|
r.setPosition(i);
|
|
1845
|
-
let [o, s] =
|
|
1849
|
+
let [o, s] = U(r, n, { staticPosition: 0 });
|
|
1846
1850
|
i += s, a.push(o);
|
|
1847
1851
|
}
|
|
1848
1852
|
return a;
|
|
1849
1853
|
}
|
|
1850
|
-
function
|
|
1851
|
-
let r =
|
|
1854
|
+
function U(e, t, { staticPosition: n }) {
|
|
1855
|
+
let r = er(t.type);
|
|
1852
1856
|
if (r) {
|
|
1853
1857
|
let [i, a] = r;
|
|
1854
|
-
return
|
|
1858
|
+
return Sr(e, {
|
|
1855
1859
|
...t,
|
|
1856
1860
|
type: a
|
|
1857
1861
|
}, {
|
|
@@ -1859,141 +1863,144 @@ function B(e, t, { staticPosition: n }) {
|
|
|
1859
1863
|
staticPosition: n
|
|
1860
1864
|
});
|
|
1861
1865
|
}
|
|
1862
|
-
if (t.type === "tuple") return
|
|
1863
|
-
if (t.type === "address") return
|
|
1864
|
-
if (t.type === "bool") return
|
|
1865
|
-
if (t.type.startsWith("bytes")) return
|
|
1866
|
-
if (t.type.startsWith("uint") || t.type.startsWith("int")) return
|
|
1867
|
-
if (t.type === "string") return
|
|
1868
|
-
throw new
|
|
1866
|
+
if (t.type === "tuple") return Er(e, t, { staticPosition: n });
|
|
1867
|
+
if (t.type === "address") return xr(e);
|
|
1868
|
+
if (t.type === "bool") return Cr(e);
|
|
1869
|
+
if (t.type.startsWith("bytes")) return wr(e, t, { staticPosition: n });
|
|
1870
|
+
if (t.type.startsWith("uint") || t.type.startsWith("int")) return Tr(e, t);
|
|
1871
|
+
if (t.type === "string") return Dr(e, { staticPosition: n });
|
|
1872
|
+
throw new At(t.type, { docsPath: "/docs/contract/decodeAbiParameters" });
|
|
1869
1873
|
}
|
|
1870
|
-
var
|
|
1871
|
-
function
|
|
1872
|
-
return [
|
|
1874
|
+
var yr = 32, br = 32;
|
|
1875
|
+
function xr(e) {
|
|
1876
|
+
return [An(N(Rn(e.readBytes(32), -20))), 32];
|
|
1873
1877
|
}
|
|
1874
|
-
function
|
|
1878
|
+
function Sr(e, t, { length: n, staticPosition: r }) {
|
|
1875
1879
|
if (!n) {
|
|
1876
|
-
let n = r +
|
|
1880
|
+
let n = r + H(e.readBytes(br)), i = n + yr;
|
|
1877
1881
|
e.setPosition(n);
|
|
1878
|
-
let a =
|
|
1882
|
+
let a = H(e.readBytes(yr)), o = Or(t), s = 0, c = [];
|
|
1879
1883
|
for (let n = 0; n < a; ++n) {
|
|
1880
1884
|
e.setPosition(i + (o ? n * 32 : s));
|
|
1881
|
-
let [r, a] =
|
|
1885
|
+
let [r, a] = U(e, t, { staticPosition: i });
|
|
1882
1886
|
s += a, c.push(r);
|
|
1883
1887
|
}
|
|
1884
1888
|
return e.setPosition(r + 32), [c, 32];
|
|
1885
1889
|
}
|
|
1886
|
-
if (
|
|
1887
|
-
let i = r +
|
|
1890
|
+
if (Or(t)) {
|
|
1891
|
+
let i = r + H(e.readBytes(br)), a = [];
|
|
1888
1892
|
for (let r = 0; r < n; ++r) {
|
|
1889
1893
|
e.setPosition(i + r * 32);
|
|
1890
|
-
let [n] =
|
|
1894
|
+
let [n] = U(e, t, { staticPosition: i });
|
|
1891
1895
|
a.push(n);
|
|
1892
1896
|
}
|
|
1893
1897
|
return e.setPosition(r + 32), [a, 32];
|
|
1894
1898
|
}
|
|
1895
1899
|
let i = 0, a = [];
|
|
1896
1900
|
for (let o = 0; o < n; ++o) {
|
|
1897
|
-
let [n, o] =
|
|
1901
|
+
let [n, o] = U(e, t, { staticPosition: r + i });
|
|
1898
1902
|
i += o, a.push(n);
|
|
1899
1903
|
}
|
|
1900
1904
|
return [a, i];
|
|
1901
1905
|
}
|
|
1902
|
-
function
|
|
1903
|
-
return [
|
|
1906
|
+
function Cr(e) {
|
|
1907
|
+
return [gr(e.readBytes(32), { size: 32 }), 32];
|
|
1904
1908
|
}
|
|
1905
|
-
function
|
|
1909
|
+
function wr(e, t, { staticPosition: n }) {
|
|
1906
1910
|
let [r, i] = t.type.split("bytes");
|
|
1907
1911
|
if (!i) {
|
|
1908
|
-
let t =
|
|
1912
|
+
let t = H(e.readBytes(32));
|
|
1909
1913
|
e.setPosition(n + t);
|
|
1910
|
-
let r =
|
|
1914
|
+
let r = H(e.readBytes(32));
|
|
1911
1915
|
if (r === 0) return e.setPosition(n + 32), ["0x", 32];
|
|
1912
1916
|
let i = e.readBytes(r);
|
|
1913
|
-
return e.setPosition(n + 32), [
|
|
1917
|
+
return e.setPosition(n + 32), [N(i), 32];
|
|
1914
1918
|
}
|
|
1915
|
-
return [
|
|
1919
|
+
return [N(e.readBytes(Number.parseInt(i, 10), 32)), 32];
|
|
1916
1920
|
}
|
|
1917
|
-
function
|
|
1921
|
+
function Tr(e, t) {
|
|
1918
1922
|
let n = t.type.startsWith("int"), r = Number.parseInt(t.type.split("int")[1] || "256", 10), i = e.readBytes(32);
|
|
1919
|
-
return [r > 48 ?
|
|
1923
|
+
return [r > 48 ? hr(i, { signed: n }) : H(i, { signed: n }), 32];
|
|
1920
1924
|
}
|
|
1921
|
-
function
|
|
1925
|
+
function Er(e, t, { staticPosition: n }) {
|
|
1922
1926
|
let r = t.components.length === 0 || t.components.some(({ name: e }) => !e), i = r ? [] : {}, a = 0;
|
|
1923
|
-
if (
|
|
1924
|
-
let o = n +
|
|
1927
|
+
if (Or(t)) {
|
|
1928
|
+
let o = n + H(e.readBytes(br));
|
|
1925
1929
|
for (let n = 0; n < t.components.length; ++n) {
|
|
1926
1930
|
let s = t.components[n];
|
|
1927
1931
|
e.setPosition(o + a);
|
|
1928
|
-
let [c, l] =
|
|
1932
|
+
let [c, l] = U(e, s, { staticPosition: o });
|
|
1929
1933
|
a += l, i[r ? n : s?.name] = c;
|
|
1930
1934
|
}
|
|
1931
1935
|
return e.setPosition(n + 32), [i, 32];
|
|
1932
1936
|
}
|
|
1933
1937
|
for (let o = 0; o < t.components.length; ++o) {
|
|
1934
|
-
let s = t.components[o], [c, l] =
|
|
1938
|
+
let s = t.components[o], [c, l] = U(e, s, { staticPosition: n });
|
|
1935
1939
|
i[r ? o : s?.name] = c, a += l;
|
|
1936
1940
|
}
|
|
1937
1941
|
return [i, a];
|
|
1938
1942
|
}
|
|
1939
|
-
function
|
|
1940
|
-
let n = t +
|
|
1943
|
+
function Dr(e, { staticPosition: t }) {
|
|
1944
|
+
let n = t + H(e.readBytes(32));
|
|
1941
1945
|
e.setPosition(n);
|
|
1942
|
-
let r =
|
|
1946
|
+
let r = H(e.readBytes(32));
|
|
1943
1947
|
if (r === 0) return e.setPosition(t + 32), ["", 32];
|
|
1944
|
-
let i =
|
|
1948
|
+
let i = _r(j(e.readBytes(r, 32)));
|
|
1945
1949
|
return e.setPosition(t + 32), [i, 32];
|
|
1946
1950
|
}
|
|
1947
|
-
function
|
|
1951
|
+
function Or(e) {
|
|
1948
1952
|
let { type: t } = e;
|
|
1949
1953
|
if (t === "string" || t === "bytes" || t.endsWith("[]")) return !0;
|
|
1950
|
-
if (t === "tuple") return e.components?.some(
|
|
1951
|
-
let n =
|
|
1952
|
-
return !!(n &&
|
|
1954
|
+
if (t === "tuple") return e.components?.some(Or);
|
|
1955
|
+
let n = er(e.type);
|
|
1956
|
+
return !!(n && Or({
|
|
1953
1957
|
...e,
|
|
1954
1958
|
type: n[1]
|
|
1955
1959
|
}));
|
|
1956
1960
|
}
|
|
1957
1961
|
//#endregion
|
|
1958
1962
|
//#region ../../node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
1959
|
-
function
|
|
1960
|
-
let { abi: t, data: n } = e,
|
|
1961
|
-
if (
|
|
1962
|
-
let
|
|
1963
|
+
function kr(e) {
|
|
1964
|
+
let { abi: t, data: n, cause: r } = e, i = z(n, 0, 4);
|
|
1965
|
+
if (i === "0x") throw new pt({ cause: r });
|
|
1966
|
+
let a = [
|
|
1963
1967
|
...t || [],
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
].find((e) => e.type === "error" &&
|
|
1967
|
-
if (!
|
|
1968
|
+
cr,
|
|
1969
|
+
lr
|
|
1970
|
+
].find((e) => e.type === "error" && i === B(w(e)));
|
|
1971
|
+
if (!a) throw new yt(i, {
|
|
1972
|
+
docsPath: "/docs/contract/decodeErrorResult",
|
|
1973
|
+
cause: r
|
|
1974
|
+
});
|
|
1968
1975
|
return {
|
|
1969
|
-
abiItem:
|
|
1970
|
-
args: "inputs" in
|
|
1971
|
-
errorName:
|
|
1976
|
+
abiItem: a,
|
|
1977
|
+
args: "inputs" in a && a.inputs && a.inputs.length > 0 ? vr(a.inputs, z(n, 4)) : void 0,
|
|
1978
|
+
errorName: a.name
|
|
1972
1979
|
};
|
|
1973
1980
|
}
|
|
1974
1981
|
//#endregion
|
|
1975
1982
|
//#region ../../node_modules/viem/_esm/utils/stringify.js
|
|
1976
|
-
var
|
|
1983
|
+
var Ar = (e, t, n) => JSON.stringify(e, (e, n) => {
|
|
1977
1984
|
let r = typeof n == "bigint" ? n.toString() : n;
|
|
1978
1985
|
return typeof t == "function" ? t(e, r) : r;
|
|
1979
1986
|
}, n);
|
|
1980
1987
|
//#endregion
|
|
1981
1988
|
//#region ../../node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
|
1982
|
-
function
|
|
1983
|
-
if ("name" in e && "inputs" in e && e.inputs) return `${n ? e.name : ""}(${e.inputs.map((e, n) => `${r && e.name ? `${e.name}: ` : ""}${typeof t[n] == "object" ?
|
|
1989
|
+
function jr({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r = !1 }) {
|
|
1990
|
+
if ("name" in e && "inputs" in e && e.inputs) return `${n ? e.name : ""}(${e.inputs.map((e, n) => `${r && e.name ? `${e.name}: ` : ""}${typeof t[n] == "object" ? Ar(t[n]) : t[n]}`).join(", ")})`;
|
|
1984
1991
|
}
|
|
1985
1992
|
//#endregion
|
|
1986
1993
|
//#region ../../node_modules/viem/_esm/constants/unit.js
|
|
1987
|
-
var
|
|
1994
|
+
var Mr = {
|
|
1988
1995
|
gwei: 9,
|
|
1989
1996
|
wei: 18
|
|
1990
|
-
},
|
|
1997
|
+
}, Nr = {
|
|
1991
1998
|
ether: -9,
|
|
1992
1999
|
wei: 9
|
|
1993
2000
|
};
|
|
1994
2001
|
//#endregion
|
|
1995
2002
|
//#region ../../node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
1996
|
-
function
|
|
2003
|
+
function Pr(e, t) {
|
|
1997
2004
|
let n = e.toString(), r = n.startsWith("-");
|
|
1998
2005
|
r && (n = n.slice(1)), n = n.padStart(t, "0");
|
|
1999
2006
|
let [i, a] = [n.slice(0, n.length - t), n.slice(n.length - t)];
|
|
@@ -2001,51 +2008,51 @@ function Ir(e, t) {
|
|
|
2001
2008
|
}
|
|
2002
2009
|
//#endregion
|
|
2003
2010
|
//#region ../../node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2004
|
-
function
|
|
2005
|
-
return
|
|
2011
|
+
function Fr(e, t = "wei") {
|
|
2012
|
+
return Pr(e, Mr[t]);
|
|
2006
2013
|
}
|
|
2007
2014
|
//#endregion
|
|
2008
2015
|
//#region ../../node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2009
|
-
function
|
|
2010
|
-
return
|
|
2016
|
+
function W(e, t = "wei") {
|
|
2017
|
+
return Pr(e, Nr[t]);
|
|
2011
2018
|
}
|
|
2012
2019
|
//#endregion
|
|
2013
2020
|
//#region ../../node_modules/viem/_esm/errors/stateOverride.js
|
|
2014
|
-
var
|
|
2021
|
+
var Ir = class extends D {
|
|
2015
2022
|
constructor({ address: e }) {
|
|
2016
2023
|
super(`State for account "${e}" is set multiple times.`, { name: "AccountStateConflictError" });
|
|
2017
2024
|
}
|
|
2018
|
-
},
|
|
2025
|
+
}, Lr = class extends D {
|
|
2019
2026
|
constructor() {
|
|
2020
2027
|
super("state and stateDiff are set on the same account.", { name: "StateAssignmentConflictError" });
|
|
2021
2028
|
}
|
|
2022
2029
|
};
|
|
2023
|
-
function
|
|
2030
|
+
function Rr(e) {
|
|
2024
2031
|
return e.reduce((e, { slot: t, value: n }) => `${e} ${t}: ${n}\n`, "");
|
|
2025
2032
|
}
|
|
2026
|
-
function
|
|
2033
|
+
function zr(e) {
|
|
2027
2034
|
return e.reduce((e, { address: t, ...n }) => {
|
|
2028
2035
|
let r = `${e} ${t}:\n`;
|
|
2029
|
-
return n.nonce && (r += ` nonce: ${n.nonce}\n`), n.balance && (r += ` balance: ${n.balance}\n`), n.code && (r += ` code: ${n.code}\n`), n.state && (r += " state:\n", r +=
|
|
2036
|
+
return n.nonce && (r += ` nonce: ${n.nonce}\n`), n.balance && (r += ` balance: ${n.balance}\n`), n.code && (r += ` code: ${n.code}\n`), n.state && (r += " state:\n", r += Rr(n.state)), n.stateDiff && (r += " stateDiff:\n", r += Rr(n.stateDiff)), r;
|
|
2030
2037
|
}, " State Override:\n").slice(0, -1);
|
|
2031
2038
|
}
|
|
2032
2039
|
//#endregion
|
|
2033
2040
|
//#region ../../node_modules/viem/_esm/errors/transaction.js
|
|
2034
|
-
function
|
|
2041
|
+
function Br(e) {
|
|
2035
2042
|
let t = Object.entries(e).map(([e, t]) => t === void 0 || t === !1 ? null : [e, t]).filter(Boolean), n = t.reduce((e, [t]) => Math.max(e, t.length), 0);
|
|
2036
2043
|
return t.map(([e, t]) => ` ${`${e}:`.padEnd(n + 1)} ${t}`).join("\n");
|
|
2037
2044
|
}
|
|
2038
|
-
var
|
|
2045
|
+
var Vr = class extends D {
|
|
2039
2046
|
constructor({ v: e }) {
|
|
2040
2047
|
super(`Invalid \`v\` value "${e}". Expected 27 or 28.`, { name: "InvalidLegacyVError" });
|
|
2041
2048
|
}
|
|
2042
|
-
},
|
|
2049
|
+
}, Hr = class extends D {
|
|
2043
2050
|
constructor({ transaction: e }) {
|
|
2044
2051
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
2045
2052
|
metaMessages: [
|
|
2046
2053
|
"Provided Transaction:",
|
|
2047
2054
|
"{",
|
|
2048
|
-
|
|
2055
|
+
Br(e),
|
|
2049
2056
|
"}",
|
|
2050
2057
|
"",
|
|
2051
2058
|
"To infer the type, either provide:",
|
|
@@ -2059,22 +2066,22 @@ var Ur = class extends w {
|
|
|
2059
2066
|
name: "InvalidSerializableTransactionError"
|
|
2060
2067
|
});
|
|
2061
2068
|
}
|
|
2062
|
-
},
|
|
2069
|
+
}, Ur = class extends D {
|
|
2063
2070
|
constructor({ storageKey: e }) {
|
|
2064
2071
|
super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
2065
2072
|
}
|
|
2066
|
-
},
|
|
2073
|
+
}, Wr = class extends D {
|
|
2067
2074
|
constructor(e, { account: t, docsPath: n, chain: r, data: i, gas: a, gasPrice: o, maxFeePerGas: s, maxPriorityFeePerGas: c, nonce: l, to: u, value: d }) {
|
|
2068
|
-
let f =
|
|
2075
|
+
let f = Br({
|
|
2069
2076
|
chain: r && `${r?.name} (id: ${r?.id})`,
|
|
2070
2077
|
from: t?.address,
|
|
2071
2078
|
to: u,
|
|
2072
|
-
value: d !== void 0 && `${
|
|
2079
|
+
value: d !== void 0 && `${Fr(d)} ${r?.nativeCurrency?.symbol || "ETH"}`,
|
|
2073
2080
|
data: i,
|
|
2074
2081
|
gas: a,
|
|
2075
|
-
gasPrice: o !== void 0 && `${
|
|
2076
|
-
maxFeePerGas: s !== void 0 && `${
|
|
2077
|
-
maxPriorityFeePerGas: c !== void 0 && `${
|
|
2082
|
+
gasPrice: o !== void 0 && `${W(o)} gwei`,
|
|
2083
|
+
maxFeePerGas: s !== void 0 && `${W(s)} gwei`,
|
|
2084
|
+
maxPriorityFeePerGas: c !== void 0 && `${W(c)} gwei`,
|
|
2078
2085
|
nonce: l
|
|
2079
2086
|
});
|
|
2080
2087
|
super(e.shortMessage, {
|
|
@@ -2093,16 +2100,16 @@ var Ur = class extends w {
|
|
|
2093
2100
|
value: void 0
|
|
2094
2101
|
}), this.cause = e;
|
|
2095
2102
|
}
|
|
2096
|
-
},
|
|
2103
|
+
}, Gr = class extends D {
|
|
2097
2104
|
constructor({ blockHash: e, blockNumber: t, blockTag: n, hash: r, index: i }) {
|
|
2098
2105
|
let a = "Transaction";
|
|
2099
2106
|
n && i !== void 0 && (a = `Transaction at block time "${n}" at index "${i}"`), e && i !== void 0 && (a = `Transaction at block hash "${e}" at index "${i}"`), t && i !== void 0 && (a = `Transaction at block number "${t}" at index "${i}"`), r && (a = `Transaction with hash "${r}"`), super(`${a} could not be found.`, { name: "TransactionNotFoundError" });
|
|
2100
2107
|
}
|
|
2101
|
-
},
|
|
2108
|
+
}, Kr = class extends D {
|
|
2102
2109
|
constructor({ hash: e }) {
|
|
2103
2110
|
super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`, { name: "TransactionReceiptNotFoundError" });
|
|
2104
2111
|
}
|
|
2105
|
-
},
|
|
2112
|
+
}, qr = class extends D {
|
|
2106
2113
|
constructor({ receipt: e }) {
|
|
2107
2114
|
super(`Transaction with hash "${e.transactionHash}" reverted.`, {
|
|
2108
2115
|
metaMessages: [
|
|
@@ -2120,24 +2127,41 @@ var Ur = class extends w {
|
|
|
2120
2127
|
value: void 0
|
|
2121
2128
|
}), this.receipt = e;
|
|
2122
2129
|
}
|
|
2123
|
-
},
|
|
2130
|
+
}, Jr = class extends D {
|
|
2124
2131
|
constructor({ hash: e }) {
|
|
2125
2132
|
super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
2126
2133
|
}
|
|
2127
|
-
},
|
|
2134
|
+
}, Yr = (e) => e;
|
|
2135
|
+
function Xr(e) {
|
|
2136
|
+
if (e?.reason) return e.reason;
|
|
2137
|
+
if (typeof DOMException == "function") return new DOMException("This operation was aborted", "AbortError");
|
|
2138
|
+
let t = /* @__PURE__ */ Error("This operation was aborted");
|
|
2139
|
+
return t.name = "AbortError", t;
|
|
2140
|
+
}
|
|
2141
|
+
function Zr(e) {
|
|
2142
|
+
return typeof e == "object" && !!e && "name" in e && e.name === "AbortError";
|
|
2143
|
+
}
|
|
2144
|
+
var Qr = (e) => {
|
|
2145
|
+
try {
|
|
2146
|
+
let t = new URL(e);
|
|
2147
|
+
return !t.username && !t.password ? e : (t.username = "", t.password = "", t.toString());
|
|
2148
|
+
} catch {
|
|
2149
|
+
return e;
|
|
2150
|
+
}
|
|
2151
|
+
}, $r = class extends D {
|
|
2128
2152
|
constructor(e, { account: t, docsPath: n, chain: r, data: i, gas: a, gasPrice: o, maxFeePerGas: s, maxPriorityFeePerGas: c, nonce: l, to: u, value: d, stateOverride: f }) {
|
|
2129
|
-
let p =
|
|
2130
|
-
from: (t ?
|
|
2153
|
+
let p = Br({
|
|
2154
|
+
from: (t ? rr(t) : void 0)?.address,
|
|
2131
2155
|
to: u,
|
|
2132
|
-
value: d !== void 0 && `${
|
|
2156
|
+
value: d !== void 0 && `${Fr(d)} ${r?.nativeCurrency?.symbol || "ETH"}`,
|
|
2133
2157
|
data: i,
|
|
2134
2158
|
gas: a,
|
|
2135
|
-
gasPrice: o !== void 0 && `${
|
|
2136
|
-
maxFeePerGas: s !== void 0 && `${
|
|
2137
|
-
maxPriorityFeePerGas: c !== void 0 && `${
|
|
2159
|
+
gasPrice: o !== void 0 && `${W(o)} gwei`,
|
|
2160
|
+
maxFeePerGas: s !== void 0 && `${W(s)} gwei`,
|
|
2161
|
+
maxPriorityFeePerGas: c !== void 0 && `${W(c)} gwei`,
|
|
2138
2162
|
nonce: l
|
|
2139
2163
|
});
|
|
2140
|
-
f && (p += `\n${
|
|
2164
|
+
f && (p += `\n${zr(f)}`), super(e.shortMessage, {
|
|
2141
2165
|
cause: e,
|
|
2142
2166
|
docsPath: n,
|
|
2143
2167
|
metaMessages: [
|
|
@@ -2153,19 +2177,19 @@ var Ur = class extends w {
|
|
|
2153
2177
|
value: void 0
|
|
2154
2178
|
}), this.cause = e;
|
|
2155
2179
|
}
|
|
2156
|
-
}, ei = class extends
|
|
2180
|
+
}, ei = class extends D {
|
|
2157
2181
|
constructor(e, { abi: t, args: n, contractAddress: r, docsPath: i, functionName: a, sender: o }) {
|
|
2158
|
-
let s =
|
|
2182
|
+
let s = V({
|
|
2159
2183
|
abi: t,
|
|
2160
2184
|
args: n,
|
|
2161
2185
|
name: a
|
|
2162
|
-
}), c = s ?
|
|
2186
|
+
}), c = s ? jr({
|
|
2163
2187
|
abiItem: s,
|
|
2164
2188
|
args: n,
|
|
2165
2189
|
includeFunctionName: !1,
|
|
2166
2190
|
includeName: !1
|
|
2167
|
-
}) : void 0, l = s ?
|
|
2168
|
-
address: r &&
|
|
2191
|
+
}) : void 0, l = s ? w(s, { includeName: !0 }) : void 0, u = Br({
|
|
2192
|
+
address: r && Yr(r),
|
|
2169
2193
|
function: l,
|
|
2170
2194
|
args: c && c !== "()" && `${[...Array(a?.length ?? 0).keys()].map(() => " ").join("")}${c}`,
|
|
2171
2195
|
sender: o
|
|
@@ -2216,40 +2240,41 @@ var Ur = class extends w {
|
|
|
2216
2240
|
value: void 0
|
|
2217
2241
|
}), this.abi = t, this.args = n, this.cause = e, this.contractAddress = r, this.functionName = a, this.sender = o;
|
|
2218
2242
|
}
|
|
2219
|
-
}, ti = class extends
|
|
2220
|
-
constructor({ abi: e, data: t, functionName: n, message: r }) {
|
|
2221
|
-
let
|
|
2243
|
+
}, ti = class extends D {
|
|
2244
|
+
constructor({ abi: e, data: t, functionName: n, message: r, cause: i }) {
|
|
2245
|
+
let a, o, s, c;
|
|
2222
2246
|
if (t && t !== "0x") try {
|
|
2223
|
-
|
|
2247
|
+
o = kr({
|
|
2224
2248
|
abi: e,
|
|
2225
|
-
data: t
|
|
2249
|
+
data: t,
|
|
2250
|
+
cause: i
|
|
2226
2251
|
});
|
|
2227
|
-
let { abiItem: n, errorName: r, args:
|
|
2228
|
-
if (r === "Error")
|
|
2252
|
+
let { abiItem: n, errorName: r, args: a } = o;
|
|
2253
|
+
if (r === "Error") c = a[0];
|
|
2229
2254
|
else if (r === "Panic") {
|
|
2230
|
-
let [e] =
|
|
2231
|
-
|
|
2255
|
+
let [e] = a;
|
|
2256
|
+
c = sr[e];
|
|
2232
2257
|
} else {
|
|
2233
|
-
let e = n ?
|
|
2258
|
+
let e = n ? w(n, { includeName: !0 }) : void 0, t = n && a ? jr({
|
|
2234
2259
|
abiItem: n,
|
|
2235
|
-
args:
|
|
2260
|
+
args: a,
|
|
2236
2261
|
includeFunctionName: !1,
|
|
2237
2262
|
includeName: !1
|
|
2238
2263
|
}) : void 0;
|
|
2239
|
-
|
|
2264
|
+
s = [e ? `Error: ${e}` : "", t && t !== "()" ? ` ${[...Array(r?.length ?? 0).keys()].map(() => " ").join("")}${t}` : ""];
|
|
2240
2265
|
}
|
|
2241
2266
|
} catch (e) {
|
|
2242
|
-
|
|
2267
|
+
a = e;
|
|
2243
2268
|
}
|
|
2244
|
-
else r && (
|
|
2245
|
-
let
|
|
2246
|
-
|
|
2247
|
-
`Unable to decode signature "${
|
|
2269
|
+
else r && (c = r);
|
|
2270
|
+
let l;
|
|
2271
|
+
a instanceof yt && (l = a.signature, s = [
|
|
2272
|
+
`Unable to decode signature "${l}" as it was not found on the provided ABI.`,
|
|
2248
2273
|
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
2249
|
-
`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${
|
|
2250
|
-
]), super(
|
|
2251
|
-
cause: i,
|
|
2252
|
-
metaMessages:
|
|
2274
|
+
`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${l}.`
|
|
2275
|
+
]), super(c && c !== "execution reverted" || l ? [`The contract function "${n}" reverted with the following ${l ? "signature" : "reason"}:`, c || l].join("\n") : `The contract function "${n}" reverted.`, {
|
|
2276
|
+
cause: a ?? i,
|
|
2277
|
+
metaMessages: s,
|
|
2253
2278
|
name: "ContractFunctionRevertedError"
|
|
2254
2279
|
}), Object.defineProperty(this, "data", {
|
|
2255
2280
|
enumerable: !0,
|
|
@@ -2271,10 +2296,10 @@ var Ur = class extends w {
|
|
|
2271
2296
|
configurable: !0,
|
|
2272
2297
|
writable: !0,
|
|
2273
2298
|
value: void 0
|
|
2274
|
-
}), this.data =
|
|
2299
|
+
}), this.data = o, this.raw = t, this.reason = c, this.signature = l;
|
|
2275
2300
|
}
|
|
2276
|
-
}, ni = class extends
|
|
2277
|
-
constructor({ functionName: e }) {
|
|
2301
|
+
}, ni = class extends D {
|
|
2302
|
+
constructor({ functionName: e, cause: t }) {
|
|
2278
2303
|
super(`The contract function "${e}" returned no data ("0x").`, {
|
|
2279
2304
|
metaMessages: [
|
|
2280
2305
|
"This could be due to any of the following:",
|
|
@@ -2282,10 +2307,11 @@ var Ur = class extends w {
|
|
|
2282
2307
|
" - The parameters passed to the contract function may be invalid, or",
|
|
2283
2308
|
" - The address is not a contract."
|
|
2284
2309
|
],
|
|
2285
|
-
name: "ContractFunctionZeroDataError"
|
|
2310
|
+
name: "ContractFunctionZeroDataError",
|
|
2311
|
+
cause: t
|
|
2286
2312
|
});
|
|
2287
2313
|
}
|
|
2288
|
-
}, ri = class extends
|
|
2314
|
+
}, ri = class extends D {
|
|
2289
2315
|
constructor({ factory: e }) {
|
|
2290
2316
|
super(`Deployment for counterfactual contract call failed${e ? ` for factory "${e}".` : ""}`, {
|
|
2291
2317
|
metaMessages: [
|
|
@@ -2296,7 +2322,7 @@ var Ur = class extends w {
|
|
|
2296
2322
|
name: "CounterfactualDeploymentFailedError"
|
|
2297
2323
|
});
|
|
2298
2324
|
}
|
|
2299
|
-
}, ii = class extends
|
|
2325
|
+
}, ii = class extends D {
|
|
2300
2326
|
constructor({ data: e, message: t }) {
|
|
2301
2327
|
super(t || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
|
|
2302
2328
|
enumerable: !0,
|
|
@@ -2310,7 +2336,7 @@ var Ur = class extends w {
|
|
|
2310
2336
|
value: void 0
|
|
2311
2337
|
}), this.data = e;
|
|
2312
2338
|
}
|
|
2313
|
-
}, ai = class extends
|
|
2339
|
+
}, ai = class extends D {
|
|
2314
2340
|
constructor({ body: e, cause: t, details: n, headers: r, status: i, url: a }) {
|
|
2315
2341
|
super("HTTP request failed.", {
|
|
2316
2342
|
cause: t,
|
|
@@ -2318,7 +2344,7 @@ var Ur = class extends w {
|
|
|
2318
2344
|
metaMessages: [
|
|
2319
2345
|
i && `Status: ${i}`,
|
|
2320
2346
|
`URL: ${Qr(a)}`,
|
|
2321
|
-
e && `Request body: ${
|
|
2347
|
+
e && `Request body: ${Ar(e)}`
|
|
2322
2348
|
].filter(Boolean),
|
|
2323
2349
|
name: "HttpRequestError"
|
|
2324
2350
|
}), Object.defineProperty(this, "body", {
|
|
@@ -2343,12 +2369,29 @@ var Ur = class extends w {
|
|
|
2343
2369
|
value: void 0
|
|
2344
2370
|
}), this.body = e, this.headers = r, this.status = i, this.url = a;
|
|
2345
2371
|
}
|
|
2346
|
-
}, oi = class extends
|
|
2372
|
+
}, oi = class extends D {
|
|
2373
|
+
constructor({ maxSize: e, size: t }) {
|
|
2374
|
+
super("HTTP response body exceeded the size limit.", {
|
|
2375
|
+
metaMessages: [`Max: ${e} bytes`, `Received: ${t} bytes`],
|
|
2376
|
+
name: "ResponseBodyTooLargeError"
|
|
2377
|
+
}), Object.defineProperty(this, "maxSize", {
|
|
2378
|
+
enumerable: !0,
|
|
2379
|
+
configurable: !0,
|
|
2380
|
+
writable: !0,
|
|
2381
|
+
value: void 0
|
|
2382
|
+
}), Object.defineProperty(this, "size", {
|
|
2383
|
+
enumerable: !0,
|
|
2384
|
+
configurable: !0,
|
|
2385
|
+
writable: !0,
|
|
2386
|
+
value: void 0
|
|
2387
|
+
}), this.maxSize = e, this.size = t;
|
|
2388
|
+
}
|
|
2389
|
+
}, si = class extends D {
|
|
2347
2390
|
constructor({ body: e, error: t, url: n }) {
|
|
2348
2391
|
super("RPC Request failed.", {
|
|
2349
2392
|
cause: t,
|
|
2350
2393
|
details: t.message,
|
|
2351
|
-
metaMessages: [`URL: ${Qr(n)}`, `Request body: ${
|
|
2394
|
+
metaMessages: [`URL: ${Qr(n)}`, `Request body: ${Ar(e)}`],
|
|
2352
2395
|
name: "RpcRequestError"
|
|
2353
2396
|
}), Object.defineProperty(this, "code", {
|
|
2354
2397
|
enumerable: !0,
|
|
@@ -2367,11 +2410,11 @@ var Ur = class extends w {
|
|
|
2367
2410
|
value: void 0
|
|
2368
2411
|
}), this.code = t.code, this.data = t.data, this.url = n;
|
|
2369
2412
|
}
|
|
2370
|
-
},
|
|
2413
|
+
}, ci = class extends D {
|
|
2371
2414
|
constructor({ body: e, url: t }) {
|
|
2372
2415
|
super("The request took too long to respond.", {
|
|
2373
2416
|
details: "The request timed out.",
|
|
2374
|
-
metaMessages: [`URL: ${Qr(t)}`, `Request body: ${
|
|
2417
|
+
metaMessages: [`URL: ${Qr(t)}`, `Request body: ${Ar(e)}`],
|
|
2375
2418
|
name: "TimeoutError"
|
|
2376
2419
|
}), Object.defineProperty(this, "url", {
|
|
2377
2420
|
enumerable: !0,
|
|
@@ -2380,7 +2423,7 @@ var Ur = class extends w {
|
|
|
2380
2423
|
value: void 0
|
|
2381
2424
|
}), this.url = t;
|
|
2382
2425
|
}
|
|
2383
|
-
},
|
|
2426
|
+
}, li = -1, G = class extends D {
|
|
2384
2427
|
constructor(e, { code: t, docsPath: n, metaMessages: r, name: i, shortMessage: a }) {
|
|
2385
2428
|
super(a, {
|
|
2386
2429
|
cause: e,
|
|
@@ -2392,9 +2435,9 @@ var Ur = class extends w {
|
|
|
2392
2435
|
configurable: !0,
|
|
2393
2436
|
writable: !0,
|
|
2394
2437
|
value: void 0
|
|
2395
|
-
}), this.name = i || e.name, this.code = e instanceof
|
|
2438
|
+
}), this.name = i || e.name, this.code = e instanceof si ? e.code : t ?? li;
|
|
2396
2439
|
}
|
|
2397
|
-
},
|
|
2440
|
+
}, K = class extends G {
|
|
2398
2441
|
constructor(e, t) {
|
|
2399
2442
|
super(e, t), Object.defineProperty(this, "data", {
|
|
2400
2443
|
enumerable: !0,
|
|
@@ -2403,7 +2446,7 @@ var Ur = class extends w {
|
|
|
2403
2446
|
value: void 0
|
|
2404
2447
|
}), this.data = t.data;
|
|
2405
2448
|
}
|
|
2406
|
-
},
|
|
2449
|
+
}, ui = class e extends G {
|
|
2407
2450
|
constructor(t) {
|
|
2408
2451
|
super(t, {
|
|
2409
2452
|
code: e.code,
|
|
@@ -2412,13 +2455,13 @@ var Ur = class extends w {
|
|
|
2412
2455
|
});
|
|
2413
2456
|
}
|
|
2414
2457
|
};
|
|
2415
|
-
Object.defineProperty(
|
|
2458
|
+
Object.defineProperty(ui, "code", {
|
|
2416
2459
|
enumerable: !0,
|
|
2417
2460
|
configurable: !0,
|
|
2418
2461
|
writable: !0,
|
|
2419
2462
|
value: -32700
|
|
2420
2463
|
});
|
|
2421
|
-
var
|
|
2464
|
+
var di = class e extends G {
|
|
2422
2465
|
constructor(t) {
|
|
2423
2466
|
super(t, {
|
|
2424
2467
|
code: e.code,
|
|
@@ -2427,13 +2470,13 @@ var ui = class e extends U {
|
|
|
2427
2470
|
});
|
|
2428
2471
|
}
|
|
2429
2472
|
};
|
|
2430
|
-
Object.defineProperty(
|
|
2473
|
+
Object.defineProperty(di, "code", {
|
|
2431
2474
|
enumerable: !0,
|
|
2432
2475
|
configurable: !0,
|
|
2433
2476
|
writable: !0,
|
|
2434
2477
|
value: -32600
|
|
2435
2478
|
});
|
|
2436
|
-
var
|
|
2479
|
+
var fi = class e extends G {
|
|
2437
2480
|
constructor(t, { method: n } = {}) {
|
|
2438
2481
|
super(t, {
|
|
2439
2482
|
code: e.code,
|
|
@@ -2442,13 +2485,13 @@ var di = class e extends U {
|
|
|
2442
2485
|
});
|
|
2443
2486
|
}
|
|
2444
2487
|
};
|
|
2445
|
-
Object.defineProperty(
|
|
2488
|
+
Object.defineProperty(fi, "code", {
|
|
2446
2489
|
enumerable: !0,
|
|
2447
2490
|
configurable: !0,
|
|
2448
2491
|
writable: !0,
|
|
2449
2492
|
value: -32601
|
|
2450
2493
|
});
|
|
2451
|
-
var
|
|
2494
|
+
var pi = class e extends G {
|
|
2452
2495
|
constructor(t) {
|
|
2453
2496
|
super(t, {
|
|
2454
2497
|
code: e.code,
|
|
@@ -2457,13 +2500,13 @@ var fi = class e extends U {
|
|
|
2457
2500
|
});
|
|
2458
2501
|
}
|
|
2459
2502
|
};
|
|
2460
|
-
Object.defineProperty(
|
|
2503
|
+
Object.defineProperty(pi, "code", {
|
|
2461
2504
|
enumerable: !0,
|
|
2462
2505
|
configurable: !0,
|
|
2463
2506
|
writable: !0,
|
|
2464
2507
|
value: -32602
|
|
2465
2508
|
});
|
|
2466
|
-
var
|
|
2509
|
+
var mi = class e extends G {
|
|
2467
2510
|
constructor(t) {
|
|
2468
2511
|
super(t, {
|
|
2469
2512
|
code: e.code,
|
|
@@ -2472,13 +2515,13 @@ var pi = class e extends U {
|
|
|
2472
2515
|
});
|
|
2473
2516
|
}
|
|
2474
2517
|
};
|
|
2475
|
-
Object.defineProperty(
|
|
2518
|
+
Object.defineProperty(mi, "code", {
|
|
2476
2519
|
enumerable: !0,
|
|
2477
2520
|
configurable: !0,
|
|
2478
2521
|
writable: !0,
|
|
2479
2522
|
value: -32603
|
|
2480
2523
|
});
|
|
2481
|
-
var
|
|
2524
|
+
var hi = class e extends G {
|
|
2482
2525
|
constructor(t) {
|
|
2483
2526
|
super(t, {
|
|
2484
2527
|
code: e.code,
|
|
@@ -2487,13 +2530,13 @@ var mi = class e extends U {
|
|
|
2487
2530
|
});
|
|
2488
2531
|
}
|
|
2489
2532
|
};
|
|
2490
|
-
Object.defineProperty(
|
|
2533
|
+
Object.defineProperty(hi, "code", {
|
|
2491
2534
|
enumerable: !0,
|
|
2492
2535
|
configurable: !0,
|
|
2493
2536
|
writable: !0,
|
|
2494
2537
|
value: -32e3
|
|
2495
2538
|
});
|
|
2496
|
-
var
|
|
2539
|
+
var gi = class e extends G {
|
|
2497
2540
|
constructor(t) {
|
|
2498
2541
|
super(t, {
|
|
2499
2542
|
code: e.code,
|
|
@@ -2507,13 +2550,13 @@ var hi = class e extends U {
|
|
|
2507
2550
|
});
|
|
2508
2551
|
}
|
|
2509
2552
|
};
|
|
2510
|
-
Object.defineProperty(
|
|
2553
|
+
Object.defineProperty(gi, "code", {
|
|
2511
2554
|
enumerable: !0,
|
|
2512
2555
|
configurable: !0,
|
|
2513
2556
|
writable: !0,
|
|
2514
2557
|
value: -32001
|
|
2515
2558
|
});
|
|
2516
|
-
var
|
|
2559
|
+
var _i = class e extends G {
|
|
2517
2560
|
constructor(t) {
|
|
2518
2561
|
super(t, {
|
|
2519
2562
|
code: e.code,
|
|
@@ -2522,13 +2565,13 @@ var gi = class e extends U {
|
|
|
2522
2565
|
});
|
|
2523
2566
|
}
|
|
2524
2567
|
};
|
|
2525
|
-
Object.defineProperty(
|
|
2568
|
+
Object.defineProperty(_i, "code", {
|
|
2526
2569
|
enumerable: !0,
|
|
2527
2570
|
configurable: !0,
|
|
2528
2571
|
writable: !0,
|
|
2529
2572
|
value: -32002
|
|
2530
2573
|
});
|
|
2531
|
-
var
|
|
2574
|
+
var vi = class e extends G {
|
|
2532
2575
|
constructor(t) {
|
|
2533
2576
|
super(t, {
|
|
2534
2577
|
code: e.code,
|
|
@@ -2537,13 +2580,13 @@ var _i = class e extends U {
|
|
|
2537
2580
|
});
|
|
2538
2581
|
}
|
|
2539
2582
|
};
|
|
2540
|
-
Object.defineProperty(
|
|
2583
|
+
Object.defineProperty(vi, "code", {
|
|
2541
2584
|
enumerable: !0,
|
|
2542
2585
|
configurable: !0,
|
|
2543
2586
|
writable: !0,
|
|
2544
2587
|
value: -32003
|
|
2545
2588
|
});
|
|
2546
|
-
var
|
|
2589
|
+
var yi = class e extends G {
|
|
2547
2590
|
constructor(t, { method: n } = {}) {
|
|
2548
2591
|
super(t, {
|
|
2549
2592
|
code: e.code,
|
|
@@ -2552,13 +2595,13 @@ var vi = class e extends U {
|
|
|
2552
2595
|
});
|
|
2553
2596
|
}
|
|
2554
2597
|
};
|
|
2555
|
-
Object.defineProperty(
|
|
2598
|
+
Object.defineProperty(yi, "code", {
|
|
2556
2599
|
enumerable: !0,
|
|
2557
2600
|
configurable: !0,
|
|
2558
2601
|
writable: !0,
|
|
2559
2602
|
value: -32004
|
|
2560
2603
|
});
|
|
2561
|
-
var
|
|
2604
|
+
var bi = class e extends G {
|
|
2562
2605
|
constructor(t) {
|
|
2563
2606
|
super(t, {
|
|
2564
2607
|
code: e.code,
|
|
@@ -2567,13 +2610,13 @@ var yi = class e extends U {
|
|
|
2567
2610
|
});
|
|
2568
2611
|
}
|
|
2569
2612
|
};
|
|
2570
|
-
Object.defineProperty(
|
|
2613
|
+
Object.defineProperty(bi, "code", {
|
|
2571
2614
|
enumerable: !0,
|
|
2572
2615
|
configurable: !0,
|
|
2573
2616
|
writable: !0,
|
|
2574
2617
|
value: -32005
|
|
2575
2618
|
});
|
|
2576
|
-
var
|
|
2619
|
+
var xi = class e extends G {
|
|
2577
2620
|
constructor(t) {
|
|
2578
2621
|
super(t, {
|
|
2579
2622
|
code: e.code,
|
|
@@ -2582,13 +2625,13 @@ var bi = class e extends U {
|
|
|
2582
2625
|
});
|
|
2583
2626
|
}
|
|
2584
2627
|
};
|
|
2585
|
-
Object.defineProperty(
|
|
2628
|
+
Object.defineProperty(xi, "code", {
|
|
2586
2629
|
enumerable: !0,
|
|
2587
2630
|
configurable: !0,
|
|
2588
2631
|
writable: !0,
|
|
2589
2632
|
value: -32006
|
|
2590
2633
|
});
|
|
2591
|
-
var
|
|
2634
|
+
var Si = class e extends K {
|
|
2592
2635
|
constructor(t) {
|
|
2593
2636
|
super(t, {
|
|
2594
2637
|
code: e.code,
|
|
@@ -2597,13 +2640,13 @@ var xi = class e extends W {
|
|
|
2597
2640
|
});
|
|
2598
2641
|
}
|
|
2599
2642
|
};
|
|
2600
|
-
Object.defineProperty(
|
|
2643
|
+
Object.defineProperty(Si, "code", {
|
|
2601
2644
|
enumerable: !0,
|
|
2602
2645
|
configurable: !0,
|
|
2603
2646
|
writable: !0,
|
|
2604
2647
|
value: 4001
|
|
2605
2648
|
});
|
|
2606
|
-
var
|
|
2649
|
+
var Ci = class e extends K {
|
|
2607
2650
|
constructor(t) {
|
|
2608
2651
|
super(t, {
|
|
2609
2652
|
code: e.code,
|
|
@@ -2612,13 +2655,13 @@ var Si = class e extends W {
|
|
|
2612
2655
|
});
|
|
2613
2656
|
}
|
|
2614
2657
|
};
|
|
2615
|
-
Object.defineProperty(
|
|
2658
|
+
Object.defineProperty(Ci, "code", {
|
|
2616
2659
|
enumerable: !0,
|
|
2617
2660
|
configurable: !0,
|
|
2618
2661
|
writable: !0,
|
|
2619
2662
|
value: 4100
|
|
2620
2663
|
});
|
|
2621
|
-
var
|
|
2664
|
+
var wi = class e extends K {
|
|
2622
2665
|
constructor(t, { method: n } = {}) {
|
|
2623
2666
|
super(t, {
|
|
2624
2667
|
code: e.code,
|
|
@@ -2627,13 +2670,13 @@ var Ci = class e extends W {
|
|
|
2627
2670
|
});
|
|
2628
2671
|
}
|
|
2629
2672
|
};
|
|
2630
|
-
Object.defineProperty(
|
|
2673
|
+
Object.defineProperty(wi, "code", {
|
|
2631
2674
|
enumerable: !0,
|
|
2632
2675
|
configurable: !0,
|
|
2633
2676
|
writable: !0,
|
|
2634
2677
|
value: 4200
|
|
2635
2678
|
});
|
|
2636
|
-
var
|
|
2679
|
+
var Ti = class e extends K {
|
|
2637
2680
|
constructor(t) {
|
|
2638
2681
|
super(t, {
|
|
2639
2682
|
code: e.code,
|
|
@@ -2642,13 +2685,13 @@ var wi = class e extends W {
|
|
|
2642
2685
|
});
|
|
2643
2686
|
}
|
|
2644
2687
|
};
|
|
2645
|
-
Object.defineProperty(
|
|
2688
|
+
Object.defineProperty(Ti, "code", {
|
|
2646
2689
|
enumerable: !0,
|
|
2647
2690
|
configurable: !0,
|
|
2648
2691
|
writable: !0,
|
|
2649
2692
|
value: 4900
|
|
2650
2693
|
});
|
|
2651
|
-
var
|
|
2694
|
+
var Ei = class e extends K {
|
|
2652
2695
|
constructor(t) {
|
|
2653
2696
|
super(t, {
|
|
2654
2697
|
code: e.code,
|
|
@@ -2657,13 +2700,13 @@ var Ti = class e extends W {
|
|
|
2657
2700
|
});
|
|
2658
2701
|
}
|
|
2659
2702
|
};
|
|
2660
|
-
Object.defineProperty(
|
|
2703
|
+
Object.defineProperty(Ei, "code", {
|
|
2661
2704
|
enumerable: !0,
|
|
2662
2705
|
configurable: !0,
|
|
2663
2706
|
writable: !0,
|
|
2664
2707
|
value: 4901
|
|
2665
2708
|
});
|
|
2666
|
-
var
|
|
2709
|
+
var Di = class e extends K {
|
|
2667
2710
|
constructor(t) {
|
|
2668
2711
|
super(t, {
|
|
2669
2712
|
code: e.code,
|
|
@@ -2672,13 +2715,13 @@ var Ei = class e extends W {
|
|
|
2672
2715
|
});
|
|
2673
2716
|
}
|
|
2674
2717
|
};
|
|
2675
|
-
Object.defineProperty(
|
|
2718
|
+
Object.defineProperty(Di, "code", {
|
|
2676
2719
|
enumerable: !0,
|
|
2677
2720
|
configurable: !0,
|
|
2678
2721
|
writable: !0,
|
|
2679
2722
|
value: 4902
|
|
2680
2723
|
});
|
|
2681
|
-
var
|
|
2724
|
+
var Oi = class e extends K {
|
|
2682
2725
|
constructor(t) {
|
|
2683
2726
|
super(t, {
|
|
2684
2727
|
code: e.code,
|
|
@@ -2687,13 +2730,13 @@ var Di = class e extends W {
|
|
|
2687
2730
|
});
|
|
2688
2731
|
}
|
|
2689
2732
|
};
|
|
2690
|
-
Object.defineProperty(
|
|
2733
|
+
Object.defineProperty(Oi, "code", {
|
|
2691
2734
|
enumerable: !0,
|
|
2692
2735
|
configurable: !0,
|
|
2693
2736
|
writable: !0,
|
|
2694
2737
|
value: 5700
|
|
2695
2738
|
});
|
|
2696
|
-
var
|
|
2739
|
+
var ki = class e extends K {
|
|
2697
2740
|
constructor(t) {
|
|
2698
2741
|
super(t, {
|
|
2699
2742
|
code: e.code,
|
|
@@ -2702,13 +2745,13 @@ var Oi = class e extends W {
|
|
|
2702
2745
|
});
|
|
2703
2746
|
}
|
|
2704
2747
|
};
|
|
2705
|
-
Object.defineProperty(
|
|
2748
|
+
Object.defineProperty(ki, "code", {
|
|
2706
2749
|
enumerable: !0,
|
|
2707
2750
|
configurable: !0,
|
|
2708
2751
|
writable: !0,
|
|
2709
2752
|
value: 5710
|
|
2710
2753
|
});
|
|
2711
|
-
var
|
|
2754
|
+
var Ai = class e extends K {
|
|
2712
2755
|
constructor(t) {
|
|
2713
2756
|
super(t, {
|
|
2714
2757
|
code: e.code,
|
|
@@ -2717,13 +2760,13 @@ var ki = class e extends W {
|
|
|
2717
2760
|
});
|
|
2718
2761
|
}
|
|
2719
2762
|
};
|
|
2720
|
-
Object.defineProperty(
|
|
2763
|
+
Object.defineProperty(Ai, "code", {
|
|
2721
2764
|
enumerable: !0,
|
|
2722
2765
|
configurable: !0,
|
|
2723
2766
|
writable: !0,
|
|
2724
2767
|
value: 5720
|
|
2725
2768
|
});
|
|
2726
|
-
var
|
|
2769
|
+
var ji = class e extends K {
|
|
2727
2770
|
constructor(t) {
|
|
2728
2771
|
super(t, {
|
|
2729
2772
|
code: e.code,
|
|
@@ -2732,13 +2775,13 @@ var Ai = class e extends W {
|
|
|
2732
2775
|
});
|
|
2733
2776
|
}
|
|
2734
2777
|
};
|
|
2735
|
-
Object.defineProperty(
|
|
2778
|
+
Object.defineProperty(ji, "code", {
|
|
2736
2779
|
enumerable: !0,
|
|
2737
2780
|
configurable: !0,
|
|
2738
2781
|
writable: !0,
|
|
2739
2782
|
value: 5730
|
|
2740
2783
|
});
|
|
2741
|
-
var
|
|
2784
|
+
var Mi = class e extends K {
|
|
2742
2785
|
constructor(t) {
|
|
2743
2786
|
super(t, {
|
|
2744
2787
|
code: e.code,
|
|
@@ -2747,13 +2790,13 @@ var ji = class e extends W {
|
|
|
2747
2790
|
});
|
|
2748
2791
|
}
|
|
2749
2792
|
};
|
|
2750
|
-
Object.defineProperty(
|
|
2793
|
+
Object.defineProperty(Mi, "code", {
|
|
2751
2794
|
enumerable: !0,
|
|
2752
2795
|
configurable: !0,
|
|
2753
2796
|
writable: !0,
|
|
2754
2797
|
value: 5740
|
|
2755
2798
|
});
|
|
2756
|
-
var
|
|
2799
|
+
var Ni = class e extends K {
|
|
2757
2800
|
constructor(t) {
|
|
2758
2801
|
super(t, {
|
|
2759
2802
|
code: e.code,
|
|
@@ -2762,13 +2805,13 @@ var Mi = class e extends W {
|
|
|
2762
2805
|
});
|
|
2763
2806
|
}
|
|
2764
2807
|
};
|
|
2765
|
-
Object.defineProperty(
|
|
2808
|
+
Object.defineProperty(Ni, "code", {
|
|
2766
2809
|
enumerable: !0,
|
|
2767
2810
|
configurable: !0,
|
|
2768
2811
|
writable: !0,
|
|
2769
2812
|
value: 5750
|
|
2770
2813
|
});
|
|
2771
|
-
var
|
|
2814
|
+
var Pi = class e extends K {
|
|
2772
2815
|
constructor(t) {
|
|
2773
2816
|
super(t, {
|
|
2774
2817
|
code: e.code,
|
|
@@ -2777,13 +2820,13 @@ var Ni = class e extends W {
|
|
|
2777
2820
|
});
|
|
2778
2821
|
}
|
|
2779
2822
|
};
|
|
2780
|
-
Object.defineProperty(
|
|
2823
|
+
Object.defineProperty(Pi, "code", {
|
|
2781
2824
|
enumerable: !0,
|
|
2782
2825
|
configurable: !0,
|
|
2783
2826
|
writable: !0,
|
|
2784
2827
|
value: 5760
|
|
2785
2828
|
});
|
|
2786
|
-
var
|
|
2829
|
+
var Fi = class e extends K {
|
|
2787
2830
|
constructor(t) {
|
|
2788
2831
|
super(t, {
|
|
2789
2832
|
code: e.code,
|
|
@@ -2792,20 +2835,20 @@ var Pi = class e extends W {
|
|
|
2792
2835
|
});
|
|
2793
2836
|
}
|
|
2794
2837
|
};
|
|
2795
|
-
Object.defineProperty(
|
|
2838
|
+
Object.defineProperty(Fi, "code", {
|
|
2796
2839
|
enumerable: !0,
|
|
2797
2840
|
configurable: !0,
|
|
2798
2841
|
writable: !0,
|
|
2799
2842
|
value: 7e3
|
|
2800
2843
|
});
|
|
2801
|
-
var
|
|
2844
|
+
var Ii = class extends G {
|
|
2802
2845
|
constructor(e) {
|
|
2803
2846
|
super(e, {
|
|
2804
2847
|
name: "UnknownRpcError",
|
|
2805
2848
|
shortMessage: "An unknown RPC error occurred."
|
|
2806
2849
|
});
|
|
2807
2850
|
}
|
|
2808
|
-
},
|
|
2851
|
+
}, q = class extends D {
|
|
2809
2852
|
constructor({ cause: e, message: t } = {}) {
|
|
2810
2853
|
let n = t?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
2811
2854
|
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
@@ -2814,46 +2857,46 @@ var Fi = class extends U {
|
|
|
2814
2857
|
});
|
|
2815
2858
|
}
|
|
2816
2859
|
};
|
|
2817
|
-
Object.defineProperty(
|
|
2860
|
+
Object.defineProperty(q, "code", {
|
|
2818
2861
|
enumerable: !0,
|
|
2819
2862
|
configurable: !0,
|
|
2820
2863
|
writable: !0,
|
|
2821
2864
|
value: 3
|
|
2822
|
-
}), Object.defineProperty(
|
|
2865
|
+
}), Object.defineProperty(q, "nodeMessage", {
|
|
2823
2866
|
enumerable: !0,
|
|
2824
2867
|
configurable: !0,
|
|
2825
2868
|
writable: !0,
|
|
2826
2869
|
value: /execution reverted|gas required exceeds allowance/
|
|
2827
2870
|
});
|
|
2828
|
-
var
|
|
2871
|
+
var Li = class extends D {
|
|
2829
2872
|
constructor({ cause: e, maxFeePerGas: t } = {}) {
|
|
2830
|
-
super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${
|
|
2873
|
+
super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${W(t)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
2831
2874
|
cause: e,
|
|
2832
2875
|
name: "FeeCapTooHighError"
|
|
2833
2876
|
});
|
|
2834
2877
|
}
|
|
2835
2878
|
};
|
|
2836
|
-
Object.defineProperty(
|
|
2879
|
+
Object.defineProperty(Li, "nodeMessage", {
|
|
2837
2880
|
enumerable: !0,
|
|
2838
2881
|
configurable: !0,
|
|
2839
2882
|
writable: !0,
|
|
2840
2883
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
2841
2884
|
});
|
|
2842
|
-
var
|
|
2885
|
+
var Ri = class extends D {
|
|
2843
2886
|
constructor({ cause: e, maxFeePerGas: t } = {}) {
|
|
2844
|
-
super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${
|
|
2887
|
+
super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${W(t)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
2845
2888
|
cause: e,
|
|
2846
2889
|
name: "FeeCapTooLowError"
|
|
2847
2890
|
});
|
|
2848
2891
|
}
|
|
2849
2892
|
};
|
|
2850
|
-
Object.defineProperty(
|
|
2893
|
+
Object.defineProperty(Ri, "nodeMessage", {
|
|
2851
2894
|
enumerable: !0,
|
|
2852
2895
|
configurable: !0,
|
|
2853
2896
|
writable: !0,
|
|
2854
2897
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
2855
2898
|
});
|
|
2856
|
-
var
|
|
2899
|
+
var zi = class extends D {
|
|
2857
2900
|
constructor({ cause: e, nonce: t } = {}) {
|
|
2858
2901
|
super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}is higher than the next one expected.`, {
|
|
2859
2902
|
cause: e,
|
|
@@ -2861,13 +2904,13 @@ var Li = class extends w {
|
|
|
2861
2904
|
});
|
|
2862
2905
|
}
|
|
2863
2906
|
};
|
|
2864
|
-
Object.defineProperty(
|
|
2907
|
+
Object.defineProperty(zi, "nodeMessage", {
|
|
2865
2908
|
enumerable: !0,
|
|
2866
2909
|
configurable: !0,
|
|
2867
2910
|
writable: !0,
|
|
2868
2911
|
value: /nonce too high/
|
|
2869
2912
|
});
|
|
2870
|
-
var
|
|
2913
|
+
var Bi = class extends D {
|
|
2871
2914
|
constructor({ cause: e, nonce: t } = {}) {
|
|
2872
2915
|
super([`Nonce provided for the transaction ${t ? `(${t}) ` : ""}is lower than the current nonce of the account.`, "Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"), {
|
|
2873
2916
|
cause: e,
|
|
@@ -2875,13 +2918,13 @@ var Ri = class extends w {
|
|
|
2875
2918
|
});
|
|
2876
2919
|
}
|
|
2877
2920
|
};
|
|
2878
|
-
Object.defineProperty(
|
|
2921
|
+
Object.defineProperty(Bi, "nodeMessage", {
|
|
2879
2922
|
enumerable: !0,
|
|
2880
2923
|
configurable: !0,
|
|
2881
2924
|
writable: !0,
|
|
2882
2925
|
value: /nonce too low|transaction already imported|already known/
|
|
2883
2926
|
});
|
|
2884
|
-
var
|
|
2927
|
+
var Vi = class extends D {
|
|
2885
2928
|
constructor({ cause: e, nonce: t } = {}) {
|
|
2886
2929
|
super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}exceeds the maximum allowed nonce.`, {
|
|
2887
2930
|
cause: e,
|
|
@@ -2889,13 +2932,13 @@ var zi = class extends w {
|
|
|
2889
2932
|
});
|
|
2890
2933
|
}
|
|
2891
2934
|
};
|
|
2892
|
-
Object.defineProperty(
|
|
2935
|
+
Object.defineProperty(Vi, "nodeMessage", {
|
|
2893
2936
|
enumerable: !0,
|
|
2894
2937
|
configurable: !0,
|
|
2895
2938
|
writable: !0,
|
|
2896
2939
|
value: /nonce has max value/
|
|
2897
2940
|
});
|
|
2898
|
-
var
|
|
2941
|
+
var Hi = class extends D {
|
|
2899
2942
|
constructor({ cause: e } = {}) {
|
|
2900
2943
|
super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"), {
|
|
2901
2944
|
cause: e,
|
|
@@ -2913,13 +2956,13 @@ var Bi = class extends w {
|
|
|
2913
2956
|
});
|
|
2914
2957
|
}
|
|
2915
2958
|
};
|
|
2916
|
-
Object.defineProperty(
|
|
2959
|
+
Object.defineProperty(Hi, "nodeMessage", {
|
|
2917
2960
|
enumerable: !0,
|
|
2918
2961
|
configurable: !0,
|
|
2919
2962
|
writable: !0,
|
|
2920
2963
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
2921
2964
|
});
|
|
2922
|
-
var
|
|
2965
|
+
var Ui = class extends D {
|
|
2923
2966
|
constructor({ cause: e, gas: t } = {}) {
|
|
2924
2967
|
super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
2925
2968
|
cause: e,
|
|
@@ -2927,13 +2970,13 @@ var Vi = class extends w {
|
|
|
2927
2970
|
});
|
|
2928
2971
|
}
|
|
2929
2972
|
};
|
|
2930
|
-
Object.defineProperty(
|
|
2973
|
+
Object.defineProperty(Ui, "nodeMessage", {
|
|
2931
2974
|
enumerable: !0,
|
|
2932
2975
|
configurable: !0,
|
|
2933
2976
|
writable: !0,
|
|
2934
2977
|
value: /intrinsic gas too high|gas limit reached/
|
|
2935
2978
|
});
|
|
2936
|
-
var
|
|
2979
|
+
var Wi = class extends D {
|
|
2937
2980
|
constructor({ cause: e, gas: t } = {}) {
|
|
2938
2981
|
super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction is too low.`, {
|
|
2939
2982
|
cause: e,
|
|
@@ -2941,13 +2984,13 @@ var Hi = class extends w {
|
|
|
2941
2984
|
});
|
|
2942
2985
|
}
|
|
2943
2986
|
};
|
|
2944
|
-
Object.defineProperty(
|
|
2987
|
+
Object.defineProperty(Wi, "nodeMessage", {
|
|
2945
2988
|
enumerable: !0,
|
|
2946
2989
|
configurable: !0,
|
|
2947
2990
|
writable: !0,
|
|
2948
2991
|
value: /intrinsic gas too low/
|
|
2949
2992
|
});
|
|
2950
|
-
var
|
|
2993
|
+
var Gi = class extends D {
|
|
2951
2994
|
constructor({ cause: e }) {
|
|
2952
2995
|
super("The transaction type is not supported for this chain.", {
|
|
2953
2996
|
cause: e,
|
|
@@ -2955,27 +2998,27 @@ var Ui = class extends w {
|
|
|
2955
2998
|
});
|
|
2956
2999
|
}
|
|
2957
3000
|
};
|
|
2958
|
-
Object.defineProperty(
|
|
3001
|
+
Object.defineProperty(Gi, "nodeMessage", {
|
|
2959
3002
|
enumerable: !0,
|
|
2960
3003
|
configurable: !0,
|
|
2961
3004
|
writable: !0,
|
|
2962
3005
|
value: /transaction type not valid/
|
|
2963
3006
|
});
|
|
2964
|
-
var
|
|
3007
|
+
var Ki = class extends D {
|
|
2965
3008
|
constructor({ cause: e, maxPriorityFeePerGas: t, maxFeePerGas: n } = {}) {
|
|
2966
|
-
super([`The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${
|
|
3009
|
+
super([`The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${W(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${W(n)} gwei` : ""}).`].join("\n"), {
|
|
2967
3010
|
cause: e,
|
|
2968
3011
|
name: "TipAboveFeeCapError"
|
|
2969
3012
|
});
|
|
2970
3013
|
}
|
|
2971
3014
|
};
|
|
2972
|
-
Object.defineProperty(
|
|
3015
|
+
Object.defineProperty(Ki, "nodeMessage", {
|
|
2973
3016
|
enumerable: !0,
|
|
2974
3017
|
configurable: !0,
|
|
2975
3018
|
writable: !0,
|
|
2976
3019
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
2977
3020
|
});
|
|
2978
|
-
var
|
|
3021
|
+
var qi = class extends D {
|
|
2979
3022
|
constructor({ cause: e }) {
|
|
2980
3023
|
super(`An error occurred while executing: ${e?.shortMessage}`, {
|
|
2981
3024
|
cause: e,
|
|
@@ -2985,44 +3028,44 @@ var Wi = class extends w {
|
|
|
2985
3028
|
};
|
|
2986
3029
|
//#endregion
|
|
2987
3030
|
//#region ../../node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
2988
|
-
function
|
|
2989
|
-
let n = (e.details || "").toLowerCase(), r = e instanceof
|
|
2990
|
-
return r instanceof
|
|
3031
|
+
function Ji(e, t) {
|
|
3032
|
+
let n = (e.details || "").toLowerCase(), r = e instanceof D ? e.walk((e) => e?.code === q.code) : e;
|
|
3033
|
+
return r instanceof D ? new q({
|
|
2991
3034
|
cause: e,
|
|
2992
3035
|
message: r.details
|
|
2993
|
-
}) :
|
|
3036
|
+
}) : q.nodeMessage.test(n) ? new q({
|
|
2994
3037
|
cause: e,
|
|
2995
3038
|
message: e.details
|
|
2996
|
-
}) :
|
|
3039
|
+
}) : Li.nodeMessage.test(n) ? new Li({
|
|
2997
3040
|
cause: e,
|
|
2998
3041
|
maxFeePerGas: t?.maxFeePerGas
|
|
2999
|
-
}) :
|
|
3042
|
+
}) : Ri.nodeMessage.test(n) ? new Ri({
|
|
3000
3043
|
cause: e,
|
|
3001
3044
|
maxFeePerGas: t?.maxFeePerGas
|
|
3002
|
-
}) :
|
|
3045
|
+
}) : zi.nodeMessage.test(n) ? new zi({
|
|
3003
3046
|
cause: e,
|
|
3004
3047
|
nonce: t?.nonce
|
|
3005
|
-
}) :
|
|
3048
|
+
}) : Bi.nodeMessage.test(n) ? new Bi({
|
|
3006
3049
|
cause: e,
|
|
3007
3050
|
nonce: t?.nonce
|
|
3008
|
-
}) :
|
|
3051
|
+
}) : Vi.nodeMessage.test(n) ? new Vi({
|
|
3009
3052
|
cause: e,
|
|
3010
3053
|
nonce: t?.nonce
|
|
3011
|
-
}) :
|
|
3054
|
+
}) : Hi.nodeMessage.test(n) ? new Hi({ cause: e }) : Ui.nodeMessage.test(n) ? new Ui({
|
|
3012
3055
|
cause: e,
|
|
3013
3056
|
gas: t?.gas
|
|
3014
|
-
}) :
|
|
3057
|
+
}) : Wi.nodeMessage.test(n) ? new Wi({
|
|
3015
3058
|
cause: e,
|
|
3016
3059
|
gas: t?.gas
|
|
3017
|
-
}) :
|
|
3060
|
+
}) : Gi.nodeMessage.test(n) ? new Gi({ cause: e }) : Ki.nodeMessage.test(n) ? new Ki({
|
|
3018
3061
|
cause: e,
|
|
3019
3062
|
maxFeePerGas: t?.maxFeePerGas,
|
|
3020
3063
|
maxPriorityFeePerGas: t?.maxPriorityFeePerGas
|
|
3021
|
-
}) : new
|
|
3064
|
+
}) : new qi({ cause: e });
|
|
3022
3065
|
}
|
|
3023
3066
|
//#endregion
|
|
3024
3067
|
//#region ../../node_modules/viem/_esm/utils/formatters/extract.js
|
|
3025
|
-
function
|
|
3068
|
+
function Yi(e, { format: t }) {
|
|
3026
3069
|
if (!t) return {};
|
|
3027
3070
|
let n = {};
|
|
3028
3071
|
function r(t) {
|
|
@@ -3033,7 +3076,7 @@ function Ki(e, { format: t }) {
|
|
|
3033
3076
|
}
|
|
3034
3077
|
//#endregion
|
|
3035
3078
|
//#region ../../node_modules/viem/_esm/utils/formatters/formatter.js
|
|
3036
|
-
function
|
|
3079
|
+
function Xi(e, t) {
|
|
3037
3080
|
return ({ exclude: n, format: r }) => ({
|
|
3038
3081
|
exclude: n,
|
|
3039
3082
|
format: (e, i) => {
|
|
@@ -3049,39 +3092,39 @@ function qi(e, t) {
|
|
|
3049
3092
|
}
|
|
3050
3093
|
//#endregion
|
|
3051
3094
|
//#region ../../node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
3052
|
-
var
|
|
3095
|
+
var Zi = {
|
|
3053
3096
|
legacy: "0x0",
|
|
3054
3097
|
eip2930: "0x1",
|
|
3055
3098
|
eip1559: "0x2",
|
|
3056
3099
|
eip4844: "0x3",
|
|
3057
3100
|
eip7702: "0x4"
|
|
3058
3101
|
};
|
|
3059
|
-
function
|
|
3102
|
+
function Qi(e, t) {
|
|
3060
3103
|
let n = {};
|
|
3061
|
-
return e.authorizationList !== void 0 && (n.authorizationList =
|
|
3104
|
+
return e.authorizationList !== void 0 && (n.authorizationList = ea(e.authorizationList)), e.accessList !== void 0 && (n.accessList = e.accessList), e.blobVersionedHashes !== void 0 && (n.blobVersionedHashes = e.blobVersionedHashes), e.blobs !== void 0 && (typeof e.blobs[0] == "string" ? n.blobs = e.blobs : n.blobs = e.blobs.map((e) => N(e))), e.data !== void 0 && (n.data = e.data), e.account && (n.from = e.account.address), e.from !== void 0 && (n.from = e.from), e.gas !== void 0 && (n.gas = P(e.gas)), e.gasPrice !== void 0 && (n.gasPrice = P(e.gasPrice)), e.maxFeePerBlobGas !== void 0 && (n.maxFeePerBlobGas = P(e.maxFeePerBlobGas)), e.maxFeePerGas !== void 0 && (n.maxFeePerGas = P(e.maxFeePerGas)), e.maxPriorityFeePerGas !== void 0 && (n.maxPriorityFeePerGas = P(e.maxPriorityFeePerGas)), e.nonce !== void 0 && (n.nonce = P(e.nonce)), e.to !== void 0 && (n.to = e.to), e.type !== void 0 && (n.type = Zi[e.type]), e.value !== void 0 && (n.value = P(e.value)), n;
|
|
3062
3105
|
}
|
|
3063
|
-
var
|
|
3064
|
-
function
|
|
3106
|
+
var $i = /*#__PURE__*/ Xi("transactionRequest", Qi);
|
|
3107
|
+
function ea(e) {
|
|
3065
3108
|
return e.map((e) => ({
|
|
3066
3109
|
address: e.address,
|
|
3067
|
-
r: e.r ?
|
|
3068
|
-
s: e.s ?
|
|
3069
|
-
chainId:
|
|
3070
|
-
nonce:
|
|
3071
|
-
...e.yParity === void 0 ? {} : { yParity:
|
|
3072
|
-
...e.v !== void 0 && e.yParity === void 0 ? { v:
|
|
3110
|
+
r: e.r ? P(BigInt(e.r)) : e.r,
|
|
3111
|
+
s: e.s ? P(BigInt(e.s)) : e.s,
|
|
3112
|
+
chainId: P(e.chainId),
|
|
3113
|
+
nonce: P(e.nonce),
|
|
3114
|
+
...e.yParity === void 0 ? {} : { yParity: P(e.yParity) },
|
|
3115
|
+
...e.v !== void 0 && e.yParity === void 0 ? { v: P(e.v) } : {}
|
|
3073
3116
|
}));
|
|
3074
3117
|
}
|
|
3075
3118
|
//#endregion
|
|
3076
3119
|
//#region ../../node_modules/viem/_esm/utils/stateOverride.js
|
|
3077
|
-
function
|
|
3120
|
+
function ta(e) {
|
|
3078
3121
|
if (!(!e || e.length === 0)) return e.reduce((e, { slot: t, value: n }) => {
|
|
3079
|
-
if (t.length !== 66) throw new
|
|
3122
|
+
if (t.length !== 66) throw new It({
|
|
3080
3123
|
size: t.length,
|
|
3081
3124
|
targetSize: 66,
|
|
3082
3125
|
type: "hex"
|
|
3083
3126
|
});
|
|
3084
|
-
if (n.length !== 66) throw new
|
|
3127
|
+
if (n.length !== 66) throw new It({
|
|
3085
3128
|
size: n.length,
|
|
3086
3129
|
targetSize: 66,
|
|
3087
3130
|
type: "hex"
|
|
@@ -3089,72 +3132,82 @@ function Qi(e) {
|
|
|
3089
3132
|
return e[t] = n, e;
|
|
3090
3133
|
}, {});
|
|
3091
3134
|
}
|
|
3092
|
-
function
|
|
3135
|
+
function na(e) {
|
|
3093
3136
|
let { balance: t, nonce: n, state: r, stateDiff: i, code: a } = e, o = {};
|
|
3094
|
-
if (a !== void 0 && (o.code = a), t !== void 0 && (o.balance =
|
|
3095
|
-
if (o.state) throw new
|
|
3096
|
-
o.stateDiff =
|
|
3137
|
+
if (a !== void 0 && (o.code = a), t !== void 0 && (o.balance = P(t)), n !== void 0 && (o.nonce = P(n)), r !== void 0 && (o.state = ta(r)), i !== void 0) {
|
|
3138
|
+
if (o.state) throw new Lr();
|
|
3139
|
+
o.stateDiff = ta(i);
|
|
3097
3140
|
}
|
|
3098
3141
|
return o;
|
|
3099
3142
|
}
|
|
3100
|
-
function
|
|
3143
|
+
function ra(e) {
|
|
3101
3144
|
if (!e) return;
|
|
3102
3145
|
let t = {};
|
|
3103
3146
|
for (let { address: n, ...r } of e) {
|
|
3104
|
-
if (!
|
|
3105
|
-
if (t[n]) throw new
|
|
3106
|
-
t[n] =
|
|
3147
|
+
if (!L(n, { strict: !1 })) throw new I({ address: n });
|
|
3148
|
+
if (t[n]) throw new Ir({ address: n });
|
|
3149
|
+
t[n] = na(r);
|
|
3107
3150
|
}
|
|
3108
3151
|
return t;
|
|
3109
3152
|
}
|
|
3110
3153
|
2n ** (8n - 1n) - 1n, 2n ** (16n - 1n) - 1n, 2n ** (24n - 1n) - 1n, 2n ** (32n - 1n) - 1n, 2n ** (40n - 1n) - 1n, 2n ** (48n - 1n) - 1n, 2n ** (56n - 1n) - 1n, 2n ** (64n - 1n) - 1n, 2n ** (72n - 1n) - 1n, 2n ** (80n - 1n) - 1n, 2n ** (88n - 1n) - 1n, 2n ** (96n - 1n) - 1n, 2n ** (104n - 1n) - 1n, 2n ** (112n - 1n) - 1n, 2n ** (120n - 1n) - 1n, 2n ** (128n - 1n) - 1n, 2n ** (136n - 1n) - 1n, 2n ** (144n - 1n) - 1n, 2n ** (152n - 1n) - 1n, 2n ** (160n - 1n) - 1n, 2n ** (168n - 1n) - 1n, 2n ** (176n - 1n) - 1n, 2n ** (184n - 1n) - 1n, 2n ** (192n - 1n) - 1n, 2n ** (200n - 1n) - 1n, 2n ** (208n - 1n) - 1n, 2n ** (216n - 1n) - 1n, 2n ** (224n - 1n) - 1n, 2n ** (232n - 1n) - 1n, 2n ** (240n - 1n) - 1n, 2n ** (248n - 1n) - 1n, 2n ** (256n - 1n) - 1n, -(2n ** (8n - 1n)), -(2n ** (16n - 1n)), -(2n ** (24n - 1n)), -(2n ** (32n - 1n)), -(2n ** (40n - 1n)), -(2n ** (48n - 1n)), -(2n ** (56n - 1n)), -(2n ** (64n - 1n)), -(2n ** (72n - 1n)), -(2n ** (80n - 1n)), -(2n ** (88n - 1n)), -(2n ** (96n - 1n)), -(2n ** (104n - 1n)), -(2n ** (112n - 1n)), -(2n ** (120n - 1n)), -(2n ** (128n - 1n)), -(2n ** (136n - 1n)), -(2n ** (144n - 1n)), -(2n ** (152n - 1n)), -(2n ** (160n - 1n)), -(2n ** (168n - 1n)), -(2n ** (176n - 1n)), -(2n ** (184n - 1n)), -(2n ** (192n - 1n)), -(2n ** (200n - 1n)), -(2n ** (208n - 1n)), -(2n ** (216n - 1n)), -(2n ** (224n - 1n)), -(2n ** (232n - 1n)), -(2n ** (240n - 1n)), -(2n ** (248n - 1n)), -(2n ** (256n - 1n));
|
|
3111
|
-
var
|
|
3154
|
+
var ia = 2n ** 256n - 1n;
|
|
3112
3155
|
//#endregion
|
|
3113
3156
|
//#region ../../node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
3114
|
-
function
|
|
3115
|
-
let { account: t, maxFeePerGas: n, maxPriorityFeePerGas: r, to: i } = e, a = t ?
|
|
3116
|
-
if (a && !
|
|
3117
|
-
if (i && !
|
|
3118
|
-
if (n && n >
|
|
3119
|
-
if (r && n && r > n) throw new
|
|
3157
|
+
function aa(e) {
|
|
3158
|
+
let { account: t, maxFeePerGas: n, maxPriorityFeePerGas: r, to: i } = e, a = t ? rr(t) : void 0;
|
|
3159
|
+
if (a && !L(a.address)) throw new I({ address: a.address });
|
|
3160
|
+
if (i && !L(i)) throw new I({ address: i });
|
|
3161
|
+
if (n && n > ia) throw new Li({ maxFeePerGas: n });
|
|
3162
|
+
if (r && n && r > n) throw new Ki({
|
|
3120
3163
|
maxFeePerGas: n,
|
|
3121
3164
|
maxPriorityFeePerGas: r
|
|
3122
3165
|
});
|
|
3123
3166
|
}
|
|
3124
3167
|
//#endregion
|
|
3168
|
+
//#region ../../node_modules/viem/_esm/utils/block/formatBlockParameter.js
|
|
3169
|
+
function oa(e) {
|
|
3170
|
+
let { blockHash: t, blockNumber: n, blockTag: r, requireCanonical: i } = e;
|
|
3171
|
+
if (i !== void 0 && !t) throw new D("`requireCanonical` can only be provided when `blockHash` is set.");
|
|
3172
|
+
return t ? i ? {
|
|
3173
|
+
blockHash: t,
|
|
3174
|
+
requireCanonical: i
|
|
3175
|
+
} : { blockHash: t } : typeof n == "bigint" ? P(n) : r ?? "latest";
|
|
3176
|
+
}
|
|
3177
|
+
//#endregion
|
|
3125
3178
|
//#region ../../node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3126
|
-
function
|
|
3127
|
-
if (!
|
|
3128
|
-
if (!
|
|
3179
|
+
function sa(e, t) {
|
|
3180
|
+
if (!L(e, { strict: !1 })) throw new I({ address: e });
|
|
3181
|
+
if (!L(t, { strict: !1 })) throw new I({ address: t });
|
|
3129
3182
|
return e.toLowerCase() === t.toLowerCase();
|
|
3130
3183
|
}
|
|
3131
3184
|
//#endregion
|
|
3132
3185
|
//#region ../../node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
3133
|
-
var
|
|
3134
|
-
function
|
|
3186
|
+
var ca = "/docs/contract/decodeFunctionResult";
|
|
3187
|
+
function la(e) {
|
|
3135
3188
|
let { abi: t, args: n, functionName: r, data: i } = e, a = t[0];
|
|
3136
3189
|
if (r) {
|
|
3137
|
-
let e =
|
|
3190
|
+
let e = V({
|
|
3138
3191
|
abi: t,
|
|
3139
3192
|
args: n,
|
|
3140
3193
|
name: r
|
|
3141
3194
|
});
|
|
3142
|
-
if (!e) throw new
|
|
3195
|
+
if (!e) throw new O(r, { docsPath: ca });
|
|
3143
3196
|
a = e;
|
|
3144
3197
|
}
|
|
3145
|
-
if (a.type !== "function") throw new
|
|
3146
|
-
if (!a.outputs) throw new
|
|
3147
|
-
let o =
|
|
3198
|
+
if (a.type !== "function") throw new O(void 0, { docsPath: ca });
|
|
3199
|
+
if (!a.outputs) throw new Ct(a.name, { docsPath: ca });
|
|
3200
|
+
let o = vr(a.outputs, i);
|
|
3148
3201
|
if (o && o.length > 1) return o;
|
|
3149
3202
|
if (o && o.length === 1) return o[0];
|
|
3150
3203
|
}
|
|
3151
3204
|
//#endregion
|
|
3152
3205
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/version.js
|
|
3153
|
-
var
|
|
3206
|
+
var ua = "0.1.1";
|
|
3154
3207
|
//#endregion
|
|
3155
3208
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/internal/errors.js
|
|
3156
|
-
function
|
|
3157
|
-
return
|
|
3209
|
+
function da() {
|
|
3210
|
+
return ua;
|
|
3158
3211
|
}
|
|
3159
3212
|
//#endregion
|
|
3160
3213
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/Errors.js
|
|
@@ -3227,7 +3280,7 @@ var J = class e extends Error {
|
|
|
3227
3280
|
}), this.cause = n.cause, this.details = r, this.docs = o, this.docsOrigin = a, this.docsPath = i, this.shortMessage = t, this.showVersion = s, this.version = c;
|
|
3228
3281
|
}
|
|
3229
3282
|
walk(e) {
|
|
3230
|
-
return
|
|
3283
|
+
return fa(this, e);
|
|
3231
3284
|
}
|
|
3232
3285
|
};
|
|
3233
3286
|
Object.defineProperty(J, "defaultStaticOptions", {
|
|
@@ -3237,29 +3290,29 @@ Object.defineProperty(J, "defaultStaticOptions", {
|
|
|
3237
3290
|
value: {
|
|
3238
3291
|
docsOrigin: "https://oxlib.sh",
|
|
3239
3292
|
showVersion: !1,
|
|
3240
|
-
version: `ox@${
|
|
3293
|
+
version: `ox@${da()}`
|
|
3241
3294
|
}
|
|
3242
3295
|
}), J.setStaticOptions(J.defaultStaticOptions);
|
|
3243
|
-
function
|
|
3244
|
-
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause ?
|
|
3296
|
+
function fa(e, t) {
|
|
3297
|
+
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause ? fa(e.cause, t) : t ? null : e;
|
|
3245
3298
|
}
|
|
3246
3299
|
//#endregion
|
|
3247
3300
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/internal/bytes.js
|
|
3248
|
-
function
|
|
3249
|
-
if (X(e) > t) throw new
|
|
3301
|
+
function pa(e, t) {
|
|
3302
|
+
if (X(e) > t) throw new Ua({
|
|
3250
3303
|
givenSize: X(e),
|
|
3251
3304
|
maxSize: t
|
|
3252
3305
|
});
|
|
3253
3306
|
}
|
|
3254
|
-
function
|
|
3255
|
-
if (typeof t == "number" && t > 0 && t > X(e) - 1) throw new
|
|
3307
|
+
function ma(e, t) {
|
|
3308
|
+
if (typeof t == "number" && t > 0 && t > X(e) - 1) throw new Wa({
|
|
3256
3309
|
offset: t,
|
|
3257
3310
|
position: "start",
|
|
3258
3311
|
size: X(e)
|
|
3259
3312
|
});
|
|
3260
3313
|
}
|
|
3261
|
-
function
|
|
3262
|
-
if (typeof t == "number" && typeof n == "number" && X(e) !== n - t) throw new
|
|
3314
|
+
function ha(e, t, n) {
|
|
3315
|
+
if (typeof t == "number" && typeof n == "number" && X(e) !== n - t) throw new Wa({
|
|
3263
3316
|
offset: n,
|
|
3264
3317
|
position: "end",
|
|
3265
3318
|
size: X(e)
|
|
@@ -3273,15 +3326,15 @@ var Y = {
|
|
|
3273
3326
|
a: 97,
|
|
3274
3327
|
f: 102
|
|
3275
3328
|
};
|
|
3276
|
-
function
|
|
3329
|
+
function ga(e) {
|
|
3277
3330
|
if (e >= Y.zero && e <= Y.nine) return e - Y.zero;
|
|
3278
3331
|
if (e >= Y.A && e <= Y.F) return e - (Y.A - 10);
|
|
3279
3332
|
if (e >= Y.a && e <= Y.f) return e - (Y.a - 10);
|
|
3280
3333
|
}
|
|
3281
|
-
function
|
|
3334
|
+
function _a(e, t = {}) {
|
|
3282
3335
|
let { dir: n, size: r = 32 } = t;
|
|
3283
3336
|
if (r === 0) return e;
|
|
3284
|
-
if (e.length > r) throw new
|
|
3337
|
+
if (e.length > r) throw new Ga({
|
|
3285
3338
|
size: e.length,
|
|
3286
3339
|
targetSize: r,
|
|
3287
3340
|
type: "Bytes"
|
|
@@ -3293,38 +3346,38 @@ function pa(e, t = {}) {
|
|
|
3293
3346
|
}
|
|
3294
3347
|
return i;
|
|
3295
3348
|
}
|
|
3296
|
-
function
|
|
3349
|
+
function va(e, t = {}) {
|
|
3297
3350
|
let { dir: n = "left" } = t, r = e, i = 0;
|
|
3298
3351
|
for (let e = 0; e < r.length - 1 && r[n === "left" ? e : r.length - e - 1].toString() === "0"; e++) i++;
|
|
3299
3352
|
return r = n === "left" ? r.slice(i) : r.slice(0, r.length - i), r;
|
|
3300
3353
|
}
|
|
3301
3354
|
//#endregion
|
|
3302
3355
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/internal/hex.js
|
|
3303
|
-
function
|
|
3304
|
-
if ($(e) > t) throw new
|
|
3356
|
+
function ya(e, t) {
|
|
3357
|
+
if ($(e) > t) throw new co({
|
|
3305
3358
|
givenSize: $(e),
|
|
3306
3359
|
maxSize: t
|
|
3307
3360
|
});
|
|
3308
3361
|
}
|
|
3309
|
-
function
|
|
3310
|
-
if (typeof t == "number" && t > 0 && t > $(e) - 1) throw new
|
|
3362
|
+
function ba(e, t) {
|
|
3363
|
+
if (typeof t == "number" && t > 0 && t > $(e) - 1) throw new lo({
|
|
3311
3364
|
offset: t,
|
|
3312
3365
|
position: "start",
|
|
3313
3366
|
size: $(e)
|
|
3314
3367
|
});
|
|
3315
3368
|
}
|
|
3316
|
-
function
|
|
3317
|
-
if (typeof t == "number" && typeof n == "number" && $(e) !== n - t) throw new
|
|
3369
|
+
function xa(e, t, n) {
|
|
3370
|
+
if (typeof t == "number" && typeof n == "number" && $(e) !== n - t) throw new lo({
|
|
3318
3371
|
offset: n,
|
|
3319
3372
|
position: "end",
|
|
3320
3373
|
size: $(e)
|
|
3321
3374
|
});
|
|
3322
3375
|
}
|
|
3323
|
-
function
|
|
3376
|
+
function Sa(e, t = {}) {
|
|
3324
3377
|
let { dir: n, size: r = 32 } = t;
|
|
3325
3378
|
if (r === 0) return e;
|
|
3326
3379
|
let i = e.replace("0x", "");
|
|
3327
|
-
if (i.length > r * 2) throw new
|
|
3380
|
+
if (i.length > r * 2) throw new uo({
|
|
3328
3381
|
size: Math.ceil(i.length / 2),
|
|
3329
3382
|
targetSize: r,
|
|
3330
3383
|
type: "Hex"
|
|
@@ -3333,41 +3386,41 @@ function va(e, t = {}) {
|
|
|
3333
3386
|
}
|
|
3334
3387
|
//#endregion
|
|
3335
3388
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/Json.js
|
|
3336
|
-
var
|
|
3337
|
-
function
|
|
3338
|
-
return JSON.stringify(e, (e, n) => typeof t == "function" ? t(e, n) : typeof n == "bigint" ? n.toString() +
|
|
3389
|
+
var Ca = "#__bigint";
|
|
3390
|
+
function wa(e, t, n) {
|
|
3391
|
+
return JSON.stringify(e, (e, n) => typeof t == "function" ? t(e, n) : typeof n == "bigint" ? n.toString() + Ca : n, n);
|
|
3339
3392
|
}
|
|
3340
3393
|
//#endregion
|
|
3341
3394
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/Bytes.js
|
|
3342
|
-
var
|
|
3343
|
-
function
|
|
3344
|
-
if (!(e instanceof Uint8Array) && (!e || typeof e != "object" || !("BYTES_PER_ELEMENT" in e) || e.BYTES_PER_ELEMENT !== 1 || e.constructor.name !== "Uint8Array")) throw new
|
|
3395
|
+
var Ta = /*#__PURE__*/ new TextDecoder(), Ea = /*#__PURE__*/ new TextEncoder();
|
|
3396
|
+
function Da(e) {
|
|
3397
|
+
if (!(e instanceof Uint8Array) && (!e || typeof e != "object" || !("BYTES_PER_ELEMENT" in e) || e.BYTES_PER_ELEMENT !== 1 || e.constructor.name !== "Uint8Array")) throw new Ha(e);
|
|
3345
3398
|
}
|
|
3346
|
-
function
|
|
3347
|
-
return e instanceof Uint8Array ? e : typeof e == "string" ?
|
|
3399
|
+
function Oa(e) {
|
|
3400
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? Aa(e) : ka(e);
|
|
3348
3401
|
}
|
|
3349
|
-
function
|
|
3402
|
+
function ka(e) {
|
|
3350
3403
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
3351
3404
|
}
|
|
3352
|
-
function
|
|
3405
|
+
function Aa(e, t = {}) {
|
|
3353
3406
|
let { size: n } = t, r = e;
|
|
3354
|
-
n && (
|
|
3407
|
+
n && (ya(e, n), r = eo(e, n));
|
|
3355
3408
|
let i = r.slice(2);
|
|
3356
3409
|
i.length % 2 && (i = `0${i}`);
|
|
3357
3410
|
let a = i.length / 2, o = new Uint8Array(a);
|
|
3358
3411
|
for (let e = 0, t = 0; e < a; e++) {
|
|
3359
|
-
let n =
|
|
3412
|
+
let n = ga(i.charCodeAt(t++)), r = ga(i.charCodeAt(t++));
|
|
3360
3413
|
if (n === void 0 || r === void 0) throw new J(`Invalid byte sequence ("${i[t - 2]}${i[t - 1]}" in "${i}").`);
|
|
3361
3414
|
o[e] = n << 4 | r;
|
|
3362
3415
|
}
|
|
3363
3416
|
return o;
|
|
3364
3417
|
}
|
|
3365
|
-
function
|
|
3366
|
-
let { size: n } = t, r =
|
|
3367
|
-
return typeof n == "number" ? (
|
|
3418
|
+
function ja(e, t = {}) {
|
|
3419
|
+
let { size: n } = t, r = Ea.encode(e);
|
|
3420
|
+
return typeof n == "number" ? (pa(r, n), Ma(r, n)) : r;
|
|
3368
3421
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return
|
|
3422
|
+
function Ma(e, t) {
|
|
3423
|
+
return _a(e, {
|
|
3371
3424
|
dir: "right",
|
|
3372
3425
|
size: t
|
|
3373
3426
|
});
|
|
@@ -3375,43 +3428,43 @@ function Oa(e, t) {
|
|
|
3375
3428
|
function X(e) {
|
|
3376
3429
|
return e.length;
|
|
3377
3430
|
}
|
|
3378
|
-
function
|
|
3431
|
+
function Na(e, t, n, r = {}) {
|
|
3379
3432
|
let { strict: i } = r;
|
|
3380
|
-
|
|
3433
|
+
ma(e, t);
|
|
3381
3434
|
let a = e.slice(t, n);
|
|
3382
|
-
return i &&
|
|
3435
|
+
return i && ha(a, t, n), a;
|
|
3383
3436
|
}
|
|
3384
|
-
function
|
|
3437
|
+
function Pa(e, t = {}) {
|
|
3385
3438
|
let { size: n } = t;
|
|
3386
|
-
return n !== void 0 &&
|
|
3439
|
+
return n !== void 0 && pa(e, n), no(Z(e, t), t);
|
|
3387
3440
|
}
|
|
3388
|
-
function
|
|
3441
|
+
function Fa(e, t = {}) {
|
|
3389
3442
|
let { size: n } = t, r = e;
|
|
3390
|
-
if (n !== void 0 && (
|
|
3443
|
+
if (n !== void 0 && (pa(r, n), r = Ra(r)), r.length > 1 || r[0] > 1) throw new Va(r);
|
|
3391
3444
|
return !!r[0];
|
|
3392
3445
|
}
|
|
3393
|
-
function
|
|
3446
|
+
function Ia(e, t = {}) {
|
|
3394
3447
|
let { size: n } = t;
|
|
3395
|
-
return n !== void 0 &&
|
|
3448
|
+
return n !== void 0 && pa(e, n), ro(Z(e, t), t);
|
|
3396
3449
|
}
|
|
3397
|
-
function
|
|
3450
|
+
function La(e, t = {}) {
|
|
3398
3451
|
let { size: n } = t, r = e;
|
|
3399
|
-
return n !== void 0 && (
|
|
3452
|
+
return n !== void 0 && (pa(r, n), r = za(r)), Ta.decode(r);
|
|
3400
3453
|
}
|
|
3401
|
-
function
|
|
3402
|
-
return
|
|
3454
|
+
function Ra(e) {
|
|
3455
|
+
return va(e, { dir: "left" });
|
|
3403
3456
|
}
|
|
3404
|
-
function
|
|
3405
|
-
return
|
|
3457
|
+
function za(e) {
|
|
3458
|
+
return va(e, { dir: "right" });
|
|
3406
3459
|
}
|
|
3407
|
-
function
|
|
3460
|
+
function Ba(e) {
|
|
3408
3461
|
try {
|
|
3409
|
-
return
|
|
3462
|
+
return Da(e), !0;
|
|
3410
3463
|
} catch {
|
|
3411
3464
|
return !1;
|
|
3412
3465
|
}
|
|
3413
3466
|
}
|
|
3414
|
-
var
|
|
3467
|
+
var Va = class extends J {
|
|
3415
3468
|
constructor(e) {
|
|
3416
3469
|
super(`Bytes value \`${e}\` is not a valid boolean.`, { metaMessages: ["The bytes array must contain a single byte of either a `0` or `1` value."] }), Object.defineProperty(this, "name", {
|
|
3417
3470
|
enumerable: !0,
|
|
@@ -3420,16 +3473,16 @@ var La = class extends J {
|
|
|
3420
3473
|
value: "Bytes.InvalidBytesBooleanError"
|
|
3421
3474
|
});
|
|
3422
3475
|
}
|
|
3423
|
-
},
|
|
3476
|
+
}, Ha = class extends J {
|
|
3424
3477
|
constructor(e) {
|
|
3425
|
-
super(`Value \`${typeof e == "object" ?
|
|
3478
|
+
super(`Value \`${typeof e == "object" ? wa(e) : e}\` of type \`${typeof e}\` is an invalid Bytes value.`, { metaMessages: ["Bytes values must be of type `Bytes`."] }), Object.defineProperty(this, "name", {
|
|
3426
3479
|
enumerable: !0,
|
|
3427
3480
|
configurable: !0,
|
|
3428
3481
|
writable: !0,
|
|
3429
3482
|
value: "Bytes.InvalidBytesTypeError"
|
|
3430
3483
|
});
|
|
3431
3484
|
}
|
|
3432
|
-
},
|
|
3485
|
+
}, Ua = class extends J {
|
|
3433
3486
|
constructor({ givenSize: e, maxSize: t }) {
|
|
3434
3487
|
super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
3435
3488
|
enumerable: !0,
|
|
@@ -3438,7 +3491,7 @@ var La = class extends J {
|
|
|
3438
3491
|
value: "Bytes.SizeOverflowError"
|
|
3439
3492
|
});
|
|
3440
3493
|
}
|
|
3441
|
-
},
|
|
3494
|
+
}, Wa = class extends J {
|
|
3442
3495
|
constructor({ offset: e, position: t, size: n }) {
|
|
3443
3496
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
3444
3497
|
enumerable: !0,
|
|
@@ -3447,7 +3500,7 @@ var La = class extends J {
|
|
|
3447
3500
|
value: "Bytes.SliceOffsetOutOfBoundsError"
|
|
3448
3501
|
});
|
|
3449
3502
|
}
|
|
3450
|
-
},
|
|
3503
|
+
}, Ga = class extends J {
|
|
3451
3504
|
constructor({ size: e, targetSize: t, type: n }) {
|
|
3452
3505
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`), Object.defineProperty(this, "name", {
|
|
3453
3506
|
enumerable: !0,
|
|
@@ -3456,27 +3509,27 @@ var La = class extends J {
|
|
|
3456
3509
|
value: "Bytes.SizeExceedsPaddingSizeError"
|
|
3457
3510
|
});
|
|
3458
3511
|
}
|
|
3459
|
-
},
|
|
3460
|
-
function
|
|
3512
|
+
}, Ka = /*#__PURE__*/ new TextEncoder(), qa = /*#__PURE__*/ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
3513
|
+
function Ja(e, t = {}) {
|
|
3461
3514
|
let { strict: n = !1 } = t;
|
|
3462
|
-
if (!e || typeof e != "string") throw new
|
|
3463
|
-
if (n && !/^0x[0-9a-fA-F]*$/.test(e) || !e.startsWith("0x")) throw new
|
|
3515
|
+
if (!e || typeof e != "string") throw new oo(e);
|
|
3516
|
+
if (n && !/^0x[0-9a-fA-F]*$/.test(e) || !e.startsWith("0x")) throw new so(e);
|
|
3464
3517
|
}
|
|
3465
|
-
function
|
|
3518
|
+
function Ya(...e) {
|
|
3466
3519
|
return `0x${e.reduce((e, t) => e + t.replace("0x", ""), "")}`;
|
|
3467
3520
|
}
|
|
3468
|
-
function
|
|
3521
|
+
function Xa(e) {
|
|
3469
3522
|
return e instanceof Uint8Array ? Z(e) : Array.isArray(e) ? Z(new Uint8Array(e)) : e;
|
|
3470
3523
|
}
|
|
3471
|
-
function
|
|
3524
|
+
function Za(e, t = {}) {
|
|
3472
3525
|
let n = `0x${Number(e)}`;
|
|
3473
|
-
return typeof t.size == "number" ? (
|
|
3526
|
+
return typeof t.size == "number" ? (ya(n, t.size), $a(n, t.size)) : n;
|
|
3474
3527
|
}
|
|
3475
3528
|
function Z(e, t = {}) {
|
|
3476
3529
|
let n = "";
|
|
3477
|
-
for (let t = 0; t < e.length; t++) n +=
|
|
3530
|
+
for (let t = 0; t < e.length; t++) n += qa[e[t]];
|
|
3478
3531
|
let r = `0x${n}`;
|
|
3479
|
-
return typeof t.size == "number" ? (
|
|
3532
|
+
return typeof t.size == "number" ? (ya(r, t.size), eo(r, t.size)) : r;
|
|
3480
3533
|
}
|
|
3481
3534
|
function Q(e, t = {}) {
|
|
3482
3535
|
let { signed: n, size: r } = t, i = BigInt(e), a;
|
|
@@ -3484,7 +3537,7 @@ function Q(e, t = {}) {
|
|
|
3484
3537
|
let o = typeof a == "bigint" && n ? -a - 1n : 0;
|
|
3485
3538
|
if (a && i > a || i < o) {
|
|
3486
3539
|
let t = typeof e == "bigint" ? "n" : "";
|
|
3487
|
-
throw new
|
|
3540
|
+
throw new ao({
|
|
3488
3541
|
max: a ? `${a}${t}` : void 0,
|
|
3489
3542
|
min: `${o}${t}`,
|
|
3490
3543
|
signed: n,
|
|
@@ -3493,53 +3546,53 @@ function Q(e, t = {}) {
|
|
|
3493
3546
|
});
|
|
3494
3547
|
}
|
|
3495
3548
|
let s = `0x${(n && i < 0 ? BigInt.asUintN(r * 8, BigInt(i)) : i).toString(16)}`;
|
|
3496
|
-
return r ?
|
|
3549
|
+
return r ? $a(s, r) : s;
|
|
3497
3550
|
}
|
|
3498
|
-
function
|
|
3499
|
-
return Z(
|
|
3551
|
+
function Qa(e, t = {}) {
|
|
3552
|
+
return Z(Ka.encode(e), t);
|
|
3500
3553
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3554
|
+
function $a(e, t) {
|
|
3555
|
+
return Sa(e, {
|
|
3503
3556
|
dir: "left",
|
|
3504
3557
|
size: t
|
|
3505
3558
|
});
|
|
3506
3559
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return
|
|
3560
|
+
function eo(e, t) {
|
|
3561
|
+
return Sa(e, {
|
|
3509
3562
|
dir: "right",
|
|
3510
3563
|
size: t
|
|
3511
3564
|
});
|
|
3512
3565
|
}
|
|
3513
|
-
function
|
|
3566
|
+
function to(e, t, n, r = {}) {
|
|
3514
3567
|
let { strict: i } = r;
|
|
3515
|
-
|
|
3568
|
+
ba(e, t);
|
|
3516
3569
|
let a = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
3517
|
-
return i &&
|
|
3570
|
+
return i && xa(a, t, n), a;
|
|
3518
3571
|
}
|
|
3519
3572
|
function $(e) {
|
|
3520
3573
|
return Math.ceil((e.length - 2) / 2);
|
|
3521
3574
|
}
|
|
3522
|
-
function
|
|
3575
|
+
function no(e, t = {}) {
|
|
3523
3576
|
let { signed: n } = t;
|
|
3524
|
-
t.size &&
|
|
3577
|
+
t.size && ya(e, t.size);
|
|
3525
3578
|
let r = BigInt(e);
|
|
3526
3579
|
if (!n) return r;
|
|
3527
3580
|
let i = (e.length - 2) / 2, a = (1n << BigInt(i) * 8n) - 1n;
|
|
3528
3581
|
return r <= a >> 1n ? r : r - a - 1n;
|
|
3529
3582
|
}
|
|
3530
|
-
function
|
|
3583
|
+
function ro(e, t = {}) {
|
|
3531
3584
|
let { signed: n, size: r } = t;
|
|
3532
|
-
return Number(!n && !r ? e :
|
|
3585
|
+
return Number(!n && !r ? e : no(e, t));
|
|
3533
3586
|
}
|
|
3534
|
-
function
|
|
3587
|
+
function io(e, t = {}) {
|
|
3535
3588
|
let { strict: n = !1 } = t;
|
|
3536
3589
|
try {
|
|
3537
|
-
return
|
|
3590
|
+
return Ja(e, { strict: n }), !0;
|
|
3538
3591
|
} catch {
|
|
3539
3592
|
return !1;
|
|
3540
3593
|
}
|
|
3541
3594
|
}
|
|
3542
|
-
var
|
|
3595
|
+
var ao = class extends J {
|
|
3543
3596
|
constructor({ max: e, min: t, signed: n, size: r, value: i }) {
|
|
3544
3597
|
super(`Number \`${i}\` is not in safe${r ? ` ${r * 8}-bit` : ""}${n ? " signed" : " unsigned"} integer range ${e ? `(\`${t}\` to \`${e}\`)` : `(above \`${t}\`)`}`), Object.defineProperty(this, "name", {
|
|
3545
3598
|
enumerable: !0,
|
|
@@ -3548,16 +3601,16 @@ var to = class extends J {
|
|
|
3548
3601
|
value: "Hex.IntegerOutOfRangeError"
|
|
3549
3602
|
});
|
|
3550
3603
|
}
|
|
3551
|
-
},
|
|
3604
|
+
}, oo = class extends J {
|
|
3552
3605
|
constructor(e) {
|
|
3553
|
-
super(`Value \`${typeof e == "object" ?
|
|
3606
|
+
super(`Value \`${typeof e == "object" ? wa(e) : e}\` of type \`${typeof e}\` is an invalid hex type.`, { metaMessages: ["Hex types must be represented as `\"0x${string}\"`."] }), Object.defineProperty(this, "name", {
|
|
3554
3607
|
enumerable: !0,
|
|
3555
3608
|
configurable: !0,
|
|
3556
3609
|
writable: !0,
|
|
3557
3610
|
value: "Hex.InvalidHexTypeError"
|
|
3558
3611
|
});
|
|
3559
3612
|
}
|
|
3560
|
-
},
|
|
3613
|
+
}, so = class extends J {
|
|
3561
3614
|
constructor(e) {
|
|
3562
3615
|
super(`Value \`${e}\` is an invalid hex value.`, { metaMessages: ["Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F)."] }), Object.defineProperty(this, "name", {
|
|
3563
3616
|
enumerable: !0,
|
|
@@ -3566,7 +3619,7 @@ var to = class extends J {
|
|
|
3566
3619
|
value: "Hex.InvalidHexValueError"
|
|
3567
3620
|
});
|
|
3568
3621
|
}
|
|
3569
|
-
},
|
|
3622
|
+
}, co = class extends J {
|
|
3570
3623
|
constructor({ givenSize: e, maxSize: t }) {
|
|
3571
3624
|
super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
3572
3625
|
enumerable: !0,
|
|
@@ -3575,7 +3628,7 @@ var to = class extends J {
|
|
|
3575
3628
|
value: "Hex.SizeOverflowError"
|
|
3576
3629
|
});
|
|
3577
3630
|
}
|
|
3578
|
-
},
|
|
3631
|
+
}, lo = class extends J {
|
|
3579
3632
|
constructor({ offset: e, position: t, size: n }) {
|
|
3580
3633
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
3581
3634
|
enumerable: !0,
|
|
@@ -3584,7 +3637,7 @@ var to = class extends J {
|
|
|
3584
3637
|
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
3585
3638
|
});
|
|
3586
3639
|
}
|
|
3587
|
-
},
|
|
3640
|
+
}, uo = class extends J {
|
|
3588
3641
|
constructor({ size: e, targetSize: t, type: n }) {
|
|
3589
3642
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`), Object.defineProperty(this, "name", {
|
|
3590
3643
|
enumerable: !0,
|
|
@@ -3596,7 +3649,7 @@ var to = class extends J {
|
|
|
3596
3649
|
};
|
|
3597
3650
|
//#endregion
|
|
3598
3651
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/Withdrawal.js
|
|
3599
|
-
function
|
|
3652
|
+
function fo(e) {
|
|
3600
3653
|
return {
|
|
3601
3654
|
address: e.address,
|
|
3602
3655
|
amount: Q(e.amount),
|
|
@@ -3606,7 +3659,7 @@ function so(e) {
|
|
|
3606
3659
|
}
|
|
3607
3660
|
//#endregion
|
|
3608
3661
|
//#region ../../node_modules/viem/node_modules/ox/_esm/core/BlockOverrides.js
|
|
3609
|
-
function
|
|
3662
|
+
function po(e) {
|
|
3610
3663
|
return {
|
|
3611
3664
|
...typeof e.baseFeePerGas == "bigint" && { baseFeePerGas: Q(e.baseFeePerGas) },
|
|
3612
3665
|
...typeof e.blobBaseFee == "bigint" && { blobBaseFee: Q(e.blobBaseFee) },
|
|
@@ -3615,12 +3668,12 @@ function co(e) {
|
|
|
3615
3668
|
...typeof e.number == "bigint" && { number: Q(e.number) },
|
|
3616
3669
|
...typeof e.prevRandao == "bigint" && { prevRandao: Q(e.prevRandao) },
|
|
3617
3670
|
...typeof e.time == "bigint" && { time: Q(e.time) },
|
|
3618
|
-
...e.withdrawals && { withdrawals: e.withdrawals.map(
|
|
3671
|
+
...e.withdrawals && { withdrawals: e.withdrawals.map(fo) }
|
|
3619
3672
|
};
|
|
3620
3673
|
}
|
|
3621
3674
|
//#endregion
|
|
3622
3675
|
//#region ../../node_modules/viem/_esm/constants/abis.js
|
|
3623
|
-
var
|
|
3676
|
+
var mo = [
|
|
3624
3677
|
{
|
|
3625
3678
|
inputs: [{
|
|
3626
3679
|
components: [
|
|
@@ -3679,7 +3732,7 @@ var lo = [
|
|
|
3679
3732
|
stateMutability: "view",
|
|
3680
3733
|
type: "function"
|
|
3681
3734
|
}
|
|
3682
|
-
],
|
|
3735
|
+
], ho = [{
|
|
3683
3736
|
name: "query",
|
|
3684
3737
|
type: "function",
|
|
3685
3738
|
stateMutability: "view",
|
|
@@ -3718,7 +3771,7 @@ var lo = [
|
|
|
3718
3771
|
type: "string",
|
|
3719
3772
|
name: "message"
|
|
3720
3773
|
}]
|
|
3721
|
-
}],
|
|
3774
|
+
}], go = [
|
|
3722
3775
|
{
|
|
3723
3776
|
inputs: [{
|
|
3724
3777
|
name: "dns",
|
|
@@ -3803,7 +3856,7 @@ var lo = [
|
|
|
3803
3856
|
name: "UnsupportedResolverProfile",
|
|
3804
3857
|
type: "error"
|
|
3805
3858
|
}
|
|
3806
|
-
],
|
|
3859
|
+
], _o = [...go, {
|
|
3807
3860
|
name: "resolveWithGateways",
|
|
3808
3861
|
type: "function",
|
|
3809
3862
|
stateMutability: "view",
|
|
@@ -3828,7 +3881,7 @@ var lo = [
|
|
|
3828
3881
|
name: "address",
|
|
3829
3882
|
type: "address"
|
|
3830
3883
|
}]
|
|
3831
|
-
}],
|
|
3884
|
+
}], vo = [...go, {
|
|
3832
3885
|
name: "reverseWithGateways",
|
|
3833
3886
|
type: "function",
|
|
3834
3887
|
stateMutability: "view",
|
|
@@ -3860,7 +3913,7 @@ var lo = [
|
|
|
3860
3913
|
name: "reverseResolver"
|
|
3861
3914
|
}
|
|
3862
3915
|
]
|
|
3863
|
-
}],
|
|
3916
|
+
}], yo = [{
|
|
3864
3917
|
name: "text",
|
|
3865
3918
|
type: "function",
|
|
3866
3919
|
stateMutability: "view",
|
|
@@ -3875,7 +3928,7 @@ var lo = [
|
|
|
3875
3928
|
name: "",
|
|
3876
3929
|
type: "string"
|
|
3877
3930
|
}]
|
|
3878
|
-
}],
|
|
3931
|
+
}], bo = [{
|
|
3879
3932
|
name: "addr",
|
|
3880
3933
|
type: "function",
|
|
3881
3934
|
stateMutability: "view",
|
|
@@ -3902,7 +3955,7 @@ var lo = [
|
|
|
3902
3955
|
name: "",
|
|
3903
3956
|
type: "bytes"
|
|
3904
3957
|
}]
|
|
3905
|
-
}],
|
|
3958
|
+
}], xo = [{
|
|
3906
3959
|
name: "isValidSignature",
|
|
3907
3960
|
type: "function",
|
|
3908
3961
|
stateMutability: "view",
|
|
@@ -3917,7 +3970,7 @@ var lo = [
|
|
|
3917
3970
|
name: "",
|
|
3918
3971
|
type: "bytes4"
|
|
3919
3972
|
}]
|
|
3920
|
-
}],
|
|
3973
|
+
}], So = [{
|
|
3921
3974
|
inputs: [
|
|
3922
3975
|
{
|
|
3923
3976
|
name: "_signer",
|
|
@@ -3953,7 +4006,7 @@ var lo = [
|
|
|
3953
4006
|
stateMutability: "nonpayable",
|
|
3954
4007
|
type: "function",
|
|
3955
4008
|
name: "isValidSig"
|
|
3956
|
-
}],
|
|
4009
|
+
}], Co = [
|
|
3957
4010
|
{
|
|
3958
4011
|
type: "event",
|
|
3959
4012
|
name: "Approval",
|
|
@@ -4093,39 +4146,39 @@ var lo = [
|
|
|
4093
4146
|
],
|
|
4094
4147
|
outputs: [{ type: "bool" }]
|
|
4095
4148
|
}
|
|
4096
|
-
], bo = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", xo = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", So = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", Co = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033", wo = class extends w {
|
|
4149
|
+
], wo = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", To = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", Eo = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", Do = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033", Oo = class extends D {
|
|
4097
4150
|
constructor({ blockNumber: e, chain: t, contract: n }) {
|
|
4098
4151
|
super(`Chain "${t.name}" does not support contract "${n.name}".`, {
|
|
4099
4152
|
metaMessages: ["This could be due to any of the following:", ...e && n.blockCreated && n.blockCreated > e ? [`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`] : [`- The chain does not have the contract "${n.name}" configured.`]],
|
|
4100
4153
|
name: "ChainDoesNotSupportContract"
|
|
4101
4154
|
});
|
|
4102
4155
|
}
|
|
4103
|
-
},
|
|
4156
|
+
}, ko = class extends D {
|
|
4104
4157
|
constructor() {
|
|
4105
4158
|
super("No chain was provided to the Client.", { name: "ClientChainNotConfiguredError" });
|
|
4106
4159
|
}
|
|
4107
|
-
},
|
|
4160
|
+
}, Ao = class extends D {
|
|
4108
4161
|
constructor({ chainId: e }) {
|
|
4109
4162
|
super(typeof e == "number" ? `Chain ID "${e}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
4110
4163
|
}
|
|
4111
|
-
},
|
|
4112
|
-
function
|
|
4164
|
+
}, jo = "/docs/contract/encodeDeployData";
|
|
4165
|
+
function Mo(e) {
|
|
4113
4166
|
let { abi: t, args: n, bytecode: r } = e;
|
|
4114
4167
|
if (!n || n.length === 0) return r;
|
|
4115
4168
|
let i = t.find((e) => "type" in e && e.type === "constructor");
|
|
4116
|
-
if (!i) throw new
|
|
4117
|
-
if (!("inputs" in i) || !i.inputs || i.inputs.length === 0) throw new
|
|
4118
|
-
return
|
|
4169
|
+
if (!i) throw new ut({ docsPath: jo });
|
|
4170
|
+
if (!("inputs" in i) || !i.inputs || i.inputs.length === 0) throw new dt({ docsPath: jo });
|
|
4171
|
+
return Fn([r, Un(i.inputs, n)]);
|
|
4119
4172
|
}
|
|
4120
4173
|
//#endregion
|
|
4121
4174
|
//#region ../../node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
4122
|
-
function
|
|
4175
|
+
function No({ blockNumber: e, chain: t, contract: n }) {
|
|
4123
4176
|
let r = t?.contracts?.[n];
|
|
4124
|
-
if (!r) throw new
|
|
4177
|
+
if (!r) throw new Oo({
|
|
4125
4178
|
chain: t,
|
|
4126
4179
|
contract: { name: n }
|
|
4127
4180
|
});
|
|
4128
|
-
if (e && r.blockCreated && r.blockCreated > e) throw new
|
|
4181
|
+
if (e && r.blockCreated && r.blockCreated > e) throw new Oo({
|
|
4129
4182
|
blockNumber: e,
|
|
4130
4183
|
chain: t,
|
|
4131
4184
|
contract: {
|
|
@@ -4137,10 +4190,10 @@ function ko({ blockNumber: e, chain: t, contract: n }) {
|
|
|
4137
4190
|
}
|
|
4138
4191
|
//#endregion
|
|
4139
4192
|
//#region ../../node_modules/viem/_esm/utils/errors/getCallError.js
|
|
4140
|
-
function
|
|
4193
|
+
function Po(e, { docsPath: t, ...n }) {
|
|
4141
4194
|
return new $r((() => {
|
|
4142
|
-
let t =
|
|
4143
|
-
return t instanceof
|
|
4195
|
+
let t = Ji(e, n);
|
|
4196
|
+
return t instanceof qi ? e : t;
|
|
4144
4197
|
})(), {
|
|
4145
4198
|
docsPath: t,
|
|
4146
4199
|
...n
|
|
@@ -4148,7 +4201,7 @@ function Ao(e, { docsPath: t, ...n }) {
|
|
|
4148
4201
|
}
|
|
4149
4202
|
//#endregion
|
|
4150
4203
|
//#region ../../node_modules/viem/_esm/utils/promise/withResolvers.js
|
|
4151
|
-
function
|
|
4204
|
+
function Fo() {
|
|
4152
4205
|
let e = () => void 0, t = () => void 0;
|
|
4153
4206
|
return {
|
|
4154
4207
|
promise: new Promise((n, r) => {
|
|
@@ -4160,8 +4213,8 @@ function jo() {
|
|
|
4160
4213
|
}
|
|
4161
4214
|
//#endregion
|
|
4162
4215
|
//#region ../../node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
4163
|
-
var
|
|
4164
|
-
function
|
|
4216
|
+
var Io = /*#__PURE__*/ new Map();
|
|
4217
|
+
function Lo({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: i }) {
|
|
4165
4218
|
let a = async () => {
|
|
4166
4219
|
let t = c();
|
|
4167
4220
|
o();
|
|
@@ -4178,11 +4231,11 @@ function No({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: i }) {
|
|
|
4178
4231
|
r?.(e);
|
|
4179
4232
|
}
|
|
4180
4233
|
});
|
|
4181
|
-
}, o = () =>
|
|
4234
|
+
}, o = () => Io.delete(t), s = () => c().map(({ args: e }) => e), c = () => Io.get(t) || [], l = (e) => Io.set(t, [...c(), e]);
|
|
4182
4235
|
return {
|
|
4183
4236
|
flush: o,
|
|
4184
4237
|
async schedule(e) {
|
|
4185
|
-
let { promise: t, resolve: i, reject: o } =
|
|
4238
|
+
let { promise: t, resolve: i, reject: o } = Fo();
|
|
4186
4239
|
return n?.([...s(), e]) && a(), c().length > 0 ? (l({
|
|
4187
4240
|
args: e,
|
|
4188
4241
|
resolve: i,
|
|
@@ -4197,91 +4250,115 @@ function No({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: i }) {
|
|
|
4197
4250
|
}
|
|
4198
4251
|
//#endregion
|
|
4199
4252
|
//#region ../../node_modules/viem/_esm/actions/public/call.js
|
|
4200
|
-
async function
|
|
4201
|
-
let { account: n = e.account, authorizationList: r, batch: i = !!e.batch?.multicall,
|
|
4202
|
-
if (
|
|
4203
|
-
if (
|
|
4204
|
-
let se =
|
|
4205
|
-
code:
|
|
4206
|
-
data:
|
|
4207
|
-
}) : ce ?
|
|
4208
|
-
data:
|
|
4209
|
-
factory:
|
|
4210
|
-
factoryData:
|
|
4211
|
-
to:
|
|
4212
|
-
}) :
|
|
4253
|
+
async function Ro(e, t) {
|
|
4254
|
+
let { account: n = e.account, authorizationList: r, batch: i = !!e.batch?.multicall, blockHash: a, blockNumber: o, blockTag: s = e.experimental_blockTag ?? "latest", requireCanonical: c, accessList: l, blobs: u, blockOverrides: d, code: f, data: p, factory: m, factoryData: h, gas: g, gasPrice: _, maxFeePerBlobGas: ee, maxFeePerGas: v, maxPriorityFeePerGas: te, nonce: ne, requestOptions: y, to: b, value: re, stateOverride: ie, ...ae } = t, oe = n ? rr(n) : void 0;
|
|
4255
|
+
if (f && (m || h)) throw new D("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
4256
|
+
if (f && b) throw new D("Cannot provide both `code` & `to` as parameters.");
|
|
4257
|
+
let se = f && p, ce = m && h && b && p, le = se || ce, ue = se ? Ko({
|
|
4258
|
+
code: f,
|
|
4259
|
+
data: p
|
|
4260
|
+
}) : ce ? qo({
|
|
4261
|
+
data: p,
|
|
4262
|
+
factory: m,
|
|
4263
|
+
factoryData: h,
|
|
4264
|
+
to: b
|
|
4265
|
+
}) : p;
|
|
4213
4266
|
try {
|
|
4214
|
-
|
|
4215
|
-
let n = (
|
|
4216
|
-
|
|
4217
|
-
|
|
4267
|
+
aa(t);
|
|
4268
|
+
let n = oa({
|
|
4269
|
+
blockHash: a,
|
|
4270
|
+
blockNumber: o,
|
|
4271
|
+
blockTag: s,
|
|
4272
|
+
requireCanonical: c
|
|
4273
|
+
}), f = d ? po(d) : void 0, p = ra(ie), m = e.chain?.formatters?.transactionRequest?.format, h = (m || Qi)({
|
|
4274
|
+
...Yi(ae, { format: m }),
|
|
4275
|
+
accessList: l,
|
|
4218
4276
|
account: oe,
|
|
4219
4277
|
authorizationList: r,
|
|
4220
|
-
blobs:
|
|
4278
|
+
blobs: u,
|
|
4221
4279
|
data: ue,
|
|
4222
|
-
gas:
|
|
4223
|
-
gasPrice:
|
|
4224
|
-
maxFeePerBlobGas:
|
|
4225
|
-
maxFeePerGas:
|
|
4226
|
-
maxPriorityFeePerGas:
|
|
4227
|
-
nonce:
|
|
4228
|
-
to: le ? void 0 :
|
|
4229
|
-
value:
|
|
4280
|
+
gas: g,
|
|
4281
|
+
gasPrice: _,
|
|
4282
|
+
maxFeePerBlobGas: ee,
|
|
4283
|
+
maxFeePerGas: v,
|
|
4284
|
+
maxPriorityFeePerGas: te,
|
|
4285
|
+
nonce: ne,
|
|
4286
|
+
to: le ? void 0 : b,
|
|
4287
|
+
value: re
|
|
4230
4288
|
}, "call");
|
|
4231
|
-
if (i &&
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4289
|
+
if (i && zo({ request: h }) && !f && a === void 0) try {
|
|
4290
|
+
let { deployless: t = !1 } = typeof e.batch?.multicall == "object" ? e.batch.multicall : {}, n = Wo(e, {
|
|
4291
|
+
blockNumber: o,
|
|
4292
|
+
deployless: t
|
|
4293
|
+
});
|
|
4294
|
+
if (!n || !Go(p, n)) return await Uo(e, {
|
|
4295
|
+
...h,
|
|
4296
|
+
blockHash: a,
|
|
4297
|
+
blockNumber: o,
|
|
4298
|
+
blockTag: s,
|
|
4299
|
+
multicallAddress: n,
|
|
4300
|
+
requestOptions: y,
|
|
4301
|
+
requireCanonical: c,
|
|
4302
|
+
rpcStateOverride: p
|
|
4236
4303
|
});
|
|
4237
4304
|
} catch (e) {
|
|
4238
|
-
if (!(e instanceof
|
|
4305
|
+
if (!(e instanceof ko) && !(e instanceof Oo)) throw e;
|
|
4239
4306
|
}
|
|
4240
4307
|
let se = (() => {
|
|
4241
|
-
let e = [
|
|
4242
|
-
return
|
|
4308
|
+
let e = [h, n];
|
|
4309
|
+
return p && f ? [
|
|
4243
4310
|
...e,
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
] :
|
|
4311
|
+
p,
|
|
4312
|
+
f
|
|
4313
|
+
] : p ? [...e, p] : f ? [
|
|
4247
4314
|
...e,
|
|
4248
4315
|
{},
|
|
4249
|
-
|
|
4316
|
+
f
|
|
4250
4317
|
] : e;
|
|
4251
4318
|
})(), ce = await e.request({
|
|
4252
4319
|
method: "eth_call",
|
|
4253
4320
|
params: se
|
|
4254
|
-
});
|
|
4321
|
+
}, y);
|
|
4255
4322
|
return ce === "0x" ? { data: void 0 } : { data: ce };
|
|
4256
4323
|
} catch (n) {
|
|
4257
|
-
|
|
4258
|
-
if (
|
|
4324
|
+
if (y?.signal?.aborted) throw Xr(y.signal);
|
|
4325
|
+
if (Zr(n)) throw n;
|
|
4326
|
+
let r = Jo(n), { offchainLookup: i, offchainLookupSignature: a } = await import("./ccip-Cv7Gq-9l.js");
|
|
4327
|
+
if (e.ccipRead !== !1 && r?.slice(0, 10) === a && b) return { data: await i(e, {
|
|
4259
4328
|
data: r,
|
|
4260
|
-
|
|
4329
|
+
requestOptions: y,
|
|
4330
|
+
to: b
|
|
4261
4331
|
}) };
|
|
4262
|
-
throw le && r?.slice(0, 10) === "0x101bb98d" ? new ri({ factory:
|
|
4332
|
+
throw le && r?.slice(0, 10) === "0x101bb98d" ? new ri({ factory: m }) : Po(n, {
|
|
4263
4333
|
...t,
|
|
4264
4334
|
account: oe,
|
|
4265
4335
|
chain: e.chain
|
|
4266
4336
|
});
|
|
4267
4337
|
}
|
|
4268
4338
|
}
|
|
4269
|
-
function
|
|
4339
|
+
function zo({ request: e }) {
|
|
4270
4340
|
let { data: t, to: n, ...r } = e;
|
|
4271
4341
|
return !(!t || t.startsWith("0x82ad56cb") || !n || Object.values(r).filter((e) => e !== void 0).length > 0);
|
|
4272
4342
|
}
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4343
|
+
var Bo = 0, Vo = /* @__PURE__ */ new WeakMap();
|
|
4344
|
+
function Ho(e) {
|
|
4345
|
+
if (!e) return "default";
|
|
4346
|
+
let t = Vo.get(e);
|
|
4347
|
+
if (t !== void 0) return t;
|
|
4348
|
+
let n = Bo++;
|
|
4349
|
+
return Vo.set(e, n), n;
|
|
4350
|
+
}
|
|
4351
|
+
async function Uo(e, t) {
|
|
4352
|
+
let { batchSize: n = 1024, deployless: r = !1, wait: i = 0 } = typeof e.batch?.multicall == "object" ? e.batch.multicall : {}, { blockHash: a, blockNumber: o, blockTag: s = e.experimental_blockTag ?? "latest", requireCanonical: c, data: l, multicallAddress: u, requestOptions: d, rpcStateOverride: f, to: p } = t, m = u === void 0 ? Wo(e, {
|
|
4353
|
+
blockNumber: o,
|
|
4354
|
+
deployless: r
|
|
4355
|
+
}) : u, h = oa({
|
|
4356
|
+
blockHash: a,
|
|
4357
|
+
blockNumber: o,
|
|
4358
|
+
blockTag: s,
|
|
4359
|
+
requireCanonical: c
|
|
4360
|
+
}), g = typeof h == "string" ? h : JSON.stringify(h), _ = f ? `.${JSON.stringify(f)}` : "", { schedule: ee } = Lo({
|
|
4361
|
+
id: `${e.uid}.${g}.${Ho(d)}${_}`,
|
|
4285
4362
|
wait: i,
|
|
4286
4363
|
shouldSplitBatch(e) {
|
|
4287
4364
|
return e.reduce((e, { data: t }) => e + (t.length - 2), 0) > n * 2;
|
|
@@ -4291,47 +4368,64 @@ async function Io(e, t) {
|
|
|
4291
4368
|
allowFailure: !0,
|
|
4292
4369
|
callData: e.data,
|
|
4293
4370
|
target: e.to
|
|
4294
|
-
})), r =
|
|
4295
|
-
abi:
|
|
4371
|
+
})), r = or({
|
|
4372
|
+
abi: mo,
|
|
4296
4373
|
args: [n],
|
|
4297
4374
|
functionName: "aggregate3"
|
|
4298
|
-
}), i =
|
|
4375
|
+
}), i = { ...m === null ? { data: Ko({
|
|
4376
|
+
code: Do,
|
|
4377
|
+
data: r
|
|
4378
|
+
}) } : {
|
|
4379
|
+
to: m,
|
|
4380
|
+
data: r
|
|
4381
|
+
} }, a = await e.request({
|
|
4299
4382
|
method: "eth_call",
|
|
4300
|
-
params:
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
return aa({
|
|
4309
|
-
abi: lo,
|
|
4383
|
+
params: f ? [
|
|
4384
|
+
i,
|
|
4385
|
+
h,
|
|
4386
|
+
f
|
|
4387
|
+
] : [i, h]
|
|
4388
|
+
}, d);
|
|
4389
|
+
return la({
|
|
4390
|
+
abi: mo,
|
|
4310
4391
|
args: [n],
|
|
4311
4392
|
functionName: "aggregate3",
|
|
4312
|
-
data:
|
|
4393
|
+
data: a || "0x"
|
|
4313
4394
|
});
|
|
4314
4395
|
}
|
|
4315
|
-
}), [{ returnData:
|
|
4316
|
-
data:
|
|
4317
|
-
to:
|
|
4396
|
+
}), [{ returnData: v, success: te }] = await ee({
|
|
4397
|
+
data: l,
|
|
4398
|
+
to: p
|
|
4318
4399
|
});
|
|
4319
|
-
if (!
|
|
4320
|
-
return
|
|
4400
|
+
if (!te) throw new ii({ data: v });
|
|
4401
|
+
return v === "0x" ? { data: void 0 } : { data: v };
|
|
4402
|
+
}
|
|
4403
|
+
function Wo(e, t) {
|
|
4404
|
+
let { blockNumber: n, deployless: r } = t;
|
|
4405
|
+
if (r) return null;
|
|
4406
|
+
if (e.chain) return No({
|
|
4407
|
+
blockNumber: n,
|
|
4408
|
+
chain: e.chain,
|
|
4409
|
+
contract: "multicall3"
|
|
4410
|
+
});
|
|
4411
|
+
throw new ko();
|
|
4412
|
+
}
|
|
4413
|
+
function Go(e, t) {
|
|
4414
|
+
return e ? Object.keys(e).some((e) => sa(e, t)) : !1;
|
|
4321
4415
|
}
|
|
4322
|
-
function
|
|
4416
|
+
function Ko(e) {
|
|
4323
4417
|
let { code: t, data: n } = e;
|
|
4324
|
-
return
|
|
4325
|
-
abi:
|
|
4326
|
-
bytecode:
|
|
4418
|
+
return Mo({
|
|
4419
|
+
abi: it(["constructor(bytes, bytes)"]),
|
|
4420
|
+
bytecode: wo,
|
|
4327
4421
|
args: [t, n]
|
|
4328
4422
|
});
|
|
4329
4423
|
}
|
|
4330
|
-
function
|
|
4424
|
+
function qo(e) {
|
|
4331
4425
|
let { data: t, factory: n, factoryData: r, to: i } = e;
|
|
4332
|
-
return
|
|
4333
|
-
abi:
|
|
4334
|
-
bytecode:
|
|
4426
|
+
return Mo({
|
|
4427
|
+
abi: it(["constructor(address, bytes, address, bytes)"]),
|
|
4428
|
+
bytecode: To,
|
|
4335
4429
|
args: [
|
|
4336
4430
|
i,
|
|
4337
4431
|
t,
|
|
@@ -4340,99 +4434,99 @@ function Ro(e) {
|
|
|
4340
4434
|
]
|
|
4341
4435
|
});
|
|
4342
4436
|
}
|
|
4343
|
-
function
|
|
4344
|
-
if (!(e instanceof
|
|
4437
|
+
function Jo(e) {
|
|
4438
|
+
if (!(e instanceof D)) return;
|
|
4345
4439
|
let t = e.walk();
|
|
4346
4440
|
return typeof t?.data == "object" ? t.data?.data : t.data;
|
|
4347
4441
|
}
|
|
4348
4442
|
//#endregion
|
|
4349
4443
|
//#region ../../node_modules/viem/_esm/utils/abi/decodeFunctionData.js
|
|
4350
|
-
function
|
|
4351
|
-
let { abi: t, data: n } = e, r =
|
|
4352
|
-
if (!i) throw new
|
|
4444
|
+
function Yo(e) {
|
|
4445
|
+
let { abi: t, data: n } = e, r = z(n, 0, 4), i = t.find((e) => e.type === "function" && r === B(w(e)));
|
|
4446
|
+
if (!i) throw new wt(r, { docsPath: "/docs/contract/decodeFunctionData" });
|
|
4353
4447
|
return {
|
|
4354
4448
|
functionName: i.name,
|
|
4355
|
-
args: "inputs" in i && i.inputs && i.inputs.length > 0 ?
|
|
4449
|
+
args: "inputs" in i && i.inputs && i.inputs.length > 0 ? vr(i.inputs, z(n, 4)) : void 0
|
|
4356
4450
|
};
|
|
4357
4451
|
}
|
|
4358
4452
|
//#endregion
|
|
4359
4453
|
//#region ../../node_modules/viem/_esm/utils/abi/encodeErrorResult.js
|
|
4360
|
-
var
|
|
4361
|
-
function
|
|
4454
|
+
var Xo = "/docs/contract/encodeErrorResult";
|
|
4455
|
+
function Zo(e) {
|
|
4362
4456
|
let { abi: t, errorName: n, args: r } = e, i = t[0];
|
|
4363
4457
|
if (n) {
|
|
4364
|
-
let e =
|
|
4458
|
+
let e = V({
|
|
4365
4459
|
abi: t,
|
|
4366
4460
|
args: r,
|
|
4367
4461
|
name: n
|
|
4368
4462
|
});
|
|
4369
|
-
if (!e) throw new
|
|
4463
|
+
if (!e) throw new vt(n, { docsPath: Xo });
|
|
4370
4464
|
i = e;
|
|
4371
4465
|
}
|
|
4372
|
-
if (i.type !== "error") throw new
|
|
4373
|
-
let a =
|
|
4466
|
+
if (i.type !== "error") throw new vt(void 0, { docsPath: Xo });
|
|
4467
|
+
let a = B(w(i)), o = "0x";
|
|
4374
4468
|
if (r && r.length > 0) {
|
|
4375
|
-
if (!i.inputs) throw new
|
|
4376
|
-
o =
|
|
4469
|
+
if (!i.inputs) throw new _t(i.name, { docsPath: Xo });
|
|
4470
|
+
o = Un(i.inputs, r);
|
|
4377
4471
|
}
|
|
4378
|
-
return
|
|
4472
|
+
return Fn([a, o]);
|
|
4379
4473
|
}
|
|
4380
4474
|
//#endregion
|
|
4381
4475
|
//#region ../../node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
|
|
4382
|
-
var
|
|
4383
|
-
function
|
|
4476
|
+
var Qo = "/docs/contract/encodeFunctionResult";
|
|
4477
|
+
function $o(e) {
|
|
4384
4478
|
let { abi: t, functionName: n, result: r } = e, i = t[0];
|
|
4385
4479
|
if (n) {
|
|
4386
|
-
let e =
|
|
4480
|
+
let e = V({
|
|
4387
4481
|
abi: t,
|
|
4388
4482
|
name: n
|
|
4389
4483
|
});
|
|
4390
|
-
if (!e) throw new
|
|
4484
|
+
if (!e) throw new O(n, { docsPath: Qo });
|
|
4391
4485
|
i = e;
|
|
4392
4486
|
}
|
|
4393
|
-
if (i.type !== "function") throw new
|
|
4394
|
-
if (!i.outputs) throw new
|
|
4487
|
+
if (i.type !== "function") throw new O(void 0, { docsPath: Qo });
|
|
4488
|
+
if (!i.outputs) throw new Ct(i.name, { docsPath: Qo });
|
|
4395
4489
|
let a = (() => {
|
|
4396
4490
|
if (i.outputs.length === 0) return [];
|
|
4397
4491
|
if (i.outputs.length === 1) return [r];
|
|
4398
4492
|
if (Array.isArray(r)) return r;
|
|
4399
|
-
throw new
|
|
4493
|
+
throw new jt(r);
|
|
4400
4494
|
})();
|
|
4401
|
-
return
|
|
4495
|
+
return Un(i.outputs, a);
|
|
4402
4496
|
}
|
|
4403
4497
|
//#endregion
|
|
4404
4498
|
//#region ../../node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
|
|
4405
|
-
var
|
|
4406
|
-
async function
|
|
4407
|
-
let { data: t, ccipRequest: n } = e, { args: [r] } =
|
|
4408
|
-
abi:
|
|
4499
|
+
var es = "x-batch-gateway:true";
|
|
4500
|
+
async function ts(e) {
|
|
4501
|
+
let { data: t, ccipRequest: n } = e, { args: [r] } = Yo({
|
|
4502
|
+
abi: ho,
|
|
4409
4503
|
data: t
|
|
4410
4504
|
}), i = [], a = [];
|
|
4411
4505
|
return await Promise.all(r.map(async (e, t) => {
|
|
4412
4506
|
try {
|
|
4413
|
-
a[t] = e.urls.includes("x-batch-gateway:true") ? await
|
|
4507
|
+
a[t] = e.urls.includes("x-batch-gateway:true") ? await ts({
|
|
4414
4508
|
data: e.data,
|
|
4415
4509
|
ccipRequest: n
|
|
4416
4510
|
}) : await n(e), i[t] = !1;
|
|
4417
4511
|
} catch (e) {
|
|
4418
|
-
i[t] = !0, a[t] =
|
|
4512
|
+
i[t] = !0, a[t] = ns(e);
|
|
4419
4513
|
}
|
|
4420
|
-
})),
|
|
4421
|
-
abi:
|
|
4514
|
+
})), $o({
|
|
4515
|
+
abi: ho,
|
|
4422
4516
|
functionName: "query",
|
|
4423
4517
|
result: [i, a]
|
|
4424
4518
|
});
|
|
4425
4519
|
}
|
|
4426
|
-
function
|
|
4427
|
-
return e.name === "HttpRequestError" && e.status ?
|
|
4428
|
-
abi:
|
|
4520
|
+
function ns(e) {
|
|
4521
|
+
return e.name === "HttpRequestError" && e.status ? Zo({
|
|
4522
|
+
abi: ho,
|
|
4429
4523
|
errorName: "HttpError",
|
|
4430
4524
|
args: [e.status, e.shortMessage]
|
|
4431
|
-
}) :
|
|
4432
|
-
abi: [
|
|
4525
|
+
}) : Zo({
|
|
4526
|
+
abi: [cr],
|
|
4433
4527
|
errorName: "Error",
|
|
4434
4528
|
args: ["shortMessage" in e ? e.shortMessage : e.message]
|
|
4435
4529
|
});
|
|
4436
4530
|
}
|
|
4437
4531
|
//#endregion
|
|
4438
|
-
export {
|
|
4532
|
+
export { ia as $, Nt as $n, Kr as $t, $a as A, en as An, Ii as At, Na as B, Wt as Bn, $r as Bt, ao as C, An as Cn, Ti as Ct, Z as D, Dn, vi as Dt, Za as E, I as En, Di as Et, io as F, P as Fn, Fi as Ft, Ra as G, pt as Gn, Xr as Gt, Fa as H, k as Hn, ti as Ht, Oa as I, Yt as In, ai as It, J, bt as Jn, Vr as Jt, Ba as K, gt as Kn, Qr as Kt, Aa as L, Kt as Ln, oi as Lt, $ as M, Zt as Mn, Oi as Mt, to as N, qt as Nn, wi as Nt, Q as O, xn as On, Ci as Ot, ro as P, N as Pn, Si as Pt, aa as Q, Ot as Qn, Gr as Qt, ja as R, Ht as Rn, si as Rt, po as S, L as Sn, ui as St, Xa as T, On as Tn, _i as Tt, Ia as U, A as Un, ni as Ut, Pa as V, j as Vn, ei as Vt, La as W, ft as Wn, ii as Wt, sa as X, Et as Xn, Ur as Xt, la as Y, xt as Yn, Hr as Yt, oa as Z, Dt as Zn, Wr as Zt, So as _, Vn as _n, di as _t, Lo as a, Pr as an, tt as ar, Ji as at, _o as b, R as bn, fi as bt, No as c, vr as cn, C as cr, qi as ct, wo as d, or as dn, me as dr, Mi as dt, qr as en, D as er, ra as et, Eo as f, rr as fn, we as fr, Ei as ft, Co as g, Bn as gn, pi as gt, xo as h, Un as hn, hi as ht, Ro as i, Fr as in, it as ir, Yi as it, eo as j, nn as jn, ki as jt, Qa as k, bn as kn, ji as kt, Mo as l, mr as ln, Ae as lr, Ni as lt, bo as m, B as mn, b as mr, mi as mt, es as n, Br as nn, T as nr, Qi as nt, Fo as o, Ar as on, S as or, Li as ot, Do as p, V as pn, re as pr, Ai as pt, wa as q, St as qn, Zr as qt, Yo as r, W as rn, w as rr, Xi as rt, Po as s, kr as sn, He as sr, Ki as st, ts as t, Jr as tn, E as tr, $i as tt, Ao as u, dr as un, De as ur, Pi as ut, mo as v, Hn as vn, xi as vt, Ya as w, jn as wn, gi as wt, vo as x, Fn as xn, yi as xt, yo as y, z as yn, bi as yt, X as z, Ut as zn, ci as zt };
|