@zoralabs/protocol-deployments 0.4.0-DEV.0 → 0.4.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/.turbo/turbo-build.log +24 -26
- package/CHANGELOG.md +9 -2
- 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/sparks.d.ts +8 -0
- package/dist/generated/sparks.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +14913 -12755
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +1770 -364
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1465 -90
- 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/sparks.ts +12 -4
- package/src/generated/wagmi.ts +1478 -75
- 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,7 @@ __export(src_exports, {
|
|
|
1574
1600
|
callerAndCommenterABI: () => callerAndCommenterABI,
|
|
1575
1601
|
callerAndCommenterAddress: () => callerAndCommenterAddress,
|
|
1576
1602
|
callerAndCommenterConfig: () => callerAndCommenterConfig,
|
|
1603
|
+
coinABI: () => coinABI,
|
|
1577
1604
|
cointagABI: () => cointagABI,
|
|
1578
1605
|
cointagFactoryABI: () => cointagFactoryABI,
|
|
1579
1606
|
cointagFactoryAddress: () => cointagFactoryAddress,
|
|
@@ -1649,6 +1676,9 @@ __export(src_exports, {
|
|
|
1649
1676
|
zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
|
|
1650
1677
|
zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
|
|
1651
1678
|
zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
|
|
1679
|
+
zoraFactoryABI: () => zoraFactoryABI,
|
|
1680
|
+
zoraFactoryAddress: () => zoraFactoryAddress,
|
|
1681
|
+
zoraFactoryConfig: () => zoraFactoryConfig,
|
|
1652
1682
|
zoraMints1155ABI: () => zoraMints1155ABI,
|
|
1653
1683
|
zoraMints1155Address: () => zoraMints1155Address,
|
|
1654
1684
|
zoraMints1155Config: () => zoraMints1155Config,
|
|
@@ -2698,12 +2728,23 @@ var callerAndCommenterConfig = {
|
|
|
2698
2728
|
address: callerAndCommenterAddress,
|
|
2699
2729
|
abi: callerAndCommenterABI
|
|
2700
2730
|
};
|
|
2701
|
-
var
|
|
2731
|
+
var coinABI = [
|
|
2702
2732
|
{
|
|
2703
2733
|
type: "constructor",
|
|
2704
2734
|
inputs: [
|
|
2735
|
+
{
|
|
2736
|
+
name: "_protocolRewardRecipient",
|
|
2737
|
+
internalType: "address",
|
|
2738
|
+
type: "address"
|
|
2739
|
+
},
|
|
2705
2740
|
{ name: "_protocolRewards", internalType: "address", type: "address" },
|
|
2706
|
-
{ name: "_weth", 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" }
|
|
2707
2748
|
],
|
|
2708
2749
|
stateMutability: "nonpayable"
|
|
2709
2750
|
},
|
|
@@ -2711,348 +2752,1435 @@ var cointagABI = [
|
|
|
2711
2752
|
{
|
|
2712
2753
|
type: "function",
|
|
2713
2754
|
inputs: [],
|
|
2714
|
-
name: "
|
|
2715
|
-
outputs: [{ name: "", internalType: "
|
|
2716
|
-
stateMutability: "view"
|
|
2717
|
-
},
|
|
2718
|
-
{
|
|
2719
|
-
type: "function",
|
|
2720
|
-
inputs: [],
|
|
2721
|
-
name: "REQUIRED_OBSERVATION_CARDINALITY",
|
|
2722
|
-
outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
|
|
2755
|
+
name: "DOMAIN_SEPARATOR",
|
|
2756
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
2723
2757
|
stateMutability: "view"
|
|
2724
2758
|
},
|
|
2725
2759
|
{
|
|
2726
2760
|
type: "function",
|
|
2727
2761
|
inputs: [],
|
|
2728
|
-
name: "
|
|
2762
|
+
name: "MAX_TOTAL_SUPPLY",
|
|
2729
2763
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2730
2764
|
stateMutability: "view"
|
|
2731
2765
|
},
|
|
2732
2766
|
{
|
|
2733
2767
|
type: "function",
|
|
2734
2768
|
inputs: [],
|
|
2735
|
-
name: "
|
|
2736
|
-
outputs: [{ name: "", internalType: "
|
|
2769
|
+
name: "MIN_ORDER_SIZE",
|
|
2770
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2737
2771
|
stateMutability: "view"
|
|
2738
2772
|
},
|
|
2739
2773
|
{
|
|
2740
2774
|
type: "function",
|
|
2741
2775
|
inputs: [],
|
|
2742
|
-
name: "
|
|
2743
|
-
outputs: [{ name: "", internalType: "
|
|
2744
|
-
stateMutability: "pure"
|
|
2745
|
-
},
|
|
2746
|
-
{
|
|
2747
|
-
type: "function",
|
|
2748
|
-
inputs: [],
|
|
2749
|
-
name: "creatorRewardRecipient",
|
|
2750
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2776
|
+
name: "PLATFORM_REFERRER_FEE_BPS",
|
|
2777
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2751
2778
|
stateMutability: "view"
|
|
2752
2779
|
},
|
|
2753
2780
|
{
|
|
2754
2781
|
type: "function",
|
|
2755
2782
|
inputs: [],
|
|
2756
|
-
name: "
|
|
2757
|
-
outputs: [],
|
|
2758
|
-
stateMutability: "nonpayable"
|
|
2759
|
-
},
|
|
2760
|
-
{
|
|
2761
|
-
type: "function",
|
|
2762
|
-
inputs: [],
|
|
2763
|
-
name: "erc20",
|
|
2764
|
-
outputs: [
|
|
2765
|
-
{ name: "", internalType: "contract IBurnableERC20", type: "address" }
|
|
2766
|
-
],
|
|
2783
|
+
name: "PROTOCOL_FEE_BPS",
|
|
2784
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2767
2785
|
stateMutability: "view"
|
|
2768
2786
|
},
|
|
2769
2787
|
{
|
|
2770
2788
|
type: "function",
|
|
2771
2789
|
inputs: [],
|
|
2772
|
-
name: "
|
|
2773
|
-
outputs: [
|
|
2774
|
-
{ name: "", internalType: "bool", type: "bool" },
|
|
2775
|
-
{ name: "", internalType: "uint256", type: "uint256" }
|
|
2776
|
-
],
|
|
2790
|
+
name: "TOKEN_CREATOR_FEE_BPS",
|
|
2791
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2777
2792
|
stateMutability: "view"
|
|
2778
2793
|
},
|
|
2779
|
-
{
|
|
2780
|
-
type: "function",
|
|
2781
|
-
inputs: [
|
|
2782
|
-
{
|
|
2783
|
-
name: "_creatorRewardRecipient",
|
|
2784
|
-
internalType: "address",
|
|
2785
|
-
type: "address"
|
|
2786
|
-
},
|
|
2787
|
-
{ name: "_pool", internalType: "address", type: "address" },
|
|
2788
|
-
{
|
|
2789
|
-
name: "_percentageToBuyBurn",
|
|
2790
|
-
internalType: "uint256",
|
|
2791
|
-
type: "uint256"
|
|
2792
|
-
}
|
|
2793
|
-
],
|
|
2794
|
-
name: "initialize",
|
|
2795
|
-
outputs: [],
|
|
2796
|
-
stateMutability: "nonpayable"
|
|
2797
|
-
},
|
|
2798
2794
|
{
|
|
2799
2795
|
type: "function",
|
|
2800
2796
|
inputs: [],
|
|
2801
|
-
name: "
|
|
2797
|
+
name: "TOTAL_FEE_BPS",
|
|
2802
2798
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2803
2799
|
stateMutability: "view"
|
|
2804
2800
|
},
|
|
2805
2801
|
{
|
|
2806
2802
|
type: "function",
|
|
2807
2803
|
inputs: [],
|
|
2808
|
-
name: "
|
|
2809
|
-
outputs: [
|
|
2810
|
-
{ name: "", internalType: "contract IUniswapV3Pool", type: "address" }
|
|
2811
|
-
],
|
|
2804
|
+
name: "TRADE_REFERRER_FEE_BPS",
|
|
2805
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2812
2806
|
stateMutability: "view"
|
|
2813
2807
|
},
|
|
2814
2808
|
{
|
|
2815
2809
|
type: "function",
|
|
2816
2810
|
inputs: [],
|
|
2817
|
-
name: "
|
|
2818
|
-
outputs: [
|
|
2819
|
-
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
2820
|
-
],
|
|
2811
|
+
name: "WETH",
|
|
2812
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2821
2813
|
stateMutability: "view"
|
|
2822
2814
|
},
|
|
2823
2815
|
{
|
|
2824
2816
|
type: "function",
|
|
2825
|
-
inputs: [],
|
|
2826
|
-
name: "
|
|
2817
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2818
|
+
name: "addOwner",
|
|
2827
2819
|
outputs: [],
|
|
2828
2820
|
stateMutability: "nonpayable"
|
|
2829
2821
|
},
|
|
2830
2822
|
{
|
|
2831
2823
|
type: "function",
|
|
2832
2824
|
inputs: [
|
|
2833
|
-
{ name: "
|
|
2834
|
-
{ name: "amount1Delta", internalType: "int256", type: "int256" },
|
|
2835
|
-
{ name: "", internalType: "bytes", type: "bytes" }
|
|
2825
|
+
{ name: "accounts", internalType: "address[]", type: "address[]" }
|
|
2836
2826
|
],
|
|
2837
|
-
name: "
|
|
2827
|
+
name: "addOwners",
|
|
2838
2828
|
outputs: [],
|
|
2839
2829
|
stateMutability: "nonpayable"
|
|
2840
2830
|
},
|
|
2841
2831
|
{
|
|
2842
2832
|
type: "function",
|
|
2843
|
-
inputs: [],
|
|
2844
|
-
name: "weth",
|
|
2845
|
-
outputs: [{ name: "", internalType: "contract IWETH", type: "address" }],
|
|
2846
|
-
stateMutability: "view"
|
|
2847
|
-
},
|
|
2848
|
-
{
|
|
2849
|
-
type: "event",
|
|
2850
|
-
anonymous: false,
|
|
2851
|
-
inputs: [
|
|
2852
|
-
{
|
|
2853
|
-
name: "amountERc20Received",
|
|
2854
|
-
internalType: "uint256",
|
|
2855
|
-
type: "uint256",
|
|
2856
|
-
indexed: false
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
name: "amountERc20Burned",
|
|
2860
|
-
internalType: "uint256",
|
|
2861
|
-
type: "uint256",
|
|
2862
|
-
indexed: false
|
|
2863
|
-
},
|
|
2864
|
-
{
|
|
2865
|
-
name: "amountEthSpent",
|
|
2866
|
-
internalType: "uint256",
|
|
2867
|
-
type: "uint256",
|
|
2868
|
-
indexed: false
|
|
2869
|
-
},
|
|
2870
|
-
{
|
|
2871
|
-
name: "amountEthToCreator",
|
|
2872
|
-
internalType: "uint256",
|
|
2873
|
-
type: "uint256",
|
|
2874
|
-
indexed: false
|
|
2875
|
-
},
|
|
2876
|
-
{
|
|
2877
|
-
name: "totalEthReceived",
|
|
2878
|
-
internalType: "uint256",
|
|
2879
|
-
type: "uint256",
|
|
2880
|
-
indexed: false
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
name: "buyFailureError",
|
|
2884
|
-
internalType: "bytes",
|
|
2885
|
-
type: "bytes",
|
|
2886
|
-
indexed: false
|
|
2887
|
-
},
|
|
2888
|
-
{
|
|
2889
|
-
name: "burnFailureError",
|
|
2890
|
-
internalType: "bytes",
|
|
2891
|
-
type: "bytes",
|
|
2892
|
-
indexed: false
|
|
2893
|
-
}
|
|
2894
|
-
],
|
|
2895
|
-
name: "BuyBurn"
|
|
2896
|
-
},
|
|
2897
|
-
{
|
|
2898
|
-
type: "event",
|
|
2899
|
-
anonymous: false,
|
|
2900
2833
|
inputs: [
|
|
2901
|
-
{
|
|
2902
|
-
|
|
2903
|
-
internalType: "uint64",
|
|
2904
|
-
type: "uint64",
|
|
2905
|
-
indexed: false
|
|
2906
|
-
}
|
|
2834
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
2835
|
+
{ name: "spender", internalType: "address", type: "address" }
|
|
2907
2836
|
],
|
|
2908
|
-
name: "
|
|
2837
|
+
name: "allowance",
|
|
2838
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2839
|
+
stateMutability: "view"
|
|
2909
2840
|
},
|
|
2910
2841
|
{
|
|
2911
|
-
type: "
|
|
2912
|
-
anonymous: false,
|
|
2842
|
+
type: "function",
|
|
2913
2843
|
inputs: [
|
|
2914
|
-
{
|
|
2915
|
-
|
|
2916
|
-
internalType: "address",
|
|
2917
|
-
type: "address",
|
|
2918
|
-
indexed: false
|
|
2919
|
-
},
|
|
2920
|
-
{
|
|
2921
|
-
name: "erc20",
|
|
2922
|
-
internalType: "address",
|
|
2923
|
-
type: "address",
|
|
2924
|
-
indexed: false
|
|
2925
|
-
},
|
|
2926
|
-
{
|
|
2927
|
-
name: "pool",
|
|
2928
|
-
internalType: "address",
|
|
2929
|
-
type: "address",
|
|
2930
|
-
indexed: false
|
|
2931
|
-
},
|
|
2932
|
-
{
|
|
2933
|
-
name: "percentageToBuyBurn",
|
|
2934
|
-
internalType: "uint256",
|
|
2935
|
-
type: "uint256",
|
|
2936
|
-
indexed: false
|
|
2937
|
-
}
|
|
2844
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
2845
|
+
{ name: "value", internalType: "uint256", type: "uint256" }
|
|
2938
2846
|
],
|
|
2939
|
-
name: "
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
type: "error",
|
|
2943
|
-
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
2944
|
-
name: "AddressEmptyCode"
|
|
2847
|
+
name: "approve",
|
|
2848
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
2849
|
+
stateMutability: "nonpayable"
|
|
2945
2850
|
},
|
|
2946
2851
|
{
|
|
2947
|
-
type: "
|
|
2852
|
+
type: "function",
|
|
2948
2853
|
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2949
|
-
name: "
|
|
2854
|
+
name: "balanceOf",
|
|
2855
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2856
|
+
stateMutability: "view"
|
|
2950
2857
|
},
|
|
2951
2858
|
{
|
|
2952
|
-
type: "
|
|
2953
|
-
inputs: [
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
name: "AmountOutLessThanMinimum"
|
|
2859
|
+
type: "function",
|
|
2860
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
2861
|
+
name: "burn",
|
|
2862
|
+
outputs: [],
|
|
2863
|
+
stateMutability: "nonpayable"
|
|
2958
2864
|
},
|
|
2959
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2960
|
-
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
2961
2865
|
{
|
|
2962
|
-
type: "
|
|
2866
|
+
type: "function",
|
|
2963
2867
|
inputs: [
|
|
2964
|
-
{ name: "
|
|
2965
|
-
{ name: "
|
|
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" }
|
|
2966
2873
|
],
|
|
2967
|
-
name: "
|
|
2874
|
+
name: "buy",
|
|
2875
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
2876
|
+
stateMutability: "payable"
|
|
2968
2877
|
},
|
|
2969
|
-
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
2970
|
-
{ type: "error", inputs: [], name: "OnlyPool" },
|
|
2971
|
-
{ type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
|
|
2972
|
-
{
|
|
2973
|
-
type: "error",
|
|
2974
|
-
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
2975
|
-
name: "SafeERC20FailedOperation"
|
|
2976
|
-
}
|
|
2977
|
-
];
|
|
2978
|
-
var cointagFactoryABI = [
|
|
2979
2878
|
{
|
|
2980
|
-
type: "
|
|
2981
|
-
inputs: [
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
internalType: "address",
|
|
2985
|
-
type: "address"
|
|
2986
|
-
}
|
|
2987
|
-
],
|
|
2879
|
+
type: "function",
|
|
2880
|
+
inputs: [{ name: "pushEthRewards", internalType: "bool", type: "bool" }],
|
|
2881
|
+
name: "claimSecondaryRewards",
|
|
2882
|
+
outputs: [],
|
|
2988
2883
|
stateMutability: "nonpayable"
|
|
2989
2884
|
},
|
|
2990
2885
|
{
|
|
2991
2886
|
type: "function",
|
|
2992
2887
|
inputs: [],
|
|
2993
|
-
name: "
|
|
2888
|
+
name: "contractURI",
|
|
2994
2889
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2995
2890
|
stateMutability: "view"
|
|
2996
2891
|
},
|
|
2997
2892
|
{
|
|
2998
2893
|
type: "function",
|
|
2999
2894
|
inputs: [],
|
|
3000
|
-
name: "
|
|
3001
|
-
outputs: [],
|
|
3002
|
-
stateMutability: "
|
|
2895
|
+
name: "contractVersion",
|
|
2896
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2897
|
+
stateMutability: "pure"
|
|
3003
2898
|
},
|
|
3004
2899
|
{
|
|
3005
2900
|
type: "function",
|
|
3006
2901
|
inputs: [],
|
|
3007
|
-
name: "
|
|
2902
|
+
name: "currency",
|
|
3008
2903
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3009
2904
|
stateMutability: "view"
|
|
3010
2905
|
},
|
|
3011
2906
|
{
|
|
3012
2907
|
type: "function",
|
|
3013
2908
|
inputs: [],
|
|
3014
|
-
name: "
|
|
3015
|
-
outputs: [{ name: "", internalType: "
|
|
3016
|
-
stateMutability: "
|
|
3017
|
-
},
|
|
3018
|
-
{
|
|
3019
|
-
type: "function",
|
|
3020
|
-
inputs: [],
|
|
3021
|
-
name: "contractURI",
|
|
3022
|
-
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3023
|
-
stateMutability: "pure"
|
|
2909
|
+
name: "decimals",
|
|
2910
|
+
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
|
|
2911
|
+
stateMutability: "view"
|
|
3024
2912
|
},
|
|
3025
2913
|
{
|
|
3026
2914
|
type: "function",
|
|
3027
2915
|
inputs: [],
|
|
3028
|
-
name: "
|
|
3029
|
-
outputs: [
|
|
3030
|
-
|
|
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 cointagABI = [
|
|
3689
|
+
{
|
|
3690
|
+
type: "constructor",
|
|
3691
|
+
inputs: [
|
|
3692
|
+
{ name: "protocolRewards_", internalType: "address", type: "address" },
|
|
3693
|
+
{ name: "weth_", internalType: "address", type: "address" },
|
|
3694
|
+
{ name: "upgradeGate_", internalType: "address", type: "address" }
|
|
3695
|
+
],
|
|
3696
|
+
stateMutability: "nonpayable"
|
|
3697
|
+
},
|
|
3698
|
+
{ type: "receive", stateMutability: "payable" },
|
|
3699
|
+
{
|
|
3700
|
+
type: "function",
|
|
3701
|
+
inputs: [],
|
|
3702
|
+
name: "PERCENTAGE_BASIS",
|
|
3703
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3704
|
+
stateMutability: "view"
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
type: "function",
|
|
3708
|
+
inputs: [],
|
|
3709
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
3710
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3711
|
+
stateMutability: "view"
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
type: "function",
|
|
3715
|
+
inputs: [],
|
|
3716
|
+
name: "acceptOwnership",
|
|
3717
|
+
outputs: [],
|
|
3718
|
+
stateMutability: "nonpayable"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
type: "function",
|
|
3722
|
+
inputs: [],
|
|
3723
|
+
name: "config",
|
|
3724
|
+
outputs: [
|
|
3725
|
+
{
|
|
3726
|
+
name: "cointagStorage",
|
|
3727
|
+
internalType: "struct ICointag.CointagStorageV1",
|
|
3728
|
+
type: "tuple",
|
|
3729
|
+
components: [
|
|
3730
|
+
{
|
|
3731
|
+
name: "creatorRewardRecipient",
|
|
3732
|
+
internalType: "address",
|
|
3733
|
+
type: "address"
|
|
3734
|
+
},
|
|
3735
|
+
{ name: "erc20", internalType: "contract IERC20", type: "address" },
|
|
3736
|
+
{
|
|
3737
|
+
name: "pool",
|
|
3738
|
+
internalType: "contract IUniswapV3Pool",
|
|
3739
|
+
type: "address"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
name: "percentageToBuyBurn",
|
|
3743
|
+
internalType: "uint256",
|
|
3744
|
+
type: "uint256"
|
|
3745
|
+
}
|
|
3746
|
+
]
|
|
3747
|
+
}
|
|
3748
|
+
],
|
|
3749
|
+
stateMutability: "pure"
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
type: "function",
|
|
3753
|
+
inputs: [],
|
|
3754
|
+
name: "contractName",
|
|
3755
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3756
|
+
stateMutability: "pure"
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
type: "function",
|
|
3760
|
+
inputs: [],
|
|
3761
|
+
name: "contractVersion",
|
|
3762
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3763
|
+
stateMutability: "pure"
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
type: "function",
|
|
3767
|
+
inputs: [],
|
|
3768
|
+
name: "distribute",
|
|
3769
|
+
outputs: [],
|
|
3770
|
+
stateMutability: "nonpayable"
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
type: "function",
|
|
3774
|
+
inputs: [],
|
|
3775
|
+
name: "erc20",
|
|
3776
|
+
outputs: [{ name: "", internalType: "contract IERC20", type: "address" }],
|
|
3777
|
+
stateMutability: "view"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
type: "function",
|
|
3781
|
+
inputs: [],
|
|
3782
|
+
name: "implementation",
|
|
3783
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3784
|
+
stateMutability: "view"
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
type: "function",
|
|
3788
|
+
inputs: [
|
|
3789
|
+
{
|
|
3790
|
+
name: "creatorRewardRecipient",
|
|
3791
|
+
internalType: "address",
|
|
3792
|
+
type: "address"
|
|
3793
|
+
},
|
|
3794
|
+
{ name: "pool_", internalType: "address", type: "address" },
|
|
3795
|
+
{ name: "percentageToBuyBurn", internalType: "uint256", type: "uint256" }
|
|
3796
|
+
],
|
|
3797
|
+
name: "initialize",
|
|
3798
|
+
outputs: [],
|
|
3799
|
+
stateMutability: "nonpayable"
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
type: "function",
|
|
3803
|
+
inputs: [],
|
|
3804
|
+
name: "owner",
|
|
3805
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3806
|
+
stateMutability: "view"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
type: "function",
|
|
3810
|
+
inputs: [],
|
|
3811
|
+
name: "pendingOwner",
|
|
3812
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3813
|
+
stateMutability: "view"
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
type: "function",
|
|
3817
|
+
inputs: [],
|
|
3818
|
+
name: "pool",
|
|
3819
|
+
outputs: [
|
|
3820
|
+
{ name: "", internalType: "contract IUniswapV3Pool", type: "address" }
|
|
3821
|
+
],
|
|
3822
|
+
stateMutability: "view"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
type: "function",
|
|
3826
|
+
inputs: [],
|
|
3827
|
+
name: "protocolRewards",
|
|
3828
|
+
outputs: [
|
|
3829
|
+
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
3830
|
+
],
|
|
3831
|
+
stateMutability: "view"
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
type: "function",
|
|
3835
|
+
inputs: [],
|
|
3836
|
+
name: "proxiableUUID",
|
|
3837
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
3838
|
+
stateMutability: "view"
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
type: "function",
|
|
3842
|
+
inputs: [],
|
|
3843
|
+
name: "pull",
|
|
3844
|
+
outputs: [],
|
|
3845
|
+
stateMutability: "nonpayable"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
type: "function",
|
|
3849
|
+
inputs: [],
|
|
3850
|
+
name: "renounceOwnership",
|
|
3851
|
+
outputs: [],
|
|
3852
|
+
stateMutability: "nonpayable"
|
|
3853
|
+
},
|
|
3854
|
+
{
|
|
3855
|
+
type: "function",
|
|
3856
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
3857
|
+
name: "transferOwnership",
|
|
3858
|
+
outputs: [],
|
|
3859
|
+
stateMutability: "nonpayable"
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
type: "function",
|
|
3863
|
+
inputs: [
|
|
3864
|
+
{ name: "amount0Delta", internalType: "int256", type: "int256" },
|
|
3865
|
+
{ name: "amount1Delta", internalType: "int256", type: "int256" },
|
|
3866
|
+
{ name: "", internalType: "bytes", type: "bytes" }
|
|
3867
|
+
],
|
|
3868
|
+
name: "uniswapV3SwapCallback",
|
|
3869
|
+
outputs: [],
|
|
3870
|
+
stateMutability: "nonpayable"
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
type: "function",
|
|
3874
|
+
inputs: [],
|
|
3875
|
+
name: "upgradeGate",
|
|
3876
|
+
outputs: [
|
|
3877
|
+
{ name: "", internalType: "contract IUpgradeGate", type: "address" }
|
|
3878
|
+
],
|
|
3879
|
+
stateMutability: "view"
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
type: "function",
|
|
3883
|
+
inputs: [
|
|
3884
|
+
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
3885
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
3886
|
+
],
|
|
3887
|
+
name: "upgradeToAndCall",
|
|
3888
|
+
outputs: [],
|
|
3889
|
+
stateMutability: "payable"
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
type: "function",
|
|
3893
|
+
inputs: [],
|
|
3894
|
+
name: "weth",
|
|
3895
|
+
outputs: [{ name: "", internalType: "contract IWETH", type: "address" }],
|
|
3896
|
+
stateMutability: "view"
|
|
3031
3897
|
},
|
|
3032
3898
|
{
|
|
3033
|
-
type: "
|
|
3899
|
+
type: "event",
|
|
3900
|
+
anonymous: false,
|
|
3034
3901
|
inputs: [
|
|
3035
3902
|
{
|
|
3036
|
-
name: "
|
|
3903
|
+
name: "amountERC20Received",
|
|
3904
|
+
internalType: "uint256",
|
|
3905
|
+
type: "uint256",
|
|
3906
|
+
indexed: false
|
|
3907
|
+
},
|
|
3908
|
+
{
|
|
3909
|
+
name: "amountERC20Burned",
|
|
3910
|
+
internalType: "uint256",
|
|
3911
|
+
type: "uint256",
|
|
3912
|
+
indexed: false
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
name: "amountETHSpent",
|
|
3916
|
+
internalType: "uint256",
|
|
3917
|
+
type: "uint256",
|
|
3918
|
+
indexed: false
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
name: "amountETHToCreator",
|
|
3922
|
+
internalType: "uint256",
|
|
3923
|
+
type: "uint256",
|
|
3924
|
+
indexed: false
|
|
3925
|
+
},
|
|
3926
|
+
{
|
|
3927
|
+
name: "totalETHReceived",
|
|
3928
|
+
internalType: "uint256",
|
|
3929
|
+
type: "uint256",
|
|
3930
|
+
indexed: false
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
name: "buyFailureError",
|
|
3934
|
+
internalType: "bytes",
|
|
3935
|
+
type: "bytes",
|
|
3936
|
+
indexed: false
|
|
3937
|
+
},
|
|
3938
|
+
{
|
|
3939
|
+
name: "burnFailureError",
|
|
3940
|
+
internalType: "bytes",
|
|
3941
|
+
type: "bytes",
|
|
3942
|
+
indexed: false
|
|
3943
|
+
}
|
|
3944
|
+
],
|
|
3945
|
+
name: "BuyBurn"
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
type: "event",
|
|
3949
|
+
anonymous: false,
|
|
3950
|
+
inputs: [
|
|
3951
|
+
{
|
|
3952
|
+
name: "amount",
|
|
3953
|
+
internalType: "uint256",
|
|
3954
|
+
type: "uint256",
|
|
3955
|
+
indexed: true
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
name: "sender",
|
|
3037
3959
|
internalType: "address",
|
|
3038
|
-
type: "address"
|
|
3960
|
+
type: "address",
|
|
3961
|
+
indexed: true
|
|
3962
|
+
}
|
|
3963
|
+
],
|
|
3964
|
+
name: "EthReceived"
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
type: "event",
|
|
3968
|
+
anonymous: false,
|
|
3969
|
+
inputs: [
|
|
3970
|
+
{
|
|
3971
|
+
name: "version",
|
|
3972
|
+
internalType: "uint64",
|
|
3973
|
+
type: "uint64",
|
|
3974
|
+
indexed: false
|
|
3975
|
+
}
|
|
3976
|
+
],
|
|
3977
|
+
name: "Initialized"
|
|
3978
|
+
},
|
|
3979
|
+
{
|
|
3980
|
+
type: "event",
|
|
3981
|
+
anonymous: false,
|
|
3982
|
+
inputs: [
|
|
3983
|
+
{
|
|
3984
|
+
name: "creatorRewardRecipient",
|
|
3985
|
+
internalType: "address",
|
|
3986
|
+
type: "address",
|
|
3987
|
+
indexed: false
|
|
3039
3988
|
},
|
|
3040
|
-
{ name: "_pool", internalType: "address", type: "address" },
|
|
3041
3989
|
{
|
|
3042
|
-
name: "
|
|
3990
|
+
name: "erc20",
|
|
3991
|
+
internalType: "address",
|
|
3992
|
+
type: "address",
|
|
3993
|
+
indexed: false
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
name: "pool",
|
|
3997
|
+
internalType: "address",
|
|
3998
|
+
type: "address",
|
|
3999
|
+
indexed: false
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
name: "percentageToBuyBurn",
|
|
3043
4003
|
internalType: "uint256",
|
|
3044
|
-
type: "uint256"
|
|
4004
|
+
type: "uint256",
|
|
4005
|
+
indexed: false
|
|
4006
|
+
}
|
|
4007
|
+
],
|
|
4008
|
+
name: "Initialized"
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
type: "event",
|
|
4012
|
+
anonymous: false,
|
|
4013
|
+
inputs: [
|
|
4014
|
+
{
|
|
4015
|
+
name: "previousOwner",
|
|
4016
|
+
internalType: "address",
|
|
4017
|
+
type: "address",
|
|
4018
|
+
indexed: true
|
|
3045
4019
|
},
|
|
3046
|
-
{
|
|
4020
|
+
{
|
|
4021
|
+
name: "newOwner",
|
|
4022
|
+
internalType: "address",
|
|
4023
|
+
type: "address",
|
|
4024
|
+
indexed: true
|
|
4025
|
+
}
|
|
3047
4026
|
],
|
|
3048
|
-
name: "
|
|
4027
|
+
name: "OwnershipTransferStarted"
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
type: "event",
|
|
4031
|
+
anonymous: false,
|
|
4032
|
+
inputs: [
|
|
4033
|
+
{
|
|
4034
|
+
name: "previousOwner",
|
|
4035
|
+
internalType: "address",
|
|
4036
|
+
type: "address",
|
|
4037
|
+
indexed: true
|
|
4038
|
+
},
|
|
4039
|
+
{
|
|
4040
|
+
name: "newOwner",
|
|
4041
|
+
internalType: "address",
|
|
4042
|
+
type: "address",
|
|
4043
|
+
indexed: true
|
|
4044
|
+
}
|
|
4045
|
+
],
|
|
4046
|
+
name: "OwnershipTransferred"
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
type: "event",
|
|
4050
|
+
anonymous: false,
|
|
4051
|
+
inputs: [
|
|
4052
|
+
{
|
|
4053
|
+
name: "implementation",
|
|
4054
|
+
internalType: "address",
|
|
4055
|
+
type: "address",
|
|
4056
|
+
indexed: true
|
|
4057
|
+
}
|
|
4058
|
+
],
|
|
4059
|
+
name: "Upgraded"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
type: "error",
|
|
4063
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
4064
|
+
name: "AddressEmptyCode"
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
type: "error",
|
|
4068
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
4069
|
+
name: "AddressInsufficientBalance"
|
|
4070
|
+
},
|
|
4071
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
4072
|
+
{
|
|
4073
|
+
type: "error",
|
|
4074
|
+
inputs: [
|
|
4075
|
+
{ name: "implementation", internalType: "address", type: "address" }
|
|
4076
|
+
],
|
|
4077
|
+
name: "ERC1967InvalidImplementation"
|
|
4078
|
+
},
|
|
4079
|
+
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
4080
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
4081
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
4082
|
+
{
|
|
4083
|
+
type: "error",
|
|
4084
|
+
inputs: [
|
|
4085
|
+
{ name: "oldImpl", internalType: "address", type: "address" },
|
|
4086
|
+
{ name: "newImpl", internalType: "address", type: "address" }
|
|
4087
|
+
],
|
|
4088
|
+
name: "InvalidUpgradePath"
|
|
4089
|
+
},
|
|
4090
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
4091
|
+
{ type: "error", inputs: [], name: "NotUniswapV3Pool" },
|
|
4092
|
+
{ type: "error", inputs: [], name: "OnlyPool" },
|
|
4093
|
+
{ type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
|
|
4094
|
+
{
|
|
4095
|
+
type: "error",
|
|
4096
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
4097
|
+
name: "OwnableInvalidOwner"
|
|
4098
|
+
},
|
|
4099
|
+
{
|
|
4100
|
+
type: "error",
|
|
4101
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
4102
|
+
name: "OwnableUnauthorizedAccount"
|
|
4103
|
+
},
|
|
4104
|
+
{ type: "error", inputs: [], name: "PoolNeedsOneTokenToBeWETH" },
|
|
4105
|
+
{
|
|
4106
|
+
type: "error",
|
|
4107
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
4108
|
+
name: "SafeERC20FailedOperation"
|
|
4109
|
+
},
|
|
4110
|
+
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
4111
|
+
{
|
|
4112
|
+
type: "error",
|
|
4113
|
+
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
4114
|
+
name: "UUPSUnsupportedProxiableUUID"
|
|
4115
|
+
},
|
|
4116
|
+
{ type: "error", inputs: [], name: "UnknownBurnError" },
|
|
4117
|
+
{ type: "error", inputs: [], name: "UnknownSwapError" },
|
|
4118
|
+
{
|
|
4119
|
+
type: "error",
|
|
4120
|
+
inputs: [
|
|
4121
|
+
{ name: "current", internalType: "string", type: "string" },
|
|
4122
|
+
{ name: "newName", internalType: "string", type: "string" }
|
|
4123
|
+
],
|
|
4124
|
+
name: "UpgradeToMismatchedContractName"
|
|
4125
|
+
}
|
|
4126
|
+
];
|
|
4127
|
+
var cointagFactoryABI = [
|
|
4128
|
+
{
|
|
4129
|
+
type: "constructor",
|
|
4130
|
+
inputs: [
|
|
4131
|
+
{
|
|
4132
|
+
name: "_cointagImplementation",
|
|
4133
|
+
internalType: "address",
|
|
4134
|
+
type: "address"
|
|
4135
|
+
}
|
|
4136
|
+
],
|
|
4137
|
+
stateMutability: "nonpayable"
|
|
4138
|
+
},
|
|
4139
|
+
{
|
|
4140
|
+
type: "function",
|
|
4141
|
+
inputs: [],
|
|
4142
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
4143
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
4144
|
+
stateMutability: "view"
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
type: "function",
|
|
4148
|
+
inputs: [],
|
|
4149
|
+
name: "acceptOwnership",
|
|
4150
|
+
outputs: [],
|
|
4151
|
+
stateMutability: "nonpayable"
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
type: "function",
|
|
4155
|
+
inputs: [],
|
|
4156
|
+
name: "cointagImplementation",
|
|
3049
4157
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3050
4158
|
stateMutability: "view"
|
|
3051
4159
|
},
|
|
4160
|
+
{
|
|
4161
|
+
type: "function",
|
|
4162
|
+
inputs: [],
|
|
4163
|
+
name: "contractName",
|
|
4164
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
4165
|
+
stateMutability: "pure"
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
type: "function",
|
|
4169
|
+
inputs: [],
|
|
4170
|
+
name: "contractURI",
|
|
4171
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
4172
|
+
stateMutability: "pure"
|
|
4173
|
+
},
|
|
4174
|
+
{
|
|
4175
|
+
type: "function",
|
|
4176
|
+
inputs: [],
|
|
4177
|
+
name: "contractVersion",
|
|
4178
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
4179
|
+
stateMutability: "pure"
|
|
4180
|
+
},
|
|
3052
4181
|
{
|
|
3053
4182
|
type: "function",
|
|
3054
4183
|
inputs: [
|
|
3055
|
-
{ name: "_implementation", internalType: "address", type: "address" },
|
|
3056
4184
|
{
|
|
3057
4185
|
name: "_creatorRewardRecipient",
|
|
3058
4186
|
internalType: "address",
|
|
@@ -3066,7 +4194,7 @@ var cointagFactoryABI = [
|
|
|
3066
4194
|
},
|
|
3067
4195
|
{ name: "saltSource", internalType: "bytes", type: "bytes" }
|
|
3068
4196
|
],
|
|
3069
|
-
name: "
|
|
4197
|
+
name: "getCointagAddress",
|
|
3070
4198
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
3071
4199
|
stateMutability: "view"
|
|
3072
4200
|
},
|
|
@@ -3162,6 +4290,15 @@ var cointagFactoryABI = [
|
|
|
3162
4290
|
outputs: [],
|
|
3163
4291
|
stateMutability: "nonpayable"
|
|
3164
4292
|
},
|
|
4293
|
+
{
|
|
4294
|
+
type: "function",
|
|
4295
|
+
inputs: [],
|
|
4296
|
+
name: "upgradeGate",
|
|
4297
|
+
outputs: [
|
|
4298
|
+
{ name: "", internalType: "contract IUpgradeGate", type: "address" }
|
|
4299
|
+
],
|
|
4300
|
+
stateMutability: "view"
|
|
4301
|
+
},
|
|
3165
4302
|
{
|
|
3166
4303
|
type: "function",
|
|
3167
4304
|
inputs: [
|
|
@@ -3285,7 +4422,6 @@ var cointagFactoryABI = [
|
|
|
3285
4422
|
name: "AddressEmptyCode"
|
|
3286
4423
|
},
|
|
3287
4424
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
3288
|
-
{ type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
|
|
3289
4425
|
{
|
|
3290
4426
|
type: "error",
|
|
3291
4427
|
inputs: [
|
|
@@ -3333,7 +4469,8 @@ var cointagFactoryABI = [
|
|
|
3333
4469
|
var cointagFactoryAddress = {
|
|
3334
4470
|
8453: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
|
|
3335
4471
|
84532: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
|
|
3336
|
-
7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F"
|
|
4472
|
+
7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
|
|
4473
|
+
999999999: "0x77777773Bd7Cccb7E704315CA51245707E19B0DE"
|
|
3337
4474
|
};
|
|
3338
4475
|
var cointagFactoryConfig = {
|
|
3339
4476
|
address: cointagFactoryAddress,
|
|
@@ -6634,7 +7771,7 @@ var secondarySwapABI = [
|
|
|
6634
7771
|
indexed: true
|
|
6635
7772
|
},
|
|
6636
7773
|
{
|
|
6637
|
-
name: "
|
|
7774
|
+
name: "amountETHSold",
|
|
6638
7775
|
internalType: "uint256",
|
|
6639
7776
|
type: "uint256",
|
|
6640
7777
|
indexed: false
|
|
@@ -6714,7 +7851,7 @@ var secondarySwapABI = [
|
|
|
6714
7851
|
indexed: true
|
|
6715
7852
|
},
|
|
6716
7853
|
{
|
|
6717
|
-
name: "
|
|
7854
|
+
name: "amountETHPurchased",
|
|
6718
7855
|
internalType: "uint256",
|
|
6719
7856
|
type: "uint256",
|
|
6720
7857
|
indexed: false
|
|
@@ -11740,6 +12877,259 @@ var zoraCreatorRedeemMinterFactoryConfig = {
|
|
|
11740
12877
|
address: zoraCreatorRedeemMinterFactoryAddress,
|
|
11741
12878
|
abi: zoraCreatorRedeemMinterFactoryABI
|
|
11742
12879
|
};
|
|
12880
|
+
var zoraFactoryABI = [
|
|
12881
|
+
{
|
|
12882
|
+
type: "constructor",
|
|
12883
|
+
inputs: [{ name: "_coinImpl", internalType: "address", type: "address" }],
|
|
12884
|
+
stateMutability: "nonpayable"
|
|
12885
|
+
},
|
|
12886
|
+
{
|
|
12887
|
+
type: "function",
|
|
12888
|
+
inputs: [],
|
|
12889
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
12890
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
12891
|
+
stateMutability: "view"
|
|
12892
|
+
},
|
|
12893
|
+
{
|
|
12894
|
+
type: "function",
|
|
12895
|
+
inputs: [],
|
|
12896
|
+
name: "coinImpl",
|
|
12897
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
12898
|
+
stateMutability: "view"
|
|
12899
|
+
},
|
|
12900
|
+
{
|
|
12901
|
+
type: "function",
|
|
12902
|
+
inputs: [
|
|
12903
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
12904
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
12905
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
12906
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
12907
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
12908
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
12909
|
+
{ name: "currency", internalType: "address", type: "address" },
|
|
12910
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
12911
|
+
{ name: "orderSize", internalType: "uint256", type: "uint256" }
|
|
12912
|
+
],
|
|
12913
|
+
name: "deploy",
|
|
12914
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
12915
|
+
stateMutability: "payable"
|
|
12916
|
+
},
|
|
12917
|
+
{
|
|
12918
|
+
type: "function",
|
|
12919
|
+
inputs: [],
|
|
12920
|
+
name: "implementation",
|
|
12921
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
12922
|
+
stateMutability: "view"
|
|
12923
|
+
},
|
|
12924
|
+
{
|
|
12925
|
+
type: "function",
|
|
12926
|
+
inputs: [
|
|
12927
|
+
{ name: "initialOwner", internalType: "address", type: "address" }
|
|
12928
|
+
],
|
|
12929
|
+
name: "initialize",
|
|
12930
|
+
outputs: [],
|
|
12931
|
+
stateMutability: "nonpayable"
|
|
12932
|
+
},
|
|
12933
|
+
{
|
|
12934
|
+
type: "function",
|
|
12935
|
+
inputs: [],
|
|
12936
|
+
name: "owner",
|
|
12937
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
12938
|
+
stateMutability: "view"
|
|
12939
|
+
},
|
|
12940
|
+
{
|
|
12941
|
+
type: "function",
|
|
12942
|
+
inputs: [],
|
|
12943
|
+
name: "proxiableUUID",
|
|
12944
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
12945
|
+
stateMutability: "view"
|
|
12946
|
+
},
|
|
12947
|
+
{
|
|
12948
|
+
type: "function",
|
|
12949
|
+
inputs: [],
|
|
12950
|
+
name: "renounceOwnership",
|
|
12951
|
+
outputs: [],
|
|
12952
|
+
stateMutability: "nonpayable"
|
|
12953
|
+
},
|
|
12954
|
+
{
|
|
12955
|
+
type: "function",
|
|
12956
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
12957
|
+
name: "transferOwnership",
|
|
12958
|
+
outputs: [],
|
|
12959
|
+
stateMutability: "nonpayable"
|
|
12960
|
+
},
|
|
12961
|
+
{
|
|
12962
|
+
type: "function",
|
|
12963
|
+
inputs: [
|
|
12964
|
+
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
12965
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
12966
|
+
],
|
|
12967
|
+
name: "upgradeToAndCall",
|
|
12968
|
+
outputs: [],
|
|
12969
|
+
stateMutability: "payable"
|
|
12970
|
+
},
|
|
12971
|
+
{
|
|
12972
|
+
type: "event",
|
|
12973
|
+
anonymous: false,
|
|
12974
|
+
inputs: [
|
|
12975
|
+
{
|
|
12976
|
+
name: "deployer",
|
|
12977
|
+
internalType: "address",
|
|
12978
|
+
type: "address",
|
|
12979
|
+
indexed: true
|
|
12980
|
+
},
|
|
12981
|
+
{
|
|
12982
|
+
name: "creator",
|
|
12983
|
+
internalType: "address",
|
|
12984
|
+
type: "address",
|
|
12985
|
+
indexed: true
|
|
12986
|
+
},
|
|
12987
|
+
{
|
|
12988
|
+
name: "payoutRecipient",
|
|
12989
|
+
internalType: "address",
|
|
12990
|
+
type: "address",
|
|
12991
|
+
indexed: true
|
|
12992
|
+
},
|
|
12993
|
+
{
|
|
12994
|
+
name: "platformReferrer",
|
|
12995
|
+
internalType: "address",
|
|
12996
|
+
type: "address",
|
|
12997
|
+
indexed: false
|
|
12998
|
+
},
|
|
12999
|
+
{
|
|
13000
|
+
name: "currency",
|
|
13001
|
+
internalType: "address",
|
|
13002
|
+
type: "address",
|
|
13003
|
+
indexed: false
|
|
13004
|
+
},
|
|
13005
|
+
{
|
|
13006
|
+
name: "tokenURI",
|
|
13007
|
+
internalType: "string",
|
|
13008
|
+
type: "string",
|
|
13009
|
+
indexed: false
|
|
13010
|
+
},
|
|
13011
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
13012
|
+
{
|
|
13013
|
+
name: "symbol",
|
|
13014
|
+
internalType: "string",
|
|
13015
|
+
type: "string",
|
|
13016
|
+
indexed: false
|
|
13017
|
+
},
|
|
13018
|
+
{
|
|
13019
|
+
name: "coin",
|
|
13020
|
+
internalType: "address",
|
|
13021
|
+
type: "address",
|
|
13022
|
+
indexed: false
|
|
13023
|
+
},
|
|
13024
|
+
{
|
|
13025
|
+
name: "pool",
|
|
13026
|
+
internalType: "address",
|
|
13027
|
+
type: "address",
|
|
13028
|
+
indexed: false
|
|
13029
|
+
}
|
|
13030
|
+
],
|
|
13031
|
+
name: "CoinCreated"
|
|
13032
|
+
},
|
|
13033
|
+
{
|
|
13034
|
+
type: "event",
|
|
13035
|
+
anonymous: false,
|
|
13036
|
+
inputs: [
|
|
13037
|
+
{
|
|
13038
|
+
name: "version",
|
|
13039
|
+
internalType: "uint64",
|
|
13040
|
+
type: "uint64",
|
|
13041
|
+
indexed: false
|
|
13042
|
+
}
|
|
13043
|
+
],
|
|
13044
|
+
name: "Initialized"
|
|
13045
|
+
},
|
|
13046
|
+
{
|
|
13047
|
+
type: "event",
|
|
13048
|
+
anonymous: false,
|
|
13049
|
+
inputs: [
|
|
13050
|
+
{
|
|
13051
|
+
name: "previousOwner",
|
|
13052
|
+
internalType: "address",
|
|
13053
|
+
type: "address",
|
|
13054
|
+
indexed: true
|
|
13055
|
+
},
|
|
13056
|
+
{
|
|
13057
|
+
name: "newOwner",
|
|
13058
|
+
internalType: "address",
|
|
13059
|
+
type: "address",
|
|
13060
|
+
indexed: true
|
|
13061
|
+
}
|
|
13062
|
+
],
|
|
13063
|
+
name: "OwnershipTransferred"
|
|
13064
|
+
},
|
|
13065
|
+
{
|
|
13066
|
+
type: "event",
|
|
13067
|
+
anonymous: false,
|
|
13068
|
+
inputs: [
|
|
13069
|
+
{
|
|
13070
|
+
name: "implementation",
|
|
13071
|
+
internalType: "address",
|
|
13072
|
+
type: "address",
|
|
13073
|
+
indexed: true
|
|
13074
|
+
}
|
|
13075
|
+
],
|
|
13076
|
+
name: "Upgraded"
|
|
13077
|
+
},
|
|
13078
|
+
{
|
|
13079
|
+
type: "error",
|
|
13080
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
13081
|
+
name: "AddressEmptyCode"
|
|
13082
|
+
},
|
|
13083
|
+
{
|
|
13084
|
+
type: "error",
|
|
13085
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
13086
|
+
name: "AddressInsufficientBalance"
|
|
13087
|
+
},
|
|
13088
|
+
{ type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
|
|
13089
|
+
{
|
|
13090
|
+
type: "error",
|
|
13091
|
+
inputs: [
|
|
13092
|
+
{ name: "implementation", internalType: "address", type: "address" }
|
|
13093
|
+
],
|
|
13094
|
+
name: "ERC1967InvalidImplementation"
|
|
13095
|
+
},
|
|
13096
|
+
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
13097
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
13098
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
13099
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
13100
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
13101
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
13102
|
+
{
|
|
13103
|
+
type: "error",
|
|
13104
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
13105
|
+
name: "OwnableInvalidOwner"
|
|
13106
|
+
},
|
|
13107
|
+
{
|
|
13108
|
+
type: "error",
|
|
13109
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
13110
|
+
name: "OwnableUnauthorizedAccount"
|
|
13111
|
+
},
|
|
13112
|
+
{ type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
|
|
13113
|
+
{
|
|
13114
|
+
type: "error",
|
|
13115
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
13116
|
+
name: "SafeERC20FailedOperation"
|
|
13117
|
+
},
|
|
13118
|
+
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
13119
|
+
{
|
|
13120
|
+
type: "error",
|
|
13121
|
+
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
13122
|
+
name: "UUPSUnsupportedProxiableUUID"
|
|
13123
|
+
}
|
|
13124
|
+
];
|
|
13125
|
+
var zoraFactoryAddress = {
|
|
13126
|
+
8453: "0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC",
|
|
13127
|
+
84532: "0x1E670515d3A4C75C0860846c0605c84AF0e0db0d"
|
|
13128
|
+
};
|
|
13129
|
+
var zoraFactoryConfig = {
|
|
13130
|
+
address: zoraFactoryAddress,
|
|
13131
|
+
abi: zoraFactoryABI
|
|
13132
|
+
};
|
|
11743
13133
|
var zoraMints1155ABI = [
|
|
11744
13134
|
{ type: "constructor", inputs: [], stateMutability: "nonpayable" },
|
|
11745
13135
|
{
|
|
@@ -14204,6 +15594,8 @@ var zoraSparks1155ABI = [
|
|
|
14204
15594
|
{ type: "error", inputs: [], name: "TokenNotMintable" }
|
|
14205
15595
|
];
|
|
14206
15596
|
var zoraSparks1155Address = {
|
|
15597
|
+
8453: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
|
|
15598
|
+
84532: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
|
|
14207
15599
|
7777777: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
|
|
14208
15600
|
999999999: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D"
|
|
14209
15601
|
};
|
|
@@ -14593,6 +15985,8 @@ var zoraSparksManagerImplABI = [
|
|
|
14593
15985
|
}
|
|
14594
15986
|
];
|
|
14595
15987
|
var zoraSparksManagerImplAddress = {
|
|
15988
|
+
8453: "0x77777779acd6a96C0c57272112921A0b833c38fD",
|
|
15989
|
+
84532: "0x77777779acd6a96C0c57272112921A0b833c38fD",
|
|
14596
15990
|
7777777: "0x77777779acd6a96C0c57272112921A0b833c38fD",
|
|
14597
15991
|
999999999: "0x77777779acd6a96C0c57272112921A0b833c38fD"
|
|
14598
15992
|
};
|
|
@@ -15442,7 +16836,7 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
15442
16836
|
abi: zoraTimedSaleStrategyABI
|
|
15443
16837
|
};
|
|
15444
16838
|
|
|
15445
|
-
// ../../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
|
|
15446
16840
|
init_base();
|
|
15447
16841
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
15448
16842
|
constructor({ value }) {
|
|
@@ -15452,7 +16846,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
15452
16846
|
}
|
|
15453
16847
|
};
|
|
15454
16848
|
|
|
15455
|
-
// ../../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
|
|
15456
16850
|
function parseUnits(value, decimals) {
|
|
15457
16851
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
15458
16852
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -15487,13 +16881,13 @@ function parseUnits(value, decimals) {
|
|
|
15487
16881
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
15488
16882
|
}
|
|
15489
16883
|
|
|
15490
|
-
// ../../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
|
|
15491
16885
|
init_unit();
|
|
15492
16886
|
function parseEther(ether, unit = "wei") {
|
|
15493
16887
|
return parseUnits(ether, etherUnits[unit]);
|
|
15494
16888
|
}
|
|
15495
16889
|
|
|
15496
|
-
// ../../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
|
|
15497
16891
|
init_encodeAbiParameters();
|
|
15498
16892
|
init_getAbiItem();
|
|
15499
16893
|
init_toHex();
|
|
@@ -16286,9 +17680,13 @@ var addresses2 = {
|
|
|
16286
17680
|
SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
|
|
16287
17681
|
},
|
|
16288
17682
|
8453: {
|
|
17683
|
+
MINTS_1155: "0x0000000000000000000000000000000000000000",
|
|
16289
17684
|
MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
|
|
16290
|
-
|
|
16291
|
-
|
|
17685
|
+
MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
|
|
17686
|
+
SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
|
|
17687
|
+
SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
|
|
17688
|
+
SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
|
|
17689
|
+
SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
|
|
16292
17690
|
SPONSORED_SPARKS_SPENDER: "0x6958A8866A40118e2CC21ab4752353835321b5e6",
|
|
16293
17691
|
SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
|
|
16294
17692
|
},
|
|
@@ -16307,9 +17705,13 @@ var addresses2 = {
|
|
|
16307
17705
|
SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
|
|
16308
17706
|
},
|
|
16309
17707
|
84532: {
|
|
17708
|
+
MINTS_1155: "0x0000000000000000000000000000000000000000",
|
|
16310
17709
|
MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
|
|
16311
|
-
|
|
16312
|
-
|
|
17710
|
+
MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
|
|
17711
|
+
SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
|
|
17712
|
+
SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
|
|
17713
|
+
SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
|
|
17714
|
+
SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
|
|
16313
17715
|
SPONSORED_SPARKS_SPENDER: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
|
|
16314
17716
|
SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
|
|
16315
17717
|
},
|
|
@@ -16342,6 +17744,7 @@ var addresses2 = {
|
|
|
16342
17744
|
callerAndCommenterABI,
|
|
16343
17745
|
callerAndCommenterAddress,
|
|
16344
17746
|
callerAndCommenterConfig,
|
|
17747
|
+
coinABI,
|
|
16345
17748
|
cointagABI,
|
|
16346
17749
|
cointagFactoryABI,
|
|
16347
17750
|
cointagFactoryAddress,
|
|
@@ -16417,6 +17820,9 @@ var addresses2 = {
|
|
|
16417
17820
|
zoraCreatorRedeemMinterFactoryABI,
|
|
16418
17821
|
zoraCreatorRedeemMinterFactoryAddress,
|
|
16419
17822
|
zoraCreatorRedeemMinterFactoryConfig,
|
|
17823
|
+
zoraFactoryABI,
|
|
17824
|
+
zoraFactoryAddress,
|
|
17825
|
+
zoraFactoryConfig,
|
|
16420
17826
|
zoraMints1155ABI,
|
|
16421
17827
|
zoraMints1155Address,
|
|
16422
17828
|
zoraMints1155Config,
|