@pufferfinance/puffer-sdk 1.29.1 → 1.29.2
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-Dv8Z-tXr.cjs → ccip-BQKdkZzc.cjs} +2 -2
- package/dist/{ccip-Dv8Z-tXr.cjs.map → ccip-BQKdkZzc.cjs.map} +1 -1
- package/dist/{ccip-dYaIZXTj.js → ccip-DkpMYAPh.js} +4 -4
- package/dist/{ccip-dYaIZXTj.js.map → ccip-DkpMYAPh.js.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +3 -1
- package/dist/chains/constants.js +1 -1
- package/dist/{constants-BO_Dvglw.js → constants-0GZgavMM.js} +511 -443
- package/dist/constants-0GZgavMM.js.map +1 -0
- package/dist/constants-CwkqnEF2.cjs +8 -0
- package/dist/constants-CwkqnEF2.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 +9 -3
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/carrot-vesting-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.d.ts +9 -3
- package/dist/contracts/handlers/carrot-vesting-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +9 -3
- 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 +9 -3
- 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 +9 -3
- 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/gauge-registry-handler.cjs +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.d.ts +9 -3
- package/dist/contracts/handlers/gauge-registry-handler.js +2 -2
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.d.ts +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.d.ts +9 -3
- package/dist/contracts/handlers/lagoon-vault-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +9 -3
- 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 +9 -3
- 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 +10 -4
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +10 -4
- package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
- package/dist/contracts/handlers/vl-puffer-handler.cjs +1 -1
- package/dist/contracts/handlers/vl-puffer-handler.d.ts +9 -3
- package/dist/contracts/handlers/vl-puffer-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.js +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{getContract-C6a8L2Jd.cjs → getContract-BinxcNSi.cjs} +2 -2
- package/dist/{getContract-C6a8L2Jd.cjs.map → getContract-BinxcNSi.cjs.map} +1 -1
- package/dist/{getContract-DRjKmuyC.js → getContract-DaCKXI8P.js} +2 -2
- package/dist/{getContract-DRjKmuyC.js.map → getContract-DaCKXI8P.js.map} +1 -1
- package/dist/http-BC-nqLLb.cjs +5 -0
- package/dist/http-BC-nqLLb.cjs.map +1 -0
- package/dist/{http-ZcKHvn9V.js → http-DfLfk9B5.js} +1343 -1302
- package/dist/http-DfLfk9B5.js.map +1 -0
- package/dist/{localBatchGatewayRequest-BTy8p6qj.cjs → localBatchGatewayRequest-B7XKTHRK.cjs} +2 -2
- package/dist/{localBatchGatewayRequest-BTy8p6qj.cjs.map → localBatchGatewayRequest-B7XKTHRK.cjs.map} +1 -1
- package/dist/{localBatchGatewayRequest-Cb0QKL0s.js → localBatchGatewayRequest-C1C2Kpcs.js} +3 -3
- package/dist/{localBatchGatewayRequest-Cb0QKL0s.js.map → localBatchGatewayRequest-C1C2Kpcs.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-Dx1prb1E.js → secp256k1-BNsewQvi.js} +2 -2
- package/dist/{secp256k1-Dx1prb1E.js.map → secp256k1-BNsewQvi.js.map} +1 -1
- package/dist/{secp256k1-CzsL7iVx.cjs → secp256k1-Be7RiBch.cjs} +2 -2
- package/dist/{secp256k1-CzsL7iVx.cjs.map → secp256k1-Be7RiBch.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/writeContract-De1cMFmW.cjs +36 -0
- package/dist/writeContract-De1cMFmW.cjs.map +1 -0
- package/dist/{writeContract-BFxyLFA9.js → writeContract-DordYfu2.js} +1650 -1479
- package/dist/writeContract-DordYfu2.js.map +1 -0
- package/package.json +2 -2
- package/dist/constants-4-ehn8UI.cjs +0 -9
- package/dist/constants-4-ehn8UI.cjs.map +0 -1
- package/dist/constants-BO_Dvglw.js.map +0 -1
- package/dist/http-CRYDzx7w.cjs +0 -5
- package/dist/http-CRYDzx7w.cjs.map +0 -1
- package/dist/http-ZcKHvn9V.js.map +0 -1
- package/dist/writeContract-BFxyLFA9.js.map +0 -1
- package/dist/writeContract-HBsqM_Od.cjs +0 -36
- package/dist/writeContract-HBsqM_Od.cjs.map +0 -1
|
@@ -4,10 +4,10 @@ function q(e, { strict: t = !0 } = {}) {
|
|
|
4
4
|
function v(e) {
|
|
5
5
|
return q(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const ze = "2.45.0";
|
|
8
8
|
let ie = {
|
|
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@${ze}`
|
|
11
11
|
};
|
|
12
12
|
class u extends Error {
|
|
13
13
|
constructor(t, s = {}) {
|
|
@@ -50,14 +50,14 @@ class u extends Error {
|
|
|
50
50
|
configurable: !0,
|
|
51
51
|
writable: !0,
|
|
52
52
|
value: "BaseError"
|
|
53
|
-
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version =
|
|
53
|
+
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = ze;
|
|
54
54
|
}
|
|
55
55
|
walk(t) {
|
|
56
|
-
return
|
|
56
|
+
return ke(this, t);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ?
|
|
59
|
+
function ke(e, t) {
|
|
60
|
+
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? ke(e.cause, t) : t ? null : e;
|
|
61
61
|
}
|
|
62
62
|
class Fe extends u {
|
|
63
63
|
constructor({ offset: t, position: s, size: n }) {
|
|
@@ -69,15 +69,15 @@ class Ce extends u {
|
|
|
69
69
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class xn extends u {
|
|
73
73
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
74
74
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${s} ${n} long, but is ${t} ${n} long.`, { name: "InvalidBytesLengthError" });
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
function O(e, { dir: t, size: s = 32 } = {}) {
|
|
78
|
-
return typeof e == "string" ?
|
|
78
|
+
return typeof e == "string" ? Bt(e, { dir: t, size: s }) : vt(e, { dir: t, size: s });
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Bt(e, { dir: t, size: s = 32 } = {}) {
|
|
81
81
|
if (s === null)
|
|
82
82
|
return e;
|
|
83
83
|
const n = e.replace("0x", "");
|
|
@@ -89,7 +89,7 @@ function yt(e, { dir: t, size: s = 32 } = {}) {
|
|
|
89
89
|
});
|
|
90
90
|
return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function vt(e, { dir: t, size: s = 32 } = {}) {
|
|
93
93
|
if (s === null)
|
|
94
94
|
return e;
|
|
95
95
|
if (e.length > s)
|
|
@@ -105,75 +105,84 @@ function wt(e, { dir: t, size: s = 32 } = {}) {
|
|
|
105
105
|
}
|
|
106
106
|
return n;
|
|
107
107
|
}
|
|
108
|
-
class
|
|
108
|
+
class Se extends u {
|
|
109
109
|
constructor({ max: t, min: s, signed: n, size: r, value: i }) {
|
|
110
110
|
super(`Number "${i}" is not in safe ${r ? `${r * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${s} to ${t})` : `(above ${s})`}`, { name: "IntegerOutOfRangeError" });
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
class
|
|
113
|
+
class gn extends u {
|
|
114
114
|
constructor(t) {
|
|
115
115
|
super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
116
116
|
name: "InvalidBytesBooleanError"
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
class
|
|
120
|
+
class Tt extends u {
|
|
121
121
|
constructor(t) {
|
|
122
122
|
super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
class
|
|
125
|
+
class It extends u {
|
|
126
126
|
constructor({ givenSize: t, maxSize: s }) {
|
|
127
127
|
super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function $(e, { dir: t = "left" } = {}) {
|
|
131
131
|
let s = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
132
132
|
for (let r = 0; r < s.length - 1 && s[t === "left" ? r : s.length - r - 1].toString() === "0"; r++)
|
|
133
133
|
n++;
|
|
134
134
|
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;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function F(e, { size: t }) {
|
|
137
137
|
if (v(e) > t)
|
|
138
|
-
throw new
|
|
138
|
+
throw new It({
|
|
139
139
|
givenSize: v(e),
|
|
140
140
|
maxSize: t
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function H(e, t = {}) {
|
|
144
144
|
const { signed: s } = t;
|
|
145
|
-
t.size &&
|
|
145
|
+
t.size && F(e, { size: t.size });
|
|
146
146
|
const n = BigInt(e);
|
|
147
147
|
if (!s)
|
|
148
148
|
return n;
|
|
149
149
|
const r = (e.length - 2) / 2, i = (1n << BigInt(r) * 8n - 1n) - 1n;
|
|
150
150
|
return n <= i ? n : n - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function yn(e, t = {}) {
|
|
153
153
|
let s = e;
|
|
154
|
-
if (t.size && (
|
|
154
|
+
if (t.size && (F(s, { size: t.size }), s = $(s)), $(s) === "0x00")
|
|
155
155
|
return !1;
|
|
156
|
-
if (
|
|
156
|
+
if ($(s) === "0x01")
|
|
157
157
|
return !0;
|
|
158
|
-
throw new
|
|
158
|
+
throw new Tt(s);
|
|
159
159
|
}
|
|
160
160
|
function Q(e, t = {}) {
|
|
161
|
-
|
|
161
|
+
const s = H(e, t), n = Number(s);
|
|
162
|
+
if (!Number.isSafeInteger(n))
|
|
163
|
+
throw new Se({
|
|
164
|
+
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
165
|
+
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
166
|
+
signed: t.signed,
|
|
167
|
+
size: t.size,
|
|
168
|
+
value: `${s}n`
|
|
169
|
+
});
|
|
170
|
+
return n;
|
|
162
171
|
}
|
|
163
172
|
const Pt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
164
|
-
function
|
|
165
|
-
return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ?
|
|
173
|
+
function L(e, t = {}) {
|
|
174
|
+
return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? Ut(e, t) : typeof e == "boolean" ? At(e, t) : P(e, t);
|
|
166
175
|
}
|
|
167
|
-
function
|
|
176
|
+
function At(e, t = {}) {
|
|
168
177
|
const s = `0x${Number(e)}`;
|
|
169
|
-
return typeof t.size == "number" ? (
|
|
178
|
+
return typeof t.size == "number" ? (F(s, { size: t.size }), O(s, { size: t.size })) : s;
|
|
170
179
|
}
|
|
171
|
-
function
|
|
180
|
+
function P(e, t = {}) {
|
|
172
181
|
let s = "";
|
|
173
182
|
for (let r = 0; r < e.length; r++)
|
|
174
183
|
s += Pt[e[r]];
|
|
175
184
|
const n = `0x${s}`;
|
|
176
|
-
return typeof t.size == "number" ? (
|
|
185
|
+
return typeof t.size == "number" ? (F(n, { size: t.size }), O(n, { dir: "right", size: t.size })) : n;
|
|
177
186
|
}
|
|
178
187
|
function f(e, t = {}) {
|
|
179
188
|
const { signed: s, size: n } = t, r = BigInt(e);
|
|
@@ -182,7 +191,7 @@ function f(e, t = {}) {
|
|
|
182
191
|
const o = typeof i == "bigint" && s ? -i - 1n : 0;
|
|
183
192
|
if (i && r > i || r < o) {
|
|
184
193
|
const c = typeof e == "bigint" ? "n" : "";
|
|
185
|
-
throw new
|
|
194
|
+
throw new Se({
|
|
186
195
|
max: i ? `${i}${c}` : void 0,
|
|
187
196
|
min: `${o}${c}`,
|
|
188
197
|
signed: s,
|
|
@@ -193,18 +202,18 @@ function f(e, t = {}) {
|
|
|
193
202
|
const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
|
|
194
203
|
return n ? O(a, { size: n }) : a;
|
|
195
204
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
const s =
|
|
199
|
-
return
|
|
205
|
+
const $t = /* @__PURE__ */ new TextEncoder();
|
|
206
|
+
function Ut(e, t = {}) {
|
|
207
|
+
const s = $t.encode(e);
|
|
208
|
+
return P(s, t);
|
|
200
209
|
}
|
|
201
|
-
const
|
|
202
|
-
function
|
|
203
|
-
return typeof e == "number" || typeof e == "bigint" ? Ft(e, t) : typeof e == "boolean" ?
|
|
210
|
+
const zt = /* @__PURE__ */ new TextEncoder();
|
|
211
|
+
function He(e, t = {}) {
|
|
212
|
+
return typeof e == "number" || typeof e == "bigint" ? Ft(e, t) : typeof e == "boolean" ? kt(e, t) : q(e) ? z(e, t) : Le(e, t);
|
|
204
213
|
}
|
|
205
|
-
function
|
|
214
|
+
function kt(e, t = {}) {
|
|
206
215
|
const s = new Uint8Array(1);
|
|
207
|
-
return s[0] = Number(e), typeof t.size == "number" ? (
|
|
216
|
+
return s[0] = Number(e), typeof t.size == "number" ? (F(s, { size: t.size }), O(s, { size: t.size })) : s;
|
|
208
217
|
}
|
|
209
218
|
const y = {
|
|
210
219
|
zero: 48,
|
|
@@ -214,7 +223,7 @@ const y = {
|
|
|
214
223
|
a: 97,
|
|
215
224
|
f: 102
|
|
216
225
|
};
|
|
217
|
-
function
|
|
226
|
+
function Be(e) {
|
|
218
227
|
if (e >= y.zero && e <= y.nine)
|
|
219
228
|
return e - y.zero;
|
|
220
229
|
if (e >= y.A && e <= y.F)
|
|
@@ -222,14 +231,14 @@ function we(e) {
|
|
|
222
231
|
if (e >= y.a && e <= y.f)
|
|
223
232
|
return e - (y.a - 10);
|
|
224
233
|
}
|
|
225
|
-
function
|
|
234
|
+
function z(e, t = {}) {
|
|
226
235
|
let s = e;
|
|
227
|
-
t.size && (
|
|
236
|
+
t.size && (F(s, { size: t.size }), s = O(s, { dir: "right", size: t.size }));
|
|
228
237
|
let n = s.slice(2);
|
|
229
238
|
n.length % 2 && (n = `0${n}`);
|
|
230
239
|
const r = n.length / 2, i = new Uint8Array(r);
|
|
231
240
|
for (let o = 0, a = 0; o < r; o++) {
|
|
232
|
-
const c =
|
|
241
|
+
const c = Be(n.charCodeAt(a++)), l = Be(n.charCodeAt(a++));
|
|
233
242
|
if (c === void 0 || l === void 0)
|
|
234
243
|
throw new u(`Invalid byte sequence ("${n[a - 2]}${n[a - 1]}" in "${n}").`);
|
|
235
244
|
i[o] = c * 16 + l;
|
|
@@ -238,17 +247,17 @@ function F(e, t = {}) {
|
|
|
238
247
|
}
|
|
239
248
|
function Ft(e, t) {
|
|
240
249
|
const s = f(e, t);
|
|
241
|
-
return
|
|
250
|
+
return z(s);
|
|
242
251
|
}
|
|
243
|
-
function
|
|
244
|
-
const s =
|
|
245
|
-
return typeof t.size == "number" ? (
|
|
252
|
+
function Le(e, t = {}) {
|
|
253
|
+
const s = zt.encode(e);
|
|
254
|
+
return typeof t.size == "number" ? (F(s, { size: t.size }), O(s, { dir: "right", size: t.size })) : s;
|
|
246
255
|
}
|
|
247
|
-
const J = /* @__PURE__ */ BigInt(2 ** 32 - 1),
|
|
256
|
+
const J = /* @__PURE__ */ BigInt(2 ** 32 - 1), ve = /* @__PURE__ */ BigInt(32);
|
|
248
257
|
function Ct(e, t = !1) {
|
|
249
|
-
return t ? { h: Number(e & J), l: Number(e >>
|
|
258
|
+
return t ? { h: Number(e & J), l: Number(e >> ve & J) } : { h: Number(e >> ve & J) | 0, l: Number(e & J) | 0 };
|
|
250
259
|
}
|
|
251
|
-
function
|
|
260
|
+
function St(e, t = !1) {
|
|
252
261
|
const s = e.length;
|
|
253
262
|
let n = new Uint32Array(s), r = new Uint32Array(s);
|
|
254
263
|
for (let i = 0; i < s; i++) {
|
|
@@ -257,9 +266,9 @@ function zt(e, t = !1) {
|
|
|
257
266
|
}
|
|
258
267
|
return [n, r];
|
|
259
268
|
}
|
|
260
|
-
const
|
|
269
|
+
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, S = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
261
270
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
262
|
-
function
|
|
271
|
+
function Mt(e) {
|
|
263
272
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
264
273
|
}
|
|
265
274
|
function ee(e) {
|
|
@@ -267,12 +276,12 @@ function ee(e) {
|
|
|
267
276
|
throw new Error("positive integer expected, got " + e);
|
|
268
277
|
}
|
|
269
278
|
function G(e, ...t) {
|
|
270
|
-
if (!
|
|
279
|
+
if (!Mt(e))
|
|
271
280
|
throw new Error("Uint8Array expected");
|
|
272
281
|
if (t.length > 0 && !t.includes(e.length))
|
|
273
282
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
274
283
|
}
|
|
275
|
-
function
|
|
284
|
+
function wn(e) {
|
|
276
285
|
if (typeof e != "function" || typeof e.create != "function")
|
|
277
286
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
278
287
|
ee(e.outputLen), ee(e.blockLen);
|
|
@@ -283,13 +292,13 @@ function te(e, t = !0) {
|
|
|
283
292
|
if (t && e.finished)
|
|
284
293
|
throw new Error("Hash#digest() has already been called");
|
|
285
294
|
}
|
|
286
|
-
function
|
|
295
|
+
function Ge(e, t) {
|
|
287
296
|
G(e);
|
|
288
297
|
const s = t.outputLen;
|
|
289
298
|
if (e.length < s)
|
|
290
299
|
throw new Error("digestInto() expects output buffer of length at least " + s);
|
|
291
300
|
}
|
|
292
|
-
function
|
|
301
|
+
function Nt(e) {
|
|
293
302
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
294
303
|
}
|
|
295
304
|
function X(...e) {
|
|
@@ -302,25 +311,25 @@ function oe(e) {
|
|
|
302
311
|
function g(e, t) {
|
|
303
312
|
return e << 32 - t | e >>> t;
|
|
304
313
|
}
|
|
305
|
-
const
|
|
306
|
-
function
|
|
314
|
+
const _t = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
315
|
+
function Vt(e) {
|
|
307
316
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
308
317
|
}
|
|
309
|
-
function
|
|
318
|
+
function Rt(e) {
|
|
310
319
|
for (let t = 0; t < e.length; t++)
|
|
311
|
-
e[t] =
|
|
320
|
+
e[t] = Vt(e[t]);
|
|
312
321
|
return e;
|
|
313
322
|
}
|
|
314
|
-
const
|
|
315
|
-
function
|
|
323
|
+
const Te = _t ? (e) => e : Rt;
|
|
324
|
+
function Dt(e) {
|
|
316
325
|
if (typeof e != "string")
|
|
317
326
|
throw new Error("string expected");
|
|
318
327
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
319
328
|
}
|
|
320
329
|
function le(e) {
|
|
321
|
-
return typeof e == "string" && (e =
|
|
330
|
+
return typeof e == "string" && (e = Dt(e)), G(e), e;
|
|
322
331
|
}
|
|
323
|
-
function
|
|
332
|
+
function En(...e) {
|
|
324
333
|
let t = 0;
|
|
325
334
|
for (let n = 0; n < e.length; n++) {
|
|
326
335
|
const r = e[n];
|
|
@@ -333,41 +342,41 @@ function yn(...e) {
|
|
|
333
342
|
}
|
|
334
343
|
return s;
|
|
335
344
|
}
|
|
336
|
-
class
|
|
345
|
+
class Oe {
|
|
337
346
|
}
|
|
338
|
-
function
|
|
347
|
+
function Me(e) {
|
|
339
348
|
const t = (n) => e().update(le(n)).digest(), s = e();
|
|
340
349
|
return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
|
|
341
350
|
}
|
|
342
|
-
function
|
|
351
|
+
function Bn(e = 32) {
|
|
343
352
|
if (S && typeof S.getRandomValues == "function")
|
|
344
353
|
return S.getRandomValues(new Uint8Array(e));
|
|
345
354
|
if (S && typeof S.randomBytes == "function")
|
|
346
355
|
return Uint8Array.from(S.randomBytes(e));
|
|
347
356
|
throw new Error("crypto.getRandomValues must be defined");
|
|
348
357
|
}
|
|
349
|
-
const
|
|
350
|
-
for (let e = 0, t =
|
|
351
|
-
[s, n] = [n, (2 * s + 3 * n) % 5],
|
|
352
|
-
let r =
|
|
358
|
+
const jt = BigInt(0), R = BigInt(1), Kt = BigInt(2), Wt = BigInt(7), Xt = BigInt(256), qt = BigInt(113), Ne = [], _e = [], Ve = [];
|
|
359
|
+
for (let e = 0, t = R, s = 1, n = 0; e < 24; e++) {
|
|
360
|
+
[s, n] = [n, (2 * s + 3 * n) % 5], Ne.push(2 * (5 * n + s)), _e.push((e + 1) * (e + 2) / 2 % 64);
|
|
361
|
+
let r = jt;
|
|
353
362
|
for (let i = 0; i < 7; i++)
|
|
354
|
-
t = (t <<
|
|
355
|
-
|
|
363
|
+
t = (t << R ^ (t >> Wt) * qt) % Xt, t & Kt && (r ^= R << (R << /* @__PURE__ */ BigInt(i)) - R);
|
|
364
|
+
Ve.push(r);
|
|
356
365
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
366
|
+
const Re = St(Ve, !0), Yt = Re[0], Zt = Re[1], Ie = (e, t, s) => s > 32 ? Gt(e, t, s) : Ht(e, t, s), Pe = (e, t, s) => s > 32 ? Ot(e, t, s) : Lt(e, t, s);
|
|
367
|
+
function Jt(e, t = 24) {
|
|
359
368
|
const s = new Uint32Array(10);
|
|
360
369
|
for (let n = 24 - t; n < 24; n++) {
|
|
361
370
|
for (let o = 0; o < 10; o++)
|
|
362
371
|
s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
|
|
363
372
|
for (let o = 0; o < 10; o += 2) {
|
|
364
|
-
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d =
|
|
373
|
+
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = Ie(l, h, 1) ^ s[a], b = Pe(l, h, 1) ^ s[a + 1];
|
|
365
374
|
for (let p = 0; p < 50; p += 10)
|
|
366
375
|
e[o + p] ^= d, e[o + p + 1] ^= b;
|
|
367
376
|
}
|
|
368
377
|
let r = e[2], i = e[3];
|
|
369
378
|
for (let o = 0; o < 24; o++) {
|
|
370
|
-
const a =
|
|
379
|
+
const a = _e[o], c = Ie(r, i, a), l = Pe(r, i, a), h = Ne[o];
|
|
371
380
|
r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
|
|
372
381
|
}
|
|
373
382
|
for (let o = 0; o < 50; o += 10) {
|
|
@@ -376,22 +385,22 @@ function Zt(e, t = 24) {
|
|
|
376
385
|
for (let a = 0; a < 10; a++)
|
|
377
386
|
e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
|
|
378
387
|
}
|
|
379
|
-
e[0] ^=
|
|
388
|
+
e[0] ^= Yt[n], e[1] ^= Zt[n];
|
|
380
389
|
}
|
|
381
390
|
X(s);
|
|
382
391
|
}
|
|
383
|
-
class de extends
|
|
392
|
+
class de extends Oe {
|
|
384
393
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
385
394
|
constructor(t, s, n, r = !1, i = 24) {
|
|
386
395
|
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, ee(n), !(0 < t && t < 200))
|
|
387
396
|
throw new Error("only keccak-f1600 function is supported");
|
|
388
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
397
|
+
this.state = new Uint8Array(200), this.state32 = Nt(this.state);
|
|
389
398
|
}
|
|
390
399
|
clone() {
|
|
391
400
|
return this._cloneInto();
|
|
392
401
|
}
|
|
393
402
|
keccak() {
|
|
394
|
-
|
|
403
|
+
Te(this.state32), Jt(this.state32, this.rounds), Te(this.state32), this.posOut = 0, this.pos = 0;
|
|
395
404
|
}
|
|
396
405
|
update(t) {
|
|
397
406
|
te(this), t = le(t), G(t);
|
|
@@ -430,7 +439,7 @@ class de extends Le {
|
|
|
430
439
|
return ee(t), this.xofInto(new Uint8Array(t));
|
|
431
440
|
}
|
|
432
441
|
digestInto(t) {
|
|
433
|
-
if (
|
|
442
|
+
if (Ge(t, this), this.finished)
|
|
434
443
|
throw new Error("digest() was already called");
|
|
435
444
|
return this.writeInto(t), this.destroy(), t;
|
|
436
445
|
}
|
|
@@ -445,12 +454,12 @@ class de extends Le {
|
|
|
445
454
|
return t || (t = new de(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
455
|
}
|
|
447
456
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
const s = t || "hex", n =
|
|
451
|
-
return s === "bytes" ? n :
|
|
457
|
+
const Qt = (e, t, s) => Me(() => new de(t, e, s)), es = Qt(1, 136, 256 / 8);
|
|
458
|
+
function ts(e, t) {
|
|
459
|
+
const s = t || "hex", n = es(q(e, { strict: !1 }) ? He(e) : e);
|
|
460
|
+
return s === "bytes" ? n : L(n);
|
|
452
461
|
}
|
|
453
|
-
class
|
|
462
|
+
class T extends u {
|
|
454
463
|
constructor({ address: t }) {
|
|
455
464
|
super(`Address "${t}" is invalid.`, {
|
|
456
465
|
metaMessages: [
|
|
@@ -461,7 +470,7 @@ class P extends u {
|
|
|
461
470
|
});
|
|
462
471
|
}
|
|
463
472
|
}
|
|
464
|
-
class
|
|
473
|
+
class De extends Map {
|
|
465
474
|
constructor(t) {
|
|
466
475
|
super(), Object.defineProperty(this, "maxSize", {
|
|
467
476
|
enumerable: !0,
|
|
@@ -482,33 +491,33 @@ class _e extends Map {
|
|
|
482
491
|
return this;
|
|
483
492
|
}
|
|
484
493
|
}
|
|
485
|
-
const ae = /* @__PURE__ */ new
|
|
486
|
-
function
|
|
494
|
+
const ae = /* @__PURE__ */ new De(8192);
|
|
495
|
+
function je(e, t) {
|
|
487
496
|
if (ae.has(`${e}.${t}`))
|
|
488
497
|
return ae.get(`${e}.${t}`);
|
|
489
|
-
const s = e.substring(2).toLowerCase(), n =
|
|
498
|
+
const s = e.substring(2).toLowerCase(), n = ts(Le(s), "bytes"), r = s.split("");
|
|
490
499
|
for (let o = 0; o < 40; o += 2)
|
|
491
500
|
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
501
|
const i = `0x${r.join("")}`;
|
|
493
502
|
return ae.set(`${e}.${t}`, i), i;
|
|
494
503
|
}
|
|
495
|
-
function
|
|
504
|
+
function vn(e, t) {
|
|
496
505
|
if (!I(e, { strict: !1 }))
|
|
497
|
-
throw new
|
|
498
|
-
return
|
|
506
|
+
throw new T({ address: e });
|
|
507
|
+
return je(e, t);
|
|
499
508
|
}
|
|
500
|
-
const
|
|
509
|
+
const ss = /^0x[a-fA-F0-9]{40}$/, ce = /* @__PURE__ */ new De(8192);
|
|
501
510
|
function I(e, t) {
|
|
502
511
|
const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
|
|
503
512
|
if (ce.has(n))
|
|
504
513
|
return ce.get(n);
|
|
505
|
-
const r =
|
|
514
|
+
const r = ss.test(e) ? e.toLowerCase() === e ? !0 : s ? je(e) === e : !0 : !1;
|
|
506
515
|
return ce.set(n, r), r;
|
|
507
516
|
}
|
|
508
|
-
function
|
|
509
|
-
return typeof e[0] == "string" ?
|
|
517
|
+
function Tn(e) {
|
|
518
|
+
return typeof e[0] == "string" ? M(e) : ns(e);
|
|
510
519
|
}
|
|
511
|
-
function
|
|
520
|
+
function ns(e) {
|
|
512
521
|
let t = 0;
|
|
513
522
|
for (const r of e)
|
|
514
523
|
t += r.length;
|
|
@@ -518,17 +527,17 @@ function ts(e) {
|
|
|
518
527
|
s.set(r, n), n += r.length;
|
|
519
528
|
return s;
|
|
520
529
|
}
|
|
521
|
-
function
|
|
530
|
+
function M(e) {
|
|
522
531
|
return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
|
|
523
532
|
}
|
|
524
|
-
function
|
|
525
|
-
return q(e, { strict: !1 }) ?
|
|
533
|
+
function rs(e, t, s, { strict: n } = {}) {
|
|
534
|
+
return q(e, { strict: !1 }) ? os(e, t, s, {
|
|
526
535
|
strict: n
|
|
527
|
-
}) :
|
|
536
|
+
}) : is(e, t, s, {
|
|
528
537
|
strict: n
|
|
529
538
|
});
|
|
530
539
|
}
|
|
531
|
-
function
|
|
540
|
+
function Ke(e, t) {
|
|
532
541
|
if (typeof t == "number" && t > 0 && t > v(e) - 1)
|
|
533
542
|
throw new Fe({
|
|
534
543
|
offset: t,
|
|
@@ -536,7 +545,7 @@ function De(e, t) {
|
|
|
536
545
|
size: v(e)
|
|
537
546
|
});
|
|
538
547
|
}
|
|
539
|
-
function
|
|
548
|
+
function We(e, t, s) {
|
|
540
549
|
if (typeof t == "number" && typeof s == "number" && v(e) !== s - t)
|
|
541
550
|
throw new Fe({
|
|
542
551
|
offset: s,
|
|
@@ -544,34 +553,34 @@ function Re(e, t, s) {
|
|
|
544
553
|
size: v(e)
|
|
545
554
|
});
|
|
546
555
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
556
|
+
function is(e, t, s, { strict: n } = {}) {
|
|
557
|
+
Ke(e, t);
|
|
549
558
|
const r = e.slice(t, s);
|
|
550
|
-
return n &&
|
|
559
|
+
return n && We(r, t, s), r;
|
|
551
560
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
561
|
+
function os(e, t, s, { strict: n } = {}) {
|
|
562
|
+
Ke(e, t);
|
|
554
563
|
const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
|
|
555
|
-
return n &&
|
|
564
|
+
return n && We(r, t, s), r;
|
|
556
565
|
}
|
|
557
|
-
class
|
|
566
|
+
class Ae extends u {
|
|
558
567
|
constructor({ offset: t }) {
|
|
559
568
|
super(`Offset \`${t}\` cannot be negative.`, {
|
|
560
569
|
name: "NegativeOffsetError"
|
|
561
570
|
});
|
|
562
571
|
}
|
|
563
572
|
}
|
|
564
|
-
class
|
|
573
|
+
class as extends u {
|
|
565
574
|
constructor({ length: t, position: s }) {
|
|
566
575
|
super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
|
|
567
576
|
}
|
|
568
577
|
}
|
|
569
|
-
class
|
|
578
|
+
class cs extends u {
|
|
570
579
|
constructor({ count: t, limit: s }) {
|
|
571
580
|
super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
572
581
|
}
|
|
573
582
|
}
|
|
574
|
-
const
|
|
583
|
+
const us = {
|
|
575
584
|
bytes: new Uint8Array(),
|
|
576
585
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
577
586
|
position: 0,
|
|
@@ -580,21 +589,21 @@ const as = {
|
|
|
580
589
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
581
590
|
assertReadLimit() {
|
|
582
591
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
583
|
-
throw new
|
|
592
|
+
throw new cs({
|
|
584
593
|
count: this.recursiveReadCount + 1,
|
|
585
594
|
limit: this.recursiveReadLimit
|
|
586
595
|
});
|
|
587
596
|
},
|
|
588
597
|
assertPosition(e) {
|
|
589
598
|
if (e < 0 || e > this.bytes.length - 1)
|
|
590
|
-
throw new
|
|
599
|
+
throw new as({
|
|
591
600
|
length: this.bytes.length,
|
|
592
601
|
position: e
|
|
593
602
|
});
|
|
594
603
|
},
|
|
595
604
|
decrementPosition(e) {
|
|
596
605
|
if (e < 0)
|
|
597
|
-
throw new
|
|
606
|
+
throw new Ae({ offset: e });
|
|
598
607
|
const t = this.position - e;
|
|
599
608
|
this.assertPosition(t), this.position = t;
|
|
600
609
|
},
|
|
@@ -603,7 +612,7 @@ const as = {
|
|
|
603
612
|
},
|
|
604
613
|
incrementPosition(e) {
|
|
605
614
|
if (e < 0)
|
|
606
|
-
throw new
|
|
615
|
+
throw new Ae({ offset: e });
|
|
607
616
|
const t = this.position + e;
|
|
608
617
|
this.assertPosition(t), this.position = t;
|
|
609
618
|
},
|
|
@@ -693,18 +702,18 @@ const as = {
|
|
|
693
702
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
694
703
|
}
|
|
695
704
|
};
|
|
696
|
-
function
|
|
697
|
-
const s = Object.create(
|
|
698
|
-
return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
705
|
+
function Xe(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
706
|
+
const s = Object.create(us);
|
|
707
|
+
return s.bytes = e, s.dataView = new DataView(e.buffer ?? e, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
699
708
|
}
|
|
700
|
-
const
|
|
709
|
+
const ls = {
|
|
701
710
|
gwei: 9,
|
|
702
711
|
wei: 18
|
|
703
|
-
},
|
|
712
|
+
}, ds = {
|
|
704
713
|
ether: -9,
|
|
705
714
|
wei: 9
|
|
706
715
|
};
|
|
707
|
-
function
|
|
716
|
+
function qe(e, t) {
|
|
708
717
|
let s = e.toString();
|
|
709
718
|
const n = s.startsWith("-");
|
|
710
719
|
n && (s = s.slice(1)), s = s.padStart(t, "0");
|
|
@@ -714,40 +723,31 @@ function Ke(e, t) {
|
|
|
714
723
|
];
|
|
715
724
|
return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
|
|
716
725
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
726
|
+
function fs(e, t = "wei") {
|
|
727
|
+
return qe(e, ls[t]);
|
|
719
728
|
}
|
|
720
729
|
function U(e, t = "wei") {
|
|
721
|
-
return
|
|
730
|
+
return qe(e, ds[t]);
|
|
722
731
|
}
|
|
723
|
-
function
|
|
732
|
+
function Ye(e) {
|
|
724
733
|
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
734
|
return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
|
|
726
735
|
`);
|
|
727
736
|
}
|
|
728
|
-
class
|
|
729
|
-
constructor() {
|
|
730
|
-
super([
|
|
731
|
-
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
732
|
-
"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
|
|
733
|
-
].join(`
|
|
734
|
-
`), { name: "FeeConflictError" });
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
class ds extends u {
|
|
737
|
+
class hs extends u {
|
|
738
738
|
constructor({ v: t }) {
|
|
739
739
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
740
740
|
name: "InvalidLegacyVError"
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
class
|
|
744
|
+
class ps extends u {
|
|
745
745
|
constructor({ transaction: t }) {
|
|
746
746
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
747
747
|
metaMessages: [
|
|
748
748
|
"Provided Transaction:",
|
|
749
749
|
"{",
|
|
750
|
-
|
|
750
|
+
Ye(t),
|
|
751
751
|
"}",
|
|
752
752
|
"",
|
|
753
753
|
"To infer the type, either provide:",
|
|
@@ -762,18 +762,18 @@ class fs extends u {
|
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
class
|
|
765
|
+
class bs extends u {
|
|
766
766
|
constructor({ storageKey: t }) {
|
|
767
767
|
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class In extends u {
|
|
771
771
|
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
|
-
const p =
|
|
772
|
+
const p = Ye({
|
|
773
773
|
chain: r && `${r?.name} (id: ${r?.id})`,
|
|
774
774
|
from: s?.address,
|
|
775
775
|
to: d,
|
|
776
|
-
value: typeof b < "u" && `${
|
|
776
|
+
value: typeof b < "u" && `${fs(b)} ${r?.nativeCurrency?.symbol || "ETH"}`,
|
|
777
777
|
data: i,
|
|
778
778
|
gas: o,
|
|
779
779
|
gasPrice: typeof a < "u" && `${U(a)} gwei`,
|
|
@@ -798,7 +798,7 @@ class Pn extends u {
|
|
|
798
798
|
}), this.cause = t;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
class
|
|
801
|
+
class Pn extends u {
|
|
802
802
|
constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
|
|
803
803
|
let o = "Transaction";
|
|
804
804
|
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.`, {
|
|
@@ -806,7 +806,7 @@ class In extends u {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
class
|
|
809
|
+
class An extends u {
|
|
810
810
|
constructor({ hash: t }) {
|
|
811
811
|
super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
812
812
|
name: "TransactionReceiptNotFoundError"
|
|
@@ -832,20 +832,20 @@ class $n extends u {
|
|
|
832
832
|
}), this.receipt = t;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
class
|
|
835
|
+
class Un extends u {
|
|
836
836
|
constructor({ hash: t }) {
|
|
837
837
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
const s =
|
|
842
|
-
return s.encode(n), t === "hex" ?
|
|
840
|
+
function k(e, t = "hex") {
|
|
841
|
+
const s = Ze(e), n = Xe(new Uint8Array(s.length));
|
|
842
|
+
return s.encode(n), t === "hex" ? P(n.bytes) : n.bytes;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
return Array.isArray(e) ?
|
|
844
|
+
function Ze(e) {
|
|
845
|
+
return Array.isArray(e) ? ms(e.map((t) => Ze(t))) : xs(e);
|
|
846
846
|
}
|
|
847
|
-
function
|
|
848
|
-
const t = e.reduce((r, i) => r + i.length, 0), s =
|
|
847
|
+
function ms(e) {
|
|
848
|
+
const t = e.reduce((r, i) => r + i.length, 0), s = Je(t);
|
|
849
849
|
return {
|
|
850
850
|
length: t <= 55 ? 1 + t : 1 + s + t,
|
|
851
851
|
encode(r) {
|
|
@@ -855,8 +855,8 @@ function ps(e) {
|
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
const t = typeof e == "string" ?
|
|
858
|
+
function xs(e) {
|
|
859
|
+
const t = typeof e == "string" ? z(e) : e, s = Je(t.length);
|
|
860
860
|
return {
|
|
861
861
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
|
|
862
862
|
encode(r) {
|
|
@@ -864,7 +864,7 @@ function bs(e) {
|
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Je(e) {
|
|
868
868
|
if (e < 2 ** 8)
|
|
869
869
|
return 1;
|
|
870
870
|
if (e < 2 ** 16)
|
|
@@ -875,7 +875,7 @@ function qe(e) {
|
|
|
875
875
|
return 4;
|
|
876
876
|
throw new u("Length is too large.");
|
|
877
877
|
}
|
|
878
|
-
class
|
|
878
|
+
class Qe extends u {
|
|
879
879
|
constructor({ cause: t, message: s } = {}) {
|
|
880
880
|
const n = s?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
881
881
|
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
@@ -884,17 +884,17 @@ class Ze extends u {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
Object.defineProperty(
|
|
887
|
+
Object.defineProperty(Qe, "code", {
|
|
888
888
|
enumerable: !0,
|
|
889
889
|
configurable: !0,
|
|
890
890
|
writable: !0,
|
|
891
891
|
value: 3
|
|
892
892
|
});
|
|
893
|
-
Object.defineProperty(
|
|
893
|
+
Object.defineProperty(Qe, "nodeMessage", {
|
|
894
894
|
enumerable: !0,
|
|
895
895
|
configurable: !0,
|
|
896
896
|
writable: !0,
|
|
897
|
-
value: /execution reverted/
|
|
897
|
+
value: /execution reverted|gas required exceeds allowance/
|
|
898
898
|
});
|
|
899
899
|
class se extends u {
|
|
900
900
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
@@ -910,7 +910,7 @@ Object.defineProperty(se, "nodeMessage", {
|
|
|
910
910
|
writable: !0,
|
|
911
911
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
912
912
|
});
|
|
913
|
-
class
|
|
913
|
+
class gs extends u {
|
|
914
914
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
915
915
|
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${U(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
916
916
|
cause: t,
|
|
@@ -918,24 +918,24 @@ class ms extends u {
|
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
Object.defineProperty(
|
|
921
|
+
Object.defineProperty(gs, "nodeMessage", {
|
|
922
922
|
enumerable: !0,
|
|
923
923
|
configurable: !0,
|
|
924
924
|
writable: !0,
|
|
925
925
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
926
926
|
});
|
|
927
|
-
class
|
|
927
|
+
class ys extends u {
|
|
928
928
|
constructor({ cause: t, nonce: s } = {}) {
|
|
929
929
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
Object.defineProperty(
|
|
932
|
+
Object.defineProperty(ys, "nodeMessage", {
|
|
933
933
|
enumerable: !0,
|
|
934
934
|
configurable: !0,
|
|
935
935
|
writable: !0,
|
|
936
936
|
value: /nonce too high/
|
|
937
937
|
});
|
|
938
|
-
class
|
|
938
|
+
class ws extends u {
|
|
939
939
|
constructor({ cause: t, nonce: s } = {}) {
|
|
940
940
|
super([
|
|
941
941
|
`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -944,24 +944,24 @@ class gs extends u {
|
|
|
944
944
|
`), { cause: t, name: "NonceTooLowError" });
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
Object.defineProperty(
|
|
947
|
+
Object.defineProperty(ws, "nodeMessage", {
|
|
948
948
|
enumerable: !0,
|
|
949
949
|
configurable: !0,
|
|
950
950
|
writable: !0,
|
|
951
951
|
value: /nonce too low|transaction already imported|already known/
|
|
952
952
|
});
|
|
953
|
-
class
|
|
953
|
+
class Es extends u {
|
|
954
954
|
constructor({ cause: t, nonce: s } = {}) {
|
|
955
955
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
Object.defineProperty(
|
|
958
|
+
Object.defineProperty(Es, "nodeMessage", {
|
|
959
959
|
enumerable: !0,
|
|
960
960
|
configurable: !0,
|
|
961
961
|
writable: !0,
|
|
962
962
|
value: /nonce has max value/
|
|
963
963
|
});
|
|
964
|
-
class
|
|
964
|
+
class Bs extends u {
|
|
965
965
|
constructor({ cause: t } = {}) {
|
|
966
966
|
super([
|
|
967
967
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -982,13 +982,13 @@ class ws extends u {
|
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
Object.defineProperty(
|
|
985
|
+
Object.defineProperty(Bs, "nodeMessage", {
|
|
986
986
|
enumerable: !0,
|
|
987
987
|
configurable: !0,
|
|
988
988
|
writable: !0,
|
|
989
989
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
990
990
|
});
|
|
991
|
-
class
|
|
991
|
+
class vs extends u {
|
|
992
992
|
constructor({ cause: t, gas: s } = {}) {
|
|
993
993
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
994
994
|
cause: t,
|
|
@@ -996,13 +996,13 @@ class Es extends u {
|
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
Object.defineProperty(
|
|
999
|
+
Object.defineProperty(vs, "nodeMessage", {
|
|
1000
1000
|
enumerable: !0,
|
|
1001
1001
|
configurable: !0,
|
|
1002
1002
|
writable: !0,
|
|
1003
1003
|
value: /intrinsic gas too high|gas limit reached/
|
|
1004
1004
|
});
|
|
1005
|
-
class
|
|
1005
|
+
class Ts extends u {
|
|
1006
1006
|
constructor({ cause: t, gas: s } = {}) {
|
|
1007
1007
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
|
|
1008
1008
|
cause: t,
|
|
@@ -1010,13 +1010,13 @@ class Bs extends u {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
Object.defineProperty(
|
|
1013
|
+
Object.defineProperty(Ts, "nodeMessage", {
|
|
1014
1014
|
enumerable: !0,
|
|
1015
1015
|
configurable: !0,
|
|
1016
1016
|
writable: !0,
|
|
1017
1017
|
value: /intrinsic gas too low/
|
|
1018
1018
|
});
|
|
1019
|
-
class
|
|
1019
|
+
class Is extends u {
|
|
1020
1020
|
constructor({ cause: t }) {
|
|
1021
1021
|
super("The transaction type is not supported for this chain.", {
|
|
1022
1022
|
cause: t,
|
|
@@ -1024,13 +1024,13 @@ class vs extends u {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
Object.defineProperty(
|
|
1027
|
+
Object.defineProperty(Is, "nodeMessage", {
|
|
1028
1028
|
enumerable: !0,
|
|
1029
1029
|
configurable: !0,
|
|
1030
1030
|
writable: !0,
|
|
1031
1031
|
value: /transaction type not valid/
|
|
1032
1032
|
});
|
|
1033
|
-
class
|
|
1033
|
+
class et extends u {
|
|
1034
1034
|
constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
|
|
1035
1035
|
super([
|
|
1036
1036
|
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${U(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${U(n)} gwei` : ""}).`
|
|
@@ -1041,13 +1041,13 @@ class Ye extends u {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
Object.defineProperty(
|
|
1044
|
+
Object.defineProperty(et, "nodeMessage", {
|
|
1045
1045
|
enumerable: !0,
|
|
1046
1046
|
configurable: !0,
|
|
1047
1047
|
writable: !0,
|
|
1048
1048
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1049
1049
|
});
|
|
1050
|
-
class
|
|
1050
|
+
class zn extends u {
|
|
1051
1051
|
constructor({ cause: t }) {
|
|
1052
1052
|
super(`An error occurred while executing: ${t?.shortMessage}`, {
|
|
1053
1053
|
cause: t,
|
|
@@ -1071,7 +1071,7 @@ function fe(e, t) {
|
|
|
1071
1071
|
type: e
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
|
-
const he = 2n ** 256n - 1n,
|
|
1074
|
+
const he = 2n ** 256n - 1n, tt = {
|
|
1075
1075
|
"0x0": "legacy",
|
|
1076
1076
|
"0x1": "eip2930",
|
|
1077
1077
|
"0x2": "eip1559",
|
|
@@ -1092,12 +1092,12 @@ function pe(e, t) {
|
|
|
1092
1092
|
nonce: e.nonce ? Q(e.nonce) : void 0,
|
|
1093
1093
|
to: e.to ? e.to : null,
|
|
1094
1094
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1095
|
-
type: e.type ?
|
|
1095
|
+
type: e.type ? tt[e.type] : void 0,
|
|
1096
1096
|
typeHex: e.type ? e.type : void 0,
|
|
1097
1097
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1098
1098
|
v: e.v ? BigInt(e.v) : void 0
|
|
1099
1099
|
};
|
|
1100
|
-
return e.authorizationList && (s.authorizationList =
|
|
1100
|
+
return e.authorizationList && (s.authorizationList = As(e.authorizationList)), s.yParity = (() => {
|
|
1101
1101
|
if (e.yParity)
|
|
1102
1102
|
return Number(e.yParity);
|
|
1103
1103
|
if (typeof s.v == "bigint") {
|
|
@@ -1111,7 +1111,7 @@ function pe(e, t) {
|
|
|
1111
1111
|
})(), s.type === "legacy" && (delete s.accessList, delete s.maxFeePerBlobGas, delete s.maxFeePerGas, delete s.maxPriorityFeePerGas, delete s.yParity), s.type === "eip2930" && (delete s.maxFeePerBlobGas, delete s.maxFeePerGas, delete s.maxPriorityFeePerGas), s.type === "eip1559" && delete s.maxFeePerBlobGas, s;
|
|
1112
1112
|
}
|
|
1113
1113
|
const Ps = /* @__PURE__ */ fe("transaction", pe);
|
|
1114
|
-
function
|
|
1114
|
+
function As(e) {
|
|
1115
1115
|
return e.map((t) => ({
|
|
1116
1116
|
address: t.address,
|
|
1117
1117
|
chainId: Number(t.chainId),
|
|
@@ -1121,7 +1121,7 @@ function Is(e) {
|
|
|
1121
1121
|
yParity: Number(t.yParity)
|
|
1122
1122
|
}));
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function $s(e, t) {
|
|
1125
1125
|
const s = (e.transactions ?? []).map((n) => typeof n == "string" ? n : pe(n));
|
|
1126
1126
|
return {
|
|
1127
1127
|
...e,
|
|
@@ -1141,34 +1141,34 @@ function Ts(e, t) {
|
|
|
1141
1141
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
|
-
const
|
|
1145
|
-
function
|
|
1146
|
-
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) =>
|
|
1144
|
+
const Us = /* @__PURE__ */ fe("block", $s);
|
|
1145
|
+
function st(e) {
|
|
1146
|
+
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 = [];
|
|
1147
1147
|
for (const i of n)
|
|
1148
1148
|
r.push(Uint8Array.from(t.blobToKzgCommitment(i)));
|
|
1149
|
-
return s === "bytes" ? r : r.map((i) =>
|
|
1149
|
+
return s === "bytes" ? r : r.map((i) => P(i));
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) =>
|
|
1151
|
+
function nt(e) {
|
|
1152
|
+
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 = [];
|
|
1153
1153
|
for (let o = 0; o < n.length; o++) {
|
|
1154
1154
|
const a = n[o], c = r[o];
|
|
1155
1155
|
i.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
|
|
1156
1156
|
}
|
|
1157
|
-
return s === "bytes" ? i : i.map((o) =>
|
|
1157
|
+
return s === "bytes" ? i : i.map((o) => P(o));
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function zs(e, t, s, n) {
|
|
1160
1160
|
if (typeof e.setBigUint64 == "function")
|
|
1161
1161
|
return e.setBigUint64(t, s, n);
|
|
1162
1162
|
const r = BigInt(32), i = BigInt(4294967295), o = Number(s >> r & i), a = Number(s & i), c = n ? 4 : 0, l = n ? 0 : 4;
|
|
1163
1163
|
e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function ks(e, t, s) {
|
|
1166
1166
|
return e & t ^ ~e & s;
|
|
1167
1167
|
}
|
|
1168
1168
|
function Fs(e, t, s) {
|
|
1169
1169
|
return e & t ^ e & s ^ t & s;
|
|
1170
1170
|
}
|
|
1171
|
-
class Cs extends
|
|
1171
|
+
class Cs extends Oe {
|
|
1172
1172
|
constructor(t, s, n, r) {
|
|
1173
1173
|
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 = oe(this.buffer);
|
|
1174
1174
|
}
|
|
@@ -1188,13 +1188,13 @@ class Cs extends Le {
|
|
|
1188
1188
|
return this.length += t.length, this.roundClean(), this;
|
|
1189
1189
|
}
|
|
1190
1190
|
digestInto(t) {
|
|
1191
|
-
te(this),
|
|
1191
|
+
te(this), Ge(t, this), this.finished = !0;
|
|
1192
1192
|
const { buffer: s, view: n, blockLen: r, isLE: i } = this;
|
|
1193
1193
|
let { pos: o } = this;
|
|
1194
1194
|
s[o++] = 128, X(this.buffer.subarray(o)), this.padOffset > r - o && (this.process(n, 0), o = 0);
|
|
1195
1195
|
for (let d = o; d < r; d++)
|
|
1196
1196
|
s[d] = 0;
|
|
1197
|
-
|
|
1197
|
+
zs(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
1198
1198
|
const a = oe(t), c = this.outputLen;
|
|
1199
1199
|
if (c % 4)
|
|
1200
1200
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -1228,7 +1228,7 @@ const E = /* @__PURE__ */ Uint32Array.from([
|
|
|
1228
1228
|
2600822924,
|
|
1229
1229
|
528734635,
|
|
1230
1230
|
1541459225
|
|
1231
|
-
]),
|
|
1231
|
+
]), Ss = /* @__PURE__ */ Uint32Array.from([
|
|
1232
1232
|
1116352408,
|
|
1233
1233
|
1899447441,
|
|
1234
1234
|
3049323471,
|
|
@@ -1294,7 +1294,7 @@ const E = /* @__PURE__ */ Uint32Array.from([
|
|
|
1294
1294
|
3204031479,
|
|
1295
1295
|
3329325298
|
|
1296
1296
|
]), B = /* @__PURE__ */ new Uint32Array(64);
|
|
1297
|
-
class
|
|
1297
|
+
class Hs extends Cs {
|
|
1298
1298
|
constructor(t = 32) {
|
|
1299
1299
|
super(64, t, 8, !1), this.A = E[0] | 0, this.B = E[1] | 0, this.C = E[2] | 0, this.D = E[3] | 0, this.E = E[4] | 0, this.F = E[5] | 0, this.G = E[6] | 0, this.H = E[7] | 0;
|
|
1300
1300
|
}
|
|
@@ -1310,13 +1310,13 @@ class ks extends Cs {
|
|
|
1310
1310
|
for (let d = 0; d < 16; d++, s += 4)
|
|
1311
1311
|
B[d] = t.getUint32(s, !1);
|
|
1312
1312
|
for (let d = 16; d < 64; d++) {
|
|
1313
|
-
const b = B[d - 15], p = B[d - 2],
|
|
1314
|
-
B[d] =
|
|
1313
|
+
const b = B[d - 15], p = B[d - 2], N = g(b, 7) ^ g(b, 18) ^ b >>> 3, C = g(p, 17) ^ g(p, 19) ^ p >>> 10;
|
|
1314
|
+
B[d] = C + B[d - 7] + N + B[d - 16] | 0;
|
|
1315
1315
|
}
|
|
1316
1316
|
let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
|
|
1317
1317
|
for (let d = 0; d < 64; d++) {
|
|
1318
|
-
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b +
|
|
1319
|
-
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p +
|
|
1318
|
+
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + ks(a, c, l) + Ss[d] + B[d] | 0, C = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + Fs(n, r, i) | 0;
|
|
1319
|
+
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + C | 0;
|
|
1320
1320
|
}
|
|
1321
1321
|
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);
|
|
1322
1322
|
}
|
|
@@ -1327,28 +1327,28 @@ class ks extends Cs {
|
|
|
1327
1327
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), X(this.buffer);
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1331
|
-
function
|
|
1332
|
-
return
|
|
1330
|
+
const Ls = /* @__PURE__ */ Me(() => new Hs()), Gs = Ls;
|
|
1331
|
+
function Os(e, t) {
|
|
1332
|
+
return Gs(q(e, { strict: !1 }) ? He(e) : e);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1335
|
-
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r =
|
|
1336
|
-
return r.set([s], 0), n === "bytes" ? r :
|
|
1334
|
+
function Ms(e) {
|
|
1335
|
+
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Os(t);
|
|
1336
|
+
return r.set([s], 0), n === "bytes" ? r : P(r);
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Ns(e) {
|
|
1339
1339
|
const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
|
|
1340
1340
|
for (const i of t)
|
|
1341
|
-
r.push(
|
|
1341
|
+
r.push(Ms({
|
|
1342
1342
|
commitment: i,
|
|
1343
1343
|
to: n,
|
|
1344
1344
|
version: s
|
|
1345
1345
|
}));
|
|
1346
1346
|
return r;
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1348
|
+
const $e = 6, rt = 32, be = 4096, it = rt * be, Ue = it * $e - // terminator byte (0x80).
|
|
1349
1349
|
1 - // zero byte (0x00) appended to each field element.
|
|
1350
|
-
1 * be *
|
|
1351
|
-
class
|
|
1350
|
+
1 * be * $e, ot = 1;
|
|
1351
|
+
class _s extends u {
|
|
1352
1352
|
constructor({ maxSize: t, size: s }) {
|
|
1353
1353
|
super("Blob size is too large.", {
|
|
1354
1354
|
metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
|
|
@@ -1356,12 +1356,12 @@ class Ns extends u {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
class
|
|
1359
|
+
class at extends u {
|
|
1360
1360
|
constructor() {
|
|
1361
1361
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
class
|
|
1364
|
+
class Vs extends u {
|
|
1365
1365
|
constructor({ hash: t, size: s }) {
|
|
1366
1366
|
super(`Versioned hash "${t}" size is invalid.`, {
|
|
1367
1367
|
metaMessages: ["Expected: 32", `Received: ${s}`],
|
|
@@ -1369,33 +1369,33 @@ class Ms extends u {
|
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
class
|
|
1372
|
+
class Rs extends u {
|
|
1373
1373
|
constructor({ hash: t, version: s }) {
|
|
1374
1374
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1375
1375
|
metaMessages: [
|
|
1376
|
-
`Expected: ${
|
|
1376
|
+
`Expected: ${ot}`,
|
|
1377
1377
|
`Received: ${s}`
|
|
1378
1378
|
],
|
|
1379
1379
|
name: "InvalidVersionedHashVersionError"
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ?
|
|
1383
|
+
function Ds(e) {
|
|
1384
|
+
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? z(e.data) : e.data, n = v(s);
|
|
1385
1385
|
if (!n)
|
|
1386
|
-
throw new
|
|
1387
|
-
if (n >
|
|
1388
|
-
throw new
|
|
1389
|
-
maxSize:
|
|
1386
|
+
throw new at();
|
|
1387
|
+
if (n > Ue)
|
|
1388
|
+
throw new _s({
|
|
1389
|
+
maxSize: Ue,
|
|
1390
1390
|
size: n
|
|
1391
1391
|
});
|
|
1392
1392
|
const r = [];
|
|
1393
1393
|
let i = !0, o = 0;
|
|
1394
1394
|
for (; i; ) {
|
|
1395
|
-
const a =
|
|
1395
|
+
const a = Xe(new Uint8Array(it));
|
|
1396
1396
|
let c = 0;
|
|
1397
1397
|
for (; c < be; ) {
|
|
1398
|
-
const l = s.slice(o, o + (
|
|
1398
|
+
const l = s.slice(o, o + (rt - 1));
|
|
1399
1399
|
if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
|
|
1400
1400
|
a.pushByte(128), i = !1;
|
|
1401
1401
|
break;
|
|
@@ -1404,10 +1404,10 @@ function Vs(e) {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
r.push(a);
|
|
1406
1406
|
}
|
|
1407
|
-
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) =>
|
|
1407
|
+
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => P(a.bytes));
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
const { data: t, kzg: s, to: n } = e, r = e.blobs ??
|
|
1409
|
+
function js(e) {
|
|
1410
|
+
const { data: t, kzg: s, to: n } = e, r = e.blobs ?? Ds({ 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 = [];
|
|
1411
1411
|
for (let c = 0; c < r.length; c++)
|
|
1412
1412
|
a.push({
|
|
1413
1413
|
blob: r[c],
|
|
@@ -1416,7 +1416,7 @@ function Ds(e) {
|
|
|
1416
1416
|
});
|
|
1417
1417
|
return a;
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Ks(e) {
|
|
1420
1420
|
if (e.type)
|
|
1421
1421
|
return e.type;
|
|
1422
1422
|
if (typeof e.authorizationList < "u")
|
|
@@ -1427,20 +1427,21 @@ function Rs(e) {
|
|
|
1427
1427
|
return "eip1559";
|
|
1428
1428
|
if (typeof e.gasPrice < "u")
|
|
1429
1429
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1430
|
-
throw new
|
|
1430
|
+
throw new ps({ transaction: e });
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function Ws(e, { args: t, eventName: s } = {}) {
|
|
1433
1433
|
return {
|
|
1434
1434
|
...e,
|
|
1435
1435
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
1436
1436
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
1437
|
+
blockTimestamp: e.blockTimestamp ? BigInt(e.blockTimestamp) : e.blockTimestamp === null ? null : void 0,
|
|
1437
1438
|
logIndex: e.logIndex ? Number(e.logIndex) : null,
|
|
1438
1439
|
transactionHash: e.transactionHash ? e.transactionHash : null,
|
|
1439
1440
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1440
1441
|
...s ? { args: t, eventName: s } : {}
|
|
1441
1442
|
};
|
|
1442
1443
|
}
|
|
1443
|
-
class
|
|
1444
|
+
class kn extends u {
|
|
1444
1445
|
constructor({ blockNumber: t, chain: s, contract: n }) {
|
|
1445
1446
|
super(`Chain "${s.name}" does not support contract "${n.name}".`, {
|
|
1446
1447
|
metaMessages: [
|
|
@@ -1455,7 +1456,7 @@ class Fn extends u {
|
|
|
1455
1456
|
});
|
|
1456
1457
|
}
|
|
1457
1458
|
}
|
|
1458
|
-
class
|
|
1459
|
+
class Fn extends u {
|
|
1459
1460
|
constructor({ chain: t, currentChainId: s }) {
|
|
1460
1461
|
super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
|
|
1461
1462
|
metaMessages: [
|
|
@@ -1466,7 +1467,7 @@ class Cn extends u {
|
|
|
1466
1467
|
});
|
|
1467
1468
|
}
|
|
1468
1469
|
}
|
|
1469
|
-
class
|
|
1470
|
+
class Cn extends u {
|
|
1470
1471
|
constructor() {
|
|
1471
1472
|
super([
|
|
1472
1473
|
"No chain was provided to the request.",
|
|
@@ -1477,7 +1478,7 @@ class zn extends u {
|
|
|
1477
1478
|
});
|
|
1478
1479
|
}
|
|
1479
1480
|
}
|
|
1480
|
-
class
|
|
1481
|
+
class Sn extends u {
|
|
1481
1482
|
constructor() {
|
|
1482
1483
|
super("No chain was provided to the Client.", {
|
|
1483
1484
|
name: "ClientChainNotConfiguredError"
|
|
@@ -1489,11 +1490,11 @@ class ne extends u {
|
|
|
1489
1490
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1490
1491
|
}
|
|
1491
1492
|
}
|
|
1492
|
-
const
|
|
1493
|
+
const Xs = {
|
|
1493
1494
|
"0x0": "reverted",
|
|
1494
1495
|
"0x1": "success"
|
|
1495
1496
|
};
|
|
1496
|
-
function
|
|
1497
|
+
function qs(e, t) {
|
|
1497
1498
|
const s = {
|
|
1498
1499
|
...e,
|
|
1499
1500
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1501,38 +1502,38 @@ function Ws(e, t) {
|
|
|
1501
1502
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1502
1503
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1503
1504
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1504
|
-
logs: e.logs ? e.logs.map((n) =>
|
|
1505
|
+
logs: e.logs ? e.logs.map((n) => Ws(n)) : null,
|
|
1505
1506
|
to: e.to ? e.to : null,
|
|
1506
1507
|
transactionIndex: e.transactionIndex ? Q(e.transactionIndex) : null,
|
|
1507
|
-
status: e.status ?
|
|
1508
|
-
type: e.type ?
|
|
1508
|
+
status: e.status ? Xs[e.status] : null,
|
|
1509
|
+
type: e.type ? tt[e.type] || e.type : null
|
|
1509
1510
|
};
|
|
1510
1511
|
return e.blobGasPrice && (s.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (s.blobGasUsed = BigInt(e.blobGasUsed)), s;
|
|
1511
1512
|
}
|
|
1512
|
-
const
|
|
1513
|
-
function
|
|
1513
|
+
const Ys = /* @__PURE__ */ fe("transactionReceipt", qs);
|
|
1514
|
+
function Zs(e) {
|
|
1514
1515
|
const { authorizationList: t } = e;
|
|
1515
1516
|
if (t)
|
|
1516
1517
|
for (const s of t) {
|
|
1517
1518
|
const { chainId: n } = s, r = s.address;
|
|
1518
1519
|
if (!I(r))
|
|
1519
|
-
throw new
|
|
1520
|
+
throw new T({ address: r });
|
|
1520
1521
|
if (n < 0)
|
|
1521
1522
|
throw new ne({ chainId: n });
|
|
1522
1523
|
}
|
|
1523
1524
|
me(e);
|
|
1524
1525
|
}
|
|
1525
|
-
function
|
|
1526
|
+
function Js(e) {
|
|
1526
1527
|
const { blobVersionedHashes: t } = e;
|
|
1527
1528
|
if (t) {
|
|
1528
1529
|
if (t.length === 0)
|
|
1529
|
-
throw new
|
|
1530
|
+
throw new at();
|
|
1530
1531
|
for (const s of t) {
|
|
1531
|
-
const n = v(s), r = Q(
|
|
1532
|
+
const n = v(s), r = Q(rs(s, 0, 1));
|
|
1532
1533
|
if (n !== 32)
|
|
1533
|
-
throw new
|
|
1534
|
-
if (r !==
|
|
1535
|
-
throw new
|
|
1534
|
+
throw new Vs({ hash: s, size: n });
|
|
1535
|
+
if (r !== ot)
|
|
1536
|
+
throw new Rs({
|
|
1536
1537
|
hash: s,
|
|
1537
1538
|
version: r
|
|
1538
1539
|
});
|
|
@@ -1545,27 +1546,27 @@ function me(e) {
|
|
|
1545
1546
|
if (t <= 0)
|
|
1546
1547
|
throw new ne({ chainId: t });
|
|
1547
1548
|
if (r && !I(r))
|
|
1548
|
-
throw new
|
|
1549
|
+
throw new T({ address: r });
|
|
1549
1550
|
if (n && n > he)
|
|
1550
1551
|
throw new se({ maxFeePerGas: n });
|
|
1551
1552
|
if (s && n && s > n)
|
|
1552
|
-
throw new
|
|
1553
|
+
throw new et({ maxFeePerGas: n, maxPriorityFeePerGas: s });
|
|
1553
1554
|
}
|
|
1554
|
-
function
|
|
1555
|
+
function Qs(e) {
|
|
1555
1556
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1556
1557
|
if (t <= 0)
|
|
1557
1558
|
throw new ne({ chainId: t });
|
|
1558
1559
|
if (i && !I(i))
|
|
1559
|
-
throw new
|
|
1560
|
+
throw new T({ address: i });
|
|
1560
1561
|
if (s || r)
|
|
1561
1562
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
1562
1563
|
if (n && n > he)
|
|
1563
1564
|
throw new se({ maxFeePerGas: n });
|
|
1564
1565
|
}
|
|
1565
|
-
function
|
|
1566
|
+
function en(e) {
|
|
1566
1567
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1567
1568
|
if (i && !I(i))
|
|
1568
|
-
throw new
|
|
1569
|
+
throw new T({ address: i });
|
|
1569
1570
|
if (typeof t < "u" && t <= 0)
|
|
1570
1571
|
throw new ne({ chainId: t });
|
|
1571
1572
|
if (s || r)
|
|
@@ -1581,24 +1582,24 @@ function re(e) {
|
|
|
1581
1582
|
const { address: n, storageKeys: r } = e[s];
|
|
1582
1583
|
for (let i = 0; i < r.length; i++)
|
|
1583
1584
|
if (r[i].length - 2 !== 64)
|
|
1584
|
-
throw new
|
|
1585
|
+
throw new bs({ storageKey: r[i] });
|
|
1585
1586
|
if (!I(n, { strict: !1 }))
|
|
1586
|
-
throw new
|
|
1587
|
+
throw new T({ address: n });
|
|
1587
1588
|
t.push([n, r]);
|
|
1588
1589
|
}
|
|
1589
1590
|
return t;
|
|
1590
1591
|
}
|
|
1591
|
-
function
|
|
1592
|
-
const s =
|
|
1593
|
-
return s === "eip1559" ?
|
|
1592
|
+
function tn(e, t) {
|
|
1593
|
+
const s = Ks(e);
|
|
1594
|
+
return s === "eip1559" ? rn(e, t) : s === "eip2930" ? on(e, t) : s === "eip4844" ? nn(e, t) : s === "eip7702" ? sn(e, t) : an(e, t);
|
|
1594
1595
|
}
|
|
1595
|
-
function
|
|
1596
|
+
function sn(e, t) {
|
|
1596
1597
|
const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1597
|
-
|
|
1598
|
-
const b = re(h), p =
|
|
1599
|
-
return
|
|
1598
|
+
Zs(e);
|
|
1599
|
+
const b = re(h), p = cn(s);
|
|
1600
|
+
return M([
|
|
1600
1601
|
"0x04",
|
|
1601
|
-
|
|
1602
|
+
k([
|
|
1602
1603
|
f(n),
|
|
1603
1604
|
i ? f(i) : "0x",
|
|
1604
1605
|
l ? f(l) : "0x",
|
|
@@ -1609,27 +1610,27 @@ function en(e, t) {
|
|
|
1609
1610
|
d ?? "0x",
|
|
1610
1611
|
b,
|
|
1611
1612
|
p,
|
|
1612
|
-
...
|
|
1613
|
+
...Y(e, t)
|
|
1613
1614
|
])
|
|
1614
1615
|
]);
|
|
1615
1616
|
}
|
|
1616
|
-
function
|
|
1617
|
+
function nn(e, t) {
|
|
1617
1618
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1618
|
-
|
|
1619
|
+
Js(e);
|
|
1619
1620
|
let b = e.blobVersionedHashes, p = e.sidecars;
|
|
1620
1621
|
if (e.blobs && (typeof b > "u" || typeof p > "u")) {
|
|
1621
|
-
const
|
|
1622
|
-
blobs:
|
|
1623
|
-
kzg:
|
|
1622
|
+
const A = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((V) => P(V)), Z = e.kzg, _ = st({
|
|
1623
|
+
blobs: A,
|
|
1624
|
+
kzg: Z
|
|
1624
1625
|
});
|
|
1625
|
-
if (typeof b > "u" && (b =
|
|
1626
|
+
if (typeof b > "u" && (b = Ns({
|
|
1626
1627
|
commitments: _
|
|
1627
1628
|
})), typeof p > "u") {
|
|
1628
|
-
const V =
|
|
1629
|
-
p =
|
|
1629
|
+
const V = nt({ blobs: A, commitments: _, kzg: Z });
|
|
1630
|
+
p = js({ blobs: A, commitments: _, proofs: V });
|
|
1630
1631
|
}
|
|
1631
1632
|
}
|
|
1632
|
-
const
|
|
1633
|
+
const N = re(h), C = [
|
|
1633
1634
|
f(s),
|
|
1634
1635
|
r ? f(r) : "0x",
|
|
1635
1636
|
l ? f(l) : "0x",
|
|
@@ -1638,23 +1639,23 @@ function tn(e, t) {
|
|
|
1638
1639
|
i ?? "0x",
|
|
1639
1640
|
o ? f(o) : "0x",
|
|
1640
1641
|
d ?? "0x",
|
|
1641
|
-
|
|
1642
|
+
N,
|
|
1642
1643
|
a ? f(a) : "0x",
|
|
1643
1644
|
b ?? [],
|
|
1644
|
-
...
|
|
1645
|
-
],
|
|
1645
|
+
...Y(e, t)
|
|
1646
|
+
], ye = [], we = [], Ee = [];
|
|
1646
1647
|
if (p)
|
|
1647
|
-
for (let
|
|
1648
|
-
const { blob:
|
|
1649
|
-
|
|
1648
|
+
for (let A = 0; A < p.length; A++) {
|
|
1649
|
+
const { blob: Z, commitment: _, proof: V } = p[A];
|
|
1650
|
+
ye.push(Z), we.push(_), Ee.push(V);
|
|
1650
1651
|
}
|
|
1651
|
-
return
|
|
1652
|
+
return M([
|
|
1652
1653
|
"0x03",
|
|
1653
1654
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1654
|
-
|
|
1655
|
+
k(p ? [C, ye, we, Ee] : C)
|
|
1655
1656
|
]);
|
|
1656
1657
|
}
|
|
1657
|
-
function
|
|
1658
|
+
function rn(e, t) {
|
|
1658
1659
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
|
|
1659
1660
|
me(e);
|
|
1660
1661
|
const d = re(l), b = [
|
|
@@ -1667,16 +1668,16 @@ function sn(e, t) {
|
|
|
1667
1668
|
o ? f(o) : "0x",
|
|
1668
1669
|
h ?? "0x",
|
|
1669
1670
|
d,
|
|
1670
|
-
...
|
|
1671
|
+
...Y(e, t)
|
|
1671
1672
|
];
|
|
1672
|
-
return
|
|
1673
|
+
return M([
|
|
1673
1674
|
"0x02",
|
|
1674
|
-
|
|
1675
|
+
k(b)
|
|
1675
1676
|
]);
|
|
1676
1677
|
}
|
|
1677
|
-
function
|
|
1678
|
+
function on(e, t) {
|
|
1678
1679
|
const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
|
|
1679
|
-
|
|
1680
|
+
Qs(e);
|
|
1680
1681
|
const h = re(c), d = [
|
|
1681
1682
|
f(s),
|
|
1682
1683
|
i ? f(i) : "0x",
|
|
@@ -1686,16 +1687,16 @@ function nn(e, t) {
|
|
|
1686
1687
|
a ? f(a) : "0x",
|
|
1687
1688
|
r ?? "0x",
|
|
1688
1689
|
h,
|
|
1689
|
-
...
|
|
1690
|
+
...Y(e, t)
|
|
1690
1691
|
];
|
|
1691
|
-
return
|
|
1692
|
+
return M([
|
|
1692
1693
|
"0x01",
|
|
1693
|
-
|
|
1694
|
+
k(d)
|
|
1694
1695
|
]);
|
|
1695
1696
|
}
|
|
1696
|
-
function
|
|
1697
|
+
function an(e, t) {
|
|
1697
1698
|
const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
|
|
1698
|
-
|
|
1699
|
+
en(e);
|
|
1699
1700
|
let l = [
|
|
1700
1701
|
i ? f(i) : "0x",
|
|
1701
1702
|
c ? f(c) : "0x",
|
|
@@ -1712,9 +1713,9 @@ function rn(e, t) {
|
|
|
1712
1713
|
return BigInt(s * 2) + BigInt(35n + t.v - 27n);
|
|
1713
1714
|
const p = 27n + (t.v === 27n ? 0n : 1n);
|
|
1714
1715
|
if (t.v !== p)
|
|
1715
|
-
throw new
|
|
1716
|
+
throw new hs({ v: t.v });
|
|
1716
1717
|
return p;
|
|
1717
|
-
})(), d =
|
|
1718
|
+
})(), d = $(t.r), b = $(t.s);
|
|
1718
1719
|
l = [
|
|
1719
1720
|
...l,
|
|
1720
1721
|
f(h),
|
|
@@ -1727,9 +1728,9 @@ function rn(e, t) {
|
|
|
1727
1728
|
"0x",
|
|
1728
1729
|
"0x"
|
|
1729
1730
|
]);
|
|
1730
|
-
return
|
|
1731
|
+
return k(l);
|
|
1731
1732
|
}
|
|
1732
|
-
function
|
|
1733
|
+
function Y(e, t) {
|
|
1733
1734
|
const s = t ?? e, { v: n, yParity: r } = s;
|
|
1734
1735
|
if (typeof s.r > "u")
|
|
1735
1736
|
return [];
|
|
@@ -1737,33 +1738,42 @@ function Z(e, t) {
|
|
|
1737
1738
|
return [];
|
|
1738
1739
|
if (typeof n > "u" && typeof r > "u")
|
|
1739
1740
|
return [];
|
|
1740
|
-
const i =
|
|
1741
|
+
const i = $(s.r), o = $(s.s);
|
|
1741
1742
|
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];
|
|
1742
1743
|
}
|
|
1743
|
-
function
|
|
1744
|
+
function cn(e) {
|
|
1744
1745
|
if (!e || e.length === 0)
|
|
1745
1746
|
return [];
|
|
1746
1747
|
const t = [];
|
|
1747
1748
|
for (const s of e) {
|
|
1748
1749
|
const { chainId: n, nonce: r, ...i } = s, o = s.address;
|
|
1749
1750
|
t.push([
|
|
1750
|
-
n ?
|
|
1751
|
+
n ? L(n) : "0x",
|
|
1751
1752
|
o,
|
|
1752
|
-
r ?
|
|
1753
|
-
...
|
|
1753
|
+
r ? L(r) : "0x",
|
|
1754
|
+
...Y({}, i)
|
|
1754
1755
|
]);
|
|
1755
1756
|
}
|
|
1756
1757
|
return t;
|
|
1757
1758
|
}
|
|
1758
|
-
function
|
|
1759
|
-
|
|
1759
|
+
function m(e) {
|
|
1760
|
+
const t = {
|
|
1760
1761
|
formatters: void 0,
|
|
1761
1762
|
fees: void 0,
|
|
1762
1763
|
serializers: void 0,
|
|
1763
1764
|
...e
|
|
1764
1765
|
};
|
|
1766
|
+
function s(n) {
|
|
1767
|
+
return (r) => {
|
|
1768
|
+
const i = typeof r == "function" ? r(n) : r, o = { ...n, ...i };
|
|
1769
|
+
return Object.assign(o, { extend: s(o) });
|
|
1770
|
+
};
|
|
1771
|
+
}
|
|
1772
|
+
return Object.assign(t, {
|
|
1773
|
+
extend: s(t)
|
|
1774
|
+
});
|
|
1765
1775
|
}
|
|
1766
|
-
const
|
|
1776
|
+
const un = {
|
|
1767
1777
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
1768
1778
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
1769
1779
|
l2CrossDomainMessenger: {
|
|
@@ -1774,15 +1784,15 @@ const an = {
|
|
|
1774
1784
|
l2ToL1MessagePasser: {
|
|
1775
1785
|
address: "0x4200000000000000000000000000000000000016"
|
|
1776
1786
|
}
|
|
1777
|
-
},
|
|
1778
|
-
block: /* @__PURE__ */
|
|
1787
|
+
}, ln = {
|
|
1788
|
+
block: /* @__PURE__ */ Us({
|
|
1779
1789
|
format(e) {
|
|
1780
1790
|
return {
|
|
1781
1791
|
transactions: e.transactions?.map((s) => {
|
|
1782
1792
|
if (typeof s == "string")
|
|
1783
1793
|
return s;
|
|
1784
1794
|
const n = pe(s);
|
|
1785
|
-
return n.typeHex === "0x7e" && (n.isSystemTx = s.isSystemTx, n.mint = s.mint ?
|
|
1795
|
+
return n.typeHex === "0x7e" && (n.isSystemTx = s.isSystemTx, n.mint = s.mint ? H(s.mint) : void 0, n.sourceHash = s.sourceHash, n.type = "deposit"), n;
|
|
1786
1796
|
}),
|
|
1787
1797
|
stateRoot: e.stateRoot
|
|
1788
1798
|
};
|
|
@@ -1791,61 +1801,61 @@ const an = {
|
|
|
1791
1801
|
transaction: /* @__PURE__ */ Ps({
|
|
1792
1802
|
format(e) {
|
|
1793
1803
|
const t = {};
|
|
1794
|
-
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ?
|
|
1804
|
+
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? H(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
1795
1805
|
}
|
|
1796
1806
|
}),
|
|
1797
|
-
transactionReceipt: /* @__PURE__ */
|
|
1807
|
+
transactionReceipt: /* @__PURE__ */ Ys({
|
|
1798
1808
|
format(e) {
|
|
1799
1809
|
return {
|
|
1800
|
-
l1GasPrice: e.l1GasPrice ?
|
|
1801
|
-
l1GasUsed: e.l1GasUsed ?
|
|
1802
|
-
l1Fee: e.l1Fee ?
|
|
1810
|
+
l1GasPrice: e.l1GasPrice ? H(e.l1GasPrice) : null,
|
|
1811
|
+
l1GasUsed: e.l1GasUsed ? H(e.l1GasUsed) : null,
|
|
1812
|
+
l1Fee: e.l1Fee ? H(e.l1Fee) : null,
|
|
1803
1813
|
l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
|
|
1804
1814
|
};
|
|
1805
1815
|
}
|
|
1806
1816
|
})
|
|
1807
1817
|
};
|
|
1808
|
-
function
|
|
1809
|
-
return
|
|
1818
|
+
function dn(e, t) {
|
|
1819
|
+
return pn(e) ? hn(e) : tn(e, t);
|
|
1810
1820
|
}
|
|
1811
|
-
const
|
|
1812
|
-
transaction:
|
|
1821
|
+
const fn = {
|
|
1822
|
+
transaction: dn
|
|
1813
1823
|
};
|
|
1814
|
-
function
|
|
1815
|
-
|
|
1824
|
+
function hn(e) {
|
|
1825
|
+
bn(e);
|
|
1816
1826
|
const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
|
|
1817
1827
|
t,
|
|
1818
1828
|
n,
|
|
1819
1829
|
a ?? "0x",
|
|
1820
|
-
o ?
|
|
1821
|
-
c ?
|
|
1822
|
-
r ?
|
|
1830
|
+
o ? L(o) : "0x",
|
|
1831
|
+
c ? L(c) : "0x",
|
|
1832
|
+
r ? L(r) : "0x",
|
|
1823
1833
|
i ? "0x1" : "0x",
|
|
1824
1834
|
s ?? "0x"
|
|
1825
1835
|
];
|
|
1826
|
-
return
|
|
1836
|
+
return M([
|
|
1827
1837
|
"0x7e",
|
|
1828
|
-
|
|
1838
|
+
k(l)
|
|
1829
1839
|
]);
|
|
1830
1840
|
}
|
|
1831
|
-
function
|
|
1841
|
+
function pn(e) {
|
|
1832
1842
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
1833
1843
|
}
|
|
1834
|
-
function
|
|
1844
|
+
function bn(e) {
|
|
1835
1845
|
const { from: t, to: s } = e;
|
|
1836
1846
|
if (t && !I(t))
|
|
1837
|
-
throw new
|
|
1847
|
+
throw new T({ address: t });
|
|
1838
1848
|
if (s && !I(s))
|
|
1839
|
-
throw new
|
|
1849
|
+
throw new T({ address: s });
|
|
1840
1850
|
}
|
|
1841
1851
|
const w = {
|
|
1842
1852
|
blockTime: 2e3,
|
|
1843
|
-
contracts:
|
|
1844
|
-
formatters:
|
|
1845
|
-
serializers:
|
|
1846
|
-
},
|
|
1853
|
+
contracts: un,
|
|
1854
|
+
formatters: ln,
|
|
1855
|
+
serializers: fn
|
|
1856
|
+
}, mn = 42161, ct = /* @__PURE__ */ m({
|
|
1847
1857
|
id: 33139,
|
|
1848
|
-
name: "
|
|
1858
|
+
name: "ApeChain",
|
|
1849
1859
|
nativeCurrency: {
|
|
1850
1860
|
name: "ApeCoin",
|
|
1851
1861
|
symbol: "APE",
|
|
@@ -1870,8 +1880,8 @@ const w = {
|
|
|
1870
1880
|
blockCreated: 20889
|
|
1871
1881
|
}
|
|
1872
1882
|
},
|
|
1873
|
-
sourceId:
|
|
1874
|
-
}),
|
|
1883
|
+
sourceId: mn
|
|
1884
|
+
}), ut = /* @__PURE__ */ m({
|
|
1875
1885
|
id: 42161,
|
|
1876
1886
|
name: "Arbitrum One",
|
|
1877
1887
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1894,7 +1904,7 @@ const w = {
|
|
|
1894
1904
|
blockCreated: 7654707
|
|
1895
1905
|
}
|
|
1896
1906
|
}
|
|
1897
|
-
}),
|
|
1907
|
+
}), D = 1, xe = /* @__PURE__ */ m({
|
|
1898
1908
|
...w,
|
|
1899
1909
|
id: 8453,
|
|
1900
1910
|
name: "Base",
|
|
@@ -1914,12 +1924,12 @@ const w = {
|
|
|
1914
1924
|
contracts: {
|
|
1915
1925
|
...w.contracts,
|
|
1916
1926
|
disputeGameFactory: {
|
|
1917
|
-
[
|
|
1927
|
+
[D]: {
|
|
1918
1928
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
1919
1929
|
}
|
|
1920
1930
|
},
|
|
1921
1931
|
l2OutputOracle: {
|
|
1922
|
-
[
|
|
1932
|
+
[D]: {
|
|
1923
1933
|
address: "0x56315b90c40730925ec5485cf004d835058518A0"
|
|
1924
1934
|
}
|
|
1925
1935
|
},
|
|
@@ -1928,20 +1938,24 @@ const w = {
|
|
|
1928
1938
|
blockCreated: 5022
|
|
1929
1939
|
},
|
|
1930
1940
|
portal: {
|
|
1931
|
-
[
|
|
1941
|
+
[D]: {
|
|
1932
1942
|
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
|
|
1933
1943
|
blockCreated: 17482143
|
|
1934
1944
|
}
|
|
1935
1945
|
},
|
|
1936
1946
|
l1StandardBridge: {
|
|
1937
|
-
[
|
|
1947
|
+
[D]: {
|
|
1938
1948
|
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
|
|
1939
1949
|
blockCreated: 17482143
|
|
1940
1950
|
}
|
|
1941
1951
|
}
|
|
1942
1952
|
},
|
|
1943
|
-
sourceId:
|
|
1944
|
-
})
|
|
1953
|
+
sourceId: D
|
|
1954
|
+
});
|
|
1955
|
+
({
|
|
1956
|
+
...xe
|
|
1957
|
+
});
|
|
1958
|
+
const j = 11155111, ge = /* @__PURE__ */ m({
|
|
1945
1959
|
...w,
|
|
1946
1960
|
id: 84532,
|
|
1947
1961
|
network: "base-sepolia",
|
|
@@ -1990,7 +2004,11 @@ const w = {
|
|
|
1990
2004
|
},
|
|
1991
2005
|
testnet: !0,
|
|
1992
2006
|
sourceId: j
|
|
1993
|
-
})
|
|
2007
|
+
});
|
|
2008
|
+
({
|
|
2009
|
+
...ge
|
|
2010
|
+
});
|
|
2011
|
+
const lt = /* @__PURE__ */ m({
|
|
1994
2012
|
id: 80094,
|
|
1995
2013
|
name: "Berachain",
|
|
1996
2014
|
blockTime: 2e3,
|
|
@@ -2024,7 +2042,7 @@ const w = {
|
|
|
2024
2042
|
},
|
|
2025
2043
|
ensTlds: [".bera"],
|
|
2026
2044
|
testnet: !1
|
|
2027
|
-
}),
|
|
2045
|
+
}), dt = /* @__PURE__ */ m({
|
|
2028
2046
|
id: 56,
|
|
2029
2047
|
name: "BNB Smart Chain",
|
|
2030
2048
|
blockTime: 750,
|
|
@@ -2049,7 +2067,7 @@ const w = {
|
|
|
2049
2067
|
blockCreated: 15921452
|
|
2050
2068
|
}
|
|
2051
2069
|
}
|
|
2052
|
-
}),
|
|
2070
|
+
}), ft = /* @__PURE__ */ m({
|
|
2053
2071
|
id: 17e3,
|
|
2054
2072
|
name: "Holesky",
|
|
2055
2073
|
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2076,7 +2094,7 @@ const w = {
|
|
|
2076
2094
|
}
|
|
2077
2095
|
},
|
|
2078
2096
|
testnet: !0
|
|
2079
|
-
}),
|
|
2097
|
+
}), ht = /* @__PURE__ */ m({
|
|
2080
2098
|
id: 560048,
|
|
2081
2099
|
name: "Hoodi",
|
|
2082
2100
|
nativeCurrency: { name: "Hoodi Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2098,7 +2116,23 @@ const w = {
|
|
|
2098
2116
|
}
|
|
2099
2117
|
},
|
|
2100
2118
|
testnet: !0
|
|
2101
|
-
}),
|
|
2119
|
+
}), pt = /* @__PURE__ */ m({
|
|
2120
|
+
id: 999,
|
|
2121
|
+
name: "HyperEVM",
|
|
2122
|
+
nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
|
|
2123
|
+
blockExplorers: {
|
|
2124
|
+
default: {
|
|
2125
|
+
name: "HyperEVMScan",
|
|
2126
|
+
url: "https://hyperevmscan.io"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
rpcUrls: {
|
|
2130
|
+
default: {
|
|
2131
|
+
http: ["https://rpc.hyperliquid.xyz/evm"]
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
testnet: !1
|
|
2135
|
+
}), bt = /* @__PURE__ */ m({
|
|
2102
2136
|
id: 1,
|
|
2103
2137
|
name: "Ethereum",
|
|
2104
2138
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2125,7 +2159,40 @@ const w = {
|
|
|
2125
2159
|
blockCreated: 14353601
|
|
2126
2160
|
}
|
|
2127
2161
|
}
|
|
2128
|
-
}),
|
|
2162
|
+
}), mt = /* @__PURE__ */ m({
|
|
2163
|
+
id: 143,
|
|
2164
|
+
name: "Monad",
|
|
2165
|
+
blockTime: 400,
|
|
2166
|
+
nativeCurrency: {
|
|
2167
|
+
name: "Monad",
|
|
2168
|
+
symbol: "MON",
|
|
2169
|
+
decimals: 18
|
|
2170
|
+
},
|
|
2171
|
+
rpcUrls: {
|
|
2172
|
+
default: {
|
|
2173
|
+
http: ["https://rpc.monad.xyz", "https://rpc1.monad.xyz"],
|
|
2174
|
+
webSocket: ["wss://rpc.monad.xyz", "wss://rpc1.monad.xyz"]
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
blockExplorers: {
|
|
2178
|
+
default: {
|
|
2179
|
+
name: "MonadVision",
|
|
2180
|
+
url: "https://monadvision.com"
|
|
2181
|
+
},
|
|
2182
|
+
monadscan: {
|
|
2183
|
+
name: "Monadscan",
|
|
2184
|
+
url: "https://monadscan.com",
|
|
2185
|
+
apiUrl: "https://api.monadscan.com/api"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
testnet: !1,
|
|
2189
|
+
contracts: {
|
|
2190
|
+
multicall3: {
|
|
2191
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
2192
|
+
blockCreated: 9248132
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
}), K = 11155111, xt = /* @__PURE__ */ m({
|
|
2129
2196
|
...w,
|
|
2130
2197
|
id: 11155420,
|
|
2131
2198
|
name: "OP Sepolia",
|
|
@@ -2171,7 +2238,7 @@ const w = {
|
|
|
2171
2238
|
},
|
|
2172
2239
|
testnet: !0,
|
|
2173
2240
|
sourceId: K
|
|
2174
|
-
}),
|
|
2241
|
+
}), gt = /* @__PURE__ */ m({
|
|
2175
2242
|
id: 11155111,
|
|
2176
2243
|
name: "Sepolia",
|
|
2177
2244
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2198,7 +2265,7 @@ const w = {
|
|
|
2198
2265
|
}
|
|
2199
2266
|
},
|
|
2200
2267
|
testnet: !0
|
|
2201
|
-
}), W = 1,
|
|
2268
|
+
}), W = 1, yt = /* @__PURE__ */ m({
|
|
2202
2269
|
...w,
|
|
2203
2270
|
id: 1868,
|
|
2204
2271
|
name: "Soneium Mainnet",
|
|
@@ -2245,7 +2312,7 @@ const w = {
|
|
|
2245
2312
|
}
|
|
2246
2313
|
},
|
|
2247
2314
|
sourceId: W
|
|
2248
|
-
}),
|
|
2315
|
+
}), wt = /* @__PURE__ */ m({
|
|
2249
2316
|
id: 239,
|
|
2250
2317
|
name: "TAC",
|
|
2251
2318
|
nativeCurrency: { name: "TAC", symbol: "TAC", decimals: 18 },
|
|
@@ -2272,7 +2339,7 @@ const w = {
|
|
|
2272
2339
|
blockCreated: 0
|
|
2273
2340
|
}
|
|
2274
2341
|
}
|
|
2275
|
-
}), ue = 1,
|
|
2342
|
+
}), ue = 1, Et = /* @__PURE__ */ m({
|
|
2276
2343
|
...w,
|
|
2277
2344
|
id: 48900,
|
|
2278
2345
|
name: "Zircuit Mainnet",
|
|
@@ -2319,106 +2386,107 @@ const w = {
|
|
|
2319
2386
|
},
|
|
2320
2387
|
testnet: !1
|
|
2321
2388
|
});
|
|
2322
|
-
var
|
|
2323
|
-
const
|
|
2324
|
-
[
|
|
2325
|
-
[
|
|
2326
|
-
[
|
|
2327
|
-
[
|
|
2328
|
-
[
|
|
2329
|
-
[
|
|
2330
|
-
[
|
|
2331
|
-
[
|
|
2332
|
-
[
|
|
2333
|
-
[
|
|
2334
|
-
[
|
|
2335
|
-
[
|
|
2336
|
-
[
|
|
2337
|
-
[
|
|
2389
|
+
var x = ((e) => (e[e.Mainnet = bt.id] = "Mainnet", e[e.Holesky = ft.id] = "Holesky", e[e.Base = xe.id] = "Base", e[e.Bsc = dt.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 = ge.id] = "BaseSepolia", e[e.Zircuit = Et.id] = "Zircuit", e[e.Berachain = lt.id] = "Berachain", e[e.Hoodi = ht.id] = "Hoodi", e[e.TAC = wt.id] = "TAC", e[e.Monad = mt.id] = "Monad", e[e.HyperEVM = pt.id] = "HyperEVM", e))(x || {});
|
|
2390
|
+
const Hn = {
|
|
2391
|
+
[x.Mainnet]: bt,
|
|
2392
|
+
[x.Holesky]: ft,
|
|
2393
|
+
[x.Base]: xe,
|
|
2394
|
+
[x.Bsc]: dt,
|
|
2395
|
+
[x.Arbitrum]: ut,
|
|
2396
|
+
[x.ApeChain]: ct,
|
|
2397
|
+
[x.Soneium]: yt,
|
|
2398
|
+
[x.Sepolia]: gt,
|
|
2399
|
+
[x.OptimismSepolia]: xt,
|
|
2400
|
+
[x.BaseSepolia]: ge,
|
|
2401
|
+
[x.Zircuit]: Et,
|
|
2402
|
+
[x.Berachain]: lt,
|
|
2403
|
+
[x.Hoodi]: ht,
|
|
2404
|
+
[x.TAC]: wt,
|
|
2405
|
+
[x.Monad]: mt,
|
|
2406
|
+
[x.HyperEVM]: pt
|
|
2338
2407
|
};
|
|
2339
2408
|
export {
|
|
2340
|
-
|
|
2341
|
-
|
|
2409
|
+
et as $,
|
|
2410
|
+
F as A,
|
|
2342
2411
|
u as B,
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2412
|
+
x as C,
|
|
2413
|
+
$ as D,
|
|
2414
|
+
Qe as E,
|
|
2346
2415
|
Q as F,
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2416
|
+
gn as G,
|
|
2417
|
+
Oe as H,
|
|
2418
|
+
T as I,
|
|
2419
|
+
z as J,
|
|
2420
|
+
Xe as K,
|
|
2421
|
+
je as L,
|
|
2422
|
+
is as M,
|
|
2423
|
+
Ye as N,
|
|
2355
2424
|
U as O,
|
|
2356
|
-
|
|
2357
|
-
|
|
2425
|
+
fs as P,
|
|
2426
|
+
k as Q,
|
|
2358
2427
|
se as R,
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
gn as f,
|
|
2428
|
+
gs as S,
|
|
2429
|
+
ys as T,
|
|
2430
|
+
ws as U,
|
|
2431
|
+
Hn as V,
|
|
2432
|
+
Es as W,
|
|
2433
|
+
Bs as X,
|
|
2434
|
+
vs as Y,
|
|
2435
|
+
Ts as Z,
|
|
2436
|
+
Is as _,
|
|
2437
|
+
He as a,
|
|
2438
|
+
zn as a0,
|
|
2439
|
+
xn as a1,
|
|
2440
|
+
he as a2,
|
|
2441
|
+
$s as a3,
|
|
2442
|
+
In as a4,
|
|
2443
|
+
pe as a5,
|
|
2444
|
+
De as a6,
|
|
2445
|
+
st as a7,
|
|
2446
|
+
Ns as a8,
|
|
2447
|
+
nt as a9,
|
|
2448
|
+
js as aa,
|
|
2449
|
+
Ks as ab,
|
|
2450
|
+
as as ac,
|
|
2451
|
+
Ws as ad,
|
|
2452
|
+
kn as ae,
|
|
2453
|
+
Sn as af,
|
|
2454
|
+
Cn as ag,
|
|
2455
|
+
Fn as ah,
|
|
2456
|
+
Xs as ai,
|
|
2457
|
+
os as aj,
|
|
2458
|
+
vn as ak,
|
|
2459
|
+
es as al,
|
|
2460
|
+
Pn as am,
|
|
2461
|
+
An as an,
|
|
2462
|
+
qs as ao,
|
|
2463
|
+
yn as ap,
|
|
2464
|
+
Un as aq,
|
|
2465
|
+
$n as ar,
|
|
2466
|
+
P as b,
|
|
2467
|
+
Tn as c,
|
|
2468
|
+
rs as d,
|
|
2469
|
+
M as e,
|
|
2470
|
+
wn as f,
|
|
2403
2471
|
le as g,
|
|
2404
|
-
|
|
2472
|
+
H as h,
|
|
2405
2473
|
q as i,
|
|
2406
2474
|
X as j,
|
|
2407
2475
|
te as k,
|
|
2408
2476
|
G as l,
|
|
2409
2477
|
ee as m,
|
|
2410
2478
|
f as n,
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2479
|
+
En as o,
|
|
2480
|
+
Bt as p,
|
|
2481
|
+
Ls as q,
|
|
2482
|
+
Bn as r,
|
|
2483
|
+
Le as s,
|
|
2484
|
+
L as t,
|
|
2417
2485
|
v as u,
|
|
2418
|
-
|
|
2486
|
+
ts as v,
|
|
2419
2487
|
I as w,
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2488
|
+
At as x,
|
|
2489
|
+
Se as y,
|
|
2490
|
+
Ut as z
|
|
2423
2491
|
};
|
|
2424
|
-
//# sourceMappingURL=constants-
|
|
2492
|
+
//# sourceMappingURL=constants-0GZgavMM.js.map
|