@zoralabs/protocol-deployments 0.3.5-COMMENTS.2 → 0.3.5
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 +48 -48
- package/CHANGELOG.md +2 -18
- package/dist/{_esm-KB2T7G46.js → _esm-JXHAY2EM.js} +192 -85
- package/dist/_esm-JXHAY2EM.js.map +1 -0
- package/{package/dist/ccip-42FQPB7J.js → dist/ccip-E7SRWW2U.js} +3 -3
- package/{package/dist/chunk-YMRS2KON.js → dist/chunk-BKKE6NTH.js} +332 -453
- package/dist/chunk-BKKE6NTH.js.map +1 -0
- package/dist/{chunk-5JV63AHR.js → chunk-FJ2PMLO3.js} +8 -5
- package/dist/chunk-FJ2PMLO3.js.map +1 -0
- package/dist/generated/wagmi.d.ts +131 -3118
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +285 -1507
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1152
- package/dist/index.js.map +1 -1
- package/{package/package/dist/secp256k1-5CEPNAX3.js → dist/secp256k1-NJATWSDZ.js} +402 -251
- package/dist/secp256k1-NJATWSDZ.js.map +1 -0
- package/dist/typedData.d.ts +1 -137
- package/dist/typedData.d.ts.map +1 -1
- package/dist/types.d.ts +0 -21
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/generated/wagmi.ts +130 -1120
- package/src/typedData.ts +0 -133
- package/src/types.ts +0 -42
- package/dist/_esm-KB2T7G46.js.map +0 -1
- package/dist/ccip-TLVKUNHE.js +0 -15
- package/dist/chunk-5JV63AHR.js.map +0 -1
- package/dist/chunk-IB365BT5.js +0 -3957
- package/dist/chunk-IB365BT5.js.map +0 -1
- package/dist/secp256k1-5CEPNAX3.js +0 -2244
- package/dist/secp256k1-5CEPNAX3.js.map +0 -1
- package/json/1155.json +0 -212
- package/json/mints.json +0 -46
- package/package/.turbo/turbo-build.log +0 -48
- package/package/dist/_esm-KB2T7G46.js +0 -3923
- package/package/dist/_esm-KB2T7G46.js.map +0 -1
- package/package/dist/ccip-42FQPB7J.js.map +0 -1
- package/package/dist/chunk-3EJPJMEH.js +0 -44
- package/package/dist/chunk-3EJPJMEH.js.map +0 -1
- package/package/dist/chunk-5JV63AHR.js +0 -129
- package/package/dist/chunk-5JV63AHR.js.map +0 -1
- package/package/dist/chunk-YMRS2KON.js.map +0 -1
- package/package/dist/encoding.d.ts +0 -15
- package/package/dist/encoding.d.ts.map +0 -1
- package/package/dist/generated/1155.d.ts +0 -232
- package/package/dist/generated/1155.d.ts.map +0 -1
- package/package/dist/generated/sparks.d.ts +0 -85
- package/package/dist/generated/sparks.d.ts.map +0 -1
- package/package/dist/generated/wagmi.d.ts +0 -27548
- package/package/dist/generated/wagmi.d.ts.map +0 -1
- package/package/dist/index.cjs +0 -12957
- package/package/dist/index.cjs.map +0 -1
- package/package/dist/index.d.ts +0 -7
- package/package/dist/index.d.ts.map +0 -1
- package/package/dist/index.js +0 -11268
- package/package/dist/index.js.map +0 -1
- package/package/dist/secp256k1-5CEPNAX3.js +0 -2244
- package/package/dist/secp256k1-5CEPNAX3.js.map +0 -1
- package/package/dist/typedData.d.ts +0 -234
- package/package/dist/typedData.d.ts.map +0 -1
- package/package/dist/types.d.ts +0 -45
- package/package/dist/types.d.ts.map +0 -1
- package/package/package/.turbo/turbo-build.log +0 -48
- package/package/package/dist/_esm-KB2T7G46.js +0 -3923
- package/package/package/dist/_esm-KB2T7G46.js.map +0 -1
- package/package/package/dist/ccip-42FQPB7J.js +0 -15
- package/package/package/dist/ccip-42FQPB7J.js.map +0 -1
- package/package/package/dist/chunk-3EJPJMEH.js +0 -44
- package/package/package/dist/chunk-3EJPJMEH.js.map +0 -1
- package/package/package/dist/chunk-5JV63AHR.js +0 -129
- package/package/package/dist/chunk-5JV63AHR.js.map +0 -1
- package/package/package/dist/chunk-YMRS2KON.js +0 -3956
- package/package/package/dist/chunk-YMRS2KON.js.map +0 -1
- package/package/package/dist/encoding.d.ts +0 -15
- package/package/package/dist/encoding.d.ts.map +0 -1
- package/package/package/dist/generated/1155.d.ts +0 -232
- package/package/package/dist/generated/1155.d.ts.map +0 -1
- package/package/package/dist/generated/sparks.d.ts +0 -85
- package/package/package/dist/generated/sparks.d.ts.map +0 -1
- package/package/package/dist/generated/wagmi.d.ts +0 -27548
- package/package/package/dist/generated/wagmi.d.ts.map +0 -1
- package/package/package/dist/index.cjs +0 -12957
- package/package/package/dist/index.cjs.map +0 -1
- package/package/package/dist/index.d.ts +0 -7
- package/package/package/dist/index.d.ts.map +0 -1
- package/package/package/dist/index.js +0 -11268
- package/package/package/dist/index.js.map +0 -1
- package/package/package/dist/secp256k1-5CEPNAX3.js.map +0 -1
- package/package/package/dist/typedData.d.ts +0 -234
- package/package/package/dist/typedData.d.ts.map +0 -1
- package/package/package/dist/types.d.ts +0 -45
- package/package/package/dist/types.d.ts.map +0 -1
- /package/dist/{ccip-TLVKUNHE.js.map → ccip-E7SRWW2U.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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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,13 +78,13 @@ 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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
88
88
|
function formatAbiItem(abiItem) {
|
|
89
89
|
if (abiItem.type === "function")
|
|
90
90
|
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
@@ -99,21 +99,21 @@ function formatAbiItem(abiItem) {
|
|
|
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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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.6_typescript@5.5.4_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js
|
|
141
141
|
function isHex(value, { strict = true } = {}) {
|
|
142
142
|
if (!value)
|
|
143
143
|
return false;
|
|
@@ -146,44 +146,34 @@ 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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js"() {
|
|
171
171
|
"use strict";
|
|
172
|
-
version = "2.
|
|
172
|
+
version = "2.21.21";
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
177
|
-
var getVersion;
|
|
178
|
-
var init_utils = __esm({
|
|
179
|
-
"../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/utils.js"() {
|
|
180
|
-
"use strict";
|
|
181
|
-
init_version();
|
|
182
|
-
getVersion = () => `viem@${version}`;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js
|
|
176
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js
|
|
187
177
|
function walk(err, fn) {
|
|
188
178
|
if (fn?.(err))
|
|
189
179
|
return err;
|
|
@@ -191,14 +181,39 @@ function walk(err, fn) {
|
|
|
191
181
|
return walk(err.cause, fn);
|
|
192
182
|
return fn ? null : err;
|
|
193
183
|
}
|
|
194
|
-
var BaseError;
|
|
184
|
+
var errorConfig, BaseError;
|
|
195
185
|
var init_base = __esm({
|
|
196
|
-
"../../node_modules/.pnpm/viem@2.
|
|
186
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js"() {
|
|
197
187
|
"use strict";
|
|
198
|
-
|
|
188
|
+
init_version();
|
|
189
|
+
errorConfig = {
|
|
190
|
+
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
191
|
+
version
|
|
192
|
+
};
|
|
199
193
|
BaseError = class _BaseError extends Error {
|
|
200
194
|
constructor(shortMessage, args = {}) {
|
|
201
|
-
|
|
195
|
+
const details = (() => {
|
|
196
|
+
if (args.cause instanceof _BaseError)
|
|
197
|
+
return args.cause.details;
|
|
198
|
+
if (args.cause?.message)
|
|
199
|
+
return args.cause.message;
|
|
200
|
+
return args.details;
|
|
201
|
+
})();
|
|
202
|
+
const docsPath = (() => {
|
|
203
|
+
if (args.cause instanceof _BaseError)
|
|
204
|
+
return args.cause.docsPath || args.docsPath;
|
|
205
|
+
return args.docsPath;
|
|
206
|
+
})();
|
|
207
|
+
const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
|
|
208
|
+
const message = [
|
|
209
|
+
shortMessage || "An error occurred.",
|
|
210
|
+
"",
|
|
211
|
+
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
212
|
+
...docsUrl ? [`Docs: ${docsUrl}`] : [],
|
|
213
|
+
...details ? [`Details: ${details}`] : [],
|
|
214
|
+
...errorConfig.version ? [`Version: ${errorConfig.version}`] : []
|
|
215
|
+
].join("\n");
|
|
216
|
+
super(message, args.cause ? { cause: args.cause } : void 0);
|
|
202
217
|
Object.defineProperty(this, "details", {
|
|
203
218
|
enumerable: true,
|
|
204
219
|
configurable: true,
|
|
@@ -223,36 +238,24 @@ var init_base = __esm({
|
|
|
223
238
|
writable: true,
|
|
224
239
|
value: void 0
|
|
225
240
|
});
|
|
226
|
-
Object.defineProperty(this, "
|
|
241
|
+
Object.defineProperty(this, "version", {
|
|
227
242
|
enumerable: true,
|
|
228
243
|
configurable: true,
|
|
229
244
|
writable: true,
|
|
230
|
-
value:
|
|
245
|
+
value: void 0
|
|
231
246
|
});
|
|
232
|
-
Object.defineProperty(this, "
|
|
247
|
+
Object.defineProperty(this, "name", {
|
|
233
248
|
enumerable: true,
|
|
234
249
|
configurable: true,
|
|
235
250
|
writable: true,
|
|
236
|
-
value:
|
|
251
|
+
value: "BaseError"
|
|
237
252
|
});
|
|
238
|
-
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
239
|
-
const docsPath = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
240
|
-
this.message = [
|
|
241
|
-
shortMessage || "An error occurred.",
|
|
242
|
-
"",
|
|
243
|
-
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
244
|
-
...docsPath ? [
|
|
245
|
-
`Docs: ${args.docsBaseUrl ?? "https://viem.sh"}${docsPath}${args.docsSlug ? `#${args.docsSlug}` : ""}`
|
|
246
|
-
] : [],
|
|
247
|
-
...details ? [`Details: ${details}`] : [],
|
|
248
|
-
`Version: ${this.version}`
|
|
249
|
-
].join("\n");
|
|
250
|
-
if (args.cause)
|
|
251
|
-
this.cause = args.cause;
|
|
252
253
|
this.details = details;
|
|
253
254
|
this.docsPath = docsPath;
|
|
254
255
|
this.metaMessages = args.metaMessages;
|
|
256
|
+
this.name = args.name ?? this.name;
|
|
255
257
|
this.shortMessage = shortMessage;
|
|
258
|
+
this.version = version;
|
|
256
259
|
}
|
|
257
260
|
walk(fn) {
|
|
258
261
|
return walk(this, fn);
|
|
@@ -261,10 +264,10 @@ var init_base = __esm({
|
|
|
261
264
|
}
|
|
262
265
|
});
|
|
263
266
|
|
|
264
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
267
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js
|
|
265
268
|
var AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
|
|
266
269
|
var init_abi = __esm({
|
|
267
|
-
"../../node_modules/.pnpm/viem@2.
|
|
270
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js"() {
|
|
268
271
|
"use strict";
|
|
269
272
|
init_formatAbiItem2();
|
|
270
273
|
init_size();
|
|
@@ -275,24 +278,12 @@ var init_abi = __esm({
|
|
|
275
278
|
`ABI encoding array length mismatch for type ${type}.`,
|
|
276
279
|
`Expected length: ${expectedLength}`,
|
|
277
280
|
`Given length: ${givenLength}`
|
|
278
|
-
].join("\n"));
|
|
279
|
-
Object.defineProperty(this, "name", {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
configurable: true,
|
|
282
|
-
writable: true,
|
|
283
|
-
value: "AbiEncodingArrayLengthMismatchError"
|
|
284
|
-
});
|
|
281
|
+
].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
285
282
|
}
|
|
286
283
|
};
|
|
287
284
|
AbiEncodingBytesSizeMismatchError = class extends BaseError {
|
|
288
285
|
constructor({ expectedSize, value }) {
|
|
289
|
-
super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize})
|
|
290
|
-
Object.defineProperty(this, "name", {
|
|
291
|
-
enumerable: true,
|
|
292
|
-
configurable: true,
|
|
293
|
-
writable: true,
|
|
294
|
-
value: "AbiEncodingBytesSizeMismatchError"
|
|
295
|
-
});
|
|
286
|
+
super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
296
287
|
}
|
|
297
288
|
};
|
|
298
289
|
AbiEncodingLengthMismatchError = class extends BaseError {
|
|
@@ -301,13 +292,7 @@ var init_abi = __esm({
|
|
|
301
292
|
"ABI encoding params/values length mismatch.",
|
|
302
293
|
`Expected length (params): ${expectedLength}`,
|
|
303
294
|
`Given length (values): ${givenLength}`
|
|
304
|
-
].join("\n"));
|
|
305
|
-
Object.defineProperty(this, "name", {
|
|
306
|
-
enumerable: true,
|
|
307
|
-
configurable: true,
|
|
308
|
-
writable: true,
|
|
309
|
-
value: "AbiEncodingLengthMismatchError"
|
|
310
|
-
});
|
|
295
|
+
].join("\n"), { name: "AbiEncodingLengthMismatchError" });
|
|
311
296
|
}
|
|
312
297
|
};
|
|
313
298
|
AbiItemAmbiguityError = class extends BaseError {
|
|
@@ -319,13 +304,8 @@ var init_abi = __esm({
|
|
|
319
304
|
"",
|
|
320
305
|
"These types encode differently and cannot be distinguished at runtime.",
|
|
321
306
|
"Remove one of the ambiguous items in the ABI."
|
|
322
|
-
]
|
|
323
|
-
|
|
324
|
-
Object.defineProperty(this, "name", {
|
|
325
|
-
enumerable: true,
|
|
326
|
-
configurable: true,
|
|
327
|
-
writable: true,
|
|
328
|
-
value: "AbiItemAmbiguityError"
|
|
307
|
+
],
|
|
308
|
+
name: "AbiItemAmbiguityError"
|
|
329
309
|
});
|
|
330
310
|
}
|
|
331
311
|
};
|
|
@@ -334,23 +314,13 @@ var init_abi = __esm({
|
|
|
334
314
|
super([
|
|
335
315
|
`Type "${type}" is not a valid encoding type.`,
|
|
336
316
|
"Please provide a valid ABI type."
|
|
337
|
-
].join("\n"), { docsPath });
|
|
338
|
-
Object.defineProperty(this, "name", {
|
|
339
|
-
enumerable: true,
|
|
340
|
-
configurable: true,
|
|
341
|
-
writable: true,
|
|
342
|
-
value: "InvalidAbiEncodingType"
|
|
343
|
-
});
|
|
317
|
+
].join("\n"), { docsPath, name: "InvalidAbiEncodingType" });
|
|
344
318
|
}
|
|
345
319
|
};
|
|
346
320
|
InvalidArrayError = class extends BaseError {
|
|
347
321
|
constructor(value) {
|
|
348
|
-
super([`Value "${value}" is not a valid array.`].join("\n")
|
|
349
|
-
|
|
350
|
-
enumerable: true,
|
|
351
|
-
configurable: true,
|
|
352
|
-
writable: true,
|
|
353
|
-
value: "InvalidArrayError"
|
|
322
|
+
super([`Value "${value}" is not a valid array.`].join("\n"), {
|
|
323
|
+
name: "InvalidArrayError"
|
|
354
324
|
});
|
|
355
325
|
}
|
|
356
326
|
};
|
|
@@ -359,50 +329,32 @@ var init_abi = __esm({
|
|
|
359
329
|
super([
|
|
360
330
|
`"${type}" is not a valid definition type.`,
|
|
361
331
|
'Valid types: "function", "event", "error"'
|
|
362
|
-
].join("\n"));
|
|
363
|
-
Object.defineProperty(this, "name", {
|
|
364
|
-
enumerable: true,
|
|
365
|
-
configurable: true,
|
|
366
|
-
writable: true,
|
|
367
|
-
value: "InvalidDefinitionTypeError"
|
|
368
|
-
});
|
|
332
|
+
].join("\n"), { name: "InvalidDefinitionTypeError" });
|
|
369
333
|
}
|
|
370
334
|
};
|
|
371
335
|
}
|
|
372
336
|
});
|
|
373
337
|
|
|
374
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
338
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js
|
|
375
339
|
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
376
340
|
var init_data = __esm({
|
|
377
|
-
"../../node_modules/.pnpm/viem@2.
|
|
341
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js"() {
|
|
378
342
|
"use strict";
|
|
379
343
|
init_base();
|
|
380
344
|
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
381
345
|
constructor({ offset, position, size: size2 }) {
|
|
382
|
-
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2})
|
|
383
|
-
Object.defineProperty(this, "name", {
|
|
384
|
-
enumerable: true,
|
|
385
|
-
configurable: true,
|
|
386
|
-
writable: true,
|
|
387
|
-
value: "SliceOffsetOutOfBoundsError"
|
|
388
|
-
});
|
|
346
|
+
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
389
347
|
}
|
|
390
348
|
};
|
|
391
349
|
SizeExceedsPaddingSizeError = class extends BaseError {
|
|
392
350
|
constructor({ size: size2, targetSize, type }) {
|
|
393
|
-
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize})
|
|
394
|
-
Object.defineProperty(this, "name", {
|
|
395
|
-
enumerable: true,
|
|
396
|
-
configurable: true,
|
|
397
|
-
writable: true,
|
|
398
|
-
value: "SizeExceedsPaddingSizeError"
|
|
399
|
-
});
|
|
351
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
400
352
|
}
|
|
401
353
|
};
|
|
402
354
|
}
|
|
403
355
|
});
|
|
404
356
|
|
|
405
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
357
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js
|
|
406
358
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
407
359
|
if (typeof hexOrBytes === "string")
|
|
408
360
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -437,44 +389,32 @@ function padBytes(bytes2, { dir, size: size2 = 32 } = {}) {
|
|
|
437
389
|
return paddedBytes;
|
|
438
390
|
}
|
|
439
391
|
var init_pad = __esm({
|
|
440
|
-
"../../node_modules/.pnpm/viem@2.
|
|
392
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js"() {
|
|
441
393
|
"use strict";
|
|
442
394
|
init_data();
|
|
443
395
|
}
|
|
444
396
|
});
|
|
445
397
|
|
|
446
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
398
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js
|
|
447
399
|
var IntegerOutOfRangeError, SizeOverflowError;
|
|
448
400
|
var init_encoding = __esm({
|
|
449
|
-
"../../node_modules/.pnpm/viem@2.
|
|
401
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js"() {
|
|
450
402
|
"use strict";
|
|
451
403
|
init_base();
|
|
452
404
|
IntegerOutOfRangeError = class extends BaseError {
|
|
453
405
|
constructor({ max, min, signed, size: size2, value }) {
|
|
454
|
-
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}
|
|
455
|
-
Object.defineProperty(this, "name", {
|
|
456
|
-
enumerable: true,
|
|
457
|
-
configurable: true,
|
|
458
|
-
writable: true,
|
|
459
|
-
value: "IntegerOutOfRangeError"
|
|
460
|
-
});
|
|
406
|
+
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
461
407
|
}
|
|
462
408
|
};
|
|
463
409
|
SizeOverflowError = class extends BaseError {
|
|
464
410
|
constructor({ givenSize, maxSize }) {
|
|
465
|
-
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes
|
|
466
|
-
Object.defineProperty(this, "name", {
|
|
467
|
-
enumerable: true,
|
|
468
|
-
configurable: true,
|
|
469
|
-
writable: true,
|
|
470
|
-
value: "SizeOverflowError"
|
|
471
|
-
});
|
|
411
|
+
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
472
412
|
}
|
|
473
413
|
};
|
|
474
414
|
}
|
|
475
415
|
});
|
|
476
416
|
|
|
477
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
417
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
478
418
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
479
419
|
if (size(hexOrBytes) > size2)
|
|
480
420
|
throw new SizeOverflowError({
|
|
@@ -483,14 +423,14 @@ function assertSize(hexOrBytes, { size: size2 }) {
|
|
|
483
423
|
});
|
|
484
424
|
}
|
|
485
425
|
var init_fromHex = __esm({
|
|
486
|
-
"../../node_modules/.pnpm/viem@2.
|
|
426
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
|
|
487
427
|
"use strict";
|
|
488
428
|
init_encoding();
|
|
489
429
|
init_size();
|
|
490
430
|
}
|
|
491
431
|
});
|
|
492
432
|
|
|
493
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
433
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
494
434
|
function toHex(value, opts = {}) {
|
|
495
435
|
if (typeof value === "number" || typeof value === "bigint")
|
|
496
436
|
return numberToHex(value, opts);
|
|
@@ -555,7 +495,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
555
495
|
}
|
|
556
496
|
var hexes, encoder;
|
|
557
497
|
var init_toHex = __esm({
|
|
558
|
-
"../../node_modules/.pnpm/viem@2.
|
|
498
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js"() {
|
|
559
499
|
"use strict";
|
|
560
500
|
init_encoding();
|
|
561
501
|
init_pad();
|
|
@@ -565,7 +505,7 @@ var init_toHex = __esm({
|
|
|
565
505
|
}
|
|
566
506
|
});
|
|
567
507
|
|
|
568
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
508
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
569
509
|
function toBytes(value, opts = {}) {
|
|
570
510
|
if (typeof value === "number" || typeof value === "bigint")
|
|
571
511
|
return numberToBytes(value, opts);
|
|
@@ -628,7 +568,7 @@ function stringToBytes(value, opts = {}) {
|
|
|
628
568
|
}
|
|
629
569
|
var encoder2, charCodeMap;
|
|
630
570
|
var init_toBytes = __esm({
|
|
631
|
-
"../../node_modules/.pnpm/viem@2.
|
|
571
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
|
|
632
572
|
"use strict";
|
|
633
573
|
init_base();
|
|
634
574
|
init_isHex();
|
|
@@ -647,7 +587,7 @@ var init_toBytes = __esm({
|
|
|
647
587
|
}
|
|
648
588
|
});
|
|
649
589
|
|
|
650
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
590
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js
|
|
651
591
|
function number(n) {
|
|
652
592
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
653
593
|
throw new Error(`positive integer expected, not ${n}`);
|
|
@@ -675,12 +615,12 @@ function output(out, instance) {
|
|
|
675
615
|
}
|
|
676
616
|
}
|
|
677
617
|
var init_assert = __esm({
|
|
678
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
618
|
+
"../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js"() {
|
|
679
619
|
"use strict";
|
|
680
620
|
}
|
|
681
621
|
});
|
|
682
622
|
|
|
683
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
623
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js
|
|
684
624
|
function fromBig(n, le = false) {
|
|
685
625
|
if (le)
|
|
686
626
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
@@ -697,7 +637,7 @@ function split(lst, le = false) {
|
|
|
697
637
|
}
|
|
698
638
|
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
699
639
|
var init_u64 = __esm({
|
|
700
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
640
|
+
"../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js"() {
|
|
701
641
|
"use strict";
|
|
702
642
|
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
703
643
|
_32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -708,7 +648,7 @@ var init_u64 = __esm({
|
|
|
708
648
|
}
|
|
709
649
|
});
|
|
710
650
|
|
|
711
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
651
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js
|
|
712
652
|
function byteSwap32(arr) {
|
|
713
653
|
for (let i = 0; i < arr.length; i++) {
|
|
714
654
|
arr[i] = byteSwap(arr[i]);
|
|
@@ -742,8 +682,8 @@ function wrapXOFConstructorWithOpts(hashCons) {
|
|
|
742
682
|
return hashC;
|
|
743
683
|
}
|
|
744
684
|
var u32, isLE, byteSwap, Hash, toStr;
|
|
745
|
-
var
|
|
746
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
685
|
+
var init_utils = __esm({
|
|
686
|
+
"../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js"() {
|
|
747
687
|
"use strict";
|
|
748
688
|
init_assert();
|
|
749
689
|
u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
@@ -759,7 +699,7 @@ var init_utils2 = __esm({
|
|
|
759
699
|
}
|
|
760
700
|
});
|
|
761
701
|
|
|
762
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
702
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js
|
|
763
703
|
function keccakP(s, rounds = 24) {
|
|
764
704
|
const B = new Uint32Array(5 * 2);
|
|
765
705
|
for (let round = 24 - rounds; round < 24; round++) {
|
|
@@ -802,11 +742,11 @@ function keccakP(s, rounds = 24) {
|
|
|
802
742
|
}
|
|
803
743
|
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;
|
|
804
744
|
var init_sha3 = __esm({
|
|
805
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
745
|
+
"../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js"() {
|
|
806
746
|
"use strict";
|
|
807
747
|
init_assert();
|
|
808
748
|
init_u64();
|
|
809
|
-
|
|
749
|
+
init_utils();
|
|
810
750
|
SHA3_PI = [];
|
|
811
751
|
SHA3_ROTL = [];
|
|
812
752
|
_SHA3_IOTA = [];
|
|
@@ -954,7 +894,7 @@ var init_sha3 = __esm({
|
|
|
954
894
|
}
|
|
955
895
|
});
|
|
956
896
|
|
|
957
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
897
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
958
898
|
function keccak256(value, to_) {
|
|
959
899
|
const to = to_ || "hex";
|
|
960
900
|
const bytes2 = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -963,7 +903,7 @@ function keccak256(value, to_) {
|
|
|
963
903
|
return toHex(bytes2);
|
|
964
904
|
}
|
|
965
905
|
var init_keccak256 = __esm({
|
|
966
|
-
"../../node_modules/.pnpm/viem@2.
|
|
906
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js"() {
|
|
967
907
|
"use strict";
|
|
968
908
|
init_sha3();
|
|
969
909
|
init_isHex();
|
|
@@ -972,13 +912,13 @@ var init_keccak256 = __esm({
|
|
|
972
912
|
}
|
|
973
913
|
});
|
|
974
914
|
|
|
975
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
915
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
976
916
|
function hashSignature(sig) {
|
|
977
917
|
return hash(sig);
|
|
978
918
|
}
|
|
979
919
|
var hash;
|
|
980
920
|
var init_hashSignature = __esm({
|
|
981
|
-
"../../node_modules/.pnpm/viem@2.
|
|
921
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
|
|
982
922
|
"use strict";
|
|
983
923
|
init_toBytes();
|
|
984
924
|
init_keccak256();
|
|
@@ -986,7 +926,7 @@ var init_hashSignature = __esm({
|
|
|
986
926
|
}
|
|
987
927
|
});
|
|
988
928
|
|
|
989
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
929
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
990
930
|
function normalizeSignature(signature) {
|
|
991
931
|
let active = true;
|
|
992
932
|
let current = "";
|
|
@@ -1030,16 +970,16 @@ function normalizeSignature(signature) {
|
|
|
1030
970
|
return result;
|
|
1031
971
|
}
|
|
1032
972
|
var init_normalizeSignature = __esm({
|
|
1033
|
-
"../../node_modules/.pnpm/viem@2.
|
|
973
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
|
|
1034
974
|
"use strict";
|
|
1035
975
|
init_base();
|
|
1036
976
|
}
|
|
1037
977
|
});
|
|
1038
978
|
|
|
1039
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
979
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1040
980
|
var toSignature;
|
|
1041
981
|
var init_toSignature = __esm({
|
|
1042
|
-
"../../node_modules/.pnpm/viem@2.
|
|
982
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js"() {
|
|
1043
983
|
"use strict";
|
|
1044
984
|
init_exports();
|
|
1045
985
|
init_normalizeSignature();
|
|
@@ -1054,32 +994,32 @@ var init_toSignature = __esm({
|
|
|
1054
994
|
}
|
|
1055
995
|
});
|
|
1056
996
|
|
|
1057
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
997
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1058
998
|
function toSignatureHash(fn) {
|
|
1059
999
|
return hashSignature(toSignature(fn));
|
|
1060
1000
|
}
|
|
1061
1001
|
var init_toSignatureHash = __esm({
|
|
1062
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1002
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
|
|
1063
1003
|
"use strict";
|
|
1064
1004
|
init_hashSignature();
|
|
1065
1005
|
init_toSignature();
|
|
1066
1006
|
}
|
|
1067
1007
|
});
|
|
1068
1008
|
|
|
1069
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1009
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1070
1010
|
var toEventSelector;
|
|
1071
1011
|
var init_toEventSelector = __esm({
|
|
1072
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1012
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
|
|
1073
1013
|
"use strict";
|
|
1074
1014
|
init_toSignatureHash();
|
|
1075
1015
|
toEventSelector = toSignatureHash;
|
|
1076
1016
|
}
|
|
1077
1017
|
});
|
|
1078
1018
|
|
|
1079
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1019
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js
|
|
1080
1020
|
var InvalidAddressError;
|
|
1081
1021
|
var init_address = __esm({
|
|
1082
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1022
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js"() {
|
|
1083
1023
|
"use strict";
|
|
1084
1024
|
init_base();
|
|
1085
1025
|
InvalidAddressError = class extends BaseError {
|
|
@@ -1088,23 +1028,18 @@ var init_address = __esm({
|
|
|
1088
1028
|
metaMessages: [
|
|
1089
1029
|
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
1090
1030
|
"- Address must match its checksum counterpart."
|
|
1091
|
-
]
|
|
1092
|
-
|
|
1093
|
-
Object.defineProperty(this, "name", {
|
|
1094
|
-
enumerable: true,
|
|
1095
|
-
configurable: true,
|
|
1096
|
-
writable: true,
|
|
1097
|
-
value: "InvalidAddressError"
|
|
1031
|
+
],
|
|
1032
|
+
name: "InvalidAddressError"
|
|
1098
1033
|
});
|
|
1099
1034
|
}
|
|
1100
1035
|
};
|
|
1101
1036
|
}
|
|
1102
1037
|
});
|
|
1103
1038
|
|
|
1104
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1039
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js
|
|
1105
1040
|
var LruMap;
|
|
1106
1041
|
var init_lru = __esm({
|
|
1107
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1042
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js"() {
|
|
1108
1043
|
"use strict";
|
|
1109
1044
|
LruMap = class extends Map {
|
|
1110
1045
|
constructor(size2) {
|
|
@@ -1117,17 +1052,28 @@ var init_lru = __esm({
|
|
|
1117
1052
|
});
|
|
1118
1053
|
this.maxSize = size2;
|
|
1119
1054
|
}
|
|
1055
|
+
get(key) {
|
|
1056
|
+
const value = super.get(key);
|
|
1057
|
+
if (super.has(key) && value !== void 0) {
|
|
1058
|
+
this.delete(key);
|
|
1059
|
+
super.set(key, value);
|
|
1060
|
+
}
|
|
1061
|
+
return value;
|
|
1062
|
+
}
|
|
1120
1063
|
set(key, value) {
|
|
1121
1064
|
super.set(key, value);
|
|
1122
|
-
if (this.maxSize && this.size > this.maxSize)
|
|
1123
|
-
this.
|
|
1065
|
+
if (this.maxSize && this.size > this.maxSize) {
|
|
1066
|
+
const firstKey = this.keys().next().value;
|
|
1067
|
+
if (firstKey)
|
|
1068
|
+
this.delete(firstKey);
|
|
1069
|
+
}
|
|
1124
1070
|
return this;
|
|
1125
1071
|
}
|
|
1126
1072
|
};
|
|
1127
1073
|
}
|
|
1128
1074
|
});
|
|
1129
1075
|
|
|
1130
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1076
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1131
1077
|
function checksumAddress(address_, chainId) {
|
|
1132
1078
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1133
1079
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1148,7 +1094,7 @@ function checksumAddress(address_, chainId) {
|
|
|
1148
1094
|
}
|
|
1149
1095
|
var checksumAddressCache;
|
|
1150
1096
|
var init_getAddress = __esm({
|
|
1151
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1097
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js"() {
|
|
1152
1098
|
"use strict";
|
|
1153
1099
|
init_toBytes();
|
|
1154
1100
|
init_keccak256();
|
|
@@ -1157,7 +1103,7 @@ var init_getAddress = __esm({
|
|
|
1157
1103
|
}
|
|
1158
1104
|
});
|
|
1159
1105
|
|
|
1160
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1106
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1161
1107
|
function isAddress(address, options) {
|
|
1162
1108
|
const { strict = true } = options ?? {};
|
|
1163
1109
|
const cacheKey = `${address}.${strict}`;
|
|
@@ -1177,7 +1123,7 @@ function isAddress(address, options) {
|
|
|
1177
1123
|
}
|
|
1178
1124
|
var addressRegex, isAddressCache;
|
|
1179
1125
|
var init_isAddress = __esm({
|
|
1180
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1126
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js"() {
|
|
1181
1127
|
"use strict";
|
|
1182
1128
|
init_lru();
|
|
1183
1129
|
init_getAddress();
|
|
@@ -1186,7 +1132,7 @@ var init_isAddress = __esm({
|
|
|
1186
1132
|
}
|
|
1187
1133
|
});
|
|
1188
1134
|
|
|
1189
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1135
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js
|
|
1190
1136
|
function concat(values) {
|
|
1191
1137
|
if (typeof values[0] === "string")
|
|
1192
1138
|
return concatHex(values);
|
|
@@ -1209,12 +1155,12 @@ function concatHex(values) {
|
|
|
1209
1155
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1210
1156
|
}
|
|
1211
1157
|
var init_concat = __esm({
|
|
1212
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1158
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js"() {
|
|
1213
1159
|
"use strict";
|
|
1214
1160
|
}
|
|
1215
1161
|
});
|
|
1216
1162
|
|
|
1217
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1163
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js
|
|
1218
1164
|
function slice(value, start, end, { strict } = {}) {
|
|
1219
1165
|
if (isHex(value, { strict: false }))
|
|
1220
1166
|
return sliceHex(value, start, end, {
|
|
@@ -1256,7 +1202,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1256
1202
|
return value;
|
|
1257
1203
|
}
|
|
1258
1204
|
var init_slice = __esm({
|
|
1259
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1205
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js"() {
|
|
1260
1206
|
"use strict";
|
|
1261
1207
|
init_data();
|
|
1262
1208
|
init_isHex();
|
|
@@ -1264,7 +1210,7 @@ var init_slice = __esm({
|
|
|
1264
1210
|
}
|
|
1265
1211
|
});
|
|
1266
1212
|
|
|
1267
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1213
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1268
1214
|
function encodeAbiParameters(params, values) {
|
|
1269
1215
|
if (params.length !== values.length)
|
|
1270
1216
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -1462,7 +1408,7 @@ function getArrayComponents(type) {
|
|
|
1462
1408
|
) : void 0;
|
|
1463
1409
|
}
|
|
1464
1410
|
var init_encodeAbiParameters = __esm({
|
|
1465
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1411
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
|
|
1466
1412
|
"use strict";
|
|
1467
1413
|
init_abi();
|
|
1468
1414
|
init_address();
|
|
@@ -1476,10 +1422,10 @@ var init_encodeAbiParameters = __esm({
|
|
|
1476
1422
|
}
|
|
1477
1423
|
});
|
|
1478
1424
|
|
|
1479
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1425
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1480
1426
|
var toFunctionSelector;
|
|
1481
1427
|
var init_toFunctionSelector = __esm({
|
|
1482
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1428
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
|
|
1483
1429
|
"use strict";
|
|
1484
1430
|
init_slice();
|
|
1485
1431
|
init_toSignatureHash();
|
|
@@ -1487,7 +1433,7 @@ var init_toFunctionSelector = __esm({
|
|
|
1487
1433
|
}
|
|
1488
1434
|
});
|
|
1489
1435
|
|
|
1490
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1436
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1491
1437
|
function getAbiItem(parameters) {
|
|
1492
1438
|
const { abi, args = [], name } = parameters;
|
|
1493
1439
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -1538,1136 +1484,155 @@ function getAbiItem(parameters) {
|
|
|
1538
1484
|
type: ambiguousTypes[1]
|
|
1539
1485
|
});
|
|
1540
1486
|
}
|
|
1541
|
-
matchedAbiItem = abiItem;
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
if (matchedAbiItem)
|
|
1545
|
-
return matchedAbiItem;
|
|
1546
|
-
return abiItems[0];
|
|
1547
|
-
}
|
|
1548
|
-
function isArgOfType(arg, abiParameter) {
|
|
1549
|
-
const argType = typeof arg;
|
|
1550
|
-
const abiParameterType = abiParameter.type;
|
|
1551
|
-
switch (abiParameterType) {
|
|
1552
|
-
case "address":
|
|
1553
|
-
return isAddress(arg, { strict: false });
|
|
1554
|
-
case "bool":
|
|
1555
|
-
return argType === "boolean";
|
|
1556
|
-
case "function":
|
|
1557
|
-
return argType === "string";
|
|
1558
|
-
case "string":
|
|
1559
|
-
return argType === "string";
|
|
1560
|
-
default: {
|
|
1561
|
-
if (abiParameterType === "tuple" && "components" in abiParameter)
|
|
1562
|
-
return Object.values(abiParameter.components).every((component, index) => {
|
|
1563
|
-
return isArgOfType(Object.values(arg)[index], component);
|
|
1564
|
-
});
|
|
1565
|
-
if (/^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)?$/.test(abiParameterType))
|
|
1566
|
-
return argType === "number" || argType === "bigint";
|
|
1567
|
-
if (/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(abiParameterType))
|
|
1568
|
-
return argType === "string" || arg instanceof Uint8Array;
|
|
1569
|
-
if (/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(abiParameterType)) {
|
|
1570
|
-
return Array.isArray(arg) && arg.every((x) => isArgOfType(x, {
|
|
1571
|
-
...abiParameter,
|
|
1572
|
-
// Pop off `[]` or `[M]` from end of type
|
|
1573
|
-
type: abiParameterType.replace(/(\[[0-9]{0,}\])$/, "")
|
|
1574
|
-
}));
|
|
1575
|
-
}
|
|
1576
|
-
return false;
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
1581
|
-
for (const parameterIndex in sourceParameters) {
|
|
1582
|
-
const sourceParameter = sourceParameters[parameterIndex];
|
|
1583
|
-
const targetParameter = targetParameters[parameterIndex];
|
|
1584
|
-
if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
|
|
1585
|
-
return getAmbiguousTypes(sourceParameter.components, targetParameter.components, args[parameterIndex]);
|
|
1586
|
-
const types = [sourceParameter.type, targetParameter.type];
|
|
1587
|
-
const ambiguous = (() => {
|
|
1588
|
-
if (types.includes("address") && types.includes("bytes20"))
|
|
1589
|
-
return true;
|
|
1590
|
-
if (types.includes("address") && types.includes("string"))
|
|
1591
|
-
return isAddress(args[parameterIndex], { strict: false });
|
|
1592
|
-
if (types.includes("address") && types.includes("bytes"))
|
|
1593
|
-
return isAddress(args[parameterIndex], { strict: false });
|
|
1594
|
-
return false;
|
|
1595
|
-
})();
|
|
1596
|
-
if (ambiguous)
|
|
1597
|
-
return types;
|
|
1598
|
-
}
|
|
1599
|
-
return;
|
|
1600
|
-
}
|
|
1601
|
-
var init_getAbiItem = __esm({
|
|
1602
|
-
"../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
|
|
1603
|
-
"use strict";
|
|
1604
|
-
init_abi();
|
|
1605
|
-
init_isHex();
|
|
1606
|
-
init_isAddress();
|
|
1607
|
-
init_toEventSelector();
|
|
1608
|
-
init_toFunctionSelector();
|
|
1609
|
-
}
|
|
1610
|
-
});
|
|
1611
|
-
|
|
1612
|
-
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
|
|
1613
|
-
var etherUnits;
|
|
1614
|
-
var init_unit = __esm({
|
|
1615
|
-
"../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js"() {
|
|
1616
|
-
"use strict";
|
|
1617
|
-
etherUnits = {
|
|
1618
|
-
gwei: 9,
|
|
1619
|
-
wei: 18
|
|
1620
|
-
};
|
|
1621
|
-
}
|
|
1622
|
-
});
|
|
1623
|
-
|
|
1624
|
-
// src/index.ts
|
|
1625
|
-
var src_exports = {};
|
|
1626
|
-
__export(src_exports, {
|
|
1627
|
-
PremintConfigVersion: () => PremintConfigVersion,
|
|
1628
|
-
commentsABI: () => commentsABI,
|
|
1629
|
-
commentsAddress: () => commentsAddress,
|
|
1630
|
-
commentsConfig: () => commentsConfig,
|
|
1631
|
-
contracts1155: () => __exports,
|
|
1632
|
-
emptyCommentIdentifier: () => emptyCommentIdentifier,
|
|
1633
|
-
encodePremintConfig: () => encodePremintConfig,
|
|
1634
|
-
erc20MinterABI: () => erc20MinterABI,
|
|
1635
|
-
erc20MinterAddress: () => erc20MinterAddress,
|
|
1636
|
-
erc20MinterConfig: () => erc20MinterConfig,
|
|
1637
|
-
erc20ZABI: () => erc20ZABI,
|
|
1638
|
-
erc20ZRoyaltiesABI: () => erc20ZRoyaltiesABI,
|
|
1639
|
-
erc20ZRoyaltiesAddress: () => erc20ZRoyaltiesAddress,
|
|
1640
|
-
erc20ZRoyaltiesConfig: () => erc20ZRoyaltiesConfig,
|
|
1641
|
-
iPremintDefinitionsABI: () => iPremintDefinitionsABI,
|
|
1642
|
-
iSponsoredSparksSpenderActionABI: () => iSponsoredSparksSpenderActionABI,
|
|
1643
|
-
iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
|
|
1644
|
-
mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
|
|
1645
|
-
mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
|
|
1646
|
-
mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
|
|
1647
|
-
mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
|
|
1648
|
-
mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
|
|
1649
|
-
permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
|
|
1650
|
-
permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
|
|
1651
|
-
premintTypedDataDefinition: () => premintTypedDataDefinition,
|
|
1652
|
-
premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
|
|
1653
|
-
premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
|
|
1654
|
-
protocolRewardsABI: () => protocolRewardsABI,
|
|
1655
|
-
protocolRewardsAddress: () => protocolRewardsAddress,
|
|
1656
|
-
protocolRewardsConfig: () => protocolRewardsConfig,
|
|
1657
|
-
safeTransferSwapAbiParameters: () => safeTransferSwapAbiParameters,
|
|
1658
|
-
secondarySwapABI: () => secondarySwapABI,
|
|
1659
|
-
secondarySwapAddress: () => secondarySwapAddress,
|
|
1660
|
-
secondarySwapConfig: () => secondarySwapConfig,
|
|
1661
|
-
sparkValue: () => sparkValue,
|
|
1662
|
-
sparks: () => sparks_exports,
|
|
1663
|
-
sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
|
|
1664
|
-
sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
|
|
1665
|
-
sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
|
|
1666
|
-
sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
|
|
1667
|
-
sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
|
|
1668
|
-
upgradeGateABI: () => upgradeGateABI,
|
|
1669
|
-
upgradeGateAddress: () => upgradeGateAddress,
|
|
1670
|
-
upgradeGateConfig: () => upgradeGateConfig,
|
|
1671
|
-
wethABI: () => wethABI,
|
|
1672
|
-
wethAddress: () => wethAddress,
|
|
1673
|
-
wethConfig: () => wethConfig,
|
|
1674
|
-
zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
|
|
1675
|
-
zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
|
|
1676
|
-
zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
|
|
1677
|
-
zoraCreator1155ImplABI: () => zoraCreator1155ImplABI,
|
|
1678
|
-
zoraCreator1155PremintExecutorImplABI: () => zoraCreator1155PremintExecutorImplABI,
|
|
1679
|
-
zoraCreator1155PremintExecutorImplAddress: () => zoraCreator1155PremintExecutorImplAddress,
|
|
1680
|
-
zoraCreator1155PremintExecutorImplConfig: () => zoraCreator1155PremintExecutorImplConfig,
|
|
1681
|
-
zoraCreatorFixedPriceSaleStrategyABI: () => zoraCreatorFixedPriceSaleStrategyABI,
|
|
1682
|
-
zoraCreatorFixedPriceSaleStrategyAddress: () => zoraCreatorFixedPriceSaleStrategyAddress,
|
|
1683
|
-
zoraCreatorFixedPriceSaleStrategyConfig: () => zoraCreatorFixedPriceSaleStrategyConfig,
|
|
1684
|
-
zoraCreatorMerkleMinterStrategyABI: () => zoraCreatorMerkleMinterStrategyABI,
|
|
1685
|
-
zoraCreatorMerkleMinterStrategyAddress: () => zoraCreatorMerkleMinterStrategyAddress,
|
|
1686
|
-
zoraCreatorMerkleMinterStrategyConfig: () => zoraCreatorMerkleMinterStrategyConfig,
|
|
1687
|
-
zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
|
|
1688
|
-
zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
|
|
1689
|
-
zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
|
|
1690
|
-
zoraMints1155ABI: () => zoraMints1155ABI,
|
|
1691
|
-
zoraMints1155Address: () => zoraMints1155Address,
|
|
1692
|
-
zoraMints1155Config: () => zoraMints1155Config,
|
|
1693
|
-
zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
|
|
1694
|
-
zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
|
|
1695
|
-
zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
|
|
1696
|
-
zoraSparks1155ABI: () => zoraSparks1155ABI,
|
|
1697
|
-
zoraSparks1155Address: () => zoraSparks1155Address,
|
|
1698
|
-
zoraSparks1155Config: () => zoraSparks1155Config,
|
|
1699
|
-
zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
|
|
1700
|
-
zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
|
|
1701
|
-
zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig,
|
|
1702
|
-
zoraTimedSaleStrategyABI: () => zoraTimedSaleStrategyABI,
|
|
1703
|
-
zoraTimedSaleStrategyAddress: () => zoraTimedSaleStrategyAddress,
|
|
1704
|
-
zoraTimedSaleStrategyConfig: () => zoraTimedSaleStrategyConfig
|
|
1705
|
-
});
|
|
1706
|
-
module.exports = __toCommonJS(src_exports);
|
|
1707
|
-
|
|
1708
|
-
// src/generated/wagmi.ts
|
|
1709
|
-
var commentsABI = [
|
|
1710
|
-
{
|
|
1711
|
-
stateMutability: "nonpayable",
|
|
1712
|
-
type: "constructor",
|
|
1713
|
-
inputs: [
|
|
1714
|
-
{ name: "_sparkValue", internalType: "uint256", type: "uint256" },
|
|
1715
|
-
{ name: "_protocolRewards", internalType: "address", type: "address" }
|
|
1716
|
-
]
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
stateMutability: "view",
|
|
1720
|
-
type: "function",
|
|
1721
|
-
inputs: [],
|
|
1722
|
-
name: "BACKFILLER_ROLE",
|
|
1723
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1724
|
-
},
|
|
1725
|
-
{
|
|
1726
|
-
stateMutability: "view",
|
|
1727
|
-
type: "function",
|
|
1728
|
-
inputs: [],
|
|
1729
|
-
name: "DEFAULT_ADMIN_ROLE",
|
|
1730
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
stateMutability: "view",
|
|
1734
|
-
type: "function",
|
|
1735
|
-
inputs: [],
|
|
1736
|
-
name: "DELEGATE_COMMENTOR",
|
|
1737
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
stateMutability: "view",
|
|
1741
|
-
type: "function",
|
|
1742
|
-
inputs: [],
|
|
1743
|
-
name: "DOMAIN_NAME",
|
|
1744
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
stateMutability: "view",
|
|
1748
|
-
type: "function",
|
|
1749
|
-
inputs: [],
|
|
1750
|
-
name: "DOMAIN_VERSION",
|
|
1751
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1752
|
-
},
|
|
1753
|
-
{
|
|
1754
|
-
stateMutability: "view",
|
|
1755
|
-
type: "function",
|
|
1756
|
-
inputs: [],
|
|
1757
|
-
name: "PERMISSION_BIT_ADMIN",
|
|
1758
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
stateMutability: "view",
|
|
1762
|
-
type: "function",
|
|
1763
|
-
inputs: [],
|
|
1764
|
-
name: "REFERRER_REWARD_PCT",
|
|
1765
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1766
|
-
},
|
|
1767
|
-
{
|
|
1768
|
-
stateMutability: "view",
|
|
1769
|
-
type: "function",
|
|
1770
|
-
inputs: [],
|
|
1771
|
-
name: "UPGRADE_INTERFACE_VERSION",
|
|
1772
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1773
|
-
},
|
|
1774
|
-
{
|
|
1775
|
-
stateMutability: "view",
|
|
1776
|
-
type: "function",
|
|
1777
|
-
inputs: [],
|
|
1778
|
-
name: "ZORA_REWARD_NO_REFERRER_PCT",
|
|
1779
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
stateMutability: "view",
|
|
1783
|
-
type: "function",
|
|
1784
|
-
inputs: [],
|
|
1785
|
-
name: "ZORA_REWARD_PCT",
|
|
1786
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1787
|
-
},
|
|
1788
|
-
{
|
|
1789
|
-
stateMutability: "nonpayable",
|
|
1790
|
-
type: "function",
|
|
1791
|
-
inputs: [
|
|
1792
|
-
{
|
|
1793
|
-
name: "commentIdentifiers",
|
|
1794
|
-
internalType: "struct IComments.CommentIdentifier[]",
|
|
1795
|
-
type: "tuple[]",
|
|
1796
|
-
components: [
|
|
1797
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1798
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1799
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1800
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1801
|
-
]
|
|
1802
|
-
},
|
|
1803
|
-
{ name: "texts", internalType: "string[]", type: "string[]" },
|
|
1804
|
-
{ name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
|
|
1805
|
-
{
|
|
1806
|
-
name: "originalTransactionHashes",
|
|
1807
|
-
internalType: "bytes32[]",
|
|
1808
|
-
type: "bytes32[]"
|
|
1809
|
-
}
|
|
1810
|
-
],
|
|
1811
|
-
name: "backfillBatchAddComment",
|
|
1812
|
-
outputs: []
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
stateMutability: "payable",
|
|
1816
|
-
type: "function",
|
|
1817
|
-
inputs: [
|
|
1818
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1819
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1820
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1821
|
-
{ name: "text", internalType: "string", type: "string" },
|
|
1822
|
-
{
|
|
1823
|
-
name: "replyTo",
|
|
1824
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1825
|
-
type: "tuple",
|
|
1826
|
-
components: [
|
|
1827
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1828
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1829
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1830
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1831
|
-
]
|
|
1832
|
-
},
|
|
1833
|
-
{
|
|
1834
|
-
name: "commenterSmartWallet",
|
|
1835
|
-
internalType: "address",
|
|
1836
|
-
type: "address"
|
|
1837
|
-
},
|
|
1838
|
-
{ name: "referrer", internalType: "address", type: "address" }
|
|
1839
|
-
],
|
|
1840
|
-
name: "comment",
|
|
1841
|
-
outputs: [
|
|
1842
|
-
{
|
|
1843
|
-
name: "commentIdentifier",
|
|
1844
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1845
|
-
type: "tuple",
|
|
1846
|
-
components: [
|
|
1847
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1848
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1849
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1850
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1851
|
-
]
|
|
1852
|
-
}
|
|
1853
|
-
]
|
|
1854
|
-
},
|
|
1855
|
-
{
|
|
1856
|
-
stateMutability: "view",
|
|
1857
|
-
type: "function",
|
|
1858
|
-
inputs: [
|
|
1859
|
-
{
|
|
1860
|
-
name: "commentIdentifier",
|
|
1861
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1862
|
-
type: "tuple",
|
|
1863
|
-
components: [
|
|
1864
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1865
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1866
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1867
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1868
|
-
]
|
|
1869
|
-
}
|
|
1870
|
-
],
|
|
1871
|
-
name: "commentSparksQuantity",
|
|
1872
|
-
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
stateMutability: "pure",
|
|
1876
|
-
type: "function",
|
|
1877
|
-
inputs: [],
|
|
1878
|
-
name: "contractName",
|
|
1879
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
stateMutability: "pure",
|
|
1883
|
-
type: "function",
|
|
1884
|
-
inputs: [],
|
|
1885
|
-
name: "contractVersion",
|
|
1886
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1887
|
-
},
|
|
1888
|
-
{
|
|
1889
|
-
stateMutability: "nonpayable",
|
|
1890
|
-
type: "function",
|
|
1891
|
-
inputs: [
|
|
1892
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1893
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1894
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1895
|
-
{ name: "text", internalType: "string", type: "string" },
|
|
1896
|
-
{
|
|
1897
|
-
name: "replyTo",
|
|
1898
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1899
|
-
type: "tuple",
|
|
1900
|
-
components: [
|
|
1901
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1902
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1903
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1904
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1905
|
-
]
|
|
1906
|
-
}
|
|
1907
|
-
],
|
|
1908
|
-
name: "delegateComment",
|
|
1909
|
-
outputs: [
|
|
1910
|
-
{
|
|
1911
|
-
name: "commentIdentifier",
|
|
1912
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1913
|
-
type: "tuple",
|
|
1914
|
-
components: [
|
|
1915
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1916
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1917
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1918
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1919
|
-
]
|
|
1920
|
-
}
|
|
1921
|
-
]
|
|
1922
|
-
},
|
|
1923
|
-
{
|
|
1924
|
-
stateMutability: "view",
|
|
1925
|
-
type: "function",
|
|
1926
|
-
inputs: [],
|
|
1927
|
-
name: "eip712Domain",
|
|
1928
|
-
outputs: [
|
|
1929
|
-
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
1930
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
1931
|
-
{ name: "version", internalType: "string", type: "string" },
|
|
1932
|
-
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
1933
|
-
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
1934
|
-
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
1935
|
-
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
1936
|
-
]
|
|
1937
|
-
},
|
|
1938
|
-
{
|
|
1939
|
-
stateMutability: "view",
|
|
1940
|
-
type: "function",
|
|
1941
|
-
inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
|
|
1942
|
-
name: "getRoleAdmin",
|
|
1943
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1944
|
-
},
|
|
1945
|
-
{
|
|
1946
|
-
stateMutability: "nonpayable",
|
|
1947
|
-
type: "function",
|
|
1948
|
-
inputs: [
|
|
1949
|
-
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1950
|
-
{ name: "account", internalType: "address", type: "address" }
|
|
1951
|
-
],
|
|
1952
|
-
name: "grantRole",
|
|
1953
|
-
outputs: []
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
stateMutability: "view",
|
|
1957
|
-
type: "function",
|
|
1958
|
-
inputs: [
|
|
1959
|
-
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1960
|
-
{ name: "account", internalType: "address", type: "address" }
|
|
1961
|
-
],
|
|
1962
|
-
name: "hasRole",
|
|
1963
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1964
|
-
},
|
|
1965
|
-
{
|
|
1966
|
-
stateMutability: "view",
|
|
1967
|
-
type: "function",
|
|
1968
|
-
inputs: [
|
|
1969
|
-
{
|
|
1970
|
-
name: "commentIdentifier",
|
|
1971
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1972
|
-
type: "tuple",
|
|
1973
|
-
components: [
|
|
1974
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1975
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1976
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1977
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1978
|
-
]
|
|
1979
|
-
}
|
|
1980
|
-
],
|
|
1981
|
-
name: "hashAndCheckCommentExists",
|
|
1982
|
-
outputs: [
|
|
1983
|
-
{ name: "commentId", internalType: "bytes32", type: "bytes32" },
|
|
1984
|
-
{ name: "exists", internalType: "bool", type: "bool" }
|
|
1985
|
-
]
|
|
1986
|
-
},
|
|
1987
|
-
{
|
|
1988
|
-
stateMutability: "view",
|
|
1989
|
-
type: "function",
|
|
1990
|
-
inputs: [
|
|
1991
|
-
{
|
|
1992
|
-
name: "commentIdentifier",
|
|
1993
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
1994
|
-
type: "tuple",
|
|
1995
|
-
components: [
|
|
1996
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
1997
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1998
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1999
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2000
|
-
]
|
|
2001
|
-
}
|
|
2002
|
-
],
|
|
2003
|
-
name: "hashAndValidateCommentExists",
|
|
2004
|
-
outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
|
|
2005
|
-
},
|
|
2006
|
-
{
|
|
2007
|
-
stateMutability: "pure",
|
|
2008
|
-
type: "function",
|
|
2009
|
-
inputs: [
|
|
2010
|
-
{
|
|
2011
|
-
name: "commentIdentifier",
|
|
2012
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2013
|
-
type: "tuple",
|
|
2014
|
-
components: [
|
|
2015
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2016
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2017
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2018
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2019
|
-
]
|
|
2020
|
-
}
|
|
2021
|
-
],
|
|
2022
|
-
name: "hashCommentIdentifier",
|
|
2023
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2024
|
-
},
|
|
2025
|
-
{
|
|
2026
|
-
stateMutability: "view",
|
|
2027
|
-
type: "function",
|
|
2028
|
-
inputs: [
|
|
2029
|
-
{
|
|
2030
|
-
name: "permit",
|
|
2031
|
-
internalType: "struct IComments.PermitComment",
|
|
2032
|
-
type: "tuple",
|
|
2033
|
-
components: [
|
|
2034
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2035
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2036
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2037
|
-
{
|
|
2038
|
-
name: "replyTo",
|
|
2039
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2040
|
-
type: "tuple",
|
|
2041
|
-
components: [
|
|
2042
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2043
|
-
{
|
|
2044
|
-
name: "contractAddress",
|
|
2045
|
-
internalType: "address",
|
|
2046
|
-
type: "address"
|
|
2047
|
-
},
|
|
2048
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2049
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2050
|
-
]
|
|
2051
|
-
},
|
|
2052
|
-
{ name: "text", internalType: "string", type: "string" },
|
|
2053
|
-
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2054
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2055
|
-
{ name: "referrer", internalType: "address", type: "address" },
|
|
2056
|
-
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2057
|
-
{
|
|
2058
|
-
name: "destinationChainId",
|
|
2059
|
-
internalType: "uint32",
|
|
2060
|
-
type: "uint32"
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
name: "commenterSmartWallet",
|
|
2064
|
-
internalType: "address",
|
|
2065
|
-
type: "address"
|
|
2066
|
-
}
|
|
2067
|
-
]
|
|
2068
|
-
}
|
|
2069
|
-
],
|
|
2070
|
-
name: "hashPermitComment",
|
|
2071
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2072
|
-
},
|
|
2073
|
-
{
|
|
2074
|
-
stateMutability: "view",
|
|
2075
|
-
type: "function",
|
|
2076
|
-
inputs: [
|
|
2077
|
-
{
|
|
2078
|
-
name: "permit",
|
|
2079
|
-
internalType: "struct IComments.PermitSparkComment",
|
|
2080
|
-
type: "tuple",
|
|
2081
|
-
components: [
|
|
2082
|
-
{
|
|
2083
|
-
name: "comment",
|
|
2084
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2085
|
-
type: "tuple",
|
|
2086
|
-
components: [
|
|
2087
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2088
|
-
{
|
|
2089
|
-
name: "contractAddress",
|
|
2090
|
-
internalType: "address",
|
|
2091
|
-
type: "address"
|
|
2092
|
-
},
|
|
2093
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2094
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
{ name: "sparker", internalType: "address", type: "address" },
|
|
2098
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2099
|
-
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2100
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2101
|
-
{ name: "referrer", internalType: "address", type: "address" },
|
|
2102
|
-
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2103
|
-
{
|
|
2104
|
-
name: "destinationChainId",
|
|
2105
|
-
internalType: "uint32",
|
|
2106
|
-
type: "uint32"
|
|
2107
|
-
}
|
|
2108
|
-
]
|
|
2109
|
-
}
|
|
2110
|
-
],
|
|
2111
|
-
name: "hashPermitSparkComment",
|
|
2112
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2113
|
-
},
|
|
2114
|
-
{
|
|
2115
|
-
stateMutability: "view",
|
|
2116
|
-
type: "function",
|
|
2117
|
-
inputs: [],
|
|
2118
|
-
name: "implementation",
|
|
2119
|
-
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
stateMutability: "nonpayable",
|
|
2123
|
-
type: "function",
|
|
2124
|
-
inputs: [
|
|
2125
|
-
{ name: "_zoraRecipient", internalType: "address", type: "address" },
|
|
2126
|
-
{ name: "defaultAdmin", internalType: "address", type: "address" },
|
|
2127
|
-
{ name: "backfiller", internalType: "address", type: "address" },
|
|
2128
|
-
{
|
|
2129
|
-
name: "delegateCommenters",
|
|
2130
|
-
internalType: "address[]",
|
|
2131
|
-
type: "address[]"
|
|
2132
|
-
}
|
|
2133
|
-
],
|
|
2134
|
-
name: "initialize",
|
|
2135
|
-
outputs: []
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
stateMutability: "view",
|
|
2139
|
-
type: "function",
|
|
2140
|
-
inputs: [],
|
|
2141
|
-
name: "nextNonce",
|
|
2142
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2143
|
-
},
|
|
2144
|
-
{
|
|
2145
|
-
stateMutability: "view",
|
|
2146
|
-
type: "function",
|
|
2147
|
-
inputs: [
|
|
2148
|
-
{ name: "owner", internalType: "address", type: "address" },
|
|
2149
|
-
{ name: "nonce", internalType: "uint256", type: "uint256" }
|
|
2150
|
-
],
|
|
2151
|
-
name: "nonceUsed",
|
|
2152
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
2153
|
-
},
|
|
2154
|
-
{
|
|
2155
|
-
stateMutability: "payable",
|
|
2156
|
-
type: "function",
|
|
2157
|
-
inputs: [
|
|
2158
|
-
{
|
|
2159
|
-
name: "permit",
|
|
2160
|
-
internalType: "struct IComments.PermitComment",
|
|
2161
|
-
type: "tuple",
|
|
2162
|
-
components: [
|
|
2163
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2164
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2165
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2166
|
-
{
|
|
2167
|
-
name: "replyTo",
|
|
2168
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2169
|
-
type: "tuple",
|
|
2170
|
-
components: [
|
|
2171
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2172
|
-
{
|
|
2173
|
-
name: "contractAddress",
|
|
2174
|
-
internalType: "address",
|
|
2175
|
-
type: "address"
|
|
2176
|
-
},
|
|
2177
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2178
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2179
|
-
]
|
|
2180
|
-
},
|
|
2181
|
-
{ name: "text", internalType: "string", type: "string" },
|
|
2182
|
-
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2183
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2184
|
-
{ name: "referrer", internalType: "address", type: "address" },
|
|
2185
|
-
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2186
|
-
{
|
|
2187
|
-
name: "destinationChainId",
|
|
2188
|
-
internalType: "uint32",
|
|
2189
|
-
type: "uint32"
|
|
2190
|
-
},
|
|
2191
|
-
{
|
|
2192
|
-
name: "commenterSmartWallet",
|
|
2193
|
-
internalType: "address",
|
|
2194
|
-
type: "address"
|
|
2195
|
-
}
|
|
2196
|
-
]
|
|
2197
|
-
},
|
|
2198
|
-
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
2199
|
-
],
|
|
2200
|
-
name: "permitComment",
|
|
2201
|
-
outputs: []
|
|
2202
|
-
},
|
|
2203
|
-
{
|
|
2204
|
-
stateMutability: "payable",
|
|
2205
|
-
type: "function",
|
|
2206
|
-
inputs: [
|
|
2207
|
-
{
|
|
2208
|
-
name: "permit",
|
|
2209
|
-
internalType: "struct IComments.PermitSparkComment",
|
|
2210
|
-
type: "tuple",
|
|
2211
|
-
components: [
|
|
2212
|
-
{
|
|
2213
|
-
name: "comment",
|
|
2214
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2215
|
-
type: "tuple",
|
|
2216
|
-
components: [
|
|
2217
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2218
|
-
{
|
|
2219
|
-
name: "contractAddress",
|
|
2220
|
-
internalType: "address",
|
|
2221
|
-
type: "address"
|
|
2222
|
-
},
|
|
2223
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2224
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2225
|
-
]
|
|
2226
|
-
},
|
|
2227
|
-
{ name: "sparker", internalType: "address", type: "address" },
|
|
2228
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2229
|
-
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2230
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2231
|
-
{ name: "referrer", internalType: "address", type: "address" },
|
|
2232
|
-
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2233
|
-
{
|
|
2234
|
-
name: "destinationChainId",
|
|
2235
|
-
internalType: "uint32",
|
|
2236
|
-
type: "uint32"
|
|
2237
|
-
}
|
|
2238
|
-
]
|
|
2239
|
-
},
|
|
2240
|
-
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
2241
|
-
],
|
|
2242
|
-
name: "permitSparkComment",
|
|
2243
|
-
outputs: []
|
|
2244
|
-
},
|
|
2245
|
-
{
|
|
2246
|
-
stateMutability: "view",
|
|
2247
|
-
type: "function",
|
|
2248
|
-
inputs: [],
|
|
2249
|
-
name: "protocolRewards",
|
|
2250
|
-
outputs: [
|
|
2251
|
-
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
2252
|
-
]
|
|
2253
|
-
},
|
|
2254
|
-
{
|
|
2255
|
-
stateMutability: "view",
|
|
2256
|
-
type: "function",
|
|
2257
|
-
inputs: [],
|
|
2258
|
-
name: "proxiableUUID",
|
|
2259
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2260
|
-
},
|
|
2261
|
-
{
|
|
2262
|
-
stateMutability: "nonpayable",
|
|
2263
|
-
type: "function",
|
|
2264
|
-
inputs: [
|
|
2265
|
-
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
2266
|
-
{ name: "callerConfirmation", internalType: "address", type: "address" }
|
|
2267
|
-
],
|
|
2268
|
-
name: "renounceRole",
|
|
2269
|
-
outputs: []
|
|
2270
|
-
},
|
|
2271
|
-
{
|
|
2272
|
-
stateMutability: "nonpayable",
|
|
2273
|
-
type: "function",
|
|
2274
|
-
inputs: [
|
|
2275
|
-
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
2276
|
-
{ name: "account", internalType: "address", type: "address" }
|
|
2277
|
-
],
|
|
2278
|
-
name: "revokeRole",
|
|
2279
|
-
outputs: []
|
|
2280
|
-
},
|
|
2281
|
-
{
|
|
2282
|
-
stateMutability: "payable",
|
|
2283
|
-
type: "function",
|
|
2284
|
-
inputs: [
|
|
2285
|
-
{
|
|
2286
|
-
name: "commentIdentifier",
|
|
2287
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2288
|
-
type: "tuple",
|
|
2289
|
-
components: [
|
|
2290
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2291
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2292
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2293
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2294
|
-
]
|
|
2295
|
-
},
|
|
2296
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2297
|
-
{ name: "referrer", internalType: "address", type: "address" }
|
|
2298
|
-
],
|
|
2299
|
-
name: "sparkComment",
|
|
2300
|
-
outputs: []
|
|
2301
|
-
},
|
|
2302
|
-
{
|
|
2303
|
-
stateMutability: "view",
|
|
2304
|
-
type: "function",
|
|
2305
|
-
inputs: [],
|
|
2306
|
-
name: "sparkValue",
|
|
2307
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
stateMutability: "view",
|
|
2311
|
-
type: "function",
|
|
2312
|
-
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
2313
|
-
name: "supportsInterface",
|
|
2314
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
2315
|
-
},
|
|
2316
|
-
{
|
|
2317
|
-
stateMutability: "payable",
|
|
2318
|
-
type: "function",
|
|
2319
|
-
inputs: [
|
|
2320
|
-
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
2321
|
-
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
2322
|
-
],
|
|
2323
|
-
name: "upgradeToAndCall",
|
|
2324
|
-
outputs: []
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
type: "event",
|
|
2328
|
-
anonymous: false,
|
|
2329
|
-
inputs: [
|
|
2330
|
-
{
|
|
2331
|
-
name: "commentId",
|
|
2332
|
-
internalType: "bytes32",
|
|
2333
|
-
type: "bytes32",
|
|
2334
|
-
indexed: true
|
|
2335
|
-
},
|
|
2336
|
-
{
|
|
2337
|
-
name: "comment",
|
|
2338
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2339
|
-
type: "tuple",
|
|
2340
|
-
components: [
|
|
2341
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2342
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2343
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2344
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2345
|
-
],
|
|
2346
|
-
indexed: false
|
|
2347
|
-
},
|
|
2348
|
-
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
2349
|
-
{
|
|
2350
|
-
name: "timestamp",
|
|
2351
|
-
internalType: "uint256",
|
|
2352
|
-
type: "uint256",
|
|
2353
|
-
indexed: false
|
|
2354
|
-
},
|
|
2355
|
-
{
|
|
2356
|
-
name: "originalTransactionId",
|
|
2357
|
-
internalType: "bytes32",
|
|
2358
|
-
type: "bytes32",
|
|
2359
|
-
indexed: false
|
|
2360
|
-
}
|
|
2361
|
-
],
|
|
2362
|
-
name: "BackfilledComment"
|
|
2363
|
-
},
|
|
2364
|
-
{
|
|
2365
|
-
type: "event",
|
|
2366
|
-
anonymous: false,
|
|
2367
|
-
inputs: [
|
|
2368
|
-
{
|
|
2369
|
-
name: "commentId",
|
|
2370
|
-
internalType: "bytes32",
|
|
2371
|
-
type: "bytes32",
|
|
2372
|
-
indexed: true
|
|
2373
|
-
},
|
|
2374
|
-
{
|
|
2375
|
-
name: "comment",
|
|
2376
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2377
|
-
type: "tuple",
|
|
2378
|
-
components: [
|
|
2379
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2380
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2381
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2382
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2383
|
-
],
|
|
2384
|
-
indexed: false
|
|
2385
|
-
},
|
|
2386
|
-
{
|
|
2387
|
-
name: "replyToId",
|
|
2388
|
-
internalType: "bytes32",
|
|
2389
|
-
type: "bytes32",
|
|
2390
|
-
indexed: false
|
|
2391
|
-
},
|
|
2392
|
-
{
|
|
2393
|
-
name: "replyTo",
|
|
2394
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2395
|
-
type: "tuple",
|
|
2396
|
-
components: [
|
|
2397
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2398
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2399
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2400
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2401
|
-
],
|
|
2402
|
-
indexed: false
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
name: "sparksQuantity",
|
|
2406
|
-
internalType: "uint64",
|
|
2407
|
-
type: "uint64",
|
|
2408
|
-
indexed: false
|
|
2409
|
-
},
|
|
2410
|
-
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
2411
|
-
{
|
|
2412
|
-
name: "timestamp",
|
|
2413
|
-
internalType: "uint256",
|
|
2414
|
-
type: "uint256",
|
|
2415
|
-
indexed: false
|
|
2416
|
-
},
|
|
2417
|
-
{
|
|
2418
|
-
name: "referrer",
|
|
2419
|
-
internalType: "address",
|
|
2420
|
-
type: "address",
|
|
2421
|
-
indexed: false
|
|
2422
|
-
}
|
|
2423
|
-
],
|
|
2424
|
-
name: "Commented"
|
|
2425
|
-
},
|
|
2426
|
-
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
2427
|
-
{
|
|
2428
|
-
type: "event",
|
|
2429
|
-
anonymous: false,
|
|
2430
|
-
inputs: [
|
|
2431
|
-
{
|
|
2432
|
-
name: "version",
|
|
2433
|
-
internalType: "uint64",
|
|
2434
|
-
type: "uint64",
|
|
2435
|
-
indexed: false
|
|
2436
|
-
}
|
|
2437
|
-
],
|
|
2438
|
-
name: "Initialized"
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
type: "event",
|
|
2442
|
-
anonymous: false,
|
|
2443
|
-
inputs: [
|
|
2444
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2445
|
-
{
|
|
2446
|
-
name: "previousAdminRole",
|
|
2447
|
-
internalType: "bytes32",
|
|
2448
|
-
type: "bytes32",
|
|
2449
|
-
indexed: true
|
|
2450
|
-
},
|
|
2451
|
-
{
|
|
2452
|
-
name: "newAdminRole",
|
|
2453
|
-
internalType: "bytes32",
|
|
2454
|
-
type: "bytes32",
|
|
2455
|
-
indexed: true
|
|
2456
|
-
}
|
|
2457
|
-
],
|
|
2458
|
-
name: "RoleAdminChanged"
|
|
2459
|
-
},
|
|
2460
|
-
{
|
|
2461
|
-
type: "event",
|
|
2462
|
-
anonymous: false,
|
|
2463
|
-
inputs: [
|
|
2464
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2465
|
-
{
|
|
2466
|
-
name: "account",
|
|
2467
|
-
internalType: "address",
|
|
2468
|
-
type: "address",
|
|
2469
|
-
indexed: true
|
|
2470
|
-
},
|
|
2471
|
-
{
|
|
2472
|
-
name: "sender",
|
|
2473
|
-
internalType: "address",
|
|
2474
|
-
type: "address",
|
|
2475
|
-
indexed: true
|
|
2476
|
-
}
|
|
2477
|
-
],
|
|
2478
|
-
name: "RoleGranted"
|
|
2479
|
-
},
|
|
2480
|
-
{
|
|
2481
|
-
type: "event",
|
|
2482
|
-
anonymous: false,
|
|
2483
|
-
inputs: [
|
|
2484
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2485
|
-
{
|
|
2486
|
-
name: "account",
|
|
2487
|
-
internalType: "address",
|
|
2488
|
-
type: "address",
|
|
2489
|
-
indexed: true
|
|
2490
|
-
},
|
|
2491
|
-
{
|
|
2492
|
-
name: "sender",
|
|
2493
|
-
internalType: "address",
|
|
2494
|
-
type: "address",
|
|
2495
|
-
indexed: true
|
|
2496
|
-
}
|
|
2497
|
-
],
|
|
2498
|
-
name: "RoleRevoked"
|
|
2499
|
-
},
|
|
2500
|
-
{
|
|
2501
|
-
type: "event",
|
|
2502
|
-
anonymous: false,
|
|
2503
|
-
inputs: [
|
|
2504
|
-
{
|
|
2505
|
-
name: "commentId",
|
|
2506
|
-
internalType: "bytes32",
|
|
2507
|
-
type: "bytes32",
|
|
2508
|
-
indexed: true
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
name: "commentIdentifier",
|
|
2512
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
2513
|
-
type: "tuple",
|
|
2514
|
-
components: [
|
|
2515
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
2516
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2517
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2518
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2519
|
-
],
|
|
2520
|
-
indexed: false
|
|
2521
|
-
},
|
|
2522
|
-
{
|
|
2523
|
-
name: "sparksQuantity",
|
|
2524
|
-
internalType: "uint64",
|
|
2525
|
-
type: "uint64",
|
|
2526
|
-
indexed: false
|
|
2527
|
-
},
|
|
2528
|
-
{
|
|
2529
|
-
name: "sparker",
|
|
2530
|
-
internalType: "address",
|
|
2531
|
-
type: "address",
|
|
2532
|
-
indexed: false
|
|
2533
|
-
},
|
|
2534
|
-
{
|
|
2535
|
-
name: "timestamp",
|
|
2536
|
-
internalType: "uint256",
|
|
2537
|
-
type: "uint256",
|
|
2538
|
-
indexed: false
|
|
2539
|
-
}
|
|
2540
|
-
],
|
|
2541
|
-
name: "SparkedComment"
|
|
2542
|
-
},
|
|
2543
|
-
{
|
|
2544
|
-
type: "event",
|
|
2545
|
-
anonymous: false,
|
|
2546
|
-
inputs: [
|
|
2547
|
-
{
|
|
2548
|
-
name: "implementation",
|
|
2549
|
-
internalType: "address",
|
|
2550
|
-
type: "address",
|
|
2551
|
-
indexed: true
|
|
2552
|
-
}
|
|
2553
|
-
],
|
|
2554
|
-
name: "Upgraded"
|
|
2555
|
-
},
|
|
2556
|
-
{ type: "error", inputs: [], name: "AccessControlBadConfirmation" },
|
|
2557
|
-
{
|
|
2558
|
-
type: "error",
|
|
2559
|
-
inputs: [
|
|
2560
|
-
{ name: "account", internalType: "address", type: "address" },
|
|
2561
|
-
{ name: "neededRole", internalType: "bytes32", type: "bytes32" }
|
|
2562
|
-
],
|
|
2563
|
-
name: "AccessControlUnauthorizedAccount"
|
|
2564
|
-
},
|
|
2565
|
-
{
|
|
2566
|
-
type: "error",
|
|
2567
|
-
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
2568
|
-
name: "AddressEmptyCode"
|
|
2569
|
-
},
|
|
2570
|
-
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
2571
|
-
{ type: "error", inputs: [], name: "CannotSparkOwnComment" },
|
|
2572
|
-
{
|
|
2573
|
-
type: "error",
|
|
2574
|
-
inputs: [
|
|
2575
|
-
{ name: "commentAddress", internalType: "address", type: "address" },
|
|
2576
|
-
{ name: "commentTokenId", internalType: "uint256", type: "uint256" },
|
|
2577
|
-
{ name: "replyAddress", internalType: "address", type: "address" },
|
|
2578
|
-
{ name: "replyTokenId", internalType: "uint256", type: "uint256" }
|
|
2579
|
-
],
|
|
2580
|
-
name: "CommentAddressOrTokenIdsDoNotMatch"
|
|
2581
|
-
},
|
|
2582
|
-
{ type: "error", inputs: [], name: "CommentDoesntExist" },
|
|
2583
|
-
{
|
|
2584
|
-
type: "error",
|
|
2585
|
-
inputs: [
|
|
2586
|
-
{ name: "expected", internalType: "address", type: "address" },
|
|
2587
|
-
{ name: "actual", internalType: "address", type: "address" }
|
|
2588
|
-
],
|
|
2589
|
-
name: "CommenterMismatch"
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2592
|
-
type: "error",
|
|
2593
|
-
inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
|
|
2594
|
-
name: "DuplicateComment"
|
|
2595
|
-
},
|
|
2596
|
-
{
|
|
2597
|
-
type: "error",
|
|
2598
|
-
inputs: [
|
|
2599
|
-
{ name: "implementation", internalType: "address", type: "address" }
|
|
2600
|
-
],
|
|
2601
|
-
name: "ERC1967InvalidImplementation"
|
|
2602
|
-
},
|
|
2603
|
-
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
2604
|
-
{
|
|
2605
|
-
type: "error",
|
|
2606
|
-
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
2607
|
-
name: "ERC2612ExpiredSignature"
|
|
2608
|
-
},
|
|
2609
|
-
{ type: "error", inputs: [], name: "EmptyComment" },
|
|
2610
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2611
|
-
{
|
|
2612
|
-
type: "error",
|
|
2613
|
-
inputs: [
|
|
2614
|
-
{
|
|
2615
|
-
name: "wrongDestinationChainId",
|
|
2616
|
-
internalType: "uint256",
|
|
2617
|
-
type: "uint256"
|
|
1487
|
+
matchedAbiItem = abiItem;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
if (matchedAbiItem)
|
|
1491
|
+
return matchedAbiItem;
|
|
1492
|
+
return abiItems[0];
|
|
1493
|
+
}
|
|
1494
|
+
function isArgOfType(arg, abiParameter) {
|
|
1495
|
+
const argType = typeof arg;
|
|
1496
|
+
const abiParameterType = abiParameter.type;
|
|
1497
|
+
switch (abiParameterType) {
|
|
1498
|
+
case "address":
|
|
1499
|
+
return isAddress(arg, { strict: false });
|
|
1500
|
+
case "bool":
|
|
1501
|
+
return argType === "boolean";
|
|
1502
|
+
case "function":
|
|
1503
|
+
return argType === "string";
|
|
1504
|
+
case "string":
|
|
1505
|
+
return argType === "string";
|
|
1506
|
+
default: {
|
|
1507
|
+
if (abiParameterType === "tuple" && "components" in abiParameter)
|
|
1508
|
+
return Object.values(abiParameter.components).every((component, index) => {
|
|
1509
|
+
return isArgOfType(Object.values(arg)[index], component);
|
|
1510
|
+
});
|
|
1511
|
+
if (/^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)?$/.test(abiParameterType))
|
|
1512
|
+
return argType === "number" || argType === "bigint";
|
|
1513
|
+
if (/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(abiParameterType))
|
|
1514
|
+
return argType === "string" || arg instanceof Uint8Array;
|
|
1515
|
+
if (/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(abiParameterType)) {
|
|
1516
|
+
return Array.isArray(arg) && arg.every((x) => isArgOfType(x, {
|
|
1517
|
+
...abiParameter,
|
|
1518
|
+
// Pop off `[]` or `[M]` from end of type
|
|
1519
|
+
type: abiParameterType.replace(/(\[[0-9]{0,}\])$/, "")
|
|
1520
|
+
}));
|
|
2618
1521
|
}
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
},
|
|
2622
|
-
{
|
|
2623
|
-
type: "error",
|
|
2624
|
-
inputs: [
|
|
2625
|
-
{ name: "actual", internalType: "uint256", type: "uint256" },
|
|
2626
|
-
{ name: "expected", internalType: "uint256", type: "uint256" }
|
|
2627
|
-
],
|
|
2628
|
-
name: "IncorrectETHAmountForSparks"
|
|
2629
|
-
},
|
|
2630
|
-
{
|
|
2631
|
-
type: "error",
|
|
2632
|
-
inputs: [
|
|
2633
|
-
{ name: "account", internalType: "address", type: "address" },
|
|
2634
|
-
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
2635
|
-
],
|
|
2636
|
-
name: "InvalidAccountNonce"
|
|
2637
|
-
},
|
|
2638
|
-
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
2639
|
-
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
2640
|
-
{ type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
|
|
2641
|
-
{ type: "error", inputs: [], name: "NoFundsRecipient" },
|
|
2642
|
-
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
2643
|
-
{ type: "error", inputs: [], name: "NotSmartWallet" },
|
|
2644
|
-
{ type: "error", inputs: [], name: "NotSmartWalletOwner" },
|
|
2645
|
-
{ type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
|
|
2646
|
-
{ type: "error", inputs: [], name: "OnlySparksContract" },
|
|
2647
|
-
{ type: "error", inputs: [], name: "TransferFailed" },
|
|
2648
|
-
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
2649
|
-
{
|
|
2650
|
-
type: "error",
|
|
2651
|
-
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
2652
|
-
name: "UUPSUnsupportedProxiableUUID"
|
|
2653
|
-
},
|
|
2654
|
-
{
|
|
2655
|
-
type: "error",
|
|
2656
|
-
inputs: [
|
|
2657
|
-
{ name: "currentName", internalType: "string", type: "string" },
|
|
2658
|
-
{ name: "newName", internalType: "string", type: "string" }
|
|
2659
|
-
],
|
|
2660
|
-
name: "UpgradeToMismatchedContractName"
|
|
1522
|
+
return false;
|
|
1523
|
+
}
|
|
2661
1524
|
}
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
1525
|
+
}
|
|
1526
|
+
function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
1527
|
+
for (const parameterIndex in sourceParameters) {
|
|
1528
|
+
const sourceParameter = sourceParameters[parameterIndex];
|
|
1529
|
+
const targetParameter = targetParameters[parameterIndex];
|
|
1530
|
+
if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
|
|
1531
|
+
return getAmbiguousTypes(sourceParameter.components, targetParameter.components, args[parameterIndex]);
|
|
1532
|
+
const types = [sourceParameter.type, targetParameter.type];
|
|
1533
|
+
const ambiguous = (() => {
|
|
1534
|
+
if (types.includes("address") && types.includes("bytes20"))
|
|
1535
|
+
return true;
|
|
1536
|
+
if (types.includes("address") && types.includes("string"))
|
|
1537
|
+
return isAddress(args[parameterIndex], { strict: false });
|
|
1538
|
+
if (types.includes("address") && types.includes("bytes"))
|
|
1539
|
+
return isAddress(args[parameterIndex], { strict: false });
|
|
1540
|
+
return false;
|
|
1541
|
+
})();
|
|
1542
|
+
if (ambiguous)
|
|
1543
|
+
return types;
|
|
1544
|
+
}
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
var init_getAbiItem = __esm({
|
|
1548
|
+
"../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
|
|
1549
|
+
"use strict";
|
|
1550
|
+
init_abi();
|
|
1551
|
+
init_isHex();
|
|
1552
|
+
init_isAddress();
|
|
1553
|
+
init_toEventSelector();
|
|
1554
|
+
init_toFunctionSelector();
|
|
1555
|
+
}
|
|
1556
|
+
});
|
|
1557
|
+
|
|
1558
|
+
// src/index.ts
|
|
1559
|
+
var src_exports = {};
|
|
1560
|
+
__export(src_exports, {
|
|
1561
|
+
PremintConfigVersion: () => PremintConfigVersion,
|
|
1562
|
+
contracts1155: () => __exports,
|
|
1563
|
+
encodePremintConfig: () => encodePremintConfig,
|
|
1564
|
+
erc20MinterABI: () => erc20MinterABI,
|
|
1565
|
+
erc20MinterAddress: () => erc20MinterAddress,
|
|
1566
|
+
erc20MinterConfig: () => erc20MinterConfig,
|
|
1567
|
+
erc20ZABI: () => erc20ZABI,
|
|
1568
|
+
erc20ZRoyaltiesABI: () => erc20ZRoyaltiesABI,
|
|
1569
|
+
erc20ZRoyaltiesAddress: () => erc20ZRoyaltiesAddress,
|
|
1570
|
+
erc20ZRoyaltiesConfig: () => erc20ZRoyaltiesConfig,
|
|
1571
|
+
iPremintDefinitionsABI: () => iPremintDefinitionsABI,
|
|
1572
|
+
iSponsoredSparksSpenderActionABI: () => iSponsoredSparksSpenderActionABI,
|
|
1573
|
+
iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
|
|
1574
|
+
mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
|
|
1575
|
+
mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
|
|
1576
|
+
mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
|
|
1577
|
+
mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
|
|
1578
|
+
mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
|
|
1579
|
+
premintTypedDataDefinition: () => premintTypedDataDefinition,
|
|
1580
|
+
premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
|
|
1581
|
+
premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
|
|
1582
|
+
protocolRewardsABI: () => protocolRewardsABI,
|
|
1583
|
+
protocolRewardsAddress: () => protocolRewardsAddress,
|
|
1584
|
+
protocolRewardsConfig: () => protocolRewardsConfig,
|
|
1585
|
+
safeTransferSwapAbiParameters: () => safeTransferSwapAbiParameters,
|
|
1586
|
+
secondarySwapABI: () => secondarySwapABI,
|
|
1587
|
+
secondarySwapAddress: () => secondarySwapAddress,
|
|
1588
|
+
secondarySwapConfig: () => secondarySwapConfig,
|
|
1589
|
+
sparks: () => sparks_exports,
|
|
1590
|
+
sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
|
|
1591
|
+
sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
|
|
1592
|
+
sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
|
|
1593
|
+
sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
|
|
1594
|
+
sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
|
|
1595
|
+
upgradeGateABI: () => upgradeGateABI,
|
|
1596
|
+
upgradeGateAddress: () => upgradeGateAddress,
|
|
1597
|
+
upgradeGateConfig: () => upgradeGateConfig,
|
|
1598
|
+
wethABI: () => wethABI,
|
|
1599
|
+
wethAddress: () => wethAddress,
|
|
1600
|
+
wethConfig: () => wethConfig,
|
|
1601
|
+
zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
|
|
1602
|
+
zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
|
|
1603
|
+
zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
|
|
1604
|
+
zoraCreator1155ImplABI: () => zoraCreator1155ImplABI,
|
|
1605
|
+
zoraCreator1155PremintExecutorImplABI: () => zoraCreator1155PremintExecutorImplABI,
|
|
1606
|
+
zoraCreator1155PremintExecutorImplAddress: () => zoraCreator1155PremintExecutorImplAddress,
|
|
1607
|
+
zoraCreator1155PremintExecutorImplConfig: () => zoraCreator1155PremintExecutorImplConfig,
|
|
1608
|
+
zoraCreatorFixedPriceSaleStrategyABI: () => zoraCreatorFixedPriceSaleStrategyABI,
|
|
1609
|
+
zoraCreatorFixedPriceSaleStrategyAddress: () => zoraCreatorFixedPriceSaleStrategyAddress,
|
|
1610
|
+
zoraCreatorFixedPriceSaleStrategyConfig: () => zoraCreatorFixedPriceSaleStrategyConfig,
|
|
1611
|
+
zoraCreatorMerkleMinterStrategyABI: () => zoraCreatorMerkleMinterStrategyABI,
|
|
1612
|
+
zoraCreatorMerkleMinterStrategyAddress: () => zoraCreatorMerkleMinterStrategyAddress,
|
|
1613
|
+
zoraCreatorMerkleMinterStrategyConfig: () => zoraCreatorMerkleMinterStrategyConfig,
|
|
1614
|
+
zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
|
|
1615
|
+
zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
|
|
1616
|
+
zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
|
|
1617
|
+
zoraMints1155ABI: () => zoraMints1155ABI,
|
|
1618
|
+
zoraMints1155Address: () => zoraMints1155Address,
|
|
1619
|
+
zoraMints1155Config: () => zoraMints1155Config,
|
|
1620
|
+
zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
|
|
1621
|
+
zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
|
|
1622
|
+
zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
|
|
1623
|
+
zoraSparks1155ABI: () => zoraSparks1155ABI,
|
|
1624
|
+
zoraSparks1155Address: () => zoraSparks1155Address,
|
|
1625
|
+
zoraSparks1155Config: () => zoraSparks1155Config,
|
|
1626
|
+
zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
|
|
1627
|
+
zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
|
|
1628
|
+
zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig,
|
|
1629
|
+
zoraTimedSaleStrategyABI: () => zoraTimedSaleStrategyABI,
|
|
1630
|
+
zoraTimedSaleStrategyAddress: () => zoraTimedSaleStrategyAddress,
|
|
1631
|
+
zoraTimedSaleStrategyConfig: () => zoraTimedSaleStrategyConfig
|
|
1632
|
+
});
|
|
1633
|
+
module.exports = __toCommonJS(src_exports);
|
|
1634
|
+
|
|
1635
|
+
// src/generated/wagmi.ts
|
|
2671
1636
|
var erc20MinterABI = [
|
|
2672
1637
|
{
|
|
2673
1638
|
stateMutability: "nonpayable",
|
|
@@ -6487,7 +5452,6 @@ var zoraCreator1155FactoryImplABI = [
|
|
|
6487
5452
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
6488
5453
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
6489
5454
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
6490
|
-
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
6491
5455
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
6492
5456
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
6493
5457
|
{
|
|
@@ -7909,7 +6873,6 @@ var zoraCreator1155ImplABI = [
|
|
|
7909
6873
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
7910
6874
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
7911
6875
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
7912
|
-
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
7913
6876
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
7914
6877
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
7915
6878
|
{
|
|
@@ -12417,17 +11380,7 @@ var zoraSparksManagerImplConfig = {
|
|
|
12417
11380
|
abi: zoraSparksManagerImplABI
|
|
12418
11381
|
};
|
|
12419
11382
|
var zoraTimedSaleStrategyABI = [
|
|
12420
|
-
{
|
|
12421
|
-
stateMutability: "nonpayable",
|
|
12422
|
-
type: "constructor",
|
|
12423
|
-
inputs: [
|
|
12424
|
-
{
|
|
12425
|
-
name: "_comments",
|
|
12426
|
-
internalType: "contract IComments",
|
|
12427
|
-
type: "address"
|
|
12428
|
-
}
|
|
12429
|
-
]
|
|
12430
|
-
},
|
|
11383
|
+
{ stateMutability: "nonpayable", type: "constructor", inputs: [] },
|
|
12431
11384
|
{
|
|
12432
11385
|
stateMutability: "view",
|
|
12433
11386
|
type: "function",
|
|
@@ -12476,15 +11429,6 @@ var zoraTimedSaleStrategyABI = [
|
|
|
12476
11429
|
}
|
|
12477
11430
|
]
|
|
12478
11431
|
},
|
|
12479
|
-
{
|
|
12480
|
-
stateMutability: "view",
|
|
12481
|
-
type: "function",
|
|
12482
|
-
inputs: [],
|
|
12483
|
-
name: "comments",
|
|
12484
|
-
outputs: [
|
|
12485
|
-
{ name: "", internalType: "contract IComments", type: "address" }
|
|
12486
|
-
]
|
|
12487
|
-
},
|
|
12488
11432
|
{
|
|
12489
11433
|
stateMutability: "pure",
|
|
12490
11434
|
type: "function",
|
|
@@ -12554,13 +11498,6 @@ var zoraTimedSaleStrategyABI = [
|
|
|
12554
11498
|
{ name: "createReferral", internalType: "address", type: "address" }
|
|
12555
11499
|
]
|
|
12556
11500
|
},
|
|
12557
|
-
{
|
|
12558
|
-
stateMutability: "view",
|
|
12559
|
-
type: "function",
|
|
12560
|
-
inputs: [],
|
|
12561
|
-
name: "implementation",
|
|
12562
|
-
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
12563
|
-
},
|
|
12564
11501
|
{
|
|
12565
11502
|
stateMutability: "nonpayable",
|
|
12566
11503
|
type: "function",
|
|
@@ -12918,43 +11855,6 @@ var zoraTimedSaleStrategyABI = [
|
|
|
12918
11855
|
],
|
|
12919
11856
|
name: "MintComment"
|
|
12920
11857
|
},
|
|
12921
|
-
{
|
|
12922
|
-
type: "event",
|
|
12923
|
-
anonymous: false,
|
|
12924
|
-
inputs: [
|
|
12925
|
-
{
|
|
12926
|
-
name: "commentId",
|
|
12927
|
-
internalType: "bytes32",
|
|
12928
|
-
type: "bytes32",
|
|
12929
|
-
indexed: true
|
|
12930
|
-
},
|
|
12931
|
-
{
|
|
12932
|
-
name: "commentIdentifier",
|
|
12933
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
12934
|
-
type: "tuple",
|
|
12935
|
-
components: [
|
|
12936
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
12937
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
12938
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
12939
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
12940
|
-
],
|
|
12941
|
-
indexed: false
|
|
12942
|
-
},
|
|
12943
|
-
{
|
|
12944
|
-
name: "mintQuantity",
|
|
12945
|
-
internalType: "uint256",
|
|
12946
|
-
type: "uint256",
|
|
12947
|
-
indexed: false
|
|
12948
|
-
},
|
|
12949
|
-
{
|
|
12950
|
-
name: "comment",
|
|
12951
|
-
internalType: "string",
|
|
12952
|
-
type: "string",
|
|
12953
|
-
indexed: false
|
|
12954
|
-
}
|
|
12955
|
-
],
|
|
12956
|
-
name: "MintedAndCommented"
|
|
12957
|
-
},
|
|
12958
11858
|
{
|
|
12959
11859
|
type: "event",
|
|
12960
11860
|
anonymous: false,
|
|
@@ -13231,7 +12131,6 @@ var zoraTimedSaleStrategyABI = [
|
|
|
13231
12131
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
13232
12132
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
13233
12133
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
13234
|
-
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
13235
12134
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
13236
12135
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
13237
12136
|
{
|
|
@@ -13285,46 +12184,7 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
13285
12184
|
abi: zoraTimedSaleStrategyABI
|
|
13286
12185
|
};
|
|
13287
12186
|
|
|
13288
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
13289
|
-
function parseUnits(value, decimals) {
|
|
13290
|
-
let [integer, fraction = "0"] = value.split(".");
|
|
13291
|
-
const negative = integer.startsWith("-");
|
|
13292
|
-
if (negative)
|
|
13293
|
-
integer = integer.slice(1);
|
|
13294
|
-
fraction = fraction.replace(/(0+)$/, "");
|
|
13295
|
-
if (decimals === 0) {
|
|
13296
|
-
if (Math.round(Number(`.${fraction}`)) === 1)
|
|
13297
|
-
integer = `${BigInt(integer) + 1n}`;
|
|
13298
|
-
fraction = "";
|
|
13299
|
-
} else if (fraction.length > decimals) {
|
|
13300
|
-
const [left, unit, right] = [
|
|
13301
|
-
fraction.slice(0, decimals - 1),
|
|
13302
|
-
fraction.slice(decimals - 1, decimals),
|
|
13303
|
-
fraction.slice(decimals)
|
|
13304
|
-
];
|
|
13305
|
-
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
13306
|
-
if (rounded > 9)
|
|
13307
|
-
fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
13308
|
-
else
|
|
13309
|
-
fraction = `${left}${rounded}`;
|
|
13310
|
-
if (fraction.length > decimals) {
|
|
13311
|
-
fraction = fraction.slice(1);
|
|
13312
|
-
integer = `${BigInt(integer) + 1n}`;
|
|
13313
|
-
}
|
|
13314
|
-
fraction = fraction.slice(0, decimals);
|
|
13315
|
-
} else {
|
|
13316
|
-
fraction = fraction.padEnd(decimals, "0");
|
|
13317
|
-
}
|
|
13318
|
-
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
13319
|
-
}
|
|
13320
|
-
|
|
13321
|
-
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
13322
|
-
init_unit();
|
|
13323
|
-
function parseEther(ether, unit = "wei") {
|
|
13324
|
-
return parseUnits(ether, etherUnits[unit]);
|
|
13325
|
-
}
|
|
13326
|
-
|
|
13327
|
-
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
|
|
12187
|
+
// ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
|
|
13328
12188
|
init_encodeAbiParameters();
|
|
13329
12189
|
init_getAbiItem();
|
|
13330
12190
|
init_toHex();
|
|
@@ -13337,16 +12197,6 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
|
|
|
13337
12197
|
PremintConfigVersion2["V3"] = "3";
|
|
13338
12198
|
return PremintConfigVersion2;
|
|
13339
12199
|
})(PremintConfigVersion || {});
|
|
13340
|
-
var emptyCommentIdentifier = () => {
|
|
13341
|
-
const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
13342
|
-
const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
13343
|
-
return {
|
|
13344
|
-
commenter: zeroAddress,
|
|
13345
|
-
contractAddress: zeroAddress,
|
|
13346
|
-
tokenId: 0n,
|
|
13347
|
-
nonce: zeroHash
|
|
13348
|
-
};
|
|
13349
|
-
};
|
|
13350
12200
|
|
|
13351
12201
|
// src/typedData.ts
|
|
13352
12202
|
var premintTypedDataDomain = ({
|
|
@@ -13637,71 +12487,6 @@ var sponsoredSparksBatchTypedDataDefinition = ({
|
|
|
13637
12487
|
verifyingContract: sponsoredSparksSpenderAddress[chainId]
|
|
13638
12488
|
}
|
|
13639
12489
|
});
|
|
13640
|
-
var commentIdentifierType = [
|
|
13641
|
-
{ name: "contractAddress", type: "address" },
|
|
13642
|
-
{ name: "tokenId", type: "uint256" },
|
|
13643
|
-
{ name: "commenter", type: "address" },
|
|
13644
|
-
{ name: "nonce", type: "bytes32" }
|
|
13645
|
-
];
|
|
13646
|
-
var permitCommentTypedDataType = {
|
|
13647
|
-
PermitComment: [
|
|
13648
|
-
{ name: "contractAddress", type: "address" },
|
|
13649
|
-
{ name: "tokenId", type: "uint256" },
|
|
13650
|
-
{ name: "commenter", type: "address" },
|
|
13651
|
-
{ name: "replyTo", type: "CommentIdentifier" },
|
|
13652
|
-
{ name: "text", type: "string" },
|
|
13653
|
-
{ name: "deadline", type: "uint256" },
|
|
13654
|
-
{ name: "nonce", type: "bytes32" },
|
|
13655
|
-
{ name: "commenterSmartWallet", type: "address" },
|
|
13656
|
-
{ name: "referrer", type: "address" },
|
|
13657
|
-
{ name: "sourceChainId", type: "uint32" },
|
|
13658
|
-
{ name: "destinationChainId", type: "uint32" }
|
|
13659
|
-
],
|
|
13660
|
-
CommentIdentifier: commentIdentifierType
|
|
13661
|
-
};
|
|
13662
|
-
var permitSparkCommentTypedDataType = {
|
|
13663
|
-
PermitSparkComment: [
|
|
13664
|
-
{ name: "comment", type: "CommentIdentifier" },
|
|
13665
|
-
{ name: "sparker", type: "address" },
|
|
13666
|
-
{ name: "sparksQuantity", type: "uint64" },
|
|
13667
|
-
{ name: "deadline", type: "uint256" },
|
|
13668
|
-
{ name: "nonce", type: "bytes32" },
|
|
13669
|
-
{ name: "referrer", type: "address" },
|
|
13670
|
-
{ name: "sourceChainId", type: "uint32" },
|
|
13671
|
-
{ name: "destinationChainId", type: "uint32" }
|
|
13672
|
-
],
|
|
13673
|
-
CommentIdentifier: commentIdentifierType
|
|
13674
|
-
};
|
|
13675
|
-
var commentsDomain = ({
|
|
13676
|
-
signingChainId,
|
|
13677
|
-
destinationChainId
|
|
13678
|
-
}) => ({
|
|
13679
|
-
chainId: signingChainId,
|
|
13680
|
-
name: "Comments",
|
|
13681
|
-
version: "1",
|
|
13682
|
-
verifyingContract: commentsAddress[destinationChainId]
|
|
13683
|
-
});
|
|
13684
|
-
var permitCommentTypedDataDefinition = (message, signingAccount) => ({
|
|
13685
|
-
types: permitCommentTypedDataType,
|
|
13686
|
-
message,
|
|
13687
|
-
primaryType: "PermitComment",
|
|
13688
|
-
domain: commentsDomain({
|
|
13689
|
-
signingChainId: message.sourceChainId,
|
|
13690
|
-
destinationChainId: message.destinationChainId
|
|
13691
|
-
}),
|
|
13692
|
-
account: signingAccount || message.commenter
|
|
13693
|
-
});
|
|
13694
|
-
var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
|
|
13695
|
-
types: permitSparkCommentTypedDataType,
|
|
13696
|
-
message,
|
|
13697
|
-
primaryType: "PermitSparkComment",
|
|
13698
|
-
domain: commentsDomain({
|
|
13699
|
-
signingChainId: message.sourceChainId,
|
|
13700
|
-
destinationChainId: message.destinationChainId
|
|
13701
|
-
}),
|
|
13702
|
-
account: signingAccount || message.sparker
|
|
13703
|
-
});
|
|
13704
|
-
var sparkValue = () => parseEther("0.000001");
|
|
13705
12490
|
|
|
13706
12491
|
// src/encoding.ts
|
|
13707
12492
|
var safeTransferSwapAbiParameters = [
|
|
@@ -14041,11 +12826,7 @@ var addresses2 = {
|
|
|
14041
12826
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14042
12827
|
0 && (module.exports = {
|
|
14043
12828
|
PremintConfigVersion,
|
|
14044
|
-
commentsABI,
|
|
14045
|
-
commentsAddress,
|
|
14046
|
-
commentsConfig,
|
|
14047
12829
|
contracts1155,
|
|
14048
|
-
emptyCommentIdentifier,
|
|
14049
12830
|
encodePremintConfig,
|
|
14050
12831
|
erc20MinterABI,
|
|
14051
12832
|
erc20MinterAddress,
|
|
@@ -14062,8 +12843,6 @@ var addresses2 = {
|
|
|
14062
12843
|
mintsEthUnwrapperAndCallerConfig,
|
|
14063
12844
|
mintsSafeTransferBatchTypedDataDefinition,
|
|
14064
12845
|
mintsSafeTransferTypedDataDefinition,
|
|
14065
|
-
permitCommentTypedDataDefinition,
|
|
14066
|
-
permitSparkCommentTypedDataDefinition,
|
|
14067
12846
|
premintTypedDataDefinition,
|
|
14068
12847
|
premintV1TypedDataDefinition,
|
|
14069
12848
|
premintV2TypedDataDefinition,
|
|
@@ -14074,7 +12853,6 @@ var addresses2 = {
|
|
|
14074
12853
|
secondarySwapABI,
|
|
14075
12854
|
secondarySwapAddress,
|
|
14076
12855
|
secondarySwapConfig,
|
|
14077
|
-
sparkValue,
|
|
14078
12856
|
sparks,
|
|
14079
12857
|
sponsoredSparksBatchTransferTypedDataType,
|
|
14080
12858
|
sponsoredSparksBatchTypedDataDefinition,
|