@zoralabs/protocol-deployments 0.0.3 → 0.0.5-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 +13 -13
- package/CHANGELOG.md +13 -0
- package/addresses/7777777.json +3 -3
- package/addresses/999.json +6 -6
- package/dist/index.cjs +76 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -68
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +16 -16
- package/dist/package/wagmiGenerated.d.ts +312 -201
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +76 -105
- package/package.json +2 -3
- package/script/CalculateDeterministicParams.s.sol +3 -3
- package/script/DeployMintersAndImplementations.s.sol +3 -3
- package/script/DeployNew1155Impl.s.sol +25 -0
- package/script/DeployNewImplementation.s.sol +3 -3
- package/script/DeployPreminterImpl.s.sol +3 -3
- package/script/DeployProxiesToNewChain.s.sol +4 -4
- package/script/DeployUpgradeGate.s.sol +5 -5
- package/script/Simulate1155Upgrade.s.sol +37 -0
- package/script/Upgrade.s.sol +3 -3
- package/script/UpgradePreminter.s.sol +3 -3
- package/src/DeploymentConfig.sol +124 -0
- package/src/DeploymentTestingUtils.sol +56 -0
- package/src/DeterministicDeployerScript.sol +253 -0
- package/src/DeterministicProxyDeployer.sol +139 -0
- package/src/IImmutableCreate2Factory.sol +59 -0
- package/src/ZoraDeployerBase.sol +144 -0
- package/src/ZoraDeployerUtils.sol +199 -0
- package/test/NewFactoryProxyDeployer.t.sol +4 -4
- package/test/ZoraCreator1155Factory_Fork.t.sol +1 -3
- package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +1 -1
- package/wagmi.config.ts +1 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wagmiGenerated.d.ts","sourceRoot":"","sources":["../../package/wagmiGenerated.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmJpC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;CAaxC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvC,CAAC"}
|
|
@@ -1,108 +1,3 @@
|
|
|
1
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// IImmutableCreate2Factory
|
|
3
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
7
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
8
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
9
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
10
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
11
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
12
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
13
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
14
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
15
|
-
*/
|
|
16
|
-
export const iImmutableCreate2FactoryABI = [
|
|
17
|
-
{
|
|
18
|
-
stateMutability: "view",
|
|
19
|
-
type: "function",
|
|
20
|
-
inputs: [
|
|
21
|
-
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
22
|
-
{ name: "initCode", internalType: "bytes", type: "bytes" },
|
|
23
|
-
],
|
|
24
|
-
name: "findCreate2Address",
|
|
25
|
-
outputs: [
|
|
26
|
-
{ name: "deploymentAddress", internalType: "address", type: "address" },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
stateMutability: "view",
|
|
31
|
-
type: "function",
|
|
32
|
-
inputs: [
|
|
33
|
-
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
34
|
-
{ name: "initCodeHash", internalType: "bytes32", type: "bytes32" },
|
|
35
|
-
],
|
|
36
|
-
name: "findCreate2AddressViaHash",
|
|
37
|
-
outputs: [
|
|
38
|
-
{ name: "deploymentAddress", internalType: "address", type: "address" },
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
stateMutability: "view",
|
|
43
|
-
type: "function",
|
|
44
|
-
inputs: [
|
|
45
|
-
{ name: "deploymentAddress", internalType: "address", type: "address" },
|
|
46
|
-
],
|
|
47
|
-
name: "hasBeenDeployed",
|
|
48
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
stateMutability: "payable",
|
|
52
|
-
type: "function",
|
|
53
|
-
inputs: [
|
|
54
|
-
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
55
|
-
{ name: "initializationCode", internalType: "bytes", type: "bytes" },
|
|
56
|
-
],
|
|
57
|
-
name: "safeCreate2",
|
|
58
|
-
outputs: [
|
|
59
|
-
{ name: "deploymentAddress", internalType: "address", type: "address" },
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
] as const;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
66
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
67
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
68
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
69
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
70
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
71
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
72
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
73
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
74
|
-
*/
|
|
75
|
-
export const iImmutableCreate2FactoryAddress = {
|
|
76
|
-
1: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
77
|
-
5: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
78
|
-
10: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
79
|
-
420: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
80
|
-
424: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
81
|
-
999: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
82
|
-
8453: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
83
|
-
58008: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
84
|
-
84531: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
85
|
-
7777777: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
86
|
-
11155111: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
87
|
-
999999999: "0x0000000000FFe8B47B3e2130213B802212439497",
|
|
88
|
-
} as const;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
92
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
93
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
94
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
95
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
96
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
97
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
98
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
99
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
100
|
-
*/
|
|
101
|
-
export const iImmutableCreate2FactoryConfig = {
|
|
102
|
-
address: iImmutableCreate2FactoryAddress,
|
|
103
|
-
abi: iImmutableCreate2FactoryABI,
|
|
104
|
-
} as const;
|
|
105
|
-
|
|
106
1
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
107
2
|
// ZoraCreator1155FactoryImpl
|
|
108
3
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -665,6 +560,7 @@ export const zoraCreator1155ImplABI = [
|
|
|
665
560
|
name: "CallFailed",
|
|
666
561
|
},
|
|
667
562
|
{ type: "error", inputs: [], name: "Call_TokenIdMismatch" },
|
|
563
|
+
{ type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
|
|
668
564
|
{
|
|
669
565
|
type: "error",
|
|
670
566
|
inputs: [
|
|
@@ -763,12 +659,23 @@ export const zoraCreator1155ImplABI = [
|
|
|
763
659
|
},
|
|
764
660
|
{ type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
|
|
765
661
|
{ type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
|
|
662
|
+
{
|
|
663
|
+
type: "error",
|
|
664
|
+
inputs: [
|
|
665
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
666
|
+
{ name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
|
|
667
|
+
{ name: "merkleRoot", internalType: "bytes32", type: "bytes32" },
|
|
668
|
+
],
|
|
669
|
+
name: "InvalidMerkleProof",
|
|
670
|
+
},
|
|
766
671
|
{ type: "error", inputs: [], name: "InvalidMintSchedule" },
|
|
767
672
|
{ type: "error", inputs: [], name: "MintNotYetStarted" },
|
|
768
673
|
{ type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
|
|
769
674
|
{ type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
|
|
770
675
|
{ type: "error", inputs: [], name: "Mint_UnknownCommand" },
|
|
771
676
|
{ type: "error", inputs: [], name: "Mint_ValueTransferFail" },
|
|
677
|
+
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
678
|
+
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
772
679
|
{ type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
|
|
773
680
|
{
|
|
774
681
|
type: "error",
|
|
@@ -792,6 +699,8 @@ export const zoraCreator1155ImplABI = [
|
|
|
792
699
|
name: "RendererNotValid",
|
|
793
700
|
},
|
|
794
701
|
{ type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
|
|
702
|
+
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
703
|
+
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
795
704
|
{
|
|
796
705
|
type: "error",
|
|
797
706
|
inputs: [
|
|
@@ -812,6 +721,15 @@ export const zoraCreator1155ImplABI = [
|
|
|
812
721
|
inputs: [],
|
|
813
722
|
name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL",
|
|
814
723
|
},
|
|
724
|
+
{
|
|
725
|
+
type: "error",
|
|
726
|
+
inputs: [
|
|
727
|
+
{ name: "user", internalType: "address", type: "address" },
|
|
728
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
729
|
+
{ name: "requestedAmount", internalType: "uint256", type: "uint256" },
|
|
730
|
+
],
|
|
731
|
+
name: "UserExceedsMintLimit",
|
|
732
|
+
},
|
|
815
733
|
{
|
|
816
734
|
type: "error",
|
|
817
735
|
inputs: [
|
|
@@ -821,6 +739,7 @@ export const zoraCreator1155ImplABI = [
|
|
|
821
739
|
],
|
|
822
740
|
name: "UserMissingRoleForToken",
|
|
823
741
|
},
|
|
742
|
+
{ type: "error", inputs: [], name: "WrongValueSent" },
|
|
824
743
|
{
|
|
825
744
|
type: "event",
|
|
826
745
|
anonymous: false,
|
|
@@ -2082,6 +2001,7 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2082
2001
|
name: "CallFailed",
|
|
2083
2002
|
},
|
|
2084
2003
|
{ type: "error", inputs: [], name: "Call_TokenIdMismatch" },
|
|
2004
|
+
{ type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
|
|
2085
2005
|
{
|
|
2086
2006
|
type: "error",
|
|
2087
2007
|
inputs: [
|
|
@@ -2138,11 +2058,23 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2138
2058
|
inputs: [],
|
|
2139
2059
|
name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING",
|
|
2140
2060
|
},
|
|
2061
|
+
{
|
|
2062
|
+
type: "error",
|
|
2063
|
+
inputs: [
|
|
2064
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
2065
|
+
{ name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
|
|
2066
|
+
{ name: "merkleRoot", internalType: "bytes32", type: "bytes32" },
|
|
2067
|
+
],
|
|
2068
|
+
name: "InvalidMerkleProof",
|
|
2069
|
+
},
|
|
2070
|
+
{ type: "error", inputs: [], name: "InvalidMintSchedule" },
|
|
2141
2071
|
{ type: "error", inputs: [], name: "MintNotYetStarted" },
|
|
2142
2072
|
{ type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
|
|
2143
2073
|
{ type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
|
|
2144
2074
|
{ type: "error", inputs: [], name: "Mint_UnknownCommand" },
|
|
2145
2075
|
{ type: "error", inputs: [], name: "Mint_ValueTransferFail" },
|
|
2076
|
+
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
2077
|
+
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
2146
2078
|
{ type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
|
|
2147
2079
|
{ type: "error", inputs: [], name: "ONLY_OWNER" },
|
|
2148
2080
|
{ type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
|
|
@@ -2158,6 +2090,8 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2158
2090
|
name: "ProtocolRewardsWithdrawFailed",
|
|
2159
2091
|
},
|
|
2160
2092
|
{ type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
|
|
2093
|
+
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
2094
|
+
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
2161
2095
|
{
|
|
2162
2096
|
type: "error",
|
|
2163
2097
|
inputs: [
|
|
@@ -2186,6 +2120,15 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2186
2120
|
],
|
|
2187
2121
|
name: "UpgradeToMismatchedContractName",
|
|
2188
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
type: "error",
|
|
2125
|
+
inputs: [
|
|
2126
|
+
{ name: "user", internalType: "address", type: "address" },
|
|
2127
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
2128
|
+
{ name: "requestedAmount", internalType: "uint256", type: "uint256" },
|
|
2129
|
+
],
|
|
2130
|
+
name: "UserExceedsMintLimit",
|
|
2131
|
+
},
|
|
2189
2132
|
{
|
|
2190
2133
|
type: "error",
|
|
2191
2134
|
inputs: [
|
|
@@ -2195,6 +2138,7 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2195
2138
|
],
|
|
2196
2139
|
name: "UserMissingRoleForToken",
|
|
2197
2140
|
},
|
|
2141
|
+
{ type: "error", inputs: [], name: "WrongValueSent" },
|
|
2198
2142
|
{
|
|
2199
2143
|
type: "event",
|
|
2200
2144
|
anonymous: false,
|
|
@@ -2761,6 +2705,18 @@ export const zoraCreator1155PremintExecutorImplConfig = {
|
|
|
2761
2705
|
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xA5E8d0d4FCed34E86AF6d4E16131C7210Ba8b4b7)
|
|
2762
2706
|
*/
|
|
2763
2707
|
export const zoraCreatorFixedPriceSaleStrategyABI = [
|
|
2708
|
+
{ type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
|
|
2709
|
+
{
|
|
2710
|
+
type: "error",
|
|
2711
|
+
inputs: [
|
|
2712
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
2713
|
+
{ name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
|
|
2714
|
+
{ name: "merkleRoot", internalType: "bytes32", type: "bytes32" },
|
|
2715
|
+
],
|
|
2716
|
+
name: "InvalidMerkleProof",
|
|
2717
|
+
},
|
|
2718
|
+
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
2719
|
+
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
2764
2720
|
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
2765
2721
|
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
2766
2722
|
{
|
|
@@ -3039,6 +2995,7 @@ export const zoraCreatorFixedPriceSaleStrategyConfig = {
|
|
|
3039
2995
|
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x357D8108A77762B41Ea0C4D69fBb1eF4391251eC)
|
|
3040
2996
|
*/
|
|
3041
2997
|
export const zoraCreatorMerkleMinterStrategyABI = [
|
|
2998
|
+
{ type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
|
|
3042
2999
|
{
|
|
3043
3000
|
type: "error",
|
|
3044
3001
|
inputs: [
|
|
@@ -3049,6 +3006,8 @@ export const zoraCreatorMerkleMinterStrategyABI = [
|
|
|
3049
3006
|
name: "InvalidMerkleProof",
|
|
3050
3007
|
},
|
|
3051
3008
|
{ type: "error", inputs: [], name: "MerkleClaimsExceeded" },
|
|
3009
|
+
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
3010
|
+
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
3052
3011
|
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
3053
3012
|
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
3054
3013
|
{
|
|
@@ -3295,8 +3254,20 @@ export const zoraCreatorMerkleMinterStrategyConfig = {
|
|
|
3295
3254
|
export const zoraCreatorRedeemMinterFactoryABI = [
|
|
3296
3255
|
{ stateMutability: "nonpayable", type: "constructor", inputs: [] },
|
|
3297
3256
|
{ type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
|
|
3257
|
+
{
|
|
3258
|
+
type: "error",
|
|
3259
|
+
inputs: [
|
|
3260
|
+
{ name: "mintTo", internalType: "address", type: "address" },
|
|
3261
|
+
{ name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
|
|
3262
|
+
{ name: "merkleRoot", internalType: "bytes32", type: "bytes32" },
|
|
3263
|
+
],
|
|
3264
|
+
name: "InvalidMerkleProof",
|
|
3265
|
+
},
|
|
3298
3266
|
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
3299
3267
|
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
3268
|
+
{ type: "error", inputs: [], name: "SaleEnded" },
|
|
3269
|
+
{ type: "error", inputs: [], name: "SaleHasNotStarted" },
|
|
3270
|
+
{ type: "error", inputs: [], name: "WrongValueSent" },
|
|
3300
3271
|
{
|
|
3301
3272
|
type: "event",
|
|
3302
3273
|
anonymous: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5-prerelease.0",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv",
|
|
11
|
-
"test
|
|
12
|
-
"test": "forge test -vvv",
|
|
11
|
+
"test": "FORK_TEST_CHAINS=mainnet,goerli,optimism,optimism_goerli,zora,zora_goerli,base_goerli,base,zora_sepolia forge test -vvv",
|
|
13
12
|
"build": "yarn wagmi && yarn bundle-configs && tsup",
|
|
14
13
|
"bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier",
|
|
15
14
|
"prettier": "prettier --write 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'",
|
|
@@ -4,15 +4,15 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
8
|
import {Zora1155Factory} from "@zoralabs/zora-1155-contracts/src/proxies/Zora1155Factory.sol";
|
|
9
9
|
import {ProxyShim} from "@zoralabs/zora-1155-contracts/src/utils/ProxyShim.sol";
|
|
10
10
|
import {UpgradeGate} from "@zoralabs/zora-1155-contracts/src/upgrades/UpgradeGate.sol";
|
|
11
11
|
import {LibString} from "solady/utils/LibString.sol";
|
|
12
12
|
import {Create2} from "@openzeppelin/contracts/utils/Create2.sol";
|
|
13
|
-
import {ZoraDeployerUtils} from "
|
|
13
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
14
14
|
import {Zora1155PremintExecutor} from "@zoralabs/zora-1155-contracts/src/proxies/Zora1155PremintExecutor.sol";
|
|
15
|
-
import {DeterministicDeployerScript, DeterministicParams} from "
|
|
15
|
+
import {DeterministicDeployerScript, DeterministicParams} from "../src/DeterministicDeployerScript.sol";
|
|
16
16
|
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
|
|
17
17
|
|
|
18
18
|
/// @title Gets parameters for deterministically deploying a new 1155 factory proxy at an address starting with 0x777777, regardless of the chain.
|
|
@@ -4,9 +4,9 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {ZoraDeployerUtils} from "
|
|
9
|
-
import {Deployment} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
9
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
10
10
|
|
|
11
11
|
contract DeployMintersAndImplementations is ZoraDeployerBase {
|
|
12
12
|
function run() public returns (string memory) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.17;
|
|
3
|
+
|
|
4
|
+
import "forge-std/Script.sol";
|
|
5
|
+
import "forge-std/console2.sol";
|
|
6
|
+
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
9
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
10
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
11
|
+
|
|
12
|
+
/// @dev Deploys implementation contracts for 1155 contracts.
|
|
13
|
+
/// @notice Run after deploying the minters
|
|
14
|
+
/// @notice This
|
|
15
|
+
contract DeployNewImplementations is ZoraDeployerBase {
|
|
16
|
+
function run() public returns (string memory) {
|
|
17
|
+
Deployment memory deployment = getDeployment();
|
|
18
|
+
|
|
19
|
+
vm.startBroadcast();
|
|
20
|
+
|
|
21
|
+
deployNew1155AndFactoryImpl(deployment);
|
|
22
|
+
|
|
23
|
+
return getDeploymentJSON(deployment);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -4,9 +4,9 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {Deployment} from "
|
|
9
|
-
import {DeterministicDeployerScript} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
9
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
10
10
|
|
|
11
11
|
/// @dev Deploys implementation contracts for 1155 contracts.
|
|
12
12
|
/// @notice Run after deploying the minters
|
|
@@ -4,9 +4,9 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {Deployment} from "
|
|
9
|
-
import {DeterministicDeployerScript} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
9
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
10
10
|
|
|
11
11
|
/// @dev Deploys preminter implementation contract.
|
|
12
12
|
/// @notice Run after deploying the minters
|
|
@@ -4,10 +4,10 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {Deployment} from "
|
|
9
|
-
import {ZoraDeployerUtils} from "
|
|
10
|
-
import {DeploymentTestingUtils} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
9
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
10
|
+
import {DeploymentTestingUtils} from "../src/DeploymentTestingUtils.sol";
|
|
11
11
|
|
|
12
12
|
contract DeployProxiesToNewChain is ZoraDeployerBase, DeploymentTestingUtils {
|
|
13
13
|
function run() public returns (string memory) {
|
|
@@ -4,11 +4,11 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {Deployment} from "
|
|
9
|
-
import {ZoraDeployerUtils} from "
|
|
10
|
-
import {DeploymentTestingUtils} from "
|
|
11
|
-
import {DeterministicDeployerScript} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
9
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
10
|
+
import {DeploymentTestingUtils} from "../src/DeploymentTestingUtils.sol";
|
|
11
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
12
12
|
|
|
13
13
|
contract DeployUpgradeGate is ZoraDeployerBase {
|
|
14
14
|
function run() public returns (string memory) {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.17;
|
|
3
|
+
|
|
4
|
+
import "forge-std/Script.sol";
|
|
5
|
+
import "forge-std/console2.sol";
|
|
6
|
+
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
9
|
+
import {Deployment, ChainConfig} from "../src/DeploymentConfig.sol";
|
|
10
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
11
|
+
|
|
12
|
+
/// @dev Deploys implementation contracts for 1155 contracts.
|
|
13
|
+
/// @notice Run after deploying the minters
|
|
14
|
+
/// @notice This
|
|
15
|
+
contract Simulate1155Upgrade is ZoraDeployerBase {
|
|
16
|
+
function run() public returns (string memory) {
|
|
17
|
+
Deployment memory deployment = getDeployment();
|
|
18
|
+
|
|
19
|
+
ChainConfig memory chainConfig = getChainConfig();
|
|
20
|
+
|
|
21
|
+
address creator = makeAddr("creator");
|
|
22
|
+
|
|
23
|
+
vm.startBroadcast(chainConfig.factoryOwner);
|
|
24
|
+
|
|
25
|
+
(address target, bytes memory upgradeCalldata) = ZoraDeployerUtils.simulateUpgrade(deployment);
|
|
26
|
+
|
|
27
|
+
console2.log("upgrade 1155 target:", target);
|
|
28
|
+
console2.log("calldata:");
|
|
29
|
+
console.logBytes(upgradeCalldata);
|
|
30
|
+
|
|
31
|
+
ZoraDeployerUtils.deployTestContractForVerification(deployment.factoryProxy, creator);
|
|
32
|
+
|
|
33
|
+
vm.stopBroadcast();
|
|
34
|
+
|
|
35
|
+
return getDeploymentJSON(deployment);
|
|
36
|
+
}
|
|
37
|
+
}
|
package/script/Upgrade.s.sol
CHANGED
|
@@ -3,8 +3,8 @@ pragma solidity ^0.8.17;
|
|
|
3
3
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
|
|
6
|
-
import {ZoraDeployerBase} from "
|
|
7
|
-
import {ChainConfig, Deployment} from "
|
|
6
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
7
|
+
import {ChainConfig, Deployment} from "../src/DeploymentConfig.sol";
|
|
8
8
|
|
|
9
9
|
import {ZoraCreator1155FactoryImpl} from "@zoralabs/zora-1155-contracts/src/factory/ZoraCreator1155FactoryImpl.sol";
|
|
10
10
|
import {Zora1155Factory} from "@zoralabs/zora-1155-contracts/src/proxies/Zora1155Factory.sol";
|
|
@@ -16,7 +16,7 @@ import {IZoraCreator1155} from "@zoralabs/zora-1155-contracts/src/interfaces/IZo
|
|
|
16
16
|
import {ZoraCreatorFixedPriceSaleStrategy} from "@zoralabs/zora-1155-contracts/src/minters/fixed-price/ZoraCreatorFixedPriceSaleStrategy.sol";
|
|
17
17
|
import {ZoraCreatorMerkleMinterStrategy} from "@zoralabs/zora-1155-contracts/src/minters/merkle/ZoraCreatorMerkleMinterStrategy.sol";
|
|
18
18
|
import {ZoraCreatorRedeemMinterFactory} from "@zoralabs/zora-1155-contracts/src/minters/redeem/ZoraCreatorRedeemMinterFactory.sol";
|
|
19
|
-
import {ZoraDeployerUtils} from "
|
|
19
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
20
20
|
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
|
|
21
21
|
|
|
22
22
|
contract UpgradeScript is ZoraDeployerBase {
|
|
@@ -4,10 +4,10 @@ pragma solidity ^0.8.17;
|
|
|
4
4
|
import "forge-std/Script.sol";
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
|
-
import {ZoraDeployerBase} from "
|
|
8
|
-
import {ChainConfig, Deployment} from "
|
|
7
|
+
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
+
import {ChainConfig, Deployment} from "../src/DeploymentConfig.sol";
|
|
9
9
|
import {UUPSUpgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
10
|
-
import {ZoraDeployerUtils} from "
|
|
10
|
+
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
11
11
|
|
|
12
12
|
contract UpgradePreminter is ZoraDeployerBase {
|
|
13
13
|
function run() public returns (string memory, bytes memory upgradeCalldata, address upgradeTarget) {
|