@zoralabs/coins 2.3.1 → 2.4.1
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$colon$js.log +119 -128
- package/CHANGELOG.md +30 -0
- package/abis/Address.json +0 -16
- package/abis/BuySupplyWithSwapRouterHook.json +0 -27
- package/abis/BuySupplyWithV4SwapHook.json +0 -32
- package/abis/Clones.json +1 -1
- package/abis/CoinDopplerMultiCurve.json +109 -0
- package/abis/Create2.json +0 -21
- package/abis/ERC1967Proxy.json +1 -1
- package/abis/ERC1967Utils.json +0 -45
- package/abis/{UpgradeCoinImpl.json → Errors.json} +14 -10
- package/abis/{MockERC20.json → IERC1363.json} +134 -104
- package/abis/IERC1967.json +47 -0
- package/abis/IERC20.json +0 -36
- package/abis/IProtocolRewards.json +0 -258
- package/abis/{Script.json → ISupportsLimitOrderFill.json} +2 -2
- package/abis/ITrustedMsgSenderProviderLookup.json +21 -0
- package/abis/IZoraLimitOrderBookCoinsInterface.json +67 -0
- package/abis/IZoraV4CoinHook.json +15 -0
- package/abis/ProxyShim.json +15 -16
- package/abis/SafeCast.json +51 -0
- package/abis/{AddressConstants.json → SafeCast160.json} +1 -1
- package/abis/Strings.json +10 -0
- package/abis/TrustedMsgSenderProviderLookup.json +215 -0
- package/abis/UUPSUpgradeable.json +1 -1
- package/abis/V3ToV4SwapLib.json +28 -0
- package/abis/ZoraFactory.json +1 -1
- package/abis/ZoraFactoryImpl.json +22 -6
- package/abis/ZoraV4CoinHook.json +41 -51
- package/dist/index.cjs +950 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +948 -41
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +1459 -76
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +5 -1
- package/package/wagmiGenerated.ts +951 -44
- package/package.json +7 -7
- package/remappings.txt +2 -1
- package/src/ZoraFactoryImpl.sol +8 -0
- package/src/deployment/ForkedCoinsAddresses.sol +54 -0
- package/src/hooks/ZoraV4CoinHook.sol +92 -74
- package/src/hooks/deployment/BuySupplyWithV4SwapHook.sol +20 -142
- package/src/interfaces/ISupportsLimitOrderFill.sol +11 -0
- package/src/interfaces/ITrustedMsgSenderProviderLookup.sol +18 -0
- package/src/interfaces/IZoraLimitOrderBookCoinsInterface.sol +21 -0
- package/src/interfaces/IZoraV4CoinHook.sol +9 -0
- package/src/libs/CoinConstants.sol +6 -0
- package/src/libs/CoinDopplerMultiCurve.sol +1 -1
- package/src/libs/CoinRewardsV4.sol +0 -1
- package/src/libs/HooksDeployment.sol +25 -12
- package/src/libs/UniV4SwapHelper.sol +35 -0
- package/src/libs/V3ToV4SwapLib.sol +261 -0
- package/src/libs/V4Liquidity.sol +50 -6
- package/src/utils/TrustedMsgSenderProviderLookup.sol +73 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/BuySupplyWithV4SwapHook.t.sol +4 -3
- package/test/Coin.t.sol +7 -1
- package/test/CoinUniV4.t.sol +2 -1
- package/test/ContentCoinRewards.t.sol +5 -1
- package/test/CreatorCoin.t.sol +3 -1
- package/test/CreatorCoinRewards.t.sol +7 -1
- package/test/Factory.t.sol +20 -7
- package/test/HooksDeployment.t.sol +73 -8
- package/test/LiquidityMigration.t.sol +55 -43
- package/test/MultiOwnable.t.sol +2 -1
- package/test/TrustedMsgSenderProviderLookup.t.sol +112 -0
- package/test/Upgrades.t.sol +112 -78
- package/test/V4Liquidity.t.sol +1 -1
- package/test/mocks/MockSwapRouter.sol +33 -0
- package/test/mocks/MockZoraLimitOrderBook.sol +14 -0
- package/test/utils/BaseTest.sol +17 -425
- package/test/utils/FeeEstimatorHook.sol +8 -2
- package/test/utils/TrustedSenderTestHelper.sol +18 -0
- package/test/utils/V4TestSetup.sol +595 -0
- package/wagmi.config.ts +1 -1
- package/abis/BaseTest.json +0 -718
- package/abis/DeterministicDeployerAndCaller.json +0 -315
- package/abis/DeterministicUUPSProxyDeployer.json +0 -167
- package/abis/EIP712.json +0 -67
- package/abis/ERC20.json +0 -310
- package/abis/FeeEstimatorHook.json +0 -1915
- package/abis/IERC721.json +0 -287
- package/abis/IERC721Enumerable.json +0 -343
- package/abis/IERC721Metadata.json +0 -332
- package/abis/IERC721TokenReceiver.json +0 -36
- package/abis/IImmutableCreate2Factory.json +0 -93
- package/abis/IMulticall3.json +0 -440
- package/abis/ISafe.json +0 -15
- package/abis/ISymbol.json +0 -15
- package/abis/IUniswapV4Router04.json +0 -484
- package/abis/IUniversalRouter.json +0 -61
- package/abis/IV4Quoter.json +0 -310
- package/abis/ImmutableCreate2FactoryUtils.json +0 -15
- package/abis/LibString.json +0 -7
- package/abis/Math.json +0 -7
- package/abis/MockAirlock.json +0 -39
- package/abis/MockERC721.json +0 -350
- package/abis/ProtocolRewards.json +0 -494
- package/abis/ShortStrings.json +0 -18
- package/abis/SimpleERC20.json +0 -326
- package/abis/StdAssertions.json +0 -379
- package/abis/StdInvariant.json +0 -180
- package/abis/Test.json +0 -570
- package/abis/VmContractHelper239.json +0 -233
- package/abis/stdError.json +0 -119
- package/abis/stdStorageSafe.json +0 -52
- package/addresses/8453.json +0 -13
- package/addresses/84532.json +0 -10
- package/deterministicConfig/deployerAndCaller.json +0 -5
- package/deterministicConfig/zoraFactory.json +0 -8
- package/script/Deploy.s.sol +0 -23
- package/script/DeployAutoSwapper.s.sol +0 -30
- package/script/DeployDevFactory.s.sol +0 -21
- package/script/DeployPostDeploymentHooks.s.sol +0 -20
- package/script/DeployUpgradeGate.s.sol +0 -21
- package/script/GenerateDeterministicParams.s.sol +0 -43
- package/script/PrintRegisterUpgradePath.s.sol +0 -28
- package/script/PrintUpgradeCommand.s.sol +0 -13
- package/script/TestBackingCoinSwap.s.sol +0 -144
- package/script/TestV4Swap.s.sol +0 -133
- package/script/UpgradeCoinImpl.sol +0 -23
- package/script/UpgradeFactoryImpl.s.sol +0 -28
- package/script/UpgradeHooks.s.sol +0 -23
- package/src/deployment/CoinsDeployerBase.sol +0 -276
- /package/{test → src}/utils/ProxyShim.sol +0 -0
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "function",
|
|
4
|
-
"name": "deployCode",
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"name": "_artifact",
|
|
8
|
-
"type": "string",
|
|
9
|
-
"internalType": "string"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "_value",
|
|
13
|
-
"type": "uint256",
|
|
14
|
-
"internalType": "uint256"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "_salt",
|
|
18
|
-
"type": "bytes32",
|
|
19
|
-
"internalType": "bytes32"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"outputs": [
|
|
23
|
-
{
|
|
24
|
-
"name": "",
|
|
25
|
-
"type": "address",
|
|
26
|
-
"internalType": "address"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"stateMutability": "nonpayable"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "function",
|
|
33
|
-
"name": "deployCode",
|
|
34
|
-
"inputs": [
|
|
35
|
-
{
|
|
36
|
-
"name": "_artifact",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"internalType": "string"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "_args",
|
|
42
|
-
"type": "bytes",
|
|
43
|
-
"internalType": "bytes"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "_salt",
|
|
47
|
-
"type": "bytes32",
|
|
48
|
-
"internalType": "bytes32"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"outputs": [
|
|
52
|
-
{
|
|
53
|
-
"name": "",
|
|
54
|
-
"type": "address",
|
|
55
|
-
"internalType": "address"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"stateMutability": "nonpayable"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "function",
|
|
62
|
-
"name": "deployCode",
|
|
63
|
-
"inputs": [
|
|
64
|
-
{
|
|
65
|
-
"name": "_artifact",
|
|
66
|
-
"type": "string",
|
|
67
|
-
"internalType": "string"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "_value",
|
|
71
|
-
"type": "uint256",
|
|
72
|
-
"internalType": "uint256"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"outputs": [
|
|
76
|
-
{
|
|
77
|
-
"name": "",
|
|
78
|
-
"type": "address",
|
|
79
|
-
"internalType": "address"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"stateMutability": "nonpayable"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"type": "function",
|
|
86
|
-
"name": "deployCode",
|
|
87
|
-
"inputs": [
|
|
88
|
-
{
|
|
89
|
-
"name": "_artifact",
|
|
90
|
-
"type": "string",
|
|
91
|
-
"internalType": "string"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "_salt",
|
|
95
|
-
"type": "bytes32",
|
|
96
|
-
"internalType": "bytes32"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"outputs": [
|
|
100
|
-
{
|
|
101
|
-
"name": "",
|
|
102
|
-
"type": "address",
|
|
103
|
-
"internalType": "address"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"stateMutability": "nonpayable"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"type": "function",
|
|
110
|
-
"name": "deployCode",
|
|
111
|
-
"inputs": [
|
|
112
|
-
{
|
|
113
|
-
"name": "_artifact",
|
|
114
|
-
"type": "string",
|
|
115
|
-
"internalType": "string"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "_args",
|
|
119
|
-
"type": "bytes",
|
|
120
|
-
"internalType": "bytes"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"outputs": [
|
|
124
|
-
{
|
|
125
|
-
"name": "",
|
|
126
|
-
"type": "address",
|
|
127
|
-
"internalType": "address"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"stateMutability": "nonpayable"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "function",
|
|
134
|
-
"name": "deployCode",
|
|
135
|
-
"inputs": [
|
|
136
|
-
{
|
|
137
|
-
"name": "_artifact",
|
|
138
|
-
"type": "string",
|
|
139
|
-
"internalType": "string"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "_args",
|
|
143
|
-
"type": "bytes",
|
|
144
|
-
"internalType": "bytes"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "_value",
|
|
148
|
-
"type": "uint256",
|
|
149
|
-
"internalType": "uint256"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"name": "_salt",
|
|
153
|
-
"type": "bytes32",
|
|
154
|
-
"internalType": "bytes32"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"outputs": [
|
|
158
|
-
{
|
|
159
|
-
"name": "",
|
|
160
|
-
"type": "address",
|
|
161
|
-
"internalType": "address"
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"stateMutability": "nonpayable"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"type": "function",
|
|
168
|
-
"name": "deployCode",
|
|
169
|
-
"inputs": [
|
|
170
|
-
{
|
|
171
|
-
"name": "_artifact",
|
|
172
|
-
"type": "string",
|
|
173
|
-
"internalType": "string"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"outputs": [
|
|
177
|
-
{
|
|
178
|
-
"name": "",
|
|
179
|
-
"type": "address",
|
|
180
|
-
"internalType": "address"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"stateMutability": "nonpayable"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"type": "function",
|
|
187
|
-
"name": "deployCode",
|
|
188
|
-
"inputs": [
|
|
189
|
-
{
|
|
190
|
-
"name": "_artifact",
|
|
191
|
-
"type": "string",
|
|
192
|
-
"internalType": "string"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "_args",
|
|
196
|
-
"type": "bytes",
|
|
197
|
-
"internalType": "bytes"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"name": "_value",
|
|
201
|
-
"type": "uint256",
|
|
202
|
-
"internalType": "uint256"
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
"outputs": [
|
|
206
|
-
{
|
|
207
|
-
"name": "",
|
|
208
|
-
"type": "address",
|
|
209
|
-
"internalType": "address"
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
"stateMutability": "nonpayable"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"type": "function",
|
|
216
|
-
"name": "getCode",
|
|
217
|
-
"inputs": [
|
|
218
|
-
{
|
|
219
|
-
"name": "_artifact",
|
|
220
|
-
"type": "string",
|
|
221
|
-
"internalType": "string"
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"outputs": [
|
|
225
|
-
{
|
|
226
|
-
"name": "",
|
|
227
|
-
"type": "bytes",
|
|
228
|
-
"internalType": "bytes"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"stateMutability": "nonpayable"
|
|
232
|
-
}
|
|
233
|
-
]
|
package/abis/stdError.json
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "function",
|
|
4
|
-
"name": "arithmeticError",
|
|
5
|
-
"inputs": [],
|
|
6
|
-
"outputs": [
|
|
7
|
-
{
|
|
8
|
-
"name": "",
|
|
9
|
-
"type": "bytes",
|
|
10
|
-
"internalType": "bytes"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"stateMutability": "view"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "function",
|
|
17
|
-
"name": "assertionError",
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"outputs": [
|
|
20
|
-
{
|
|
21
|
-
"name": "",
|
|
22
|
-
"type": "bytes",
|
|
23
|
-
"internalType": "bytes"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"stateMutability": "view"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "function",
|
|
30
|
-
"name": "divisionError",
|
|
31
|
-
"inputs": [],
|
|
32
|
-
"outputs": [
|
|
33
|
-
{
|
|
34
|
-
"name": "",
|
|
35
|
-
"type": "bytes",
|
|
36
|
-
"internalType": "bytes"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"stateMutability": "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "function",
|
|
43
|
-
"name": "encodeStorageError",
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"outputs": [
|
|
46
|
-
{
|
|
47
|
-
"name": "",
|
|
48
|
-
"type": "bytes",
|
|
49
|
-
"internalType": "bytes"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"stateMutability": "view"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "function",
|
|
56
|
-
"name": "enumConversionError",
|
|
57
|
-
"inputs": [],
|
|
58
|
-
"outputs": [
|
|
59
|
-
{
|
|
60
|
-
"name": "",
|
|
61
|
-
"type": "bytes",
|
|
62
|
-
"internalType": "bytes"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"stateMutability": "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "function",
|
|
69
|
-
"name": "indexOOBError",
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"name": "",
|
|
74
|
-
"type": "bytes",
|
|
75
|
-
"internalType": "bytes"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"stateMutability": "view"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "function",
|
|
82
|
-
"name": "memOverflowError",
|
|
83
|
-
"inputs": [],
|
|
84
|
-
"outputs": [
|
|
85
|
-
{
|
|
86
|
-
"name": "",
|
|
87
|
-
"type": "bytes",
|
|
88
|
-
"internalType": "bytes"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"stateMutability": "view"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "function",
|
|
95
|
-
"name": "popError",
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"outputs": [
|
|
98
|
-
{
|
|
99
|
-
"name": "",
|
|
100
|
-
"type": "bytes",
|
|
101
|
-
"internalType": "bytes"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"stateMutability": "view"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "function",
|
|
108
|
-
"name": "zeroVarError",
|
|
109
|
-
"inputs": [],
|
|
110
|
-
"outputs": [
|
|
111
|
-
{
|
|
112
|
-
"name": "",
|
|
113
|
-
"type": "bytes",
|
|
114
|
-
"internalType": "bytes"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"stateMutability": "view"
|
|
118
|
-
}
|
|
119
|
-
]
|
package/abis/stdStorageSafe.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "event",
|
|
4
|
-
"name": "SlotFound",
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"name": "who",
|
|
8
|
-
"type": "address",
|
|
9
|
-
"indexed": false,
|
|
10
|
-
"internalType": "address"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "fsig",
|
|
14
|
-
"type": "bytes4",
|
|
15
|
-
"indexed": false,
|
|
16
|
-
"internalType": "bytes4"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "keysHash",
|
|
20
|
-
"type": "bytes32",
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"internalType": "bytes32"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "slot",
|
|
26
|
-
"type": "uint256",
|
|
27
|
-
"indexed": false,
|
|
28
|
-
"internalType": "uint256"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"anonymous": false
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"type": "event",
|
|
35
|
-
"name": "WARNING_UninitedSlot",
|
|
36
|
-
"inputs": [
|
|
37
|
-
{
|
|
38
|
-
"name": "who",
|
|
39
|
-
"type": "address",
|
|
40
|
-
"indexed": false,
|
|
41
|
-
"internalType": "address"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "slot",
|
|
45
|
-
"type": "uint256",
|
|
46
|
-
"indexed": false,
|
|
47
|
-
"internalType": "uint256"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"anonymous": false
|
|
51
|
-
}
|
|
52
|
-
]
|
package/addresses/8453.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"BUY_SUPPLY_WITH_SWAP_ROUTER_HOOK": "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
|
|
3
|
-
"COIN_V3_IMPL": "0x45Bf86430af7CD071Ea23aE52325A78C8d12aD5a",
|
|
4
|
-
"COIN_V4_IMPL": "0x7Cad62748DDf516CF85bC2C05C14786D84Cf861c",
|
|
5
|
-
"COIN_VERSION": "2.3.0",
|
|
6
|
-
"CREATOR_COIN_IMPL": "0x36853f9f48fAEe51Bd3db15db21EB4B9038bB795",
|
|
7
|
-
"HOOK_UPGRADE_GATE": "0xD88f6BdD765313CaFA5888C177c325E2C3AbF2D2",
|
|
8
|
-
"ZORA_FACTORY": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
9
|
-
"ZORA_FACTORY_IMPL": "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
|
|
10
|
-
"ZORA_HOOK_REGISTRY": "0x777777C4c14b133858c3982D41Dbf02509fc18d7",
|
|
11
|
-
"ZORA_V4_COIN_HOOK": "0xC8d077444625eB300A427a6dfB2b1DBf9b159040",
|
|
12
|
-
"ZORA_V4_COIN_HOOK_SALT": "0x0000000000000000000000000000000000000000000000000000000000001624"
|
|
13
|
-
}
|
package/addresses/84532.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"BUY_SUPPLY_WITH_SWAP_ROUTER_HOOK": "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE",
|
|
3
|
-
"COIN_V3_IMPL": "0x852E59Bb923654005AB737b09c39D4B6b689E6E5",
|
|
4
|
-
"COIN_V4_IMPL": "0x1cAE9ceA75Ac862bb3dF6AAf7BE028EDe8e67Afd",
|
|
5
|
-
"COIN_VERSION": "1.0.0",
|
|
6
|
-
"ZORA_FACTORY": "0xaF88840cb637F2684A9E460316b1678AD6245e4a",
|
|
7
|
-
"ZORA_FACTORY_IMPL": "0xe1b32276965d2D6967A94CD38FcD180a50cF87dA",
|
|
8
|
-
"ZORA_V4_COIN_HOOK": "0xe0eC17Ab9f7ce52cC60DFB64E0A0A705d02Bd040",
|
|
9
|
-
"ZORA_V4_COIN_HOOK_SALT": "0x0000000000000000000000000000000000000000000000000000000000003a82"
|
|
10
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"creationCode": "0x610180604052346101a1576040516100186040826101a5565b601e815260208101907f44657465726d696e69737469634465706c6f796572416e6443616c6c657200008252604051916100536040846101a5565b600183526020830191603160f81b835261006c816101c8565b610120526100798461035e565b61014052519020918260e05251902080610100524660a0526040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8452604083015260608201524660808201523060a082015260a081526100e260c0826101a5565b5190206080523060c05260405161046b80820191906001600160401b0383118284101761018d575f928291610fbd8339039082f580156101825761016052604051610b269081610497823960805181610980015260a05181610a3d015260c0518161094a015260e051816109cf015261010051816109f50152610120518161025e0152610140518161028701526101605181818161035301526104bf0152f35b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b601f909101601f19168101906001600160401b0382119082101761018d57604052565b908151602081105f14610242575090601f8151116102025760208151910151602082106101f3571790565b5f198260200360031b1b161790565b604460209160405192839163305a27a960e01b83528160048401528051918291826024860152018484015e5f828201840152601f01601f19168101030190fd5b6001600160401b03811161018d575f54600181811c91168015610354575b602082101461034057601f811161030e575b50602092601f82116001146102af57928192935f926102a4575b50508160011b915f199060031b1c1916175f5560ff90565b015190505f8061028c565b601f198216935f8052805f20915f5b8681106102f657508360019596106102de575b505050811b015f5560ff90565b01515f1960f88460031b161c191690555f80806102d1565b919260206001819286850151815501940192016102be565b5f8052601f60205f20910160051c810190601f830160051c015b8181106103355750610272565b5f8155600101610328565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610260565b908151602081105f14610389575090601f8151116102025760208151910151602082106101f3571790565b6001600160401b03811161018d57600154600181811c9116801561048c575b602082101461034057601f8111610459575b50602092601f82116001146103f857928192935f926103ed575b50508160011b915f199060031b1c19161760015560ff90565b015190505f806103d4565b601f1982169360015f52805f20915f5b8681106104415750836001959610610429575b505050811b0160015560ff90565b01515f1960f88460031b161c191690555f808061041b565b91926020600181928685015181550194019201610408565b60015f52601f60205f20910160051c810190601f830160051c015b81811061048157506103ba565b5f8155600101610474565b90607f16906103a856fe60806040526004361015610011575f80fd5b5f3560e01c806325746d39146103825780637db68ec41461033e57806384b0196e1461024657806386881034146101cf578063e3867c2914610105578063eae49c87146100d25763f9baed1814610066575f80fd5b346100ce5760603660031901126100ce5760243567ffffffffffffffff81116100ce57610097903690600401610449565b60443567ffffffffffffffff81116100ce576020916100bd6100c6923690600401610449565b906004356104f6565b604051908152f35b5f80fd5b346100ce575f3660031901126100ce576101016100ed6104b3565b60405191829160208352602083019061048f565b0390f35b60a03660031901126100ce5760043567ffffffffffffffff81116100ce57610131903690600401610449565b6024359060443567ffffffffffffffff81116100ce57610155903690600401610449565b60643567ffffffffffffffff81116100ce57610175903690600401610449565b608435916001600160a01b03831683036100ce57846101b8816101b36101aa6101bd986101a5888860209d6104f6565b610899565b909291926108d3565b61057a565b6105a8565b6040516001600160a01b039091168152f35b346100ce5760203660031901126100ce5760043567ffffffffffffffff81116100ce5760206100ed610208610101933690600401610449565b82806102126104b3565b6040519584879551918291018487015e8401908282015f8152815193849201905e01015f815203601f1981018352826103f7565b346100ce575f3660031901126100ce576102e26102827f00000000000000000000000000000000000000000000000000000000000000006106a6565b6102ab7f00000000000000000000000000000000000000000000000000000000000000006107c9565b60206102f0604051926102be83856103f7565b5f84525f368137604051958695600f60f81b875260e08588015260e087019061048f565b90858203604087015261048f565b4660608501523060808501525f60a085015283810360c08501528180845192838152019301915f5b82811061032757505050500390f35b835185528695509381019392810192600101610318565b346100ce575f3660031901126100ce576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60803660031901126100ce5760043560243567ffffffffffffffff81116100ce576103b1903690600401610449565b9060443567ffffffffffffffff81116100ce576103d2903690600401610449565b606435906001600160a01b03821682036100ce57602093836101b86101bd953361057a565b90601f8019910116810190811067ffffffffffffffff82111761041957604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161041957601f01601f191660200190565b81601f820112156100ce578035906104608261042d565b9261046e60405194856103f7565b828452602083830101116100ce57815f926020809301838601378301015290565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b60405160018060a01b037f0000000000000000000000000000000000000000000000000000000000000000166020820152602081526104f36040826103f7565b90565b90916042926020815191012090602081519101206040519160208301937fdc039731015eea17e316614c8f3af7dca5fc4664683c8e8f2adc4e0ff71a7c9285526040840152606083015260808201526080815261055460a0826103f7565b51902061055f610947565b906040519161190160f01b8352600283015260228201522090565b6001600160a01b0316606082901c819003610593575050565b632696d3f160e11b5f5260045260245260445ffd5b919290805191600b602083019384206040519060408201528560208201523081520160ff8153605590206001600160a01b0390811691168181036106915750508051156106825751905ff5906001600160a01b03821615610673575f816020829351910182855af13d1561066b573d906106218261042d565b9161062f60405193846103f7565b82523d5f602084013e5b15610642575090565b60405163a5fa8d2b60e01b81526020600482015290819061066790602483019061048f565b0390fd5b606090610639565b633a0ba96160e11b5f5260045ffd5b631328927760e21b5f5260045ffd5b6312ae30e560e01b5f5260045260245260445ffd5b60ff81146106ec5760ff811690601f82116106dd57604051916106ca6040846103f7565b6020808452838101919036833783525290565b632cd44ac360e21b5f5260045ffd5b506040515f5f548060011c91600182169182156107bf575b6020841083146107ab57838552849290811561078c575060011461072f575b6104f3925003826103f7565b505f80805290917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8183106107705750509060206104f392820101610723565b6020919350806001915483858801015201910190918392610758565b602092506104f394915060ff191682840152151560051b820101610723565b634e487b7160e01b5f52602260045260245ffd5b92607f1692610704565b60ff81146107ed5760ff811690601f82116106dd57604051916106ca6040846103f7565b506040515f6001548060011c916001821691821561088f575b6020841083146107ab57838552849290811561078c5750600114610830576104f3925003826103f7565b5060015f90815290917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8183106108735750509060206104f392820101610723565b602091935080600191548385880101520191019091839261085b565b92607f1692610806565b81519190604183036108c9576108c29250602082015190606060408401519301515f1a90610a63565b9192909190565b50505f9160029190565b600481101561093357806108e5575050565b600181036108fc5763f645eedf60e01b5f5260045ffd5b60028103610917575063fce698f760e01b5f5260045260245ffd5b6003146109215750565b6335e2f38360e21b5f5260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161480610a3a575b156109a2577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a08152610a3460c0826103f7565b51902090565b507f00000000000000000000000000000000000000000000000000000000000000004614610979565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411610ae5579160209360809260ff5f9560405194855216868401526040830152606082015282805260015afa15610ada575f516001600160a01b03811615610ad057905f905f90565b505f906001905f90565b6040513d5f823e3d90fd5b5050505f916003919056fea264697066735822122020d4cc29643fbc137d039c78a8d78f52fd9a09b7daa1a5943440ff9a3e8ea56f64736f6c634300081c003360c08060405234603257306080523360a0526104349081610037823960805181818160ae015261018b015260a051815050f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c80634f1ef2861461010257806352d1902d1461009c5763ad3cb1cc1461003a575f80fd5b34610098575f366003190112610098576040805190610059818361032e565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b5f80fd5b34610098575f366003190112610098577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036100f35760206040515f5160206103df5f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b6040366003190112610098576004356001600160a01b03811690818103610098576024359067ffffffffffffffff821161009857366023830112156100985781600401359161015083610364565b9261015e604051948561032e565b8084526020840191366024838301011161009857815f926024602093018537850101526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630811490811561030c575b506100f3576040516352d1902d60e01b8152602081600481885afa5f91816102d8575b506101f15784634c9c8ce360e01b5f5260045260245ffd5b805f5160206103df5f395f51905f528692036102c65750823b156102b4575f5160206103df5f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561029b575f8091610291945190845af43d15610293573d9161027583610364565b92610283604051948561032e565b83523d5f602085013e610380565b005b606091610380565b505050346102a557005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610304575b816102f46020938361032e565b81010312610098575190866101d9565b3d91506102e7565b5f5160206103df5f395f51905f52546001600160a01b031614159050856101b6565b90601f8019910116810190811067ffffffffffffffff82111761035057604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161035057601f01601f191660200190565b906103a4575080511561039557805190602001fd5b630a12f52160e11b5f5260045ffd5b815115806103d5575b6103b5575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b156103ad56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122005f8ca25544854f7fe07eac3cac751ac5b35b9a8529e80352f19449570409c3364736f6c634300081c0033",
|
|
3
|
-
"deployedAddress": "0xCB571Eaa13A8276B1Ed44348291dD80b5BC360dA",
|
|
4
|
-
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
5
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"constructorArgs": "0x00000000000000000000000015b56e81f8a628aab8a5a8b9414f05cf5728d1ff",
|
|
3
|
-
"contractName": "Zora",
|
|
4
|
-
"creationCode": "0x60a06040523461016c575f61028a6020813803918261001d81610170565b93849283398101031261016c5751906001600160a01b03821680830361016c576100476020610170565b905f8252833b1561015a577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a280511561015257818160208293519101855af43d15610145573d926001600160401b038411610131576100f7936100e7601f8201601f1916602001610170565b908152809360203d92013e6101a9565b505b7fffd9efbec42a225861234c46dd9ad199e6b6c0e9dc65ff463e6987cedc26d6a1608052604051608290816102088239608051815050f35b634e487b7160e01b83526041600452602483fd5b6100f792606092506101a9565b5050506100f9565b634c9c8ce360e01b5f5260045260245ffd5b5f80fd5b6040519190601f01601f191682016001600160401b0381118382101761019557604052565b634e487b7160e01b5f52604160045260245ffd5b906101cd57508051156101be57805190602001fd5b630a12f52160e11b5f5260045ffd5b815115806101fe575b6101de575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b156101d656fe60806040527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545f9081906001600160a01b0316368280378136915af43d5f803e156048573d5ff35b3d5ffdfea2646970667358221220d17864a0488eaaba33173ba368bd2448917739c58ea27a5b985e8b13c01d346664736f6c634300081c003300000000000000000000000015b56e81f8a628aab8a5a8b9414f05cf5728d1ff",
|
|
5
|
-
"deployedAddress": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
6
|
-
"deploymentCaller": "0x680E26B472d8cae8148ee21FCAd6A69D73766436",
|
|
7
|
-
"salt": "0x680e26b472d8cae8148ee21fcad6a69d73766436f27a901327372bd2be5d38f6"
|
|
8
|
-
}
|
package/script/Deploy.s.sol
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
|
|
7
|
-
contract DeployScript is CoinsDeployerBase {
|
|
8
|
-
function run() public {
|
|
9
|
-
CoinsDeployment memory deployment = readDeployment();
|
|
10
|
-
|
|
11
|
-
vm.startBroadcast();
|
|
12
|
-
|
|
13
|
-
// get deployer contract
|
|
14
|
-
DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
|
|
15
|
-
|
|
16
|
-
deployZoraDeterministic(deployment, deployer);
|
|
17
|
-
|
|
18
|
-
vm.stopBroadcast();
|
|
19
|
-
|
|
20
|
-
// save the deployment json
|
|
21
|
-
saveDeployment(deployment);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity ^0.8.28;
|
|
4
|
-
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
import {AutoSwapper} from "../src/utils/AutoSwapper.sol";
|
|
7
|
-
import {ISwapRouter} from "@zoralabs/shared-contracts/interfaces/uniswap/ISwapRouter.sol";
|
|
8
|
-
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
9
|
-
|
|
10
|
-
import "forge-std/console.sol";
|
|
11
|
-
|
|
12
|
-
contract Deploy is CoinsDeployerBase {
|
|
13
|
-
function run() public {
|
|
14
|
-
address swapper = vm.envAddress("SWAPPER");
|
|
15
|
-
|
|
16
|
-
vm.startBroadcast();
|
|
17
|
-
|
|
18
|
-
AutoSwapper autoSwapper = new AutoSwapper(ISwapRouter(getUniswapSwapRouter()), getZoraRecipient(), swapper);
|
|
19
|
-
|
|
20
|
-
vm.stopBroadcast();
|
|
21
|
-
|
|
22
|
-
console.log("multisig:", autoSwapper.swapRecipient());
|
|
23
|
-
|
|
24
|
-
console.log("target:", address(autoSwapper));
|
|
25
|
-
|
|
26
|
-
console.log("approval call:");
|
|
27
|
-
bytes memory call = abi.encodeWithSelector(IERC20.approve.selector, address(autoSwapper), type(uint256).max);
|
|
28
|
-
console.logBytes(call);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
|
|
7
|
-
contract DeployScript is CoinsDeployerBase {
|
|
8
|
-
function run() public {
|
|
9
|
-
CoinsDeployment memory deployment = readDeployment(true);
|
|
10
|
-
|
|
11
|
-
vm.startBroadcast();
|
|
12
|
-
|
|
13
|
-
// get deployer contract
|
|
14
|
-
deployDevFactory(deployment);
|
|
15
|
-
|
|
16
|
-
vm.stopBroadcast();
|
|
17
|
-
|
|
18
|
-
// save the deployment json
|
|
19
|
-
saveDeployment(deployment);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
5
|
-
import {ZoraFactoryImpl} from "../src/ZoraFactoryImpl.sol";
|
|
6
|
-
|
|
7
|
-
contract DeployHooks is CoinsDeployerBase {
|
|
8
|
-
function run() public {
|
|
9
|
-
CoinsDeployment memory deployment = readDeployment();
|
|
10
|
-
|
|
11
|
-
vm.startBroadcast();
|
|
12
|
-
|
|
13
|
-
deployment.buySupplyWithSwapRouterHook = address(deployBuySupplyWithV4SwapHook(deployment));
|
|
14
|
-
|
|
15
|
-
vm.stopBroadcast();
|
|
16
|
-
|
|
17
|
-
// save the deployment json
|
|
18
|
-
saveDeployment(deployment);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
|
|
7
|
-
contract DeployScript is CoinsDeployerBase {
|
|
8
|
-
function run() public {
|
|
9
|
-
CoinsDeployment memory deployment = readDeployment(false);
|
|
10
|
-
|
|
11
|
-
vm.startBroadcast();
|
|
12
|
-
|
|
13
|
-
// get deployer contract
|
|
14
|
-
deployment = deployUpgradeGate(deployment);
|
|
15
|
-
|
|
16
|
-
vm.stopBroadcast();
|
|
17
|
-
|
|
18
|
-
// save the deployment json
|
|
19
|
-
saveDeployment(deployment);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import "forge-std/Script.sol";
|
|
5
|
-
|
|
6
|
-
import {ImmutableCreate2FactoryUtils} from "@zoralabs/shared-contracts/utils/ImmutableCreate2FactoryUtils.sol";
|
|
7
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller, DeterministicContractConfig} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
8
|
-
import {ZoraFactory} from "../src/proxy/ZoraFactory.sol";
|
|
9
|
-
|
|
10
|
-
contract GenerateDeterministicParams is ProxyDeployerScript {
|
|
11
|
-
function mineForZoraAddress(DeterministicDeployerAndCaller deployer, address caller) private returns (DeterministicContractConfig memory config) {
|
|
12
|
-
// get proxy creation code
|
|
13
|
-
bytes memory initCode = deployer.proxyCreationCode(type(ZoraFactory).creationCode);
|
|
14
|
-
bytes32 initCodeHash = keccak256(initCode);
|
|
15
|
-
|
|
16
|
-
// uupsProxyDeployer is deployer
|
|
17
|
-
(bytes32 salt, address expectedAddress) = mineSalt(address(deployer), initCodeHash, "7777777", caller);
|
|
18
|
-
|
|
19
|
-
console2.log("salt");
|
|
20
|
-
console2.log(vm.toString(salt));
|
|
21
|
-
|
|
22
|
-
config.salt = salt;
|
|
23
|
-
config.deployedAddress = expectedAddress;
|
|
24
|
-
config.creationCode = initCode;
|
|
25
|
-
config.constructorArgs = deployer.proxyConstructorArgs();
|
|
26
|
-
config.contractName = "Zora";
|
|
27
|
-
config.deploymentCaller = caller;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function run() public {
|
|
31
|
-
address caller = vm.envAddress("DEPLOYER");
|
|
32
|
-
|
|
33
|
-
vm.startBroadcast();
|
|
34
|
-
|
|
35
|
-
// create a proxy deployer, which we can use to generate deterministic addresses and corresponding params
|
|
36
|
-
DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
|
|
37
|
-
|
|
38
|
-
vm.stopBroadcast();
|
|
39
|
-
|
|
40
|
-
DeterministicContractConfig memory zoraConfig = mineForZoraAddress(deployer, caller);
|
|
41
|
-
saveDeterministicContractConfig(zoraConfig, "zoraFactory");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
import {IHooksUpgradeGate} from "../src/interfaces/IHooksUpgradeGate.sol";
|
|
7
|
-
|
|
8
|
-
import {console} from "forge-std/console.sol";
|
|
9
|
-
|
|
10
|
-
contract DeployScript is CoinsDeployerBase {
|
|
11
|
-
function run() public {
|
|
12
|
-
CoinsDeployment memory deployment = readDeployment(false);
|
|
13
|
-
|
|
14
|
-
address existingContentCoinHook = 0xd3D133469ADC85e01A4887404D8AC12d630e9040;
|
|
15
|
-
|
|
16
|
-
address[] memory baseImpls = new address[](1);
|
|
17
|
-
baseImpls[0] = existingContentCoinHook;
|
|
18
|
-
|
|
19
|
-
bytes memory contentCoinUpgradeCall = abi.encodeWithSelector(IHooksUpgradeGate.registerUpgradePath.selector, baseImpls, deployment.zoraV4CoinHook);
|
|
20
|
-
|
|
21
|
-
printUpgradeFactoryCommand(deployment);
|
|
22
|
-
|
|
23
|
-
console.log("register upgrade gate target", deployment.hookUpgradeGate);
|
|
24
|
-
|
|
25
|
-
console.log("contentCoinUpgradeCall");
|
|
26
|
-
console.logBytes(contentCoinUpgradeCall);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.26;
|
|
3
|
-
|
|
4
|
-
import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
|
|
5
|
-
import {CoinsDeployerBase} from "../src/deployment/CoinsDeployerBase.sol";
|
|
6
|
-
|
|
7
|
-
contract PrintUpgradeCommand is CoinsDeployerBase {
|
|
8
|
-
function run() public {
|
|
9
|
-
CoinsDeployment memory deployment = readDeployment();
|
|
10
|
-
|
|
11
|
-
printUpgradeFactoryCommand(deployment);
|
|
12
|
-
}
|
|
13
|
-
}
|