@zoralabs/protocol-deployments 0.0.8 → 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 +13 -13
- package/CHANGELOG.md +19 -0
- package/addresses/5.json +7 -7
- package/addresses/7777777.json +8 -7
- package/addresses/999.json +4 -3
- package/addresses/999999999.json +3 -3
- package/dist/index.cjs +57 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +57 -14
- package/dist/index.js.map +1 -1
- package/dist/package/batchPublish.test.d.ts +2 -2
- package/dist/package/wagmiGenerated.d.ts +107 -26
- package/dist/package/wagmiGenerated.d.ts.map +1 -1
- package/package/batchPublish.test.ts +1 -0
- package/package/wagmiGenerated.ts +55 -12
- package/package.json +2 -2
- package/script/DeployProxiesToNewChain.s.sol +1 -1
- package/script/DeployTestContracts.s.sol +1 -1
- package/src/DeploymentTestingUtils.sol +2 -2
- package/test/UpgradesTest.t.sol +98 -27
- package/test/ZoraCreator1155Factory_Fork.t.sol +2 -2
- package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +2 -2
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
|
|
14
|
-
package/chainConfigs.ts
|
|
15
|
-
package/deployment.ts
|
|
13
|
+
package/batchPublish.test.ts 349ms
|
|
14
|
+
package/chainConfigs.ts 20ms
|
|
15
|
+
package/deployment.ts 17ms
|
|
16
16
|
package/index.ts 4ms
|
|
17
|
-
package/wagmiGenerated.ts
|
|
18
|
-
script/copy-deployed-contracts.ts
|
|
19
|
-
script/signDeploymentTransactions.ts
|
|
20
|
-
wagmi.config.ts
|
|
17
|
+
package/wagmiGenerated.ts 712ms
|
|
18
|
+
script/copy-deployed-contracts.ts 71ms
|
|
19
|
+
script/signDeploymentTransactions.ts 58ms
|
|
20
|
+
wagmi.config.ts 26ms
|
|
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
|
|
@@ -26,9 +26,9 @@ wagmi.config.ts 19ms
|
|
|
26
26
|
[34mCLI[39m Cleaning output folder
|
|
27
27
|
[34mCJS[39m Build start
|
|
28
28
|
[34mESM[39m Build start
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
29
|
+
[32mESM[39m [1mdist/index.js [22m[32m99.17 KB[39m
|
|
30
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m195.01 KB[39m
|
|
31
|
+
[32mESM[39m ⚡️ Build success in 41ms
|
|
32
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m101.48 KB[39m
|
|
33
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m195.41 KB[39m
|
|
34
|
+
[32mCJS[39m ⚡️ Build success in 49ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @zoralabs/premint-sdk
|
|
2
2
|
|
|
3
|
+
## 0.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 68c70a9: Tie protocol deployments to v2.5.4 of 1155
|
|
8
|
+
- Updated dependencies [f0c380d]
|
|
9
|
+
- Updated dependencies [98e78d7]
|
|
10
|
+
- Updated dependencies [050b689]
|
|
11
|
+
- Updated dependencies [3f8b18f]
|
|
12
|
+
- @zoralabs/zora-1155-contracts@2.6.0
|
|
13
|
+
|
|
14
|
+
## 0.0.9
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 5156b9e: Deploy latest premint executor to zora sepolia and goerli
|
|
19
|
+
- Updated dependencies [7e00197]
|
|
20
|
+
- @zoralabs/zora-1155-contracts@2.5.4
|
|
21
|
+
|
|
3
22
|
## 0.0.8
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/addresses/5.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"CONTRACT_1155_IMPL": "
|
|
3
|
-
"CONTRACT_1155_IMPL_VERSION": "2.
|
|
4
|
-
"
|
|
5
|
-
"FACTORY_IMPL": "0x9074Ae399235d26B56e3aF1331b033366E4FE072",
|
|
2
|
+
"CONTRACT_1155_IMPL": "0x1b315EB39dcDf0656b43F0fe8f0ce190e7A6e565",
|
|
3
|
+
"CONTRACT_1155_IMPL_VERSION": "2.5.4",
|
|
4
|
+
"FACTORY_IMPL": "0xc9cbc7bf48bEd2438352745D27b89FcEDEc702Ab",
|
|
6
5
|
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
7
6
|
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
8
7
|
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
9
|
-
"PREMINTER_IMPL": "
|
|
8
|
+
"PREMINTER_IMPL": "0x309B3614F6CF2E378c341992abD46be6E6e5d755",
|
|
10
9
|
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
11
10
|
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
12
|
+
"timestamp": 1701986381,
|
|
13
|
+
"commit": "2e4b5e0"
|
|
14
14
|
}
|
package/addresses/7777777.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"CONTRACT_1155_IMPL": "
|
|
3
|
-
"CONTRACT_1155_IMPL_VERSION": "2.4
|
|
4
|
-
"FACTORY_IMPL": "
|
|
2
|
+
"CONTRACT_1155_IMPL": "0x7d42Ee84D377D37cfc9EbF10C3aEe56da326642d",
|
|
3
|
+
"CONTRACT_1155_IMPL_VERSION": "2.5.4",
|
|
4
|
+
"FACTORY_IMPL": "0x5c045b3DA075Db370F9951e2DD9D2521e4730b80",
|
|
5
5
|
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
6
6
|
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
7
|
+
"FIXED_PRICE_ALLOWED_MINTERS_STRATEGY": "0x61Cb091f8EC70029E393D31BA8F6D533c1308408",
|
|
7
8
|
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
8
|
-
"PREMINTER_IMPL": "
|
|
9
|
+
"PREMINTER_IMPL": "0x309B3614F6CF2E378c341992abD46be6E6e5d755",
|
|
9
10
|
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
10
11
|
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
11
12
|
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
12
|
-
"timestamp":
|
|
13
|
-
"commit": "
|
|
14
|
-
}
|
|
13
|
+
"timestamp": 1701996109,
|
|
14
|
+
"commit": "ecf0562"
|
|
15
|
+
}
|
package/addresses/999.json
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
"FACTORY_IMPL": "0xDcEDD6913D5A6f6e84B2b909409cb44BfC39C64A",
|
|
5
5
|
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
6
6
|
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
7
|
+
"FIXED_PRICE_ALLOWED_MINTERS_STRATEGY": "0x9b4aEDF0989B0AF7c5f7511F55d721E37384ca6E",
|
|
7
8
|
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
8
|
-
"PREMINTER_IMPL": "
|
|
9
|
+
"PREMINTER_IMPL": "0x4380b302BCB4177AD59108C454C0fC220cB945a7",
|
|
9
10
|
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
10
11
|
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
11
12
|
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
12
|
-
"timestamp":
|
|
13
|
-
"commit": "
|
|
13
|
+
"timestamp": 1701883986,
|
|
14
|
+
"commit": "7c00a4e"
|
|
14
15
|
}
|
package/addresses/999999999.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
6
6
|
"FIXED_PRICE_SALE_STRATEGY": "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
|
|
7
7
|
"MERKLE_MINT_SALE_STRATEGY": "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
|
|
8
|
-
"PREMINTER_IMPL": "
|
|
8
|
+
"PREMINTER_IMPL": "0x4380b302BCB4177AD59108C454C0fC220cB945a7",
|
|
9
9
|
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
10
10
|
"REDEEM_MINTER_FACTORY": "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
11
11
|
"UPGRADE_GATE": "0x0000000000000000000000000000000000000000",
|
|
12
|
-
"timestamp":
|
|
13
|
-
"commit": "
|
|
12
|
+
"timestamp": 1701883826,
|
|
13
|
+
"commit": "7c00a4e"
|
|
14
14
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -542,6 +542,7 @@ var zoraCreator1155ImplABI = [
|
|
|
542
542
|
{ name: "_protocolRewards", internalType: "address", type: "address" }
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
|
+
{ stateMutability: "payable", type: "receive" },
|
|
545
546
|
{
|
|
546
547
|
stateMutability: "view",
|
|
547
548
|
type: "function",
|
|
@@ -584,6 +585,13 @@ var zoraCreator1155ImplABI = [
|
|
|
584
585
|
name: "PERMISSION_BIT_SALES",
|
|
585
586
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
586
587
|
},
|
|
588
|
+
{
|
|
589
|
+
stateMutability: "view",
|
|
590
|
+
type: "function",
|
|
591
|
+
inputs: [],
|
|
592
|
+
name: "PLATFORM_REFERRAL_REWARD_DEPOSIT_REASON",
|
|
593
|
+
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
|
|
594
|
+
},
|
|
587
595
|
{
|
|
588
596
|
stateMutability: "nonpayable",
|
|
589
597
|
type: "function",
|
|
@@ -711,7 +719,12 @@ var zoraCreator1155ImplABI = [
|
|
|
711
719
|
internalType: "uint256",
|
|
712
720
|
type: "uint256"
|
|
713
721
|
},
|
|
714
|
-
{ name: "zoraReward", internalType: "uint256", type: "uint256" }
|
|
722
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
723
|
+
{
|
|
724
|
+
name: "platformReferralReward",
|
|
725
|
+
internalType: "uint256",
|
|
726
|
+
type: "uint256"
|
|
727
|
+
}
|
|
715
728
|
]
|
|
716
729
|
}
|
|
717
730
|
]
|
|
@@ -743,7 +756,12 @@ var zoraCreator1155ImplABI = [
|
|
|
743
756
|
internalType: "uint256",
|
|
744
757
|
type: "uint256"
|
|
745
758
|
},
|
|
746
|
-
{ name: "zoraReward", internalType: "uint256", type: "uint256" }
|
|
759
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
760
|
+
{
|
|
761
|
+
name: "platformReferralReward",
|
|
762
|
+
internalType: "uint256",
|
|
763
|
+
type: "uint256"
|
|
764
|
+
}
|
|
747
765
|
]
|
|
748
766
|
}
|
|
749
767
|
]
|
|
@@ -973,6 +991,11 @@ var zoraCreator1155ImplABI = [
|
|
|
973
991
|
{ name: "minter", internalType: "contract IMinter1155", type: "address" },
|
|
974
992
|
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
975
993
|
{ name: "quantity", internalType: "uint256", type: "uint256" },
|
|
994
|
+
{
|
|
995
|
+
name: "rewardsRecipients",
|
|
996
|
+
internalType: "address[]",
|
|
997
|
+
type: "address[]"
|
|
998
|
+
},
|
|
976
999
|
{ name: "minterArguments", internalType: "bytes", type: "bytes" }
|
|
977
1000
|
],
|
|
978
1001
|
name: "mint",
|
|
@@ -1036,6 +1059,15 @@ var zoraCreator1155ImplABI = [
|
|
|
1036
1059
|
name: "permissions",
|
|
1037
1060
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1038
1061
|
},
|
|
1062
|
+
{
|
|
1063
|
+
stateMutability: "view",
|
|
1064
|
+
type: "function",
|
|
1065
|
+
inputs: [],
|
|
1066
|
+
name: "protocolRewards",
|
|
1067
|
+
outputs: [
|
|
1068
|
+
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
1069
|
+
]
|
|
1070
|
+
},
|
|
1039
1071
|
{
|
|
1040
1072
|
stateMutability: "view",
|
|
1041
1073
|
type: "function",
|
|
@@ -1293,16 +1325,6 @@ var zoraCreator1155ImplABI = [
|
|
|
1293
1325
|
name: "withdraw",
|
|
1294
1326
|
outputs: []
|
|
1295
1327
|
},
|
|
1296
|
-
{
|
|
1297
|
-
stateMutability: "nonpayable",
|
|
1298
|
-
type: "function",
|
|
1299
|
-
inputs: [
|
|
1300
|
-
{ name: "to", internalType: "address", type: "address" },
|
|
1301
|
-
{ name: "amount", internalType: "uint256", type: "uint256" }
|
|
1302
|
-
],
|
|
1303
|
-
name: "withdrawRewards",
|
|
1304
|
-
outputs: []
|
|
1305
|
-
},
|
|
1306
1328
|
{
|
|
1307
1329
|
type: "event",
|
|
1308
1330
|
anonymous: false,
|
|
@@ -2073,6 +2095,15 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2073
2095
|
{ name: "recoveredSigner", internalType: "address", type: "address" }
|
|
2074
2096
|
]
|
|
2075
2097
|
},
|
|
2098
|
+
{
|
|
2099
|
+
stateMutability: "view",
|
|
2100
|
+
type: "function",
|
|
2101
|
+
inputs: [
|
|
2102
|
+
{ name: "collectionAddress", internalType: "address", type: "address" }
|
|
2103
|
+
],
|
|
2104
|
+
name: "mintFee",
|
|
2105
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
2106
|
+
},
|
|
2076
2107
|
{
|
|
2077
2108
|
stateMutability: "view",
|
|
2078
2109
|
type: "function",
|
|
@@ -2230,7 +2261,11 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2230
2261
|
components: [
|
|
2231
2262
|
{ name: "mintRecipient", internalType: "address", type: "address" },
|
|
2232
2263
|
{ name: "mintComment", internalType: "string", type: "string" },
|
|
2233
|
-
{
|
|
2264
|
+
{
|
|
2265
|
+
name: "mintRewardsRecipients",
|
|
2266
|
+
internalType: "address[]",
|
|
2267
|
+
type: "address[]"
|
|
2268
|
+
}
|
|
2234
2269
|
]
|
|
2235
2270
|
}
|
|
2236
2271
|
],
|
|
@@ -2314,7 +2349,11 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2314
2349
|
components: [
|
|
2315
2350
|
{ name: "mintRecipient", internalType: "address", type: "address" },
|
|
2316
2351
|
{ name: "mintComment", internalType: "string", type: "string" },
|
|
2317
|
-
{
|
|
2352
|
+
{
|
|
2353
|
+
name: "mintRewardsRecipients",
|
|
2354
|
+
internalType: "address[]",
|
|
2355
|
+
type: "address[]"
|
|
2356
|
+
}
|
|
2318
2357
|
]
|
|
2319
2358
|
}
|
|
2320
2359
|
],
|
|
@@ -2642,6 +2681,7 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2642
2681
|
],
|
|
2643
2682
|
name: "Burn_NotOwnerOrApproved"
|
|
2644
2683
|
},
|
|
2684
|
+
{ type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
|
|
2645
2685
|
{
|
|
2646
2686
|
type: "error",
|
|
2647
2687
|
inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
|
|
@@ -2706,6 +2746,8 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2706
2746
|
inputs: [],
|
|
2707
2747
|
name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
|
|
2708
2748
|
},
|
|
2749
|
+
{ type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
|
|
2750
|
+
{ type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
|
|
2709
2751
|
{
|
|
2710
2752
|
type: "error",
|
|
2711
2753
|
inputs: [
|
|
@@ -2725,6 +2767,7 @@ var zoraCreator1155PremintExecutorImplABI = [
|
|
|
2725
2767
|
{ type: "error", inputs: [], name: "MinterContractAlreadyExists" },
|
|
2726
2768
|
{ type: "error", inputs: [], name: "MinterContractDoesNotExist" },
|
|
2727
2769
|
{ type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
|
|
2770
|
+
{ type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
|
|
2728
2771
|
{ type: "error", inputs: [], name: "ONLY_OWNER" },
|
|
2729
2772
|
{ type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
|
|
2730
2773
|
{ type: "error", inputs: [], name: "OWNER_CANNOT_BE_ZERO_ADDRESS" },
|