@zoralabs/protocol-deployments 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +14 -14
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +0 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -68
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +6 -6
- package/dist/package/wagmiGenerated.d.ts +0 -201
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +0 -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 +24 -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/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 +176 -0
- package/test/NewFactoryProxyDeployer.t.sol +4 -4
- package/test/ZoraCreator1155Factory_Fork.t.sol +1 -3
- package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +2 -2
- package/wagmi.config.ts +1 -7
- package/test/ZoraCreator1155SupplyRoyaltyDeprecation.t.sol +0 -74
|
@@ -131,13 +131,13 @@ export declare const walletClientWithAccount: {
|
|
|
131
131
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
132
132
|
[x: `string[${string}]`]: undefined;
|
|
133
133
|
[x: `function[${string}]`]: undefined;
|
|
134
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
135
|
-
[x: `bytes[${string}]`]: undefined;
|
|
136
134
|
[x: `address[${string}]`]: undefined;
|
|
137
|
-
[x: `bool[${string}]`]: undefined;
|
|
138
135
|
[x: `uint8[${string}]`]: undefined;
|
|
139
136
|
[x: `uint32[${string}]`]: undefined;
|
|
137
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
138
|
+
[x: `bytes[${string}]`]: undefined;
|
|
140
139
|
[x: `uint256[${string}]`]: undefined;
|
|
140
|
+
[x: `bool[${string}]`]: undefined;
|
|
141
141
|
[x: `uint96[${string}]`]: undefined;
|
|
142
142
|
[x: `uint64[${string}]`]: undefined;
|
|
143
143
|
[x: `bytes4[${string}]`]: undefined;
|
|
@@ -233,13 +233,13 @@ export declare const walletClientWithAccount: {
|
|
|
233
233
|
[x: `uint240[${string}]`]: undefined;
|
|
234
234
|
[x: `uint248[${string}]`]: undefined;
|
|
235
235
|
string?: undefined;
|
|
236
|
-
bytes32?: undefined;
|
|
237
|
-
bytes?: undefined;
|
|
238
236
|
address?: undefined;
|
|
239
|
-
bool?: undefined;
|
|
240
237
|
uint8?: undefined;
|
|
241
238
|
uint32?: undefined;
|
|
239
|
+
bytes32?: undefined;
|
|
240
|
+
bytes?: undefined;
|
|
242
241
|
uint256?: undefined;
|
|
242
|
+
bool?: undefined;
|
|
243
243
|
uint96?: undefined;
|
|
244
244
|
uint64?: undefined;
|
|
245
245
|
bytes4?: undefined;
|
|
@@ -1,204 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
3
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
4
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
5
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
6
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
7
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
8
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
9
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
10
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
11
|
-
*/
|
|
12
|
-
export declare const iImmutableCreate2FactoryABI: readonly [{
|
|
13
|
-
readonly stateMutability: "view";
|
|
14
|
-
readonly type: "function";
|
|
15
|
-
readonly inputs: readonly [{
|
|
16
|
-
readonly name: "salt";
|
|
17
|
-
readonly internalType: "bytes32";
|
|
18
|
-
readonly type: "bytes32";
|
|
19
|
-
}, {
|
|
20
|
-
readonly name: "initCode";
|
|
21
|
-
readonly internalType: "bytes";
|
|
22
|
-
readonly type: "bytes";
|
|
23
|
-
}];
|
|
24
|
-
readonly name: "findCreate2Address";
|
|
25
|
-
readonly outputs: readonly [{
|
|
26
|
-
readonly name: "deploymentAddress";
|
|
27
|
-
readonly internalType: "address";
|
|
28
|
-
readonly type: "address";
|
|
29
|
-
}];
|
|
30
|
-
}, {
|
|
31
|
-
readonly stateMutability: "view";
|
|
32
|
-
readonly type: "function";
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly name: "salt";
|
|
35
|
-
readonly internalType: "bytes32";
|
|
36
|
-
readonly type: "bytes32";
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "initCodeHash";
|
|
39
|
-
readonly internalType: "bytes32";
|
|
40
|
-
readonly type: "bytes32";
|
|
41
|
-
}];
|
|
42
|
-
readonly name: "findCreate2AddressViaHash";
|
|
43
|
-
readonly outputs: readonly [{
|
|
44
|
-
readonly name: "deploymentAddress";
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly type: "address";
|
|
47
|
-
}];
|
|
48
|
-
}, {
|
|
49
|
-
readonly stateMutability: "view";
|
|
50
|
-
readonly type: "function";
|
|
51
|
-
readonly inputs: readonly [{
|
|
52
|
-
readonly name: "deploymentAddress";
|
|
53
|
-
readonly internalType: "address";
|
|
54
|
-
readonly type: "address";
|
|
55
|
-
}];
|
|
56
|
-
readonly name: "hasBeenDeployed";
|
|
57
|
-
readonly outputs: readonly [{
|
|
58
|
-
readonly name: "";
|
|
59
|
-
readonly internalType: "bool";
|
|
60
|
-
readonly type: "bool";
|
|
61
|
-
}];
|
|
62
|
-
}, {
|
|
63
|
-
readonly stateMutability: "payable";
|
|
64
|
-
readonly type: "function";
|
|
65
|
-
readonly inputs: readonly [{
|
|
66
|
-
readonly name: "salt";
|
|
67
|
-
readonly internalType: "bytes32";
|
|
68
|
-
readonly type: "bytes32";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "initializationCode";
|
|
71
|
-
readonly internalType: "bytes";
|
|
72
|
-
readonly type: "bytes";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "safeCreate2";
|
|
75
|
-
readonly outputs: readonly [{
|
|
76
|
-
readonly name: "deploymentAddress";
|
|
77
|
-
readonly internalType: "address";
|
|
78
|
-
readonly type: "address";
|
|
79
|
-
}];
|
|
80
|
-
}];
|
|
81
|
-
/**
|
|
82
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
83
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
84
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
85
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
86
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
87
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
88
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
89
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
90
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
91
|
-
*/
|
|
92
|
-
export declare const iImmutableCreate2FactoryAddress: {
|
|
93
|
-
readonly 1: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
94
|
-
readonly 5: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
95
|
-
readonly 10: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
96
|
-
readonly 420: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
97
|
-
readonly 424: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
98
|
-
readonly 999: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
99
|
-
readonly 8453: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
100
|
-
readonly 58008: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
101
|
-
readonly 84531: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
102
|
-
readonly 7777777: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
103
|
-
readonly 11155111: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
104
|
-
readonly 999999999: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
108
|
-
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
109
|
-
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
110
|
-
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
111
|
-
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
112
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
113
|
-
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
114
|
-
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
115
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x0000000000FFe8B47B3e2130213B802212439497)
|
|
116
|
-
*/
|
|
117
|
-
export declare const iImmutableCreate2FactoryConfig: {
|
|
118
|
-
readonly address: {
|
|
119
|
-
readonly 1: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
120
|
-
readonly 5: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
121
|
-
readonly 10: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
122
|
-
readonly 420: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
123
|
-
readonly 424: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
124
|
-
readonly 999: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
125
|
-
readonly 8453: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
126
|
-
readonly 58008: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
127
|
-
readonly 84531: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
128
|
-
readonly 7777777: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
129
|
-
readonly 11155111: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
130
|
-
readonly 999999999: "0x0000000000FFe8B47B3e2130213B802212439497";
|
|
131
|
-
};
|
|
132
|
-
readonly abi: readonly [{
|
|
133
|
-
readonly stateMutability: "view";
|
|
134
|
-
readonly type: "function";
|
|
135
|
-
readonly inputs: readonly [{
|
|
136
|
-
readonly name: "salt";
|
|
137
|
-
readonly internalType: "bytes32";
|
|
138
|
-
readonly type: "bytes32";
|
|
139
|
-
}, {
|
|
140
|
-
readonly name: "initCode";
|
|
141
|
-
readonly internalType: "bytes";
|
|
142
|
-
readonly type: "bytes";
|
|
143
|
-
}];
|
|
144
|
-
readonly name: "findCreate2Address";
|
|
145
|
-
readonly outputs: readonly [{
|
|
146
|
-
readonly name: "deploymentAddress";
|
|
147
|
-
readonly internalType: "address";
|
|
148
|
-
readonly type: "address";
|
|
149
|
-
}];
|
|
150
|
-
}, {
|
|
151
|
-
readonly stateMutability: "view";
|
|
152
|
-
readonly type: "function";
|
|
153
|
-
readonly inputs: readonly [{
|
|
154
|
-
readonly name: "salt";
|
|
155
|
-
readonly internalType: "bytes32";
|
|
156
|
-
readonly type: "bytes32";
|
|
157
|
-
}, {
|
|
158
|
-
readonly name: "initCodeHash";
|
|
159
|
-
readonly internalType: "bytes32";
|
|
160
|
-
readonly type: "bytes32";
|
|
161
|
-
}];
|
|
162
|
-
readonly name: "findCreate2AddressViaHash";
|
|
163
|
-
readonly outputs: readonly [{
|
|
164
|
-
readonly name: "deploymentAddress";
|
|
165
|
-
readonly internalType: "address";
|
|
166
|
-
readonly type: "address";
|
|
167
|
-
}];
|
|
168
|
-
}, {
|
|
169
|
-
readonly stateMutability: "view";
|
|
170
|
-
readonly type: "function";
|
|
171
|
-
readonly inputs: readonly [{
|
|
172
|
-
readonly name: "deploymentAddress";
|
|
173
|
-
readonly internalType: "address";
|
|
174
|
-
readonly type: "address";
|
|
175
|
-
}];
|
|
176
|
-
readonly name: "hasBeenDeployed";
|
|
177
|
-
readonly outputs: readonly [{
|
|
178
|
-
readonly name: "";
|
|
179
|
-
readonly internalType: "bool";
|
|
180
|
-
readonly type: "bool";
|
|
181
|
-
}];
|
|
182
|
-
}, {
|
|
183
|
-
readonly stateMutability: "payable";
|
|
184
|
-
readonly type: "function";
|
|
185
|
-
readonly inputs: readonly [{
|
|
186
|
-
readonly name: "salt";
|
|
187
|
-
readonly internalType: "bytes32";
|
|
188
|
-
readonly type: "bytes32";
|
|
189
|
-
}, {
|
|
190
|
-
readonly name: "initializationCode";
|
|
191
|
-
readonly internalType: "bytes";
|
|
192
|
-
readonly type: "bytes";
|
|
193
|
-
}];
|
|
194
|
-
readonly name: "safeCreate2";
|
|
195
|
-
readonly outputs: readonly [{
|
|
196
|
-
readonly name: "deploymentAddress";
|
|
197
|
-
readonly internalType: "address";
|
|
198
|
-
readonly type: "address";
|
|
199
|
-
}];
|
|
200
|
-
}];
|
|
201
|
-
};
|
|
202
1
|
/**
|
|
203
2
|
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
204
3
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wagmiGenerated.d.ts","sourceRoot":"","sources":["../../package/wagmiGenerated.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"wagmiGenerated.d.ts","sourceRoot":"","sources":["../../package/wagmiGenerated.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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X;;;;;;;;;;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
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
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",
|
|
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,24 @@
|
|
|
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 {Deployment} from "../src/DeploymentConfig.sol";
|
|
9
|
+
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
10
|
+
|
|
11
|
+
/// @dev Deploys implementation contracts for 1155 contracts.
|
|
12
|
+
/// @notice Run after deploying the minters
|
|
13
|
+
/// @notice This
|
|
14
|
+
contract DeployNewImplementations is ZoraDeployerBase {
|
|
15
|
+
function run() public returns (string memory) {
|
|
16
|
+
Deployment memory deployment = getDeployment();
|
|
17
|
+
|
|
18
|
+
vm.startBroadcast();
|
|
19
|
+
|
|
20
|
+
deployNew1155AndFactoryImpl(deployment);
|
|
21
|
+
|
|
22
|
+
return getDeploymentJSON(deployment);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -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) {
|
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) {
|