@zoralabs/protocol-deployments 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +24 -26
- package/CHANGELOG.md +13 -0
- package/dist/{_esm-MDYU65PS.js → _esm-HGK3TS7P.js} +36 -36
- package/dist/{_esm-MDYU65PS.js.map → _esm-HGK3TS7P.js.map} +1 -1
- package/dist/{ccip-MZCNL5YG.js → ccip-OTD7W43P.js} +2 -3
- package/dist/{chunk-MCOK75CU.js → chunk-ETO2D44V.js} +284 -183
- package/dist/chunk-ETO2D44V.js.map +1 -0
- package/dist/generated/wagmi.d.ts +1997 -0
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +1372 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1219 -5
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-NJATWSDZ.js → secp256k1-DTX2GS77.js} +592 -432
- package/dist/secp256k1-DTX2GS77.js.map +1 -0
- package/package.json +1 -1
- package/src/generated/wagmi.ts +1235 -0
- package/dist/chunk-FJ2PMLO3.js +0 -132
- package/dist/chunk-FJ2PMLO3.js.map +0 -1
- package/dist/chunk-MCOK75CU.js.map +0 -1
- package/dist/secp256k1-NJATWSDZ.js.map +0 -1
- /package/dist/{ccip-MZCNL5YG.js.map → ccip-OTD7W43P.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -20,18 +20,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
};
|
|
21
21
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
22
|
|
|
23
|
-
// ../../node_modules/.pnpm/abitype@1.0.
|
|
23
|
+
// ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/regex.js
|
|
24
24
|
function execTyped(regex, string) {
|
|
25
25
|
const match = regex.exec(string);
|
|
26
26
|
return match?.groups;
|
|
27
27
|
}
|
|
28
28
|
var init_regex = __esm({
|
|
29
|
-
"../../node_modules/.pnpm/abitype@1.0.
|
|
29
|
+
"../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/regex.js"() {
|
|
30
30
|
"use strict";
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/abitype@1.0.
|
|
34
|
+
// ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
35
35
|
function formatAbiParameter(abiParameter) {
|
|
36
36
|
let type = abiParameter.type;
|
|
37
37
|
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
@@ -58,14 +58,14 @@ function formatAbiParameter(abiParameter) {
|
|
|
58
58
|
}
|
|
59
59
|
var tupleRegex;
|
|
60
60
|
var init_formatAbiParameter = __esm({
|
|
61
|
-
"../../node_modules/.pnpm/abitype@1.0.
|
|
61
|
+
"../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
|
|
62
62
|
"use strict";
|
|
63
63
|
init_regex();
|
|
64
64
|
tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/abitype@1.0.
|
|
68
|
+
// ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
69
69
|
function formatAbiParameters(abiParameters) {
|
|
70
70
|
let params = "";
|
|
71
71
|
const length = abiParameters.length;
|
|
@@ -78,16 +78,16 @@ function formatAbiParameters(abiParameters) {
|
|
|
78
78
|
return params;
|
|
79
79
|
}
|
|
80
80
|
var init_formatAbiParameters = __esm({
|
|
81
|
-
"../../node_modules/.pnpm/abitype@1.0.
|
|
81
|
+
"../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
|
|
82
82
|
"use strict";
|
|
83
83
|
init_formatAbiParameter();
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
// ../../node_modules/.pnpm/abitype@1.0.
|
|
87
|
+
// ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
88
88
|
function formatAbiItem(abiItem) {
|
|
89
89
|
if (abiItem.type === "function")
|
|
90
|
-
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs
|
|
90
|
+
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
91
91
|
if (abiItem.type === "event")
|
|
92
92
|
return `event ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
93
93
|
if (abiItem.type === "error")
|
|
@@ -95,25 +95,25 @@ function formatAbiItem(abiItem) {
|
|
|
95
95
|
if (abiItem.type === "constructor")
|
|
96
96
|
return `constructor(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
97
97
|
if (abiItem.type === "fallback")
|
|
98
|
-
return
|
|
98
|
+
return `fallback() external${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
99
99
|
return "receive() external payable";
|
|
100
100
|
}
|
|
101
101
|
var init_formatAbiItem = __esm({
|
|
102
|
-
"../../node_modules/.pnpm/abitype@1.0.
|
|
102
|
+
"../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
|
|
103
103
|
"use strict";
|
|
104
104
|
init_formatAbiParameters();
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/abitype@1.0.
|
|
108
|
+
// ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/exports/index.js
|
|
109
109
|
var init_exports = __esm({
|
|
110
|
-
"../../node_modules/.pnpm/abitype@1.0.
|
|
110
|
+
"../../node_modules/.pnpm/abitype@1.0.7_typescript@5.7.3_zod@3.24.1/node_modules/abitype/dist/esm/exports/index.js"() {
|
|
111
111
|
"use strict";
|
|
112
112
|
init_formatAbiItem();
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
116
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
117
117
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
118
118
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
119
119
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -131,13 +131,13 @@ function formatAbiParam(param, { includeName }) {
|
|
|
131
131
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
132
132
|
}
|
|
133
133
|
var init_formatAbiItem2 = __esm({
|
|
134
|
-
"../../node_modules/.pnpm/viem@2.
|
|
134
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
|
|
135
135
|
"use strict";
|
|
136
136
|
init_abi();
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
140
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/isHex.js
|
|
141
141
|
function isHex(value, { strict = true } = {}) {
|
|
142
142
|
if (!value)
|
|
143
143
|
return false;
|
|
@@ -146,49 +146,49 @@ function isHex(value, { strict = true } = {}) {
|
|
|
146
146
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
147
147
|
}
|
|
148
148
|
var init_isHex = __esm({
|
|
149
|
-
"../../node_modules/.pnpm/viem@2.
|
|
149
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/isHex.js"() {
|
|
150
150
|
"use strict";
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
154
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/size.js
|
|
155
155
|
function size(value) {
|
|
156
156
|
if (isHex(value, { strict: false }))
|
|
157
157
|
return Math.ceil((value.length - 2) / 2);
|
|
158
158
|
return value.length;
|
|
159
159
|
}
|
|
160
160
|
var init_size = __esm({
|
|
161
|
-
"../../node_modules/.pnpm/viem@2.
|
|
161
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/size.js"() {
|
|
162
162
|
"use strict";
|
|
163
163
|
init_isHex();
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
167
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js
|
|
168
168
|
var version;
|
|
169
169
|
var init_version = __esm({
|
|
170
|
-
"../../node_modules/.pnpm/viem@2.
|
|
170
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js"() {
|
|
171
171
|
"use strict";
|
|
172
|
-
version = "2.
|
|
172
|
+
version = "2.22.12";
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
176
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/base.js
|
|
177
177
|
function walk(err, fn) {
|
|
178
178
|
if (fn?.(err))
|
|
179
179
|
return err;
|
|
180
|
-
if (err && typeof err === "object" && "cause" in err)
|
|
180
|
+
if (err && typeof err === "object" && "cause" in err && err.cause !== void 0)
|
|
181
181
|
return walk(err.cause, fn);
|
|
182
182
|
return fn ? null : err;
|
|
183
183
|
}
|
|
184
184
|
var errorConfig, BaseError;
|
|
185
185
|
var init_base = __esm({
|
|
186
|
-
"../../node_modules/.pnpm/viem@2.
|
|
186
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/base.js"() {
|
|
187
187
|
"use strict";
|
|
188
188
|
init_version();
|
|
189
189
|
errorConfig = {
|
|
190
190
|
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
191
|
-
version
|
|
191
|
+
version: `viem@${version}`
|
|
192
192
|
};
|
|
193
193
|
BaseError = class _BaseError extends Error {
|
|
194
194
|
constructor(shortMessage, args = {}) {
|
|
@@ -264,10 +264,10 @@ var init_base = __esm({
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
267
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js
|
|
268
268
|
var AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
|
|
269
269
|
var init_abi = __esm({
|
|
270
|
-
"../../node_modules/.pnpm/viem@2.
|
|
270
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js"() {
|
|
271
271
|
"use strict";
|
|
272
272
|
init_formatAbiItem2();
|
|
273
273
|
init_size();
|
|
@@ -335,10 +335,10 @@ var init_abi = __esm({
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
338
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js
|
|
339
339
|
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
340
340
|
var init_data = __esm({
|
|
341
|
-
"../../node_modules/.pnpm/viem@2.
|
|
341
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js"() {
|
|
342
342
|
"use strict";
|
|
343
343
|
init_base();
|
|
344
344
|
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
@@ -354,7 +354,7 @@ var init_data = __esm({
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
|
|
357
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
357
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js
|
|
358
358
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
359
359
|
if (typeof hexOrBytes === "string")
|
|
360
360
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -372,33 +372,33 @@ function padHex(hex_, { dir, size: size2 = 32 } = {}) {
|
|
|
372
372
|
});
|
|
373
373
|
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size2 * 2, "0")}`;
|
|
374
374
|
}
|
|
375
|
-
function padBytes(
|
|
375
|
+
function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
|
|
376
376
|
if (size2 === null)
|
|
377
|
-
return
|
|
378
|
-
if (
|
|
377
|
+
return bytes;
|
|
378
|
+
if (bytes.length > size2)
|
|
379
379
|
throw new SizeExceedsPaddingSizeError({
|
|
380
|
-
size:
|
|
380
|
+
size: bytes.length,
|
|
381
381
|
targetSize: size2,
|
|
382
382
|
type: "bytes"
|
|
383
383
|
});
|
|
384
384
|
const paddedBytes = new Uint8Array(size2);
|
|
385
385
|
for (let i = 0; i < size2; i++) {
|
|
386
386
|
const padEnd = dir === "right";
|
|
387
|
-
paddedBytes[padEnd ? i : size2 - i - 1] =
|
|
387
|
+
paddedBytes[padEnd ? i : size2 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
|
|
388
388
|
}
|
|
389
389
|
return paddedBytes;
|
|
390
390
|
}
|
|
391
391
|
var init_pad = __esm({
|
|
392
|
-
"../../node_modules/.pnpm/viem@2.
|
|
392
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js"() {
|
|
393
393
|
"use strict";
|
|
394
394
|
init_data();
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
|
|
398
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
398
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js
|
|
399
399
|
var IntegerOutOfRangeError, SizeOverflowError;
|
|
400
400
|
var init_encoding = __esm({
|
|
401
|
-
"../../node_modules/.pnpm/viem@2.
|
|
401
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js"() {
|
|
402
402
|
"use strict";
|
|
403
403
|
init_base();
|
|
404
404
|
IntegerOutOfRangeError = class extends BaseError {
|
|
@@ -414,7 +414,7 @@ var init_encoding = __esm({
|
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
|
|
417
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
417
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
418
418
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
419
419
|
if (size(hexOrBytes) > size2)
|
|
420
420
|
throw new SizeOverflowError({
|
|
@@ -423,14 +423,14 @@ function assertSize(hexOrBytes, { size: size2 }) {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
var init_fromHex = __esm({
|
|
426
|
-
"../../node_modules/.pnpm/viem@2.
|
|
426
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
|
|
427
427
|
"use strict";
|
|
428
428
|
init_encoding();
|
|
429
429
|
init_size();
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
433
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
434
434
|
function toHex(value, opts = {}) {
|
|
435
435
|
if (typeof value === "number" || typeof value === "bigint")
|
|
436
436
|
return numberToHex(value, opts);
|
|
@@ -495,7 +495,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
495
495
|
}
|
|
496
496
|
var hexes, encoder;
|
|
497
497
|
var init_toHex = __esm({
|
|
498
|
-
"../../node_modules/.pnpm/viem@2.
|
|
498
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js"() {
|
|
499
499
|
"use strict";
|
|
500
500
|
init_encoding();
|
|
501
501
|
init_pad();
|
|
@@ -505,7 +505,7 @@ var init_toHex = __esm({
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
|
|
508
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
508
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
509
509
|
function toBytes(value, opts = {}) {
|
|
510
510
|
if (typeof value === "number" || typeof value === "bigint")
|
|
511
511
|
return numberToBytes(value, opts);
|
|
@@ -516,13 +516,13 @@ function toBytes(value, opts = {}) {
|
|
|
516
516
|
return stringToBytes(value, opts);
|
|
517
517
|
}
|
|
518
518
|
function boolToBytes(value, opts = {}) {
|
|
519
|
-
const
|
|
520
|
-
|
|
519
|
+
const bytes = new Uint8Array(1);
|
|
520
|
+
bytes[0] = Number(value);
|
|
521
521
|
if (typeof opts.size === "number") {
|
|
522
|
-
assertSize(
|
|
523
|
-
return pad(
|
|
522
|
+
assertSize(bytes, { size: opts.size });
|
|
523
|
+
return pad(bytes, { size: opts.size });
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return bytes;
|
|
526
526
|
}
|
|
527
527
|
function charCodeToBase16(char) {
|
|
528
528
|
if (char >= charCodeMap.zero && char <= charCodeMap.nine)
|
|
@@ -543,32 +543,32 @@ function hexToBytes(hex_, opts = {}) {
|
|
|
543
543
|
if (hexString.length % 2)
|
|
544
544
|
hexString = `0${hexString}`;
|
|
545
545
|
const length = hexString.length / 2;
|
|
546
|
-
const
|
|
546
|
+
const bytes = new Uint8Array(length);
|
|
547
547
|
for (let index = 0, j = 0; index < length; index++) {
|
|
548
548
|
const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
|
|
549
549
|
const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
|
|
550
550
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
551
551
|
throw new BaseError(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
552
552
|
}
|
|
553
|
-
|
|
553
|
+
bytes[index] = nibbleLeft * 16 + nibbleRight;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return bytes;
|
|
556
556
|
}
|
|
557
557
|
function numberToBytes(value, opts) {
|
|
558
558
|
const hex = numberToHex(value, opts);
|
|
559
559
|
return hexToBytes(hex);
|
|
560
560
|
}
|
|
561
561
|
function stringToBytes(value, opts = {}) {
|
|
562
|
-
const
|
|
562
|
+
const bytes = encoder2.encode(value);
|
|
563
563
|
if (typeof opts.size === "number") {
|
|
564
|
-
assertSize(
|
|
565
|
-
return pad(
|
|
564
|
+
assertSize(bytes, { size: opts.size });
|
|
565
|
+
return pad(bytes, { dir: "right", size: opts.size });
|
|
566
566
|
}
|
|
567
|
-
return
|
|
567
|
+
return bytes;
|
|
568
568
|
}
|
|
569
569
|
var encoder2, charCodeMap;
|
|
570
570
|
var init_toBytes = __esm({
|
|
571
|
-
"../../node_modules/.pnpm/viem@2.
|
|
571
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
|
|
572
572
|
"use strict";
|
|
573
573
|
init_base();
|
|
574
574
|
init_isHex();
|
|
@@ -587,40 +587,40 @@ var init_toBytes = __esm({
|
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
591
|
-
function
|
|
590
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js
|
|
591
|
+
function anumber(n) {
|
|
592
592
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
593
|
-
throw new Error(
|
|
593
|
+
throw new Error("positive integer expected, got " + n);
|
|
594
594
|
}
|
|
595
595
|
function isBytes(a) {
|
|
596
|
-
return a instanceof Uint8Array || a
|
|
596
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function abytes(b, ...lengths) {
|
|
599
599
|
if (!isBytes(b))
|
|
600
600
|
throw new Error("Uint8Array expected");
|
|
601
601
|
if (lengths.length > 0 && !lengths.includes(b.length))
|
|
602
|
-
throw new Error(
|
|
602
|
+
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b.length);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function aexists(instance, checkFinished = true) {
|
|
605
605
|
if (instance.destroyed)
|
|
606
606
|
throw new Error("Hash instance has been destroyed");
|
|
607
607
|
if (checkFinished && instance.finished)
|
|
608
608
|
throw new Error("Hash#digest() has already been called");
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
|
|
610
|
+
function aoutput(out, instance) {
|
|
611
|
+
abytes(out);
|
|
612
612
|
const min = instance.outputLen;
|
|
613
613
|
if (out.length < min) {
|
|
614
|
-
throw new Error(
|
|
614
|
+
throw new Error("digestInto() expects output buffer of length at least " + min);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
var init_assert = __esm({
|
|
618
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
618
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js"() {
|
|
619
619
|
"use strict";
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
622
|
|
|
623
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
623
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js
|
|
624
624
|
function fromBig(n, le = false) {
|
|
625
625
|
if (le)
|
|
626
626
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
@@ -637,7 +637,7 @@ function split(lst, le = false) {
|
|
|
637
637
|
}
|
|
638
638
|
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
639
639
|
var init_u64 = __esm({
|
|
640
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
640
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js"() {
|
|
641
641
|
"use strict";
|
|
642
642
|
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
643
643
|
_32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -648,7 +648,7 @@ var init_u64 = __esm({
|
|
|
648
648
|
}
|
|
649
649
|
});
|
|
650
650
|
|
|
651
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
651
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js
|
|
652
652
|
function byteSwap32(arr) {
|
|
653
653
|
for (let i = 0; i < arr.length; i++) {
|
|
654
654
|
arr[i] = byteSwap(arr[i]);
|
|
@@ -656,13 +656,13 @@ function byteSwap32(arr) {
|
|
|
656
656
|
}
|
|
657
657
|
function utf8ToBytes(str) {
|
|
658
658
|
if (typeof str !== "string")
|
|
659
|
-
throw new Error(
|
|
659
|
+
throw new Error("utf8ToBytes expected string, got " + typeof str);
|
|
660
660
|
return new Uint8Array(new TextEncoder().encode(str));
|
|
661
661
|
}
|
|
662
662
|
function toBytes2(data) {
|
|
663
663
|
if (typeof data === "string")
|
|
664
664
|
data = utf8ToBytes(data);
|
|
665
|
-
|
|
665
|
+
abytes(data);
|
|
666
666
|
return data;
|
|
667
667
|
}
|
|
668
668
|
function wrapConstructor(hashCons) {
|
|
@@ -681,13 +681,13 @@ function wrapXOFConstructorWithOpts(hashCons) {
|
|
|
681
681
|
hashC.create = (opts) => hashCons(opts);
|
|
682
682
|
return hashC;
|
|
683
683
|
}
|
|
684
|
-
var u32, isLE, byteSwap, Hash
|
|
684
|
+
var u32, isLE, byteSwap, Hash;
|
|
685
685
|
var init_utils = __esm({
|
|
686
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
686
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js"() {
|
|
687
687
|
"use strict";
|
|
688
688
|
init_assert();
|
|
689
689
|
u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
690
|
-
isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
690
|
+
isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
691
691
|
byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
692
692
|
Hash = class {
|
|
693
693
|
// Safe version that clones internal state
|
|
@@ -695,11 +695,10 @@ var init_utils = __esm({
|
|
|
695
695
|
return this._cloneInto();
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
toStr = {}.toString;
|
|
699
698
|
}
|
|
700
699
|
});
|
|
701
700
|
|
|
702
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
701
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js
|
|
703
702
|
function keccakP(s, rounds = 24) {
|
|
704
703
|
const B = new Uint32Array(5 * 2);
|
|
705
704
|
for (let round = 24 - rounds; round < 24; round++) {
|
|
@@ -742,7 +741,7 @@ function keccakP(s, rounds = 24) {
|
|
|
742
741
|
}
|
|
743
742
|
var SHA3_PI, SHA3_ROTL, _SHA3_IOTA, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, gen, sha3_224, sha3_256, sha3_384, sha3_512, keccak_224, keccak_256, keccak_384, keccak_512, genShake, shake128, shake256;
|
|
744
743
|
var init_sha3 = __esm({
|
|
745
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
744
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js"() {
|
|
746
745
|
"use strict";
|
|
747
746
|
init_assert();
|
|
748
747
|
init_u64();
|
|
@@ -784,7 +783,7 @@ var init_sha3 = __esm({
|
|
|
784
783
|
this.posOut = 0;
|
|
785
784
|
this.finished = false;
|
|
786
785
|
this.destroyed = false;
|
|
787
|
-
|
|
786
|
+
anumber(outputLen);
|
|
788
787
|
if (0 >= this.blockLen || this.blockLen >= 200)
|
|
789
788
|
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
790
789
|
this.state = new Uint8Array(200);
|
|
@@ -800,7 +799,7 @@ var init_sha3 = __esm({
|
|
|
800
799
|
this.pos = 0;
|
|
801
800
|
}
|
|
802
801
|
update(data) {
|
|
803
|
-
|
|
802
|
+
aexists(this);
|
|
804
803
|
const { blockLen, state } = this;
|
|
805
804
|
data = toBytes2(data);
|
|
806
805
|
const len = data.length;
|
|
@@ -825,8 +824,8 @@ var init_sha3 = __esm({
|
|
|
825
824
|
this.keccak();
|
|
826
825
|
}
|
|
827
826
|
writeInto(out) {
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
aexists(this, false);
|
|
828
|
+
abytes(out);
|
|
830
829
|
this.finish();
|
|
831
830
|
const bufferOut = this.state;
|
|
832
831
|
const { blockLen } = this;
|
|
@@ -845,12 +844,12 @@ var init_sha3 = __esm({
|
|
|
845
844
|
throw new Error("XOF is not possible for this instance");
|
|
846
845
|
return this.writeInto(out);
|
|
847
846
|
}
|
|
848
|
-
xof(
|
|
849
|
-
|
|
850
|
-
return this.xofInto(new Uint8Array(
|
|
847
|
+
xof(bytes) {
|
|
848
|
+
anumber(bytes);
|
|
849
|
+
return this.xofInto(new Uint8Array(bytes));
|
|
851
850
|
}
|
|
852
851
|
digestInto(out) {
|
|
853
|
-
|
|
852
|
+
aoutput(out, this);
|
|
854
853
|
if (this.finished)
|
|
855
854
|
throw new Error("digest() was already called");
|
|
856
855
|
this.writeInto(out);
|
|
@@ -894,16 +893,16 @@ var init_sha3 = __esm({
|
|
|
894
893
|
}
|
|
895
894
|
});
|
|
896
895
|
|
|
897
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
896
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
898
897
|
function keccak256(value, to_) {
|
|
899
898
|
const to = to_ || "hex";
|
|
900
|
-
const
|
|
899
|
+
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
901
900
|
if (to === "bytes")
|
|
902
|
-
return
|
|
903
|
-
return toHex(
|
|
901
|
+
return bytes;
|
|
902
|
+
return toHex(bytes);
|
|
904
903
|
}
|
|
905
904
|
var init_keccak256 = __esm({
|
|
906
|
-
"../../node_modules/.pnpm/viem@2.
|
|
905
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js"() {
|
|
907
906
|
"use strict";
|
|
908
907
|
init_sha3();
|
|
909
908
|
init_isHex();
|
|
@@ -912,13 +911,13 @@ var init_keccak256 = __esm({
|
|
|
912
911
|
}
|
|
913
912
|
});
|
|
914
913
|
|
|
915
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
914
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
916
915
|
function hashSignature(sig) {
|
|
917
916
|
return hash(sig);
|
|
918
917
|
}
|
|
919
918
|
var hash;
|
|
920
919
|
var init_hashSignature = __esm({
|
|
921
|
-
"../../node_modules/.pnpm/viem@2.
|
|
920
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
|
|
922
921
|
"use strict";
|
|
923
922
|
init_toBytes();
|
|
924
923
|
init_keccak256();
|
|
@@ -926,7 +925,7 @@ var init_hashSignature = __esm({
|
|
|
926
925
|
}
|
|
927
926
|
});
|
|
928
927
|
|
|
929
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
928
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
930
929
|
function normalizeSignature(signature) {
|
|
931
930
|
let active = true;
|
|
932
931
|
let current = "";
|
|
@@ -970,16 +969,16 @@ function normalizeSignature(signature) {
|
|
|
970
969
|
return result;
|
|
971
970
|
}
|
|
972
971
|
var init_normalizeSignature = __esm({
|
|
973
|
-
"../../node_modules/.pnpm/viem@2.
|
|
972
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
|
|
974
973
|
"use strict";
|
|
975
974
|
init_base();
|
|
976
975
|
}
|
|
977
976
|
});
|
|
978
977
|
|
|
979
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
978
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
980
979
|
var toSignature;
|
|
981
980
|
var init_toSignature = __esm({
|
|
982
|
-
"../../node_modules/.pnpm/viem@2.
|
|
981
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js"() {
|
|
983
982
|
"use strict";
|
|
984
983
|
init_exports();
|
|
985
984
|
init_normalizeSignature();
|
|
@@ -994,32 +993,32 @@ var init_toSignature = __esm({
|
|
|
994
993
|
}
|
|
995
994
|
});
|
|
996
995
|
|
|
997
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
996
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
998
997
|
function toSignatureHash(fn) {
|
|
999
998
|
return hashSignature(toSignature(fn));
|
|
1000
999
|
}
|
|
1001
1000
|
var init_toSignatureHash = __esm({
|
|
1002
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1001
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
|
|
1003
1002
|
"use strict";
|
|
1004
1003
|
init_hashSignature();
|
|
1005
1004
|
init_toSignature();
|
|
1006
1005
|
}
|
|
1007
1006
|
});
|
|
1008
1007
|
|
|
1009
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1008
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1010
1009
|
var toEventSelector;
|
|
1011
1010
|
var init_toEventSelector = __esm({
|
|
1012
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1011
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
|
|
1013
1012
|
"use strict";
|
|
1014
1013
|
init_toSignatureHash();
|
|
1015
1014
|
toEventSelector = toSignatureHash;
|
|
1016
1015
|
}
|
|
1017
1016
|
});
|
|
1018
1017
|
|
|
1019
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1018
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js
|
|
1020
1019
|
var InvalidAddressError;
|
|
1021
1020
|
var init_address = __esm({
|
|
1022
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1021
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js"() {
|
|
1023
1022
|
"use strict";
|
|
1024
1023
|
init_base();
|
|
1025
1024
|
InvalidAddressError = class extends BaseError {
|
|
@@ -1036,10 +1035,10 @@ var init_address = __esm({
|
|
|
1036
1035
|
}
|
|
1037
1036
|
});
|
|
1038
1037
|
|
|
1039
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1038
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js
|
|
1040
1039
|
var LruMap;
|
|
1041
1040
|
var init_lru = __esm({
|
|
1042
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1041
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js"() {
|
|
1043
1042
|
"use strict";
|
|
1044
1043
|
LruMap = class extends Map {
|
|
1045
1044
|
constructor(size2) {
|
|
@@ -1073,7 +1072,7 @@ var init_lru = __esm({
|
|
|
1073
1072
|
}
|
|
1074
1073
|
});
|
|
1075
1074
|
|
|
1076
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1075
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1077
1076
|
function checksumAddress(address_, chainId) {
|
|
1078
1077
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1079
1078
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1094,7 +1093,7 @@ function checksumAddress(address_, chainId) {
|
|
|
1094
1093
|
}
|
|
1095
1094
|
var checksumAddressCache;
|
|
1096
1095
|
var init_getAddress = __esm({
|
|
1097
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1096
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js"() {
|
|
1098
1097
|
"use strict";
|
|
1099
1098
|
init_toBytes();
|
|
1100
1099
|
init_keccak256();
|
|
@@ -1103,7 +1102,7 @@ var init_getAddress = __esm({
|
|
|
1103
1102
|
}
|
|
1104
1103
|
});
|
|
1105
1104
|
|
|
1106
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1105
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1107
1106
|
function isAddress(address, options) {
|
|
1108
1107
|
const { strict = true } = options ?? {};
|
|
1109
1108
|
const cacheKey = `${address}.${strict}`;
|
|
@@ -1123,7 +1122,7 @@ function isAddress(address, options) {
|
|
|
1123
1122
|
}
|
|
1124
1123
|
var addressRegex, isAddressCache;
|
|
1125
1124
|
var init_isAddress = __esm({
|
|
1126
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1125
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js"() {
|
|
1127
1126
|
"use strict";
|
|
1128
1127
|
init_lru();
|
|
1129
1128
|
init_getAddress();
|
|
@@ -1132,7 +1131,7 @@ var init_isAddress = __esm({
|
|
|
1132
1131
|
}
|
|
1133
1132
|
});
|
|
1134
1133
|
|
|
1135
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1134
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js
|
|
1136
1135
|
function concat(values) {
|
|
1137
1136
|
if (typeof values[0] === "string")
|
|
1138
1137
|
return concatHex(values);
|
|
@@ -1155,12 +1154,12 @@ function concatHex(values) {
|
|
|
1155
1154
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1156
1155
|
}
|
|
1157
1156
|
var init_concat = __esm({
|
|
1158
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1157
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js"() {
|
|
1159
1158
|
"use strict";
|
|
1160
1159
|
}
|
|
1161
1160
|
});
|
|
1162
1161
|
|
|
1163
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1162
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js
|
|
1164
1163
|
function slice(value, start, end, { strict } = {}) {
|
|
1165
1164
|
if (isHex(value, { strict: false }))
|
|
1166
1165
|
return sliceHex(value, start, end, {
|
|
@@ -1202,7 +1201,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1202
1201
|
return value;
|
|
1203
1202
|
}
|
|
1204
1203
|
var init_slice = __esm({
|
|
1205
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1204
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js"() {
|
|
1206
1205
|
"use strict";
|
|
1207
1206
|
init_data();
|
|
1208
1207
|
init_isHex();
|
|
@@ -1210,7 +1209,16 @@ var init_slice = __esm({
|
|
|
1210
1209
|
}
|
|
1211
1210
|
});
|
|
1212
1211
|
|
|
1213
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1212
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js
|
|
1213
|
+
var integerRegex;
|
|
1214
|
+
var init_regex2 = __esm({
|
|
1215
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js"() {
|
|
1216
|
+
"use strict";
|
|
1217
|
+
integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
|
|
1221
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1214
1222
|
function encodeAbiParameters(params, values) {
|
|
1215
1223
|
if (params.length !== values.length)
|
|
1216
1224
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -1252,7 +1260,11 @@ function prepareParam({ param, value }) {
|
|
|
1252
1260
|
}
|
|
1253
1261
|
if (param.type.startsWith("uint") || param.type.startsWith("int")) {
|
|
1254
1262
|
const signed = param.type.startsWith("int");
|
|
1255
|
-
|
|
1263
|
+
const [, , size2 = "256"] = integerRegex.exec(param.type) ?? [];
|
|
1264
|
+
return encodeNumber(value, {
|
|
1265
|
+
signed,
|
|
1266
|
+
size: Number(size2)
|
|
1267
|
+
});
|
|
1256
1268
|
}
|
|
1257
1269
|
if (param.type.startsWith("bytes")) {
|
|
1258
1270
|
return encodeBytes(value, { param });
|
|
@@ -1355,7 +1367,19 @@ function encodeBool(value) {
|
|
|
1355
1367
|
throw new BaseError(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
1356
1368
|
return { dynamic: false, encoded: padHex(boolToHex(value)) };
|
|
1357
1369
|
}
|
|
1358
|
-
function encodeNumber(value, { signed }) {
|
|
1370
|
+
function encodeNumber(value, { signed, size: size2 = 256 }) {
|
|
1371
|
+
if (typeof size2 === "number") {
|
|
1372
|
+
const max = 2n ** (BigInt(size2) - (signed ? 1n : 0n)) - 1n;
|
|
1373
|
+
const min = signed ? -max - 1n : 0n;
|
|
1374
|
+
if (value > max || value < min)
|
|
1375
|
+
throw new IntegerOutOfRangeError({
|
|
1376
|
+
max: max.toString(),
|
|
1377
|
+
min: min.toString(),
|
|
1378
|
+
signed,
|
|
1379
|
+
size: size2 / 8,
|
|
1380
|
+
value: value.toString()
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1359
1383
|
return {
|
|
1360
1384
|
dynamic: false,
|
|
1361
1385
|
encoded: numberToHex(value, {
|
|
@@ -1408,24 +1432,26 @@ function getArrayComponents(type) {
|
|
|
1408
1432
|
) : void 0;
|
|
1409
1433
|
}
|
|
1410
1434
|
var init_encodeAbiParameters = __esm({
|
|
1411
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1435
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
|
|
1412
1436
|
"use strict";
|
|
1413
1437
|
init_abi();
|
|
1414
1438
|
init_address();
|
|
1415
1439
|
init_base();
|
|
1440
|
+
init_encoding();
|
|
1416
1441
|
init_isAddress();
|
|
1417
1442
|
init_concat();
|
|
1418
1443
|
init_pad();
|
|
1419
1444
|
init_size();
|
|
1420
1445
|
init_slice();
|
|
1421
1446
|
init_toHex();
|
|
1447
|
+
init_regex2();
|
|
1422
1448
|
}
|
|
1423
1449
|
});
|
|
1424
1450
|
|
|
1425
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1451
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1426
1452
|
var toFunctionSelector;
|
|
1427
1453
|
var init_toFunctionSelector = __esm({
|
|
1428
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1454
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
|
|
1429
1455
|
"use strict";
|
|
1430
1456
|
init_slice();
|
|
1431
1457
|
init_toSignatureHash();
|
|
@@ -1433,7 +1459,7 @@ var init_toFunctionSelector = __esm({
|
|
|
1433
1459
|
}
|
|
1434
1460
|
});
|
|
1435
1461
|
|
|
1436
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1462
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1437
1463
|
function getAbiItem(parameters) {
|
|
1438
1464
|
const { abi, args = [], name } = parameters;
|
|
1439
1465
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -1545,7 +1571,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
1545
1571
|
return;
|
|
1546
1572
|
}
|
|
1547
1573
|
var init_getAbiItem = __esm({
|
|
1548
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1574
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
|
|
1549
1575
|
"use strict";
|
|
1550
1576
|
init_abi();
|
|
1551
1577
|
init_isHex();
|
|
@@ -1555,10 +1581,10 @@ var init_getAbiItem = __esm({
|
|
|
1555
1581
|
}
|
|
1556
1582
|
});
|
|
1557
1583
|
|
|
1558
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1584
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js
|
|
1559
1585
|
var etherUnits;
|
|
1560
1586
|
var init_unit = __esm({
|
|
1561
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1587
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js"() {
|
|
1562
1588
|
"use strict";
|
|
1563
1589
|
etherUnits = {
|
|
1564
1590
|
gwei: 9,
|
|
@@ -1574,6 +1600,10 @@ __export(src_exports, {
|
|
|
1574
1600
|
callerAndCommenterABI: () => callerAndCommenterABI,
|
|
1575
1601
|
callerAndCommenterAddress: () => callerAndCommenterAddress,
|
|
1576
1602
|
callerAndCommenterConfig: () => callerAndCommenterConfig,
|
|
1603
|
+
coinABI: () => coinABI,
|
|
1604
|
+
coinFactoryABI: () => coinFactoryABI,
|
|
1605
|
+
coinFactoryAddress: () => coinFactoryAddress,
|
|
1606
|
+
coinFactoryConfig: () => coinFactoryConfig,
|
|
1577
1607
|
cointagABI: () => cointagABI,
|
|
1578
1608
|
cointagFactoryABI: () => cointagFactoryABI,
|
|
1579
1609
|
cointagFactoryAddress: () => cointagFactoryAddress,
|
|
@@ -2698,6 +2728,1216 @@ var callerAndCommenterConfig = {
|
|
|
2698
2728
|
address: callerAndCommenterAddress,
|
|
2699
2729
|
abi: callerAndCommenterABI
|
|
2700
2730
|
};
|
|
2731
|
+
var coinABI = [
|
|
2732
|
+
{
|
|
2733
|
+
type: "constructor",
|
|
2734
|
+
inputs: [
|
|
2735
|
+
{
|
|
2736
|
+
name: "_protocolRewardRecipient",
|
|
2737
|
+
internalType: "address",
|
|
2738
|
+
type: "address"
|
|
2739
|
+
},
|
|
2740
|
+
{ name: "_protocolRewards", internalType: "address", type: "address" },
|
|
2741
|
+
{ name: "_weth", internalType: "address", type: "address" },
|
|
2742
|
+
{
|
|
2743
|
+
name: "_nonfungiblePositionManager",
|
|
2744
|
+
internalType: "address",
|
|
2745
|
+
type: "address"
|
|
2746
|
+
},
|
|
2747
|
+
{ name: "_swapRouter", internalType: "address", type: "address" }
|
|
2748
|
+
],
|
|
2749
|
+
stateMutability: "nonpayable"
|
|
2750
|
+
},
|
|
2751
|
+
{ type: "receive", stateMutability: "payable" },
|
|
2752
|
+
{
|
|
2753
|
+
type: "function",
|
|
2754
|
+
inputs: [],
|
|
2755
|
+
name: "DOMAIN_SEPARATOR",
|
|
2756
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
2757
|
+
stateMutability: "view"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
type: "function",
|
|
2761
|
+
inputs: [],
|
|
2762
|
+
name: "MAX_TOTAL_SUPPLY",
|
|
2763
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2764
|
+
stateMutability: "view"
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
type: "function",
|
|
2768
|
+
inputs: [],
|
|
2769
|
+
name: "MIN_ORDER_SIZE",
|
|
2770
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2771
|
+
stateMutability: "view"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
type: "function",
|
|
2775
|
+
inputs: [],
|
|
2776
|
+
name: "PLATFORM_REFERRER_FEE_BPS",
|
|
2777
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2778
|
+
stateMutability: "view"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
type: "function",
|
|
2782
|
+
inputs: [],
|
|
2783
|
+
name: "PROTOCOL_FEE_BPS",
|
|
2784
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2785
|
+
stateMutability: "view"
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
type: "function",
|
|
2789
|
+
inputs: [],
|
|
2790
|
+
name: "TOKEN_CREATOR_FEE_BPS",
|
|
2791
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2792
|
+
stateMutability: "view"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
type: "function",
|
|
2796
|
+
inputs: [],
|
|
2797
|
+
name: "TOTAL_FEE_BPS",
|
|
2798
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2799
|
+
stateMutability: "view"
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
type: "function",
|
|
2803
|
+
inputs: [],
|
|
2804
|
+
name: "TRADE_REFERRER_FEE_BPS",
|
|
2805
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2806
|
+
stateMutability: "view"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
type: "function",
|
|
2810
|
+
inputs: [],
|
|
2811
|
+
name: "WETH",
|
|
2812
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2813
|
+
stateMutability: "view"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
type: "function",
|
|
2817
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2818
|
+
name: "addOwner",
|
|
2819
|
+
outputs: [],
|
|
2820
|
+
stateMutability: "nonpayable"
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
type: "function",
|
|
2824
|
+
inputs: [
|
|
2825
|
+
{ name: "accounts", internalType: "address[]", type: "address[]" }
|
|
2826
|
+
],
|
|
2827
|
+
name: "addOwners",
|
|
2828
|
+
outputs: [],
|
|
2829
|
+
stateMutability: "nonpayable"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
type: "function",
|
|
2833
|
+
inputs: [
|
|
2834
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
2835
|
+
{ name: "spender", internalType: "address", type: "address" }
|
|
2836
|
+
],
|
|
2837
|
+
name: "allowance",
|
|
2838
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2839
|
+
stateMutability: "view"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
type: "function",
|
|
2843
|
+
inputs: [
|
|
2844
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
2845
|
+
{ name: "value", internalType: "uint256", type: "uint256" }
|
|
2846
|
+
],
|
|
2847
|
+
name: "approve",
|
|
2848
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
2849
|
+
stateMutability: "nonpayable"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
type: "function",
|
|
2853
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2854
|
+
name: "balanceOf",
|
|
2855
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2856
|
+
stateMutability: "view"
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
type: "function",
|
|
2860
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
2861
|
+
name: "burn",
|
|
2862
|
+
outputs: [],
|
|
2863
|
+
stateMutability: "nonpayable"
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
type: "function",
|
|
2867
|
+
inputs: [
|
|
2868
|
+
{ name: "recipient", internalType: "address", type: "address" },
|
|
2869
|
+
{ name: "orderSize", internalType: "uint256", type: "uint256" },
|
|
2870
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" },
|
|
2871
|
+
{ name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
|
|
2872
|
+
{ name: "tradeReferrer", internalType: "address", type: "address" }
|
|
2873
|
+
],
|
|
2874
|
+
name: "buy",
|
|
2875
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2876
|
+
stateMutability: "payable"
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
type: "function",
|
|
2880
|
+
inputs: [{ name: "pushEthRewards", internalType: "bool", type: "bool" }],
|
|
2881
|
+
name: "claimSecondaryRewards",
|
|
2882
|
+
outputs: [],
|
|
2883
|
+
stateMutability: "nonpayable"
|
|
2884
|
+
},
|
|
2885
|
+
{
|
|
2886
|
+
type: "function",
|
|
2887
|
+
inputs: [],
|
|
2888
|
+
name: "contractURI",
|
|
2889
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2890
|
+
stateMutability: "view"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
type: "function",
|
|
2894
|
+
inputs: [],
|
|
2895
|
+
name: "contractVersion",
|
|
2896
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2897
|
+
stateMutability: "pure"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
type: "function",
|
|
2901
|
+
inputs: [],
|
|
2902
|
+
name: "currency",
|
|
2903
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2904
|
+
stateMutability: "view"
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
type: "function",
|
|
2908
|
+
inputs: [],
|
|
2909
|
+
name: "decimals",
|
|
2910
|
+
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
|
|
2911
|
+
stateMutability: "view"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
type: "function",
|
|
2915
|
+
inputs: [],
|
|
2916
|
+
name: "eip712Domain",
|
|
2917
|
+
outputs: [
|
|
2918
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
2919
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
2920
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
2921
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
2922
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
2923
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
2924
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
2925
|
+
],
|
|
2926
|
+
stateMutability: "view"
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
type: "function",
|
|
2930
|
+
inputs: [
|
|
2931
|
+
{ name: "payoutRecipient_", internalType: "address", type: "address" },
|
|
2932
|
+
{ name: "owners_", internalType: "address[]", type: "address[]" },
|
|
2933
|
+
{ name: "tokenURI_", internalType: "string", type: "string" },
|
|
2934
|
+
{ name: "name_", internalType: "string", type: "string" },
|
|
2935
|
+
{ name: "symbol_", internalType: "string", type: "string" },
|
|
2936
|
+
{ name: "platformReferrer_", internalType: "address", type: "address" },
|
|
2937
|
+
{ name: "currency_", internalType: "address", type: "address" },
|
|
2938
|
+
{ name: "tickLower_", internalType: "int24", type: "int24" }
|
|
2939
|
+
],
|
|
2940
|
+
name: "initialize",
|
|
2941
|
+
outputs: [],
|
|
2942
|
+
stateMutability: "nonpayable"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
type: "function",
|
|
2946
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2947
|
+
name: "isOwner",
|
|
2948
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
2949
|
+
stateMutability: "view"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
type: "function",
|
|
2953
|
+
inputs: [],
|
|
2954
|
+
name: "lpTokenId",
|
|
2955
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2956
|
+
stateMutability: "view"
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
type: "function",
|
|
2960
|
+
inputs: [],
|
|
2961
|
+
name: "name",
|
|
2962
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2963
|
+
stateMutability: "view"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
type: "function",
|
|
2967
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
2968
|
+
name: "nonces",
|
|
2969
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2970
|
+
stateMutability: "view"
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
type: "function",
|
|
2974
|
+
inputs: [],
|
|
2975
|
+
name: "nonfungiblePositionManager",
|
|
2976
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2977
|
+
stateMutability: "view"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
type: "function",
|
|
2981
|
+
inputs: [
|
|
2982
|
+
{ name: "", internalType: "address", type: "address" },
|
|
2983
|
+
{ name: "", internalType: "address", type: "address" },
|
|
2984
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
2985
|
+
{ name: "", internalType: "bytes", type: "bytes" }
|
|
2986
|
+
],
|
|
2987
|
+
name: "onERC721Received",
|
|
2988
|
+
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
|
|
2989
|
+
stateMutability: "view"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
type: "function",
|
|
2993
|
+
inputs: [],
|
|
2994
|
+
name: "owners",
|
|
2995
|
+
outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
|
|
2996
|
+
stateMutability: "view"
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
type: "function",
|
|
3000
|
+
inputs: [],
|
|
3001
|
+
name: "payoutRecipient",
|
|
3002
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3003
|
+
stateMutability: "view"
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
type: "function",
|
|
3007
|
+
inputs: [
|
|
3008
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
3009
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
3010
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
3011
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
3012
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
3013
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
3014
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
3015
|
+
],
|
|
3016
|
+
name: "permit",
|
|
3017
|
+
outputs: [],
|
|
3018
|
+
stateMutability: "nonpayable"
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
type: "function",
|
|
3022
|
+
inputs: [],
|
|
3023
|
+
name: "platformReferrer",
|
|
3024
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3025
|
+
stateMutability: "view"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
type: "function",
|
|
3029
|
+
inputs: [],
|
|
3030
|
+
name: "poolAddress",
|
|
3031
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3032
|
+
stateMutability: "view"
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
type: "function",
|
|
3036
|
+
inputs: [],
|
|
3037
|
+
name: "protocolRewardRecipient",
|
|
3038
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3039
|
+
stateMutability: "view"
|
|
3040
|
+
},
|
|
3041
|
+
{
|
|
3042
|
+
type: "function",
|
|
3043
|
+
inputs: [],
|
|
3044
|
+
name: "protocolRewards",
|
|
3045
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3046
|
+
stateMutability: "view"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
type: "function",
|
|
3050
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
3051
|
+
name: "removeOwner",
|
|
3052
|
+
outputs: [],
|
|
3053
|
+
stateMutability: "nonpayable"
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
type: "function",
|
|
3057
|
+
inputs: [
|
|
3058
|
+
{ name: "accounts", internalType: "address[]", type: "address[]" }
|
|
3059
|
+
],
|
|
3060
|
+
name: "removeOwners",
|
|
3061
|
+
outputs: [],
|
|
3062
|
+
stateMutability: "nonpayable"
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
type: "function",
|
|
3066
|
+
inputs: [],
|
|
3067
|
+
name: "revokeOwnership",
|
|
3068
|
+
outputs: [],
|
|
3069
|
+
stateMutability: "nonpayable"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
type: "function",
|
|
3073
|
+
inputs: [
|
|
3074
|
+
{ name: "recipient", internalType: "address", type: "address" },
|
|
3075
|
+
{ name: "orderSize", internalType: "uint256", type: "uint256" },
|
|
3076
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" },
|
|
3077
|
+
{ name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
|
|
3078
|
+
{ name: "tradeReferrer", internalType: "address", type: "address" }
|
|
3079
|
+
],
|
|
3080
|
+
name: "sell",
|
|
3081
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3082
|
+
stateMutability: "nonpayable"
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
type: "function",
|
|
3086
|
+
inputs: [{ name: "newURI", internalType: "string", type: "string" }],
|
|
3087
|
+
name: "setContractURI",
|
|
3088
|
+
outputs: [],
|
|
3089
|
+
stateMutability: "nonpayable"
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
type: "function",
|
|
3093
|
+
inputs: [
|
|
3094
|
+
{ name: "newPayoutRecipient", internalType: "address", type: "address" }
|
|
3095
|
+
],
|
|
3096
|
+
name: "setPayoutRecipient",
|
|
3097
|
+
outputs: [],
|
|
3098
|
+
stateMutability: "nonpayable"
|
|
3099
|
+
},
|
|
3100
|
+
{
|
|
3101
|
+
type: "function",
|
|
3102
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
3103
|
+
name: "supportsInterface",
|
|
3104
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
3105
|
+
stateMutability: "pure"
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
type: "function",
|
|
3109
|
+
inputs: [],
|
|
3110
|
+
name: "swapRouter",
|
|
3111
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3112
|
+
stateMutability: "view"
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
type: "function",
|
|
3116
|
+
inputs: [],
|
|
3117
|
+
name: "symbol",
|
|
3118
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3119
|
+
stateMutability: "view"
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
type: "function",
|
|
3123
|
+
inputs: [],
|
|
3124
|
+
name: "tokenURI",
|
|
3125
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3126
|
+
stateMutability: "view"
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
type: "function",
|
|
3130
|
+
inputs: [],
|
|
3131
|
+
name: "totalSupply",
|
|
3132
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3133
|
+
stateMutability: "view"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
type: "function",
|
|
3137
|
+
inputs: [
|
|
3138
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
3139
|
+
{ name: "value", internalType: "uint256", type: "uint256" }
|
|
3140
|
+
],
|
|
3141
|
+
name: "transfer",
|
|
3142
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
3143
|
+
stateMutability: "nonpayable"
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
type: "function",
|
|
3147
|
+
inputs: [
|
|
3148
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
3149
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
3150
|
+
{ name: "value", internalType: "uint256", type: "uint256" }
|
|
3151
|
+
],
|
|
3152
|
+
name: "transferFrom",
|
|
3153
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
3154
|
+
stateMutability: "nonpayable"
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
type: "function",
|
|
3158
|
+
inputs: [
|
|
3159
|
+
{ name: "amount0Delta", internalType: "int256", type: "int256" },
|
|
3160
|
+
{ name: "amount1Delta", internalType: "int256", type: "int256" },
|
|
3161
|
+
{ name: "", internalType: "bytes", type: "bytes" }
|
|
3162
|
+
],
|
|
3163
|
+
name: "uniswapV3SwapCallback",
|
|
3164
|
+
outputs: [],
|
|
3165
|
+
stateMutability: "nonpayable"
|
|
3166
|
+
},
|
|
3167
|
+
{
|
|
3168
|
+
type: "event",
|
|
3169
|
+
anonymous: false,
|
|
3170
|
+
inputs: [
|
|
3171
|
+
{
|
|
3172
|
+
name: "owner",
|
|
3173
|
+
internalType: "address",
|
|
3174
|
+
type: "address",
|
|
3175
|
+
indexed: true
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
name: "spender",
|
|
3179
|
+
internalType: "address",
|
|
3180
|
+
type: "address",
|
|
3181
|
+
indexed: true
|
|
3182
|
+
},
|
|
3183
|
+
{
|
|
3184
|
+
name: "value",
|
|
3185
|
+
internalType: "uint256",
|
|
3186
|
+
type: "uint256",
|
|
3187
|
+
indexed: false
|
|
3188
|
+
}
|
|
3189
|
+
],
|
|
3190
|
+
name: "Approval"
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
type: "event",
|
|
3194
|
+
anonymous: false,
|
|
3195
|
+
inputs: [
|
|
3196
|
+
{
|
|
3197
|
+
name: "buyer",
|
|
3198
|
+
internalType: "address",
|
|
3199
|
+
type: "address",
|
|
3200
|
+
indexed: true
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
name: "recipient",
|
|
3204
|
+
internalType: "address",
|
|
3205
|
+
type: "address",
|
|
3206
|
+
indexed: true
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
name: "tradeReferrer",
|
|
3210
|
+
internalType: "address",
|
|
3211
|
+
type: "address",
|
|
3212
|
+
indexed: true
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
name: "coinsPurchased",
|
|
3216
|
+
internalType: "uint256",
|
|
3217
|
+
type: "uint256",
|
|
3218
|
+
indexed: false
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
name: "currency",
|
|
3222
|
+
internalType: "address",
|
|
3223
|
+
type: "address",
|
|
3224
|
+
indexed: false
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
name: "amountFee",
|
|
3228
|
+
internalType: "uint256",
|
|
3229
|
+
type: "uint256",
|
|
3230
|
+
indexed: false
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
name: "amountSold",
|
|
3234
|
+
internalType: "uint256",
|
|
3235
|
+
type: "uint256",
|
|
3236
|
+
indexed: false
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
name: "comment",
|
|
3240
|
+
internalType: "string",
|
|
3241
|
+
type: "string",
|
|
3242
|
+
indexed: false
|
|
3243
|
+
}
|
|
3244
|
+
],
|
|
3245
|
+
name: "CoinBuy"
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
type: "event",
|
|
3249
|
+
anonymous: false,
|
|
3250
|
+
inputs: [
|
|
3251
|
+
{
|
|
3252
|
+
name: "creatorPayoutAddress",
|
|
3253
|
+
internalType: "address",
|
|
3254
|
+
type: "address",
|
|
3255
|
+
indexed: true
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
name: "platformReferrer",
|
|
3259
|
+
internalType: "address",
|
|
3260
|
+
type: "address",
|
|
3261
|
+
indexed: true
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
name: "protocolRewardRecipient",
|
|
3265
|
+
internalType: "address",
|
|
3266
|
+
type: "address",
|
|
3267
|
+
indexed: false
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
name: "currency",
|
|
3271
|
+
internalType: "address",
|
|
3272
|
+
type: "address",
|
|
3273
|
+
indexed: false
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
name: "marketRewards",
|
|
3277
|
+
internalType: "struct ICoin.MarketRewards",
|
|
3278
|
+
type: "tuple",
|
|
3279
|
+
components: [
|
|
3280
|
+
{
|
|
3281
|
+
name: "totalAmountCurrency",
|
|
3282
|
+
internalType: "uint256",
|
|
3283
|
+
type: "uint256"
|
|
3284
|
+
},
|
|
3285
|
+
{ name: "totalAmountCoin", internalType: "uint256", type: "uint256" },
|
|
3286
|
+
{
|
|
3287
|
+
name: "creatorPayoutAmountCurrency",
|
|
3288
|
+
internalType: "uint256",
|
|
3289
|
+
type: "uint256"
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
name: "creatorPayoutAmountCoin",
|
|
3293
|
+
internalType: "uint256",
|
|
3294
|
+
type: "uint256"
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
name: "platformReferrerAmountCurrency",
|
|
3298
|
+
internalType: "uint256",
|
|
3299
|
+
type: "uint256"
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
name: "platformReferrerAmountCoin",
|
|
3303
|
+
internalType: "uint256",
|
|
3304
|
+
type: "uint256"
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
name: "protocolAmountCurrency",
|
|
3308
|
+
internalType: "uint256",
|
|
3309
|
+
type: "uint256"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
name: "protocolAmountCoin",
|
|
3313
|
+
internalType: "uint256",
|
|
3314
|
+
type: "uint256"
|
|
3315
|
+
}
|
|
3316
|
+
],
|
|
3317
|
+
indexed: false
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3320
|
+
name: "CoinMarketRewards"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
type: "event",
|
|
3324
|
+
anonymous: false,
|
|
3325
|
+
inputs: [
|
|
3326
|
+
{
|
|
3327
|
+
name: "caller",
|
|
3328
|
+
internalType: "address",
|
|
3329
|
+
type: "address",
|
|
3330
|
+
indexed: true
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
name: "prevRecipient",
|
|
3334
|
+
internalType: "address",
|
|
3335
|
+
type: "address",
|
|
3336
|
+
indexed: true
|
|
3337
|
+
},
|
|
3338
|
+
{
|
|
3339
|
+
name: "newRecipient",
|
|
3340
|
+
internalType: "address",
|
|
3341
|
+
type: "address",
|
|
3342
|
+
indexed: true
|
|
3343
|
+
}
|
|
3344
|
+
],
|
|
3345
|
+
name: "CoinPayoutRecipientUpdated"
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
type: "event",
|
|
3349
|
+
anonymous: false,
|
|
3350
|
+
inputs: [
|
|
3351
|
+
{
|
|
3352
|
+
name: "seller",
|
|
3353
|
+
internalType: "address",
|
|
3354
|
+
type: "address",
|
|
3355
|
+
indexed: true
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
name: "recipient",
|
|
3359
|
+
internalType: "address",
|
|
3360
|
+
type: "address",
|
|
3361
|
+
indexed: true
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
name: "tradeReferrer",
|
|
3365
|
+
internalType: "address",
|
|
3366
|
+
type: "address",
|
|
3367
|
+
indexed: true
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
name: "coinsSold",
|
|
3371
|
+
internalType: "uint256",
|
|
3372
|
+
type: "uint256",
|
|
3373
|
+
indexed: false
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
name: "currency",
|
|
3377
|
+
internalType: "address",
|
|
3378
|
+
type: "address",
|
|
3379
|
+
indexed: false
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
name: "amountFee",
|
|
3383
|
+
internalType: "uint256",
|
|
3384
|
+
type: "uint256",
|
|
3385
|
+
indexed: false
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
name: "amountPurchased",
|
|
3389
|
+
internalType: "uint256",
|
|
3390
|
+
type: "uint256",
|
|
3391
|
+
indexed: false
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
name: "comment",
|
|
3395
|
+
internalType: "string",
|
|
3396
|
+
type: "string",
|
|
3397
|
+
indexed: false
|
|
3398
|
+
}
|
|
3399
|
+
],
|
|
3400
|
+
name: "CoinSell"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
type: "event",
|
|
3404
|
+
anonymous: false,
|
|
3405
|
+
inputs: [
|
|
3406
|
+
{
|
|
3407
|
+
name: "creatorPayoutRecipient",
|
|
3408
|
+
internalType: "address",
|
|
3409
|
+
type: "address",
|
|
3410
|
+
indexed: true
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
name: "platformReferrer",
|
|
3414
|
+
internalType: "address",
|
|
3415
|
+
type: "address",
|
|
3416
|
+
indexed: true
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
name: "tradeReferrer",
|
|
3420
|
+
internalType: "address",
|
|
3421
|
+
type: "address",
|
|
3422
|
+
indexed: true
|
|
3423
|
+
},
|
|
3424
|
+
{
|
|
3425
|
+
name: "protocolRewardRecipient",
|
|
3426
|
+
internalType: "address",
|
|
3427
|
+
type: "address",
|
|
3428
|
+
indexed: false
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
name: "creatorReward",
|
|
3432
|
+
internalType: "uint256",
|
|
3433
|
+
type: "uint256",
|
|
3434
|
+
indexed: false
|
|
3435
|
+
},
|
|
3436
|
+
{
|
|
3437
|
+
name: "platformReferrerReward",
|
|
3438
|
+
internalType: "uint256",
|
|
3439
|
+
type: "uint256",
|
|
3440
|
+
indexed: false
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
name: "traderReferrerReward",
|
|
3444
|
+
internalType: "uint256",
|
|
3445
|
+
type: "uint256",
|
|
3446
|
+
indexed: false
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
name: "protocolReward",
|
|
3450
|
+
internalType: "uint256",
|
|
3451
|
+
type: "uint256",
|
|
3452
|
+
indexed: false
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
name: "currency",
|
|
3456
|
+
internalType: "address",
|
|
3457
|
+
type: "address",
|
|
3458
|
+
indexed: false
|
|
3459
|
+
}
|
|
3460
|
+
],
|
|
3461
|
+
name: "CoinTradeRewards"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
type: "event",
|
|
3465
|
+
anonymous: false,
|
|
3466
|
+
inputs: [
|
|
3467
|
+
{
|
|
3468
|
+
name: "sender",
|
|
3469
|
+
internalType: "address",
|
|
3470
|
+
type: "address",
|
|
3471
|
+
indexed: true
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
name: "recipient",
|
|
3475
|
+
internalType: "address",
|
|
3476
|
+
type: "address",
|
|
3477
|
+
indexed: true
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
name: "amount",
|
|
3481
|
+
internalType: "uint256",
|
|
3482
|
+
type: "uint256",
|
|
3483
|
+
indexed: false
|
|
3484
|
+
},
|
|
3485
|
+
{
|
|
3486
|
+
name: "senderBalance",
|
|
3487
|
+
internalType: "uint256",
|
|
3488
|
+
type: "uint256",
|
|
3489
|
+
indexed: false
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
name: "recipientBalance",
|
|
3493
|
+
internalType: "uint256",
|
|
3494
|
+
type: "uint256",
|
|
3495
|
+
indexed: false
|
|
3496
|
+
}
|
|
3497
|
+
],
|
|
3498
|
+
name: "CoinTransfer"
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
type: "event",
|
|
3502
|
+
anonymous: false,
|
|
3503
|
+
inputs: [
|
|
3504
|
+
{
|
|
3505
|
+
name: "caller",
|
|
3506
|
+
internalType: "address",
|
|
3507
|
+
type: "address",
|
|
3508
|
+
indexed: true
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
name: "newURI",
|
|
3512
|
+
internalType: "string",
|
|
3513
|
+
type: "string",
|
|
3514
|
+
indexed: false
|
|
3515
|
+
},
|
|
3516
|
+
{ name: "name", internalType: "string", type: "string", indexed: false }
|
|
3517
|
+
],
|
|
3518
|
+
name: "ContractMetadataUpdated"
|
|
3519
|
+
},
|
|
3520
|
+
{ type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" },
|
|
3521
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
3522
|
+
{
|
|
3523
|
+
type: "event",
|
|
3524
|
+
anonymous: false,
|
|
3525
|
+
inputs: [
|
|
3526
|
+
{
|
|
3527
|
+
name: "version",
|
|
3528
|
+
internalType: "uint64",
|
|
3529
|
+
type: "uint64",
|
|
3530
|
+
indexed: false
|
|
3531
|
+
}
|
|
3532
|
+
],
|
|
3533
|
+
name: "Initialized"
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
type: "event",
|
|
3537
|
+
anonymous: false,
|
|
3538
|
+
inputs: [
|
|
3539
|
+
{
|
|
3540
|
+
name: "caller",
|
|
3541
|
+
internalType: "address",
|
|
3542
|
+
type: "address",
|
|
3543
|
+
indexed: true
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
name: "prevOwner",
|
|
3547
|
+
internalType: "address",
|
|
3548
|
+
type: "address",
|
|
3549
|
+
indexed: true
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
name: "newOwner",
|
|
3553
|
+
internalType: "address",
|
|
3554
|
+
type: "address",
|
|
3555
|
+
indexed: true
|
|
3556
|
+
}
|
|
3557
|
+
],
|
|
3558
|
+
name: "OwnerUpdated"
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
type: "event",
|
|
3562
|
+
anonymous: false,
|
|
3563
|
+
inputs: [
|
|
3564
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
3565
|
+
{ name: "to", internalType: "address", type: "address", indexed: true },
|
|
3566
|
+
{
|
|
3567
|
+
name: "value",
|
|
3568
|
+
internalType: "uint256",
|
|
3569
|
+
type: "uint256",
|
|
3570
|
+
indexed: false
|
|
3571
|
+
}
|
|
3572
|
+
],
|
|
3573
|
+
name: "Transfer"
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
type: "error",
|
|
3577
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
3578
|
+
name: "AddressEmptyCode"
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
type: "error",
|
|
3582
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
3583
|
+
name: "AddressInsufficientBalance"
|
|
3584
|
+
},
|
|
3585
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
3586
|
+
{ type: "error", inputs: [], name: "AlreadyOwner" },
|
|
3587
|
+
{ type: "error", inputs: [], name: "ECDSAInvalidSignature" },
|
|
3588
|
+
{
|
|
3589
|
+
type: "error",
|
|
3590
|
+
inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
|
|
3591
|
+
name: "ECDSAInvalidSignatureLength"
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
type: "error",
|
|
3595
|
+
inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
|
|
3596
|
+
name: "ECDSAInvalidSignatureS"
|
|
3597
|
+
},
|
|
3598
|
+
{
|
|
3599
|
+
type: "error",
|
|
3600
|
+
inputs: [
|
|
3601
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
3602
|
+
{ name: "allowance", internalType: "uint256", type: "uint256" },
|
|
3603
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
3604
|
+
],
|
|
3605
|
+
name: "ERC20InsufficientAllowance"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
type: "error",
|
|
3609
|
+
inputs: [
|
|
3610
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
3611
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
3612
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
3613
|
+
],
|
|
3614
|
+
name: "ERC20InsufficientBalance"
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
type: "error",
|
|
3618
|
+
inputs: [{ name: "approver", internalType: "address", type: "address" }],
|
|
3619
|
+
name: "ERC20InvalidApprover"
|
|
3620
|
+
},
|
|
3621
|
+
{
|
|
3622
|
+
type: "error",
|
|
3623
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
3624
|
+
name: "ERC20InvalidReceiver"
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
type: "error",
|
|
3628
|
+
inputs: [{ name: "sender", internalType: "address", type: "address" }],
|
|
3629
|
+
name: "ERC20InvalidSender"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
type: "error",
|
|
3633
|
+
inputs: [{ name: "spender", internalType: "address", type: "address" }],
|
|
3634
|
+
name: "ERC20InvalidSpender"
|
|
3635
|
+
},
|
|
3636
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
3637
|
+
{
|
|
3638
|
+
type: "error",
|
|
3639
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
3640
|
+
name: "ERC2612ExpiredSignature"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
type: "error",
|
|
3644
|
+
inputs: [
|
|
3645
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
3646
|
+
{ name: "owner", internalType: "address", type: "address" }
|
|
3647
|
+
],
|
|
3648
|
+
name: "ERC2612InvalidSigner"
|
|
3649
|
+
},
|
|
3650
|
+
{ type: "error", inputs: [], name: "EthAmountMismatch" },
|
|
3651
|
+
{ type: "error", inputs: [], name: "EthAmountTooSmall" },
|
|
3652
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
3653
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
3654
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
3655
|
+
{ type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
|
|
3656
|
+
{ type: "error", inputs: [], name: "InsufficientFunds" },
|
|
3657
|
+
{ type: "error", inputs: [], name: "InsufficientLiquidity" },
|
|
3658
|
+
{
|
|
3659
|
+
type: "error",
|
|
3660
|
+
inputs: [
|
|
3661
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
3662
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
3663
|
+
],
|
|
3664
|
+
name: "InvalidAccountNonce"
|
|
3665
|
+
},
|
|
3666
|
+
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
3667
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
3668
|
+
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
3669
|
+
{ type: "error", inputs: [], name: "InvalidWethLowerTick" },
|
|
3670
|
+
{ type: "error", inputs: [], name: "MarketAlreadyGraduated" },
|
|
3671
|
+
{ type: "error", inputs: [], name: "MarketNotGraduated" },
|
|
3672
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
3673
|
+
{ type: "error", inputs: [], name: "NotOwner" },
|
|
3674
|
+
{ type: "error", inputs: [], name: "OneOwnerRequired" },
|
|
3675
|
+
{ type: "error", inputs: [], name: "OnlyOwner" },
|
|
3676
|
+
{ type: "error", inputs: [], name: "OnlyPool" },
|
|
3677
|
+
{ type: "error", inputs: [], name: "OnlyWeth" },
|
|
3678
|
+
{ type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
|
|
3679
|
+
{ type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
|
|
3680
|
+
{
|
|
3681
|
+
type: "error",
|
|
3682
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
3683
|
+
name: "SafeERC20FailedOperation"
|
|
3684
|
+
},
|
|
3685
|
+
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
3686
|
+
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
|
|
3687
|
+
];
|
|
3688
|
+
var coinFactoryABI = [
|
|
3689
|
+
{
|
|
3690
|
+
type: "constructor",
|
|
3691
|
+
inputs: [{ name: "_coinImpl", internalType: "address", type: "address" }],
|
|
3692
|
+
stateMutability: "nonpayable"
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
type: "function",
|
|
3696
|
+
inputs: [],
|
|
3697
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
3698
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3699
|
+
stateMutability: "view"
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
type: "function",
|
|
3703
|
+
inputs: [],
|
|
3704
|
+
name: "coinImpl",
|
|
3705
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3706
|
+
stateMutability: "view"
|
|
3707
|
+
},
|
|
3708
|
+
{
|
|
3709
|
+
type: "function",
|
|
3710
|
+
inputs: [
|
|
3711
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
3712
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
3713
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
3714
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
3715
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
3716
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
3717
|
+
{ name: "currency", internalType: "address", type: "address" },
|
|
3718
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
3719
|
+
{ name: "orderSize", internalType: "uint256", type: "uint256" }
|
|
3720
|
+
],
|
|
3721
|
+
name: "deploy",
|
|
3722
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3723
|
+
stateMutability: "payable"
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
type: "function",
|
|
3727
|
+
inputs: [],
|
|
3728
|
+
name: "implementation",
|
|
3729
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3730
|
+
stateMutability: "view"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
type: "function",
|
|
3734
|
+
inputs: [
|
|
3735
|
+
{ name: "initialOwner", internalType: "address", type: "address" }
|
|
3736
|
+
],
|
|
3737
|
+
name: "initialize",
|
|
3738
|
+
outputs: [],
|
|
3739
|
+
stateMutability: "nonpayable"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
type: "function",
|
|
3743
|
+
inputs: [],
|
|
3744
|
+
name: "owner",
|
|
3745
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3746
|
+
stateMutability: "view"
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
type: "function",
|
|
3750
|
+
inputs: [],
|
|
3751
|
+
name: "proxiableUUID",
|
|
3752
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
3753
|
+
stateMutability: "view"
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
type: "function",
|
|
3757
|
+
inputs: [],
|
|
3758
|
+
name: "renounceOwnership",
|
|
3759
|
+
outputs: [],
|
|
3760
|
+
stateMutability: "nonpayable"
|
|
3761
|
+
},
|
|
3762
|
+
{
|
|
3763
|
+
type: "function",
|
|
3764
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
3765
|
+
name: "transferOwnership",
|
|
3766
|
+
outputs: [],
|
|
3767
|
+
stateMutability: "nonpayable"
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
type: "function",
|
|
3771
|
+
inputs: [
|
|
3772
|
+
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
3773
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
3774
|
+
],
|
|
3775
|
+
name: "upgradeToAndCall",
|
|
3776
|
+
outputs: [],
|
|
3777
|
+
stateMutability: "payable"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
type: "event",
|
|
3781
|
+
anonymous: false,
|
|
3782
|
+
inputs: [
|
|
3783
|
+
{
|
|
3784
|
+
name: "deployer",
|
|
3785
|
+
internalType: "address",
|
|
3786
|
+
type: "address",
|
|
3787
|
+
indexed: true
|
|
3788
|
+
},
|
|
3789
|
+
{
|
|
3790
|
+
name: "creator",
|
|
3791
|
+
internalType: "address",
|
|
3792
|
+
type: "address",
|
|
3793
|
+
indexed: true
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
name: "payoutRecipient",
|
|
3797
|
+
internalType: "address",
|
|
3798
|
+
type: "address",
|
|
3799
|
+
indexed: true
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
name: "platformReferrer",
|
|
3803
|
+
internalType: "address",
|
|
3804
|
+
type: "address",
|
|
3805
|
+
indexed: false
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
name: "currency",
|
|
3809
|
+
internalType: "address",
|
|
3810
|
+
type: "address",
|
|
3811
|
+
indexed: false
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
name: "tokenURI",
|
|
3815
|
+
internalType: "string",
|
|
3816
|
+
type: "string",
|
|
3817
|
+
indexed: false
|
|
3818
|
+
},
|
|
3819
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
3820
|
+
{
|
|
3821
|
+
name: "symbol",
|
|
3822
|
+
internalType: "string",
|
|
3823
|
+
type: "string",
|
|
3824
|
+
indexed: false
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
name: "coin",
|
|
3828
|
+
internalType: "address",
|
|
3829
|
+
type: "address",
|
|
3830
|
+
indexed: false
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
name: "pool",
|
|
3834
|
+
internalType: "address",
|
|
3835
|
+
type: "address",
|
|
3836
|
+
indexed: false
|
|
3837
|
+
}
|
|
3838
|
+
],
|
|
3839
|
+
name: "CoinCreated"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
type: "event",
|
|
3843
|
+
anonymous: false,
|
|
3844
|
+
inputs: [
|
|
3845
|
+
{
|
|
3846
|
+
name: "version",
|
|
3847
|
+
internalType: "uint64",
|
|
3848
|
+
type: "uint64",
|
|
3849
|
+
indexed: false
|
|
3850
|
+
}
|
|
3851
|
+
],
|
|
3852
|
+
name: "Initialized"
|
|
3853
|
+
},
|
|
3854
|
+
{
|
|
3855
|
+
type: "event",
|
|
3856
|
+
anonymous: false,
|
|
3857
|
+
inputs: [
|
|
3858
|
+
{
|
|
3859
|
+
name: "previousOwner",
|
|
3860
|
+
internalType: "address",
|
|
3861
|
+
type: "address",
|
|
3862
|
+
indexed: true
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
name: "newOwner",
|
|
3866
|
+
internalType: "address",
|
|
3867
|
+
type: "address",
|
|
3868
|
+
indexed: true
|
|
3869
|
+
}
|
|
3870
|
+
],
|
|
3871
|
+
name: "OwnershipTransferred"
|
|
3872
|
+
},
|
|
3873
|
+
{
|
|
3874
|
+
type: "event",
|
|
3875
|
+
anonymous: false,
|
|
3876
|
+
inputs: [
|
|
3877
|
+
{
|
|
3878
|
+
name: "implementation",
|
|
3879
|
+
internalType: "address",
|
|
3880
|
+
type: "address",
|
|
3881
|
+
indexed: true
|
|
3882
|
+
}
|
|
3883
|
+
],
|
|
3884
|
+
name: "Upgraded"
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
type: "error",
|
|
3888
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
3889
|
+
name: "AddressEmptyCode"
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
type: "error",
|
|
3893
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
3894
|
+
name: "AddressInsufficientBalance"
|
|
3895
|
+
},
|
|
3896
|
+
{ type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
|
|
3897
|
+
{
|
|
3898
|
+
type: "error",
|
|
3899
|
+
inputs: [
|
|
3900
|
+
{ name: "implementation", internalType: "address", type: "address" }
|
|
3901
|
+
],
|
|
3902
|
+
name: "ERC1967InvalidImplementation"
|
|
3903
|
+
},
|
|
3904
|
+
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
3905
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
3906
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
3907
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
3908
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
3909
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
3910
|
+
{
|
|
3911
|
+
type: "error",
|
|
3912
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
3913
|
+
name: "OwnableInvalidOwner"
|
|
3914
|
+
},
|
|
3915
|
+
{
|
|
3916
|
+
type: "error",
|
|
3917
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
3918
|
+
name: "OwnableUnauthorizedAccount"
|
|
3919
|
+
},
|
|
3920
|
+
{ type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
|
|
3921
|
+
{
|
|
3922
|
+
type: "error",
|
|
3923
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
3924
|
+
name: "SafeERC20FailedOperation"
|
|
3925
|
+
},
|
|
3926
|
+
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
3927
|
+
{
|
|
3928
|
+
type: "error",
|
|
3929
|
+
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
3930
|
+
name: "UUPSUnsupportedProxiableUUID"
|
|
3931
|
+
}
|
|
3932
|
+
];
|
|
3933
|
+
var coinFactoryAddress = {
|
|
3934
|
+
8453: "0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC",
|
|
3935
|
+
84532: "0x1E670515d3A4C75C0860846c0605c84AF0e0db0d"
|
|
3936
|
+
};
|
|
3937
|
+
var coinFactoryConfig = {
|
|
3938
|
+
address: coinFactoryAddress,
|
|
3939
|
+
abi: coinFactoryABI
|
|
3940
|
+
};
|
|
2701
3941
|
var cointagABI = [
|
|
2702
3942
|
{
|
|
2703
3943
|
type: "constructor",
|
|
@@ -3101,6 +4341,7 @@ var cointagABI = [
|
|
|
3101
4341
|
name: "InvalidUpgradePath"
|
|
3102
4342
|
},
|
|
3103
4343
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
4344
|
+
{ type: "error", inputs: [], name: "NotUniswapV3Pool" },
|
|
3104
4345
|
{ type: "error", inputs: [], name: "OnlyPool" },
|
|
3105
4346
|
{ type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
|
|
3106
4347
|
{
|
|
@@ -15595,7 +16836,7 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
15595
16836
|
abi: zoraTimedSaleStrategyABI
|
|
15596
16837
|
};
|
|
15597
16838
|
|
|
15598
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
16839
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
|
|
15599
16840
|
init_base();
|
|
15600
16841
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
15601
16842
|
constructor({ value }) {
|
|
@@ -15605,7 +16846,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
15605
16846
|
}
|
|
15606
16847
|
};
|
|
15607
16848
|
|
|
15608
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
16849
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
15609
16850
|
function parseUnits(value, decimals) {
|
|
15610
16851
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
15611
16852
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -15640,13 +16881,13 @@ function parseUnits(value, decimals) {
|
|
|
15640
16881
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
15641
16882
|
}
|
|
15642
16883
|
|
|
15643
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
16884
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
15644
16885
|
init_unit();
|
|
15645
16886
|
function parseEther(ether, unit = "wei") {
|
|
15646
16887
|
return parseUnits(ether, etherUnits[unit]);
|
|
15647
16888
|
}
|
|
15648
16889
|
|
|
15649
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
16890
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.7.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/index.js
|
|
15650
16891
|
init_encodeAbiParameters();
|
|
15651
16892
|
init_getAbiItem();
|
|
15652
16893
|
init_toHex();
|
|
@@ -16503,6 +17744,10 @@ var addresses2 = {
|
|
|
16503
17744
|
callerAndCommenterABI,
|
|
16504
17745
|
callerAndCommenterAddress,
|
|
16505
17746
|
callerAndCommenterConfig,
|
|
17747
|
+
coinABI,
|
|
17748
|
+
coinFactoryABI,
|
|
17749
|
+
coinFactoryAddress,
|
|
17750
|
+
coinFactoryConfig,
|
|
16506
17751
|
cointagABI,
|
|
16507
17752
|
cointagFactoryABI,
|
|
16508
17753
|
cointagFactoryAddress,
|