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