@pufferfinance/puffer-sdk 1.23.1 → 1.24.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.cjs.map +1 -1
- package/dist/api/puffer-client-helpers.js +3 -3
- package/dist/api/puffer-client-helpers.js.map +1 -1
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/ccip-FdkpGaX4.cjs +2 -0
- package/dist/ccip-FdkpGaX4.cjs.map +1 -0
- package/dist/{ccip-CiQCCFUl.js → ccip-w5ez1DCx.js} +43 -39
- package/dist/ccip-w5ez1DCx.js.map +1 -0
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +2 -1
- package/dist/chains/constants.js +1 -1
- package/dist/{constants-BaHwPdbi.js → constants-BweLzNUt.js} +690 -616
- package/dist/constants-BweLzNUt.js.map +1 -0
- package/dist/constants-JN89aXws.cjs +9 -0
- package/dist/constants-JN89aXws.cjs.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.d.ts +368 -352
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +368 -352
- package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.d.ts +368 -352
- 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.cjs.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +368 -352
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.d.ts +368 -352
- package/dist/contracts/handlers/guardian-module-handler.js +2 -2
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +368 -352
- package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.d.ts +368 -352
- package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- 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.d.ts +368 -352
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +368 -352
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
- package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.d.ts +368 -352
- package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +368 -352
- 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.d.ts +368 -352
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.d.ts +368 -352
- package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.js +7 -6
- 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-CYva1_XM.js +3262 -0
- package/dist/createWalletClient-CYva1_XM.js.map +1 -0
- package/dist/createWalletClient-LeyDLKOH.cjs +5 -0
- package/dist/createWalletClient-LeyDLKOH.cjs.map +1 -0
- package/dist/{getContract-DGV8J5xI.js → getContract-BES7gSby.js} +2 -2
- package/dist/getContract-BES7gSby.js.map +1 -0
- package/dist/{getContract-RNLlK54b.cjs → getContract-F-fd_vf7.cjs} +2 -2
- package/dist/{getContract-DGV8J5xI.js.map → getContract-F-fd_vf7.cjs.map} +1 -1
- package/dist/localBatchGatewayRequest-CCdxn5t3.js +90 -0
- package/dist/localBatchGatewayRequest-CCdxn5t3.js.map +1 -0
- package/dist/localBatchGatewayRequest-DCWU6kQW.cjs +2 -0
- package/dist/localBatchGatewayRequest-DCWU6kQW.cjs.map +1 -0
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/secp256k1-DGP4Y7VW.js +1291 -0
- package/dist/secp256k1-DGP4Y7VW.js.map +1 -0
- package/dist/secp256k1-QOxLqUEc.cjs +2 -0
- package/dist/secp256k1-QOxLqUEc.cjs.map +1 -0
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/writeContract-Cqc9vxbU.cjs +36 -0
- package/dist/writeContract-Cqc9vxbU.cjs.map +1 -0
- package/dist/{writeContract-BU3yK-Xj.js → writeContract-QAArm5iD.js} +1894 -1361
- package/dist/writeContract-QAArm5iD.js.map +1 -0
- package/package.json +2 -2
- package/dist/ccip-CiQCCFUl.js.map +0 -1
- package/dist/ccip-DIWF4nDh.cjs +0 -2
- package/dist/ccip-DIWF4nDh.cjs.map +0 -1
- package/dist/constants-BaHwPdbi.js.map +0 -1
- package/dist/constants-c-vATmlG.cjs +0 -9
- package/dist/constants-c-vATmlG.cjs.map +0 -1
- package/dist/createWalletClient-D74YRepQ.js +0 -3290
- package/dist/createWalletClient-D74YRepQ.js.map +0 -1
- package/dist/createWalletClient-DKSH6l9_.cjs +0 -6
- package/dist/createWalletClient-DKSH6l9_.cjs.map +0 -1
- package/dist/getContract-RNLlK54b.cjs.map +0 -1
- package/dist/secp256k1-B-LxKJrQ.js +0 -1340
- package/dist/secp256k1-B-LxKJrQ.js.map +0 -1
- package/dist/secp256k1-CC-cv1vD.cjs +0 -2
- package/dist/secp256k1-CC-cv1vD.cjs.map +0 -1
- package/dist/writeContract-BU3yK-Xj.js.map +0 -1
- package/dist/writeContract-CKqv1dsa.cjs +0 -32
- package/dist/writeContract-CKqv1dsa.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Y(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
4
|
function v(e) {
|
|
5
|
-
return
|
|
5
|
+
return Y(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
let
|
|
7
|
+
const Ue = "2.33.1";
|
|
8
|
+
let R = {
|
|
9
9
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: s }) => t ? `${e ?? "https://viem.sh"}${t}${s ? `#${s}` : ""}` : void 0,
|
|
10
|
-
version: `viem@${
|
|
10
|
+
version: `viem@${Ue}`
|
|
11
11
|
};
|
|
12
12
|
class u extends Error {
|
|
13
13
|
constructor(t, s = {}) {
|
|
@@ -15,13 +15,13 @@ class u extends Error {
|
|
|
15
15
|
const n = (() => {
|
|
16
16
|
var c;
|
|
17
17
|
return s.cause instanceof u ? s.cause.details : (c = s.cause) != null && c.message ? s.cause.message : s.details;
|
|
18
|
-
})(), r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = (a =
|
|
18
|
+
})(), r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = (a = R.getDocsUrl) == null ? void 0 : a.call(R, { ...s, docsPath: r }), o = [
|
|
19
19
|
t || "An error occurred.",
|
|
20
20
|
"",
|
|
21
21
|
...s.metaMessages ? [...s.metaMessages, ""] : [],
|
|
22
22
|
...i ? [`Docs: ${i}`] : [],
|
|
23
23
|
...n ? [`Details: ${n}`] : [],
|
|
24
|
-
...
|
|
24
|
+
...R.version ? [`Version: ${R.version}`] : []
|
|
25
25
|
].join(`
|
|
26
26
|
`);
|
|
27
27
|
super(o, s.cause ? { cause: s.cause } : void 0), Object.defineProperty(this, "details", {
|
|
@@ -54,50 +54,50 @@ class u extends Error {
|
|
|
54
54
|
configurable: !0,
|
|
55
55
|
writable: !0,
|
|
56
56
|
value: "BaseError"
|
|
57
|
-
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version =
|
|
57
|
+
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = Ue;
|
|
58
58
|
}
|
|
59
59
|
walk(t) {
|
|
60
|
-
return
|
|
60
|
+
return Ce(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 Ce(e, t) {
|
|
64
|
+
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Ce(e.cause, t) : t ? null : e;
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class ze extends u {
|
|
67
67
|
constructor({ offset: t, position: s, size: n }) {
|
|
68
68
|
super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
class
|
|
71
|
+
class ke extends u {
|
|
72
72
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
73
73
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class gn extends u {
|
|
77
77
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
78
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 M(e, { dir: t, size: s = 32 } = {}) {
|
|
82
|
+
return typeof e == "string" ? Et(e, { dir: t, size: s }) : Bt(e, { dir: t, size: s });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Et(e, { dir: t, size: s = 32 } = {}) {
|
|
85
85
|
if (s === null)
|
|
86
86
|
return e;
|
|
87
87
|
const n = e.replace("0x", "");
|
|
88
88
|
if (n.length > s * 2)
|
|
89
|
-
throw new
|
|
89
|
+
throw new ke({
|
|
90
90
|
size: Math.ceil(n.length / 2),
|
|
91
91
|
targetSize: s,
|
|
92
92
|
type: "hex"
|
|
93
93
|
});
|
|
94
94
|
return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Bt(e, { dir: t, size: s = 32 } = {}) {
|
|
97
97
|
if (s === null)
|
|
98
98
|
return e;
|
|
99
99
|
if (e.length > s)
|
|
100
|
-
throw new
|
|
100
|
+
throw new ke({
|
|
101
101
|
size: e.length,
|
|
102
102
|
targetSize: s,
|
|
103
103
|
type: "bytes"
|
|
@@ -109,84 +109,84 @@ function xt(e, { dir: t, size: s = 32 } = {}) {
|
|
|
109
109
|
}
|
|
110
110
|
return n;
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class Pt extends u {
|
|
113
113
|
constructor({ max: t, min: s, signed: n, size: r, value: i }) {
|
|
114
114
|
super(`Number "${i}" is not in safe ${r ? `${r * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${s} to ${t})` : `(above ${s})`}`, { name: "IntegerOutOfRangeError" });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
class
|
|
117
|
+
class yn 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 It 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
|
|
129
|
+
class vt extends u {
|
|
130
130
|
constructor({ givenSize: t, maxSize: s }) {
|
|
131
131
|
super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function U(e, { dir: t = "left" } = {}) {
|
|
135
135
|
let s = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
136
136
|
for (let r = 0; r < s.length - 1 && s[t === "left" ? r : s.length - r - 1].toString() === "0"; r++)
|
|
137
137
|
n++;
|
|
138
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
|
|
140
|
+
function H(e, { size: t }) {
|
|
141
141
|
if (v(e) > t)
|
|
142
|
-
throw new
|
|
142
|
+
throw new vt({
|
|
143
143
|
givenSize: v(e),
|
|
144
144
|
maxSize: t
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function O(e, t = {}) {
|
|
148
148
|
const { signed: s } = t;
|
|
149
|
-
t.size &&
|
|
149
|
+
t.size && H(e, { size: t.size });
|
|
150
150
|
const n = BigInt(e);
|
|
151
151
|
if (!s)
|
|
152
152
|
return n;
|
|
153
153
|
const r = (e.length - 2) / 2, i = (1n << BigInt(r) * 8n - 1n) - 1n;
|
|
154
154
|
return n <= i ? n : n - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function wn(e, t = {}) {
|
|
157
157
|
let s = e;
|
|
158
|
-
if (t.size && (
|
|
158
|
+
if (t.size && (H(s, { size: t.size }), s = U(s)), U(s) === "0x00")
|
|
159
159
|
return !1;
|
|
160
|
-
if (
|
|
160
|
+
if (U(s) === "0x01")
|
|
161
161
|
return !0;
|
|
162
|
-
throw new
|
|
162
|
+
throw new It(s);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return Number(
|
|
164
|
+
function te(e, t = {}) {
|
|
165
|
+
return Number(O(e, t));
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
167
|
+
const Tt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
168
|
+
function N(e, t = {}) {
|
|
169
|
+
return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? Ft(e, t) : typeof e == "boolean" ? At(e, t) : $(e, t);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function At(e, t = {}) {
|
|
172
172
|
const s = `0x${Number(e)}`;
|
|
173
|
-
return typeof t.size == "number" ? (
|
|
173
|
+
return typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { size: t.size })) : s;
|
|
174
174
|
}
|
|
175
175
|
function $(e, t = {}) {
|
|
176
176
|
let s = "";
|
|
177
177
|
for (let r = 0; r < e.length; r++)
|
|
178
|
-
s +=
|
|
178
|
+
s += Tt[e[r]];
|
|
179
179
|
const n = `0x${s}`;
|
|
180
|
-
return typeof t.size == "number" ? (
|
|
180
|
+
return typeof t.size == "number" ? (H(n, { size: t.size }), M(n, { dir: "right", size: t.size })) : n;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function f(e, t = {}) {
|
|
183
183
|
const { signed: s, size: n } = t, r = BigInt(e);
|
|
184
184
|
let i;
|
|
185
185
|
n ? s ? i = (1n << BigInt(n) * 8n - 1n) - 1n : i = 2n ** (BigInt(n) * 8n) - 1n : typeof e == "number" && (i = BigInt(Number.MAX_SAFE_INTEGER));
|
|
186
186
|
const o = typeof i == "bigint" && s ? -i - 1n : 0;
|
|
187
187
|
if (i && r > i || r < o) {
|
|
188
188
|
const c = typeof e == "bigint" ? "n" : "";
|
|
189
|
-
throw new
|
|
189
|
+
throw new Pt({
|
|
190
190
|
max: i ? `${i}${c}` : void 0,
|
|
191
191
|
min: `${o}${c}`,
|
|
192
192
|
signed: s,
|
|
@@ -195,20 +195,20 @@ function Ue(e, t = {}) {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
|
|
198
|
-
return n ?
|
|
198
|
+
return n ? M(a, { size: n }) : a;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
const s =
|
|
200
|
+
const $t = /* @__PURE__ */ new TextEncoder();
|
|
201
|
+
function Ft(e, t = {}) {
|
|
202
|
+
const s = $t.encode(e);
|
|
203
203
|
return $(s, t);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
205
|
+
const Ut = /* @__PURE__ */ new TextEncoder();
|
|
206
|
+
function Se(e, t = {}) {
|
|
207
|
+
return typeof e == "number" || typeof e == "bigint" ? zt(e, t) : typeof e == "boolean" ? Ct(e, t) : Y(e) ? z(e, t) : He(e, t);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ct(e, t = {}) {
|
|
210
210
|
const s = new Uint8Array(1);
|
|
211
|
-
return s[0] = Number(e), typeof t.size == "number" ? (
|
|
211
|
+
return s[0] = Number(e), typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { size: t.size })) : s;
|
|
212
212
|
}
|
|
213
213
|
const y = {
|
|
214
214
|
zero: 48,
|
|
@@ -218,7 +218,7 @@ const y = {
|
|
|
218
218
|
a: 97,
|
|
219
219
|
f: 102
|
|
220
220
|
};
|
|
221
|
-
function
|
|
221
|
+
function Ee(e) {
|
|
222
222
|
if (e >= y.zero && e <= y.nine)
|
|
223
223
|
return e - y.zero;
|
|
224
224
|
if (e >= y.A && e <= y.F)
|
|
@@ -226,102 +226,145 @@ function ge(e) {
|
|
|
226
226
|
if (e >= y.a && e <= y.f)
|
|
227
227
|
return e - (y.a - 10);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function z(e, t = {}) {
|
|
230
230
|
let s = e;
|
|
231
|
-
t.size && (
|
|
231
|
+
t.size && (H(s, { size: t.size }), s = M(s, { dir: "right", size: t.size }));
|
|
232
232
|
let n = s.slice(2);
|
|
233
233
|
n.length % 2 && (n = `0${n}`);
|
|
234
234
|
const r = n.length / 2, i = new Uint8Array(r);
|
|
235
235
|
for (let o = 0, a = 0; o < r; o++) {
|
|
236
|
-
const c =
|
|
236
|
+
const c = Ee(n.charCodeAt(a++)), l = Ee(n.charCodeAt(a++));
|
|
237
237
|
if (c === void 0 || l === void 0)
|
|
238
238
|
throw new u(`Invalid byte sequence ("${n[a - 2]}${n[a - 1]}" in "${n}").`);
|
|
239
239
|
i[o] = c * 16 + l;
|
|
240
240
|
}
|
|
241
241
|
return i;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const s =
|
|
245
|
-
return
|
|
243
|
+
function zt(e, t) {
|
|
244
|
+
const s = f(e, t);
|
|
245
|
+
return z(s);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const s =
|
|
249
|
-
return typeof t.size == "number" ? (
|
|
247
|
+
function He(e, t = {}) {
|
|
248
|
+
const s = Ut.encode(e);
|
|
249
|
+
return typeof t.size == "number" ? (H(s, { size: t.size }), M(s, { dir: "right", size: t.size })) : s;
|
|
250
250
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
const ee = /* @__PURE__ */ BigInt(2 ** 32 - 1), Be = /* @__PURE__ */ BigInt(32);
|
|
252
|
+
function kt(e, t = !1) {
|
|
253
|
+
return t ? { h: Number(e & ee), l: Number(e >> Be & ee) } : { h: Number(e >> Be & ee) | 0, l: Number(e & ee) | 0 };
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function St(e, t = !1) {
|
|
256
|
+
const s = e.length;
|
|
257
|
+
let n = new Uint32Array(s), r = new Uint32Array(s);
|
|
258
|
+
for (let i = 0; i < s; i++) {
|
|
259
|
+
const { h: o, l: a } = kt(e[i], t);
|
|
260
|
+
[n[i], r[i]] = [o, a];
|
|
261
|
+
}
|
|
262
|
+
return [n, r];
|
|
263
|
+
}
|
|
264
|
+
const Ht = (e, t, s) => e << s | t >>> 32 - s, Lt = (e, t, s) => t << s | e >>> 32 - s, Gt = (e, t, s) => t << s - 32 | e >>> 64 - s, Ot = (e, t, s) => e << s - 32 | t >>> 64 - s, G = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
265
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
266
|
+
function Nt(e) {
|
|
256
267
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
257
268
|
}
|
|
258
|
-
function
|
|
259
|
-
if (!
|
|
269
|
+
function se(e) {
|
|
270
|
+
if (!Number.isSafeInteger(e) || e < 0)
|
|
271
|
+
throw new Error("positive integer expected, got " + e);
|
|
272
|
+
}
|
|
273
|
+
function k(e, ...t) {
|
|
274
|
+
if (!Nt(e))
|
|
260
275
|
throw new Error("Uint8Array expected");
|
|
261
276
|
if (t.length > 0 && !t.includes(e.length))
|
|
262
277
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
263
278
|
}
|
|
264
|
-
function
|
|
279
|
+
function En(e) {
|
|
265
280
|
if (typeof e != "function" || typeof e.create != "function")
|
|
266
|
-
throw new Error("Hash should be wrapped by utils.
|
|
267
|
-
|
|
281
|
+
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
282
|
+
se(e.outputLen), se(e.blockLen);
|
|
268
283
|
}
|
|
269
|
-
function
|
|
284
|
+
function ne(e, t = !0) {
|
|
270
285
|
if (e.destroyed)
|
|
271
286
|
throw new Error("Hash instance has been destroyed");
|
|
272
287
|
if (t && e.finished)
|
|
273
288
|
throw new Error("Hash#digest() has already been called");
|
|
274
289
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
290
|
+
function Le(e, t) {
|
|
291
|
+
k(e);
|
|
277
292
|
const s = t.outputLen;
|
|
278
293
|
if (e.length < s)
|
|
279
294
|
throw new Error("digestInto() expects output buffer of length at least " + s);
|
|
280
295
|
}
|
|
281
|
-
|
|
282
|
-
function Ct(e, t = !1) {
|
|
283
|
-
return t ? { h: Number(e & q), l: Number(e >> ye & q) } : { h: Number(e >> ye & q) | 0, l: Number(e & q) | 0 };
|
|
284
|
-
}
|
|
285
|
-
function Ft(e, t = !1) {
|
|
286
|
-
let s = new Uint32Array(e.length), n = new Uint32Array(e.length);
|
|
287
|
-
for (let r = 0; r < e.length; r++) {
|
|
288
|
-
const { h: i, l: o } = Ct(e[r], t);
|
|
289
|
-
[s[r], n[r]] = [i, o];
|
|
290
|
-
}
|
|
291
|
-
return [s, n];
|
|
292
|
-
}
|
|
293
|
-
const Ut = (e, t, s) => e << s | t >>> 32 - s, zt = (e, t, s) => t << s | e >>> 32 - s, kt = (e, t, s) => t << s - 32 | e >>> 64 - s, St = (e, t, s) => e << s - 32 | t >>> 64 - s, L = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
294
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
295
|
-
function Lt(e) {
|
|
296
|
+
function Mt(e) {
|
|
296
297
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function Z(...e) {
|
|
300
|
+
for (let t = 0; t < e.length; t++)
|
|
301
|
+
e[t].fill(0);
|
|
302
|
+
}
|
|
303
|
+
function ae(e) {
|
|
299
304
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
300
305
|
}
|
|
301
306
|
function g(e, t) {
|
|
302
307
|
return e << 32 - t | e >>> t;
|
|
303
308
|
}
|
|
304
|
-
const
|
|
305
|
-
function
|
|
309
|
+
const _t = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
310
|
+
function Vt(e) {
|
|
306
311
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
307
312
|
}
|
|
308
|
-
function
|
|
313
|
+
function Dt(e) {
|
|
309
314
|
for (let t = 0; t < e.length; t++)
|
|
310
|
-
e[t] =
|
|
315
|
+
e[t] = Vt(e[t]);
|
|
316
|
+
return e;
|
|
317
|
+
}
|
|
318
|
+
const Pe = _t ? (e) => e : Dt, Ge = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", Rt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
319
|
+
function Bn(e) {
|
|
320
|
+
if (k(e), Ge)
|
|
321
|
+
return e.toHex();
|
|
322
|
+
let t = "";
|
|
323
|
+
for (let s = 0; s < e.length; s++)
|
|
324
|
+
t += Rt[e[s]];
|
|
325
|
+
return t;
|
|
326
|
+
}
|
|
327
|
+
const w = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
328
|
+
function Ie(e) {
|
|
329
|
+
if (e >= w._0 && e <= w._9)
|
|
330
|
+
return e - w._0;
|
|
331
|
+
if (e >= w.A && e <= w.F)
|
|
332
|
+
return e - (w.A - 10);
|
|
333
|
+
if (e >= w.a && e <= w.f)
|
|
334
|
+
return e - (w.a - 10);
|
|
335
|
+
}
|
|
336
|
+
function Pn(e) {
|
|
337
|
+
if (typeof e != "string")
|
|
338
|
+
throw new Error("hex string expected, got " + typeof e);
|
|
339
|
+
if (Ge)
|
|
340
|
+
return Uint8Array.fromHex(e);
|
|
341
|
+
const t = e.length, s = t / 2;
|
|
342
|
+
if (t % 2)
|
|
343
|
+
throw new Error("hex string expected, got unpadded hex of length " + t);
|
|
344
|
+
const n = new Uint8Array(s);
|
|
345
|
+
for (let r = 0, i = 0; r < s; r++, i += 2) {
|
|
346
|
+
const o = Ie(e.charCodeAt(i)), a = Ie(e.charCodeAt(i + 1));
|
|
347
|
+
if (o === void 0 || a === void 0) {
|
|
348
|
+
const c = e[i] + e[i + 1];
|
|
349
|
+
throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + i);
|
|
350
|
+
}
|
|
351
|
+
n[r] = o * 16 + a;
|
|
352
|
+
}
|
|
353
|
+
return n;
|
|
311
354
|
}
|
|
312
|
-
function
|
|
355
|
+
function jt(e) {
|
|
313
356
|
if (typeof e != "string")
|
|
314
|
-
throw new Error("
|
|
357
|
+
throw new Error("string expected");
|
|
315
358
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
316
359
|
}
|
|
317
|
-
function
|
|
318
|
-
return typeof e == "string" && (e =
|
|
360
|
+
function de(e) {
|
|
361
|
+
return typeof e == "string" && (e = jt(e)), k(e), e;
|
|
319
362
|
}
|
|
320
|
-
function
|
|
363
|
+
function In(...e) {
|
|
321
364
|
let t = 0;
|
|
322
365
|
for (let n = 0; n < e.length; n++) {
|
|
323
366
|
const r = e[n];
|
|
324
|
-
|
|
367
|
+
k(r), t += r.length;
|
|
325
368
|
}
|
|
326
369
|
const s = new Uint8Array(t);
|
|
327
370
|
for (let n = 0, r = 0; n < e.length; n++) {
|
|
@@ -330,45 +373,41 @@ function hn(...e) {
|
|
|
330
373
|
}
|
|
331
374
|
return s;
|
|
332
375
|
}
|
|
333
|
-
class
|
|
334
|
-
// Safe version that clones internal state
|
|
335
|
-
clone() {
|
|
336
|
-
return this._cloneInto();
|
|
337
|
-
}
|
|
376
|
+
class Oe {
|
|
338
377
|
}
|
|
339
|
-
function
|
|
340
|
-
const t = (n) => e().update(
|
|
378
|
+
function Ne(e) {
|
|
379
|
+
const t = (n) => e().update(de(n)).digest(), s = e();
|
|
341
380
|
return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
|
|
342
381
|
}
|
|
343
|
-
function
|
|
344
|
-
if (
|
|
345
|
-
return
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
382
|
+
function vn(e = 32) {
|
|
383
|
+
if (G && typeof G.getRandomValues == "function")
|
|
384
|
+
return G.getRandomValues(new Uint8Array(e));
|
|
385
|
+
if (G && typeof G.randomBytes == "function")
|
|
386
|
+
return Uint8Array.from(G.randomBytes(e));
|
|
348
387
|
throw new Error("crypto.getRandomValues must be defined");
|
|
349
388
|
}
|
|
350
|
-
const
|
|
351
|
-
for (let e = 0, t =
|
|
352
|
-
[s, n] = [n, (2 * s + 3 * n) % 5],
|
|
353
|
-
let r =
|
|
389
|
+
const Kt = BigInt(0), j = BigInt(1), Wt = BigInt(2), Xt = BigInt(7), qt = BigInt(256), Zt = BigInt(113), Me = [], _e = [], Ve = [];
|
|
390
|
+
for (let e = 0, t = j, s = 1, n = 0; e < 24; e++) {
|
|
391
|
+
[s, n] = [n, (2 * s + 3 * n) % 5], Me.push(2 * (5 * n + s)), _e.push((e + 1) * (e + 2) / 2 % 64);
|
|
392
|
+
let r = Kt;
|
|
354
393
|
for (let i = 0; i < 7; i++)
|
|
355
|
-
t = (t <<
|
|
356
|
-
|
|
394
|
+
t = (t << j ^ (t >> Xt) * Zt) % qt, t & Wt && (r ^= j << (j << /* @__PURE__ */ BigInt(i)) - j);
|
|
395
|
+
Ve.push(r);
|
|
357
396
|
}
|
|
358
|
-
const
|
|
359
|
-
function
|
|
397
|
+
const De = St(Ve, !0), Yt = De[0], Jt = De[1], ve = (e, t, s) => s > 32 ? Gt(e, t, s) : Ht(e, t, s), Te = (e, t, s) => s > 32 ? Ot(e, t, s) : Lt(e, t, s);
|
|
398
|
+
function Qt(e, t = 24) {
|
|
360
399
|
const s = new Uint32Array(10);
|
|
361
400
|
for (let n = 24 - t; n < 24; n++) {
|
|
362
401
|
for (let o = 0; o < 10; o++)
|
|
363
402
|
s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
|
|
364
403
|
for (let o = 0; o < 10; o += 2) {
|
|
365
|
-
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d =
|
|
404
|
+
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = ve(l, h, 1) ^ s[a], b = Te(l, h, 1) ^ s[a + 1];
|
|
366
405
|
for (let p = 0; p < 50; p += 10)
|
|
367
406
|
e[o + p] ^= d, e[o + p + 1] ^= b;
|
|
368
407
|
}
|
|
369
408
|
let r = e[2], i = e[3];
|
|
370
409
|
for (let o = 0; o < 24; o++) {
|
|
371
|
-
const a =
|
|
410
|
+
const a = _e[o], c = ve(r, i, a), l = Te(r, i, a), h = Me[o];
|
|
372
411
|
r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
|
|
373
412
|
}
|
|
374
413
|
for (let o = 0; o < 50; o += 10) {
|
|
@@ -377,25 +416,26 @@ function jt(e, t = 24) {
|
|
|
377
416
|
for (let a = 0; a < 10; a++)
|
|
378
417
|
e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
|
|
379
418
|
}
|
|
380
|
-
e[0] ^=
|
|
419
|
+
e[0] ^= Yt[n], e[1] ^= Jt[n];
|
|
381
420
|
}
|
|
382
|
-
s
|
|
421
|
+
Z(s);
|
|
383
422
|
}
|
|
384
|
-
class
|
|
423
|
+
class fe extends Oe {
|
|
385
424
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
386
425
|
constructor(t, s, n, r = !1, i = 24) {
|
|
387
|
-
if (super(), this.
|
|
388
|
-
throw new Error("
|
|
389
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
426
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = r, this.rounds = i, se(n), !(0 < t && t < 200))
|
|
427
|
+
throw new Error("only keccak-f1600 function is supported");
|
|
428
|
+
this.state = new Uint8Array(200), this.state32 = Mt(this.state);
|
|
429
|
+
}
|
|
430
|
+
clone() {
|
|
431
|
+
return this._cloneInto();
|
|
390
432
|
}
|
|
391
433
|
keccak() {
|
|
392
|
-
|
|
434
|
+
Pe(this.state32), Qt(this.state32, this.rounds), Pe(this.state32), this.posOut = 0, this.pos = 0;
|
|
393
435
|
}
|
|
394
436
|
update(t) {
|
|
395
|
-
|
|
396
|
-
const { blockLen: s, state: n } = this;
|
|
397
|
-
t = ce(t);
|
|
398
|
-
const r = t.length;
|
|
437
|
+
ne(this), t = de(t), k(t);
|
|
438
|
+
const { blockLen: s, state: n } = this, r = t.length;
|
|
399
439
|
for (let i = 0; i < r; ) {
|
|
400
440
|
const o = Math.min(s - this.pos, r - i);
|
|
401
441
|
for (let a = 0; a < o; a++)
|
|
@@ -412,7 +452,7 @@ class ue extends Le {
|
|
|
412
452
|
t[n] ^= s, (s & 128) !== 0 && n === r - 1 && this.keccak(), t[r - 1] ^= 128, this.keccak();
|
|
413
453
|
}
|
|
414
454
|
writeInto(t) {
|
|
415
|
-
|
|
455
|
+
ne(this, !1), k(t), this.finish();
|
|
416
456
|
const s = this.state, { blockLen: n } = this;
|
|
417
457
|
for (let r = 0, i = t.length; r < i; ) {
|
|
418
458
|
this.posOut >= n && this.keccak();
|
|
@@ -427,10 +467,10 @@ class ue extends Le {
|
|
|
427
467
|
return this.writeInto(t);
|
|
428
468
|
}
|
|
429
469
|
xof(t) {
|
|
430
|
-
return
|
|
470
|
+
return se(t), this.xofInto(new Uint8Array(t));
|
|
431
471
|
}
|
|
432
472
|
digestInto(t) {
|
|
433
|
-
if (
|
|
473
|
+
if (Le(t, this), this.finished)
|
|
434
474
|
throw new Error("digest() was already called");
|
|
435
475
|
return this.writeInto(t), this.destroy(), t;
|
|
436
476
|
}
|
|
@@ -438,19 +478,19 @@ class ue extends Le {
|
|
|
438
478
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
439
479
|
}
|
|
440
480
|
destroy() {
|
|
441
|
-
this.destroyed = !0, this.state
|
|
481
|
+
this.destroyed = !0, Z(this.state);
|
|
442
482
|
}
|
|
443
483
|
_cloneInto(t) {
|
|
444
484
|
const { blockLen: s, suffix: n, outputLen: r, rounds: i, enableXOF: o } = this;
|
|
445
|
-
return t || (t = new
|
|
485
|
+
return t || (t = new fe(s, n, r, o, i)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = i, t.suffix = n, t.outputLen = r, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
446
486
|
}
|
|
447
487
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
const s = t || "hex", n =
|
|
451
|
-
return s === "bytes" ? n :
|
|
488
|
+
const es = (e, t, s) => Ne(() => new fe(t, e, s)), ts = es(1, 136, 256 / 8);
|
|
489
|
+
function ss(e, t) {
|
|
490
|
+
const s = t || "hex", n = ts(Y(e, { strict: !1 }) ? Se(e) : e);
|
|
491
|
+
return s === "bytes" ? n : N(n);
|
|
452
492
|
}
|
|
453
|
-
class
|
|
493
|
+
class T extends u {
|
|
454
494
|
constructor({ address: t }) {
|
|
455
495
|
super(`Address "${t}" is invalid.`, {
|
|
456
496
|
metaMessages: [
|
|
@@ -461,7 +501,7 @@ class I extends u {
|
|
|
461
501
|
});
|
|
462
502
|
}
|
|
463
503
|
}
|
|
464
|
-
class
|
|
504
|
+
class Re extends Map {
|
|
465
505
|
constructor(t) {
|
|
466
506
|
super(), Object.defineProperty(this, "maxSize", {
|
|
467
507
|
enumerable: !0,
|
|
@@ -482,33 +522,33 @@ class Me extends Map {
|
|
|
482
522
|
return this;
|
|
483
523
|
}
|
|
484
524
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
if (
|
|
488
|
-
return
|
|
489
|
-
const s = e.substring(2).toLowerCase(), n =
|
|
525
|
+
const ce = /* @__PURE__ */ new Re(8192);
|
|
526
|
+
function je(e, t) {
|
|
527
|
+
if (ce.has(`${e}.${t}`))
|
|
528
|
+
return ce.get(`${e}.${t}`);
|
|
529
|
+
const s = e.substring(2).toLowerCase(), n = ss(He(s), "bytes"), r = s.split("");
|
|
490
530
|
for (let o = 0; o < 40; o += 2)
|
|
491
531
|
n[o >> 1] >> 4 >= 8 && r[o] && (r[o] = r[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && r[o + 1] && (r[o + 1] = r[o + 1].toUpperCase());
|
|
492
532
|
const i = `0x${r.join("")}`;
|
|
493
|
-
return
|
|
533
|
+
return ce.set(`${e}.${t}`, i), i;
|
|
494
534
|
}
|
|
495
|
-
function
|
|
496
|
-
if (!
|
|
497
|
-
throw new
|
|
498
|
-
return
|
|
535
|
+
function Tn(e, t) {
|
|
536
|
+
if (!A(e, { strict: !1 }))
|
|
537
|
+
throw new T({ address: e });
|
|
538
|
+
return je(e, t);
|
|
499
539
|
}
|
|
500
|
-
const
|
|
501
|
-
function
|
|
540
|
+
const ns = /^0x[a-fA-F0-9]{40}$/, ue = /* @__PURE__ */ new Re(8192);
|
|
541
|
+
function A(e, t) {
|
|
502
542
|
const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
505
|
-
const r =
|
|
506
|
-
return
|
|
543
|
+
if (ue.has(n))
|
|
544
|
+
return ue.get(n);
|
|
545
|
+
const r = ns.test(e) ? e.toLowerCase() === e ? !0 : s ? je(e) === e : !0 : !1;
|
|
546
|
+
return ue.set(n, r), r;
|
|
507
547
|
}
|
|
508
|
-
function
|
|
509
|
-
return typeof e[0] == "string" ?
|
|
548
|
+
function An(e) {
|
|
549
|
+
return typeof e[0] == "string" ? _(e) : rs(e);
|
|
510
550
|
}
|
|
511
|
-
function
|
|
551
|
+
function rs(e) {
|
|
512
552
|
let t = 0;
|
|
513
553
|
for (const r of e)
|
|
514
554
|
t += r.length;
|
|
@@ -518,60 +558,60 @@ function qt(e) {
|
|
|
518
558
|
s.set(r, n), n += r.length;
|
|
519
559
|
return s;
|
|
520
560
|
}
|
|
521
|
-
function
|
|
561
|
+
function _(e) {
|
|
522
562
|
return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
|
|
523
563
|
}
|
|
524
|
-
function
|
|
525
|
-
return
|
|
564
|
+
function is(e, t, s, { strict: n } = {}) {
|
|
565
|
+
return Y(e, { strict: !1 }) ? as(e, t, s, {
|
|
526
566
|
strict: n
|
|
527
|
-
}) :
|
|
567
|
+
}) : os(e, t, s, {
|
|
528
568
|
strict: n
|
|
529
569
|
});
|
|
530
570
|
}
|
|
531
|
-
function
|
|
571
|
+
function Ke(e, t) {
|
|
532
572
|
if (typeof t == "number" && t > 0 && t > v(e) - 1)
|
|
533
|
-
throw new
|
|
573
|
+
throw new ze({
|
|
534
574
|
offset: t,
|
|
535
575
|
position: "start",
|
|
536
576
|
size: v(e)
|
|
537
577
|
});
|
|
538
578
|
}
|
|
539
|
-
function
|
|
579
|
+
function We(e, t, s) {
|
|
540
580
|
if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
|
|
541
|
-
throw new
|
|
581
|
+
throw new ze({
|
|
542
582
|
offset: s,
|
|
543
583
|
position: "end",
|
|
544
584
|
size: v(e)
|
|
545
585
|
});
|
|
546
586
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
587
|
+
function os(e, t, s, { strict: n } = {}) {
|
|
588
|
+
Ke(e, t);
|
|
549
589
|
const r = e.slice(t, s);
|
|
550
|
-
return n &&
|
|
590
|
+
return n && We(r, t, s), r;
|
|
551
591
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
592
|
+
function as(e, t, s, { strict: n } = {}) {
|
|
593
|
+
Ke(e, t);
|
|
554
594
|
const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
|
|
555
|
-
return n &&
|
|
595
|
+
return n && We(r, t, s), r;
|
|
556
596
|
}
|
|
557
|
-
class
|
|
597
|
+
class Ae extends u {
|
|
558
598
|
constructor({ offset: t }) {
|
|
559
599
|
super(`Offset \`${t}\` cannot be negative.`, {
|
|
560
600
|
name: "NegativeOffsetError"
|
|
561
601
|
});
|
|
562
602
|
}
|
|
563
603
|
}
|
|
564
|
-
class
|
|
604
|
+
class cs extends u {
|
|
565
605
|
constructor({ length: t, position: s }) {
|
|
566
606
|
super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
|
|
567
607
|
}
|
|
568
608
|
}
|
|
569
|
-
class
|
|
609
|
+
class us extends u {
|
|
570
610
|
constructor({ count: t, limit: s }) {
|
|
571
611
|
super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
572
612
|
}
|
|
573
613
|
}
|
|
574
|
-
const
|
|
614
|
+
const ls = {
|
|
575
615
|
bytes: new Uint8Array(),
|
|
576
616
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
577
617
|
position: 0,
|
|
@@ -580,21 +620,21 @@ const ss = {
|
|
|
580
620
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
581
621
|
assertReadLimit() {
|
|
582
622
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
583
|
-
throw new
|
|
623
|
+
throw new us({
|
|
584
624
|
count: this.recursiveReadCount + 1,
|
|
585
625
|
limit: this.recursiveReadLimit
|
|
586
626
|
});
|
|
587
627
|
},
|
|
588
628
|
assertPosition(e) {
|
|
589
629
|
if (e < 0 || e > this.bytes.length - 1)
|
|
590
|
-
throw new
|
|
630
|
+
throw new cs({
|
|
591
631
|
length: this.bytes.length,
|
|
592
632
|
position: e
|
|
593
633
|
});
|
|
594
634
|
},
|
|
595
635
|
decrementPosition(e) {
|
|
596
636
|
if (e < 0)
|
|
597
|
-
throw new
|
|
637
|
+
throw new Ae({ offset: e });
|
|
598
638
|
const t = this.position - e;
|
|
599
639
|
this.assertPosition(t), this.position = t;
|
|
600
640
|
},
|
|
@@ -603,7 +643,7 @@ const ss = {
|
|
|
603
643
|
},
|
|
604
644
|
incrementPosition(e) {
|
|
605
645
|
if (e < 0)
|
|
606
|
-
throw new
|
|
646
|
+
throw new Ae({ offset: e });
|
|
607
647
|
const t = this.position + e;
|
|
608
648
|
this.assertPosition(t), this.position = t;
|
|
609
649
|
},
|
|
@@ -693,18 +733,18 @@ const ss = {
|
|
|
693
733
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
694
734
|
}
|
|
695
735
|
};
|
|
696
|
-
function
|
|
697
|
-
const s = Object.create(
|
|
736
|
+
function Xe(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
737
|
+
const s = Object.create(ls);
|
|
698
738
|
return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
699
739
|
}
|
|
700
|
-
const
|
|
740
|
+
const ds = {
|
|
701
741
|
gwei: 9,
|
|
702
742
|
wei: 18
|
|
703
|
-
},
|
|
743
|
+
}, fs = {
|
|
704
744
|
ether: -9,
|
|
705
745
|
wei: 9
|
|
706
746
|
};
|
|
707
|
-
function
|
|
747
|
+
function qe(e, t) {
|
|
708
748
|
let s = e.toString();
|
|
709
749
|
const n = s.startsWith("-");
|
|
710
750
|
n && (s = s.slice(1)), s = s.padStart(t, "0");
|
|
@@ -714,18 +754,18 @@ function je(e, t) {
|
|
|
714
754
|
];
|
|
715
755
|
return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
|
|
716
756
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
757
|
+
function hs(e, t = "wei") {
|
|
758
|
+
return qe(e, ds[t]);
|
|
719
759
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
760
|
+
function C(e, t = "wei") {
|
|
761
|
+
return qe(e, fs[t]);
|
|
722
762
|
}
|
|
723
|
-
function
|
|
763
|
+
function Ze(e) {
|
|
724
764
|
const t = Object.entries(e).map(([n, r]) => r === void 0 || r === !1 ? null : [n, r]).filter(Boolean), s = t.reduce((n, [r]) => Math.max(n, r.length), 0);
|
|
725
765
|
return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
|
|
726
766
|
`);
|
|
727
767
|
}
|
|
728
|
-
class
|
|
768
|
+
class $n extends u {
|
|
729
769
|
constructor() {
|
|
730
770
|
super([
|
|
731
771
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -734,20 +774,20 @@ class xn extends u {
|
|
|
734
774
|
`), { name: "FeeConflictError" });
|
|
735
775
|
}
|
|
736
776
|
}
|
|
737
|
-
class
|
|
777
|
+
class ps extends u {
|
|
738
778
|
constructor({ v: t }) {
|
|
739
779
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
740
780
|
name: "InvalidLegacyVError"
|
|
741
781
|
});
|
|
742
782
|
}
|
|
743
783
|
}
|
|
744
|
-
class
|
|
784
|
+
class bs extends u {
|
|
745
785
|
constructor({ transaction: t }) {
|
|
746
786
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
747
787
|
metaMessages: [
|
|
748
788
|
"Provided Transaction:",
|
|
749
789
|
"{",
|
|
750
|
-
|
|
790
|
+
Ze(t),
|
|
751
791
|
"}",
|
|
752
792
|
"",
|
|
753
793
|
"To infer the type, either provide:",
|
|
@@ -762,24 +802,24 @@ class as extends u {
|
|
|
762
802
|
});
|
|
763
803
|
}
|
|
764
804
|
}
|
|
765
|
-
class
|
|
805
|
+
class ms extends u {
|
|
766
806
|
constructor({ storageKey: t }) {
|
|
767
807
|
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
768
808
|
}
|
|
769
809
|
}
|
|
770
|
-
class
|
|
810
|
+
class Fn extends u {
|
|
771
811
|
constructor(t, { account: s, docsPath: n, chain: r, data: i, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: d, value: b }) {
|
|
772
|
-
var
|
|
773
|
-
const p =
|
|
812
|
+
var B;
|
|
813
|
+
const p = Ze({
|
|
774
814
|
chain: r && `${r == null ? void 0 : r.name} (id: ${r == null ? void 0 : r.id})`,
|
|
775
815
|
from: s == null ? void 0 : s.address,
|
|
776
816
|
to: d,
|
|
777
|
-
value: typeof b < "u" && `${
|
|
817
|
+
value: typeof b < "u" && `${hs(b)} ${((B = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : B.symbol) || "ETH"}`,
|
|
778
818
|
data: i,
|
|
779
819
|
gas: o,
|
|
780
|
-
gasPrice: typeof a < "u" && `${
|
|
781
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
782
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
820
|
+
gasPrice: typeof a < "u" && `${C(a)} gwei`,
|
|
821
|
+
maxFeePerGas: typeof c < "u" && `${C(c)} gwei`,
|
|
822
|
+
maxPriorityFeePerGas: typeof l < "u" && `${C(l)} gwei`,
|
|
783
823
|
nonce: h
|
|
784
824
|
});
|
|
785
825
|
super(t.shortMessage, {
|
|
@@ -799,7 +839,7 @@ class gn extends u {
|
|
|
799
839
|
}), this.cause = t;
|
|
800
840
|
}
|
|
801
841
|
}
|
|
802
|
-
class
|
|
842
|
+
class Un extends u {
|
|
803
843
|
constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
|
|
804
844
|
let o = "Transaction";
|
|
805
845
|
n && i !== void 0 && (o = `Transaction at block time "${n}" at index "${i}"`), t && i !== void 0 && (o = `Transaction at block hash "${t}" at index "${i}"`), s && i !== void 0 && (o = `Transaction at block number "${s}" at index "${i}"`), r && (o = `Transaction with hash "${r}"`), super(`${o} could not be found.`, {
|
|
@@ -807,27 +847,27 @@ class yn extends u {
|
|
|
807
847
|
});
|
|
808
848
|
}
|
|
809
849
|
}
|
|
810
|
-
class
|
|
850
|
+
class Cn extends u {
|
|
811
851
|
constructor({ hash: t }) {
|
|
812
852
|
super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
813
853
|
name: "TransactionReceiptNotFoundError"
|
|
814
854
|
});
|
|
815
855
|
}
|
|
816
856
|
}
|
|
817
|
-
class
|
|
857
|
+
class zn extends u {
|
|
818
858
|
constructor({ hash: t }) {
|
|
819
859
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
820
860
|
}
|
|
821
861
|
}
|
|
822
|
-
function
|
|
823
|
-
const s =
|
|
862
|
+
function S(e, t = "hex") {
|
|
863
|
+
const s = Ye(e), n = Xe(new Uint8Array(s.length));
|
|
824
864
|
return s.encode(n), t === "hex" ? $(n.bytes) : n.bytes;
|
|
825
865
|
}
|
|
826
|
-
function
|
|
827
|
-
return Array.isArray(e) ?
|
|
866
|
+
function Ye(e) {
|
|
867
|
+
return Array.isArray(e) ? xs(e.map((t) => Ye(t))) : gs(e);
|
|
828
868
|
}
|
|
829
|
-
function
|
|
830
|
-
const t = e.reduce((r, i) => r + i.length, 0), s =
|
|
869
|
+
function xs(e) {
|
|
870
|
+
const t = e.reduce((r, i) => r + i.length, 0), s = Je(t);
|
|
831
871
|
return {
|
|
832
872
|
length: t <= 55 ? 1 + t : 1 + s + t,
|
|
833
873
|
encode(r) {
|
|
@@ -837,8 +877,8 @@ function us(e) {
|
|
|
837
877
|
}
|
|
838
878
|
};
|
|
839
879
|
}
|
|
840
|
-
function
|
|
841
|
-
const t = typeof e == "string" ?
|
|
880
|
+
function gs(e) {
|
|
881
|
+
const t = typeof e == "string" ? z(e) : e, s = Je(t.length);
|
|
842
882
|
return {
|
|
843
883
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
|
|
844
884
|
encode(r) {
|
|
@@ -846,7 +886,7 @@ function ls(e) {
|
|
|
846
886
|
}
|
|
847
887
|
};
|
|
848
888
|
}
|
|
849
|
-
function
|
|
889
|
+
function Je(e) {
|
|
850
890
|
if (e < 2 ** 8)
|
|
851
891
|
return 1;
|
|
852
892
|
if (e < 2 ** 16)
|
|
@@ -857,7 +897,7 @@ function Xe(e) {
|
|
|
857
897
|
return 4;
|
|
858
898
|
throw new u("Length is too large.");
|
|
859
899
|
}
|
|
860
|
-
class
|
|
900
|
+
class Qe extends u {
|
|
861
901
|
constructor({ cause: t, message: s } = {}) {
|
|
862
902
|
var r;
|
|
863
903
|
const n = (r = s == null ? void 0 : s.replace("execution reverted: ", "")) == null ? void 0 : r.replace("execution reverted", "");
|
|
@@ -867,58 +907,58 @@ class Ze extends u {
|
|
|
867
907
|
});
|
|
868
908
|
}
|
|
869
909
|
}
|
|
870
|
-
Object.defineProperty(
|
|
910
|
+
Object.defineProperty(Qe, "code", {
|
|
871
911
|
enumerable: !0,
|
|
872
912
|
configurable: !0,
|
|
873
913
|
writable: !0,
|
|
874
914
|
value: 3
|
|
875
915
|
});
|
|
876
|
-
Object.defineProperty(
|
|
916
|
+
Object.defineProperty(Qe, "nodeMessage", {
|
|
877
917
|
enumerable: !0,
|
|
878
918
|
configurable: !0,
|
|
879
919
|
writable: !0,
|
|
880
920
|
value: /execution reverted/
|
|
881
921
|
});
|
|
882
|
-
class
|
|
922
|
+
class re extends u {
|
|
883
923
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
884
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
924
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
885
925
|
cause: t,
|
|
886
926
|
name: "FeeCapTooHighError"
|
|
887
927
|
});
|
|
888
928
|
}
|
|
889
929
|
}
|
|
890
|
-
Object.defineProperty(
|
|
930
|
+
Object.defineProperty(re, "nodeMessage", {
|
|
891
931
|
enumerable: !0,
|
|
892
932
|
configurable: !0,
|
|
893
933
|
writable: !0,
|
|
894
934
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
895
935
|
});
|
|
896
|
-
class
|
|
936
|
+
class ys extends u {
|
|
897
937
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
898
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
938
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${C(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
899
939
|
cause: t,
|
|
900
940
|
name: "FeeCapTooLowError"
|
|
901
941
|
});
|
|
902
942
|
}
|
|
903
943
|
}
|
|
904
|
-
Object.defineProperty(
|
|
944
|
+
Object.defineProperty(ys, "nodeMessage", {
|
|
905
945
|
enumerable: !0,
|
|
906
946
|
configurable: !0,
|
|
907
947
|
writable: !0,
|
|
908
948
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
909
949
|
});
|
|
910
|
-
class
|
|
950
|
+
class ws extends u {
|
|
911
951
|
constructor({ cause: t, nonce: s } = {}) {
|
|
912
952
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
913
953
|
}
|
|
914
954
|
}
|
|
915
|
-
Object.defineProperty(
|
|
955
|
+
Object.defineProperty(ws, "nodeMessage", {
|
|
916
956
|
enumerable: !0,
|
|
917
957
|
configurable: !0,
|
|
918
958
|
writable: !0,
|
|
919
959
|
value: /nonce too high/
|
|
920
960
|
});
|
|
921
|
-
class
|
|
961
|
+
class Es extends u {
|
|
922
962
|
constructor({ cause: t, nonce: s } = {}) {
|
|
923
963
|
super([
|
|
924
964
|
`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -927,24 +967,24 @@ class hs extends u {
|
|
|
927
967
|
`), { cause: t, name: "NonceTooLowError" });
|
|
928
968
|
}
|
|
929
969
|
}
|
|
930
|
-
Object.defineProperty(
|
|
970
|
+
Object.defineProperty(Es, "nodeMessage", {
|
|
931
971
|
enumerable: !0,
|
|
932
972
|
configurable: !0,
|
|
933
973
|
writable: !0,
|
|
934
974
|
value: /nonce too low|transaction already imported|already known/
|
|
935
975
|
});
|
|
936
|
-
class
|
|
976
|
+
class Bs extends u {
|
|
937
977
|
constructor({ cause: t, nonce: s } = {}) {
|
|
938
978
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
939
979
|
}
|
|
940
980
|
}
|
|
941
|
-
Object.defineProperty(
|
|
981
|
+
Object.defineProperty(Bs, "nodeMessage", {
|
|
942
982
|
enumerable: !0,
|
|
943
983
|
configurable: !0,
|
|
944
984
|
writable: !0,
|
|
945
985
|
value: /nonce has max value/
|
|
946
986
|
});
|
|
947
|
-
class
|
|
987
|
+
class Ps extends u {
|
|
948
988
|
constructor({ cause: t } = {}) {
|
|
949
989
|
super([
|
|
950
990
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -965,13 +1005,13 @@ class bs extends u {
|
|
|
965
1005
|
});
|
|
966
1006
|
}
|
|
967
1007
|
}
|
|
968
|
-
Object.defineProperty(
|
|
1008
|
+
Object.defineProperty(Ps, "nodeMessage", {
|
|
969
1009
|
enumerable: !0,
|
|
970
1010
|
configurable: !0,
|
|
971
1011
|
writable: !0,
|
|
972
1012
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
973
1013
|
});
|
|
974
|
-
class
|
|
1014
|
+
class Is extends u {
|
|
975
1015
|
constructor({ cause: t, gas: s } = {}) {
|
|
976
1016
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
977
1017
|
cause: t,
|
|
@@ -979,13 +1019,13 @@ class ms extends u {
|
|
|
979
1019
|
});
|
|
980
1020
|
}
|
|
981
1021
|
}
|
|
982
|
-
Object.defineProperty(
|
|
1022
|
+
Object.defineProperty(Is, "nodeMessage", {
|
|
983
1023
|
enumerable: !0,
|
|
984
1024
|
configurable: !0,
|
|
985
1025
|
writable: !0,
|
|
986
1026
|
value: /intrinsic gas too high|gas limit reached/
|
|
987
1027
|
});
|
|
988
|
-
class
|
|
1028
|
+
class vs extends u {
|
|
989
1029
|
constructor({ cause: t, gas: s } = {}) {
|
|
990
1030
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
|
|
991
1031
|
cause: t,
|
|
@@ -993,13 +1033,13 @@ class xs extends u {
|
|
|
993
1033
|
});
|
|
994
1034
|
}
|
|
995
1035
|
}
|
|
996
|
-
Object.defineProperty(
|
|
1036
|
+
Object.defineProperty(vs, "nodeMessage", {
|
|
997
1037
|
enumerable: !0,
|
|
998
1038
|
configurable: !0,
|
|
999
1039
|
writable: !0,
|
|
1000
1040
|
value: /intrinsic gas too low/
|
|
1001
1041
|
});
|
|
1002
|
-
class
|
|
1042
|
+
class Ts extends u {
|
|
1003
1043
|
constructor({ cause: t }) {
|
|
1004
1044
|
super("The transaction type is not supported for this chain.", {
|
|
1005
1045
|
cause: t,
|
|
@@ -1007,16 +1047,16 @@ class gs extends u {
|
|
|
1007
1047
|
});
|
|
1008
1048
|
}
|
|
1009
1049
|
}
|
|
1010
|
-
Object.defineProperty(
|
|
1050
|
+
Object.defineProperty(Ts, "nodeMessage", {
|
|
1011
1051
|
enumerable: !0,
|
|
1012
1052
|
configurable: !0,
|
|
1013
1053
|
writable: !0,
|
|
1014
1054
|
value: /transaction type not valid/
|
|
1015
1055
|
});
|
|
1016
|
-
class
|
|
1056
|
+
class et extends u {
|
|
1017
1057
|
constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
|
|
1018
1058
|
super([
|
|
1019
|
-
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${
|
|
1059
|
+
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${C(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${C(n)} gwei` : ""}).`
|
|
1020
1060
|
].join(`
|
|
1021
1061
|
`), {
|
|
1022
1062
|
cause: t,
|
|
@@ -1024,13 +1064,13 @@ class qe extends u {
|
|
|
1024
1064
|
});
|
|
1025
1065
|
}
|
|
1026
1066
|
}
|
|
1027
|
-
Object.defineProperty(
|
|
1067
|
+
Object.defineProperty(et, "nodeMessage", {
|
|
1028
1068
|
enumerable: !0,
|
|
1029
1069
|
configurable: !0,
|
|
1030
1070
|
writable: !0,
|
|
1031
1071
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1032
1072
|
});
|
|
1033
|
-
class
|
|
1073
|
+
class kn extends u {
|
|
1034
1074
|
constructor({ cause: t }) {
|
|
1035
1075
|
super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
|
|
1036
1076
|
cause: t,
|
|
@@ -1038,7 +1078,7 @@ class Bn extends u {
|
|
|
1038
1078
|
});
|
|
1039
1079
|
}
|
|
1040
1080
|
}
|
|
1041
|
-
function
|
|
1081
|
+
function he(e, t) {
|
|
1042
1082
|
return ({ exclude: s, format: n }) => ({
|
|
1043
1083
|
exclude: s,
|
|
1044
1084
|
format: (r) => {
|
|
@@ -1054,33 +1094,33 @@ function le(e, t) {
|
|
|
1054
1094
|
type: e
|
|
1055
1095
|
});
|
|
1056
1096
|
}
|
|
1057
|
-
const
|
|
1097
|
+
const pe = 2n ** 256n - 1n, tt = {
|
|
1058
1098
|
"0x0": "legacy",
|
|
1059
1099
|
"0x1": "eip2930",
|
|
1060
1100
|
"0x2": "eip1559",
|
|
1061
1101
|
"0x3": "eip4844",
|
|
1062
1102
|
"0x4": "eip7702"
|
|
1063
1103
|
};
|
|
1064
|
-
function
|
|
1104
|
+
function be(e) {
|
|
1065
1105
|
const t = {
|
|
1066
1106
|
...e,
|
|
1067
1107
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
1068
1108
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
1069
|
-
chainId: e.chainId ?
|
|
1109
|
+
chainId: e.chainId ? te(e.chainId) : void 0,
|
|
1070
1110
|
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
1071
1111
|
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
1072
1112
|
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
1073
1113
|
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
1074
1114
|
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
1075
|
-
nonce: e.nonce ?
|
|
1115
|
+
nonce: e.nonce ? te(e.nonce) : void 0,
|
|
1076
1116
|
to: e.to ? e.to : null,
|
|
1077
1117
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1078
|
-
type: e.type ?
|
|
1118
|
+
type: e.type ? tt[e.type] : void 0,
|
|
1079
1119
|
typeHex: e.type ? e.type : void 0,
|
|
1080
1120
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1081
1121
|
v: e.v ? BigInt(e.v) : void 0
|
|
1082
1122
|
};
|
|
1083
|
-
return e.authorizationList && (t.authorizationList =
|
|
1123
|
+
return e.authorizationList && (t.authorizationList = $s(e.authorizationList)), t.yParity = (() => {
|
|
1084
1124
|
if (e.yParity)
|
|
1085
1125
|
return Number(e.yParity);
|
|
1086
1126
|
if (typeof t.v == "bigint") {
|
|
@@ -1093,10 +1133,10 @@ function fe(e) {
|
|
|
1093
1133
|
}
|
|
1094
1134
|
})(), 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
1135
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1136
|
+
const As = /* @__PURE__ */ he("transaction", be);
|
|
1137
|
+
function $s(e) {
|
|
1098
1138
|
return e.map((t) => ({
|
|
1099
|
-
|
|
1139
|
+
address: t.address,
|
|
1100
1140
|
chainId: Number(t.chainId),
|
|
1101
1141
|
nonce: Number(t.nonce),
|
|
1102
1142
|
r: t.r,
|
|
@@ -1104,8 +1144,8 @@ function ws(e) {
|
|
|
1104
1144
|
yParity: Number(t.yParity)
|
|
1105
1145
|
}));
|
|
1106
1146
|
}
|
|
1107
|
-
function
|
|
1108
|
-
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s :
|
|
1147
|
+
function Fs(e) {
|
|
1148
|
+
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : be(s));
|
|
1109
1149
|
return {
|
|
1110
1150
|
...e,
|
|
1111
1151
|
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
@@ -1124,46 +1164,44 @@ function Es(e) {
|
|
|
1124
1164
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1125
1165
|
};
|
|
1126
1166
|
}
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
-
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) =>
|
|
1167
|
+
const Us = /* @__PURE__ */ he("block", Fs);
|
|
1168
|
+
function st(e) {
|
|
1169
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) => z(i)) : e.blobs, r = [];
|
|
1130
1170
|
for (const i of n)
|
|
1131
1171
|
r.push(Uint8Array.from(t.blobToKzgCommitment(i)));
|
|
1132
1172
|
return s === "bytes" ? r : r.map((i) => $(i));
|
|
1133
1173
|
}
|
|
1134
|
-
function
|
|
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) =>
|
|
1174
|
+
function nt(e) {
|
|
1175
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) => z(o)) : e.blobs, r = typeof e.commitments[0] == "string" ? e.commitments.map((o) => z(o)) : e.commitments, i = [];
|
|
1136
1176
|
for (let o = 0; o < n.length; o++) {
|
|
1137
1177
|
const a = n[o], c = r[o];
|
|
1138
1178
|
i.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
|
|
1139
1179
|
}
|
|
1140
1180
|
return s === "bytes" ? i : i.map((o) => $(o));
|
|
1141
1181
|
}
|
|
1142
|
-
function
|
|
1182
|
+
function Cs(e, t, s, n) {
|
|
1143
1183
|
if (typeof e.setBigUint64 == "function")
|
|
1144
1184
|
return e.setBigUint64(t, s, n);
|
|
1145
1185
|
const r = BigInt(32), i = BigInt(4294967295), o = Number(s >> r & i), a = Number(s & i), c = n ? 4 : 0, l = n ? 0 : 4;
|
|
1146
1186
|
e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
|
|
1147
1187
|
}
|
|
1148
|
-
function
|
|
1188
|
+
function zs(e, t, s) {
|
|
1149
1189
|
return e & t ^ ~e & s;
|
|
1150
1190
|
}
|
|
1151
|
-
function
|
|
1191
|
+
function ks(e, t, s) {
|
|
1152
1192
|
return e & t ^ e & s ^ t & s;
|
|
1153
1193
|
}
|
|
1154
|
-
class
|
|
1194
|
+
class Ss extends Oe {
|
|
1155
1195
|
constructor(t, s, n, r) {
|
|
1156
|
-
super(), this.
|
|
1196
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(t), this.view = ae(this.buffer);
|
|
1157
1197
|
}
|
|
1158
1198
|
update(t) {
|
|
1159
|
-
|
|
1160
|
-
const { view: s, buffer: n, blockLen: r } = this;
|
|
1161
|
-
t = ce(t);
|
|
1162
|
-
const i = t.length;
|
|
1199
|
+
ne(this), t = de(t), k(t);
|
|
1200
|
+
const { view: s, buffer: n, blockLen: r } = this, i = t.length;
|
|
1163
1201
|
for (let o = 0; o < i; ) {
|
|
1164
1202
|
const a = Math.min(r - this.pos, i - o);
|
|
1165
1203
|
if (a === r) {
|
|
1166
|
-
const c =
|
|
1204
|
+
const c = ae(t);
|
|
1167
1205
|
for (; r <= i - o; o += r)
|
|
1168
1206
|
this.process(c, o);
|
|
1169
1207
|
continue;
|
|
@@ -1173,14 +1211,14 @@ class Ts extends Le {
|
|
|
1173
1211
|
return this.length += t.length, this.roundClean(), this;
|
|
1174
1212
|
}
|
|
1175
1213
|
digestInto(t) {
|
|
1176
|
-
|
|
1214
|
+
ne(this), Le(t, this), this.finished = !0;
|
|
1177
1215
|
const { buffer: s, view: n, blockLen: r, isLE: i } = this;
|
|
1178
1216
|
let { pos: o } = this;
|
|
1179
|
-
s[o++] = 128, this.buffer.subarray(o)
|
|
1217
|
+
s[o++] = 128, Z(this.buffer.subarray(o)), this.padOffset > r - o && (this.process(n, 0), o = 0);
|
|
1180
1218
|
for (let d = o; d < r; d++)
|
|
1181
1219
|
s[d] = 0;
|
|
1182
|
-
|
|
1183
|
-
const a =
|
|
1220
|
+
Cs(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
1221
|
+
const a = ae(t), c = this.outputLen;
|
|
1184
1222
|
if (c % 4)
|
|
1185
1223
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1186
1224
|
const l = c / 4, h = this.get();
|
|
@@ -1198,10 +1236,22 @@ class Ts extends Le {
|
|
|
1198
1236
|
_cloneInto(t) {
|
|
1199
1237
|
t || (t = new this.constructor()), t.set(...this.get());
|
|
1200
1238
|
const { blockLen: s, buffer: n, length: r, finished: i, destroyed: o, pos: a } = this;
|
|
1201
|
-
return t.
|
|
1239
|
+
return t.destroyed = o, t.finished = i, t.length = r, t.pos = a, r % s && t.buffer.set(n), t;
|
|
1240
|
+
}
|
|
1241
|
+
clone() {
|
|
1242
|
+
return this._cloneInto();
|
|
1202
1243
|
}
|
|
1203
1244
|
}
|
|
1204
|
-
const
|
|
1245
|
+
const P = /* @__PURE__ */ Uint32Array.from([
|
|
1246
|
+
1779033703,
|
|
1247
|
+
3144134277,
|
|
1248
|
+
1013904242,
|
|
1249
|
+
2773480762,
|
|
1250
|
+
1359893119,
|
|
1251
|
+
2600822924,
|
|
1252
|
+
528734635,
|
|
1253
|
+
1541459225
|
|
1254
|
+
]), Hs = /* @__PURE__ */ Uint32Array.from([
|
|
1205
1255
|
1116352408,
|
|
1206
1256
|
1899447441,
|
|
1207
1257
|
3049323471,
|
|
@@ -1266,19 +1316,10 @@ const $s = /* @__PURE__ */ new Uint32Array([
|
|
|
1266
1316
|
2756734187,
|
|
1267
1317
|
3204031479,
|
|
1268
1318
|
3329325298
|
|
1269
|
-
]),
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
2773480762,
|
|
1274
|
-
1359893119,
|
|
1275
|
-
2600822924,
|
|
1276
|
-
528734635,
|
|
1277
|
-
1541459225
|
|
1278
|
-
]), P = /* @__PURE__ */ new Uint32Array(64);
|
|
1279
|
-
class As extends Ts {
|
|
1280
|
-
constructor() {
|
|
1281
|
-
super(64, 32, 8, !1), this.A = B[0] | 0, this.B = B[1] | 0, this.C = B[2] | 0, this.D = B[3] | 0, this.E = B[4] | 0, this.F = B[5] | 0, this.G = B[6] | 0, this.H = B[7] | 0;
|
|
1319
|
+
]), I = /* @__PURE__ */ new Uint32Array(64);
|
|
1320
|
+
class Ls extends Ss {
|
|
1321
|
+
constructor(t = 32) {
|
|
1322
|
+
super(64, t, 8, !1), this.A = P[0] | 0, this.B = P[1] | 0, this.C = P[2] | 0, this.D = P[3] | 0, this.E = P[4] | 0, this.F = P[5] | 0, this.G = P[6] | 0, this.H = P[7] | 0;
|
|
1282
1323
|
}
|
|
1283
1324
|
get() {
|
|
1284
1325
|
const { A: t, B: s, C: n, D: r, E: i, F: o, G: a, H: c } = this;
|
|
@@ -1290,47 +1331,47 @@ class As extends Ts {
|
|
|
1290
1331
|
}
|
|
1291
1332
|
process(t, s) {
|
|
1292
1333
|
for (let d = 0; d < 16; d++, s += 4)
|
|
1293
|
-
|
|
1334
|
+
I[d] = t.getUint32(s, !1);
|
|
1294
1335
|
for (let d = 16; d < 64; d++) {
|
|
1295
|
-
const b =
|
|
1296
|
-
|
|
1336
|
+
const b = I[d - 15], p = I[d - 2], B = g(b, 7) ^ g(b, 18) ^ b >>> 3, L = g(p, 17) ^ g(p, 19) ^ p >>> 10;
|
|
1337
|
+
I[d] = L + I[d - 7] + B + I[d - 16] | 0;
|
|
1297
1338
|
}
|
|
1298
1339
|
let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
|
|
1299
1340
|
for (let d = 0; d < 64; d++) {
|
|
1300
|
-
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b +
|
|
1301
|
-
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p +
|
|
1341
|
+
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + zs(a, c, l) + Hs[d] + I[d] | 0, L = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + ks(n, r, i) | 0;
|
|
1342
|
+
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + L | 0;
|
|
1302
1343
|
}
|
|
1303
1344
|
n = n + this.A | 0, r = r + this.B | 0, i = i + 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, r, i, o, a, c, l, h);
|
|
1304
1345
|
}
|
|
1305
1346
|
roundClean() {
|
|
1306
|
-
|
|
1347
|
+
Z(I);
|
|
1307
1348
|
}
|
|
1308
1349
|
destroy() {
|
|
1309
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer
|
|
1350
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), Z(this.buffer);
|
|
1310
1351
|
}
|
|
1311
1352
|
}
|
|
1312
|
-
const
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1353
|
+
const Gs = /* @__PURE__ */ Ne(() => new Ls()), Os = Gs;
|
|
1354
|
+
function Ns(e, t) {
|
|
1355
|
+
return Os(Y(e, { strict: !1 }) ? Se(e) : e);
|
|
1315
1356
|
}
|
|
1316
|
-
function
|
|
1317
|
-
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r =
|
|
1357
|
+
function Ms(e) {
|
|
1358
|
+
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Ns(t);
|
|
1318
1359
|
return r.set([s], 0), n === "bytes" ? r : $(r);
|
|
1319
1360
|
}
|
|
1320
|
-
function
|
|
1361
|
+
function _s(e) {
|
|
1321
1362
|
const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
|
|
1322
1363
|
for (const i of t)
|
|
1323
|
-
r.push(
|
|
1364
|
+
r.push(Ms({
|
|
1324
1365
|
commitment: i,
|
|
1325
1366
|
to: n,
|
|
1326
1367
|
version: s
|
|
1327
1368
|
}));
|
|
1328
1369
|
return r;
|
|
1329
1370
|
}
|
|
1330
|
-
const
|
|
1371
|
+
const $e = 6, rt = 32, me = 4096, it = rt * me, Fe = it * $e - // terminator byte (0x80).
|
|
1331
1372
|
1 - // zero byte (0x00) appended to each field element.
|
|
1332
|
-
1 *
|
|
1333
|
-
class
|
|
1373
|
+
1 * me * $e, ot = 1;
|
|
1374
|
+
class Vs extends u {
|
|
1334
1375
|
constructor({ maxSize: t, size: s }) {
|
|
1335
1376
|
super("Blob size is too large.", {
|
|
1336
1377
|
metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
|
|
@@ -1338,12 +1379,12 @@ class ks extends u {
|
|
|
1338
1379
|
});
|
|
1339
1380
|
}
|
|
1340
1381
|
}
|
|
1341
|
-
class
|
|
1382
|
+
class at extends u {
|
|
1342
1383
|
constructor() {
|
|
1343
1384
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1344
1385
|
}
|
|
1345
1386
|
}
|
|
1346
|
-
class
|
|
1387
|
+
class Ds extends u {
|
|
1347
1388
|
constructor({ hash: t, size: s }) {
|
|
1348
1389
|
super(`Versioned hash "${t}" size is invalid.`, {
|
|
1349
1390
|
metaMessages: ["Expected: 32", `Received: ${s}`],
|
|
@@ -1351,33 +1392,33 @@ class Ss extends u {
|
|
|
1351
1392
|
});
|
|
1352
1393
|
}
|
|
1353
1394
|
}
|
|
1354
|
-
class
|
|
1395
|
+
class Rs extends u {
|
|
1355
1396
|
constructor({ hash: t, version: s }) {
|
|
1356
1397
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1357
1398
|
metaMessages: [
|
|
1358
|
-
`Expected: ${
|
|
1399
|
+
`Expected: ${ot}`,
|
|
1359
1400
|
`Received: ${s}`
|
|
1360
1401
|
],
|
|
1361
1402
|
name: "InvalidVersionedHashVersionError"
|
|
1362
1403
|
});
|
|
1363
1404
|
}
|
|
1364
1405
|
}
|
|
1365
|
-
function
|
|
1366
|
-
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ?
|
|
1406
|
+
function js(e) {
|
|
1407
|
+
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? z(e.data) : e.data, n = v(s);
|
|
1367
1408
|
if (!n)
|
|
1368
|
-
throw new
|
|
1369
|
-
if (n >
|
|
1370
|
-
throw new
|
|
1371
|
-
maxSize:
|
|
1409
|
+
throw new at();
|
|
1410
|
+
if (n > Fe)
|
|
1411
|
+
throw new Vs({
|
|
1412
|
+
maxSize: Fe,
|
|
1372
1413
|
size: n
|
|
1373
1414
|
});
|
|
1374
1415
|
const r = [];
|
|
1375
1416
|
let i = !0, o = 0;
|
|
1376
1417
|
for (; i; ) {
|
|
1377
|
-
const a =
|
|
1418
|
+
const a = Xe(new Uint8Array(it));
|
|
1378
1419
|
let c = 0;
|
|
1379
|
-
for (; c <
|
|
1380
|
-
const l = s.slice(o, o + (
|
|
1420
|
+
for (; c < me; ) {
|
|
1421
|
+
const l = s.slice(o, o + (rt - 1));
|
|
1381
1422
|
if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
|
|
1382
1423
|
a.pushByte(128), i = !1;
|
|
1383
1424
|
break;
|
|
@@ -1388,8 +1429,8 @@ function Gs(e) {
|
|
|
1388
1429
|
}
|
|
1389
1430
|
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => $(a.bytes));
|
|
1390
1431
|
}
|
|
1391
|
-
function
|
|
1392
|
-
const { data: t, kzg: s, to: n } = e, r = e.blobs ??
|
|
1432
|
+
function Ks(e) {
|
|
1433
|
+
const { data: t, kzg: s, to: n } = e, r = e.blobs ?? js({ data: t, to: n }), i = e.commitments ?? st({ blobs: r, kzg: s, to: n }), o = e.proofs ?? nt({ blobs: r, commitments: i, kzg: s, to: n }), a = [];
|
|
1393
1434
|
for (let c = 0; c < r.length; c++)
|
|
1394
1435
|
a.push({
|
|
1395
1436
|
blob: r[c],
|
|
@@ -1398,7 +1439,7 @@ function Hs(e) {
|
|
|
1398
1439
|
});
|
|
1399
1440
|
return a;
|
|
1400
1441
|
}
|
|
1401
|
-
function
|
|
1442
|
+
function Ws(e) {
|
|
1402
1443
|
if (e.type)
|
|
1403
1444
|
return e.type;
|
|
1404
1445
|
if (typeof e.authorizationList < "u")
|
|
@@ -1409,9 +1450,9 @@ function Os(e) {
|
|
|
1409
1450
|
return "eip1559";
|
|
1410
1451
|
if (typeof e.gasPrice < "u")
|
|
1411
1452
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1412
|
-
throw new
|
|
1453
|
+
throw new bs({ transaction: e });
|
|
1413
1454
|
}
|
|
1414
|
-
function
|
|
1455
|
+
function Xs(e, { args: t, eventName: s } = {}) {
|
|
1415
1456
|
return {
|
|
1416
1457
|
...e,
|
|
1417
1458
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -1422,7 +1463,7 @@ function Ns(e, { args: t, eventName: s } = {}) {
|
|
|
1422
1463
|
...s ? { args: t, eventName: s } : {}
|
|
1423
1464
|
};
|
|
1424
1465
|
}
|
|
1425
|
-
class
|
|
1466
|
+
class Sn extends u {
|
|
1426
1467
|
constructor({ blockNumber: t, chain: s, contract: n }) {
|
|
1427
1468
|
super(`Chain "${s.name}" does not support contract "${n.name}".`, {
|
|
1428
1469
|
metaMessages: [
|
|
@@ -1437,7 +1478,7 @@ class Pn extends u {
|
|
|
1437
1478
|
});
|
|
1438
1479
|
}
|
|
1439
1480
|
}
|
|
1440
|
-
class
|
|
1481
|
+
class Hn extends u {
|
|
1441
1482
|
constructor({ chain: t, currentChainId: s }) {
|
|
1442
1483
|
super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
|
|
1443
1484
|
metaMessages: [
|
|
@@ -1448,7 +1489,7 @@ class vn extends u {
|
|
|
1448
1489
|
});
|
|
1449
1490
|
}
|
|
1450
1491
|
}
|
|
1451
|
-
class
|
|
1492
|
+
class Ln extends u {
|
|
1452
1493
|
constructor() {
|
|
1453
1494
|
super([
|
|
1454
1495
|
"No chain was provided to the request.",
|
|
@@ -1459,31 +1500,23 @@ class In extends u {
|
|
|
1459
1500
|
});
|
|
1460
1501
|
}
|
|
1461
1502
|
}
|
|
1462
|
-
class
|
|
1503
|
+
class Gn extends u {
|
|
1463
1504
|
constructor() {
|
|
1464
1505
|
super("No chain was provided to the Client.", {
|
|
1465
1506
|
name: "ClientChainNotConfiguredError"
|
|
1466
1507
|
});
|
|
1467
1508
|
}
|
|
1468
1509
|
}
|
|
1469
|
-
class
|
|
1510
|
+
class ie extends u {
|
|
1470
1511
|
constructor({ chainId: t }) {
|
|
1471
1512
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1472
1513
|
}
|
|
1473
1514
|
}
|
|
1474
|
-
|
|
1475
|
-
return {
|
|
1476
|
-
formatters: void 0,
|
|
1477
|
-
fees: void 0,
|
|
1478
|
-
serializers: void 0,
|
|
1479
|
-
...e
|
|
1480
|
-
};
|
|
1481
|
-
}
|
|
1482
|
-
const Ms = {
|
|
1515
|
+
const qs = {
|
|
1483
1516
|
"0x0": "reverted",
|
|
1484
1517
|
"0x1": "success"
|
|
1485
1518
|
};
|
|
1486
|
-
function
|
|
1519
|
+
function Zs(e) {
|
|
1487
1520
|
const t = {
|
|
1488
1521
|
...e,
|
|
1489
1522
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1491,94 +1524,87 @@ function _s(e) {
|
|
|
1491
1524
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1492
1525
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1493
1526
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1494
|
-
logs: e.logs ? e.logs.map((s) =>
|
|
1527
|
+
logs: e.logs ? e.logs.map((s) => Xs(s)) : null,
|
|
1495
1528
|
to: e.to ? e.to : null,
|
|
1496
|
-
transactionIndex: e.transactionIndex ?
|
|
1497
|
-
status: e.status ?
|
|
1498
|
-
type: e.type ?
|
|
1529
|
+
transactionIndex: e.transactionIndex ? te(e.transactionIndex) : null,
|
|
1530
|
+
status: e.status ? qs[e.status] : null,
|
|
1531
|
+
type: e.type ? tt[e.type] || e.type : null
|
|
1499
1532
|
};
|
|
1500
1533
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1501
1534
|
}
|
|
1502
|
-
const
|
|
1503
|
-
function
|
|
1535
|
+
const Ys = /* @__PURE__ */ he("transactionReceipt", Zs);
|
|
1536
|
+
function x(e) {
|
|
1537
|
+
return {
|
|
1538
|
+
formatters: void 0,
|
|
1539
|
+
fees: void 0,
|
|
1540
|
+
serializers: void 0,
|
|
1541
|
+
...e
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
function Js(e) {
|
|
1504
1545
|
const { authorizationList: t } = e;
|
|
1505
1546
|
if (t)
|
|
1506
1547
|
for (const s of t) {
|
|
1507
|
-
const {
|
|
1508
|
-
if (!
|
|
1509
|
-
throw new
|
|
1510
|
-
if (
|
|
1511
|
-
throw new
|
|
1548
|
+
const { chainId: n } = s, r = s.address;
|
|
1549
|
+
if (!A(r))
|
|
1550
|
+
throw new T({ address: r });
|
|
1551
|
+
if (n < 0)
|
|
1552
|
+
throw new ie({ chainId: n });
|
|
1512
1553
|
}
|
|
1513
|
-
|
|
1554
|
+
xe(e);
|
|
1514
1555
|
}
|
|
1515
|
-
function
|
|
1556
|
+
function Qs(e) {
|
|
1516
1557
|
const { blobVersionedHashes: t } = e;
|
|
1517
1558
|
if (t) {
|
|
1518
1559
|
if (t.length === 0)
|
|
1519
|
-
throw new
|
|
1560
|
+
throw new at();
|
|
1520
1561
|
for (const s of t) {
|
|
1521
|
-
const n = v(s), r =
|
|
1562
|
+
const n = v(s), r = te(is(s, 0, 1));
|
|
1522
1563
|
if (n !== 32)
|
|
1523
|
-
throw new
|
|
1524
|
-
if (r !==
|
|
1525
|
-
throw new
|
|
1564
|
+
throw new Ds({ hash: s, size: n });
|
|
1565
|
+
if (r !== ot)
|
|
1566
|
+
throw new Rs({
|
|
1526
1567
|
hash: s,
|
|
1527
1568
|
version: r
|
|
1528
1569
|
});
|
|
1529
1570
|
}
|
|
1530
1571
|
}
|
|
1531
|
-
|
|
1572
|
+
xe(e);
|
|
1532
1573
|
}
|
|
1533
|
-
function
|
|
1574
|
+
function xe(e) {
|
|
1534
1575
|
const { chainId: t, maxPriorityFeePerGas: s, maxFeePerGas: n, to: r } = e;
|
|
1535
1576
|
if (t <= 0)
|
|
1536
|
-
throw new
|
|
1537
|
-
if (r && !
|
|
1538
|
-
throw new
|
|
1539
|
-
if (n && n >
|
|
1540
|
-
throw new
|
|
1577
|
+
throw new ie({ chainId: t });
|
|
1578
|
+
if (r && !A(r))
|
|
1579
|
+
throw new T({ address: r });
|
|
1580
|
+
if (n && n > pe)
|
|
1581
|
+
throw new re({ maxFeePerGas: n });
|
|
1541
1582
|
if (s && n && s > n)
|
|
1542
|
-
throw new
|
|
1583
|
+
throw new et({ maxFeePerGas: n, maxPriorityFeePerGas: s });
|
|
1543
1584
|
}
|
|
1544
|
-
function
|
|
1585
|
+
function en(e) {
|
|
1545
1586
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1546
1587
|
if (t <= 0)
|
|
1547
|
-
throw new
|
|
1548
|
-
if (i && !
|
|
1549
|
-
throw new
|
|
1588
|
+
throw new ie({ chainId: t });
|
|
1589
|
+
if (i && !A(i))
|
|
1590
|
+
throw new T({ address: i });
|
|
1550
1591
|
if (s || r)
|
|
1551
1592
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
1552
|
-
if (n && n >
|
|
1553
|
-
throw new
|
|
1593
|
+
if (n && n > pe)
|
|
1594
|
+
throw new re({ maxFeePerGas: n });
|
|
1554
1595
|
}
|
|
1555
|
-
function
|
|
1596
|
+
function tn(e) {
|
|
1556
1597
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1557
|
-
if (i && !
|
|
1558
|
-
throw new
|
|
1598
|
+
if (i && !A(i))
|
|
1599
|
+
throw new T({ address: i });
|
|
1559
1600
|
if (typeof t < "u" && t <= 0)
|
|
1560
|
-
throw new
|
|
1601
|
+
throw new ie({ chainId: t });
|
|
1561
1602
|
if (s || r)
|
|
1562
1603
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
1563
|
-
if (n && n >
|
|
1564
|
-
throw new
|
|
1565
|
-
}
|
|
1566
|
-
function Ws(e) {
|
|
1567
|
-
if (!e || e.length === 0)
|
|
1568
|
-
return [];
|
|
1569
|
-
const t = [];
|
|
1570
|
-
for (const s of e) {
|
|
1571
|
-
const { contractAddress: n, chainId: r, nonce: i, ...o } = s;
|
|
1572
|
-
t.push([
|
|
1573
|
-
r ? f(r) : "0x",
|
|
1574
|
-
n,
|
|
1575
|
-
i ? f(i) : "0x",
|
|
1576
|
-
...X({}, o)
|
|
1577
|
-
]);
|
|
1578
|
-
}
|
|
1579
|
-
return t;
|
|
1604
|
+
if (n && n > pe)
|
|
1605
|
+
throw new re({ maxFeePerGas: n });
|
|
1580
1606
|
}
|
|
1581
|
-
function
|
|
1607
|
+
function oe(e) {
|
|
1582
1608
|
if (!e || e.length === 0)
|
|
1583
1609
|
return [];
|
|
1584
1610
|
const t = [];
|
|
@@ -1586,24 +1612,24 @@ function ne(e) {
|
|
|
1586
1612
|
const { address: n, storageKeys: r } = e[s];
|
|
1587
1613
|
for (let i = 0; i < r.length; i++)
|
|
1588
1614
|
if (r[i].length - 2 !== 64)
|
|
1589
|
-
throw new
|
|
1590
|
-
if (!
|
|
1591
|
-
throw new
|
|
1615
|
+
throw new ms({ storageKey: r[i] });
|
|
1616
|
+
if (!A(n, { strict: !1 }))
|
|
1617
|
+
throw new T({ address: n });
|
|
1592
1618
|
t.push([n, r]);
|
|
1593
1619
|
}
|
|
1594
1620
|
return t;
|
|
1595
1621
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const s =
|
|
1598
|
-
return s === "eip1559" ?
|
|
1622
|
+
function sn(e, t) {
|
|
1623
|
+
const s = Ws(e);
|
|
1624
|
+
return s === "eip1559" ? on(e, t) : s === "eip2930" ? an(e, t) : s === "eip4844" ? rn(e, t) : s === "eip7702" ? nn(e, t) : cn(e, t);
|
|
1599
1625
|
}
|
|
1600
|
-
function
|
|
1626
|
+
function nn(e, t) {
|
|
1601
1627
|
const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1602
|
-
|
|
1603
|
-
const b =
|
|
1604
|
-
return
|
|
1628
|
+
Js(e);
|
|
1629
|
+
const b = oe(h), p = un(s);
|
|
1630
|
+
return _([
|
|
1605
1631
|
"0x04",
|
|
1606
|
-
|
|
1632
|
+
S([
|
|
1607
1633
|
f(n),
|
|
1608
1634
|
i ? f(i) : "0x",
|
|
1609
1635
|
l ? f(l) : "0x",
|
|
@@ -1614,27 +1640,27 @@ function Zs(e, t) {
|
|
|
1614
1640
|
d ?? "0x",
|
|
1615
1641
|
b,
|
|
1616
1642
|
p,
|
|
1617
|
-
...
|
|
1643
|
+
...J(e, t)
|
|
1618
1644
|
])
|
|
1619
1645
|
]);
|
|
1620
1646
|
}
|
|
1621
|
-
function
|
|
1647
|
+
function rn(e, t) {
|
|
1622
1648
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1623
|
-
|
|
1649
|
+
Qs(e);
|
|
1624
1650
|
let b = e.blobVersionedHashes, p = e.sidecars;
|
|
1625
1651
|
if (e.blobs && (typeof b > "u" || typeof p > "u")) {
|
|
1626
|
-
const
|
|
1627
|
-
blobs:
|
|
1628
|
-
kzg:
|
|
1652
|
+
const F = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((D) => $(D)), Q = e.kzg, V = st({
|
|
1653
|
+
blobs: F,
|
|
1654
|
+
kzg: Q
|
|
1629
1655
|
});
|
|
1630
|
-
if (typeof b > "u" && (b =
|
|
1631
|
-
commitments:
|
|
1656
|
+
if (typeof b > "u" && (b = _s({
|
|
1657
|
+
commitments: V
|
|
1632
1658
|
})), typeof p > "u") {
|
|
1633
|
-
const
|
|
1634
|
-
p =
|
|
1659
|
+
const D = nt({ blobs: F, commitments: V, kzg: Q });
|
|
1660
|
+
p = Ks({ blobs: F, commitments: V, proofs: D });
|
|
1635
1661
|
}
|
|
1636
1662
|
}
|
|
1637
|
-
const
|
|
1663
|
+
const B = oe(h), L = [
|
|
1638
1664
|
f(s),
|
|
1639
1665
|
r ? f(r) : "0x",
|
|
1640
1666
|
l ? f(l) : "0x",
|
|
@@ -1643,26 +1669,26 @@ function qs(e, t) {
|
|
|
1643
1669
|
i ?? "0x",
|
|
1644
1670
|
o ? f(o) : "0x",
|
|
1645
1671
|
d ?? "0x",
|
|
1646
|
-
|
|
1672
|
+
B,
|
|
1647
1673
|
a ? f(a) : "0x",
|
|
1648
1674
|
b ?? [],
|
|
1649
|
-
...
|
|
1650
|
-
],
|
|
1675
|
+
...J(e, t)
|
|
1676
|
+
], ge = [], ye = [], we = [];
|
|
1651
1677
|
if (p)
|
|
1652
|
-
for (let
|
|
1653
|
-
const { blob:
|
|
1654
|
-
|
|
1678
|
+
for (let F = 0; F < p.length; F++) {
|
|
1679
|
+
const { blob: Q, commitment: V, proof: D } = p[F];
|
|
1680
|
+
ge.push(Q), ye.push(V), we.push(D);
|
|
1655
1681
|
}
|
|
1656
|
-
return
|
|
1682
|
+
return _([
|
|
1657
1683
|
"0x03",
|
|
1658
1684
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1659
|
-
|
|
1685
|
+
S(p ? [L, ge, ye, we] : L)
|
|
1660
1686
|
]);
|
|
1661
1687
|
}
|
|
1662
|
-
function
|
|
1688
|
+
function on(e, t) {
|
|
1663
1689
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
|
|
1664
|
-
|
|
1665
|
-
const d =
|
|
1690
|
+
xe(e);
|
|
1691
|
+
const d = oe(l), b = [
|
|
1666
1692
|
f(s),
|
|
1667
1693
|
r ? f(r) : "0x",
|
|
1668
1694
|
c ? f(c) : "0x",
|
|
@@ -1672,17 +1698,17 @@ function Ys(e, t) {
|
|
|
1672
1698
|
o ? f(o) : "0x",
|
|
1673
1699
|
h ?? "0x",
|
|
1674
1700
|
d,
|
|
1675
|
-
...
|
|
1701
|
+
...J(e, t)
|
|
1676
1702
|
];
|
|
1677
|
-
return
|
|
1703
|
+
return _([
|
|
1678
1704
|
"0x02",
|
|
1679
|
-
|
|
1705
|
+
S(b)
|
|
1680
1706
|
]);
|
|
1681
1707
|
}
|
|
1682
|
-
function
|
|
1708
|
+
function an(e, t) {
|
|
1683
1709
|
const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
|
|
1684
|
-
|
|
1685
|
-
const h =
|
|
1710
|
+
en(e);
|
|
1711
|
+
const h = oe(c), d = [
|
|
1686
1712
|
f(s),
|
|
1687
1713
|
i ? f(i) : "0x",
|
|
1688
1714
|
l ? f(l) : "0x",
|
|
@@ -1691,16 +1717,16 @@ function Js(e, t) {
|
|
|
1691
1717
|
a ? f(a) : "0x",
|
|
1692
1718
|
r ?? "0x",
|
|
1693
1719
|
h,
|
|
1694
|
-
...
|
|
1720
|
+
...J(e, t)
|
|
1695
1721
|
];
|
|
1696
|
-
return
|
|
1722
|
+
return _([
|
|
1697
1723
|
"0x01",
|
|
1698
|
-
|
|
1724
|
+
S(d)
|
|
1699
1725
|
]);
|
|
1700
1726
|
}
|
|
1701
|
-
function
|
|
1727
|
+
function cn(e, t) {
|
|
1702
1728
|
const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
|
|
1703
|
-
|
|
1729
|
+
tn(e);
|
|
1704
1730
|
let l = [
|
|
1705
1731
|
i ? f(i) : "0x",
|
|
1706
1732
|
c ? f(c) : "0x",
|
|
@@ -1717,9 +1743,9 @@ function Qs(e, t) {
|
|
|
1717
1743
|
return BigInt(s * 2) + BigInt(35n + t.v - 27n);
|
|
1718
1744
|
const p = 27n + (t.v === 27n ? 0n : 1n);
|
|
1719
1745
|
if (t.v !== p)
|
|
1720
|
-
throw new
|
|
1746
|
+
throw new ps({ v: t.v });
|
|
1721
1747
|
return p;
|
|
1722
|
-
})(), d =
|
|
1748
|
+
})(), d = U(t.r), b = U(t.s);
|
|
1723
1749
|
l = [
|
|
1724
1750
|
...l,
|
|
1725
1751
|
f(h),
|
|
@@ -1732,9 +1758,9 @@ function Qs(e, t) {
|
|
|
1732
1758
|
"0x",
|
|
1733
1759
|
"0x"
|
|
1734
1760
|
]);
|
|
1735
|
-
return
|
|
1761
|
+
return S(l);
|
|
1736
1762
|
}
|
|
1737
|
-
function
|
|
1763
|
+
function J(e, t) {
|
|
1738
1764
|
const s = t ?? e, { v: n, yParity: r } = s;
|
|
1739
1765
|
if (typeof s.r > "u")
|
|
1740
1766
|
return [];
|
|
@@ -1742,10 +1768,25 @@ function X(e, t) {
|
|
|
1742
1768
|
return [];
|
|
1743
1769
|
if (typeof n > "u" && typeof r > "u")
|
|
1744
1770
|
return [];
|
|
1745
|
-
const i =
|
|
1771
|
+
const i = U(s.r), o = U(s.s);
|
|
1746
1772
|
return [typeof r == "number" ? r ? f(1) : "0x" : n === 0n ? "0x" : n === 1n ? f(1) : n === 27n ? "0x" : f(1), i === "0x00" ? "0x" : i, o === "0x00" ? "0x" : o];
|
|
1747
1773
|
}
|
|
1748
|
-
|
|
1774
|
+
function un(e) {
|
|
1775
|
+
if (!e || e.length === 0)
|
|
1776
|
+
return [];
|
|
1777
|
+
const t = [];
|
|
1778
|
+
for (const s of e) {
|
|
1779
|
+
const { chainId: n, nonce: r, ...i } = s, o = s.address;
|
|
1780
|
+
t.push([
|
|
1781
|
+
n ? N(n) : "0x",
|
|
1782
|
+
o,
|
|
1783
|
+
r ? N(r) : "0x",
|
|
1784
|
+
...J({}, i)
|
|
1785
|
+
]);
|
|
1786
|
+
}
|
|
1787
|
+
return t;
|
|
1788
|
+
}
|
|
1789
|
+
const ln = {
|
|
1749
1790
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
1750
1791
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
1751
1792
|
l2CrossDomainMessenger: {
|
|
@@ -1756,76 +1797,77 @@ const en = {
|
|
|
1756
1797
|
l2ToL1MessagePasser: {
|
|
1757
1798
|
address: "0x4200000000000000000000000000000000000016"
|
|
1758
1799
|
}
|
|
1759
|
-
},
|
|
1760
|
-
block: /* @__PURE__ */
|
|
1800
|
+
}, dn = {
|
|
1801
|
+
block: /* @__PURE__ */ Us({
|
|
1761
1802
|
format(e) {
|
|
1762
1803
|
var s;
|
|
1763
1804
|
return {
|
|
1764
1805
|
transactions: (s = e.transactions) == null ? void 0 : s.map((n) => {
|
|
1765
1806
|
if (typeof n == "string")
|
|
1766
1807
|
return n;
|
|
1767
|
-
const r =
|
|
1768
|
-
return r.typeHex === "0x7e" && (r.isSystemTx = n.isSystemTx, r.mint = n.mint ?
|
|
1808
|
+
const r = be(n);
|
|
1809
|
+
return r.typeHex === "0x7e" && (r.isSystemTx = n.isSystemTx, r.mint = n.mint ? O(n.mint) : void 0, r.sourceHash = n.sourceHash, r.type = "deposit"), r;
|
|
1769
1810
|
}),
|
|
1770
1811
|
stateRoot: e.stateRoot
|
|
1771
1812
|
};
|
|
1772
1813
|
}
|
|
1773
1814
|
}),
|
|
1774
|
-
transaction: /* @__PURE__ */
|
|
1815
|
+
transaction: /* @__PURE__ */ As({
|
|
1775
1816
|
format(e) {
|
|
1776
1817
|
const t = {};
|
|
1777
|
-
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ?
|
|
1818
|
+
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? O(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
1778
1819
|
}
|
|
1779
1820
|
}),
|
|
1780
|
-
transactionReceipt: /* @__PURE__ */
|
|
1821
|
+
transactionReceipt: /* @__PURE__ */ Ys({
|
|
1781
1822
|
format(e) {
|
|
1782
1823
|
return {
|
|
1783
|
-
l1GasPrice: e.l1GasPrice ?
|
|
1784
|
-
l1GasUsed: e.l1GasUsed ?
|
|
1785
|
-
l1Fee: e.l1Fee ?
|
|
1824
|
+
l1GasPrice: e.l1GasPrice ? O(e.l1GasPrice) : null,
|
|
1825
|
+
l1GasUsed: e.l1GasUsed ? O(e.l1GasUsed) : null,
|
|
1826
|
+
l1Fee: e.l1Fee ? O(e.l1Fee) : null,
|
|
1786
1827
|
l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
|
|
1787
1828
|
};
|
|
1788
1829
|
}
|
|
1789
1830
|
})
|
|
1790
1831
|
};
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1832
|
+
function fn(e, t) {
|
|
1833
|
+
return bn(e) ? pn(e) : sn(e, t);
|
|
1793
1834
|
}
|
|
1794
|
-
const
|
|
1795
|
-
transaction:
|
|
1835
|
+
const hn = {
|
|
1836
|
+
transaction: fn
|
|
1796
1837
|
};
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1838
|
+
function pn(e) {
|
|
1839
|
+
mn(e);
|
|
1799
1840
|
const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
|
|
1800
1841
|
t,
|
|
1801
1842
|
n,
|
|
1802
1843
|
a ?? "0x",
|
|
1803
|
-
o ?
|
|
1804
|
-
c ?
|
|
1805
|
-
r ?
|
|
1844
|
+
o ? N(o) : "0x",
|
|
1845
|
+
c ? N(c) : "0x",
|
|
1846
|
+
r ? N(r) : "0x",
|
|
1806
1847
|
i ? "0x1" : "0x",
|
|
1807
1848
|
s ?? "0x"
|
|
1808
1849
|
];
|
|
1809
|
-
return
|
|
1850
|
+
return _([
|
|
1810
1851
|
"0x7e",
|
|
1811
|
-
|
|
1852
|
+
S(l)
|
|
1812
1853
|
]);
|
|
1813
1854
|
}
|
|
1814
|
-
function
|
|
1855
|
+
function bn(e) {
|
|
1815
1856
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
1816
1857
|
}
|
|
1817
|
-
function
|
|
1858
|
+
function mn(e) {
|
|
1818
1859
|
const { from: t, to: s } = e;
|
|
1819
|
-
if (t && !
|
|
1820
|
-
throw new
|
|
1821
|
-
if (s && !
|
|
1822
|
-
throw new
|
|
1823
|
-
}
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1860
|
+
if (t && !A(t))
|
|
1861
|
+
throw new T({ address: t });
|
|
1862
|
+
if (s && !A(s))
|
|
1863
|
+
throw new T({ address: s });
|
|
1864
|
+
}
|
|
1865
|
+
const E = {
|
|
1866
|
+
blockTime: 2e3,
|
|
1867
|
+
contracts: ln,
|
|
1868
|
+
formatters: dn,
|
|
1869
|
+
serializers: hn
|
|
1870
|
+
}, xn = 42161, ct = /* @__PURE__ */ x({
|
|
1829
1871
|
id: 33139,
|
|
1830
1872
|
name: "Ape Chain",
|
|
1831
1873
|
nativeCurrency: {
|
|
@@ -1852,11 +1894,12 @@ const w = {
|
|
|
1852
1894
|
blockCreated: 20889
|
|
1853
1895
|
}
|
|
1854
1896
|
},
|
|
1855
|
-
sourceId:
|
|
1856
|
-
}),
|
|
1897
|
+
sourceId: xn
|
|
1898
|
+
}), ut = /* @__PURE__ */ x({
|
|
1857
1899
|
id: 42161,
|
|
1858
1900
|
name: "Arbitrum One",
|
|
1859
1901
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
1902
|
+
blockTime: 250,
|
|
1860
1903
|
rpcUrls: {
|
|
1861
1904
|
default: {
|
|
1862
1905
|
http: ["https://arb1.arbitrum.io/rpc"]
|
|
@@ -1875,8 +1918,8 @@ const w = {
|
|
|
1875
1918
|
blockCreated: 7654707
|
|
1876
1919
|
}
|
|
1877
1920
|
}
|
|
1878
|
-
}),
|
|
1879
|
-
...
|
|
1921
|
+
}), K = 1, lt = /* @__PURE__ */ x({
|
|
1922
|
+
...E,
|
|
1880
1923
|
id: 8453,
|
|
1881
1924
|
name: "Base",
|
|
1882
1925
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1893,14 +1936,14 @@ const w = {
|
|
|
1893
1936
|
}
|
|
1894
1937
|
},
|
|
1895
1938
|
contracts: {
|
|
1896
|
-
...
|
|
1939
|
+
...E.contracts,
|
|
1897
1940
|
disputeGameFactory: {
|
|
1898
|
-
[
|
|
1941
|
+
[K]: {
|
|
1899
1942
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
1900
1943
|
}
|
|
1901
1944
|
},
|
|
1902
1945
|
l2OutputOracle: {
|
|
1903
|
-
[
|
|
1946
|
+
[K]: {
|
|
1904
1947
|
address: "0x56315b90c40730925ec5485cf004d835058518A0"
|
|
1905
1948
|
}
|
|
1906
1949
|
},
|
|
@@ -1909,21 +1952,21 @@ const w = {
|
|
|
1909
1952
|
blockCreated: 5022
|
|
1910
1953
|
},
|
|
1911
1954
|
portal: {
|
|
1912
|
-
[
|
|
1955
|
+
[K]: {
|
|
1913
1956
|
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
|
|
1914
1957
|
blockCreated: 17482143
|
|
1915
1958
|
}
|
|
1916
1959
|
},
|
|
1917
1960
|
l1StandardBridge: {
|
|
1918
|
-
[
|
|
1961
|
+
[K]: {
|
|
1919
1962
|
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
|
|
1920
1963
|
blockCreated: 17482143
|
|
1921
1964
|
}
|
|
1922
1965
|
}
|
|
1923
1966
|
},
|
|
1924
|
-
sourceId:
|
|
1925
|
-
}),
|
|
1926
|
-
...
|
|
1967
|
+
sourceId: K
|
|
1968
|
+
}), W = 11155111, dt = /* @__PURE__ */ x({
|
|
1969
|
+
...E,
|
|
1927
1970
|
id: 84532,
|
|
1928
1971
|
network: "base-sepolia",
|
|
1929
1972
|
name: "Base Sepolia",
|
|
@@ -1941,25 +1984,25 @@ const w = {
|
|
|
1941
1984
|
}
|
|
1942
1985
|
},
|
|
1943
1986
|
contracts: {
|
|
1944
|
-
...
|
|
1987
|
+
...E.contracts,
|
|
1945
1988
|
disputeGameFactory: {
|
|
1946
|
-
[
|
|
1989
|
+
[W]: {
|
|
1947
1990
|
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
1948
1991
|
}
|
|
1949
1992
|
},
|
|
1950
1993
|
l2OutputOracle: {
|
|
1951
|
-
[
|
|
1994
|
+
[W]: {
|
|
1952
1995
|
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
1953
1996
|
}
|
|
1954
1997
|
},
|
|
1955
1998
|
portal: {
|
|
1956
|
-
[
|
|
1999
|
+
[W]: {
|
|
1957
2000
|
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
1958
2001
|
blockCreated: 4446677
|
|
1959
2002
|
}
|
|
1960
2003
|
},
|
|
1961
2004
|
l1StandardBridge: {
|
|
1962
|
-
[
|
|
2005
|
+
[W]: {
|
|
1963
2006
|
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
1964
2007
|
blockCreated: 4446677
|
|
1965
2008
|
}
|
|
@@ -1970,8 +2013,8 @@ const w = {
|
|
|
1970
2013
|
}
|
|
1971
2014
|
},
|
|
1972
2015
|
testnet: !0,
|
|
1973
|
-
sourceId:
|
|
1974
|
-
}),
|
|
2016
|
+
sourceId: W
|
|
2017
|
+
}), ft = /* @__PURE__ */ x({
|
|
1975
2018
|
id: 80094,
|
|
1976
2019
|
name: "Berachain",
|
|
1977
2020
|
nativeCurrency: {
|
|
@@ -2002,8 +2045,9 @@ const w = {
|
|
|
2002
2045
|
url: "https://berascan.com"
|
|
2003
2046
|
}
|
|
2004
2047
|
},
|
|
2048
|
+
ensTlds: [".bera"],
|
|
2005
2049
|
testnet: !1
|
|
2006
|
-
}),
|
|
2050
|
+
}), ht = /* @__PURE__ */ x({
|
|
2007
2051
|
id: 56,
|
|
2008
2052
|
name: "BNB Smart Chain",
|
|
2009
2053
|
nativeCurrency: {
|
|
@@ -2027,7 +2071,7 @@ const w = {
|
|
|
2027
2071
|
blockCreated: 15921452
|
|
2028
2072
|
}
|
|
2029
2073
|
}
|
|
2030
|
-
}),
|
|
2074
|
+
}), pt = /* @__PURE__ */ x({
|
|
2031
2075
|
id: 17e3,
|
|
2032
2076
|
name: "Holesky",
|
|
2033
2077
|
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2058,7 +2102,29 @@ const w = {
|
|
|
2058
2102
|
}
|
|
2059
2103
|
},
|
|
2060
2104
|
testnet: !0
|
|
2061
|
-
}),
|
|
2105
|
+
}), bt = /* @__PURE__ */ x({
|
|
2106
|
+
id: 560048,
|
|
2107
|
+
name: "Hoodi",
|
|
2108
|
+
nativeCurrency: { name: "Hoodi Ether", symbol: "ETH", decimals: 18 },
|
|
2109
|
+
rpcUrls: {
|
|
2110
|
+
default: {
|
|
2111
|
+
http: ["https://rpc.hoodi.ethpandaops.io"]
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
blockExplorers: {
|
|
2115
|
+
default: {
|
|
2116
|
+
name: "Etherscan",
|
|
2117
|
+
url: "https://hoodi.etherscan.io"
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
contracts: {
|
|
2121
|
+
multicall3: {
|
|
2122
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
2123
|
+
blockCreated: 2589
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
testnet: !0
|
|
2127
|
+
}), mt = /* @__PURE__ */ x({
|
|
2062
2128
|
id: 1,
|
|
2063
2129
|
name: "Ethereum",
|
|
2064
2130
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2087,8 +2153,8 @@ const w = {
|
|
|
2087
2153
|
blockCreated: 14353601
|
|
2088
2154
|
}
|
|
2089
2155
|
}
|
|
2090
|
-
}),
|
|
2091
|
-
...
|
|
2156
|
+
}), X = 11155111, xt = /* @__PURE__ */ x({
|
|
2157
|
+
...E,
|
|
2092
2158
|
id: 11155420,
|
|
2093
2159
|
name: "OP Sepolia",
|
|
2094
2160
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2105,14 +2171,14 @@ const w = {
|
|
|
2105
2171
|
}
|
|
2106
2172
|
},
|
|
2107
2173
|
contracts: {
|
|
2108
|
-
...
|
|
2174
|
+
...E.contracts,
|
|
2109
2175
|
disputeGameFactory: {
|
|
2110
|
-
[
|
|
2176
|
+
[X]: {
|
|
2111
2177
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
2112
2178
|
}
|
|
2113
2179
|
},
|
|
2114
2180
|
l2OutputOracle: {
|
|
2115
|
-
[
|
|
2181
|
+
[X]: {
|
|
2116
2182
|
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
2117
2183
|
}
|
|
2118
2184
|
},
|
|
@@ -2121,19 +2187,19 @@ const w = {
|
|
|
2121
2187
|
blockCreated: 1620204
|
|
2122
2188
|
},
|
|
2123
2189
|
portal: {
|
|
2124
|
-
[
|
|
2190
|
+
[X]: {
|
|
2125
2191
|
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
2126
2192
|
}
|
|
2127
2193
|
},
|
|
2128
2194
|
l1StandardBridge: {
|
|
2129
|
-
[
|
|
2195
|
+
[X]: {
|
|
2130
2196
|
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
2131
2197
|
}
|
|
2132
2198
|
}
|
|
2133
2199
|
},
|
|
2134
2200
|
testnet: !0,
|
|
2135
|
-
sourceId:
|
|
2136
|
-
}),
|
|
2201
|
+
sourceId: X
|
|
2202
|
+
}), gt = /* @__PURE__ */ x({
|
|
2137
2203
|
id: 11155111,
|
|
2138
2204
|
name: "Sepolia",
|
|
2139
2205
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2161,8 +2227,8 @@ const w = {
|
|
|
2161
2227
|
}
|
|
2162
2228
|
},
|
|
2163
2229
|
testnet: !0
|
|
2164
|
-
}),
|
|
2165
|
-
...
|
|
2230
|
+
}), q = 1, yt = /* @__PURE__ */ x({
|
|
2231
|
+
...E,
|
|
2166
2232
|
id: 1868,
|
|
2167
2233
|
name: "Soneium Mainnet",
|
|
2168
2234
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2179,25 +2245,25 @@ const w = {
|
|
|
2179
2245
|
}
|
|
2180
2246
|
},
|
|
2181
2247
|
contracts: {
|
|
2182
|
-
...
|
|
2248
|
+
...E.contracts,
|
|
2183
2249
|
disputeGameFactory: {
|
|
2184
|
-
[
|
|
2250
|
+
[q]: {
|
|
2185
2251
|
address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
|
|
2186
2252
|
}
|
|
2187
2253
|
},
|
|
2188
2254
|
l2OutputOracle: {
|
|
2189
|
-
[
|
|
2255
|
+
[q]: {
|
|
2190
2256
|
address: "0x0000000000000000000000000000000000000000"
|
|
2191
2257
|
}
|
|
2192
2258
|
},
|
|
2193
2259
|
portal: {
|
|
2194
|
-
[
|
|
2260
|
+
[q]: {
|
|
2195
2261
|
address: "0x88e529a6ccd302c948689cd5156c83d4614fae92",
|
|
2196
2262
|
blockCreated: 7061266
|
|
2197
2263
|
}
|
|
2198
2264
|
},
|
|
2199
2265
|
l1StandardBridge: {
|
|
2200
|
-
[
|
|
2266
|
+
[q]: {
|
|
2201
2267
|
address: "0xeb9bf100225c214efc3e7c651ebbadcf85177607",
|
|
2202
2268
|
blockCreated: 7061266
|
|
2203
2269
|
}
|
|
@@ -2207,9 +2273,9 @@ const w = {
|
|
|
2207
2273
|
blockCreated: 1
|
|
2208
2274
|
}
|
|
2209
2275
|
},
|
|
2210
|
-
sourceId:
|
|
2211
|
-
}),
|
|
2212
|
-
...
|
|
2276
|
+
sourceId: q
|
|
2277
|
+
}), le = 1, wt = /* @__PURE__ */ x({
|
|
2278
|
+
...E,
|
|
2213
2279
|
id: 48900,
|
|
2214
2280
|
name: "Zircuit Mainnet",
|
|
2215
2281
|
nativeCurrency: {
|
|
@@ -2220,8 +2286,9 @@ const w = {
|
|
|
2220
2286
|
rpcUrls: {
|
|
2221
2287
|
default: {
|
|
2222
2288
|
http: [
|
|
2223
|
-
"https://
|
|
2289
|
+
"https://mainnet.zircuit.com",
|
|
2224
2290
|
"https://zircuit1-mainnet.liquify.com",
|
|
2291
|
+
"https://zircuit1-mainnet.p2pify.com",
|
|
2225
2292
|
"https://zircuit-mainnet.drpc.org"
|
|
2226
2293
|
]
|
|
2227
2294
|
}
|
|
@@ -2237,117 +2304,124 @@ const w = {
|
|
|
2237
2304
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
2238
2305
|
},
|
|
2239
2306
|
l2OutputOracle: {
|
|
2240
|
-
[
|
|
2307
|
+
[le]: {
|
|
2241
2308
|
address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
|
|
2242
2309
|
}
|
|
2243
2310
|
},
|
|
2244
2311
|
portal: {
|
|
2245
|
-
[
|
|
2312
|
+
[le]: {
|
|
2246
2313
|
address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
|
|
2247
2314
|
}
|
|
2248
2315
|
},
|
|
2249
2316
|
l1StandardBridge: {
|
|
2250
|
-
[
|
|
2317
|
+
[le]: {
|
|
2251
2318
|
address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
|
|
2252
2319
|
}
|
|
2253
2320
|
}
|
|
2254
2321
|
},
|
|
2255
2322
|
testnet: !1
|
|
2256
2323
|
});
|
|
2257
|
-
var m = ((e) => (e[e.Mainnet =
|
|
2258
|
-
const
|
|
2259
|
-
[m.Mainnet]:
|
|
2260
|
-
[m.Holesky]:
|
|
2261
|
-
[m.Base]:
|
|
2262
|
-
[m.Bsc]:
|
|
2263
|
-
[m.Arbitrum]:
|
|
2264
|
-
[m.ApeChain]:
|
|
2265
|
-
[m.Soneium]:
|
|
2266
|
-
[m.Sepolia]:
|
|
2267
|
-
[m.OptimismSepolia]:
|
|
2268
|
-
[m.BaseSepolia]:
|
|
2269
|
-
[m.Zircuit]:
|
|
2270
|
-
[m.Berachain]:
|
|
2324
|
+
var m = ((e) => (e[e.Mainnet = mt.id] = "Mainnet", e[e.Holesky = pt.id] = "Holesky", e[e.Base = lt.id] = "Base", e[e.Bsc = ht.id] = "Bsc", e[e.Arbitrum = ut.id] = "Arbitrum", e[e.ApeChain = ct.id] = "ApeChain", e[e.Soneium = yt.id] = "Soneium", e[e.Sepolia = gt.id] = "Sepolia", e[e.OptimismSepolia = xt.id] = "OptimismSepolia", e[e.BaseSepolia = dt.id] = "BaseSepolia", e[e.Zircuit = wt.id] = "Zircuit", e[e.Berachain = ft.id] = "Berachain", e[e.Hoodi = bt.id] = "Hoodi", e))(m || {});
|
|
2325
|
+
const On = {
|
|
2326
|
+
[m.Mainnet]: mt,
|
|
2327
|
+
[m.Holesky]: pt,
|
|
2328
|
+
[m.Base]: lt,
|
|
2329
|
+
[m.Bsc]: ht,
|
|
2330
|
+
[m.Arbitrum]: ut,
|
|
2331
|
+
[m.ApeChain]: ct,
|
|
2332
|
+
[m.Soneium]: yt,
|
|
2333
|
+
[m.Sepolia]: gt,
|
|
2334
|
+
[m.OptimismSepolia]: xt,
|
|
2335
|
+
[m.BaseSepolia]: dt,
|
|
2336
|
+
[m.Zircuit]: wt,
|
|
2337
|
+
[m.Berachain]: ft,
|
|
2338
|
+
[m.Hoodi]: bt
|
|
2271
2339
|
};
|
|
2272
2340
|
export {
|
|
2273
|
-
|
|
2274
|
-
|
|
2341
|
+
H as $,
|
|
2342
|
+
as as A,
|
|
2275
2343
|
u as B,
|
|
2276
2344
|
m as C,
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
I,
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2345
|
+
Ft as D,
|
|
2346
|
+
Qe as E,
|
|
2347
|
+
ss as F,
|
|
2348
|
+
Xs as G,
|
|
2349
|
+
Oe as H,
|
|
2350
|
+
A as I,
|
|
2351
|
+
T as J,
|
|
2352
|
+
v as K,
|
|
2353
|
+
Re as L,
|
|
2354
|
+
z as M,
|
|
2355
|
+
be as N,
|
|
2356
|
+
Cn as O,
|
|
2357
|
+
Zs as P,
|
|
2358
|
+
Fs as Q,
|
|
2359
|
+
ts as R,
|
|
2360
|
+
wn as S,
|
|
2361
|
+
Un as T,
|
|
2362
|
+
kn as U,
|
|
2363
|
+
On as V,
|
|
2364
|
+
Tn as W,
|
|
2365
|
+
zn as X,
|
|
2366
|
+
je as Y,
|
|
2367
|
+
At as Z,
|
|
2368
|
+
Pt as _,
|
|
2369
|
+
Se as a,
|
|
2370
|
+
yn as a0,
|
|
2371
|
+
Xe as a1,
|
|
2372
|
+
os as a2,
|
|
2373
|
+
Ze as a3,
|
|
2374
|
+
C as a4,
|
|
2375
|
+
hs as a5,
|
|
2376
|
+
S as a6,
|
|
2377
|
+
re as a7,
|
|
2378
|
+
ys as a8,
|
|
2379
|
+
ws as a9,
|
|
2380
|
+
Es as aa,
|
|
2381
|
+
Bs as ab,
|
|
2382
|
+
Ps as ac,
|
|
2383
|
+
Is as ad,
|
|
2384
|
+
vs as ae,
|
|
2385
|
+
Ts as af,
|
|
2386
|
+
et as ag,
|
|
2387
|
+
gn as ah,
|
|
2388
|
+
$n as ai,
|
|
2389
|
+
pe as aj,
|
|
2390
|
+
st as ak,
|
|
2391
|
+
_s as al,
|
|
2392
|
+
nt as am,
|
|
2393
|
+
Ks as an,
|
|
2394
|
+
Ws as ao,
|
|
2395
|
+
cs as ap,
|
|
2396
|
+
Sn as aq,
|
|
2397
|
+
Gn as ar,
|
|
2398
|
+
Ln as as,
|
|
2399
|
+
Hn as at,
|
|
2400
|
+
Fn as au,
|
|
2327
2401
|
$ as b,
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2402
|
+
An as c,
|
|
2403
|
+
is as d,
|
|
2404
|
+
_ as e,
|
|
2405
|
+
Pn as f,
|
|
2406
|
+
Nt as g,
|
|
2407
|
+
O as h,
|
|
2408
|
+
Y as i,
|
|
2409
|
+
k as j,
|
|
2410
|
+
Bn as k,
|
|
2411
|
+
In as l,
|
|
2412
|
+
En as m,
|
|
2413
|
+
f as n,
|
|
2414
|
+
de as o,
|
|
2415
|
+
Et as p,
|
|
2416
|
+
Z as q,
|
|
2417
|
+
ne as r,
|
|
2418
|
+
He as s,
|
|
2419
|
+
N as t,
|
|
2420
|
+
se as u,
|
|
2421
|
+
vn as v,
|
|
2422
|
+
Gs as w,
|
|
2423
|
+
te as x,
|
|
2424
|
+
qs as y,
|
|
2425
|
+
U as z
|
|
2352
2426
|
};
|
|
2353
|
-
//# sourceMappingURL=constants-
|
|
2427
|
+
//# sourceMappingURL=constants-BweLzNUt.js.map
|