@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.js
CHANGED
|
@@ -5,6 +5,479 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/generated/wagmi.ts
|
|
8
|
+
var erc20MinterABI = [
|
|
9
|
+
{
|
|
10
|
+
stateMutability: "pure",
|
|
11
|
+
type: "function",
|
|
12
|
+
inputs: [{ name: "totalReward", internalType: "uint256", type: "uint256" }],
|
|
13
|
+
name: "computePaidMintRewards",
|
|
14
|
+
outputs: [
|
|
15
|
+
{
|
|
16
|
+
name: "",
|
|
17
|
+
internalType: "struct IERC20Minter.RewardsSettings",
|
|
18
|
+
type: "tuple",
|
|
19
|
+
components: [
|
|
20
|
+
{
|
|
21
|
+
name: "createReferralReward",
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
type: "uint256"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "mintReferralReward",
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
type: "uint256"
|
|
29
|
+
},
|
|
30
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
31
|
+
{
|
|
32
|
+
name: "firstMinterReward",
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
type: "uint256"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
stateMutability: "pure",
|
|
42
|
+
type: "function",
|
|
43
|
+
inputs: [
|
|
44
|
+
{ name: "totalReward", internalType: "uint256", type: "uint256" },
|
|
45
|
+
{ name: "rewardPct", internalType: "uint256", type: "uint256" }
|
|
46
|
+
],
|
|
47
|
+
name: "computeReward",
|
|
48
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
stateMutability: "pure",
|
|
52
|
+
type: "function",
|
|
53
|
+
inputs: [{ name: "totalValue", internalType: "uint256", type: "uint256" }],
|
|
54
|
+
name: "computeTotalReward",
|
|
55
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
stateMutability: "pure",
|
|
59
|
+
type: "function",
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "contractName",
|
|
62
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
stateMutability: "pure",
|
|
66
|
+
type: "function",
|
|
67
|
+
inputs: [],
|
|
68
|
+
name: "contractURI",
|
|
69
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
stateMutability: "pure",
|
|
73
|
+
type: "function",
|
|
74
|
+
inputs: [],
|
|
75
|
+
name: "contractVersion",
|
|
76
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
stateMutability: "view",
|
|
80
|
+
type: "function",
|
|
81
|
+
inputs: [
|
|
82
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
83
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
84
|
+
],
|
|
85
|
+
name: "getCreateReferral",
|
|
86
|
+
outputs: [
|
|
87
|
+
{ name: "createReferral", internalType: "address", type: "address" }
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
stateMutability: "view",
|
|
92
|
+
type: "function",
|
|
93
|
+
inputs: [
|
|
94
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
95
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
96
|
+
],
|
|
97
|
+
name: "getFirstMinter",
|
|
98
|
+
outputs: [
|
|
99
|
+
{ name: "firstMinter", internalType: "address", type: "address" }
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
stateMutability: "view",
|
|
104
|
+
type: "function",
|
|
105
|
+
inputs: [
|
|
106
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
107
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
108
|
+
{ name: "wallet", internalType: "address", type: "address" }
|
|
109
|
+
],
|
|
110
|
+
name: "getMintedPerWallet",
|
|
111
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
stateMutability: "nonpayable",
|
|
115
|
+
type: "function",
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
name: "_zoraRewardRecipientAddress",
|
|
119
|
+
internalType: "address",
|
|
120
|
+
type: "address"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
name: "initialize",
|
|
124
|
+
outputs: []
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
stateMutability: "nonpayable",
|
|
128
|
+
type: "function",
|
|
129
|
+
inputs: [
|
|
130
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
131
|
+
{ name: "quantity", internalType: "uint256", type: "uint256" },
|
|
132
|
+
{ name: "tokenAddress", internalType: "address", type: "address" },
|
|
133
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
134
|
+
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
135
|
+
{ name: "currency", internalType: "address", type: "address" },
|
|
136
|
+
{ name: "mintReferral", internalType: "address", type: "address" },
|
|
137
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
138
|
+
],
|
|
139
|
+
name: "mint",
|
|
140
|
+
outputs: []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
stateMutability: "pure",
|
|
144
|
+
type: "function",
|
|
145
|
+
inputs: [
|
|
146
|
+
{ name: "", internalType: "address", type: "address" },
|
|
147
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
148
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
149
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
150
|
+
{ name: "", internalType: "bytes", type: "bytes" }
|
|
151
|
+
],
|
|
152
|
+
name: "requestMint",
|
|
153
|
+
outputs: [
|
|
154
|
+
{
|
|
155
|
+
name: "",
|
|
156
|
+
internalType: "struct ICreatorCommands.CommandSet",
|
|
157
|
+
type: "tuple",
|
|
158
|
+
components: [
|
|
159
|
+
{
|
|
160
|
+
name: "commands",
|
|
161
|
+
internalType: "struct ICreatorCommands.Command[]",
|
|
162
|
+
type: "tuple[]",
|
|
163
|
+
components: [
|
|
164
|
+
{
|
|
165
|
+
name: "method",
|
|
166
|
+
internalType: "enum ICreatorCommands.CreatorActions",
|
|
167
|
+
type: "uint8"
|
|
168
|
+
},
|
|
169
|
+
{ name: "args", internalType: "bytes", type: "bytes" }
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{ name: "at", internalType: "uint256", type: "uint256" }
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
stateMutability: "nonpayable",
|
|
179
|
+
type: "function",
|
|
180
|
+
inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
|
|
181
|
+
name: "resetSale",
|
|
182
|
+
outputs: []
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
stateMutability: "view",
|
|
186
|
+
type: "function",
|
|
187
|
+
inputs: [
|
|
188
|
+
{ name: "tokenContract", internalType: "address", type: "address" },
|
|
189
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" }
|
|
190
|
+
],
|
|
191
|
+
name: "sale",
|
|
192
|
+
outputs: [
|
|
193
|
+
{
|
|
194
|
+
name: "",
|
|
195
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
196
|
+
type: "tuple",
|
|
197
|
+
components: [
|
|
198
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
199
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
200
|
+
{
|
|
201
|
+
name: "maxTokensPerAddress",
|
|
202
|
+
internalType: "uint64",
|
|
203
|
+
type: "uint64"
|
|
204
|
+
},
|
|
205
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
206
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
207
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
stateMutability: "nonpayable",
|
|
214
|
+
type: "function",
|
|
215
|
+
inputs: [
|
|
216
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
217
|
+
{
|
|
218
|
+
name: "salesConfig",
|
|
219
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
220
|
+
type: "tuple",
|
|
221
|
+
components: [
|
|
222
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
223
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
224
|
+
{
|
|
225
|
+
name: "maxTokensPerAddress",
|
|
226
|
+
internalType: "uint64",
|
|
227
|
+
type: "uint64"
|
|
228
|
+
},
|
|
229
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
230
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
231
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
name: "setSale",
|
|
236
|
+
outputs: []
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
stateMutability: "nonpayable",
|
|
240
|
+
type: "function",
|
|
241
|
+
inputs: [{ name: "recipient", internalType: "address", type: "address" }],
|
|
242
|
+
name: "setZoraRewardsRecipient",
|
|
243
|
+
outputs: []
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
stateMutability: "pure",
|
|
247
|
+
type: "function",
|
|
248
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
249
|
+
name: "supportsInterface",
|
|
250
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
stateMutability: "pure",
|
|
254
|
+
type: "function",
|
|
255
|
+
inputs: [],
|
|
256
|
+
name: "totalRewardPct",
|
|
257
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
stateMutability: "view",
|
|
261
|
+
type: "function",
|
|
262
|
+
inputs: [],
|
|
263
|
+
name: "zoraRewardRecipientAddress",
|
|
264
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
type: "event",
|
|
268
|
+
anonymous: false,
|
|
269
|
+
inputs: [
|
|
270
|
+
{
|
|
271
|
+
name: "rewardPercentage",
|
|
272
|
+
internalType: "uint256",
|
|
273
|
+
type: "uint256",
|
|
274
|
+
indexed: false
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
name: "ERC20MinterInitialized"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
type: "event",
|
|
281
|
+
anonymous: false,
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
name: "createReferral",
|
|
285
|
+
internalType: "address",
|
|
286
|
+
type: "address",
|
|
287
|
+
indexed: true
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "mintReferral",
|
|
291
|
+
internalType: "address",
|
|
292
|
+
type: "address",
|
|
293
|
+
indexed: true
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "firstMinter",
|
|
297
|
+
internalType: "address",
|
|
298
|
+
type: "address",
|
|
299
|
+
indexed: true
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: "zora",
|
|
303
|
+
internalType: "address",
|
|
304
|
+
type: "address",
|
|
305
|
+
indexed: false
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "collection",
|
|
309
|
+
internalType: "address",
|
|
310
|
+
type: "address",
|
|
311
|
+
indexed: false
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
name: "currency",
|
|
315
|
+
internalType: "address",
|
|
316
|
+
type: "address",
|
|
317
|
+
indexed: false
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "tokenId",
|
|
321
|
+
internalType: "uint256",
|
|
322
|
+
type: "uint256",
|
|
323
|
+
indexed: false
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: "createReferralReward",
|
|
327
|
+
internalType: "uint256",
|
|
328
|
+
type: "uint256",
|
|
329
|
+
indexed: false
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: "mintReferralReward",
|
|
333
|
+
internalType: "uint256",
|
|
334
|
+
type: "uint256",
|
|
335
|
+
indexed: false
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "firstMinterReward",
|
|
339
|
+
internalType: "uint256",
|
|
340
|
+
type: "uint256",
|
|
341
|
+
indexed: false
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "zoraReward",
|
|
345
|
+
internalType: "uint256",
|
|
346
|
+
type: "uint256",
|
|
347
|
+
indexed: false
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
name: "ERC20RewardsDeposit"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: "event",
|
|
354
|
+
anonymous: false,
|
|
355
|
+
inputs: [
|
|
356
|
+
{
|
|
357
|
+
name: "sender",
|
|
358
|
+
internalType: "address",
|
|
359
|
+
type: "address",
|
|
360
|
+
indexed: true
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: "tokenContract",
|
|
364
|
+
internalType: "address",
|
|
365
|
+
type: "address",
|
|
366
|
+
indexed: true
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "tokenId",
|
|
370
|
+
internalType: "uint256",
|
|
371
|
+
type: "uint256",
|
|
372
|
+
indexed: true
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: "quantity",
|
|
376
|
+
internalType: "uint256",
|
|
377
|
+
type: "uint256",
|
|
378
|
+
indexed: false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "comment",
|
|
382
|
+
internalType: "string",
|
|
383
|
+
type: "string",
|
|
384
|
+
indexed: false
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
name: "MintComment"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
type: "event",
|
|
391
|
+
anonymous: false,
|
|
392
|
+
inputs: [
|
|
393
|
+
{
|
|
394
|
+
name: "mediaContract",
|
|
395
|
+
internalType: "address",
|
|
396
|
+
type: "address",
|
|
397
|
+
indexed: true
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: "tokenId",
|
|
401
|
+
internalType: "uint256",
|
|
402
|
+
type: "uint256",
|
|
403
|
+
indexed: true
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: "salesConfig",
|
|
407
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
408
|
+
type: "tuple",
|
|
409
|
+
components: [
|
|
410
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
411
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
412
|
+
{
|
|
413
|
+
name: "maxTokensPerAddress",
|
|
414
|
+
internalType: "uint64",
|
|
415
|
+
type: "uint64"
|
|
416
|
+
},
|
|
417
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
418
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
419
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
420
|
+
],
|
|
421
|
+
indexed: false
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
name: "SaleSet"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
type: "event",
|
|
428
|
+
anonymous: false,
|
|
429
|
+
inputs: [
|
|
430
|
+
{
|
|
431
|
+
name: "prevRecipient",
|
|
432
|
+
internalType: "address",
|
|
433
|
+
type: "address",
|
|
434
|
+
indexed: true
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: "newRecipient",
|
|
438
|
+
internalType: "address",
|
|
439
|
+
type: "address",
|
|
440
|
+
indexed: true
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
name: "ZoraRewardsRecipientSet"
|
|
444
|
+
},
|
|
445
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
446
|
+
{ type: "error", inputs: [], name: "AlreadyInitialized" },
|
|
447
|
+
{ type: "error", inputs: [], name: "ERC20TransferSlippage" },
|
|
448
|
+
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
449
|
+
{ type: "error", inputs: [], name: "OnlyZoraRewardsRecipient" },
|
|
450
|
+
{ type: "error", inputs: [], name: "PricePerTokenTooLow" },
|
|
451
|
+
{ type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
|
|
452
|
+
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
453
|
+
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
454
|
+
{
|
|
455
|
+
type: "error",
|
|
456
|
+
inputs: [
|
|
457
|
+
{ name: "user", internalType: "address", type: "address" },
|
|
458
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
459
|
+
{ name: "requestedAmount", internalType: "uint256", type: "uint256" }
|
|
460
|
+
],
|
|
461
|
+
name: "UserExceedsMintLimit"
|
|
462
|
+
},
|
|
463
|
+
{ type: "error", inputs: [], name: "WrongValueSent" }
|
|
464
|
+
];
|
|
465
|
+
var erc20MinterAddress = {
|
|
466
|
+
1: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
467
|
+
10: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
468
|
+
8453: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
469
|
+
42161: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
470
|
+
81457: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
471
|
+
84532: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
472
|
+
421614: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
473
|
+
7777777: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
474
|
+
11155111: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
475
|
+
999999999: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31"
|
|
476
|
+
};
|
|
477
|
+
var erc20MinterConfig = {
|
|
478
|
+
address: erc20MinterAddress,
|
|
479
|
+
abi: erc20MinterABI
|
|
480
|
+
};
|
|
8
481
|
var iUnwrapAndForwardActionABI = [
|
|
9
482
|
{
|
|
10
483
|
stateMutability: "payable",
|
|
@@ -107,13 +580,281 @@ var mintsEthUnwrapperAndCallerABI = [
|
|
|
107
580
|
{ type: "error", inputs: [], name: "UnknownUserAction" }
|
|
108
581
|
];
|
|
109
582
|
var mintsEthUnwrapperAndCallerAddress = {
|
|
110
|
-
7777777: "
|
|
111
|
-
999999999: "
|
|
583
|
+
7777777: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
584
|
+
999999999: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC"
|
|
112
585
|
};
|
|
113
586
|
var mintsEthUnwrapperAndCallerConfig = {
|
|
114
587
|
address: mintsEthUnwrapperAndCallerAddress,
|
|
115
588
|
abi: mintsEthUnwrapperAndCallerABI
|
|
116
589
|
};
|
|
590
|
+
var protocolRewardsABI = [
|
|
591
|
+
{ stateMutability: "payable", type: "constructor", inputs: [] },
|
|
592
|
+
{
|
|
593
|
+
stateMutability: "view",
|
|
594
|
+
type: "function",
|
|
595
|
+
inputs: [],
|
|
596
|
+
name: "WITHDRAW_TYPEHASH",
|
|
597
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
stateMutability: "view",
|
|
601
|
+
type: "function",
|
|
602
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
603
|
+
name: "balanceOf",
|
|
604
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
stateMutability: "payable",
|
|
608
|
+
type: "function",
|
|
609
|
+
inputs: [
|
|
610
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
611
|
+
{ name: "reason", internalType: "bytes4", type: "bytes4" },
|
|
612
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
613
|
+
],
|
|
614
|
+
name: "deposit",
|
|
615
|
+
outputs: []
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
stateMutability: "payable",
|
|
619
|
+
type: "function",
|
|
620
|
+
inputs: [
|
|
621
|
+
{ name: "recipients", internalType: "address[]", type: "address[]" },
|
|
622
|
+
{ name: "amounts", internalType: "uint256[]", type: "uint256[]" },
|
|
623
|
+
{ name: "reasons", internalType: "bytes4[]", type: "bytes4[]" },
|
|
624
|
+
{ name: "comment", internalType: "string", type: "string" }
|
|
625
|
+
],
|
|
626
|
+
name: "depositBatch",
|
|
627
|
+
outputs: []
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
stateMutability: "payable",
|
|
631
|
+
type: "function",
|
|
632
|
+
inputs: [
|
|
633
|
+
{ name: "creator", internalType: "address", type: "address" },
|
|
634
|
+
{ name: "creatorReward", internalType: "uint256", type: "uint256" },
|
|
635
|
+
{ name: "createReferral", internalType: "address", type: "address" },
|
|
636
|
+
{
|
|
637
|
+
name: "createReferralReward",
|
|
638
|
+
internalType: "uint256",
|
|
639
|
+
type: "uint256"
|
|
640
|
+
},
|
|
641
|
+
{ name: "mintReferral", internalType: "address", type: "address" },
|
|
642
|
+
{ name: "mintReferralReward", internalType: "uint256", type: "uint256" },
|
|
643
|
+
{ name: "firstMinter", internalType: "address", type: "address" },
|
|
644
|
+
{ name: "firstMinterReward", internalType: "uint256", type: "uint256" },
|
|
645
|
+
{ name: "zora", internalType: "address", type: "address" },
|
|
646
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" }
|
|
647
|
+
],
|
|
648
|
+
name: "depositRewards",
|
|
649
|
+
outputs: []
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
stateMutability: "view",
|
|
653
|
+
type: "function",
|
|
654
|
+
inputs: [],
|
|
655
|
+
name: "eip712Domain",
|
|
656
|
+
outputs: [
|
|
657
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
658
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
659
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
660
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
661
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
662
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
663
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
stateMutability: "view",
|
|
668
|
+
type: "function",
|
|
669
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
670
|
+
name: "nonces",
|
|
671
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
stateMutability: "view",
|
|
675
|
+
type: "function",
|
|
676
|
+
inputs: [],
|
|
677
|
+
name: "totalSupply",
|
|
678
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
stateMutability: "nonpayable",
|
|
682
|
+
type: "function",
|
|
683
|
+
inputs: [
|
|
684
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
685
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
686
|
+
],
|
|
687
|
+
name: "withdraw",
|
|
688
|
+
outputs: []
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
stateMutability: "nonpayable",
|
|
692
|
+
type: "function",
|
|
693
|
+
inputs: [
|
|
694
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
695
|
+
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
696
|
+
],
|
|
697
|
+
name: "withdrawFor",
|
|
698
|
+
outputs: []
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
stateMutability: "nonpayable",
|
|
702
|
+
type: "function",
|
|
703
|
+
inputs: [
|
|
704
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
705
|
+
{ name: "to", internalType: "address", type: "address" },
|
|
706
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
707
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
708
|
+
{ name: "v", internalType: "uint8", type: "uint8" },
|
|
709
|
+
{ name: "r", internalType: "bytes32", type: "bytes32" },
|
|
710
|
+
{ name: "s", internalType: "bytes32", type: "bytes32" }
|
|
711
|
+
],
|
|
712
|
+
name: "withdrawWithSig",
|
|
713
|
+
outputs: []
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
type: "event",
|
|
717
|
+
anonymous: false,
|
|
718
|
+
inputs: [
|
|
719
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
720
|
+
{ name: "to", internalType: "address", type: "address", indexed: true },
|
|
721
|
+
{ name: "reason", internalType: "bytes4", type: "bytes4", indexed: true },
|
|
722
|
+
{
|
|
723
|
+
name: "amount",
|
|
724
|
+
internalType: "uint256",
|
|
725
|
+
type: "uint256",
|
|
726
|
+
indexed: false
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
name: "comment",
|
|
730
|
+
internalType: "string",
|
|
731
|
+
type: "string",
|
|
732
|
+
indexed: false
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
name: "Deposit"
|
|
736
|
+
},
|
|
737
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
738
|
+
{
|
|
739
|
+
type: "event",
|
|
740
|
+
anonymous: false,
|
|
741
|
+
inputs: [
|
|
742
|
+
{
|
|
743
|
+
name: "creator",
|
|
744
|
+
internalType: "address",
|
|
745
|
+
type: "address",
|
|
746
|
+
indexed: true
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
name: "createReferral",
|
|
750
|
+
internalType: "address",
|
|
751
|
+
type: "address",
|
|
752
|
+
indexed: true
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
name: "mintReferral",
|
|
756
|
+
internalType: "address",
|
|
757
|
+
type: "address",
|
|
758
|
+
indexed: true
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
name: "firstMinter",
|
|
762
|
+
internalType: "address",
|
|
763
|
+
type: "address",
|
|
764
|
+
indexed: false
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
name: "zora",
|
|
768
|
+
internalType: "address",
|
|
769
|
+
type: "address",
|
|
770
|
+
indexed: false
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "from",
|
|
774
|
+
internalType: "address",
|
|
775
|
+
type: "address",
|
|
776
|
+
indexed: false
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
name: "creatorReward",
|
|
780
|
+
internalType: "uint256",
|
|
781
|
+
type: "uint256",
|
|
782
|
+
indexed: false
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
name: "createReferralReward",
|
|
786
|
+
internalType: "uint256",
|
|
787
|
+
type: "uint256",
|
|
788
|
+
indexed: false
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: "mintReferralReward",
|
|
792
|
+
internalType: "uint256",
|
|
793
|
+
type: "uint256",
|
|
794
|
+
indexed: false
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: "firstMinterReward",
|
|
798
|
+
internalType: "uint256",
|
|
799
|
+
type: "uint256",
|
|
800
|
+
indexed: false
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: "zoraReward",
|
|
804
|
+
internalType: "uint256",
|
|
805
|
+
type: "uint256",
|
|
806
|
+
indexed: false
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
name: "RewardsDeposit"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
type: "event",
|
|
813
|
+
anonymous: false,
|
|
814
|
+
inputs: [
|
|
815
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
816
|
+
{ name: "to", internalType: "address", type: "address", indexed: true },
|
|
817
|
+
{
|
|
818
|
+
name: "amount",
|
|
819
|
+
internalType: "uint256",
|
|
820
|
+
type: "uint256",
|
|
821
|
+
indexed: false
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
name: "Withdraw"
|
|
825
|
+
},
|
|
826
|
+
{ type: "error", inputs: [], name: "ADDRESS_ZERO" },
|
|
827
|
+
{ type: "error", inputs: [], name: "ARRAY_LENGTH_MISMATCH" },
|
|
828
|
+
{ type: "error", inputs: [], name: "INVALID_DEPOSIT" },
|
|
829
|
+
{ type: "error", inputs: [], name: "INVALID_SIGNATURE" },
|
|
830
|
+
{ type: "error", inputs: [], name: "INVALID_WITHDRAW" },
|
|
831
|
+
{ type: "error", inputs: [], name: "InvalidShortString" },
|
|
832
|
+
{ type: "error", inputs: [], name: "SIGNATURE_DEADLINE_EXPIRED" },
|
|
833
|
+
{
|
|
834
|
+
type: "error",
|
|
835
|
+
inputs: [{ name: "str", internalType: "string", type: "string" }],
|
|
836
|
+
name: "StringTooLong"
|
|
837
|
+
},
|
|
838
|
+
{ type: "error", inputs: [], name: "TRANSFER_FAILED" }
|
|
839
|
+
];
|
|
840
|
+
var protocolRewardsAddress = {
|
|
841
|
+
1: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
842
|
+
10: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
843
|
+
999: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
844
|
+
8453: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
845
|
+
42161: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
846
|
+
81457: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
847
|
+
84532: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
848
|
+
421614: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
849
|
+
7777777: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
850
|
+
11155111: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
851
|
+
168587773: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
|
|
852
|
+
999999999: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
853
|
+
};
|
|
854
|
+
var protocolRewardsConfig = {
|
|
855
|
+
address: protocolRewardsAddress,
|
|
856
|
+
abi: protocolRewardsABI
|
|
857
|
+
};
|
|
117
858
|
var zoraCreator1155FactoryImplABI = [
|
|
118
859
|
{
|
|
119
860
|
stateMutability: "nonpayable",
|
|
@@ -4794,7 +5535,12 @@ var zoraMintsManagerImplABI = [
|
|
|
4794
5535
|
type: "function",
|
|
4795
5536
|
inputs: [
|
|
4796
5537
|
{ name: "newContractURI", internalType: "string", type: "string" },
|
|
4797
|
-
{ name: "newBaseURI", internalType: "string", type: "string" }
|
|
5538
|
+
{ name: "newBaseURI", internalType: "string", type: "string" },
|
|
5539
|
+
{
|
|
5540
|
+
name: "tokenIdsToNotifyUpdate",
|
|
5541
|
+
internalType: "uint256[]",
|
|
5542
|
+
type: "uint256[]"
|
|
5543
|
+
}
|
|
4798
5544
|
],
|
|
4799
5545
|
name: "setMetadataURIs",
|
|
4800
5546
|
outputs: []
|
|
@@ -5444,6 +6190,7 @@ var addresses = {
|
|
|
5444
6190
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
5445
6191
|
REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
|
|
5446
6192
|
UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
6193
|
+
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
5447
6194
|
timestamp: 1712349677
|
|
5448
6195
|
},
|
|
5449
6196
|
11155111: {
|
|
@@ -5484,6 +6231,7 @@ var addresses = {
|
|
|
5484
6231
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
5485
6232
|
REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
5486
6233
|
UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
|
|
6234
|
+
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
5487
6235
|
timestamp: 1712339316
|
|
5488
6236
|
}
|
|
5489
6237
|
};
|
|
@@ -5534,23 +6282,29 @@ var chainConfigs2 = {
|
|
|
5534
6282
|
};
|
|
5535
6283
|
var addresses2 = {
|
|
5536
6284
|
7777777: {
|
|
5537
|
-
MINTS_ETH_UNWRAPPER_AND_CALLER: "
|
|
5538
|
-
MINTS_MANAGER_IMPL: "
|
|
5539
|
-
MINTS_MANAGER_IMPL_VERSION: "0.1.
|
|
6285
|
+
MINTS_ETH_UNWRAPPER_AND_CALLER: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
6286
|
+
MINTS_MANAGER_IMPL: "0x978685ad10B829F17e6c2C6E8EeABd7dFDdC1678",
|
|
6287
|
+
MINTS_MANAGER_IMPL_VERSION: "0.1.2"
|
|
5540
6288
|
},
|
|
5541
6289
|
999999999: {
|
|
5542
|
-
MINTS_ETH_UNWRAPPER_AND_CALLER: "
|
|
5543
|
-
MINTS_MANAGER_IMPL: "
|
|
5544
|
-
MINTS_MANAGER_IMPL_VERSION: "0.1.
|
|
6290
|
+
MINTS_ETH_UNWRAPPER_AND_CALLER: "0xE9Db91DD126D81697B588F1C145d74283E5C8ccC",
|
|
6291
|
+
MINTS_MANAGER_IMPL: "0x978685ad10B829F17e6c2C6E8EeABd7dFDdC1678",
|
|
6292
|
+
MINTS_MANAGER_IMPL_VERSION: "0.1.2"
|
|
5545
6293
|
}
|
|
5546
6294
|
};
|
|
5547
6295
|
export {
|
|
5548
6296
|
__exports as contracts1155,
|
|
6297
|
+
erc20MinterABI,
|
|
6298
|
+
erc20MinterAddress,
|
|
6299
|
+
erc20MinterConfig,
|
|
5549
6300
|
iUnwrapAndForwardActionABI,
|
|
5550
6301
|
mints_exports as mints,
|
|
5551
6302
|
mintsEthUnwrapperAndCallerABI,
|
|
5552
6303
|
mintsEthUnwrapperAndCallerAddress,
|
|
5553
6304
|
mintsEthUnwrapperAndCallerConfig,
|
|
6305
|
+
protocolRewardsABI,
|
|
6306
|
+
protocolRewardsAddress,
|
|
6307
|
+
protocolRewardsConfig,
|
|
5554
6308
|
zoraCreator1155FactoryImplABI,
|
|
5555
6309
|
zoraCreator1155FactoryImplAddress,
|
|
5556
6310
|
zoraCreator1155FactoryImplConfig,
|