@zoralabs/protocol-deployments 0.0.10 → 0.0.12
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 -15
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/addresses/1.json +5 -6
- package/addresses/10.json +5 -6
- package/addresses/11155111.json +11 -7
- package/addresses/420.json +6 -7
- package/addresses/5.json +6 -6
- package/addresses/7777777.json +5 -7
- package/addresses/8453.json +5 -6
- package/addresses/84531.json +7 -7
- package/addresses/999.json +6 -8
- package/addresses/999999999.json +6 -6
- package/chainConfigs/11155111.json +3 -2
- package/deterministicConfig/factoryProxy/signatures.json +1 -1
- package/deterministicConfig/premintExecutorProxy/signatures.json +1 -0
- package/deterministicConfig/upgradeGate/signatures.json +1 -1
- package/dist/index.cjs +42 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +42 -66
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +19 -18
- package/dist/package/batchPublish.test.d.ts.map +1 -1
- package/dist/package/chainConfigs.d.ts +1 -0
- package/dist/package/chainConfigs.d.ts.map +1 -1
- package/dist/package/wagmiGenerated.d.ts +64 -48
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +4 -3
- package/package/batchPublish.test.ts +4 -4
- package/package/wagmiGenerated.ts +59 -42
- package/package.json +18 -18
- package/script/DeployMintersAndImplementations.s.sol +0 -2
- package/script/copy-deployed-contracts.ts +38 -18
- package/script/signDeploymentTransactions.ts +83 -58
- package/src/ZoraDeployerBase.sol +0 -1
- package/wagmi.config.ts +1 -1
- package/package/chainConfigs.ts +0 -60
|
@@ -171,7 +171,7 @@ function parseCreate1155Receipt(receipt: TransactionReceipt): {
|
|
|
171
171
|
.filter(Boolean);
|
|
172
172
|
|
|
173
173
|
const updatedTokenEvents = parsedLog.filter(
|
|
174
|
-
(log) => log?.eventName === "UpdatedToken"
|
|
174
|
+
(log) => log?.eventName === "UpdatedToken",
|
|
175
175
|
);
|
|
176
176
|
const lastUpdatedTokenEvent =
|
|
177
177
|
updatedTokenEvents[updatedTokenEvents.length - 1];
|
|
@@ -277,7 +277,7 @@ describe("Zora1155", () => {
|
|
|
277
277
|
|
|
278
278
|
const encodedParams = encodeAbiParameters(
|
|
279
279
|
[{ type: "address", name: "address" }],
|
|
280
|
-
[collectorAccount]
|
|
280
|
+
[collectorAccount],
|
|
281
281
|
);
|
|
282
282
|
|
|
283
283
|
const zoraMintFee = parseEther("0.000777");
|
|
@@ -308,7 +308,7 @@ describe("Zora1155", () => {
|
|
|
308
308
|
|
|
309
309
|
expect(
|
|
310
310
|
(await publicClient.waitForTransactionReceipt({ hash: mintCall }))
|
|
311
|
-
.status
|
|
311
|
+
.status,
|
|
312
312
|
).toBe("success");
|
|
313
313
|
|
|
314
314
|
// check balance of token
|
|
@@ -322,6 +322,6 @@ describe("Zora1155", () => {
|
|
|
322
322
|
expect(tokenBalance).toBe(quantityToMint);
|
|
323
323
|
},
|
|
324
324
|
// 10 second timeout
|
|
325
|
-
10 * 1000
|
|
325
|
+
10 * 1000,
|
|
326
326
|
);
|
|
327
327
|
});
|
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
8
8
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
9
9
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
10
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
10
11
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
11
12
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
13
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
12
14
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
13
15
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
14
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
16
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
17
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
15
18
|
*/
|
|
16
19
|
export const zoraCreator1155FactoryImplABI = [
|
|
17
20
|
{
|
|
@@ -492,11 +495,14 @@ export const zoraCreator1155FactoryImplABI = [
|
|
|
492
495
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
493
496
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
494
497
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
498
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
495
499
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
496
500
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
501
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
497
502
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
498
503
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
499
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
504
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
505
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
500
506
|
*/
|
|
501
507
|
export const zoraCreator1155FactoryImplAddress = {
|
|
502
508
|
1: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
@@ -509,7 +515,7 @@ export const zoraCreator1155FactoryImplAddress = {
|
|
|
509
515
|
58008: "0x6E742921602a5195f6439c8b8b827E85902E1B2D",
|
|
510
516
|
84531: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
511
517
|
7777777: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
512
|
-
11155111: "
|
|
518
|
+
11155111: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
513
519
|
999999999: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
514
520
|
} as const;
|
|
515
521
|
|
|
@@ -518,11 +524,14 @@ export const zoraCreator1155FactoryImplAddress = {
|
|
|
518
524
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
519
525
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
520
526
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
527
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
521
528
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
522
529
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
530
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x6E742921602a5195f6439c8b8b827E85902E1B2D)
|
|
523
531
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
524
532
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
525
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
533
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
534
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x777777C338d93e2C7adf08D102d45CA7CC4Ed021)
|
|
526
535
|
*/
|
|
527
536
|
export const zoraCreator1155FactoryImplConfig = {
|
|
528
537
|
address: zoraCreator1155FactoryImplAddress,
|
|
@@ -586,13 +595,6 @@ export const zoraCreator1155ImplABI = [
|
|
|
586
595
|
name: "PERMISSION_BIT_SALES",
|
|
587
596
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
588
597
|
},
|
|
589
|
-
{
|
|
590
|
-
stateMutability: "view",
|
|
591
|
-
type: "function",
|
|
592
|
-
inputs: [],
|
|
593
|
-
name: "PLATFORM_REFERRAL_REWARD_DEPOSIT_REASON",
|
|
594
|
-
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
|
|
595
|
-
},
|
|
596
598
|
{
|
|
597
599
|
stateMutability: "nonpayable",
|
|
598
600
|
type: "function",
|
|
@@ -721,11 +723,6 @@ export const zoraCreator1155ImplABI = [
|
|
|
721
723
|
type: "uint256",
|
|
722
724
|
},
|
|
723
725
|
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
724
|
-
{
|
|
725
|
-
name: "platformReferralReward",
|
|
726
|
-
internalType: "uint256",
|
|
727
|
-
type: "uint256",
|
|
728
|
-
},
|
|
729
726
|
],
|
|
730
727
|
},
|
|
731
728
|
],
|
|
@@ -758,11 +755,6 @@ export const zoraCreator1155ImplABI = [
|
|
|
758
755
|
type: "uint256",
|
|
759
756
|
},
|
|
760
757
|
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
761
|
-
{
|
|
762
|
-
name: "platformReferralReward",
|
|
763
|
-
internalType: "uint256",
|
|
764
|
-
type: "uint256",
|
|
765
|
-
},
|
|
766
758
|
],
|
|
767
759
|
},
|
|
768
760
|
],
|
|
@@ -1060,15 +1052,6 @@ export const zoraCreator1155ImplABI = [
|
|
|
1060
1052
|
name: "permissions",
|
|
1061
1053
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
1062
1054
|
},
|
|
1063
|
-
{
|
|
1064
|
-
stateMutability: "view",
|
|
1065
|
-
type: "function",
|
|
1066
|
-
inputs: [],
|
|
1067
|
-
name: "protocolRewards",
|
|
1068
|
-
outputs: [
|
|
1069
|
-
{ name: "", internalType: "contract IProtocolRewards", type: "address" },
|
|
1070
|
-
],
|
|
1071
|
-
},
|
|
1072
1055
|
{
|
|
1073
1056
|
stateMutability: "view",
|
|
1074
1057
|
type: "function",
|
|
@@ -1962,6 +1945,8 @@ export const zoraCreator1155ImplABI = [
|
|
|
1962
1945
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
1963
1946
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
1964
1947
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
1948
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
1949
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
1965
1950
|
*/
|
|
1966
1951
|
export const zoraCreator1155PremintExecutorImplABI = [
|
|
1967
1952
|
{
|
|
@@ -2858,6 +2843,8 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2858
2843
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2859
2844
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2860
2845
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2846
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2847
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2861
2848
|
*/
|
|
2862
2849
|
export const zoraCreator1155PremintExecutorImplAddress = {
|
|
2863
2850
|
1: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
@@ -2868,6 +2855,7 @@ export const zoraCreator1155PremintExecutorImplAddress = {
|
|
|
2868
2855
|
8453: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
2869
2856
|
84531: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
2870
2857
|
7777777: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
2858
|
+
11155111: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
2871
2859
|
999999999: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
2872
2860
|
} as const;
|
|
2873
2861
|
|
|
@@ -2880,6 +2868,8 @@ export const zoraCreator1155PremintExecutorImplAddress = {
|
|
|
2880
2868
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2881
2869
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2882
2870
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2871
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2872
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777773606e7e46C8Ba8B98C08f5cD218e31d340)
|
|
2883
2873
|
*/
|
|
2884
2874
|
export const zoraCreator1155PremintExecutorImplConfig = {
|
|
2885
2875
|
address: zoraCreator1155PremintExecutorImplAddress,
|
|
@@ -2895,11 +2885,14 @@ export const zoraCreator1155PremintExecutorImplConfig = {
|
|
|
2895
2885
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2896
2886
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x3678862f04290E565cCA2EF163BAeb92Bb76790C)
|
|
2897
2887
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2888
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
2898
2889
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2899
2890
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2891
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
2900
2892
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2901
2893
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
2902
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
2894
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21)
|
|
2895
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A)
|
|
2903
2896
|
*/
|
|
2904
2897
|
export const zoraCreatorFixedPriceSaleStrategyABI = [
|
|
2905
2898
|
{
|
|
@@ -3139,11 +3132,14 @@ export const zoraCreatorFixedPriceSaleStrategyABI = [
|
|
|
3139
3132
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3140
3133
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x3678862f04290E565cCA2EF163BAeb92Bb76790C)
|
|
3141
3134
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3135
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
3142
3136
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3143
3137
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3138
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
3144
3139
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3145
3140
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3146
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3141
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21)
|
|
3142
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A)
|
|
3147
3143
|
*/
|
|
3148
3144
|
export const zoraCreatorFixedPriceSaleStrategyAddress = {
|
|
3149
3145
|
1: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
@@ -3156,7 +3152,7 @@ export const zoraCreatorFixedPriceSaleStrategyAddress = {
|
|
|
3156
3152
|
58008: "0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3",
|
|
3157
3153
|
84531: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
3158
3154
|
7777777: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
3159
|
-
11155111: "
|
|
3155
|
+
11155111: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
|
|
3160
3156
|
999999999: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
|
|
3161
3157
|
} as const;
|
|
3162
3158
|
|
|
@@ -3165,11 +3161,14 @@ export const zoraCreatorFixedPriceSaleStrategyAddress = {
|
|
|
3165
3161
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3166
3162
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x3678862f04290E565cCA2EF163BAeb92Bb76790C)
|
|
3167
3163
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3164
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
3168
3165
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3169
3166
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3167
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3)
|
|
3170
3168
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3171
3169
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x04E2516A2c207E84a1839755675dfd8eF6302F0a)
|
|
3172
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3170
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21)
|
|
3171
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A)
|
|
3173
3172
|
*/
|
|
3174
3173
|
export const zoraCreatorFixedPriceSaleStrategyConfig = {
|
|
3175
3174
|
address: zoraCreatorFixedPriceSaleStrategyAddress,
|
|
@@ -3185,11 +3184,14 @@ export const zoraCreatorFixedPriceSaleStrategyConfig = {
|
|
|
3185
3184
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3186
3185
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8)
|
|
3187
3186
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3187
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3188
3188
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3189
3189
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3190
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3190
3191
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3191
3192
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3192
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3193
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xe770E6f19aecF8ef3145A50087999b5556aB3610)
|
|
3194
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x5e5fD4b758076BAD940db0284b711A67E8a3B88c)
|
|
3193
3195
|
*/
|
|
3194
3196
|
export const zoraCreatorMerkleMinterStrategyABI = [
|
|
3195
3197
|
{
|
|
@@ -3396,11 +3398,14 @@ export const zoraCreatorMerkleMinterStrategyABI = [
|
|
|
3396
3398
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3397
3399
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8)
|
|
3398
3400
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3401
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3399
3402
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3400
3403
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3404
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3401
3405
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3402
3406
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3403
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3407
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xe770E6f19aecF8ef3145A50087999b5556aB3610)
|
|
3408
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x5e5fD4b758076BAD940db0284b711A67E8a3B88c)
|
|
3404
3409
|
*/
|
|
3405
3410
|
export const zoraCreatorMerkleMinterStrategyAddress = {
|
|
3406
3411
|
1: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
@@ -3413,7 +3418,7 @@ export const zoraCreatorMerkleMinterStrategyAddress = {
|
|
|
3413
3418
|
58008: "0x314E552b55DFbDfD4d76623E1D45E5056723998B",
|
|
3414
3419
|
84531: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
3415
3420
|
7777777: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
3416
|
-
11155111: "
|
|
3421
|
+
11155111: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
|
|
3417
3422
|
999999999: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
|
|
3418
3423
|
} as const;
|
|
3419
3424
|
|
|
@@ -3422,11 +3427,14 @@ export const zoraCreatorMerkleMinterStrategyAddress = {
|
|
|
3422
3427
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3423
3428
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8)
|
|
3424
3429
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3430
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3425
3431
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3426
3432
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3433
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0x314E552b55DFbDfD4d76623E1D45E5056723998B)
|
|
3427
3434
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3428
3435
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7)
|
|
3429
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3436
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xe770E6f19aecF8ef3145A50087999b5556aB3610)
|
|
3437
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x5e5fD4b758076BAD940db0284b711A67E8a3B88c)
|
|
3430
3438
|
*/
|
|
3431
3439
|
export const zoraCreatorMerkleMinterStrategyConfig = {
|
|
3432
3440
|
address: zoraCreatorMerkleMinterStrategyAddress,
|
|
@@ -3442,11 +3450,14 @@ export const zoraCreatorMerkleMinterStrategyConfig = {
|
|
|
3442
3450
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3443
3451
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
|
|
3444
3452
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3453
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3445
3454
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3446
3455
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3456
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3447
3457
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3448
3458
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3449
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3459
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
3460
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
|
|
3450
3461
|
*/
|
|
3451
3462
|
export const zoraCreatorRedeemMinterFactoryABI = [
|
|
3452
3463
|
{ stateMutability: "nonpayable", type: "constructor", inputs: [] },
|
|
@@ -3602,11 +3613,14 @@ export const zoraCreatorRedeemMinterFactoryABI = [
|
|
|
3602
3613
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3603
3614
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
|
|
3604
3615
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3616
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3605
3617
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3606
3618
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3619
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3607
3620
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3608
3621
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3609
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3622
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
3623
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
|
|
3610
3624
|
*/
|
|
3611
3625
|
export const zoraCreatorRedeemMinterFactoryAddress = {
|
|
3612
3626
|
1: "0x78964965cF77850224513a367f899435C5B69174",
|
|
@@ -3619,7 +3633,7 @@ export const zoraCreatorRedeemMinterFactoryAddress = {
|
|
|
3619
3633
|
58008: "0xC6899816663891D7493939d74d83cb7f2BBcBB16",
|
|
3620
3634
|
84531: "0x78964965cF77850224513a367f899435C5B69174",
|
|
3621
3635
|
7777777: "0x78964965cF77850224513a367f899435C5B69174",
|
|
3622
|
-
11155111: "
|
|
3636
|
+
11155111: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
|
|
3623
3637
|
999999999: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
3624
3638
|
} as const;
|
|
3625
3639
|
|
|
@@ -3628,11 +3642,14 @@ export const zoraCreatorRedeemMinterFactoryAddress = {
|
|
|
3628
3642
|
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3629
3643
|
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
|
|
3630
3644
|
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3645
|
+
* - [__View Contract on Pgn Pgn Explorer__](https://explorer.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3631
3646
|
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3632
3647
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3648
|
+
* - [__View Contract on Pgn Pgn Testnet Explorer__](https://explorer.sepolia.publicgoods.network/address/0xC6899816663891D7493939d74d83cb7f2BBcBB16)
|
|
3633
3649
|
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3634
3650
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
3635
|
-
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/
|
|
3651
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
3652
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
|
|
3636
3653
|
*/
|
|
3637
3654
|
export const zoraCreatorRedeemMinterFactoryConfig = {
|
|
3638
3655
|
address: zoraCreatorRedeemMinterFactoryAddress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv",
|
|
11
|
-
"test": "FORK_TEST_CHAINS=mainnet,goerli,optimism,optimism_goerli,zora,zora_goerli,base_goerli,base,zora_sepolia forge test -vvv",
|
|
11
|
+
"test": "FORK_TEST_CHAINS=mainnet,goerli,optimism,optimism_goerli,zora,zora_goerli,sepolia,base_goerli,base,zora_sepolia forge test -vvv",
|
|
12
12
|
"build": "yarn wagmi && yarn bundle-configs && tsup",
|
|
13
13
|
"bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier",
|
|
14
14
|
"prettier": "prettier --write 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'",
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"link-contracts": "rm -rf ./node_modules && cd .. && yarn"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"ds-test": "https://github.com/dapphub/ds-test#cd98eff28324bfac652e63a239a60632a761790b",
|
|
24
|
+
"solmate": "6.1.0",
|
|
26
25
|
"forge-std": "https://github.com/foundry-rs/forge-std#705263c95892a906d7af65f0f73ce8a4a0c80b80",
|
|
27
|
-
"
|
|
26
|
+
"ds-test": "https://github.com/dapphub/ds-test#cd98eff28324bfac652e63a239a60632a761790b",
|
|
27
|
+
"@zoralabs/zora-1155-contracts": "*"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@turnkey/api-key-stamper": "^0.1.1",
|
|
31
|
-
"@turnkey/http": "^1.2.0",
|
|
32
|
-
"@turnkey/viem": "^0.2.4",
|
|
33
|
-
"@types/node": "^20.1.2",
|
|
34
|
-
"@wagmi/cli": "^1.0.1",
|
|
35
|
-
"es-main": "^1.2.0",
|
|
36
|
-
"glob": "^10.2.2",
|
|
37
|
-
"prettier": "^2.8.8",
|
|
38
|
-
"prettier-plugin-solidity": "^1.1.3",
|
|
39
|
-
"solady": "^0.0.132",
|
|
40
|
-
"tsup": "^7.2.0",
|
|
41
|
-
"tsx": "^3.13.0",
|
|
42
30
|
"zoralabs-tsconfig": "*",
|
|
43
|
-
"
|
|
31
|
+
"viem": "^1.19.15",
|
|
32
|
+
"typescript": "^5.2.2",
|
|
33
|
+
"tsx": "^3.13.0",
|
|
34
|
+
"tsup": "^7.2.0",
|
|
35
|
+
"solady": "0.0.132",
|
|
36
|
+
"glob": "^10.2.2",
|
|
37
|
+
"es-main": "^1.2.0",
|
|
38
|
+
"@wagmi/cli": "^1.0.1",
|
|
39
|
+
"@types/node": "^20.1.2",
|
|
40
|
+
"@turnkey/viem": "^0.4.4",
|
|
41
|
+
"@turnkey/http": "^2.5.1",
|
|
42
|
+
"@turnkey/api-key-stamper": "^0.3.1",
|
|
43
|
+
"@lavamoat/preinstall-always-fail": "2.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { writeFile, readFile } from "fs/promises";
|
|
2
2
|
import esMain from "es-main";
|
|
3
|
+
// @ts-ignore
|
|
3
4
|
import { glob } from "glob";
|
|
4
5
|
|
|
5
6
|
type Deploy = {
|
|
@@ -12,35 +13,54 @@ async function copyEnvironmentRunFiles() {
|
|
|
12
13
|
const latestFiles = await glob(`broadcast/**/*run-latest.json`);
|
|
13
14
|
|
|
14
15
|
const allFileContents = await Promise.all(
|
|
15
|
-
latestFiles.map(async (file) => {
|
|
16
|
+
latestFiles.map(async (file: string) => {
|
|
16
17
|
const fileParts = file.split("/");
|
|
17
18
|
const chainId = fileParts[fileParts.length - 2];
|
|
19
|
+
const parsed = JSON.parse(await readFile(file, "utf-8")) as Deploy;
|
|
20
|
+
const returns = parsed.returns[0]?.value || "{}";
|
|
21
|
+
|
|
22
|
+
// a recent version of forge added a bug where the returns value with some sort of url based encoding.
|
|
23
|
+
// the below code is a hack to fix this. It should be removed once forge is fixed.
|
|
24
|
+
// use string regex replace all to remove all instances of \\ from returns (this appeared in a wierd version of forge)
|
|
25
|
+
// also opening and closing quotes that incorrecly appear before opening bracket:
|
|
26
|
+
const filtered = returns
|
|
27
|
+
.replace(/\\/g, "")
|
|
28
|
+
.replace('"{', "{")
|
|
29
|
+
.replace('}"', "}");
|
|
30
|
+
|
|
31
|
+
const parsedReturns = JSON.parse(filtered);
|
|
18
32
|
return {
|
|
19
33
|
chainId,
|
|
20
|
-
|
|
34
|
+
timestamp: parsed.timestamp,
|
|
35
|
+
returns: parsedReturns,
|
|
21
36
|
};
|
|
22
|
-
})
|
|
37
|
+
}),
|
|
23
38
|
);
|
|
24
39
|
|
|
25
|
-
const groupedByChainId = allFileContents.reduce(
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
const groupedByChainId = allFileContents.reduce(
|
|
41
|
+
(acc: any, file: any) => {
|
|
42
|
+
const chainId = file.chainId!;
|
|
43
|
+
if (isNaN(Number(chainId))) return acc;
|
|
28
44
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
if (!acc[chainId]) {
|
|
46
|
+
acc[chainId] = [];
|
|
47
|
+
}
|
|
48
|
+
acc[chainId]!.push(file);
|
|
49
|
+
return acc;
|
|
50
|
+
},
|
|
51
|
+
{} as Record<string, Deploy[]>,
|
|
52
|
+
);
|
|
35
53
|
|
|
36
54
|
const withLatest = Object.entries(groupedByChainId).map(
|
|
37
|
-
([chainId, files]) => {
|
|
38
|
-
const latest = files.sort(
|
|
55
|
+
([chainId, files]: any) => {
|
|
56
|
+
const latest = files.sort(
|
|
57
|
+
(a: any, b: any) => b.timestamp! - a.timestamp!,
|
|
58
|
+
)[0];
|
|
39
59
|
return {
|
|
40
60
|
chainId,
|
|
41
61
|
latest,
|
|
42
62
|
};
|
|
43
|
-
}
|
|
63
|
+
},
|
|
44
64
|
);
|
|
45
65
|
|
|
46
66
|
withLatest.forEach(async ({ chainId, latest }) => {
|
|
@@ -50,13 +70,13 @@ async function copyEnvironmentRunFiles() {
|
|
|
50
70
|
filePath,
|
|
51
71
|
JSON.stringify(
|
|
52
72
|
{
|
|
53
|
-
...
|
|
73
|
+
...latest!.returns,
|
|
54
74
|
timestamp: latest!.timestamp,
|
|
55
75
|
commit: latest!.commit,
|
|
56
76
|
},
|
|
57
77
|
null,
|
|
58
|
-
2
|
|
59
|
-
)
|
|
78
|
+
2,
|
|
79
|
+
),
|
|
60
80
|
);
|
|
61
81
|
});
|
|
62
82
|
}
|