@pufferfinance/puffer-sdk 1.14.0 → 1.14.1
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/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.js +3 -3
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/{ccip-C0xwQhXU.cjs → ccip-BYEwaDSr.cjs} +2 -2
- package/dist/{ccip-C0xwQhXU.cjs.map → ccip-BYEwaDSr.cjs.map} +1 -1
- package/dist/{ccip-K-z2PL4P.js → ccip-DA_MOIPz.js} +3 -3
- package/dist/{ccip-K-z2PL4P.js.map → ccip-DA_MOIPz.js.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +4 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-5WxIZnbu.cjs +9 -0
- package/dist/constants-5WxIZnbu.cjs.map +1 -0
- package/dist/{constants-CH7Tz5jz.js → constants-BDqMRitM.js} +924 -798
- package/dist/constants-BDqMRitM.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +3 -1
- package/dist/contracts/tokens.js +71 -60
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-DNLhBkOd.js → createWalletClient-DMXR-Bug.js} +4 -4
- package/dist/{createWalletClient-DNLhBkOd.js.map → createWalletClient-DMXR-Bug.js.map} +1 -1
- package/dist/{createWalletClient-Di5of07E.cjs → createWalletClient-L7tR5Gda.cjs} +2 -2
- package/dist/{createWalletClient-Di5of07E.cjs.map → createWalletClient-L7tR5Gda.cjs.map} +1 -1
- package/dist/{getContract-ChPFzc5y.cjs → getContract-Bt9GsQBq.cjs} +2 -2
- package/dist/{getContract-ChPFzc5y.cjs.map → getContract-Bt9GsQBq.cjs.map} +1 -1
- package/dist/{getContract-6ajhFbP2.js → getContract-DXPZJOBy.js} +2 -2
- package/dist/{getContract-6ajhFbP2.js.map → getContract-DXPZJOBy.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-Ev0s9Yr6.js → secp256k1-D02y6Pc-.js} +2 -2
- package/dist/{secp256k1-Ev0s9Yr6.js.map → secp256k1-D02y6Pc-.js.map} +1 -1
- package/dist/{secp256k1-B8plqpXf.cjs → secp256k1-q_akf6f-.cjs} +2 -2
- package/dist/{secp256k1-B8plqpXf.cjs.map → secp256k1-q_akf6f-.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-CjcOEtWX.js → writeContract-BsrMQkg5.js} +4 -4
- package/dist/{writeContract-CjcOEtWX.js.map → writeContract-BsrMQkg5.js.map} +1 -1
- package/dist/{writeContract-BatuNuTe.cjs → writeContract-Cbrw62uO.cjs} +3 -3
- package/dist/{writeContract-BatuNuTe.cjs.map → writeContract-Cbrw62uO.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/constants-BcPRVxdH.cjs +0 -9
- package/dist/constants-BcPRVxdH.cjs.map +0 -1
- package/dist/constants-CH7Tz5jz.js.map +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
function
|
|
1
|
+
function K(e, { strict: t = !0 } = {}) {
|
|
2
2
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function B(e) {
|
|
5
|
+
return K(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug:
|
|
10
|
-
version: `viem@${
|
|
7
|
+
const Ie = "2.23.6";
|
|
8
|
+
let _ = {
|
|
9
|
+
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: s }) => t ? `${e ?? "https://viem.sh"}${t}${s ? `#${s}` : ""}` : void 0,
|
|
10
|
+
version: `viem@${Ie}`
|
|
11
11
|
};
|
|
12
12
|
class u extends Error {
|
|
13
|
-
constructor(t,
|
|
13
|
+
constructor(t, s = {}) {
|
|
14
14
|
var a;
|
|
15
|
-
const
|
|
15
|
+
const n = (() => {
|
|
16
16
|
var c;
|
|
17
|
-
return
|
|
18
|
-
})(), i =
|
|
17
|
+
return s.cause instanceof u ? s.cause.details : (c = s.cause) != null && c.message ? s.cause.message : s.details;
|
|
18
|
+
})(), i = s.cause instanceof u && s.cause.docsPath || s.docsPath, r = (a = _.getDocsUrl) == null ? void 0 : a.call(_, { ...s, docsPath: i }), o = [
|
|
19
19
|
t || "An error occurred.",
|
|
20
20
|
"",
|
|
21
|
-
...
|
|
21
|
+
...s.metaMessages ? [...s.metaMessages, ""] : [],
|
|
22
22
|
...r ? [`Docs: ${r}`] : [],
|
|
23
|
-
...
|
|
24
|
-
...
|
|
23
|
+
...n ? [`Details: ${n}`] : [],
|
|
24
|
+
..._.version ? [`Version: ${_.version}`] : []
|
|
25
25
|
].join(`
|
|
26
26
|
`);
|
|
27
|
-
super(o,
|
|
27
|
+
super(o, s.cause ? { cause: s.cause } : void 0), Object.defineProperty(this, "details", {
|
|
28
28
|
enumerable: !0,
|
|
29
29
|
configurable: !0,
|
|
30
30
|
writable: !0,
|
|
@@ -54,163 +54,163 @@ class u extends Error {
|
|
|
54
54
|
configurable: !0,
|
|
55
55
|
writable: !0,
|
|
56
56
|
value: "BaseError"
|
|
57
|
-
}), this.details =
|
|
57
|
+
}), this.details = n, this.docsPath = i, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = Ie;
|
|
58
58
|
}
|
|
59
59
|
walk(t) {
|
|
60
|
-
return
|
|
60
|
+
return Te(this, t);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ?
|
|
63
|
+
function Te(e, t) {
|
|
64
|
+
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Te(e.cause, t) : t ? null : e;
|
|
65
65
|
}
|
|
66
|
-
class
|
|
67
|
-
constructor({ offset: t, position:
|
|
68
|
-
super(`Slice ${
|
|
66
|
+
class $e extends u {
|
|
67
|
+
constructor({ offset: t, position: s, size: n }) {
|
|
68
|
+
super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
class
|
|
72
|
-
constructor({ size: t, targetSize:
|
|
73
|
-
super(`${
|
|
71
|
+
class Fe extends u {
|
|
72
|
+
constructor({ size: t, targetSize: s, type: n }) {
|
|
73
|
+
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
77
|
-
constructor({ size: t, targetSize:
|
|
78
|
-
super(`${
|
|
76
|
+
class en extends u {
|
|
77
|
+
constructor({ size: t, targetSize: s, type: n }) {
|
|
78
|
+
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${s} ${n} long, but is ${t} ${n} long.`, { name: "InvalidBytesLengthError" });
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof e == "string" ?
|
|
81
|
+
function H(e, { dir: t, size: s = 32 } = {}) {
|
|
82
|
+
return typeof e == "string" ? ut(e, { dir: t, size: s }) : lt(e, { dir: t, size: s });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
84
|
+
function ut(e, { dir: t, size: s = 32 } = {}) {
|
|
85
|
+
if (s === null)
|
|
86
86
|
return e;
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
throw new
|
|
90
|
-
size: Math.ceil(
|
|
91
|
-
targetSize:
|
|
87
|
+
const n = e.replace("0x", "");
|
|
88
|
+
if (n.length > s * 2)
|
|
89
|
+
throw new Fe({
|
|
90
|
+
size: Math.ceil(n.length / 2),
|
|
91
|
+
targetSize: s,
|
|
92
92
|
type: "hex"
|
|
93
93
|
});
|
|
94
|
-
return `0x${
|
|
94
|
+
return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
96
|
+
function lt(e, { dir: t, size: s = 32 } = {}) {
|
|
97
|
+
if (s === null)
|
|
98
98
|
return e;
|
|
99
|
-
if (e.length >
|
|
100
|
-
throw new
|
|
99
|
+
if (e.length > s)
|
|
100
|
+
throw new Fe({
|
|
101
101
|
size: e.length,
|
|
102
|
-
targetSize:
|
|
102
|
+
targetSize: s,
|
|
103
103
|
type: "bytes"
|
|
104
104
|
});
|
|
105
|
-
const
|
|
106
|
-
for (let i = 0; i <
|
|
105
|
+
const n = new Uint8Array(s);
|
|
106
|
+
for (let i = 0; i < s; i++) {
|
|
107
107
|
const r = t === "right";
|
|
108
|
-
|
|
108
|
+
n[r ? i : s - i - 1] = e[r ? i : e.length - i - 1];
|
|
109
109
|
}
|
|
110
|
-
return
|
|
110
|
+
return n;
|
|
111
111
|
}
|
|
112
|
-
class
|
|
113
|
-
constructor({ max: t, min:
|
|
114
|
-
super(`Number "${r}" is not in safe ${i ? `${i * 8}-bit ${
|
|
112
|
+
class ft extends u {
|
|
113
|
+
constructor({ max: t, min: s, signed: n, size: i, value: r }) {
|
|
114
|
+
super(`Number "${r}" is not in safe ${i ? `${i * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${s} to ${t})` : `(above ${s})`}`, { name: "IntegerOutOfRangeError" });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
class
|
|
117
|
+
class tn extends u {
|
|
118
118
|
constructor(t) {
|
|
119
119
|
super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
120
120
|
name: "InvalidBytesBooleanError"
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
class
|
|
124
|
+
class dt extends u {
|
|
125
125
|
constructor(t) {
|
|
126
126
|
super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
class
|
|
130
|
-
constructor({ givenSize: t, maxSize:
|
|
131
|
-
super(`Size cannot exceed ${
|
|
129
|
+
class ht extends u {
|
|
130
|
+
constructor({ givenSize: t, maxSize: s }) {
|
|
131
|
+
super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
let
|
|
136
|
-
for (let i = 0; i <
|
|
137
|
-
|
|
138
|
-
return
|
|
134
|
+
function $(e, { dir: t = "left" } = {}) {
|
|
135
|
+
let s = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
136
|
+
for (let i = 0; i < s.length - 1 && s[t === "left" ? i : s.length - i - 1].toString() === "0"; i++)
|
|
137
|
+
n++;
|
|
138
|
+
return s = t === "left" ? s.slice(n) : s.slice(0, s.length - n), typeof e == "string" ? (s.length === 1 && t === "right" && (s = `${s}0`), `0x${s.length % 2 === 1 ? `0${s}` : s}`) : s;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
throw new
|
|
143
|
-
givenSize:
|
|
140
|
+
function C(e, { size: t }) {
|
|
141
|
+
if (B(e) > t)
|
|
142
|
+
throw new ht({
|
|
143
|
+
givenSize: B(e),
|
|
144
144
|
maxSize: t
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const { signed:
|
|
149
|
-
t.size &&
|
|
150
|
-
const
|
|
151
|
-
if (!
|
|
152
|
-
return
|
|
147
|
+
function k(e, t = {}) {
|
|
148
|
+
const { signed: s } = t;
|
|
149
|
+
t.size && C(e, { size: t.size });
|
|
150
|
+
const n = BigInt(e);
|
|
151
|
+
if (!s)
|
|
152
|
+
return n;
|
|
153
153
|
const i = (e.length - 2) / 2, r = (1n << BigInt(i) * 8n - 1n) - 1n;
|
|
154
|
-
return
|
|
154
|
+
return n <= r ? n : n - BigInt(`0x${"f".padStart(i * 2, "f")}`) - 1n;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
let
|
|
158
|
-
if (t.size && (
|
|
156
|
+
function sn(e, t = {}) {
|
|
157
|
+
let s = e;
|
|
158
|
+
if (t.size && (C(s, { size: t.size }), s = $(s)), $(s) === "0x00")
|
|
159
159
|
return !1;
|
|
160
|
-
if (
|
|
160
|
+
if ($(s) === "0x01")
|
|
161
161
|
return !0;
|
|
162
|
-
throw new
|
|
162
|
+
throw new dt(s);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return Number(
|
|
164
|
+
function Y(e, t = {}) {
|
|
165
|
+
return Number(k(e, t));
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const pt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
168
168
|
function d(e, t = {}) {
|
|
169
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
169
|
+
return typeof e == "number" || typeof e == "bigint" ? Ae(e, t) : typeof e == "string" ? xt(e, t) : typeof e == "boolean" ? bt(e, t) : I(e, t);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
return typeof t.size == "number" ? (
|
|
171
|
+
function bt(e, t = {}) {
|
|
172
|
+
const s = `0x${Number(e)}`;
|
|
173
|
+
return typeof t.size == "number" ? (C(s, { size: t.size }), H(s, { size: t.size })) : s;
|
|
174
174
|
}
|
|
175
175
|
function I(e, t = {}) {
|
|
176
|
-
let
|
|
176
|
+
let s = "";
|
|
177
177
|
for (let i = 0; i < e.length; i++)
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
return typeof t.size == "number" ? (
|
|
178
|
+
s += pt[e[i]];
|
|
179
|
+
const n = `0x${s}`;
|
|
180
|
+
return typeof t.size == "number" ? (C(n, { size: t.size }), H(n, { dir: "right", size: t.size })) : n;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const { signed:
|
|
182
|
+
function Ae(e, t = {}) {
|
|
183
|
+
const { signed: s, size: n } = t, i = BigInt(e);
|
|
184
184
|
let r;
|
|
185
|
-
|
|
186
|
-
const o = typeof r == "bigint" &&
|
|
185
|
+
n ? s ? r = (1n << BigInt(n) * 8n - 1n) - 1n : r = 2n ** (BigInt(n) * 8n) - 1n : typeof e == "number" && (r = BigInt(Number.MAX_SAFE_INTEGER));
|
|
186
|
+
const o = typeof r == "bigint" && s ? -r - 1n : 0;
|
|
187
187
|
if (r && i > r || i < o) {
|
|
188
188
|
const c = typeof e == "bigint" ? "n" : "";
|
|
189
|
-
throw new
|
|
189
|
+
throw new ft({
|
|
190
190
|
max: r ? `${r}${c}` : void 0,
|
|
191
191
|
min: `${o}${c}`,
|
|
192
|
-
signed:
|
|
193
|
-
size:
|
|
192
|
+
signed: s,
|
|
193
|
+
size: n,
|
|
194
194
|
value: `${e}${c}`
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
const a = `0x${(
|
|
198
|
-
return
|
|
197
|
+
const a = `0x${(s && i < 0 ? (1n << BigInt(n * 8)) + BigInt(i) : i).toString(16)}`;
|
|
198
|
+
return n ? H(a, { size: n }) : a;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
const
|
|
203
|
-
return I(
|
|
200
|
+
const mt = /* @__PURE__ */ new TextEncoder();
|
|
201
|
+
function xt(e, t = {}) {
|
|
202
|
+
const s = mt.encode(e);
|
|
203
|
+
return I(s, t);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
205
|
+
const gt = /* @__PURE__ */ new TextEncoder();
|
|
206
|
+
function Ue(e, t = {}) {
|
|
207
|
+
return typeof e == "number" || typeof e == "bigint" ? wt(e, t) : typeof e == "boolean" ? yt(e, t) : K(e) ? A(e, t) : Ce(e, t);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
return
|
|
209
|
+
function yt(e, t = {}) {
|
|
210
|
+
const s = new Uint8Array(1);
|
|
211
|
+
return s[0] = Number(e), typeof t.size == "number" ? (C(s, { size: t.size }), H(s, { size: t.size })) : s;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const x = {
|
|
214
214
|
zero: 48,
|
|
215
215
|
nine: 57,
|
|
216
216
|
A: 65,
|
|
@@ -218,189 +218,189 @@ const m = {
|
|
|
218
218
|
a: 97,
|
|
219
219
|
f: 102
|
|
220
220
|
};
|
|
221
|
-
function
|
|
222
|
-
if (e >=
|
|
223
|
-
return e -
|
|
224
|
-
if (e >=
|
|
225
|
-
return e - (
|
|
226
|
-
if (e >=
|
|
227
|
-
return e - (
|
|
228
|
-
}
|
|
229
|
-
function
|
|
230
|
-
let
|
|
231
|
-
t.size && (
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
const i =
|
|
221
|
+
function me(e) {
|
|
222
|
+
if (e >= x.zero && e <= x.nine)
|
|
223
|
+
return e - x.zero;
|
|
224
|
+
if (e >= x.A && e <= x.F)
|
|
225
|
+
return e - (x.A - 10);
|
|
226
|
+
if (e >= x.a && e <= x.f)
|
|
227
|
+
return e - (x.a - 10);
|
|
228
|
+
}
|
|
229
|
+
function A(e, t = {}) {
|
|
230
|
+
let s = e;
|
|
231
|
+
t.size && (C(s, { size: t.size }), s = H(s, { dir: "right", size: t.size }));
|
|
232
|
+
let n = s.slice(2);
|
|
233
|
+
n.length % 2 && (n = `0${n}`);
|
|
234
|
+
const i = n.length / 2, r = new Uint8Array(i);
|
|
235
235
|
for (let o = 0, a = 0; o < i; o++) {
|
|
236
|
-
const c =
|
|
237
|
-
if (c === void 0 ||
|
|
238
|
-
throw new u(`Invalid byte sequence ("${
|
|
239
|
-
r[o] = c * 16 +
|
|
236
|
+
const c = me(n.charCodeAt(a++)), l = me(n.charCodeAt(a++));
|
|
237
|
+
if (c === void 0 || l === void 0)
|
|
238
|
+
throw new u(`Invalid byte sequence ("${n[a - 2]}${n[a - 1]}" in "${n}").`);
|
|
239
|
+
r[o] = c * 16 + l;
|
|
240
240
|
}
|
|
241
241
|
return r;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
245
|
-
return
|
|
243
|
+
function wt(e, t) {
|
|
244
|
+
const s = Ae(e, t);
|
|
245
|
+
return A(s);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return typeof t.size == "number" ? (
|
|
247
|
+
function Ce(e, t = {}) {
|
|
248
|
+
const s = gt.encode(e);
|
|
249
|
+
return typeof t.size == "number" ? (C(s, { size: t.size }), H(s, { dir: "right", size: t.size })) : s;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function J(e) {
|
|
252
252
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
253
253
|
throw new Error("positive integer expected, got " + e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Et(e) {
|
|
256
256
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
if (!
|
|
258
|
+
function Z(e, ...t) {
|
|
259
|
+
if (!Et(e))
|
|
260
260
|
throw new Error("Uint8Array expected");
|
|
261
261
|
if (t.length > 0 && !t.includes(e.length))
|
|
262
262
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function nn(e) {
|
|
265
265
|
if (typeof e != "function" || typeof e.create != "function")
|
|
266
266
|
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
267
|
-
|
|
267
|
+
J(e.outputLen), J(e.blockLen);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Q(e, t = !0) {
|
|
270
270
|
if (e.destroyed)
|
|
271
271
|
throw new Error("Hash instance has been destroyed");
|
|
272
272
|
if (t && e.finished)
|
|
273
273
|
throw new Error("Hash#digest() has already been called");
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
277
|
-
const
|
|
278
|
-
if (e.length <
|
|
279
|
-
throw new Error("digestInto() expects output buffer of length at least " +
|
|
275
|
+
function ze(e, t) {
|
|
276
|
+
Z(e);
|
|
277
|
+
const s = t.outputLen;
|
|
278
|
+
if (e.length < s)
|
|
279
|
+
throw new Error("digestInto() expects output buffer of length at least " + s);
|
|
280
280
|
}
|
|
281
|
-
const
|
|
282
|
-
function
|
|
283
|
-
return t ? { h: Number(e &
|
|
281
|
+
const q = /* @__PURE__ */ BigInt(2 ** 32 - 1), xe = /* @__PURE__ */ BigInt(32);
|
|
282
|
+
function Bt(e, t = !1) {
|
|
283
|
+
return t ? { h: Number(e & q), l: Number(e >> xe & q) } : { h: Number(e >> xe & q) | 0, l: Number(e & q) | 0 };
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
let
|
|
285
|
+
function Pt(e, t = !1) {
|
|
286
|
+
let s = new Uint32Array(e.length), n = new Uint32Array(e.length);
|
|
287
287
|
for (let i = 0; i < e.length; i++) {
|
|
288
|
-
const { h: r, l: o } =
|
|
289
|
-
[
|
|
288
|
+
const { h: r, l: o } = Bt(e[i], t);
|
|
289
|
+
[s[i], n[i]] = [r, o];
|
|
290
290
|
}
|
|
291
|
-
return [
|
|
291
|
+
return [s, n];
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const vt = (e, t, s) => e << s | t >>> 32 - s, It = (e, t, s) => t << s | e >>> 32 - s, Tt = (e, t, s) => t << s - 32 | e >>> 64 - s, $t = (e, t, s) => e << s - 32 | t >>> 64 - s, S = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
294
294
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
295
|
-
function
|
|
295
|
+
function Ft(e) {
|
|
296
296
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function ne(e) {
|
|
299
299
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function m(e, t) {
|
|
302
302
|
return e << 32 - t | e >>> t;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
305
|
-
function
|
|
304
|
+
const ge = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
305
|
+
function At(e) {
|
|
306
306
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function ye(e) {
|
|
309
309
|
for (let t = 0; t < e.length; t++)
|
|
310
|
-
e[t] =
|
|
310
|
+
e[t] = At(e[t]);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ut(e) {
|
|
313
313
|
if (typeof e != "string")
|
|
314
314
|
throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
315
315
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return typeof e == "string" && (e =
|
|
317
|
+
function oe(e) {
|
|
318
|
+
return typeof e == "string" && (e = Ut(e)), Z(e), e;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function rn(...e) {
|
|
321
321
|
let t = 0;
|
|
322
|
-
for (let
|
|
323
|
-
const i = e[
|
|
324
|
-
|
|
322
|
+
for (let n = 0; n < e.length; n++) {
|
|
323
|
+
const i = e[n];
|
|
324
|
+
Z(i), t += i.length;
|
|
325
325
|
}
|
|
326
|
-
const
|
|
327
|
-
for (let
|
|
328
|
-
const r = e[
|
|
329
|
-
|
|
326
|
+
const s = new Uint8Array(t);
|
|
327
|
+
for (let n = 0, i = 0; n < e.length; n++) {
|
|
328
|
+
const r = e[n];
|
|
329
|
+
s.set(r, i), i += r.length;
|
|
330
330
|
}
|
|
331
|
-
return
|
|
331
|
+
return s;
|
|
332
332
|
}
|
|
333
|
-
class
|
|
333
|
+
class Le {
|
|
334
334
|
// Safe version that clones internal state
|
|
335
335
|
clone() {
|
|
336
336
|
return this._cloneInto();
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
const t = (
|
|
341
|
-
return t.outputLen =
|
|
339
|
+
function Se(e) {
|
|
340
|
+
const t = (n) => e().update(oe(n)).digest(), s = e();
|
|
341
|
+
return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
if (
|
|
345
|
-
return
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
343
|
+
function on(e = 32) {
|
|
344
|
+
if (S && typeof S.getRandomValues == "function")
|
|
345
|
+
return S.getRandomValues(new Uint8Array(e));
|
|
346
|
+
if (S && typeof S.randomBytes == "function")
|
|
347
|
+
return S.randomBytes(e);
|
|
348
348
|
throw new Error("crypto.getRandomValues must be defined");
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
for (let e = 0, t =
|
|
352
|
-
[
|
|
353
|
-
let i =
|
|
350
|
+
const ke = [], Ge = [], He = [], Ct = /* @__PURE__ */ BigInt(0), V = /* @__PURE__ */ BigInt(1), zt = /* @__PURE__ */ BigInt(2), Lt = /* @__PURE__ */ BigInt(7), St = /* @__PURE__ */ BigInt(256), kt = /* @__PURE__ */ BigInt(113);
|
|
351
|
+
for (let e = 0, t = V, s = 1, n = 0; e < 24; e++) {
|
|
352
|
+
[s, n] = [n, (2 * s + 3 * n) % 5], ke.push(2 * (5 * n + s)), Ge.push((e + 1) * (e + 2) / 2 % 64);
|
|
353
|
+
let i = Ct;
|
|
354
354
|
for (let r = 0; r < 7; r++)
|
|
355
|
-
t = (t <<
|
|
356
|
-
|
|
355
|
+
t = (t << V ^ (t >> Lt) * kt) % St, t & zt && (i ^= V << (V << /* @__PURE__ */ BigInt(r)) - V);
|
|
356
|
+
He.push(i);
|
|
357
357
|
}
|
|
358
|
-
const [
|
|
359
|
-
function
|
|
360
|
-
const
|
|
361
|
-
for (let
|
|
358
|
+
const [Gt, Ht] = /* @__PURE__ */ Pt(He, !0), we = (e, t, s) => s > 32 ? Tt(e, t, s) : vt(e, t, s), Ee = (e, t, s) => s > 32 ? $t(e, t, s) : It(e, t, s);
|
|
359
|
+
function Ot(e, t = 24) {
|
|
360
|
+
const s = new Uint32Array(10);
|
|
361
|
+
for (let n = 24 - t; n < 24; n++) {
|
|
362
362
|
for (let o = 0; o < 10; o++)
|
|
363
|
-
|
|
363
|
+
s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
|
|
364
364
|
for (let o = 0; o < 10; o += 2) {
|
|
365
|
-
const a = (o + 8) % 10, c = (o + 2) % 10,
|
|
365
|
+
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], f = we(l, h, 1) ^ s[a], b = Ee(l, h, 1) ^ s[a + 1];
|
|
366
366
|
for (let p = 0; p < 50; p += 10)
|
|
367
|
-
e[o + p] ^=
|
|
367
|
+
e[o + p] ^= f, e[o + p + 1] ^= b;
|
|
368
368
|
}
|
|
369
369
|
let i = e[2], r = e[3];
|
|
370
370
|
for (let o = 0; o < 24; o++) {
|
|
371
|
-
const a = Ge[o], c =
|
|
372
|
-
i = e[h], r = e[h + 1], e[h] = c, e[h + 1] =
|
|
371
|
+
const a = Ge[o], c = we(i, r, a), l = Ee(i, r, a), h = ke[o];
|
|
372
|
+
i = e[h], r = e[h + 1], e[h] = c, e[h + 1] = l;
|
|
373
373
|
}
|
|
374
374
|
for (let o = 0; o < 50; o += 10) {
|
|
375
375
|
for (let a = 0; a < 10; a++)
|
|
376
|
-
|
|
376
|
+
s[a] = e[o + a];
|
|
377
377
|
for (let a = 0; a < 10; a++)
|
|
378
|
-
e[o + a] ^= ~
|
|
378
|
+
e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
|
|
379
379
|
}
|
|
380
|
-
e[0] ^=
|
|
380
|
+
e[0] ^= Gt[n], e[1] ^= Ht[n];
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
s.fill(0);
|
|
383
383
|
}
|
|
384
|
-
class
|
|
384
|
+
class ae extends Le {
|
|
385
385
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
386
|
-
constructor(t,
|
|
387
|
-
if (super(), this.blockLen = t, this.suffix =
|
|
386
|
+
constructor(t, s, n, i = !1, r = 24) {
|
|
387
|
+
if (super(), this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = i, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, J(n), 0 >= this.blockLen || this.blockLen >= 200)
|
|
388
388
|
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
389
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
389
|
+
this.state = new Uint8Array(200), this.state32 = Ft(this.state);
|
|
390
390
|
}
|
|
391
391
|
keccak() {
|
|
392
|
-
|
|
392
|
+
ge || ye(this.state32), Ot(this.state32, this.rounds), ge || ye(this.state32), this.posOut = 0, this.pos = 0;
|
|
393
393
|
}
|
|
394
394
|
update(t) {
|
|
395
|
-
|
|
396
|
-
const { blockLen:
|
|
397
|
-
t =
|
|
395
|
+
Q(this);
|
|
396
|
+
const { blockLen: s, state: n } = this;
|
|
397
|
+
t = oe(t);
|
|
398
398
|
const i = t.length;
|
|
399
399
|
for (let r = 0; r < i; ) {
|
|
400
|
-
const o = Math.min(
|
|
400
|
+
const o = Math.min(s - this.pos, i - r);
|
|
401
401
|
for (let a = 0; a < o; a++)
|
|
402
|
-
|
|
403
|
-
this.pos ===
|
|
402
|
+
n[this.pos++] ^= t[r++];
|
|
403
|
+
this.pos === s && this.keccak();
|
|
404
404
|
}
|
|
405
405
|
return this;
|
|
406
406
|
}
|
|
@@ -408,16 +408,16 @@ class ie extends Ce {
|
|
|
408
408
|
if (this.finished)
|
|
409
409
|
return;
|
|
410
410
|
this.finished = !0;
|
|
411
|
-
const { state: t, suffix:
|
|
412
|
-
t[
|
|
411
|
+
const { state: t, suffix: s, pos: n, blockLen: i } = this;
|
|
412
|
+
t[n] ^= s, (s & 128) !== 0 && n === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
|
|
413
413
|
}
|
|
414
414
|
writeInto(t) {
|
|
415
|
-
|
|
416
|
-
const
|
|
415
|
+
Q(this, !1), Z(t), this.finish();
|
|
416
|
+
const s = this.state, { blockLen: n } = this;
|
|
417
417
|
for (let i = 0, r = t.length; i < r; ) {
|
|
418
|
-
this.posOut >=
|
|
419
|
-
const o = Math.min(
|
|
420
|
-
t.set(
|
|
418
|
+
this.posOut >= n && this.keccak();
|
|
419
|
+
const o = Math.min(n - this.posOut, r - i);
|
|
420
|
+
t.set(s.subarray(this.posOut, this.posOut + o), i), this.posOut += o, i += o;
|
|
421
421
|
}
|
|
422
422
|
return t;
|
|
423
423
|
}
|
|
@@ -427,10 +427,10 @@ class ie extends Ce {
|
|
|
427
427
|
return this.writeInto(t);
|
|
428
428
|
}
|
|
429
429
|
xof(t) {
|
|
430
|
-
return
|
|
430
|
+
return J(t), this.xofInto(new Uint8Array(t));
|
|
431
431
|
}
|
|
432
432
|
digestInto(t) {
|
|
433
|
-
if (
|
|
433
|
+
if (ze(t, this), this.finished)
|
|
434
434
|
throw new Error("digest() was already called");
|
|
435
435
|
return this.writeInto(t), this.destroy(), t;
|
|
436
436
|
}
|
|
@@ -441,16 +441,16 @@ class ie extends Ce {
|
|
|
441
441
|
this.destroyed = !0, this.state.fill(0);
|
|
442
442
|
}
|
|
443
443
|
_cloneInto(t) {
|
|
444
|
-
const { blockLen:
|
|
445
|
-
return t || (t = new
|
|
444
|
+
const { blockLen: s, suffix: n, outputLen: i, rounds: r, enableXOF: o } = this;
|
|
445
|
+
return t || (t = new ae(s, n, i, o, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = i, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return
|
|
448
|
+
const Nt = (e, t, s) => Se(() => new ae(t, e, s)), Mt = /* @__PURE__ */ Nt(1, 136, 256 / 8);
|
|
449
|
+
function _t(e, t) {
|
|
450
|
+
const s = t || "hex", n = Mt(K(e, { strict: !1 }) ? Ue(e) : e);
|
|
451
|
+
return s === "bytes" ? n : d(n);
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class P extends u {
|
|
454
454
|
constructor({ address: t }) {
|
|
455
455
|
super(`Address "${t}" is invalid.`, {
|
|
456
456
|
metaMessages: [
|
|
@@ -461,7 +461,7 @@ class E extends u {
|
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class Oe extends Map {
|
|
465
465
|
constructor(t) {
|
|
466
466
|
super(), Object.defineProperty(this, "maxSize", {
|
|
467
467
|
enumerable: !0,
|
|
@@ -471,107 +471,107 @@ class ke extends Map {
|
|
|
471
471
|
}), this.maxSize = t;
|
|
472
472
|
}
|
|
473
473
|
get(t) {
|
|
474
|
-
const
|
|
475
|
-
return super.has(t) &&
|
|
474
|
+
const s = super.get(t);
|
|
475
|
+
return super.has(t) && s !== void 0 && (this.delete(t), super.set(t, s)), s;
|
|
476
476
|
}
|
|
477
|
-
set(t,
|
|
478
|
-
if (super.set(t,
|
|
479
|
-
const
|
|
480
|
-
|
|
477
|
+
set(t, s) {
|
|
478
|
+
if (super.set(t, s), this.maxSize && this.size > this.maxSize) {
|
|
479
|
+
const n = this.keys().next().value;
|
|
480
|
+
n && this.delete(n);
|
|
481
481
|
}
|
|
482
482
|
return this;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
if (
|
|
488
|
-
return
|
|
489
|
-
const
|
|
485
|
+
const ie = /* @__PURE__ */ new Oe(8192);
|
|
486
|
+
function Ne(e, t) {
|
|
487
|
+
if (ie.has(`${e}.${t}`))
|
|
488
|
+
return ie.get(`${e}.${t}`);
|
|
489
|
+
const s = e.substring(2).toLowerCase(), n = _t(Ce(s), "bytes"), i = s.split("");
|
|
490
490
|
for (let o = 0; o < 40; o += 2)
|
|
491
|
-
|
|
491
|
+
n[o >> 1] >> 4 >= 8 && i[o] && (i[o] = i[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && i[o + 1] && (i[o + 1] = i[o + 1].toUpperCase());
|
|
492
492
|
const r = `0x${i.join("")}`;
|
|
493
|
-
return
|
|
493
|
+
return ie.set(`${e}.${t}`, r), r;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
if (!
|
|
497
|
-
throw new
|
|
498
|
-
return
|
|
495
|
+
function an(e, t) {
|
|
496
|
+
if (!v(e, { strict: !1 }))
|
|
497
|
+
throw new P({ address: e });
|
|
498
|
+
return Ne(e, t);
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
function
|
|
502
|
-
const { strict:
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
505
|
-
const i =
|
|
506
|
-
return
|
|
500
|
+
const Vt = /^0x[a-fA-F0-9]{40}$/, re = /* @__PURE__ */ new Oe(8192);
|
|
501
|
+
function v(e, t) {
|
|
502
|
+
const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
|
|
503
|
+
if (re.has(n))
|
|
504
|
+
return re.get(n);
|
|
505
|
+
const i = Vt.test(e) ? e.toLowerCase() === e ? !0 : s ? Ne(e) === e : !0 : !1;
|
|
506
|
+
return re.set(n, i), i;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return typeof e[0] == "string" ?
|
|
508
|
+
function cn(e) {
|
|
509
|
+
return typeof e[0] == "string" ? O(e) : Dt(e);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Dt(e) {
|
|
512
512
|
let t = 0;
|
|
513
513
|
for (const i of e)
|
|
514
514
|
t += i.length;
|
|
515
|
-
const
|
|
516
|
-
let
|
|
515
|
+
const s = new Uint8Array(t);
|
|
516
|
+
let n = 0;
|
|
517
517
|
for (const i of e)
|
|
518
|
-
|
|
519
|
-
return
|
|
518
|
+
s.set(i, n), n += i.length;
|
|
519
|
+
return s;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
return `0x${e.reduce((t,
|
|
521
|
+
function O(e) {
|
|
522
|
+
return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
return
|
|
526
|
-
strict:
|
|
527
|
-
}) :
|
|
528
|
-
strict:
|
|
524
|
+
function jt(e, t, s, { strict: n } = {}) {
|
|
525
|
+
return K(e, { strict: !1 }) ? Kt(e, t, s, {
|
|
526
|
+
strict: n
|
|
527
|
+
}) : Rt(e, t, s, {
|
|
528
|
+
strict: n
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
if (typeof t == "number" && t > 0 && t >
|
|
533
|
-
throw new
|
|
531
|
+
function Me(e, t) {
|
|
532
|
+
if (typeof t == "number" && t > 0 && t > B(e) - 1)
|
|
533
|
+
throw new $e({
|
|
534
534
|
offset: t,
|
|
535
535
|
position: "start",
|
|
536
|
-
size:
|
|
536
|
+
size: B(e)
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
if (typeof t == "number" && typeof
|
|
541
|
-
throw new
|
|
542
|
-
offset:
|
|
539
|
+
function _e(e, t, s) {
|
|
540
|
+
if (typeof t == "number" && typeof s == "number" && B(e) !== s - t)
|
|
541
|
+
throw new $e({
|
|
542
|
+
offset: s,
|
|
543
543
|
position: "end",
|
|
544
|
-
size:
|
|
544
|
+
size: B(e)
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
const i = e.slice(t,
|
|
550
|
-
return
|
|
547
|
+
function Rt(e, t, s, { strict: n } = {}) {
|
|
548
|
+
Me(e, t);
|
|
549
|
+
const i = e.slice(t, s);
|
|
550
|
+
return n && _e(i, t, s), i;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
554
|
-
const i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (
|
|
555
|
-
return
|
|
552
|
+
function Kt(e, t, s, { strict: n } = {}) {
|
|
553
|
+
Me(e, t);
|
|
554
|
+
const i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
|
|
555
|
+
return n && _e(i, t, s), i;
|
|
556
556
|
}
|
|
557
|
-
class
|
|
557
|
+
class Be extends u {
|
|
558
558
|
constructor({ offset: t }) {
|
|
559
559
|
super(`Offset \`${t}\` cannot be negative.`, {
|
|
560
560
|
name: "NegativeOffsetError"
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
class
|
|
565
|
-
constructor({ length: t, position:
|
|
566
|
-
super(`Position \`${
|
|
564
|
+
class Wt extends u {
|
|
565
|
+
constructor({ length: t, position: s }) {
|
|
566
|
+
super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
570
|
-
constructor({ count: t, limit:
|
|
571
|
-
super(`Recursive read limit of \`${
|
|
569
|
+
class Xt extends u {
|
|
570
|
+
constructor({ count: t, limit: s }) {
|
|
571
|
+
super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const qt = {
|
|
575
575
|
bytes: new Uint8Array(),
|
|
576
576
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
577
577
|
position: 0,
|
|
@@ -580,21 +580,21 @@ const Dt = {
|
|
|
580
580
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
581
581
|
assertReadLimit() {
|
|
582
582
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
583
|
-
throw new
|
|
583
|
+
throw new Xt({
|
|
584
584
|
count: this.recursiveReadCount + 1,
|
|
585
585
|
limit: this.recursiveReadLimit
|
|
586
586
|
});
|
|
587
587
|
},
|
|
588
588
|
assertPosition(e) {
|
|
589
589
|
if (e < 0 || e > this.bytes.length - 1)
|
|
590
|
-
throw new
|
|
590
|
+
throw new Wt({
|
|
591
591
|
length: this.bytes.length,
|
|
592
592
|
position: e
|
|
593
593
|
});
|
|
594
594
|
},
|
|
595
595
|
decrementPosition(e) {
|
|
596
596
|
if (e < 0)
|
|
597
|
-
throw new
|
|
597
|
+
throw new Be({ offset: e });
|
|
598
598
|
const t = this.position - e;
|
|
599
599
|
this.assertPosition(t), this.position = t;
|
|
600
600
|
},
|
|
@@ -603,7 +603,7 @@ const Dt = {
|
|
|
603
603
|
},
|
|
604
604
|
incrementPosition(e) {
|
|
605
605
|
if (e < 0)
|
|
606
|
-
throw new
|
|
606
|
+
throw new Be({ offset: e });
|
|
607
607
|
const t = this.position + e;
|
|
608
608
|
this.assertPosition(t), this.position = t;
|
|
609
609
|
},
|
|
@@ -612,8 +612,8 @@ const Dt = {
|
|
|
612
612
|
return this.assertPosition(t), this.bytes[t];
|
|
613
613
|
},
|
|
614
614
|
inspectBytes(e, t) {
|
|
615
|
-
const
|
|
616
|
-
return this.assertPosition(
|
|
615
|
+
const s = t ?? this.position;
|
|
616
|
+
return this.assertPosition(s + e - 1), this.bytes.subarray(s, s + e);
|
|
617
617
|
},
|
|
618
618
|
inspectUint8(e) {
|
|
619
619
|
const t = e ?? this.position;
|
|
@@ -656,8 +656,8 @@ const Dt = {
|
|
|
656
656
|
},
|
|
657
657
|
readBytes(e, t) {
|
|
658
658
|
this.assertReadLimit(), this._touch();
|
|
659
|
-
const
|
|
660
|
-
return this.position += t ?? e,
|
|
659
|
+
const s = this.inspectBytes(e);
|
|
660
|
+
return this.position += t ?? e, s;
|
|
661
661
|
},
|
|
662
662
|
readUint8() {
|
|
663
663
|
this.assertReadLimit(), this._touch();
|
|
@@ -693,39 +693,39 @@ const Dt = {
|
|
|
693
693
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
function
|
|
697
|
-
const
|
|
698
|
-
return
|
|
696
|
+
function Ve(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
697
|
+
const s = Object.create(qt);
|
|
698
|
+
return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const Yt = {
|
|
701
701
|
gwei: 9,
|
|
702
702
|
wei: 18
|
|
703
|
-
},
|
|
703
|
+
}, Jt = {
|
|
704
704
|
ether: -9,
|
|
705
705
|
wei: 9
|
|
706
706
|
};
|
|
707
|
-
function
|
|
708
|
-
let
|
|
709
|
-
const
|
|
710
|
-
|
|
707
|
+
function De(e, t) {
|
|
708
|
+
let s = e.toString();
|
|
709
|
+
const n = s.startsWith("-");
|
|
710
|
+
n && (s = s.slice(1)), s = s.padStart(t, "0");
|
|
711
711
|
let [i, r] = [
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
s.slice(0, s.length - t),
|
|
713
|
+
s.slice(s.length - t)
|
|
714
714
|
];
|
|
715
|
-
return r = r.replace(/(0+)$/, ""), `${
|
|
715
|
+
return r = r.replace(/(0+)$/, ""), `${n ? "-" : ""}${i || "0"}${r ? `.${r}` : ""}`;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
717
|
+
function Qt(e, t = "wei") {
|
|
718
|
+
return De(e, Yt[t]);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
720
|
+
function F(e, t = "wei") {
|
|
721
|
+
return De(e, Jt[t]);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
const t = Object.entries(e).map(([
|
|
725
|
-
return t.map(([
|
|
723
|
+
function je(e) {
|
|
724
|
+
const t = Object.entries(e).map(([n, i]) => i === void 0 || i === !1 ? null : [n, i]).filter(Boolean), s = t.reduce((n, [i]) => Math.max(n, i.length), 0);
|
|
725
|
+
return t.map(([n, i]) => ` ${`${n}:`.padEnd(s + 1)} ${i}`).join(`
|
|
726
726
|
`);
|
|
727
727
|
}
|
|
728
|
-
class
|
|
728
|
+
class un extends u {
|
|
729
729
|
constructor() {
|
|
730
730
|
super([
|
|
731
731
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -734,20 +734,20 @@ class is extends u {
|
|
|
734
734
|
`), { name: "FeeConflictError" });
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
class
|
|
737
|
+
class Zt extends u {
|
|
738
738
|
constructor({ v: t }) {
|
|
739
739
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
740
740
|
name: "InvalidLegacyVError"
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
class
|
|
744
|
+
class es extends u {
|
|
745
745
|
constructor({ transaction: t }) {
|
|
746
746
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
747
747
|
metaMessages: [
|
|
748
748
|
"Provided Transaction:",
|
|
749
749
|
"{",
|
|
750
|
-
|
|
750
|
+
je(t),
|
|
751
751
|
"}",
|
|
752
752
|
"",
|
|
753
753
|
"To infer the type, either provide:",
|
|
@@ -762,29 +762,29 @@ class qt extends u {
|
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
class
|
|
765
|
+
class ts extends u {
|
|
766
766
|
constructor({ storageKey: t }) {
|
|
767
767
|
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
771
|
-
constructor(t, { account:
|
|
770
|
+
class ln extends u {
|
|
771
|
+
constructor(t, { account: s, docsPath: n, chain: i, data: r, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: f, value: b }) {
|
|
772
772
|
var g;
|
|
773
|
-
const p =
|
|
773
|
+
const p = je({
|
|
774
774
|
chain: i && `${i == null ? void 0 : i.name} (id: ${i == null ? void 0 : i.id})`,
|
|
775
|
-
from:
|
|
776
|
-
to:
|
|
777
|
-
value: typeof b < "u" && `${
|
|
775
|
+
from: s == null ? void 0 : s.address,
|
|
776
|
+
to: f,
|
|
777
|
+
value: typeof b < "u" && `${Qt(b)} ${((g = i == null ? void 0 : i.nativeCurrency) == null ? void 0 : g.symbol) || "ETH"}`,
|
|
778
778
|
data: r,
|
|
779
779
|
gas: o,
|
|
780
|
-
gasPrice: typeof a < "u" && `${
|
|
781
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
782
|
-
maxPriorityFeePerGas: typeof
|
|
780
|
+
gasPrice: typeof a < "u" && `${F(a)} gwei`,
|
|
781
|
+
maxFeePerGas: typeof c < "u" && `${F(c)} gwei`,
|
|
782
|
+
maxPriorityFeePerGas: typeof l < "u" && `${F(l)} gwei`,
|
|
783
783
|
nonce: h
|
|
784
784
|
});
|
|
785
785
|
super(t.shortMessage, {
|
|
786
786
|
cause: t,
|
|
787
|
-
docsPath:
|
|
787
|
+
docsPath: n,
|
|
788
788
|
metaMessages: [
|
|
789
789
|
...t.metaMessages ? [...t.metaMessages, " "] : [],
|
|
790
790
|
"Request Arguments:",
|
|
@@ -799,54 +799,54 @@ class rs extends u {
|
|
|
799
799
|
}), this.cause = t;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
class
|
|
803
|
-
constructor({ blockHash: t, blockNumber:
|
|
802
|
+
class fn extends u {
|
|
803
|
+
constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: i, index: r }) {
|
|
804
804
|
let o = "Transaction";
|
|
805
|
-
|
|
805
|
+
n && r !== void 0 && (o = `Transaction at block time "${n}" at index "${r}"`), t && r !== void 0 && (o = `Transaction at block hash "${t}" at index "${r}"`), s && r !== void 0 && (o = `Transaction at block number "${s}" at index "${r}"`), i && (o = `Transaction with hash "${i}"`), super(`${o} could not be found.`, {
|
|
806
806
|
name: "TransactionNotFoundError"
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
class
|
|
810
|
+
class dn extends u {
|
|
811
811
|
constructor({ hash: t }) {
|
|
812
812
|
super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
813
813
|
name: "TransactionReceiptNotFoundError"
|
|
814
814
|
});
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
class
|
|
817
|
+
class hn extends u {
|
|
818
818
|
constructor({ hash: t }) {
|
|
819
819
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
const
|
|
824
|
-
return
|
|
822
|
+
function U(e, t = "hex") {
|
|
823
|
+
const s = Re(e), n = Ve(new Uint8Array(s.length));
|
|
824
|
+
return s.encode(n), t === "hex" ? I(n.bytes) : n.bytes;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
return Array.isArray(e) ?
|
|
826
|
+
function Re(e) {
|
|
827
|
+
return Array.isArray(e) ? ss(e.map((t) => Re(t))) : ns(e);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
const t = e.reduce((i, r) => i + r.length, 0),
|
|
829
|
+
function ss(e) {
|
|
830
|
+
const t = e.reduce((i, r) => i + r.length, 0), s = Ke(t);
|
|
831
831
|
return {
|
|
832
|
-
length: t <= 55 ? 1 + t : 1 +
|
|
832
|
+
length: t <= 55 ? 1 + t : 1 + s + t,
|
|
833
833
|
encode(i) {
|
|
834
|
-
t <= 55 ? i.pushByte(192 + t) : (i.pushByte(247 +
|
|
834
|
+
t <= 55 ? i.pushByte(192 + t) : (i.pushByte(247 + s), s === 1 ? i.pushUint8(t) : s === 2 ? i.pushUint16(t) : s === 3 ? i.pushUint24(t) : i.pushUint32(t));
|
|
835
835
|
for (const { encode: r } of e)
|
|
836
836
|
r(i);
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
const t = typeof e == "string" ?
|
|
840
|
+
function ns(e) {
|
|
841
|
+
const t = typeof e == "string" ? A(e) : e, s = Ke(t.length);
|
|
842
842
|
return {
|
|
843
|
-
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 +
|
|
843
|
+
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
|
|
844
844
|
encode(i) {
|
|
845
|
-
t.length === 1 && t[0] < 128 ? i.pushBytes(t) : t.length <= 55 ? (i.pushByte(128 + t.length), i.pushBytes(t)) : (i.pushByte(183 +
|
|
845
|
+
t.length === 1 && t[0] < 128 ? i.pushBytes(t) : t.length <= 55 ? (i.pushByte(128 + t.length), i.pushBytes(t)) : (i.pushByte(183 + s), s === 1 ? i.pushUint8(t.length) : s === 2 ? i.pushUint16(t.length) : s === 3 ? i.pushUint24(t.length) : i.pushUint32(t.length), i.pushBytes(t));
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ke(e) {
|
|
850
850
|
if (e < 2 ** 8)
|
|
851
851
|
return 1;
|
|
852
852
|
if (e < 2 ** 16)
|
|
@@ -857,94 +857,94 @@ function De(e) {
|
|
|
857
857
|
return 4;
|
|
858
858
|
throw new u("Length is too large.");
|
|
859
859
|
}
|
|
860
|
-
class
|
|
861
|
-
constructor({ cause: t, message:
|
|
860
|
+
class We extends u {
|
|
861
|
+
constructor({ cause: t, message: s } = {}) {
|
|
862
862
|
var i;
|
|
863
|
-
const
|
|
864
|
-
super(`Execution reverted ${
|
|
863
|
+
const n = (i = s == null ? void 0 : s.replace("execution reverted: ", "")) == null ? void 0 : i.replace("execution reverted", "");
|
|
864
|
+
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
865
865
|
cause: t,
|
|
866
866
|
name: "ExecutionRevertedError"
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
Object.defineProperty(
|
|
870
|
+
Object.defineProperty(We, "code", {
|
|
871
871
|
enumerable: !0,
|
|
872
872
|
configurable: !0,
|
|
873
873
|
writable: !0,
|
|
874
874
|
value: 3
|
|
875
875
|
});
|
|
876
|
-
Object.defineProperty(
|
|
876
|
+
Object.defineProperty(We, "nodeMessage", {
|
|
877
877
|
enumerable: !0,
|
|
878
878
|
configurable: !0,
|
|
879
879
|
writable: !0,
|
|
880
880
|
value: /execution reverted/
|
|
881
881
|
});
|
|
882
|
-
class
|
|
883
|
-
constructor({ cause: t, maxFeePerGas:
|
|
884
|
-
super(`The fee cap (\`maxFeePerGas\`${
|
|
882
|
+
class ee extends u {
|
|
883
|
+
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
884
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
885
885
|
cause: t,
|
|
886
886
|
name: "FeeCapTooHighError"
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
Object.defineProperty(
|
|
890
|
+
Object.defineProperty(ee, "nodeMessage", {
|
|
891
891
|
enumerable: !0,
|
|
892
892
|
configurable: !0,
|
|
893
893
|
writable: !0,
|
|
894
894
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
895
895
|
});
|
|
896
|
-
class
|
|
897
|
-
constructor({ cause: t, maxFeePerGas:
|
|
898
|
-
super(`The fee cap (\`maxFeePerGas\`${
|
|
896
|
+
class is extends u {
|
|
897
|
+
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
898
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${F(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
899
899
|
cause: t,
|
|
900
900
|
name: "FeeCapTooLowError"
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
Object.defineProperty(
|
|
904
|
+
Object.defineProperty(is, "nodeMessage", {
|
|
905
905
|
enumerable: !0,
|
|
906
906
|
configurable: !0,
|
|
907
907
|
writable: !0,
|
|
908
908
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
909
909
|
});
|
|
910
|
-
class
|
|
911
|
-
constructor({ cause: t, nonce:
|
|
912
|
-
super(`Nonce provided for the transaction ${
|
|
910
|
+
class rs extends u {
|
|
911
|
+
constructor({ cause: t, nonce: s } = {}) {
|
|
912
|
+
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
Object.defineProperty(
|
|
915
|
+
Object.defineProperty(rs, "nodeMessage", {
|
|
916
916
|
enumerable: !0,
|
|
917
917
|
configurable: !0,
|
|
918
918
|
writable: !0,
|
|
919
919
|
value: /nonce too high/
|
|
920
920
|
});
|
|
921
|
-
class
|
|
922
|
-
constructor({ cause: t, nonce:
|
|
921
|
+
class os extends u {
|
|
922
|
+
constructor({ cause: t, nonce: s } = {}) {
|
|
923
923
|
super([
|
|
924
|
-
`Nonce provided for the transaction ${
|
|
924
|
+
`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
|
|
925
925
|
"Try increasing the nonce or find the latest nonce with `getTransactionCount`."
|
|
926
926
|
].join(`
|
|
927
927
|
`), { cause: t, name: "NonceTooLowError" });
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
Object.defineProperty(
|
|
930
|
+
Object.defineProperty(os, "nodeMessage", {
|
|
931
931
|
enumerable: !0,
|
|
932
932
|
configurable: !0,
|
|
933
933
|
writable: !0,
|
|
934
934
|
value: /nonce too low|transaction already imported|already known/
|
|
935
935
|
});
|
|
936
|
-
class
|
|
937
|
-
constructor({ cause: t, nonce:
|
|
938
|
-
super(`Nonce provided for the transaction ${
|
|
936
|
+
class as extends u {
|
|
937
|
+
constructor({ cause: t, nonce: s } = {}) {
|
|
938
|
+
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
Object.defineProperty(
|
|
941
|
+
Object.defineProperty(as, "nodeMessage", {
|
|
942
942
|
enumerable: !0,
|
|
943
943
|
configurable: !0,
|
|
944
944
|
writable: !0,
|
|
945
945
|
value: /nonce has max value/
|
|
946
946
|
});
|
|
947
|
-
class
|
|
947
|
+
class cs extends u {
|
|
948
948
|
constructor({ cause: t } = {}) {
|
|
949
949
|
super([
|
|
950
950
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -965,41 +965,41 @@ class sn extends u {
|
|
|
965
965
|
});
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
Object.defineProperty(
|
|
968
|
+
Object.defineProperty(cs, "nodeMessage", {
|
|
969
969
|
enumerable: !0,
|
|
970
970
|
configurable: !0,
|
|
971
971
|
writable: !0,
|
|
972
972
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
973
973
|
});
|
|
974
|
-
class
|
|
975
|
-
constructor({ cause: t, gas:
|
|
976
|
-
super(`The amount of gas ${
|
|
974
|
+
class us extends u {
|
|
975
|
+
constructor({ cause: t, gas: s } = {}) {
|
|
976
|
+
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
977
977
|
cause: t,
|
|
978
978
|
name: "IntrinsicGasTooHighError"
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
Object.defineProperty(
|
|
982
|
+
Object.defineProperty(us, "nodeMessage", {
|
|
983
983
|
enumerable: !0,
|
|
984
984
|
configurable: !0,
|
|
985
985
|
writable: !0,
|
|
986
986
|
value: /intrinsic gas too high|gas limit reached/
|
|
987
987
|
});
|
|
988
|
-
class
|
|
989
|
-
constructor({ cause: t, gas:
|
|
990
|
-
super(`The amount of gas ${
|
|
988
|
+
class ls extends u {
|
|
989
|
+
constructor({ cause: t, gas: s } = {}) {
|
|
990
|
+
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
|
|
991
991
|
cause: t,
|
|
992
992
|
name: "IntrinsicGasTooLowError"
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
Object.defineProperty(
|
|
996
|
+
Object.defineProperty(ls, "nodeMessage", {
|
|
997
997
|
enumerable: !0,
|
|
998
998
|
configurable: !0,
|
|
999
999
|
writable: !0,
|
|
1000
1000
|
value: /intrinsic gas too low/
|
|
1001
1001
|
});
|
|
1002
|
-
class
|
|
1002
|
+
class fs extends u {
|
|
1003
1003
|
constructor({ cause: t }) {
|
|
1004
1004
|
super("The transaction type is not supported for this chain.", {
|
|
1005
1005
|
cause: t,
|
|
@@ -1007,16 +1007,16 @@ class an extends u {
|
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
Object.defineProperty(
|
|
1010
|
+
Object.defineProperty(fs, "nodeMessage", {
|
|
1011
1011
|
enumerable: !0,
|
|
1012
1012
|
configurable: !0,
|
|
1013
1013
|
writable: !0,
|
|
1014
1014
|
value: /transaction type not valid/
|
|
1015
1015
|
});
|
|
1016
|
-
class
|
|
1017
|
-
constructor({ cause: t, maxPriorityFeePerGas:
|
|
1016
|
+
class Xe extends u {
|
|
1017
|
+
constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
|
|
1018
1018
|
super([
|
|
1019
|
-
`The provided tip (\`maxPriorityFeePerGas\`${
|
|
1019
|
+
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${F(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${F(n)} gwei` : ""}).`
|
|
1020
1020
|
].join(`
|
|
1021
1021
|
`), {
|
|
1022
1022
|
cause: t,
|
|
@@ -1024,13 +1024,13 @@ class Ke extends u {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
Object.defineProperty(
|
|
1027
|
+
Object.defineProperty(Xe, "nodeMessage", {
|
|
1028
1028
|
enumerable: !0,
|
|
1029
1029
|
configurable: !0,
|
|
1030
1030
|
writable: !0,
|
|
1031
1031
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1032
1032
|
});
|
|
1033
|
-
class
|
|
1033
|
+
class pn extends u {
|
|
1034
1034
|
constructor({ cause: t }) {
|
|
1035
1035
|
super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
|
|
1036
1036
|
cause: t,
|
|
@@ -1038,49 +1038,49 @@ class us extends u {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return ({ exclude:
|
|
1043
|
-
exclude:
|
|
1041
|
+
function ce(e, t) {
|
|
1042
|
+
return ({ exclude: s, format: n }) => ({
|
|
1043
|
+
exclude: s,
|
|
1044
1044
|
format: (i) => {
|
|
1045
1045
|
const r = t(i);
|
|
1046
|
-
if (
|
|
1047
|
-
for (const o of
|
|
1046
|
+
if (s)
|
|
1047
|
+
for (const o of s)
|
|
1048
1048
|
delete r[o];
|
|
1049
1049
|
return {
|
|
1050
1050
|
...r,
|
|
1051
|
-
...
|
|
1051
|
+
...n(i)
|
|
1052
1052
|
};
|
|
1053
1053
|
},
|
|
1054
1054
|
type: e
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
|
-
const
|
|
1057
|
+
const ue = 2n ** 256n - 1n, qe = {
|
|
1058
1058
|
"0x0": "legacy",
|
|
1059
1059
|
"0x1": "eip2930",
|
|
1060
1060
|
"0x2": "eip1559",
|
|
1061
1061
|
"0x3": "eip4844",
|
|
1062
1062
|
"0x4": "eip7702"
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1064
|
+
function le(e) {
|
|
1065
1065
|
const t = {
|
|
1066
1066
|
...e,
|
|
1067
1067
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
1068
1068
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
1069
|
-
chainId: e.chainId ?
|
|
1069
|
+
chainId: e.chainId ? Y(e.chainId) : void 0,
|
|
1070
1070
|
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
1071
1071
|
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
1072
1072
|
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
1073
1073
|
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
1074
1074
|
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
1075
|
-
nonce: e.nonce ?
|
|
1075
|
+
nonce: e.nonce ? Y(e.nonce) : void 0,
|
|
1076
1076
|
to: e.to ? e.to : null,
|
|
1077
1077
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1078
|
-
type: e.type ?
|
|
1078
|
+
type: e.type ? qe[e.type] : void 0,
|
|
1079
1079
|
typeHex: e.type ? e.type : void 0,
|
|
1080
1080
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1081
1081
|
v: e.v ? BigInt(e.v) : void 0
|
|
1082
1082
|
};
|
|
1083
|
-
return e.authorizationList && (t.authorizationList =
|
|
1083
|
+
return e.authorizationList && (t.authorizationList = hs(e.authorizationList)), t.yParity = (() => {
|
|
1084
1084
|
if (e.yParity)
|
|
1085
1085
|
return Number(e.yParity);
|
|
1086
1086
|
if (typeof t.v == "bigint") {
|
|
@@ -1093,8 +1093,8 @@ function ae(e) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1096
|
+
const ds = /* @__PURE__ */ ce("transaction", le);
|
|
1097
|
+
function hs(e) {
|
|
1098
1098
|
return e.map((t) => ({
|
|
1099
1099
|
contractAddress: t.address,
|
|
1100
1100
|
chainId: Number(t.chainId),
|
|
@@ -1104,8 +1104,8 @@ function un(e) {
|
|
|
1104
1104
|
yParity: Number(t.yParity)
|
|
1105
1105
|
}));
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
const t = (e.transactions ?? []).map((
|
|
1107
|
+
function ps(e) {
|
|
1108
|
+
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : le(s));
|
|
1109
1109
|
return {
|
|
1110
1110
|
...e,
|
|
1111
1111
|
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
@@ -1124,84 +1124,84 @@ function fn(e) {
|
|
|
1124
1124
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
-
const { kzg: t } = e,
|
|
1130
|
-
for (const r of
|
|
1127
|
+
const bs = /* @__PURE__ */ ce("block", ps);
|
|
1128
|
+
function Ye(e) {
|
|
1129
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((r) => A(r)) : e.blobs, i = [];
|
|
1130
|
+
for (const r of n)
|
|
1131
1131
|
i.push(Uint8Array.from(t.blobToKzgCommitment(r)));
|
|
1132
|
-
return
|
|
1132
|
+
return s === "bytes" ? i : i.map((r) => I(r));
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1135
|
-
const { kzg: t } = e,
|
|
1136
|
-
for (let o = 0; o <
|
|
1137
|
-
const a =
|
|
1134
|
+
function Je(e) {
|
|
1135
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) => A(o)) : e.blobs, i = typeof e.commitments[0] == "string" ? e.commitments.map((o) => A(o)) : e.commitments, r = [];
|
|
1136
|
+
for (let o = 0; o < n.length; o++) {
|
|
1137
|
+
const a = n[o], c = i[o];
|
|
1138
1138
|
r.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
|
|
1139
1139
|
}
|
|
1140
|
-
return
|
|
1140
|
+
return s === "bytes" ? r : r.map((o) => I(o));
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function ms(e, t, s, n) {
|
|
1143
1143
|
if (typeof e.setBigUint64 == "function")
|
|
1144
|
-
return e.setBigUint64(t,
|
|
1145
|
-
const i = BigInt(32), r = BigInt(4294967295), o = Number(
|
|
1146
|
-
e.setUint32(t + c, o,
|
|
1144
|
+
return e.setBigUint64(t, s, n);
|
|
1145
|
+
const i = BigInt(32), r = BigInt(4294967295), o = Number(s >> i & r), a = Number(s & r), c = n ? 4 : 0, l = n ? 0 : 4;
|
|
1146
|
+
e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return e & t ^ ~e &
|
|
1148
|
+
function xs(e, t, s) {
|
|
1149
|
+
return e & t ^ ~e & s;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return e & t ^ e &
|
|
1151
|
+
function gs(e, t, s) {
|
|
1152
|
+
return e & t ^ e & s ^ t & s;
|
|
1153
1153
|
}
|
|
1154
|
-
class
|
|
1155
|
-
constructor(t,
|
|
1156
|
-
super(), this.blockLen = t, this.outputLen =
|
|
1154
|
+
class ys extends Le {
|
|
1155
|
+
constructor(t, s, n, i) {
|
|
1156
|
+
super(), this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = ne(this.buffer);
|
|
1157
1157
|
}
|
|
1158
1158
|
update(t) {
|
|
1159
|
-
|
|
1160
|
-
const { view:
|
|
1161
|
-
t =
|
|
1159
|
+
Q(this);
|
|
1160
|
+
const { view: s, buffer: n, blockLen: i } = this;
|
|
1161
|
+
t = oe(t);
|
|
1162
1162
|
const r = t.length;
|
|
1163
1163
|
for (let o = 0; o < r; ) {
|
|
1164
1164
|
const a = Math.min(i - this.pos, r - o);
|
|
1165
1165
|
if (a === i) {
|
|
1166
|
-
const c =
|
|
1166
|
+
const c = ne(t);
|
|
1167
1167
|
for (; i <= r - o; o += i)
|
|
1168
1168
|
this.process(c, o);
|
|
1169
1169
|
continue;
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1171
|
+
n.set(t.subarray(o, o + a), this.pos), this.pos += a, o += a, this.pos === i && (this.process(s, 0), this.pos = 0);
|
|
1172
1172
|
}
|
|
1173
1173
|
return this.length += t.length, this.roundClean(), this;
|
|
1174
1174
|
}
|
|
1175
1175
|
digestInto(t) {
|
|
1176
|
-
|
|
1177
|
-
const { buffer:
|
|
1176
|
+
Q(this), ze(t, this), this.finished = !0;
|
|
1177
|
+
const { buffer: s, view: n, blockLen: i, isLE: r } = this;
|
|
1178
1178
|
let { pos: o } = this;
|
|
1179
|
-
|
|
1180
|
-
for (let
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
const a =
|
|
1179
|
+
s[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > i - o && (this.process(n, 0), o = 0);
|
|
1180
|
+
for (let f = o; f < i; f++)
|
|
1181
|
+
s[f] = 0;
|
|
1182
|
+
ms(n, i - 8, BigInt(this.length * 8), r), this.process(n, 0);
|
|
1183
|
+
const a = ne(t), c = this.outputLen;
|
|
1184
1184
|
if (c % 4)
|
|
1185
1185
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1186
|
-
const
|
|
1187
|
-
if (
|
|
1186
|
+
const l = c / 4, h = this.get();
|
|
1187
|
+
if (l > h.length)
|
|
1188
1188
|
throw new Error("_sha2: outputLen bigger than state");
|
|
1189
|
-
for (let
|
|
1190
|
-
a.setUint32(4 *
|
|
1189
|
+
for (let f = 0; f < l; f++)
|
|
1190
|
+
a.setUint32(4 * f, h[f], r);
|
|
1191
1191
|
}
|
|
1192
1192
|
digest() {
|
|
1193
|
-
const { buffer: t, outputLen:
|
|
1193
|
+
const { buffer: t, outputLen: s } = this;
|
|
1194
1194
|
this.digestInto(t);
|
|
1195
|
-
const
|
|
1196
|
-
return this.destroy(),
|
|
1195
|
+
const n = t.slice(0, s);
|
|
1196
|
+
return this.destroy(), n;
|
|
1197
1197
|
}
|
|
1198
1198
|
_cloneInto(t) {
|
|
1199
1199
|
t || (t = new this.constructor()), t.set(...this.get());
|
|
1200
|
-
const { blockLen:
|
|
1201
|
-
return t.length = i, t.pos = a, t.finished = r, t.destroyed = o, i %
|
|
1200
|
+
const { blockLen: s, buffer: n, length: i, finished: r, destroyed: o, pos: a } = this;
|
|
1201
|
+
return t.length = i, t.pos = a, t.finished = r, t.destroyed = o, i % s && t.buffer.set(n), t;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const ws = /* @__PURE__ */ new Uint32Array([
|
|
1205
1205
|
1116352408,
|
|
1206
1206
|
1899447441,
|
|
1207
1207
|
3049323471,
|
|
@@ -1276,31 +1276,31 @@ const xn = /* @__PURE__ */ new Uint32Array([
|
|
|
1276
1276
|
528734635,
|
|
1277
1277
|
1541459225
|
|
1278
1278
|
]), w = /* @__PURE__ */ new Uint32Array(64);
|
|
1279
|
-
class
|
|
1279
|
+
class Es extends ys {
|
|
1280
1280
|
constructor() {
|
|
1281
1281
|
super(64, 32, 8, !1), this.A = y[0] | 0, this.B = y[1] | 0, this.C = y[2] | 0, this.D = y[3] | 0, this.E = y[4] | 0, this.F = y[5] | 0, this.G = y[6] | 0, this.H = y[7] | 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
get() {
|
|
1284
|
-
const { A: t, B:
|
|
1285
|
-
return [t,
|
|
1284
|
+
const { A: t, B: s, C: n, D: i, E: r, F: o, G: a, H: c } = this;
|
|
1285
|
+
return [t, s, n, i, r, o, a, c];
|
|
1286
1286
|
}
|
|
1287
1287
|
// prettier-ignore
|
|
1288
|
-
set(t,
|
|
1289
|
-
this.A = t | 0, this.B =
|
|
1290
|
-
}
|
|
1291
|
-
process(t,
|
|
1292
|
-
for (let
|
|
1293
|
-
w[
|
|
1294
|
-
for (let
|
|
1295
|
-
const b = w[
|
|
1296
|
-
w[
|
|
1288
|
+
set(t, s, n, i, r, o, a, c) {
|
|
1289
|
+
this.A = t | 0, this.B = s | 0, this.C = n | 0, this.D = i | 0, this.E = r | 0, this.F = o | 0, this.G = a | 0, this.H = c | 0;
|
|
1290
|
+
}
|
|
1291
|
+
process(t, s) {
|
|
1292
|
+
for (let f = 0; f < 16; f++, s += 4)
|
|
1293
|
+
w[f] = t.getUint32(s, !1);
|
|
1294
|
+
for (let f = 16; f < 64; f++) {
|
|
1295
|
+
const b = w[f - 15], p = w[f - 2], g = m(b, 7) ^ m(b, 18) ^ b >>> 3, L = m(p, 17) ^ m(p, 19) ^ p >>> 10;
|
|
1296
|
+
w[f] = L + w[f - 7] + g + w[f - 16] | 0;
|
|
1297
1297
|
}
|
|
1298
|
-
let { A:
|
|
1299
|
-
for (let
|
|
1300
|
-
const b =
|
|
1301
|
-
h =
|
|
1298
|
+
let { A: n, B: i, C: r, D: o, E: a, F: c, G: l, H: h } = this;
|
|
1299
|
+
for (let f = 0; f < 64; f++) {
|
|
1300
|
+
const b = m(a, 6) ^ m(a, 11) ^ m(a, 25), p = h + b + xs(a, c, l) + ws[f] + w[f] | 0, L = (m(n, 2) ^ m(n, 13) ^ m(n, 22)) + gs(n, i, r) | 0;
|
|
1301
|
+
h = l, l = c, c = a, a = o + p | 0, o = r, r = i, i = n, n = p + L | 0;
|
|
1302
1302
|
}
|
|
1303
|
-
|
|
1303
|
+
n = n + this.A | 0, i = i + this.B | 0, r = r + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, h = h + this.H | 0, this.set(n, i, r, o, a, c, l, h);
|
|
1304
1304
|
}
|
|
1305
1305
|
roundClean() {
|
|
1306
1306
|
w.fill(0);
|
|
@@ -1309,76 +1309,76 @@ class mn extends bn {
|
|
|
1309
1309
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
const
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1312
|
+
const Bs = /* @__PURE__ */ Se(() => new Es());
|
|
1313
|
+
function Ps(e, t) {
|
|
1314
|
+
return Bs(K(e, { strict: !1 }) ? Ue(e) : e);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
const { commitment: t, version:
|
|
1318
|
-
return i.set([
|
|
1316
|
+
function vs(e) {
|
|
1317
|
+
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), i = Ps(t);
|
|
1318
|
+
return i.set([s], 0), n === "bytes" ? i : I(i);
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1321
|
-
const { commitments: t, version:
|
|
1320
|
+
function Is(e) {
|
|
1321
|
+
const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), i = [];
|
|
1322
1322
|
for (const r of t)
|
|
1323
|
-
i.push(
|
|
1323
|
+
i.push(vs({
|
|
1324
1324
|
commitment: r,
|
|
1325
|
-
to:
|
|
1326
|
-
version:
|
|
1325
|
+
to: n,
|
|
1326
|
+
version: s
|
|
1327
1327
|
}));
|
|
1328
1328
|
return i;
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1330
|
+
const Pe = 6, Qe = 32, fe = 4096, Ze = Qe * fe, ve = Ze * Pe - // terminator byte (0x80).
|
|
1331
1331
|
1 - // zero byte (0x00) appended to each field element.
|
|
1332
|
-
1 *
|
|
1333
|
-
class
|
|
1334
|
-
constructor({ maxSize: t, size:
|
|
1332
|
+
1 * fe * Pe, et = 1;
|
|
1333
|
+
class Ts extends u {
|
|
1334
|
+
constructor({ maxSize: t, size: s }) {
|
|
1335
1335
|
super("Blob size is too large.", {
|
|
1336
|
-
metaMessages: [`Max: ${t} bytes`, `Given: ${
|
|
1336
|
+
metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
|
|
1337
1337
|
name: "BlobSizeTooLargeError"
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
|
-
class
|
|
1341
|
+
class tt extends u {
|
|
1342
1342
|
constructor() {
|
|
1343
1343
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
class
|
|
1347
|
-
constructor({ hash: t, size:
|
|
1346
|
+
class $s extends u {
|
|
1347
|
+
constructor({ hash: t, size: s }) {
|
|
1348
1348
|
super(`Versioned hash "${t}" size is invalid.`, {
|
|
1349
|
-
metaMessages: ["Expected: 32", `Received: ${
|
|
1349
|
+
metaMessages: ["Expected: 32", `Received: ${s}`],
|
|
1350
1350
|
name: "InvalidVersionedHashSizeError"
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
class
|
|
1355
|
-
constructor({ hash: t, version:
|
|
1354
|
+
class Fs extends u {
|
|
1355
|
+
constructor({ hash: t, version: s }) {
|
|
1356
1356
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1357
1357
|
metaMessages: [
|
|
1358
|
-
`Expected: ${
|
|
1359
|
-
`Received: ${
|
|
1358
|
+
`Expected: ${et}`,
|
|
1359
|
+
`Received: ${s}`
|
|
1360
1360
|
],
|
|
1361
1361
|
name: "InvalidVersionedHashVersionError"
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1366
|
-
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"),
|
|
1367
|
-
if (!
|
|
1368
|
-
throw new
|
|
1369
|
-
if (
|
|
1370
|
-
throw new
|
|
1371
|
-
maxSize:
|
|
1372
|
-
size:
|
|
1365
|
+
function As(e) {
|
|
1366
|
+
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? A(e.data) : e.data, n = B(s);
|
|
1367
|
+
if (!n)
|
|
1368
|
+
throw new tt();
|
|
1369
|
+
if (n > ve)
|
|
1370
|
+
throw new Ts({
|
|
1371
|
+
maxSize: ve,
|
|
1372
|
+
size: n
|
|
1373
1373
|
});
|
|
1374
1374
|
const i = [];
|
|
1375
1375
|
let r = !0, o = 0;
|
|
1376
1376
|
for (; r; ) {
|
|
1377
|
-
const a =
|
|
1377
|
+
const a = Ve(new Uint8Array(Ze));
|
|
1378
1378
|
let c = 0;
|
|
1379
|
-
for (; c <
|
|
1380
|
-
const
|
|
1381
|
-
if (a.pushByte(0), a.pushBytes(
|
|
1379
|
+
for (; c < fe; ) {
|
|
1380
|
+
const l = s.slice(o, o + (Qe - 1));
|
|
1381
|
+
if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
|
|
1382
1382
|
a.pushByte(128), r = !1;
|
|
1383
1383
|
break;
|
|
1384
1384
|
}
|
|
@@ -1388,8 +1388,8 @@ function vn(e) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return t === "bytes" ? i.map((a) => a.bytes) : i.map((a) => I(a.bytes));
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
const { data: t, kzg:
|
|
1391
|
+
function Us(e) {
|
|
1392
|
+
const { data: t, kzg: s, to: n } = e, i = e.blobs ?? As({ data: t, to: n }), r = e.commitments ?? Ye({ blobs: i, kzg: s, to: n }), o = e.proofs ?? Je({ blobs: i, commitments: r, kzg: s, to: n }), a = [];
|
|
1393
1393
|
for (let c = 0; c < i.length; c++)
|
|
1394
1394
|
a.push({
|
|
1395
1395
|
blob: i[c],
|
|
@@ -1398,7 +1398,7 @@ function Tn(e) {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
return a;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Cs(e) {
|
|
1402
1402
|
if (e.type)
|
|
1403
1403
|
return e.type;
|
|
1404
1404
|
if (typeof e.authorizationList < "u")
|
|
@@ -1409,9 +1409,9 @@ function $n(e) {
|
|
|
1409
1409
|
return "eip1559";
|
|
1410
1410
|
if (typeof e.gasPrice < "u")
|
|
1411
1411
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1412
|
-
throw new
|
|
1412
|
+
throw new es({ transaction: e });
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function zs(e, { args: t, eventName: s } = {}) {
|
|
1415
1415
|
return {
|
|
1416
1416
|
...e,
|
|
1417
1417
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -1419,36 +1419,36 @@ function zn(e, { args: t, eventName: n } = {}) {
|
|
|
1419
1419
|
logIndex: e.logIndex ? Number(e.logIndex) : null,
|
|
1420
1420
|
transactionHash: e.transactionHash ? e.transactionHash : null,
|
|
1421
1421
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1422
|
-
...
|
|
1422
|
+
...s ? { args: t, eventName: s } : {}
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
class
|
|
1426
|
-
constructor({ blockNumber: t, chain:
|
|
1427
|
-
super(`Chain "${
|
|
1425
|
+
class bn extends u {
|
|
1426
|
+
constructor({ blockNumber: t, chain: s, contract: n }) {
|
|
1427
|
+
super(`Chain "${s.name}" does not support contract "${n.name}".`, {
|
|
1428
1428
|
metaMessages: [
|
|
1429
1429
|
"This could be due to any of the following:",
|
|
1430
|
-
...t &&
|
|
1431
|
-
`- The contract "${
|
|
1430
|
+
...t && n.blockCreated && n.blockCreated > t ? [
|
|
1431
|
+
`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`
|
|
1432
1432
|
] : [
|
|
1433
|
-
`- The chain does not have the contract "${
|
|
1433
|
+
`- The chain does not have the contract "${n.name}" configured.`
|
|
1434
1434
|
]
|
|
1435
1435
|
],
|
|
1436
1436
|
name: "ChainDoesNotSupportContract"
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
class
|
|
1441
|
-
constructor({ chain: t, currentChainId:
|
|
1442
|
-
super(`The current chain of the wallet (id: ${
|
|
1440
|
+
class mn extends u {
|
|
1441
|
+
constructor({ chain: t, currentChainId: s }) {
|
|
1442
|
+
super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
|
|
1443
1443
|
metaMessages: [
|
|
1444
|
-
`Current Chain ID: ${
|
|
1444
|
+
`Current Chain ID: ${s}`,
|
|
1445
1445
|
`Expected Chain ID: ${t.id} – ${t.name}`
|
|
1446
1446
|
],
|
|
1447
1447
|
name: "ChainMismatchError"
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
class
|
|
1451
|
+
class xn extends u {
|
|
1452
1452
|
constructor() {
|
|
1453
1453
|
super([
|
|
1454
1454
|
"No chain was provided to the request.",
|
|
@@ -1459,19 +1459,19 @@ class ds extends u {
|
|
|
1459
1459
|
});
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
class
|
|
1462
|
+
class gn extends u {
|
|
1463
1463
|
constructor() {
|
|
1464
1464
|
super("No chain was provided to the Client.", {
|
|
1465
1465
|
name: "ClientChainNotConfiguredError"
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class
|
|
1469
|
+
class te extends u {
|
|
1470
1470
|
constructor({ chainId: t }) {
|
|
1471
1471
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function z(e) {
|
|
1475
1475
|
return {
|
|
1476
1476
|
formatters: void 0,
|
|
1477
1477
|
fees: void 0,
|
|
@@ -1479,11 +1479,11 @@ function Q(e) {
|
|
|
1479
1479
|
...e
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1482
|
+
const Ls = {
|
|
1483
1483
|
"0x0": "reverted",
|
|
1484
1484
|
"0x1": "success"
|
|
1485
1485
|
};
|
|
1486
|
-
function
|
|
1486
|
+
function Ss(e) {
|
|
1487
1487
|
const t = {
|
|
1488
1488
|
...e,
|
|
1489
1489
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1491,220 +1491,220 @@ function Un(e) {
|
|
|
1491
1491
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1492
1492
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1493
1493
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1494
|
-
logs: e.logs ? e.logs.map((
|
|
1494
|
+
logs: e.logs ? e.logs.map((s) => zs(s)) : null,
|
|
1495
1495
|
to: e.to ? e.to : null,
|
|
1496
|
-
transactionIndex: e.transactionIndex ?
|
|
1497
|
-
status: e.status ?
|
|
1498
|
-
type: e.type ?
|
|
1496
|
+
transactionIndex: e.transactionIndex ? Y(e.transactionIndex) : null,
|
|
1497
|
+
status: e.status ? Ls[e.status] : null,
|
|
1498
|
+
type: e.type ? qe[e.type] || e.type : null
|
|
1499
1499
|
};
|
|
1500
1500
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1503
|
-
function
|
|
1502
|
+
const ks = /* @__PURE__ */ ce("transactionReceipt", Ss);
|
|
1503
|
+
function Gs(e) {
|
|
1504
1504
|
const { authorizationList: t } = e;
|
|
1505
1505
|
if (t)
|
|
1506
|
-
for (const
|
|
1507
|
-
const { contractAddress:
|
|
1508
|
-
if (!
|
|
1509
|
-
throw new
|
|
1506
|
+
for (const s of t) {
|
|
1507
|
+
const { contractAddress: n, chainId: i } = s;
|
|
1508
|
+
if (!v(n))
|
|
1509
|
+
throw new P({ address: n });
|
|
1510
1510
|
if (i < 0)
|
|
1511
|
-
throw new
|
|
1511
|
+
throw new te({ chainId: i });
|
|
1512
1512
|
}
|
|
1513
|
-
|
|
1513
|
+
de(e);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Hs(e) {
|
|
1516
1516
|
const { blobVersionedHashes: t } = e;
|
|
1517
1517
|
if (t) {
|
|
1518
1518
|
if (t.length === 0)
|
|
1519
|
-
throw new
|
|
1520
|
-
for (const
|
|
1521
|
-
const
|
|
1522
|
-
if (
|
|
1523
|
-
throw new
|
|
1524
|
-
if (i !==
|
|
1525
|
-
throw new
|
|
1526
|
-
hash:
|
|
1519
|
+
throw new tt();
|
|
1520
|
+
for (const s of t) {
|
|
1521
|
+
const n = B(s), i = Y(jt(s, 0, 1));
|
|
1522
|
+
if (n !== 32)
|
|
1523
|
+
throw new $s({ hash: s, size: n });
|
|
1524
|
+
if (i !== et)
|
|
1525
|
+
throw new Fs({
|
|
1526
|
+
hash: s,
|
|
1527
1527
|
version: i
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1531
|
+
de(e);
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
const { chainId: t, maxPriorityFeePerGas:
|
|
1533
|
+
function de(e) {
|
|
1534
|
+
const { chainId: t, maxPriorityFeePerGas: s, maxFeePerGas: n, to: i } = e;
|
|
1535
1535
|
if (t <= 0)
|
|
1536
|
-
throw new
|
|
1537
|
-
if (i && !
|
|
1538
|
-
throw new
|
|
1539
|
-
if (
|
|
1540
|
-
throw new
|
|
1541
|
-
if (
|
|
1542
|
-
throw new
|
|
1543
|
-
}
|
|
1544
|
-
function
|
|
1545
|
-
const { chainId: t, maxPriorityFeePerGas:
|
|
1536
|
+
throw new te({ chainId: t });
|
|
1537
|
+
if (i && !v(i))
|
|
1538
|
+
throw new P({ address: i });
|
|
1539
|
+
if (n && n > ue)
|
|
1540
|
+
throw new ee({ maxFeePerGas: n });
|
|
1541
|
+
if (s && n && s > n)
|
|
1542
|
+
throw new Xe({ maxFeePerGas: n, maxPriorityFeePerGas: s });
|
|
1543
|
+
}
|
|
1544
|
+
function Os(e) {
|
|
1545
|
+
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: i, to: r } = e;
|
|
1546
1546
|
if (t <= 0)
|
|
1547
|
-
throw new
|
|
1548
|
-
if (r && !
|
|
1549
|
-
throw new
|
|
1550
|
-
if (
|
|
1547
|
+
throw new te({ chainId: t });
|
|
1548
|
+
if (r && !v(r))
|
|
1549
|
+
throw new P({ address: r });
|
|
1550
|
+
if (s || i)
|
|
1551
1551
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
1552
|
-
if (
|
|
1553
|
-
throw new
|
|
1552
|
+
if (n && n > ue)
|
|
1553
|
+
throw new ee({ maxFeePerGas: n });
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const { chainId: t, maxPriorityFeePerGas:
|
|
1557
|
-
if (r && !
|
|
1558
|
-
throw new
|
|
1555
|
+
function Ns(e) {
|
|
1556
|
+
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: i, to: r } = e;
|
|
1557
|
+
if (r && !v(r))
|
|
1558
|
+
throw new P({ address: r });
|
|
1559
1559
|
if (typeof t < "u" && t <= 0)
|
|
1560
|
-
throw new
|
|
1561
|
-
if (
|
|
1560
|
+
throw new te({ chainId: t });
|
|
1561
|
+
if (s || i)
|
|
1562
1562
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
1563
|
-
if (
|
|
1564
|
-
throw new
|
|
1563
|
+
if (n && n > ue)
|
|
1564
|
+
throw new ee({ maxFeePerGas: n });
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function Ms(e) {
|
|
1567
1567
|
if (!e || e.length === 0)
|
|
1568
1568
|
return [];
|
|
1569
1569
|
const t = [];
|
|
1570
|
-
for (const
|
|
1571
|
-
const { contractAddress:
|
|
1570
|
+
for (const s of e) {
|
|
1571
|
+
const { contractAddress: n, chainId: i, nonce: r, ...o } = s;
|
|
1572
1572
|
t.push([
|
|
1573
1573
|
i ? d(i) : "0x",
|
|
1574
|
-
|
|
1574
|
+
n,
|
|
1575
1575
|
r ? d(r) : "0x",
|
|
1576
|
-
...
|
|
1576
|
+
...W({}, o)
|
|
1577
1577
|
]);
|
|
1578
1578
|
}
|
|
1579
1579
|
return t;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function se(e) {
|
|
1582
1582
|
if (!e || e.length === 0)
|
|
1583
1583
|
return [];
|
|
1584
1584
|
const t = [];
|
|
1585
|
-
for (let
|
|
1586
|
-
const { address:
|
|
1585
|
+
for (let s = 0; s < e.length; s++) {
|
|
1586
|
+
const { address: n, storageKeys: i } = e[s];
|
|
1587
1587
|
for (let r = 0; r < i.length; r++)
|
|
1588
1588
|
if (i[r].length - 2 !== 64)
|
|
1589
|
-
throw new
|
|
1590
|
-
if (!
|
|
1591
|
-
throw new
|
|
1592
|
-
t.push([
|
|
1589
|
+
throw new ts({ storageKey: i[r] });
|
|
1590
|
+
if (!v(n, { strict: !1 }))
|
|
1591
|
+
throw new P({ address: n });
|
|
1592
|
+
t.push([n, i]);
|
|
1593
1593
|
}
|
|
1594
1594
|
return t;
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const
|
|
1598
|
-
return
|
|
1596
|
+
function _s(e, t) {
|
|
1597
|
+
const s = Cs(e);
|
|
1598
|
+
return s === "eip1559" ? js(e, t) : s === "eip2930" ? Rs(e, t) : s === "eip4844" ? Ds(e, t) : s === "eip7702" ? Vs(e, t) : Ks(e, t);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const { authorizationList:
|
|
1602
|
-
|
|
1603
|
-
const b =
|
|
1604
|
-
return
|
|
1600
|
+
function Vs(e, t) {
|
|
1601
|
+
const { authorizationList: s, chainId: n, gas: i, nonce: r, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: f } = e;
|
|
1602
|
+
Gs(e);
|
|
1603
|
+
const b = se(h), p = Ms(s);
|
|
1604
|
+
return O([
|
|
1605
1605
|
"0x04",
|
|
1606
|
-
|
|
1607
|
-
d(
|
|
1606
|
+
U([
|
|
1607
|
+
d(n),
|
|
1608
1608
|
r ? d(r) : "0x",
|
|
1609
|
-
|
|
1609
|
+
l ? d(l) : "0x",
|
|
1610
1610
|
c ? d(c) : "0x",
|
|
1611
1611
|
i ? d(i) : "0x",
|
|
1612
1612
|
o ?? "0x",
|
|
1613
1613
|
a ? d(a) : "0x",
|
|
1614
|
-
|
|
1614
|
+
f ?? "0x",
|
|
1615
1615
|
b,
|
|
1616
1616
|
p,
|
|
1617
|
-
...
|
|
1617
|
+
...W(e, t)
|
|
1618
1618
|
])
|
|
1619
1619
|
]);
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1622
|
-
const { chainId:
|
|
1623
|
-
|
|
1621
|
+
function Ds(e, t) {
|
|
1622
|
+
const { chainId: s, gas: n, nonce: i, to: r, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: f } = e;
|
|
1623
|
+
Hs(e);
|
|
1624
1624
|
let b = e.blobVersionedHashes, p = e.sidecars;
|
|
1625
1625
|
if (e.blobs && (typeof b > "u" || typeof p > "u")) {
|
|
1626
|
-
const
|
|
1627
|
-
blobs:
|
|
1628
|
-
kzg:
|
|
1626
|
+
const T = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((M) => I(M)), X = e.kzg, N = Ye({
|
|
1627
|
+
blobs: T,
|
|
1628
|
+
kzg: X
|
|
1629
1629
|
});
|
|
1630
|
-
if (typeof b > "u" && (b =
|
|
1631
|
-
commitments:
|
|
1630
|
+
if (typeof b > "u" && (b = Is({
|
|
1631
|
+
commitments: N
|
|
1632
1632
|
})), typeof p > "u") {
|
|
1633
|
-
const
|
|
1634
|
-
p =
|
|
1633
|
+
const M = Je({ blobs: T, commitments: N, kzg: X });
|
|
1634
|
+
p = Us({ blobs: T, commitments: N, proofs: M });
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
const g =
|
|
1638
|
-
d(
|
|
1637
|
+
const g = se(h), L = [
|
|
1638
|
+
d(s),
|
|
1639
1639
|
i ? d(i) : "0x",
|
|
1640
|
-
|
|
1640
|
+
l ? d(l) : "0x",
|
|
1641
1641
|
c ? d(c) : "0x",
|
|
1642
|
-
|
|
1642
|
+
n ? d(n) : "0x",
|
|
1643
1643
|
r ?? "0x",
|
|
1644
1644
|
o ? d(o) : "0x",
|
|
1645
|
-
|
|
1645
|
+
f ?? "0x",
|
|
1646
1646
|
g,
|
|
1647
1647
|
a ? d(a) : "0x",
|
|
1648
1648
|
b ?? [],
|
|
1649
|
-
...
|
|
1650
|
-
],
|
|
1649
|
+
...W(e, t)
|
|
1650
|
+
], he = [], pe = [], be = [];
|
|
1651
1651
|
if (p)
|
|
1652
|
-
for (let
|
|
1653
|
-
const { blob:
|
|
1654
|
-
|
|
1652
|
+
for (let T = 0; T < p.length; T++) {
|
|
1653
|
+
const { blob: X, commitment: N, proof: M } = p[T];
|
|
1654
|
+
he.push(X), pe.push(N), be.push(M);
|
|
1655
1655
|
}
|
|
1656
|
-
return
|
|
1656
|
+
return O([
|
|
1657
1657
|
"0x03",
|
|
1658
1658
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1659
|
-
|
|
1659
|
+
U(p ? [L, he, pe, be] : L)
|
|
1660
1660
|
]);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
const { chainId:
|
|
1664
|
-
|
|
1665
|
-
const
|
|
1666
|
-
d(
|
|
1662
|
+
function js(e, t) {
|
|
1663
|
+
const { chainId: s, gas: n, nonce: i, to: r, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
|
|
1664
|
+
de(e);
|
|
1665
|
+
const f = se(l), b = [
|
|
1666
|
+
d(s),
|
|
1667
1667
|
i ? d(i) : "0x",
|
|
1668
1668
|
c ? d(c) : "0x",
|
|
1669
1669
|
a ? d(a) : "0x",
|
|
1670
|
-
|
|
1670
|
+
n ? d(n) : "0x",
|
|
1671
1671
|
r ?? "0x",
|
|
1672
1672
|
o ? d(o) : "0x",
|
|
1673
1673
|
h ?? "0x",
|
|
1674
|
-
|
|
1675
|
-
...
|
|
1674
|
+
f,
|
|
1675
|
+
...W(e, t)
|
|
1676
1676
|
];
|
|
1677
|
-
return
|
|
1677
|
+
return O([
|
|
1678
1678
|
"0x02",
|
|
1679
|
-
|
|
1679
|
+
U(b)
|
|
1680
1680
|
]);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1683
|
-
const { chainId:
|
|
1684
|
-
|
|
1685
|
-
const h =
|
|
1686
|
-
d(
|
|
1682
|
+
function Rs(e, t) {
|
|
1683
|
+
const { chainId: s, gas: n, data: i, nonce: r, to: o, value: a, accessList: c, gasPrice: l } = e;
|
|
1684
|
+
Os(e);
|
|
1685
|
+
const h = se(c), f = [
|
|
1686
|
+
d(s),
|
|
1687
1687
|
r ? d(r) : "0x",
|
|
1688
|
-
|
|
1689
|
-
|
|
1688
|
+
l ? d(l) : "0x",
|
|
1689
|
+
n ? d(n) : "0x",
|
|
1690
1690
|
o ?? "0x",
|
|
1691
1691
|
a ? d(a) : "0x",
|
|
1692
1692
|
i ?? "0x",
|
|
1693
1693
|
h,
|
|
1694
|
-
...
|
|
1694
|
+
...W(e, t)
|
|
1695
1695
|
];
|
|
1696
|
-
return
|
|
1696
|
+
return O([
|
|
1697
1697
|
"0x01",
|
|
1698
|
-
|
|
1698
|
+
U(f)
|
|
1699
1699
|
]);
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1702
|
-
const { chainId:
|
|
1703
|
-
|
|
1704
|
-
let
|
|
1701
|
+
function Ks(e, t) {
|
|
1702
|
+
const { chainId: s = 0, gas: n, data: i, nonce: r, to: o, value: a, gasPrice: c } = e;
|
|
1703
|
+
Ns(e);
|
|
1704
|
+
let l = [
|
|
1705
1705
|
r ? d(r) : "0x",
|
|
1706
1706
|
c ? d(c) : "0x",
|
|
1707
|
-
|
|
1707
|
+
n ? d(n) : "0x",
|
|
1708
1708
|
o ?? "0x",
|
|
1709
1709
|
a ? d(a) : "0x",
|
|
1710
1710
|
i ?? "0x"
|
|
@@ -1713,39 +1713,39 @@ function _n(e, t) {
|
|
|
1713
1713
|
const h = (() => {
|
|
1714
1714
|
if (t.v >= 35n)
|
|
1715
1715
|
return (t.v - 35n) / 2n > 0 ? t.v : 27n + (t.v === 35n ? 0n : 1n);
|
|
1716
|
-
if (
|
|
1717
|
-
return BigInt(
|
|
1716
|
+
if (s > 0)
|
|
1717
|
+
return BigInt(s * 2) + BigInt(35n + t.v - 27n);
|
|
1718
1718
|
const p = 27n + (t.v === 27n ? 0n : 1n);
|
|
1719
1719
|
if (t.v !== p)
|
|
1720
|
-
throw new
|
|
1720
|
+
throw new Zt({ v: t.v });
|
|
1721
1721
|
return p;
|
|
1722
|
-
})(),
|
|
1723
|
-
|
|
1724
|
-
...
|
|
1722
|
+
})(), f = $(t.r), b = $(t.s);
|
|
1723
|
+
l = [
|
|
1724
|
+
...l,
|
|
1725
1725
|
d(h),
|
|
1726
|
-
|
|
1726
|
+
f === "0x00" ? "0x" : f,
|
|
1727
1727
|
b === "0x00" ? "0x" : b
|
|
1728
1728
|
];
|
|
1729
|
-
} else
|
|
1730
|
-
...
|
|
1731
|
-
d(
|
|
1729
|
+
} else s > 0 && (l = [
|
|
1730
|
+
...l,
|
|
1731
|
+
d(s),
|
|
1732
1732
|
"0x",
|
|
1733
1733
|
"0x"
|
|
1734
1734
|
]);
|
|
1735
|
-
return
|
|
1735
|
+
return U(l);
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1738
|
-
const
|
|
1739
|
-
if (typeof
|
|
1737
|
+
function W(e, t) {
|
|
1738
|
+
const s = t ?? e, { v: n, yParity: i } = s;
|
|
1739
|
+
if (typeof s.r > "u")
|
|
1740
1740
|
return [];
|
|
1741
|
-
if (typeof
|
|
1741
|
+
if (typeof s.s > "u")
|
|
1742
1742
|
return [];
|
|
1743
|
-
if (typeof
|
|
1743
|
+
if (typeof n > "u" && typeof i > "u")
|
|
1744
1744
|
return [];
|
|
1745
|
-
const r =
|
|
1746
|
-
return [typeof i == "number" ? i ? d(1) : "0x" :
|
|
1745
|
+
const r = $(s.r), o = $(s.s);
|
|
1746
|
+
return [typeof i == "number" ? i ? d(1) : "0x" : n === 0n ? "0x" : n === 1n ? d(1) : n === 27n ? "0x" : d(1), r === "0x00" ? "0x" : r, o === "0x00" ? "0x" : o];
|
|
1747
1747
|
}
|
|
1748
|
-
const
|
|
1748
|
+
const Ws = {
|
|
1749
1749
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
1750
1750
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
1751
1751
|
l2CrossDomainMessenger: {
|
|
@@ -1756,77 +1756,77 @@ const jn = {
|
|
|
1756
1756
|
l2ToL1MessagePasser: {
|
|
1757
1757
|
address: "0x4200000000000000000000000000000000000016"
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1760
|
-
block: /* @__PURE__ */
|
|
1759
|
+
}, Xs = {
|
|
1760
|
+
block: /* @__PURE__ */ bs({
|
|
1761
1761
|
format(e) {
|
|
1762
|
-
var
|
|
1762
|
+
var s;
|
|
1763
1763
|
return {
|
|
1764
|
-
transactions: (
|
|
1765
|
-
if (typeof
|
|
1766
|
-
return
|
|
1767
|
-
const i =
|
|
1768
|
-
return i.typeHex === "0x7e" && (i.isSystemTx =
|
|
1764
|
+
transactions: (s = e.transactions) == null ? void 0 : s.map((n) => {
|
|
1765
|
+
if (typeof n == "string")
|
|
1766
|
+
return n;
|
|
1767
|
+
const i = le(n);
|
|
1768
|
+
return i.typeHex === "0x7e" && (i.isSystemTx = n.isSystemTx, i.mint = n.mint ? k(n.mint) : void 0, i.sourceHash = n.sourceHash, i.type = "deposit"), i;
|
|
1769
1769
|
}),
|
|
1770
1770
|
stateRoot: e.stateRoot
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
1773
|
}),
|
|
1774
|
-
transaction: /* @__PURE__ */
|
|
1774
|
+
transaction: /* @__PURE__ */ ds({
|
|
1775
1775
|
format(e) {
|
|
1776
1776
|
const t = {};
|
|
1777
|
-
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ?
|
|
1777
|
+
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? k(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
1778
1778
|
}
|
|
1779
1779
|
}),
|
|
1780
|
-
transactionReceipt: /* @__PURE__ */
|
|
1780
|
+
transactionReceipt: /* @__PURE__ */ ks({
|
|
1781
1781
|
format(e) {
|
|
1782
1782
|
return {
|
|
1783
|
-
l1GasPrice: e.l1GasPrice ?
|
|
1784
|
-
l1GasUsed: e.l1GasUsed ?
|
|
1785
|
-
l1Fee: e.l1Fee ?
|
|
1783
|
+
l1GasPrice: e.l1GasPrice ? k(e.l1GasPrice) : null,
|
|
1784
|
+
l1GasUsed: e.l1GasUsed ? k(e.l1GasUsed) : null,
|
|
1785
|
+
l1Fee: e.l1Fee ? k(e.l1Fee) : null,
|
|
1786
1786
|
l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
1789
|
})
|
|
1790
1790
|
};
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1791
|
+
function qs(e, t) {
|
|
1792
|
+
return Qs(e) ? Js(e) : _s(e, t);
|
|
1793
1793
|
}
|
|
1794
|
-
const
|
|
1795
|
-
transaction:
|
|
1794
|
+
const Ys = {
|
|
1795
|
+
transaction: qs
|
|
1796
1796
|
};
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1799
|
-
const { sourceHash: t, data:
|
|
1797
|
+
function Js(e) {
|
|
1798
|
+
Zs(e);
|
|
1799
|
+
const { sourceHash: t, data: s, from: n, gas: i, isSystemTx: r, mint: o, to: a, value: c } = e, l = [
|
|
1800
1800
|
t,
|
|
1801
|
-
|
|
1801
|
+
n,
|
|
1802
1802
|
a ?? "0x",
|
|
1803
1803
|
o ? d(o) : "0x",
|
|
1804
1804
|
c ? d(c) : "0x",
|
|
1805
1805
|
i ? d(i) : "0x",
|
|
1806
1806
|
r ? "0x1" : "0x",
|
|
1807
|
-
|
|
1807
|
+
s ?? "0x"
|
|
1808
1808
|
];
|
|
1809
|
-
return
|
|
1809
|
+
return O([
|
|
1810
1810
|
"0x7e",
|
|
1811
|
-
|
|
1811
|
+
U(l)
|
|
1812
1812
|
]);
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function Qs(e) {
|
|
1815
1815
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1818
|
-
const { from: t, to:
|
|
1819
|
-
if (t && !
|
|
1820
|
-
throw new
|
|
1821
|
-
if (
|
|
1822
|
-
throw new
|
|
1823
|
-
}
|
|
1824
|
-
const
|
|
1825
|
-
contracts:
|
|
1826
|
-
formatters:
|
|
1827
|
-
serializers:
|
|
1828
|
-
},
|
|
1829
|
-
...
|
|
1817
|
+
function Zs(e) {
|
|
1818
|
+
const { from: t, to: s } = e;
|
|
1819
|
+
if (t && !v(t))
|
|
1820
|
+
throw new P({ address: t });
|
|
1821
|
+
if (s && !v(s))
|
|
1822
|
+
throw new P({ address: s });
|
|
1823
|
+
}
|
|
1824
|
+
const G = {
|
|
1825
|
+
contracts: Ws,
|
|
1826
|
+
formatters: Xs,
|
|
1827
|
+
serializers: Ys
|
|
1828
|
+
}, D = 1, st = /* @__PURE__ */ z({
|
|
1829
|
+
...G,
|
|
1830
1830
|
id: 8453,
|
|
1831
1831
|
name: "Base",
|
|
1832
1832
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1843,14 +1843,14 @@ const Ee = {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
},
|
|
1845
1845
|
contracts: {
|
|
1846
|
-
...
|
|
1846
|
+
...G.contracts,
|
|
1847
1847
|
disputeGameFactory: {
|
|
1848
|
-
[
|
|
1848
|
+
[D]: {
|
|
1849
1849
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
1850
1850
|
}
|
|
1851
1851
|
},
|
|
1852
1852
|
l2OutputOracle: {
|
|
1853
|
-
[
|
|
1853
|
+
[D]: {
|
|
1854
1854
|
address: "0x56315b90c40730925ec5485cf004d835058518A0"
|
|
1855
1855
|
}
|
|
1856
1856
|
},
|
|
@@ -1859,20 +1859,69 @@ const Ee = {
|
|
|
1859
1859
|
blockCreated: 5022
|
|
1860
1860
|
},
|
|
1861
1861
|
portal: {
|
|
1862
|
-
[
|
|
1862
|
+
[D]: {
|
|
1863
1863
|
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
|
|
1864
1864
|
blockCreated: 17482143
|
|
1865
1865
|
}
|
|
1866
1866
|
},
|
|
1867
1867
|
l1StandardBridge: {
|
|
1868
|
-
[
|
|
1868
|
+
[D]: {
|
|
1869
1869
|
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
|
|
1870
1870
|
blockCreated: 17482143
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
},
|
|
1874
|
-
sourceId:
|
|
1875
|
-
}),
|
|
1874
|
+
sourceId: D
|
|
1875
|
+
}), j = 11155111, nt = /* @__PURE__ */ z({
|
|
1876
|
+
...G,
|
|
1877
|
+
id: 84532,
|
|
1878
|
+
network: "base-sepolia",
|
|
1879
|
+
name: "Base Sepolia",
|
|
1880
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
1881
|
+
rpcUrls: {
|
|
1882
|
+
default: {
|
|
1883
|
+
http: ["https://sepolia.base.org"]
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
blockExplorers: {
|
|
1887
|
+
default: {
|
|
1888
|
+
name: "Basescan",
|
|
1889
|
+
url: "https://sepolia.basescan.org",
|
|
1890
|
+
apiUrl: "https://api-sepolia.basescan.org/api"
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
contracts: {
|
|
1894
|
+
...G.contracts,
|
|
1895
|
+
disputeGameFactory: {
|
|
1896
|
+
[j]: {
|
|
1897
|
+
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
l2OutputOracle: {
|
|
1901
|
+
[j]: {
|
|
1902
|
+
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
1903
|
+
}
|
|
1904
|
+
},
|
|
1905
|
+
portal: {
|
|
1906
|
+
[j]: {
|
|
1907
|
+
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
1908
|
+
blockCreated: 4446677
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1911
|
+
l1StandardBridge: {
|
|
1912
|
+
[j]: {
|
|
1913
|
+
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
1914
|
+
blockCreated: 4446677
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
multicall3: {
|
|
1918
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
1919
|
+
blockCreated: 1059647
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
testnet: !0,
|
|
1923
|
+
sourceId: j
|
|
1924
|
+
}), it = /* @__PURE__ */ z({
|
|
1876
1925
|
id: 56,
|
|
1877
1926
|
name: "BNB Smart Chain",
|
|
1878
1927
|
nativeCurrency: {
|
|
@@ -1896,7 +1945,7 @@ const Ee = {
|
|
|
1896
1945
|
blockCreated: 15921452
|
|
1897
1946
|
}
|
|
1898
1947
|
}
|
|
1899
|
-
}),
|
|
1948
|
+
}), rt = /* @__PURE__ */ z({
|
|
1900
1949
|
id: 17e3,
|
|
1901
1950
|
name: "Holesky",
|
|
1902
1951
|
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1927,7 +1976,7 @@ const Ee = {
|
|
|
1927
1976
|
}
|
|
1928
1977
|
},
|
|
1929
1978
|
testnet: !0
|
|
1930
|
-
}),
|
|
1979
|
+
}), ot = /* @__PURE__ */ z({
|
|
1931
1980
|
id: 1,
|
|
1932
1981
|
name: "Ethereum",
|
|
1933
1982
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1956,93 +2005,170 @@ const Ee = {
|
|
|
1956
2005
|
blockCreated: 14353601
|
|
1957
2006
|
}
|
|
1958
2007
|
}
|
|
2008
|
+
}), R = 11155111, at = /* @__PURE__ */ z({
|
|
2009
|
+
...G,
|
|
2010
|
+
id: 11155420,
|
|
2011
|
+
name: "OP Sepolia",
|
|
2012
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
2013
|
+
rpcUrls: {
|
|
2014
|
+
default: {
|
|
2015
|
+
http: ["https://sepolia.optimism.io"]
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
blockExplorers: {
|
|
2019
|
+
default: {
|
|
2020
|
+
name: "Blockscout",
|
|
2021
|
+
url: "https://optimism-sepolia.blockscout.com",
|
|
2022
|
+
apiUrl: "https://optimism-sepolia.blockscout.com/api"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
contracts: {
|
|
2026
|
+
...G.contracts,
|
|
2027
|
+
disputeGameFactory: {
|
|
2028
|
+
[R]: {
|
|
2029
|
+
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
l2OutputOracle: {
|
|
2033
|
+
[R]: {
|
|
2034
|
+
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
multicall3: {
|
|
2038
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
2039
|
+
blockCreated: 1620204
|
|
2040
|
+
},
|
|
2041
|
+
portal: {
|
|
2042
|
+
[R]: {
|
|
2043
|
+
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
2044
|
+
}
|
|
2045
|
+
},
|
|
2046
|
+
l1StandardBridge: {
|
|
2047
|
+
[R]: {
|
|
2048
|
+
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
testnet: !0,
|
|
2053
|
+
sourceId: R
|
|
2054
|
+
}), ct = /* @__PURE__ */ z({
|
|
2055
|
+
id: 11155111,
|
|
2056
|
+
name: "Sepolia",
|
|
2057
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
2058
|
+
rpcUrls: {
|
|
2059
|
+
default: {
|
|
2060
|
+
http: ["https://sepolia.drpc.org"]
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2063
|
+
blockExplorers: {
|
|
2064
|
+
default: {
|
|
2065
|
+
name: "Etherscan",
|
|
2066
|
+
url: "https://sepolia.etherscan.io",
|
|
2067
|
+
apiUrl: "https://api-sepolia.etherscan.io/api"
|
|
2068
|
+
}
|
|
2069
|
+
},
|
|
2070
|
+
contracts: {
|
|
2071
|
+
multicall3: {
|
|
2072
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
2073
|
+
blockCreated: 751532
|
|
2074
|
+
},
|
|
2075
|
+
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
2076
|
+
ensUniversalResolver: {
|
|
2077
|
+
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
2078
|
+
blockCreated: 5317080
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
testnet: !0
|
|
1959
2082
|
});
|
|
1960
|
-
var
|
|
1961
|
-
const
|
|
1962
|
-
[
|
|
1963
|
-
[
|
|
1964
|
-
[
|
|
1965
|
-
[
|
|
2083
|
+
var E = ((e) => (e[e.Mainnet = ot.id] = "Mainnet", e[e.Holesky = rt.id] = "Holesky", e[e.Base = st.id] = "Base", e[e.Bsc = it.id] = "Bsc", e[e.Sepolia = ct.id] = "Sepolia", e[e.OptimismSepolia = at.id] = "OptimismSepolia", e[e.BaseSepolia = nt.id] = "BaseSepolia", e))(E || {});
|
|
2084
|
+
const yn = {
|
|
2085
|
+
[E.Mainnet]: ot,
|
|
2086
|
+
[E.Holesky]: rt,
|
|
2087
|
+
[E.Base]: st,
|
|
2088
|
+
[E.Bsc]: it,
|
|
2089
|
+
[E.Sepolia]: ct,
|
|
2090
|
+
[E.OptimismSepolia]: at,
|
|
2091
|
+
[E.BaseSepolia]: nt
|
|
1966
2092
|
};
|
|
1967
2093
|
export {
|
|
1968
|
-
|
|
1969
|
-
|
|
2094
|
+
un as $,
|
|
2095
|
+
A,
|
|
1970
2096
|
u as B,
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
2097
|
+
E as C,
|
|
2098
|
+
Ve as D,
|
|
2099
|
+
We as E,
|
|
2100
|
+
Ne as F,
|
|
2101
|
+
Rt as G,
|
|
2102
|
+
Le as H,
|
|
2103
|
+
P as I,
|
|
2104
|
+
je as J,
|
|
2105
|
+
F as K,
|
|
2106
|
+
Qt as L,
|
|
1981
2107
|
d as M,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2108
|
+
U as N,
|
|
2109
|
+
ee as O,
|
|
2110
|
+
is as P,
|
|
2111
|
+
rs as Q,
|
|
2112
|
+
os as R,
|
|
2113
|
+
as as S,
|
|
2114
|
+
cs as T,
|
|
2115
|
+
us as U,
|
|
2116
|
+
yn as V,
|
|
2117
|
+
ls as W,
|
|
2118
|
+
fs as X,
|
|
2119
|
+
Xe as Y,
|
|
2120
|
+
pn as Z,
|
|
2121
|
+
en as _,
|
|
2122
|
+
nn as a,
|
|
2123
|
+
ue as a0,
|
|
2124
|
+
ps as a1,
|
|
2125
|
+
Ye as a2,
|
|
2126
|
+
Is as a3,
|
|
2127
|
+
Je as a4,
|
|
2128
|
+
Us as a5,
|
|
2129
|
+
Cs as a6,
|
|
2130
|
+
Wt as a7,
|
|
2131
|
+
zs as a8,
|
|
2132
|
+
bn as a9,
|
|
2133
|
+
gn as aa,
|
|
2134
|
+
xn as ab,
|
|
2135
|
+
mn as ac,
|
|
2136
|
+
ln as ad,
|
|
2137
|
+
Oe as ae,
|
|
2138
|
+
Ce as af,
|
|
2139
|
+
Kt as ag,
|
|
2140
|
+
fn as ah,
|
|
2141
|
+
le as ai,
|
|
2142
|
+
dn as aj,
|
|
2143
|
+
Ss as ak,
|
|
2144
|
+
Mt as al,
|
|
2145
|
+
sn as am,
|
|
2146
|
+
an,
|
|
2147
|
+
hn as ao,
|
|
2148
|
+
Q as b,
|
|
2149
|
+
cn as c,
|
|
2150
|
+
Z as d,
|
|
2151
|
+
rn as e,
|
|
2152
|
+
B as f,
|
|
2153
|
+
Ue as g,
|
|
2154
|
+
v as h,
|
|
2155
|
+
K as i,
|
|
2156
|
+
bt as j,
|
|
2157
|
+
_t as k,
|
|
2158
|
+
ft as l,
|
|
2159
|
+
xt as m,
|
|
2160
|
+
Ae as n,
|
|
2161
|
+
jt as o,
|
|
2162
|
+
ut as p,
|
|
2163
|
+
O as q,
|
|
2164
|
+
on as r,
|
|
2165
|
+
Bs as s,
|
|
2166
|
+
oe as t,
|
|
2167
|
+
C as u,
|
|
2042
2168
|
I as v,
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2169
|
+
Y as w,
|
|
2170
|
+
$ as x,
|
|
2171
|
+
tn as y,
|
|
2172
|
+
k as z
|
|
2047
2173
|
};
|
|
2048
|
-
//# sourceMappingURL=constants-
|
|
2174
|
+
//# sourceMappingURL=constants-BDqMRitM.js.map
|