@zoralabs/protocol-deployments 0.0.5-prerelease.0 → 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 +6 -6
- package/CHANGELOG.md +2 -3
- package/addresses/999.json +6 -6
- package/package.json +1 -1
- package/script/DeployNew1155Impl.s.sol +0 -1
- package/src/ZoraDeployerUtils.sol +0 -23
- package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +1 -1
- package/script/Simulate1155Upgrade.s.sol +0 -37
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,14 +10,14 @@ $ wagmi generate
|
|
|
10
10
|
✔ Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
11
11
|
$ node script/bundle-chainConfigs.mjs && yarn prettier
|
|
12
12
|
$ prettier --write 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'
|
|
13
|
-
package/batchPublish.test.ts
|
|
13
|
+
package/batchPublish.test.ts 225ms
|
|
14
14
|
package/chainConfigs.ts 13ms
|
|
15
|
-
package/deployment.ts
|
|
15
|
+
package/deployment.ts 11ms
|
|
16
16
|
package/index.ts 3ms
|
|
17
|
-
package/wagmiGenerated.ts
|
|
17
|
+
package/wagmiGenerated.ts 372ms
|
|
18
18
|
script/copy-deployed-contracts.ts 40ms
|
|
19
|
-
script/signDeploymentTransactions.ts
|
|
20
|
-
wagmi.config.ts
|
|
19
|
+
script/signDeploymentTransactions.ts 36ms
|
|
20
|
+
wagmi.config.ts 14ms
|
|
21
21
|
[34mCLI[39m Building entry: package/index.ts
|
|
22
22
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
23
23
|
[34mCLI[39m tsup v7.2.0
|
|
@@ -31,4 +31,4 @@ wagmi.config.ts 12ms
|
|
|
31
31
|
[32mCJS[39m ⚡️ Build success in 24ms
|
|
32
32
|
[32mESM[39m [1mdist/index.js [22m[32m93.14 KB[39m
|
|
33
33
|
[32mESM[39m [1mdist/index.js.map [22m[32m184.47 KB[39m
|
|
34
|
-
[32mESM[39m ⚡️ Build success in
|
|
34
|
+
[32mESM[39m ⚡️ Build success in 25ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# @zoralabs/premint-sdk
|
|
2
2
|
|
|
3
|
-
## 0.0.5
|
|
3
|
+
## 0.0.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- Deployed 2.4.0 to zora-goerli (testnet)
|
|
7
|
+
- 293e2c0: Moved deployment related code from 1155 to protocol-deployments package
|
|
9
8
|
|
|
10
9
|
## 0.0.4
|
|
11
10
|
|
package/addresses/999.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"CONTRACT_1155_IMPL": "
|
|
3
|
-
"CONTRACT_1155_IMPL_VERSION": "2.
|
|
4
|
-
"
|
|
2
|
+
"CONTRACT_1155_IMPL": "0x26C2835dd7F048B7140906fA50E77ea8f8186Bbc",
|
|
3
|
+
"CONTRACT_1155_IMPL_VERSION": "2.3.0",
|
|
4
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
5
|
+
"FACTORY_IMPL": "0x9a42d0786c17e231E0409E8441C99acf4678763d",
|
|
5
6
|
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
6
7
|
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
7
8
|
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
8
9
|
"PREMINTER_IMPL": "0x6E2AbBcd82935bFC68A1d5d2c96372b13b65eD9C",
|
|
9
10
|
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
10
11
|
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"commit": "385e4932"
|
|
12
|
+
"timestamp": 1696017248,
|
|
13
|
+
"commit": "7a0ae52"
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ import "forge-std/Script.sol";
|
|
|
5
5
|
import "forge-std/console2.sol";
|
|
6
6
|
|
|
7
7
|
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol";
|
|
8
|
-
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol";
|
|
9
8
|
import {Deployment} from "../src/DeploymentConfig.sol";
|
|
10
9
|
import {DeterministicDeployerScript} from "../src/DeterministicDeployerScript.sol";
|
|
11
10
|
|
|
@@ -173,27 +173,4 @@ library ZoraDeployerUtils {
|
|
|
173
173
|
)
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
function getUpgradeCalldata(Deployment memory deployment) internal returns (bytes memory upgradeCalldata) {
|
|
178
|
-
// create 1155 proxy from deployment factory proxy address
|
|
179
|
-
ZoraCreator1155FactoryImpl factory = ZoraCreator1155FactoryImpl(deployment.factoryProxy);
|
|
180
|
-
|
|
181
|
-
address owner = factory.owner();
|
|
182
|
-
|
|
183
|
-
// simulate upgrade call
|
|
184
|
-
upgradeCalldata = abi.encodeWithSelector(factory.upgradeTo.selector, deployment.factoryImpl);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
function simulateUpgrade(Deployment memory deployment) internal returns (address target, bytes memory upgradeCalldata) {
|
|
188
|
-
// console log update information
|
|
189
|
-
|
|
190
|
-
upgradeCalldata = getUpgradeCalldata(deployment);
|
|
191
|
-
|
|
192
|
-
target = deployment.factoryProxy;
|
|
193
|
-
// upgrade the factory proxy to the new implementation
|
|
194
|
-
|
|
195
|
-
(bool success, ) = target.call(upgradeCalldata);
|
|
196
|
-
|
|
197
|
-
require(success, "upgrade failed");
|
|
198
|
-
}
|
|
199
176
|
}
|
|
@@ -31,7 +31,7 @@ contract ZoraCreator1155PreminterForkTest is ForkDeploymentConfig, Test {
|
|
|
31
31
|
vm.createSelectFork(vm.rpcUrl(chainName));
|
|
32
32
|
|
|
33
33
|
// get contract hash, which is unique per contract creation config, and can be used
|
|
34
|
-
//
|
|
34
|
+
// retrieve the address created for a contract
|
|
35
35
|
address preminterAddress = getDeployment().preminterProxy;
|
|
36
36
|
|
|
37
37
|
if (preminterAddress == address(0)) {
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|