@zoralabs/protocol-deployments 0.1.6-DEV.0 → 0.1.7
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 +31 -0
- package/CHANGELOG.md +9 -2
- package/dist/generated/1155.d.ts +2 -0
- package/dist/generated/1155.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +2336 -223
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +769 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +763 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated/1155.ts +2 -0
- package/src/generated/mints.ts +6 -6
- package/src/generated/wagmi.ts +837 -8
- package/tsconfig.build.json +10 -0
- package/tsup.config.ts +11 -0
- package/wagmi.config.ts +189 -0
- package/json/1155.json +0 -212
- package/json/mints.json +0 -46
package/dist/index.cjs
CHANGED
|
@@ -21,11 +21,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
contracts1155: () => __exports,
|
|
24
|
+
erc20MinterABI: () => erc20MinterABI,
|
|
25
|
+
erc20MinterAddress: () => erc20MinterAddress,
|
|
26
|
+
erc20MinterConfig: () => erc20MinterConfig,
|
|
24
27
|
iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
|
|
25
28
|
mints: () => mints_exports,
|
|
26
29
|
mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
|
|
27
30
|
mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
|
|
28
31
|
mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
|
|
32
|
+
protocolRewardsABI: () => protocolRewardsABI,
|
|
33
|
+
protocolRewardsAddress: () => protocolRewardsAddress,
|
|
34
|
+
protocolRewardsConfig: () => protocolRewardsConfig,
|
|
29
35
|
zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
|
|
30
36
|
zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
|
|
31
37
|
zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
|
|
@@ -52,6 +58,479 @@ __export(src_exports, {
|
|
|
52
58
|
module.exports = __toCommonJS(src_exports);
|
|
53
59
|
|
|
54
60
|
// src/generated/wagmi.ts
|
|
61
|
+
var erc20MinterABI = [
|
|
62
|
+
{
|
|
63
|
+
stateMutability: "pure",
|
|
64
|
+
type: "function",
|
|
65
|
+
inputs: [{ name: "totalReward", internalType: "uint256", type: "uint256" }],
|
|
66
|
+
name: "computePaidMintRewards",
|
|
67
|
+
outputs: [
|
|
68
|
+
{
|
|
69
|
+
name: "",
|
|
70
|
+
internalType: "struct IERC20Minter.RewardsSettings",
|
|
71
|
+
type: "tuple",
|
|
72
|
+
components: [
|
|
73
|
+
{
|
|
74
|
+
name: "createReferralReward",
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
type: "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "mintReferralReward",
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
type: "uint256"
|
|
82
|
+
},
|
|
83
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
84
|
+
{
|
|
85
|
+
name: "firstMinterReward",
|
|
86
|
+
internalType: "uint256",
|
|
87
|
+
type: "uint256"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
stateMutability: "pure",
|
|
95
|
+
type: "function",
|
|
96
|
+
inputs: [
|
|
97
|
+
{ name: "totalReward", internalType: "uint256", type: "uint256" },
|
|
98
|
+
{ name: "rewardPct", internalType: "uint256", type: "uint256" }
|
|
99
|
+
],
|
|
100
|
+
name: "computeReward",
|
|
101
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
stateMutability: "pure",
|
|
105
|
+
type: "function",
|
|
106
|
+
inputs: [{ name: "totalValue", internalType: "uint256", type: "uint256" }],
|
|
107
|
+
name: "computeTotalReward",
|
|
108
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
stateMutability: "pure",
|
|
112
|
+
type: "function",
|
|
113
|
+
inputs: [],
|
|
114
|
+
name: "contractName",
|
|
115
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
stateMutability: "pure",
|
|
119
|
+
type: "function",
|
|
120
|
+
inputs: [],
|
|
121
|
+
name: "contractURI",
|
|
122
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
stateMutability: "pure",
|
|
126
|
+
type: "function",
|
|
127
|
+
inputs: [],
|
|
128
|
+
name: "contractVersion",
|
|
129
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
stateMutability: "view",
|
|
133
|
+
type: "function",
|
|
134
|
+
inputs: [
|
|
135
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
136
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
137
|
+
],
|
|
138
|
+
name: "getCreateReferral",
|
|
139
|
+
outputs: [
|
|
140
|
+
{ name: "createReferral", internalType: "address", type: "address" }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
stateMutability: "view",
|
|
145
|
+
type: "function",
|
|
146
|
+
inputs: [
|
|
147
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
148
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
149
|
+
],
|
|
150
|
+
name: "getFirstMinter",
|
|
151
|
+
outputs: [
|
|
152
|
+
{ name: "firstMinter", internalType: "address", type: "address" }
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
stateMutability: "view",
|
|
157
|
+
type: "function",
|
|
158
|
+
inputs: [
|
|
159
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
160
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
161
|
+
{ name: "wallet", internalType: "address", type: "address" }
|
|
162
|
+
],
|
|
163
|
+
name: "getMintedPerWallet",
|
|
164
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
stateMutability: "nonpayable",
|
|
168
|
+
type: "function",
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
name: "_zoraRewardRecipientAddress",
|
|
172
|
+
internalType: "address",
|
|
173
|
+
type: "address"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
name: "initialize",
|
|
177
|
+
outputs: []
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
stateMutability: "nonpayable",
|
|
181
|
+
type: "function",
|
|
182
|
+
inputs: [
|
|
183
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
184
|
+
{ name: "quantity", internalType: "uint256", type: "uint256" },
|
|
185
|
+
{ name: "tokenAddress", internalType: "address", type: "address" },
|
|
186
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
187
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
188
|
+
{ name: "currency", internalType: "address", type: "address" },
|
|
189
|
+
{ name: "mintReferral", internalType: "address", type: "address" },
|
|
190
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
191
|
+
],
|
|
192
|
+
name: "mint",
|
|
193
|
+
outputs: []
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
stateMutability: "pure",
|
|
197
|
+
type: "function",
|
|
198
|
+
inputs: [
|
|
199
|
+
{ name: "", internalType: "address", type: "address" },
|
|
200
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
201
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
202
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
203
|
+
{ name: "", internalType: "bytes", type: "bytes" }
|
|
204
|
+
],
|
|
205
|
+
name: "requestMint",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
name: "",
|
|
209
|
+
internalType: "struct ICreatorCommands.CommandSet",
|
|
210
|
+
type: "tuple",
|
|
211
|
+
components: [
|
|
212
|
+
{
|
|
213
|
+
name: "commands",
|
|
214
|
+
internalType: "struct ICreatorCommands.Command[]",
|
|
215
|
+
type: "tuple[]",
|
|
216
|
+
components: [
|
|
217
|
+
{
|
|
218
|
+
name: "method",
|
|
219
|
+
internalType: "enum ICreatorCommands.CreatorActions",
|
|
220
|
+
type: "uint8"
|
|
221
|
+
},
|
|
222
|
+
{ name: "args", internalType: "bytes", type: "bytes" }
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{ name: "at", internalType: "uint256", type: "uint256" }
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
stateMutability: "nonpayable",
|
|
232
|
+
type: "function",
|
|
233
|
+
inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
|
|
234
|
+
name: "resetSale",
|
|
235
|
+
outputs: []
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
stateMutability: "view",
|
|
239
|
+
type: "function",
|
|
240
|
+
inputs: [
|
|
241
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
242
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
243
|
+
],
|
|
244
|
+
name: "sale",
|
|
245
|
+
outputs: [
|
|
246
|
+
{
|
|
247
|
+
name: "",
|
|
248
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
249
|
+
type: "tuple",
|
|
250
|
+
components: [
|
|
251
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
252
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
253
|
+
{
|
|
254
|
+
name: "maxTokensPerAddress",
|
|
255
|
+
internalType: "uint64",
|
|
256
|
+
type: "uint64"
|
|
257
|
+
},
|
|
258
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
259
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
260
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
stateMutability: "nonpayable",
|
|
267
|
+
type: "function",
|
|
268
|
+
inputs: [
|
|
269
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
270
|
+
{
|
|
271
|
+
name: "salesConfig",
|
|
272
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
273
|
+
type: "tuple",
|
|
274
|
+
components: [
|
|
275
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
276
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
277
|
+
{
|
|
278
|
+
name: "maxTokensPerAddress",
|
|
279
|
+
internalType: "uint64",
|
|
280
|
+
type: "uint64"
|
|
281
|
+
},
|
|
282
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
283
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
284
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
name: "setSale",
|
|
289
|
+
outputs: []
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
stateMutability: "nonpayable",
|
|
293
|
+
type: "function",
|
|
294
|
+
inputs: [{ name: "recipient", internalType: "address", type: "address" }],
|
|
295
|
+
name: "setZoraRewardsRecipient",
|
|
296
|
+
outputs: []
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
stateMutability: "pure",
|
|
300
|
+
type: "function",
|
|
301
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
302
|
+
name: "supportsInterface",
|
|
303
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
stateMutability: "pure",
|
|
307
|
+
type: "function",
|
|
308
|
+
inputs: [],
|
|
309
|
+
name: "totalRewardPct",
|
|
310
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
stateMutability: "view",
|
|
314
|
+
type: "function",
|
|
315
|
+
inputs: [],
|
|
316
|
+
name: "zoraRewardRecipientAddress",
|
|
317
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
type: "event",
|
|
321
|
+
anonymous: false,
|
|
322
|
+
inputs: [
|
|
323
|
+
{
|
|
324
|
+
name: "rewardPercentage",
|
|
325
|
+
internalType: "uint256",
|
|
326
|
+
type: "uint256",
|
|
327
|
+
indexed: false
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
name: "ERC20MinterInitialized"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
type: "event",
|
|
334
|
+
anonymous: false,
|
|
335
|
+
inputs: [
|
|
336
|
+
{
|
|
337
|
+
name: "createReferral",
|
|
338
|
+
internalType: "address",
|
|
339
|
+
type: "address",
|
|
340
|
+
indexed: true
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "mintReferral",
|
|
344
|
+
internalType: "address",
|
|
345
|
+
type: "address",
|
|
346
|
+
indexed: true
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: "firstMinter",
|
|
350
|
+
internalType: "address",
|
|
351
|
+
type: "address",
|
|
352
|
+
indexed: true
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: "zora",
|
|
356
|
+
internalType: "address",
|
|
357
|
+
type: "address",
|
|
358
|
+
indexed: false
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: "collection",
|
|
362
|
+
internalType: "address",
|
|
363
|
+
type: "address",
|
|
364
|
+
indexed: false
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: "currency",
|
|
368
|
+
internalType: "address",
|
|
369
|
+
type: "address",
|
|
370
|
+
indexed: false
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "tokenId",
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
type: "uint256",
|
|
376
|
+
indexed: false
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "createReferralReward",
|
|
380
|
+
internalType: "uint256",
|
|
381
|
+
type: "uint256",
|
|
382
|
+
indexed: false
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "mintReferralReward",
|
|
386
|
+
internalType: "uint256",
|
|
387
|
+
type: "uint256",
|
|
388
|
+
indexed: false
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: "firstMinterReward",
|
|
392
|
+
internalType: "uint256",
|
|
393
|
+
type: "uint256",
|
|
394
|
+
indexed: false
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "zoraReward",
|
|
398
|
+
internalType: "uint256",
|
|
399
|
+
type: "uint256",
|
|
400
|
+
indexed: false
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
name: "ERC20RewardsDeposit"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
type: "event",
|
|
407
|
+
anonymous: false,
|
|
408
|
+
inputs: [
|
|
409
|
+
{
|
|
410
|
+
name: "sender",
|
|
411
|
+
internalType: "address",
|
|
412
|
+
type: "address",
|
|
413
|
+
indexed: true
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: "tokenContract",
|
|
417
|
+
internalType: "address",
|
|
418
|
+
type: "address",
|
|
419
|
+
indexed: true
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: "tokenId",
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
type: "uint256",
|
|
425
|
+
indexed: true
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "quantity",
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
type: "uint256",
|
|
431
|
+
indexed: false
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: "comment",
|
|
435
|
+
internalType: "string",
|
|
436
|
+
type: "string",
|
|
437
|
+
indexed: false
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
name: "MintComment"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
type: "event",
|
|
444
|
+
anonymous: false,
|
|
445
|
+
inputs: [
|
|
446
|
+
{
|
|
447
|
+
name: "mediaContract",
|
|
448
|
+
internalType: "address",
|
|
449
|
+
type: "address",
|
|
450
|
+
indexed: true
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: "tokenId",
|
|
454
|
+
internalType: "uint256",
|
|
455
|
+
type: "uint256",
|
|
456
|
+
indexed: true
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
name: "salesConfig",
|
|
460
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
461
|
+
type: "tuple",
|
|
462
|
+
components: [
|
|
463
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
464
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
465
|
+
{
|
|
466
|
+
name: "maxTokensPerAddress",
|
|
467
|
+
internalType: "uint64",
|
|
468
|
+
type: "uint64"
|
|
469
|
+
},
|
|
470
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
471
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
472
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
473
|
+
],
|
|
474
|
+
indexed: false
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
name: "SaleSet"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
type: "event",
|
|
481
|
+
anonymous: false,
|
|
482
|
+
inputs: [
|
|
483
|
+
{
|
|
484
|
+
name: "prevRecipient",
|
|
485
|
+
internalType: "address",
|
|
486
|
+
type: "address",
|
|
487
|
+
indexed: true
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
name: "newRecipient",
|
|
491
|
+
internalType: "address",
|
|
492
|
+
type: "address",
|
|
493
|
+
indexed: true
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
name: "ZoraRewardsRecipientSet"
|
|
497
|
+
},
|
|
498
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
499
|
+
{ type: "error", inputs: [], name: "AlreadyInitialized" },
|
|
500
|
+
{ type: "error", inputs: [], name: "ERC20TransferSlippage" },
|
|
501
|
+
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
502
|
+
{ type: "error", inputs: [], name: "OnlyZoraRewardsRecipient" },
|
|
503
|
+
{ type: "error", inputs: [], name: "PricePerTokenTooLow" },
|
|
504
|
+
{ type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
|
|
505
|
+
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
506
|
+
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
507
|
+
{
|
|
508
|
+
type: "error",
|
|
509
|
+
inputs: [
|
|
510
|
+
{ name: "user", internalType: "address", type: "address" },
|
|
511
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
512
|
+
{ name: "requestedAmount", internalType: "uint256", type: "uint256" }
|
|
513
|
+
],
|
|
514
|
+
name: "UserExceedsMintLimit"
|
|
515
|
+
},
|
|
516
|
+
{ type: "error", inputs: [], name: "WrongValueSent" }
|
|
517
|
+
];
|
|
518
|
+
var erc20MinterAddress = {
|
|
519
|
+
1: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
520
|
+
10: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
521
|
+
8453: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
522
|
+
42161: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
523
|
+
81457: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
524
|
+
84532: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
525
|
+
421614: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
526
|
+
7777777: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
527
|
+
11155111: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
528
|
+
999999999: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31"
|
|
529
|
+
};
|
|
530
|
+
var erc20MinterConfig = {
|
|
531
|
+
address: erc20MinterAddress,
|
|
532
|
+
abi: erc20MinterABI
|
|
533
|
+
};
|
|
55
534
|
var iUnwrapAndForwardActionABI = [
|
|
56
535
|
{
|
|
57
536
|
stateMutability: "payable",
|
|
@@ -154,13 +633,281 @@ var mintsEthUnwrapperAndCallerABI = [
|
|
|
154
633
|
{ type: "error", inputs: [], name: "UnknownUserAction" }
|
|
155
634
|
];
|
|
156
635
|
var mintsEthUnwrapperAndCallerAddress = {
|
|
157
|
-
7777777: "
|
|
158
|
-
999999999: "
|
|
636
|
+
7777777: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
637
|
+
999999999: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC"
|
|
159
638
|
};
|
|
160
639
|
var mintsEthUnwrapperAndCallerConfig = {
|
|
161
640
|
address: mintsEthUnwrapperAndCallerAddress,
|
|
162
641
|
abi: mintsEthUnwrapperAndCallerABI
|
|
163
642
|
};
|
|
643
|
+
var protocolRewardsABI = [
|
|
644
|
+
{ stateMutability: "payable", type: "constructor", inputs: [] },
|
|
645
|
+
{
|
|
646
|
+
stateMutability: "view",
|
|
647
|
+
type: "function",
|
|
648
|
+
inputs: [],
|
|
649
|
+
name: "WITHDRAW_TYPEHASH",
|
|
650
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
stateMutability: "view",
|
|
654
|
+
type: "function",
|
|
655
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
656
|
+
name: "balanceOf",
|
|
657
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
stateMutability: "payable",
|
|
661
|
+
type: "function",
|
|
662
|
+
inputs: [
|
|
663
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
664
|
+
{ name: "reason", internalType: "bytes4", type: "bytes4" },
|
|
665
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
666
|
+
],
|
|
667
|
+
name: "deposit",
|
|
668
|
+
outputs: []
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
stateMutability: "payable",
|
|
672
|
+
type: "function",
|
|
673
|
+
inputs: [
|
|
674
|
+
{ name: "recipients", internalType: "address[]", type: "address[]" },
|
|
675
|
+
{ name: "amounts", internalType: "uint256[]", type: "uint256[]" },
|
|
676
|
+
{ name: "reasons", internalType: "bytes4[]", type: "bytes4[]" },
|
|
677
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
678
|
+
],
|
|
679
|
+
name: "depositBatch",
|
|
680
|
+
outputs: []
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
stateMutability: "payable",
|
|
684
|
+
type: "function",
|
|
685
|
+
inputs: [
|
|
686
|
+
{ name: "creator", internalType: "address", type: "address" },
|
|
687
|
+
{ name: "creatorReward", internalType: "uint256", type: "uint256" },
|
|
688
|
+
{ name: "createReferral", internalType: "address", type: "address" },
|
|
689
|
+
{
|
|
690
|
+
name: "createReferralReward",
|
|
691
|
+
internalType: "uint256",
|
|
692
|
+
type: "uint256"
|
|
693
|
+
},
|
|
694
|
+
{ name: "mintReferral", internalType: "address", type: "address" },
|
|
695
|
+
{ name: "mintReferralReward", internalType: "uint256", type: "uint256" },
|
|
696
|
+
{ name: "firstMinter", internalType: "address", type: "address" },
|
|
697
|
+
{ name: "firstMinterReward", internalType: "uint256", type: "uint256" },
|
|
698
|
+
{ name: "zora", internalType: "address", type: "address" },
|
|
699
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" }
|
|
700
|
+
],
|
|
701
|
+
name: "depositRewards",
|
|
702
|
+
outputs: []
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
stateMutability: "view",
|
|
706
|
+
type: "function",
|
|
707
|
+
inputs: [],
|
|
708
|
+
name: "eip712Domain",
|
|
709
|
+
outputs: [
|
|
710
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
711
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
712
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
713
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
714
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
715
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
716
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
stateMutability: "view",
|
|
721
|
+
type: "function",
|
|
722
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
723
|
+
name: "nonces",
|
|
724
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
stateMutability: "view",
|
|
728
|
+
type: "function",
|
|
729
|
+
inputs: [],
|
|
730
|
+
name: "totalSupply",
|
|
731
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
stateMutability: "nonpayable",
|
|
735
|
+
type: "function",
|
|
736
|
+
inputs: [
|
|
737
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
738
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
739
|
+
],
|
|
740
|
+
name: "withdraw",
|
|
741
|
+
outputs: []
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
stateMutability: "nonpayable",
|
|
745
|
+
type: "function",
|
|
746
|
+
inputs: [
|
|
747
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
748
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
749
|
+
],
|
|
750
|
+
name: "withdrawFor",
|
|
751
|
+
outputs: []
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
stateMutability: "nonpayable",
|
|
755
|
+
type: "function",
|
|
756
|
+
inputs: [
|
|
757
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
758
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
759
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
760
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
761
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
762
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
763
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
764
|
+
],
|
|
765
|
+
name: "withdrawWithSig",
|
|
766
|
+
outputs: []
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
type: "event",
|
|
770
|
+
anonymous: false,
|
|
771
|
+
inputs: [
|
|
772
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
773
|
+
{ name: "to", internalType: "address", type: "address", indexed: true },
|
|
774
|
+
{ name: "reason", internalType: "bytes4", type: "bytes4", indexed: true },
|
|
775
|
+
{
|
|
776
|
+
name: "amount",
|
|
777
|
+
internalType: "uint256",
|
|
778
|
+
type: "uint256",
|
|
779
|
+
indexed: false
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
name: "comment",
|
|
783
|
+
internalType: "string",
|
|
784
|
+
type: "string",
|
|
785
|
+
indexed: false
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
name: "Deposit"
|
|
789
|
+
},
|
|
790
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
791
|
+
{
|
|
792
|
+
type: "event",
|
|
793
|
+
anonymous: false,
|
|
794
|
+
inputs: [
|
|
795
|
+
{
|
|
796
|
+
name: "creator",
|
|
797
|
+
internalType: "address",
|
|
798
|
+
type: "address",
|
|
799
|
+
indexed: true
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
name: "createReferral",
|
|
803
|
+
internalType: "address",
|
|
804
|
+
type: "address",
|
|
805
|
+
indexed: true
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
name: "mintReferral",
|
|
809
|
+
internalType: "address",
|
|
810
|
+
type: "address",
|
|
811
|
+
indexed: true
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
name: "firstMinter",
|
|
815
|
+
internalType: "address",
|
|
816
|
+
type: "address",
|
|
817
|
+
indexed: false
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
name: "zora",
|
|
821
|
+
internalType: "address",
|
|
822
|
+
type: "address",
|
|
823
|
+
indexed: false
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
name: "from",
|
|
827
|
+
internalType: "address",
|
|
828
|
+
type: "address",
|
|
829
|
+
indexed: false
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
name: "creatorReward",
|
|
833
|
+
internalType: "uint256",
|
|
834
|
+
type: "uint256",
|
|
835
|
+
indexed: false
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: "createReferralReward",
|
|
839
|
+
internalType: "uint256",
|
|
840
|
+
type: "uint256",
|
|
841
|
+
indexed: false
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
name: "mintReferralReward",
|
|
845
|
+
internalType: "uint256",
|
|
846
|
+
type: "uint256",
|
|
847
|
+
indexed: false
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
name: "firstMinterReward",
|
|
851
|
+
internalType: "uint256",
|
|
852
|
+
type: "uint256",
|
|
853
|
+
indexed: false
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
name: "zoraReward",
|
|
857
|
+
internalType: "uint256",
|
|
858
|
+
type: "uint256",
|
|
859
|
+
indexed: false
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
name: "RewardsDeposit"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
type: "event",
|
|
866
|
+
anonymous: false,
|
|
867
|
+
inputs: [
|
|
868
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
869
|
+
{ name: "to", internalType: "address", type: "address", indexed: true },
|
|
870
|
+
{
|
|
871
|
+
name: "amount",
|
|
872
|
+
internalType: "uint256",
|
|
873
|
+
type: "uint256",
|
|
874
|
+
indexed: false
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
name: "Withdraw"
|
|
878
|
+
},
|
|
879
|
+
{ type: "error", inputs: [], name: "ADDRESS_ZERO" },
|
|
880
|
+
{ type: "error", inputs: [], name: "ARRAY_LENGTH_MISMATCH" },
|
|
881
|
+
{ type: "error", inputs: [], name: "INVALID_DEPOSIT" },
|
|
882
|
+
{ type: "error", inputs: [], name: "INVALID_SIGNATURE" },
|
|
883
|
+
{ type: "error", inputs: [], name: "INVALID_WITHDRAW" },
|
|
884
|
+
{ type: "error", inputs: [], name: "InvalidShortString" },
|
|
885
|
+
{ type: "error", inputs: [], name: "SIGNATURE_DEADLINE_EXPIRED" },
|
|
886
|
+
{
|
|
887
|
+
type: "error",
|
|
888
|
+
inputs: [{ name: "str", internalType: "string", type: "string" }],
|
|
889
|
+
name: "StringTooLong"
|
|
890
|
+
},
|
|
891
|
+
{ type: "error", inputs: [], name: "TRANSFER_FAILED" }
|
|
892
|
+
];
|
|
893
|
+
var protocolRewardsAddress = {
|
|
894
|
+
1: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
895
|
+
10: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
896
|
+
999: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
897
|
+
8453: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
898
|
+
42161: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
899
|
+
81457: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
900
|
+
84532: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
901
|
+
421614: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
902
|
+
7777777: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
903
|
+
11155111: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
904
|
+
168587773: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
905
|
+
999999999: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
906
|
+
};
|
|
907
|
+
var protocolRewardsConfig = {
|
|
908
|
+
address: protocolRewardsAddress,
|
|
909
|
+
abi: protocolRewardsABI
|
|
910
|
+
};
|
|
164
911
|
var zoraCreator1155FactoryImplABI = [
|
|
165
912
|
{
|
|
166
913
|
stateMutability: "nonpayable",
|
|
@@ -4841,7 +5588,12 @@ var zoraMintsManagerImplABI = [
|
|
|
4841
5588
|
type: "function",
|
|
4842
5589
|
inputs: [
|
|
4843
5590
|
{ name: "newContractURI", internalType: "string", type: "string" },
|
|
4844
|
-
{ name: "newBaseURI", internalType: "string", type: "string" }
|
|
5591
|
+
{ name: "newBaseURI", internalType: "string", type: "string" },
|
|
5592
|
+
{
|
|
5593
|
+
name: "tokenIdsToNotifyUpdate",
|
|
5594
|
+
internalType: "uint256[]",
|
|
5595
|
+
type: "uint256[]"
|
|
5596
|
+
}
|
|
4845
5597
|
],
|
|
4846
5598
|
name: "setMetadataURIs",
|
|
4847
5599
|
outputs: []
|
|
@@ -5491,6 +6243,7 @@ var addresses = {
|
|
|
5491
6243
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
5492
6244
|
REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
|
|
5493
6245
|
UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
6246
|
+
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
5494
6247
|
timestamp: 1712349677
|
|
5495
6248
|
},
|
|
5496
6249
|
11155111: {
|
|
@@ -5531,6 +6284,7 @@ var addresses = {
|
|
|
5531
6284
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
5532
6285
|
REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
5533
6286
|
UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
|
|
6287
|
+
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
5534
6288
|
timestamp: 1712339316
|
|
5535
6289
|
}
|
|
5536
6290
|
};
|
|
@@ -5581,24 +6335,30 @@ var chainConfigs2 = {
|
|
|
5581
6335
|
};
|
|
5582
6336
|
var addresses2 = {
|
|
5583
6337
|
7777777: {
|
|
5584
|
-
MINTS_ETH_UNWRAPPER_AND_CALLER: "
|
|
5585
|
-
MINTS_MANAGER_IMPL: "
|
|
5586
|
-
MINTS_MANAGER_IMPL_VERSION: "0.1.
|
|
6338
|
+
MINTS_ETH_UNWRAPPER_AND_CALLER: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
6339
|
+
MINTS_MANAGER_IMPL: "0x978685ad10B829F17e6c2C6E8EeABd7dFDdC1678",
|
|
6340
|
+
MINTS_MANAGER_IMPL_VERSION: "0.1.2"
|
|
5587
6341
|
},
|
|
5588
6342
|
999999999: {
|
|
5589
|
-
MINTS_ETH_UNWRAPPER_AND_CALLER: "
|
|
5590
|
-
MINTS_MANAGER_IMPL: "
|
|
5591
|
-
MINTS_MANAGER_IMPL_VERSION: "0.1.
|
|
6343
|
+
MINTS_ETH_UNWRAPPER_AND_CALLER: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
6344
|
+
MINTS_MANAGER_IMPL: "0x978685ad10B829F17e6c2C6E8EeABd7dFDdC1678",
|
|
6345
|
+
MINTS_MANAGER_IMPL_VERSION: "0.1.2"
|
|
5592
6346
|
}
|
|
5593
6347
|
};
|
|
5594
6348
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5595
6349
|
0 && (module.exports = {
|
|
5596
6350
|
contracts1155,
|
|
6351
|
+
erc20MinterABI,
|
|
6352
|
+
erc20MinterAddress,
|
|
6353
|
+
erc20MinterConfig,
|
|
5597
6354
|
iUnwrapAndForwardActionABI,
|
|
5598
6355
|
mints,
|
|
5599
6356
|
mintsEthUnwrapperAndCallerABI,
|
|
5600
6357
|
mintsEthUnwrapperAndCallerAddress,
|
|
5601
6358
|
mintsEthUnwrapperAndCallerConfig,
|
|
6359
|
+
protocolRewardsABI,
|
|
6360
|
+
protocolRewardsAddress,
|
|
6361
|
+
protocolRewardsConfig,
|
|
5602
6362
|
zoraCreator1155FactoryImplABI,
|
|
5603
6363
|
zoraCreator1155FactoryImplAddress,
|
|
5604
6364
|
zoraCreator1155FactoryImplConfig,
|