@zoralabs/protocol-deployments 0.0.5 → 0.0.7-prerelease.0
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 +11 -11
- package/CHANGELOG.md +19 -0
- package/addresses/1.json +6 -6
- package/addresses/10.json +6 -6
- package/addresses/7777777.json +6 -6
- package/addresses/8453.json +6 -6
- package/addresses/999.json +7 -7
- package/addresses/999999999.json +7 -6
- package/dist/index.cjs +209 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +209 -55
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +2 -2
- package/dist/package/wagmiGenerated.d.ts +628 -138
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +208 -54
- package/package.json +2 -1
- package/script/DeployProxiesToNewChain.s.sol +10 -2
- package/script/DeployTestContracts.s.sol +35 -0
- package/src/DeploymentTestingUtils.sol +128 -18
- package/src/DeterministicDeployerScript.sol +2 -6
- package/src/ZoraDeployerBase.sol +2 -1
- package/src/ZoraDeployerUtils.sol +41 -5
- package/test/UpgradesTest.t.sol +132 -0
- package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +6 -1
package/dist/index.js
CHANGED
|
@@ -568,6 +568,7 @@ var zoraCreator1155ImplABI = [
|
|
|
568
568
|
name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER"
|
|
569
569
|
},
|
|
570
570
|
{ type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
|
|
571
|
+
{ type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
|
|
571
572
|
{ type: "error", inputs: [], name: "ERC1155_SETTING_APPROVAL_FOR_SELF" },
|
|
572
573
|
{
|
|
573
574
|
type: "error",
|
|
@@ -626,6 +627,7 @@ var zoraCreator1155ImplABI = [
|
|
|
626
627
|
name: "InvalidMerkleProof"
|
|
627
628
|
},
|
|
628
629
|
{ type: "error", inputs: [], name: "InvalidMintSchedule" },
|
|
630
|
+
{ type: "error", inputs: [], name: "InvalidSignatureVersion" },
|
|
629
631
|
{ type: "error", inputs: [], name: "MintNotYetStarted" },
|
|
630
632
|
{ type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
|
|
631
633
|
{ type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
|
|
@@ -1388,49 +1390,8 @@ var zoraCreator1155ImplABI = [
|
|
|
1388
1390
|
stateMutability: "nonpayable",
|
|
1389
1391
|
type: "function",
|
|
1390
1392
|
inputs: [
|
|
1391
|
-
{
|
|
1392
|
-
|
|
1393
|
-
internalType: "struct PremintConfig",
|
|
1394
|
-
type: "tuple",
|
|
1395
|
-
components: [
|
|
1396
|
-
{
|
|
1397
|
-
name: "tokenConfig",
|
|
1398
|
-
internalType: "struct TokenCreationConfig",
|
|
1399
|
-
type: "tuple",
|
|
1400
|
-
components: [
|
|
1401
|
-
{ name: "tokenURI", internalType: "string", type: "string" },
|
|
1402
|
-
{ name: "maxSupply", internalType: "uint256", type: "uint256" },
|
|
1403
|
-
{
|
|
1404
|
-
name: "maxTokensPerAddress",
|
|
1405
|
-
internalType: "uint64",
|
|
1406
|
-
type: "uint64"
|
|
1407
|
-
},
|
|
1408
|
-
{ name: "pricePerToken", internalType: "uint96", type: "uint96" },
|
|
1409
|
-
{ name: "mintStart", internalType: "uint64", type: "uint64" },
|
|
1410
|
-
{ name: "mintDuration", internalType: "uint64", type: "uint64" },
|
|
1411
|
-
{
|
|
1412
|
-
name: "royaltyMintSchedule",
|
|
1413
|
-
internalType: "uint32",
|
|
1414
|
-
type: "uint32"
|
|
1415
|
-
},
|
|
1416
|
-
{ name: "royaltyBPS", internalType: "uint32", type: "uint32" },
|
|
1417
|
-
{
|
|
1418
|
-
name: "royaltyRecipient",
|
|
1419
|
-
internalType: "address",
|
|
1420
|
-
type: "address"
|
|
1421
|
-
},
|
|
1422
|
-
{
|
|
1423
|
-
name: "fixedPriceMinter",
|
|
1424
|
-
internalType: "address",
|
|
1425
|
-
type: "address"
|
|
1426
|
-
}
|
|
1427
|
-
]
|
|
1428
|
-
},
|
|
1429
|
-
{ name: "uid", internalType: "uint32", type: "uint32" },
|
|
1430
|
-
{ name: "version", internalType: "uint32", type: "uint32" },
|
|
1431
|
-
{ name: "deleted", internalType: "bool", type: "bool" }
|
|
1432
|
-
]
|
|
1433
|
-
},
|
|
1393
|
+
{ name: "premintConfig", internalType: "bytes", type: "bytes" },
|
|
1394
|
+
{ name: "premintVersion", internalType: "bytes32", type: "bytes32" },
|
|
1434
1395
|
{ name: "signature", internalType: "bytes", type: "bytes" },
|
|
1435
1396
|
{ name: "sender", internalType: "address", type: "address" }
|
|
1436
1397
|
],
|
|
@@ -1800,6 +1761,13 @@ var zoraCreator1155ImplABI = [
|
|
|
1800
1761
|
name: "setupNewTokenWithCreateReferral",
|
|
1801
1762
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1802
1763
|
},
|
|
1764
|
+
{
|
|
1765
|
+
stateMutability: "pure",
|
|
1766
|
+
type: "function",
|
|
1767
|
+
inputs: [],
|
|
1768
|
+
name: "supportedPremintSignatureVersions",
|
|
1769
|
+
outputs: [{ name: "", internalType: "string[]", type: "string[]" }]
|
|
1770
|
+
},
|
|
1803
1771
|
{
|
|
1804
1772
|
stateMutability: "view",
|
|
1805
1773
|
type: "function",
|
|
@@ -1961,6 +1929,7 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
1961
1929
|
],
|
|
1962
1930
|
name: "Config_TransferHookNotSupported"
|
|
1963
1931
|
},
|
|
1932
|
+
{ type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
|
|
1964
1933
|
{ type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
|
|
1965
1934
|
{ type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
|
|
1966
1935
|
{ type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
|
|
@@ -2010,6 +1979,7 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2010
1979
|
name: "InvalidMerkleProof"
|
|
2011
1980
|
},
|
|
2012
1981
|
{ type: "error", inputs: [], name: "InvalidMintSchedule" },
|
|
1982
|
+
{ type: "error", inputs: [], name: "InvalidSignatureVersion" },
|
|
2013
1983
|
{ type: "error", inputs: [], name: "MintNotYetStarted" },
|
|
2014
1984
|
{ type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
|
|
2015
1985
|
{ type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
|
|
@@ -2261,6 +2231,44 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2261
2231
|
],
|
|
2262
2232
|
name: "Preminted"
|
|
2263
2233
|
},
|
|
2234
|
+
{
|
|
2235
|
+
type: "event",
|
|
2236
|
+
anonymous: false,
|
|
2237
|
+
inputs: [
|
|
2238
|
+
{
|
|
2239
|
+
name: "contractAddress",
|
|
2240
|
+
internalType: "address",
|
|
2241
|
+
type: "address",
|
|
2242
|
+
indexed: true
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
name: "tokenId",
|
|
2246
|
+
internalType: "uint256",
|
|
2247
|
+
type: "uint256",
|
|
2248
|
+
indexed: true
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
name: "createdNewContract",
|
|
2252
|
+
internalType: "bool",
|
|
2253
|
+
type: "bool",
|
|
2254
|
+
indexed: true
|
|
2255
|
+
},
|
|
2256
|
+
{ name: "uid", internalType: "uint32", type: "uint32", indexed: false },
|
|
2257
|
+
{
|
|
2258
|
+
name: "minter",
|
|
2259
|
+
internalType: "address",
|
|
2260
|
+
type: "address",
|
|
2261
|
+
indexed: false
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
name: "quantityMinted",
|
|
2265
|
+
internalType: "uint256",
|
|
2266
|
+
type: "uint256",
|
|
2267
|
+
indexed: false
|
|
2268
|
+
}
|
|
2269
|
+
],
|
|
2270
|
+
name: "PremintedV2"
|
|
2271
|
+
},
|
|
2264
2272
|
{
|
|
2265
2273
|
type: "event",
|
|
2266
2274
|
anonymous: false,
|
|
@@ -2313,6 +2321,13 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2313
2321
|
name: "getContractAddress",
|
|
2314
2322
|
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
2315
2323
|
},
|
|
2324
|
+
{
|
|
2325
|
+
stateMutability: "view",
|
|
2326
|
+
type: "function",
|
|
2327
|
+
inputs: [],
|
|
2328
|
+
name: "implementation",
|
|
2329
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
2330
|
+
},
|
|
2316
2331
|
{
|
|
2317
2332
|
stateMutability: "nonpayable",
|
|
2318
2333
|
type: "function",
|
|
@@ -2322,6 +2337,21 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2322
2337
|
name: "initialize",
|
|
2323
2338
|
outputs: []
|
|
2324
2339
|
},
|
|
2340
|
+
{
|
|
2341
|
+
stateMutability: "view",
|
|
2342
|
+
type: "function",
|
|
2343
|
+
inputs: [
|
|
2344
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
2345
|
+
{
|
|
2346
|
+
name: "premintContractConfigContractAdmin",
|
|
2347
|
+
internalType: "address",
|
|
2348
|
+
type: "address"
|
|
2349
|
+
},
|
|
2350
|
+
{ name: "contractAddress", internalType: "address", type: "address" }
|
|
2351
|
+
],
|
|
2352
|
+
name: "isAuthorizedToCreatePremint",
|
|
2353
|
+
outputs: [{ name: "isAuthorized", internalType: "bool", type: "bool" }]
|
|
2354
|
+
},
|
|
2325
2355
|
{
|
|
2326
2356
|
stateMutability: "view",
|
|
2327
2357
|
type: "function",
|
|
@@ -2480,16 +2510,19 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2480
2510
|
]
|
|
2481
2511
|
},
|
|
2482
2512
|
{
|
|
2483
|
-
stateMutability: "
|
|
2484
|
-
type: "function",
|
|
2485
|
-
inputs: [],
|
|
2486
|
-
name: "proxiableUUID",
|
|
2487
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2488
|
-
},
|
|
2489
|
-
{
|
|
2490
|
-
stateMutability: "view",
|
|
2513
|
+
stateMutability: "payable",
|
|
2491
2514
|
type: "function",
|
|
2492
2515
|
inputs: [
|
|
2516
|
+
{
|
|
2517
|
+
name: "contractConfig",
|
|
2518
|
+
internalType: "struct ContractCreationConfig",
|
|
2519
|
+
type: "tuple",
|
|
2520
|
+
components: [
|
|
2521
|
+
{ name: "contractAdmin", internalType: "address", type: "address" },
|
|
2522
|
+
{ name: "contractURI", internalType: "string", type: "string" },
|
|
2523
|
+
{ name: "contractName", internalType: "string", type: "string" }
|
|
2524
|
+
]
|
|
2525
|
+
},
|
|
2493
2526
|
{
|
|
2494
2527
|
name: "premintConfig",
|
|
2495
2528
|
internalType: "struct PremintConfig",
|
|
@@ -2533,11 +2566,123 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2533
2566
|
{ name: "deleted", internalType: "bool", type: "bool" }
|
|
2534
2567
|
]
|
|
2535
2568
|
},
|
|
2536
|
-
{ name: "
|
|
2537
|
-
{ name: "
|
|
2569
|
+
{ name: "signature", internalType: "bytes", type: "bytes" },
|
|
2570
|
+
{ name: "quantityToMint", internalType: "uint256", type: "uint256" },
|
|
2571
|
+
{
|
|
2572
|
+
name: "mintArguments",
|
|
2573
|
+
internalType: "struct IZoraCreator1155PremintExecutor.MintArguments",
|
|
2574
|
+
type: "tuple",
|
|
2575
|
+
components: [
|
|
2576
|
+
{ name: "mintRecipient", internalType: "address", type: "address" },
|
|
2577
|
+
{ name: "mintComment", internalType: "string", type: "string" },
|
|
2578
|
+
{ name: "mintReferral", internalType: "address", type: "address" }
|
|
2579
|
+
]
|
|
2580
|
+
}
|
|
2538
2581
|
],
|
|
2539
|
-
name: "
|
|
2540
|
-
outputs: [
|
|
2582
|
+
name: "premintV1",
|
|
2583
|
+
outputs: [
|
|
2584
|
+
{
|
|
2585
|
+
name: "result",
|
|
2586
|
+
internalType: "struct IZoraCreator1155PremintExecutor.PremintResult",
|
|
2587
|
+
type: "tuple",
|
|
2588
|
+
components: [
|
|
2589
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2590
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2591
|
+
{ name: "createdNewContract", internalType: "bool", type: "bool" }
|
|
2592
|
+
]
|
|
2593
|
+
}
|
|
2594
|
+
]
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
stateMutability: "payable",
|
|
2598
|
+
type: "function",
|
|
2599
|
+
inputs: [
|
|
2600
|
+
{
|
|
2601
|
+
name: "contractConfig",
|
|
2602
|
+
internalType: "struct ContractCreationConfig",
|
|
2603
|
+
type: "tuple",
|
|
2604
|
+
components: [
|
|
2605
|
+
{ name: "contractAdmin", internalType: "address", type: "address" },
|
|
2606
|
+
{ name: "contractURI", internalType: "string", type: "string" },
|
|
2607
|
+
{ name: "contractName", internalType: "string", type: "string" }
|
|
2608
|
+
]
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
name: "premintConfig",
|
|
2612
|
+
internalType: "struct PremintConfigV2",
|
|
2613
|
+
type: "tuple",
|
|
2614
|
+
components: [
|
|
2615
|
+
{
|
|
2616
|
+
name: "tokenConfig",
|
|
2617
|
+
internalType: "struct TokenCreationConfigV2",
|
|
2618
|
+
type: "tuple",
|
|
2619
|
+
components: [
|
|
2620
|
+
{ name: "tokenURI", internalType: "string", type: "string" },
|
|
2621
|
+
{ name: "maxSupply", internalType: "uint256", type: "uint256" },
|
|
2622
|
+
{
|
|
2623
|
+
name: "maxTokensPerAddress",
|
|
2624
|
+
internalType: "uint64",
|
|
2625
|
+
type: "uint64"
|
|
2626
|
+
},
|
|
2627
|
+
{ name: "pricePerToken", internalType: "uint96", type: "uint96" },
|
|
2628
|
+
{ name: "mintStart", internalType: "uint64", type: "uint64" },
|
|
2629
|
+
{ name: "mintDuration", internalType: "uint64", type: "uint64" },
|
|
2630
|
+
{ name: "royaltyBPS", internalType: "uint32", type: "uint32" },
|
|
2631
|
+
{
|
|
2632
|
+
name: "payoutRecipient",
|
|
2633
|
+
internalType: "address",
|
|
2634
|
+
type: "address"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
name: "fixedPriceMinter",
|
|
2638
|
+
internalType: "address",
|
|
2639
|
+
type: "address"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
name: "createReferral",
|
|
2643
|
+
internalType: "address",
|
|
2644
|
+
type: "address"
|
|
2645
|
+
}
|
|
2646
|
+
]
|
|
2647
|
+
},
|
|
2648
|
+
{ name: "uid", internalType: "uint32", type: "uint32" },
|
|
2649
|
+
{ name: "version", internalType: "uint32", type: "uint32" },
|
|
2650
|
+
{ name: "deleted", internalType: "bool", type: "bool" }
|
|
2651
|
+
]
|
|
2652
|
+
},
|
|
2653
|
+
{ name: "signature", internalType: "bytes", type: "bytes" },
|
|
2654
|
+
{ name: "quantityToMint", internalType: "uint256", type: "uint256" },
|
|
2655
|
+
{
|
|
2656
|
+
name: "mintArguments",
|
|
2657
|
+
internalType: "struct IZoraCreator1155PremintExecutor.MintArguments",
|
|
2658
|
+
type: "tuple",
|
|
2659
|
+
components: [
|
|
2660
|
+
{ name: "mintRecipient", internalType: "address", type: "address" },
|
|
2661
|
+
{ name: "mintComment", internalType: "string", type: "string" },
|
|
2662
|
+
{ name: "mintReferral", internalType: "address", type: "address" }
|
|
2663
|
+
]
|
|
2664
|
+
}
|
|
2665
|
+
],
|
|
2666
|
+
name: "premintV2",
|
|
2667
|
+
outputs: [
|
|
2668
|
+
{
|
|
2669
|
+
name: "result",
|
|
2670
|
+
internalType: "struct IZoraCreator1155PremintExecutor.PremintResult",
|
|
2671
|
+
type: "tuple",
|
|
2672
|
+
components: [
|
|
2673
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2674
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2675
|
+
{ name: "createdNewContract", internalType: "bool", type: "bool" }
|
|
2676
|
+
]
|
|
2677
|
+
}
|
|
2678
|
+
]
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
stateMutability: "view",
|
|
2682
|
+
type: "function",
|
|
2683
|
+
inputs: [],
|
|
2684
|
+
name: "proxiableUUID",
|
|
2685
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2541
2686
|
},
|
|
2542
2687
|
{
|
|
2543
2688
|
stateMutability: "nonpayable",
|
|
@@ -2553,6 +2698,15 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2553
2698
|
name: "safeTransferOwnership",
|
|
2554
2699
|
outputs: []
|
|
2555
2700
|
},
|
|
2701
|
+
{
|
|
2702
|
+
stateMutability: "view",
|
|
2703
|
+
type: "function",
|
|
2704
|
+
inputs: [
|
|
2705
|
+
{ name: "contractAddress", internalType: "address", type: "address" }
|
|
2706
|
+
],
|
|
2707
|
+
name: "supportedPremintSignatureVersions",
|
|
2708
|
+
outputs: [{ name: "versions", internalType: "string[]", type: "string[]" }]
|
|
2709
|
+
},
|
|
2556
2710
|
{
|
|
2557
2711
|
stateMutability: "nonpayable",
|
|
2558
2712
|
type: "function",
|