@zoralabs/protocol-deployments 0.0.9 → 0.0.10
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 +12 -12
- package/CHANGELOG.md +11 -0
- package/addresses/5.json +7 -7
- package/addresses/7777777.json +8 -7
- package/addresses/999.json +1 -0
- package/dist/index.cjs +38 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -12
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +2 -2
- package/dist/package/wagmiGenerated.d.ts +67 -14
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/package/batchPublish.test.ts +1 -0
- package/package/wagmiGenerated.ts +36 -10
- package/package.json +2 -2
- package/src/DeploymentTestingUtils.sol +2 -2
- package/test/UpgradesTest.t.sol +94 -26
- package/test/ZoraCreator1155Factory_Fork.t.sol +2 -2
|
@@ -137,9 +137,9 @@ export declare const walletClientWithAccount: {
|
|
|
137
137
|
[x: `bytes[${string}]`]: undefined;
|
|
138
138
|
[x: `uint8[${string}]`]: undefined;
|
|
139
139
|
[x: `uint256[${string}]`]: undefined;
|
|
140
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
140
141
|
[x: `uint96[${string}]`]: undefined;
|
|
141
142
|
[x: `bool[${string}]`]: undefined;
|
|
142
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
143
143
|
[x: `uint64[${string}]`]: undefined;
|
|
144
144
|
[x: `bytes1[${string}]`]: undefined;
|
|
145
145
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -239,9 +239,9 @@ export declare const walletClientWithAccount: {
|
|
|
239
239
|
bytes?: undefined;
|
|
240
240
|
uint8?: undefined;
|
|
241
241
|
uint256?: undefined;
|
|
242
|
+
bytes4?: undefined;
|
|
242
243
|
uint96?: undefined;
|
|
243
244
|
bool?: undefined;
|
|
244
|
-
bytes4?: undefined;
|
|
245
245
|
uint64?: undefined;
|
|
246
246
|
bytes1?: undefined;
|
|
247
247
|
bytes3?: undefined;
|
|
@@ -1149,6 +1149,9 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1149
1149
|
readonly internalType: "address";
|
|
1150
1150
|
readonly type: "address";
|
|
1151
1151
|
}];
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly stateMutability: "payable";
|
|
1154
|
+
readonly type: "receive";
|
|
1152
1155
|
}, {
|
|
1153
1156
|
readonly stateMutability: "view";
|
|
1154
1157
|
readonly type: "function";
|
|
@@ -1209,6 +1212,16 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1209
1212
|
readonly internalType: "uint256";
|
|
1210
1213
|
readonly type: "uint256";
|
|
1211
1214
|
}];
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly stateMutability: "view";
|
|
1217
|
+
readonly type: "function";
|
|
1218
|
+
readonly inputs: readonly [];
|
|
1219
|
+
readonly name: "PLATFORM_REFERRAL_REWARD_DEPOSIT_REASON";
|
|
1220
|
+
readonly outputs: readonly [{
|
|
1221
|
+
readonly name: "";
|
|
1222
|
+
readonly internalType: "bytes4";
|
|
1223
|
+
readonly type: "bytes4";
|
|
1224
|
+
}];
|
|
1212
1225
|
}, {
|
|
1213
1226
|
readonly stateMutability: "nonpayable";
|
|
1214
1227
|
readonly type: "function";
|
|
@@ -1400,6 +1413,10 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1400
1413
|
readonly name: "zoraReward";
|
|
1401
1414
|
readonly internalType: "uint256";
|
|
1402
1415
|
readonly type: "uint256";
|
|
1416
|
+
}, {
|
|
1417
|
+
readonly name: "platformReferralReward";
|
|
1418
|
+
readonly internalType: "uint256";
|
|
1419
|
+
readonly type: "uint256";
|
|
1403
1420
|
}];
|
|
1404
1421
|
}];
|
|
1405
1422
|
}, {
|
|
@@ -1435,6 +1452,10 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1435
1452
|
readonly name: "zoraReward";
|
|
1436
1453
|
readonly internalType: "uint256";
|
|
1437
1454
|
readonly type: "uint256";
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly name: "platformReferralReward";
|
|
1457
|
+
readonly internalType: "uint256";
|
|
1458
|
+
readonly type: "uint256";
|
|
1438
1459
|
}];
|
|
1439
1460
|
}];
|
|
1440
1461
|
}, {
|
|
@@ -1783,6 +1804,10 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1783
1804
|
readonly name: "quantity";
|
|
1784
1805
|
readonly internalType: "uint256";
|
|
1785
1806
|
readonly type: "uint256";
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly name: "rewardsRecipients";
|
|
1809
|
+
readonly internalType: "address[]";
|
|
1810
|
+
readonly type: "address[]";
|
|
1786
1811
|
}, {
|
|
1787
1812
|
readonly name: "minterArguments";
|
|
1788
1813
|
readonly internalType: "bytes";
|
|
@@ -1888,6 +1913,16 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
1888
1913
|
readonly internalType: "uint256";
|
|
1889
1914
|
readonly type: "uint256";
|
|
1890
1915
|
}];
|
|
1916
|
+
}, {
|
|
1917
|
+
readonly stateMutability: "view";
|
|
1918
|
+
readonly type: "function";
|
|
1919
|
+
readonly inputs: readonly [];
|
|
1920
|
+
readonly name: "protocolRewards";
|
|
1921
|
+
readonly outputs: readonly [{
|
|
1922
|
+
readonly name: "";
|
|
1923
|
+
readonly internalType: "contract IProtocolRewards";
|
|
1924
|
+
readonly type: "address";
|
|
1925
|
+
}];
|
|
1891
1926
|
}, {
|
|
1892
1927
|
readonly stateMutability: "view";
|
|
1893
1928
|
readonly type: "function";
|
|
@@ -2257,20 +2292,6 @@ export declare const zoraCreator1155ImplABI: readonly [{
|
|
|
2257
2292
|
readonly inputs: readonly [];
|
|
2258
2293
|
readonly name: "withdraw";
|
|
2259
2294
|
readonly outputs: readonly [];
|
|
2260
|
-
}, {
|
|
2261
|
-
readonly stateMutability: "nonpayable";
|
|
2262
|
-
readonly type: "function";
|
|
2263
|
-
readonly inputs: readonly [{
|
|
2264
|
-
readonly name: "to";
|
|
2265
|
-
readonly internalType: "address";
|
|
2266
|
-
readonly type: "address";
|
|
2267
|
-
}, {
|
|
2268
|
-
readonly name: "amount";
|
|
2269
|
-
readonly internalType: "uint256";
|
|
2270
|
-
readonly type: "uint256";
|
|
2271
|
-
}];
|
|
2272
|
-
readonly name: "withdrawRewards";
|
|
2273
|
-
readonly outputs: readonly [];
|
|
2274
2295
|
}, {
|
|
2275
2296
|
readonly type: "event";
|
|
2276
2297
|
readonly anonymous: false;
|
|
@@ -3990,6 +4011,10 @@ export declare const zoraCreator1155PremintExecutorImplABI: readonly [{
|
|
|
3990
4011
|
readonly type: "address";
|
|
3991
4012
|
}];
|
|
3992
4013
|
readonly name: "Burn_NotOwnerOrApproved";
|
|
4014
|
+
}, {
|
|
4015
|
+
readonly type: "error";
|
|
4016
|
+
readonly inputs: readonly [];
|
|
4017
|
+
readonly name: "CREATOR_FUNDS_RECIPIENT_NOT_SET";
|
|
3993
4018
|
}, {
|
|
3994
4019
|
readonly type: "error";
|
|
3995
4020
|
readonly inputs: readonly [{
|
|
@@ -4090,6 +4115,14 @@ export declare const zoraCreator1155PremintExecutorImplABI: readonly [{
|
|
|
4090
4115
|
readonly type: "error";
|
|
4091
4116
|
readonly inputs: readonly [];
|
|
4092
4117
|
readonly name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING";
|
|
4118
|
+
}, {
|
|
4119
|
+
readonly type: "error";
|
|
4120
|
+
readonly inputs: readonly [];
|
|
4121
|
+
readonly name: "INVALID_ADDRESS_ZERO";
|
|
4122
|
+
}, {
|
|
4123
|
+
readonly type: "error";
|
|
4124
|
+
readonly inputs: readonly [];
|
|
4125
|
+
readonly name: "INVALID_ETH_AMOUNT";
|
|
4093
4126
|
}, {
|
|
4094
4127
|
readonly type: "error";
|
|
4095
4128
|
readonly inputs: readonly [{
|
|
@@ -4146,6 +4179,10 @@ export declare const zoraCreator1155PremintExecutorImplABI: readonly [{
|
|
|
4146
4179
|
readonly type: "error";
|
|
4147
4180
|
readonly inputs: readonly [];
|
|
4148
4181
|
readonly name: "NewOwnerNeedsToBeAdmin";
|
|
4182
|
+
}, {
|
|
4183
|
+
readonly type: "error";
|
|
4184
|
+
readonly inputs: readonly [];
|
|
4185
|
+
readonly name: "ONLY_CREATE_REFERRAL";
|
|
4149
4186
|
}, {
|
|
4150
4187
|
readonly type: "error";
|
|
4151
4188
|
readonly inputs: readonly [];
|
|
@@ -5245,6 +5282,10 @@ export declare const zoraCreator1155PremintExecutorImplConfig: {
|
|
|
5245
5282
|
readonly type: "address";
|
|
5246
5283
|
}];
|
|
5247
5284
|
readonly name: "Burn_NotOwnerOrApproved";
|
|
5285
|
+
}, {
|
|
5286
|
+
readonly type: "error";
|
|
5287
|
+
readonly inputs: readonly [];
|
|
5288
|
+
readonly name: "CREATOR_FUNDS_RECIPIENT_NOT_SET";
|
|
5248
5289
|
}, {
|
|
5249
5290
|
readonly type: "error";
|
|
5250
5291
|
readonly inputs: readonly [{
|
|
@@ -5345,6 +5386,14 @@ export declare const zoraCreator1155PremintExecutorImplConfig: {
|
|
|
5345
5386
|
readonly type: "error";
|
|
5346
5387
|
readonly inputs: readonly [];
|
|
5347
5388
|
readonly name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING";
|
|
5389
|
+
}, {
|
|
5390
|
+
readonly type: "error";
|
|
5391
|
+
readonly inputs: readonly [];
|
|
5392
|
+
readonly name: "INVALID_ADDRESS_ZERO";
|
|
5393
|
+
}, {
|
|
5394
|
+
readonly type: "error";
|
|
5395
|
+
readonly inputs: readonly [];
|
|
5396
|
+
readonly name: "INVALID_ETH_AMOUNT";
|
|
5348
5397
|
}, {
|
|
5349
5398
|
readonly type: "error";
|
|
5350
5399
|
readonly inputs: readonly [{
|
|
@@ -5401,6 +5450,10 @@ export declare const zoraCreator1155PremintExecutorImplConfig: {
|
|
|
5401
5450
|
readonly type: "error";
|
|
5402
5451
|
readonly inputs: readonly [];
|
|
5403
5452
|
readonly name: "NewOwnerNeedsToBeAdmin";
|
|
5453
|
+
}, {
|
|
5454
|
+
readonly type: "error";
|
|
5455
|
+
readonly inputs: readonly [];
|
|
5456
|
+
readonly name: "ONLY_CREATE_REFERRAL";
|
|
5404
5457
|
}, {
|
|
5405
5458
|
readonly type: "error";
|
|
5406
5459
|
readonly inputs: readonly [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wagmiGenerated.d.ts","sourceRoot":"","sources":["../../package/wagmiGenerated.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwdhC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;CAapC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmJpC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;CAaxC,CAAC;AAEX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvC,CAAC"}
|
|
@@ -543,6 +543,7 @@ export const zoraCreator1155ImplABI = [
|
|
|
543
543
|
{ name: "_protocolRewards", internalType: "address", type: "address" },
|
|
544
544
|
],
|
|
545
545
|
},
|
|
546
|
+
{ stateMutability: "payable", type: "receive" },
|
|
546
547
|
{
|
|
547
548
|
stateMutability: "view",
|
|
548
549
|
type: "function",
|
|
@@ -585,6 +586,13 @@ export const zoraCreator1155ImplABI = [
|
|
|
585
586
|
name: "PERMISSION_BIT_SALES",
|
|
586
587
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
587
588
|
},
|
|
589
|
+
{
|
|
590
|
+
stateMutability: "view",
|
|
591
|
+
type: "function",
|
|
592
|
+
inputs: [],
|
|
593
|
+
name: "PLATFORM_REFERRAL_REWARD_DEPOSIT_REASON",
|
|
594
|
+
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
|
|
595
|
+
},
|
|
588
596
|
{
|
|
589
597
|
stateMutability: "nonpayable",
|
|
590
598
|
type: "function",
|
|
@@ -713,6 +721,11 @@ export const zoraCreator1155ImplABI = [
|
|
|
713
721
|
type: "uint256",
|
|
714
722
|
},
|
|
715
723
|
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
724
|
+
{
|
|
725
|
+
name: "platformReferralReward",
|
|
726
|
+
internalType: "uint256",
|
|
727
|
+
type: "uint256",
|
|
728
|
+
},
|
|
716
729
|
],
|
|
717
730
|
},
|
|
718
731
|
],
|
|
@@ -745,6 +758,11 @@ export const zoraCreator1155ImplABI = [
|
|
|
745
758
|
type: "uint256",
|
|
746
759
|
},
|
|
747
760
|
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
761
|
+
{
|
|
762
|
+
name: "platformReferralReward",
|
|
763
|
+
internalType: "uint256",
|
|
764
|
+
type: "uint256",
|
|
765
|
+
},
|
|
748
766
|
],
|
|
749
767
|
},
|
|
750
768
|
],
|
|
@@ -974,6 +992,11 @@ export const zoraCreator1155ImplABI = [
|
|
|
974
992
|
{ name: "minter", internalType: "contract IMinter1155", type: "address" },
|
|
975
993
|
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
976
994
|
{ name: "quantity", internalType: "uint256", type: "uint256" },
|
|
995
|
+
{
|
|
996
|
+
name: "rewardsRecipients",
|
|
997
|
+
internalType: "address[]",
|
|
998
|
+
type: "address[]",
|
|
999
|
+
},
|
|
977
1000
|
{ name: "minterArguments", internalType: "bytes", type: "bytes" },
|
|
978
1001
|
],
|
|
979
1002
|
name: "mint",
|
|
@@ -1037,6 +1060,15 @@ export const zoraCreator1155ImplABI = [
|
|
|
1037
1060
|
name: "permissions",
|
|
1038
1061
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
1039
1062
|
},
|
|
1063
|
+
{
|
|
1064
|
+
stateMutability: "view",
|
|
1065
|
+
type: "function",
|
|
1066
|
+
inputs: [],
|
|
1067
|
+
name: "protocolRewards",
|
|
1068
|
+
outputs: [
|
|
1069
|
+
{ name: "", internalType: "contract IProtocolRewards", type: "address" },
|
|
1070
|
+
],
|
|
1071
|
+
},
|
|
1040
1072
|
{
|
|
1041
1073
|
stateMutability: "view",
|
|
1042
1074
|
type: "function",
|
|
@@ -1294,16 +1326,6 @@ export const zoraCreator1155ImplABI = [
|
|
|
1294
1326
|
name: "withdraw",
|
|
1295
1327
|
outputs: [],
|
|
1296
1328
|
},
|
|
1297
|
-
{
|
|
1298
|
-
stateMutability: "nonpayable",
|
|
1299
|
-
type: "function",
|
|
1300
|
-
inputs: [
|
|
1301
|
-
{ name: "to", internalType: "address", type: "address" },
|
|
1302
|
-
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
1303
|
-
],
|
|
1304
|
-
name: "withdrawRewards",
|
|
1305
|
-
outputs: [],
|
|
1306
|
-
},
|
|
1307
1329
|
{
|
|
1308
1330
|
type: "event",
|
|
1309
1331
|
anonymous: false,
|
|
@@ -2675,6 +2697,7 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2675
2697
|
],
|
|
2676
2698
|
name: "Burn_NotOwnerOrApproved",
|
|
2677
2699
|
},
|
|
2700
|
+
{ type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
|
|
2678
2701
|
{
|
|
2679
2702
|
type: "error",
|
|
2680
2703
|
inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
|
|
@@ -2739,6 +2762,8 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2739
2762
|
inputs: [],
|
|
2740
2763
|
name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING",
|
|
2741
2764
|
},
|
|
2765
|
+
{ type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
|
|
2766
|
+
{ type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
|
|
2742
2767
|
{
|
|
2743
2768
|
type: "error",
|
|
2744
2769
|
inputs: [
|
|
@@ -2758,6 +2783,7 @@ export const zoraCreator1155PremintExecutorImplABI = [
|
|
|
2758
2783
|
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
2759
2784
|
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
2760
2785
|
{ type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
|
|
2786
|
+
{ type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
|
|
2761
2787
|
{ type: "error", inputs: [], name: "ONLY_OWNER" },
|
|
2762
2788
|
{ type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
|
|
2763
2789
|
{ type: "error", inputs: [], name: "OWNER_CANNOT_BE_ZERO_ADDRESS" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"link-contracts": "rm -rf ./node_modules && cd .. && yarn"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@zoralabs/zora-1155-contracts": "
|
|
24
|
+
"@zoralabs/zora-1155-contracts": "2.6.0",
|
|
25
25
|
"ds-test": "https://github.com/dapphub/ds-test#cd98eff28324bfac652e63a239a60632a761790b",
|
|
26
26
|
"forge-std": "https://github.com/foundry-rs/forge-std#705263c95892a906d7af65f0f73ce8a4a0c80b80",
|
|
27
27
|
"solmate": "^6.1.0"
|
|
@@ -74,7 +74,7 @@ contract DeploymentTestingUtils is Script {
|
|
|
74
74
|
mintArguments
|
|
75
75
|
);
|
|
76
76
|
|
|
77
|
-
require(ZoraCreator1155Impl(premintResult.contractAddress).delegatedTokenId(premintConfig.uid) == premintResult.tokenId, "token id mismatch");
|
|
77
|
+
require(ZoraCreator1155Impl(payable(premintResult.contractAddress)).delegatedTokenId(premintConfig.uid) == premintResult.tokenId, "token id mismatch");
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function createAndSignPremintV2(
|
|
@@ -135,7 +135,7 @@ contract DeploymentTestingUtils is Script {
|
|
|
135
135
|
.premintV2{value: mintFee(quantityToMint)}(contractConfig, premintConfig, signature, quantityToMint, mintArguments).tokenId;
|
|
136
136
|
|
|
137
137
|
require(
|
|
138
|
-
ZoraCreator1155Impl(preminterAtProxy.getContractAddress(contractConfig)).delegatedTokenId(premintConfig.uid) == tokenId,
|
|
138
|
+
ZoraCreator1155Impl(payable(preminterAtProxy.getContractAddress(contractConfig))).delegatedTokenId(premintConfig.uid) == tokenId,
|
|
139
139
|
"token id not created for uid"
|
|
140
140
|
);
|
|
141
141
|
}
|
package/test/UpgradesTest.t.sol
CHANGED
|
@@ -53,20 +53,62 @@ contract UpgradesTest is ForkDeploymentConfig, DeploymentTestingUtils, Test {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
function _buildSafeUrl(address safe, address target, bytes memory cd) internal view returns (string memory) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
address[] memory targets = new address[](1);
|
|
57
|
+
targets[0] = target;
|
|
58
|
+
|
|
59
|
+
bytes[] memory calldatas = new bytes[](1);
|
|
60
|
+
calldatas[0] = cd;
|
|
61
|
+
|
|
62
|
+
return _buildBatchSafeUrl(safe, targets, calldatas);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// pipe delimiter is url encoded | which is %7C
|
|
66
|
+
string constant PIPE_DELIMITER = "%7C";
|
|
67
|
+
|
|
68
|
+
function _buildBatchSafeUrl(address safe, address[] memory targets, bytes[] memory cd) internal view returns (string memory) {
|
|
69
|
+
string memory targetsString = "";
|
|
70
|
+
|
|
71
|
+
for (uint256 i = 0; i < targets.length; i++) {
|
|
72
|
+
targetsString = string.concat(targetsString, vm.toString(targets[i]));
|
|
73
|
+
|
|
74
|
+
if (i < targets.length - 1) {
|
|
75
|
+
targetsString = string.concat(targetsString, PIPE_DELIMITER);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
string memory calldataString = "";
|
|
80
|
+
|
|
81
|
+
for (uint256 i = 0; i < cd.length; i++) {
|
|
82
|
+
calldataString = string.concat(calldataString, vm.toString(cd[i]));
|
|
83
|
+
|
|
84
|
+
if (i < cd.length - 1) {
|
|
85
|
+
calldataString = string.concat(calldataString, PIPE_DELIMITER);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
string memory valuesString = "";
|
|
90
|
+
|
|
91
|
+
for (uint256 i = 0; i < cd.length; i++) {
|
|
92
|
+
valuesString = string.concat(valuesString, "0");
|
|
93
|
+
|
|
94
|
+
if (i < cd.length - 1) {
|
|
95
|
+
valuesString = string.concat(valuesString, PIPE_DELIMITER);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// sample url: https://ourzora.github.io/smol-safe/${chainId}/${safeAddress}&target={pipeDelimitedTargets}&calldata={pipeDelimitedCalldata}&value={pipeDelimitedValues}
|
|
100
|
+
string memory targetUrl = "https://ourzora.github.io/smol-safe/#safe/";
|
|
101
|
+
targetUrl = string.concat(targetUrl, vm.toString(block.chainid));
|
|
102
|
+
targetUrl = string.concat(targetUrl, "/");
|
|
103
|
+
targetUrl = string.concat(targetUrl, vm.toString(safe));
|
|
104
|
+
targetUrl = string.concat(targetUrl, "/new");
|
|
105
|
+
targetUrl = string.concat(targetUrl, "?");
|
|
106
|
+
targetUrl = string.concat(targetUrl, "targets=");
|
|
107
|
+
targetUrl = string.concat(targetUrl, targetsString);
|
|
108
|
+
targetUrl = string.concat(targetUrl, "&calldatas=");
|
|
109
|
+
targetUrl = string.concat(targetUrl, calldataString);
|
|
110
|
+
targetUrl = string.concat(targetUrl, "&values=");
|
|
111
|
+
targetUrl = string.concat(targetUrl, valuesString);
|
|
70
112
|
|
|
71
113
|
return targetUrl;
|
|
72
114
|
}
|
|
@@ -93,28 +135,37 @@ contract UpgradesTest is ForkDeploymentConfig, DeploymentTestingUtils, Test {
|
|
|
93
135
|
console2.log("chain:", chainName);
|
|
94
136
|
console2.log("upgrade owner:", chainConfig.factoryOwner);
|
|
95
137
|
|
|
138
|
+
bytes memory factory1155UpgradeCalldata;
|
|
139
|
+
|
|
96
140
|
if (is1155UpgradeNeeded) {
|
|
97
141
|
console2.log("-- 1155 upgrade needed --");
|
|
98
142
|
vm.prank(chainConfig.factoryOwner);
|
|
99
|
-
|
|
143
|
+
factory1155UpgradeCalldata = ZoraDeployerUtils.simulateUpgrade(targetProxy1155, targetImpl1155);
|
|
100
144
|
vm.prank(creator);
|
|
101
145
|
ZoraDeployerUtils.deployTestContractForVerification(targetProxy1155, creator);
|
|
102
146
|
|
|
103
147
|
console2.log("1155 upgrade target:", targetProxy1155);
|
|
104
148
|
console2.log("upgrade calldata:");
|
|
105
149
|
console.logBytes(factory1155UpgradeCalldata);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
150
|
+
{
|
|
151
|
+
console2.log("upgrade to address:", targetImpl1155);
|
|
152
|
+
console2.log("upgrade to version:", ZoraCreator1155FactoryImpl(targetImpl1155).contractVersion());
|
|
153
|
+
if (!preminterUpgradeNeeded) {
|
|
154
|
+
console2.log("smol safe upgrade url: ", _buildSafeUrl(chainConfig.factoryOwner, targetProxy1155, factory1155UpgradeCalldata));
|
|
155
|
+
}
|
|
156
|
+
console2.log("------------------------");
|
|
157
|
+
}
|
|
110
158
|
}
|
|
111
159
|
|
|
160
|
+
address factoryOwner = chainConfig.factoryOwner;
|
|
161
|
+
bytes memory preminterUpgradeCalldata;
|
|
162
|
+
|
|
112
163
|
// hack - for now, only check on zora sepolia or goerli
|
|
113
164
|
if (preminterUpgradeNeeded) {
|
|
114
165
|
console2.log("-- preminter upgrade needed --");
|
|
115
166
|
console2.log("preminter upgrade target:", targetPreminterProxy);
|
|
116
|
-
vm.prank(
|
|
117
|
-
|
|
167
|
+
vm.prank(factoryOwner);
|
|
168
|
+
preminterUpgradeCalldata = ZoraDeployerUtils.simulateUpgrade(deployment.preminterProxy, deployment.preminterImpl);
|
|
118
169
|
|
|
119
170
|
address collector = makeAddr("collector");
|
|
120
171
|
address mintReferral = makeAddr("referral");
|
|
@@ -135,11 +186,28 @@ contract UpgradesTest is ForkDeploymentConfig, DeploymentTestingUtils, Test {
|
|
|
135
186
|
|
|
136
187
|
vm.stopPrank();
|
|
137
188
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
189
|
+
{
|
|
190
|
+
console2.log("upgrade calldata:");
|
|
191
|
+
console.logBytes(preminterUpgradeCalldata);
|
|
192
|
+
console2.log("upgrade to address:", targetPremintImpl);
|
|
193
|
+
if (!is1155UpgradeNeeded) {
|
|
194
|
+
console2.log("smol safe upgrade url: ", _buildSafeUrl(factoryOwner, targetPreminterProxy, preminterUpgradeCalldata));
|
|
195
|
+
}
|
|
196
|
+
console2.log("------------------------");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// if both needed:
|
|
201
|
+
if (is1155UpgradeNeeded && preminterUpgradeNeeded) {
|
|
202
|
+
address[] memory targets = new address[](2);
|
|
203
|
+
targets[0] = targetProxy1155;
|
|
204
|
+
targets[1] = targetPreminterProxy;
|
|
205
|
+
|
|
206
|
+
bytes[] memory calldatas = new bytes[](2);
|
|
207
|
+
calldatas[0] = factory1155UpgradeCalldata;
|
|
208
|
+
calldatas[1] = preminterUpgradeCalldata;
|
|
209
|
+
|
|
210
|
+
console2.log("multi-upgrade smol safe upgrade url: ", _buildBatchSafeUrl(factoryOwner, targets, calldatas));
|
|
143
211
|
}
|
|
144
212
|
|
|
145
213
|
console2.log("=================\n");
|
|
@@ -112,9 +112,9 @@ contract ZoraCreator1155FactoryForkTest is ForkDeploymentConfig, Test {
|
|
|
112
112
|
// mint the token
|
|
113
113
|
vm.deal(collector, valueToSend);
|
|
114
114
|
vm.startPrank(collector);
|
|
115
|
-
ZoraCreator1155Impl(address(target)).mintWithRewards{value: valueToSend}(fixedPrice, tokenId, quantityToMint, abi.encode(collector), address(0));
|
|
115
|
+
ZoraCreator1155Impl(payable(address(target))).mintWithRewards{value: valueToSend}(fixedPrice, tokenId, quantityToMint, abi.encode(collector), address(0));
|
|
116
116
|
|
|
117
|
-
uint256 balance = ZoraCreator1155Impl(address(target)).balanceOf(collector, tokenId);
|
|
117
|
+
uint256 balance = ZoraCreator1155Impl(payable(address(target))).balanceOf(collector, tokenId);
|
|
118
118
|
|
|
119
119
|
assertEq(balance, quantityToMint, "balance mismatch");
|
|
120
120
|
}
|