@zoralabs/protocol-deployments 0.3.3 → 0.3.4-PRE.0
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 +48 -48
- package/CHANGELOG.md +6 -0
- package/json/1155.json +212 -0
- package/json/mints.json +46 -0
- package/package.json +22 -15
- package/wagmi.config.ts +383 -0
- package/LICENSE +0 -21
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
> @zoralabs/protocol-deployments@0.3.
|
|
3
|
-
> pnpm bundle-configs && pnpm copy-generated && tsup
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @zoralabs/protocol-deployments@0.3.
|
|
7
|
-
> tsx scripts/bundle-configs.ts && pnpm prettier:write
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> @zoralabs/protocol-deployments@0.3.
|
|
11
|
-
> prettier --write 'src/**/*.ts' 'scripts/*'
|
|
12
|
-
|
|
13
|
-
src/encoding.ts
|
|
14
|
-
src/index.ts
|
|
15
|
-
src/typedData.ts
|
|
16
|
-
src/types.ts
|
|
17
|
-
scripts/bundle-chainConfigs.ts
|
|
18
|
-
scripts/bundle-configs.ts
|
|
19
|
-
|
|
20
|
-
> @zoralabs/protocol-deployments@0.3.
|
|
21
|
-
> cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
|
|
2
|
+
> @zoralabs/protocol-deployments@0.3.2 build /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
3
|
+
> pnpm bundle-configs && pnpm copy-generated && tsup
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @zoralabs/protocol-deployments@0.3.2 bundle-configs /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
7
|
+
> tsx scripts/bundle-configs.ts && pnpm prettier:write
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
> @zoralabs/protocol-deployments@0.3.2 prettier:write /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
11
|
+
> prettier --write 'src/**/*.ts' 'scripts/*'
|
|
12
|
+
|
|
13
|
+
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m 33ms (unchanged)
|
|
14
|
+
src/index.ts[2K[1G[90msrc/index.ts[39m 2ms (unchanged)
|
|
15
|
+
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m 35ms (unchanged)
|
|
16
|
+
src/types.ts[2K[1G[90msrc/types.ts[39m 7ms (unchanged)
|
|
17
|
+
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m 5ms (unchanged)
|
|
18
|
+
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 9ms (unchanged)
|
|
19
|
+
|
|
20
|
+
> @zoralabs/protocol-deployments@0.3.2 copy-generated /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
21
|
+
> cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
|
|
22
|
+
|
|
23
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
24
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
25
|
+
[34mCLI[39m tsup v7.3.0
|
|
26
|
+
[34mCLI[39m Using tsup config: /Users/danovedzora/source/zora-protocol/packages/protocol-deployments/tsup.config.ts
|
|
27
|
+
[34mCLI[39m Target: es2021
|
|
28
|
+
[34mCLI[39m Cleaning output folder
|
|
29
|
+
[34mCJS[39m Build start
|
|
30
|
+
[34mESM[39m Build start
|
|
31
|
+
[32mESM[39m [1mdist/chunk-3EJPJMEH.js [22m[32m1.88 KB[39m
|
|
32
|
+
[32mESM[39m [1mdist/_esm-KB2T7G46.js [22m[32m130.03 KB[39m
|
|
33
|
+
[32mESM[39m [1mdist/chunk-5JV63AHR.js [22m[32m3.91 KB[39m
|
|
34
|
+
[32mESM[39m [1mdist/ccip-42FQPB7J.js [22m[32m320.00 B[39m
|
|
35
|
+
[32mESM[39m [1mdist/chunk-YMRS2KON.js [22m[32m133.27 KB[39m
|
|
36
|
+
[32mESM[39m [1mdist/secp256k1-5CEPNAX3.js [22m[32m69.43 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/index.js [22m[32m323.29 KB[39m
|
|
38
|
+
[32mESM[39m [1mdist/chunk-3EJPJMEH.js.map [22m[32m71.00 B[39m
|
|
39
|
+
[32mESM[39m [1mdist/_esm-KB2T7G46.js.map [22m[32m204.85 KB[39m
|
|
40
|
+
[32mESM[39m [1mdist/secp256k1-5CEPNAX3.js.map [22m[32m169.18 KB[39m
|
|
41
|
+
[32mESM[39m [1mdist/ccip-42FQPB7J.js.map [22m[32m71.00 B[39m
|
|
42
|
+
[32mESM[39m [1mdist/chunk-YMRS2KON.js.map [22m[32m367.28 KB[39m
|
|
43
|
+
[32mESM[39m [1mdist/chunk-5JV63AHR.js.map [22m[32m14.32 KB[39m
|
|
44
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m619.90 KB[39m
|
|
45
|
+
[32mESM[39m ⚡️ Build success in 146ms
|
|
46
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m384.05 KB[39m
|
|
47
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m819.38 KB[39m
|
|
48
|
+
[32mCJS[39m ⚡️ Build success in 147ms
|
package/CHANGELOG.md
CHANGED
package/json/1155.json
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chainConfigs": {
|
|
3
|
+
"1": {
|
|
4
|
+
"FACTORY_OWNER": "0xDB392f4391462d60B8B4413ef72018Ab595Af9D0",
|
|
5
|
+
"MINT_FEE_RECIPIENT": "0xd1d1D4e36117aB794ec5d4c78cBD3a8904E691D0",
|
|
6
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
7
|
+
},
|
|
8
|
+
"10": {
|
|
9
|
+
"FACTORY_OWNER": "0x4c7f7b6067fac9a737ecf2ca1a733fc85dd65a2b",
|
|
10
|
+
"MINT_FEE_RECIPIENT": "0x7A810DCd0f8d83B20212326813Db6EF7E9FD030c",
|
|
11
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
12
|
+
},
|
|
13
|
+
"999": {
|
|
14
|
+
"FACTORY_OWNER": "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252",
|
|
15
|
+
"MINT_FEE_RECIPIENT": "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252",
|
|
16
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
17
|
+
},
|
|
18
|
+
"8453": {
|
|
19
|
+
"FACTORY_OWNER": "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
20
|
+
"MINT_FEE_RECIPIENT": "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
|
|
21
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
22
|
+
},
|
|
23
|
+
"42161": {
|
|
24
|
+
"FACTORY_OWNER": "0xF7DafC329C93D84267c0E7B146C0bD68807f6A03",
|
|
25
|
+
"MINT_FEE_RECIPIENT": "0x10Fb02A68C3EA8bD439A6f515dcE07CC049f5c94",
|
|
26
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
27
|
+
},
|
|
28
|
+
"81457": {
|
|
29
|
+
"FACTORY_OWNER": "0x5b297B1b87f8De28C9fA7AFe183Db9F9e6295523",
|
|
30
|
+
"MINT_FEE_RECIPIENT": "0x72E6394056f9152D3a41e5A25De383c191D16134",
|
|
31
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
32
|
+
},
|
|
33
|
+
"421614": {
|
|
34
|
+
"FACTORY_OWNER": "0x256537b56007b32BabEB44E868EC8AA5cBF03D30",
|
|
35
|
+
"MINT_FEE_RECIPIENT": "0x256537b56007b32BabEB44E868EC8AA5cBF03D30",
|
|
36
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
37
|
+
},
|
|
38
|
+
"7777777": {
|
|
39
|
+
"FACTORY_OWNER": "0xdEA20c96253dc2d64897D2b8d27A8d935dE74955",
|
|
40
|
+
"MINT_FEE_RECIPIENT": "0xEcfc2ee50409E459c554a2b0376F882Ce916D853",
|
|
41
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
42
|
+
},
|
|
43
|
+
"11155111": {
|
|
44
|
+
"FACTORY_OWNER": "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
|
|
45
|
+
"MINT_FEE_RECIPIENT": "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
|
|
46
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
47
|
+
},
|
|
48
|
+
"168587773": {
|
|
49
|
+
"FACTORY_OWNER": "0x8cF22F26d528B09b3cc54b7ff956630Bf741b773",
|
|
50
|
+
"MINT_FEE_RECIPIENT": "0x8cF22F26d528B09b3cc54b7ff956630Bf741b773",
|
|
51
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
52
|
+
},
|
|
53
|
+
"999999999": {
|
|
54
|
+
"FACTORY_OWNER": "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
|
|
55
|
+
"MINT_FEE_RECIPIENT": "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
|
|
56
|
+
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"addresses": {
|
|
60
|
+
"1": {
|
|
61
|
+
"CONTRACT_1155_IMPL": "0x32006e298C19818CD5e8000E26439691f0ac2128",
|
|
62
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
63
|
+
"FACTORY_IMPL": "0xD662FB0fB00261C039441EF49Dbab154d7c533bD",
|
|
64
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
65
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
66
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
67
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
68
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
69
|
+
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
70
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
71
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
72
|
+
"timestamp": 1706664239
|
|
73
|
+
},
|
|
74
|
+
"10": {
|
|
75
|
+
"CONTRACT_1155_IMPL": "0xECfbCf718E17B6e76A675dDB936a9249C69DD2aA",
|
|
76
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
77
|
+
"FACTORY_IMPL": "0x32006e298C19818CD5e8000E26439691f0ac2128",
|
|
78
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
79
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x3678862f04290E565cCA2EF163BAeb92Bb76790C",
|
|
80
|
+
"MERKLE_MINT_SALE_STRATEGY": "0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8",
|
|
81
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
82
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
83
|
+
"REDEEM_MINTER_FACTORY": "0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2",
|
|
84
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
85
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
86
|
+
"timestamp": 1706664035
|
|
87
|
+
},
|
|
88
|
+
"999": {
|
|
89
|
+
"CONTRACT_1155_IMPL": "0x2022AdEF470DA3543a19fac8c9be80618112704D",
|
|
90
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
91
|
+
"FACTORY_IMPL": "0x4b0365Ec68C2D92Af2Fa56f120095F0859142Eff",
|
|
92
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
93
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
94
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
95
|
+
"PREMINTER_IMPL": "0x795Efc066f89DFB03048dDd0598F2D8521c99Df6",
|
|
96
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
97
|
+
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
98
|
+
"UPGRADE_GATE": "0x0000000000000000000000000000000000000000",
|
|
99
|
+
"timestamp": 1704399834
|
|
100
|
+
},
|
|
101
|
+
"8453": {
|
|
102
|
+
"CONTRACT_1155_IMPL": "0xAF5A4F6F6640734d7D000321Bb27De40D4Ae91f6",
|
|
103
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
104
|
+
"FACTORY_IMPL": "0x7B59c0378F540c0356A5DAEF7574255A7C74EC76",
|
|
105
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
106
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
107
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
108
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
109
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
110
|
+
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
111
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
112
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
113
|
+
"timestamp": 1706663976
|
|
114
|
+
},
|
|
115
|
+
"42161": {
|
|
116
|
+
"CONTRACT_1155_IMPL": "0x97eb05B8db496B12244BCcf17CF377d00a99b67a",
|
|
117
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
118
|
+
"FACTORY_IMPL": "0x48d8db63724444C6270749fEe80bBDB6CF33677f",
|
|
119
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
120
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
|
|
121
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
|
|
122
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
123
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
124
|
+
"REDEEM_MINTER_FACTORY": "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
|
|
125
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
126
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
127
|
+
"timestamp": 1706664653
|
|
128
|
+
},
|
|
129
|
+
"81457": {
|
|
130
|
+
"CONTRACT_1155_IMPL": "0x97eb05B8db496B12244BCcf17CF377d00a99b67a",
|
|
131
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.1",
|
|
132
|
+
"FACTORY_IMPL": "0x48d8db63724444C6270749fEe80bBDB6CF33677f",
|
|
133
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
134
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x3EB144aee170BF62FdA1536e38aF51f08e34A5D0",
|
|
135
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xB9C997FcC46a27331CC986cc2416ee99C1d506c3",
|
|
136
|
+
"PREMINTER_IMPL": "0xe3150ab94e3730D4B157ffD31Ad042323E122b4C",
|
|
137
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
138
|
+
"REDEEM_MINTER_FACTORY": "0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614",
|
|
139
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
140
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
141
|
+
"timestamp": 1709235955
|
|
142
|
+
},
|
|
143
|
+
"421614": {
|
|
144
|
+
"CONTRACT_1155_IMPL": "0xc288fe9B145fC31D9aFBa771d0FeB986F6eb49e3",
|
|
145
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
146
|
+
"FACTORY_IMPL": "0x314E552b55DFbDfD4d76623E1D45E5056723998B",
|
|
147
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
148
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
|
|
149
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
|
|
150
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
151
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
152
|
+
"REDEEM_MINTER_FACTORY": "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
|
|
153
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
154
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
155
|
+
"timestamp": 1706661669
|
|
156
|
+
},
|
|
157
|
+
"7777777": {
|
|
158
|
+
"CONTRACT_1155_IMPL": "0x57f412Ea90b59ce4023AFDE95C251E3c747EB7F8",
|
|
159
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
160
|
+
"FACTORY_IMPL": "0xc6bf69986859f0dC0b77f2cA6AD86F5b294c0443",
|
|
161
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
162
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
163
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
164
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
165
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
166
|
+
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
|
|
167
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
168
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
169
|
+
"timestamp": 1706663694
|
|
170
|
+
},
|
|
171
|
+
"11155111": {
|
|
172
|
+
"CONTRACT_1155_IMPL": "0x437A762fc2a8f898Aa7a2575Be21c41753DC4797",
|
|
173
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
174
|
+
"FACTORY_IMPL": "0xF82286760a953D2Bad7D6F2F0da458Ac20f955D3",
|
|
175
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
176
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
|
|
177
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
|
|
178
|
+
"PREMINTER_IMPL": "0x795Efc066f89DFB03048dDd0598F2D8521c99Df6",
|
|
179
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
180
|
+
"REDEEM_MINTER_FACTORY": "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
|
|
181
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
182
|
+
"ERC20_MINTER": "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
183
|
+
"timestamp": 1704336497
|
|
184
|
+
},
|
|
185
|
+
"168587773": {
|
|
186
|
+
"CONTRACT_1155_IMPL": "0x437A762fc2a8f898Aa7a2575Be21c41753DC4797",
|
|
187
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.1",
|
|
188
|
+
"FACTORY_IMPL": "0xF82286760a953D2Bad7D6F2F0da458Ac20f955D3",
|
|
189
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
190
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x3EB144aee170BF62FdA1536e38aF51f08e34A5D0",
|
|
191
|
+
"MERKLE_MINT_SALE_STRATEGY": "0xB9C997FcC46a27331CC986cc2416ee99C1d506c3",
|
|
192
|
+
"PREMINTER_IMPL": "0xe3150ab94e3730D4B157ffD31Ad042323E122b4C",
|
|
193
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
194
|
+
"REDEEM_MINTER_FACTORY": "0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614",
|
|
195
|
+
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
196
|
+
"timestamp": 1709234007
|
|
197
|
+
},
|
|
198
|
+
"999999999": {
|
|
199
|
+
"CONTRACT_1155_IMPL": "0x980170C861E723309628a27c27397a955920F968",
|
|
200
|
+
"CONTRACT_1155_IMPL_VERSION": "2.7.0",
|
|
201
|
+
"FACTORY_IMPL": "0xcea530A0d2d158500E248a59682a1D230c2422F7",
|
|
202
|
+
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
203
|
+
"FIXED_PRICE_SALE_STRATEGY": "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
|
|
204
|
+
"MERKLE_MINT_SALE_STRATEGY": "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
|
|
205
|
+
"PREMINTER_IMPL": "0x6f4f0c7748050d178b50cB000c94d54ea54A82aA",
|
|
206
|
+
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
207
|
+
"REDEEM_MINTER_FACTORY": "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
208
|
+
"UPGRADE_GATE": "0x0000000000000000000000000000000000000000",
|
|
209
|
+
"timestamp": 1706663810
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
package/json/mints.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chainConfigs": {
|
|
3
|
+
"1": {
|
|
4
|
+
"PROXY_ADMIN": "0xDB392f4391462d60B8B4413ef72018Ab595Af9D0",
|
|
5
|
+
"MINTS_OWNER": "0xd1d1D4e36117aB794ec5d4c78cBD3a8904E691D0"
|
|
6
|
+
},
|
|
7
|
+
"10": {
|
|
8
|
+
"PROXY_ADMIN": "0x4c7f7b6067fac9a737ecf2ca1a733fc85dd65a2b",
|
|
9
|
+
"MINTS_OWNER": "0x7A810DCd0f8d83B20212326813Db6EF7E9FD030c"
|
|
10
|
+
},
|
|
11
|
+
"420": {
|
|
12
|
+
"PROXY_ADMIN": "0xbb45052B2260707655Dfd916a416264f5981192c",
|
|
13
|
+
"MINTS_OWNER": "0x5dEe21327CD7CD6725C2578DA1c3E5bb2D2D34b2"
|
|
14
|
+
},
|
|
15
|
+
"999": {
|
|
16
|
+
"PROXY_ADMIN": "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252",
|
|
17
|
+
"MINTS_OWNER": "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252"
|
|
18
|
+
},
|
|
19
|
+
"8453": {
|
|
20
|
+
"PROXY_ADMIN": "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
21
|
+
"MINTS_OWNER": "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6"
|
|
22
|
+
},
|
|
23
|
+
"84531": {
|
|
24
|
+
"PROXY_ADMIN": "0x02539E813cA450C2c7334e885423f4A899a063Fe",
|
|
25
|
+
"MINTS_OWNER": "0x02539E813cA450C2c7334e885423f4A899a063Fe"
|
|
26
|
+
},
|
|
27
|
+
"7777777": {
|
|
28
|
+
"PROXY_ADMIN": "0xdEA20c96253dc2d64897D2b8d27A8d935dE74955",
|
|
29
|
+
"MINTS_OWNER": "0xEcfc2ee50409E459c554a2b0376F882Ce916D853"
|
|
30
|
+
},
|
|
31
|
+
"11155111": {
|
|
32
|
+
"PROXY_ADMIN": "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
|
|
33
|
+
"MINTS_OWNER": "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D"
|
|
34
|
+
},
|
|
35
|
+
"999999999": {
|
|
36
|
+
"PROXY_ADMIN": "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
|
|
37
|
+
"MINTS_OWNER": "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"addresses": {
|
|
41
|
+
"999999999": {
|
|
42
|
+
"MINTS_MANAGER_IMPL": "0x9e6fa79Ce33aF9F718C0D276b5cF2E10897899DB",
|
|
43
|
+
"MINTS_MANAGER_IMPL_VERSION": "0.0.2"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4-PRE.0",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,25 +15,32 @@
|
|
|
15
15
|
"default": "./dist/index.cjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "pnpm bundle-configs && pnpm wagmi:generate && tsup",
|
|
20
|
+
"wagmi:generate": "wagmi generate",
|
|
21
|
+
"bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
|
|
22
|
+
"prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
23
|
+
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@zoralabs/1155-deployments": "workspace:^",
|
|
27
|
+
"@zoralabs/erc20z": "workspace:^",
|
|
28
|
+
"@zoralabs/sparks-contracts": "workspace:^",
|
|
29
|
+
"@zoralabs/sparks-deployments": "workspace:^",
|
|
30
|
+
"@zoralabs/zora-1155-contracts": "workspace:^"
|
|
31
|
+
},
|
|
19
32
|
"devDependencies": {
|
|
20
33
|
"@lavamoat/preinstall-always-fail": "2.0.0",
|
|
21
|
-
"@types/node": "^20.
|
|
34
|
+
"@types/node": "^20.1.2",
|
|
35
|
+
"@wagmi/cli": "^1.5.2",
|
|
36
|
+
"@zoralabs/tsconfig": "workspace:^",
|
|
22
37
|
"abitype": "^1.0.2",
|
|
23
38
|
"es-main": "^1.2.0",
|
|
24
|
-
"
|
|
25
|
-
"tsx": "^3.13.0",
|
|
39
|
+
"glob": "^10.2.2",
|
|
26
40
|
"prettier": "^3.2.5",
|
|
27
41
|
"prettier-plugin-solidity": "^1.1.3",
|
|
42
|
+
"tsup": "^7.2.0",
|
|
28
43
|
"typescript": "^5.2.2",
|
|
29
|
-
"viem": "^2.
|
|
30
|
-
"@zoralabs/tsconfig": "^0.0.0"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "pnpm bundle-configs && pnpm copy-generated && tsup",
|
|
34
|
-
"bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
|
|
35
|
-
"copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
|
|
36
|
-
"prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
37
|
-
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
44
|
+
"viem": "^2.13.2"
|
|
38
45
|
}
|
|
39
|
-
}
|
|
46
|
+
}
|
package/wagmi.config.ts
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { ContractConfig, defineConfig } from "@wagmi/cli";
|
|
2
|
+
import { Abi, zeroAddress } from "viem";
|
|
3
|
+
import { readdirSync, readFileSync } from "fs";
|
|
4
|
+
import * as abis from "@zoralabs/zora-1155-contracts";
|
|
5
|
+
import {
|
|
6
|
+
zoraSparks1155ABI,
|
|
7
|
+
zoraSparksManagerImplABI,
|
|
8
|
+
sparksEthUnwrapperAndCallerABI,
|
|
9
|
+
iUnwrapAndForwardActionABI,
|
|
10
|
+
zoraMints1155ABI,
|
|
11
|
+
zoraMintsManagerImplABI,
|
|
12
|
+
sponsoredSparksSpenderABI,
|
|
13
|
+
iSponsoredSparksSpenderActionABI,
|
|
14
|
+
} from "@zoralabs/sparks-contracts";
|
|
15
|
+
import {
|
|
16
|
+
erc20ZABI,
|
|
17
|
+
zoraTimedSaleStrategyImplABI,
|
|
18
|
+
royaltiesABI,
|
|
19
|
+
secondarySwapABI,
|
|
20
|
+
iwethABI,
|
|
21
|
+
} from "@zoralabs/erc20z";
|
|
22
|
+
import { iPremintDefinitionsABI } from "@zoralabs/zora-1155-contracts";
|
|
23
|
+
import { zora } from "viem/chains";
|
|
24
|
+
|
|
25
|
+
type Address = `0x${string}`;
|
|
26
|
+
|
|
27
|
+
type Addresses = {
|
|
28
|
+
[contractName: string]: {
|
|
29
|
+
address: {
|
|
30
|
+
[chainId: number]: Address;
|
|
31
|
+
};
|
|
32
|
+
abi: Abi;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const timedSaleStrategyErrors = zoraTimedSaleStrategyImplABI.filter(
|
|
37
|
+
(x) => x.type === "error",
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
const zora1155Errors = [
|
|
41
|
+
...abis.zoraCreator1155ImplABI.filter((x) => x.type === "error"),
|
|
42
|
+
...timedSaleStrategyErrors,
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
type AbiAndAddresses = {
|
|
46
|
+
abi: Abi;
|
|
47
|
+
address: Record<number, Address>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const addAddress = <
|
|
51
|
+
T extends Record<string, AbiAndAddresses>,
|
|
52
|
+
K extends Record<string, Address>,
|
|
53
|
+
>({
|
|
54
|
+
contractName,
|
|
55
|
+
abi,
|
|
56
|
+
addresses,
|
|
57
|
+
storedConfigs,
|
|
58
|
+
configKey,
|
|
59
|
+
}: {
|
|
60
|
+
abi: Abi;
|
|
61
|
+
contractName: string;
|
|
62
|
+
configKey: keyof K;
|
|
63
|
+
addresses: T;
|
|
64
|
+
storedConfigs: {
|
|
65
|
+
chainId: number;
|
|
66
|
+
config: K;
|
|
67
|
+
}[];
|
|
68
|
+
}) => {
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
addresses[contractName] = {
|
|
71
|
+
address: {},
|
|
72
|
+
abi,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
for (const storedConfig of storedConfigs) {
|
|
76
|
+
const address = storedConfig.config[configKey] as Address | undefined;
|
|
77
|
+
if (address && address !== zeroAddress)
|
|
78
|
+
addresses[contractName]!.address[storedConfig.chainId] = address;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const toConfig = (
|
|
83
|
+
addresses: Record<string, AbiAndAddresses>,
|
|
84
|
+
): ContractConfig[] => {
|
|
85
|
+
return Object.entries(addresses).map(([contractName, config]) => ({
|
|
86
|
+
abi: config.abi,
|
|
87
|
+
name: contractName,
|
|
88
|
+
address: config.address,
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const get1155Contracts = (): ContractConfig[] => {
|
|
93
|
+
const addresses: Addresses = {};
|
|
94
|
+
|
|
95
|
+
const addressesFiles = readdirSync("../1155-deployments/addresses");
|
|
96
|
+
|
|
97
|
+
const protocolRewardsConfig = JSON.parse(
|
|
98
|
+
readFileSync("../protocol-rewards/deterministicConfig.json", "utf-8"),
|
|
99
|
+
) as {
|
|
100
|
+
expectedAddress: Address;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const storedConfigs = addressesFiles.map((file) => {
|
|
104
|
+
const protocolRewardsAddress = protocolRewardsConfig.expectedAddress;
|
|
105
|
+
return {
|
|
106
|
+
chainId: parseInt(file.split(".")[0]),
|
|
107
|
+
config: {
|
|
108
|
+
...(JSON.parse(
|
|
109
|
+
readFileSync(`../1155-deployments/addresses/${file}`, "utf-8"),
|
|
110
|
+
) as {
|
|
111
|
+
FIXED_PRICE_SALE_STRATEGY: Address;
|
|
112
|
+
MERKLE_MINT_SALE_STRATEGY: Address;
|
|
113
|
+
REDEEM_MINTER_FACTORY: Address;
|
|
114
|
+
"1155_IMPL": Address;
|
|
115
|
+
FACTORY_IMPL: Address;
|
|
116
|
+
FACTORY_PROXY: Address;
|
|
117
|
+
PREMINTER_PROXY?: Address;
|
|
118
|
+
ERC20_MINTER?: Address;
|
|
119
|
+
UPGRADE_GATE?: Address;
|
|
120
|
+
}),
|
|
121
|
+
PROTOCOL_REWARDS: protocolRewardsAddress,
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
addAddress({
|
|
127
|
+
contractName: "ZoraCreatorFixedPriceSaleStrategy",
|
|
128
|
+
abi: abis.zoraCreatorFixedPriceSaleStrategyABI,
|
|
129
|
+
addresses,
|
|
130
|
+
configKey: "FIXED_PRICE_SALE_STRATEGY",
|
|
131
|
+
storedConfigs: storedConfigs,
|
|
132
|
+
});
|
|
133
|
+
addAddress({
|
|
134
|
+
contractName: "ZoraCreatorMerkleMinterStrategy",
|
|
135
|
+
abi: abis.zoraCreatorMerkleMinterStrategyABI,
|
|
136
|
+
configKey: "MERKLE_MINT_SALE_STRATEGY",
|
|
137
|
+
addresses,
|
|
138
|
+
storedConfigs: storedConfigs,
|
|
139
|
+
});
|
|
140
|
+
addAddress({
|
|
141
|
+
contractName: "ZoraCreator1155FactoryImpl",
|
|
142
|
+
configKey: "FACTORY_PROXY",
|
|
143
|
+
abi: [...abis.zoraCreator1155FactoryImplABI, ...zora1155Errors],
|
|
144
|
+
addresses,
|
|
145
|
+
storedConfigs,
|
|
146
|
+
});
|
|
147
|
+
addAddress({
|
|
148
|
+
contractName: "ZoraCreatorRedeemMinterFactory",
|
|
149
|
+
configKey: "REDEEM_MINTER_FACTORY",
|
|
150
|
+
abi: abis.zoraCreatorRedeemMinterFactoryABI,
|
|
151
|
+
addresses,
|
|
152
|
+
storedConfigs,
|
|
153
|
+
});
|
|
154
|
+
addAddress({
|
|
155
|
+
contractName: "ZoraCreator1155PremintExecutorImpl",
|
|
156
|
+
configKey: "PREMINTER_PROXY",
|
|
157
|
+
abi: abis.zoraCreator1155PremintExecutorImplABI,
|
|
158
|
+
addresses,
|
|
159
|
+
storedConfigs,
|
|
160
|
+
});
|
|
161
|
+
addAddress({
|
|
162
|
+
contractName: "ProtocolRewards",
|
|
163
|
+
configKey: "PROTOCOL_REWARDS",
|
|
164
|
+
abi: abis.protocolRewardsABI,
|
|
165
|
+
addresses,
|
|
166
|
+
storedConfigs,
|
|
167
|
+
});
|
|
168
|
+
addAddress({
|
|
169
|
+
contractName: "ERC20Minter",
|
|
170
|
+
configKey: "ERC20_MINTER",
|
|
171
|
+
abi: abis.erc20MinterABI,
|
|
172
|
+
addresses,
|
|
173
|
+
storedConfigs,
|
|
174
|
+
});
|
|
175
|
+
addAddress({
|
|
176
|
+
contractName: "UpgradeGate",
|
|
177
|
+
configKey: "UPGRADE_GATE",
|
|
178
|
+
abi: abis.upgradeGateABI,
|
|
179
|
+
addresses,
|
|
180
|
+
storedConfigs,
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
return [
|
|
184
|
+
...toConfig(addresses),
|
|
185
|
+
{
|
|
186
|
+
abi: [...abis.zoraCreator1155ImplABI, ...timedSaleStrategyErrors],
|
|
187
|
+
name: "ZoraCreator1155Impl",
|
|
188
|
+
},
|
|
189
|
+
];
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const getSharedAddresses = () => {
|
|
193
|
+
const addresses: Addresses = {};
|
|
194
|
+
const addressesFiles = readdirSync("../shared-contracts/chainConfigs");
|
|
195
|
+
|
|
196
|
+
const storedConfigs = addressesFiles.map((file) => {
|
|
197
|
+
return {
|
|
198
|
+
chainId: parseInt(file.split(".")[0]),
|
|
199
|
+
config: JSON.parse(
|
|
200
|
+
readFileSync(`../shared-contracts/chainConfigs/${file}`, "utf-8"),
|
|
201
|
+
) as {
|
|
202
|
+
WETH: Address;
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
addAddress({
|
|
208
|
+
abi: iwethABI,
|
|
209
|
+
addresses,
|
|
210
|
+
configKey: "WETH",
|
|
211
|
+
contractName: "WETH",
|
|
212
|
+
storedConfigs,
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
return toConfig(addresses);
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const getSparksAddresses = () => {
|
|
219
|
+
const chainIds = [7777777, 999999999];
|
|
220
|
+
|
|
221
|
+
const sparksProxyConfig = JSON.parse(
|
|
222
|
+
readFileSync(
|
|
223
|
+
"../sparks-deployments/deterministicConfig/sparksProxy/params.json",
|
|
224
|
+
"utf-8",
|
|
225
|
+
),
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
const mintsProxyConfig = JSON.parse(
|
|
229
|
+
readFileSync(
|
|
230
|
+
"../sparks-deployments/deterministicConfig/mintsProxy/params.json",
|
|
231
|
+
"utf-8",
|
|
232
|
+
),
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
const mintsEthUnwrapperAndCallerAddress = JSON.parse(
|
|
236
|
+
readFileSync("../sparks-deployments/addresses/999999999.json", "utf-8"),
|
|
237
|
+
).MINTS_ETH_UNWRAPPER_AND_CALLER as Address;
|
|
238
|
+
|
|
239
|
+
const sparksManagerAddress = sparksProxyConfig.manager
|
|
240
|
+
.deployedAddress as Address;
|
|
241
|
+
const zoraSparks1155Address = sparksProxyConfig.sparks1155
|
|
242
|
+
.deployedAddress as Address;
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
sparksManager: Object.fromEntries(
|
|
246
|
+
chainIds.map((chainId) => [chainId, sparksManagerAddress]),
|
|
247
|
+
),
|
|
248
|
+
sparks1155: Object.fromEntries(
|
|
249
|
+
chainIds.map((chainId) => [chainId, zoraSparks1155Address as Address]),
|
|
250
|
+
),
|
|
251
|
+
|
|
252
|
+
mintsEthUnwrapperAndCaller: Object.fromEntries(
|
|
253
|
+
chainIds.map((chainId) => [chainId, mintsEthUnwrapperAndCallerAddress]),
|
|
254
|
+
),
|
|
255
|
+
// deprecated mints contracts
|
|
256
|
+
mintsManager: Object.fromEntries(
|
|
257
|
+
chainIds.map((chainId) => [
|
|
258
|
+
chainId,
|
|
259
|
+
mintsProxyConfig.manager.deployedAddress as Address,
|
|
260
|
+
]),
|
|
261
|
+
),
|
|
262
|
+
mints1155: Object.fromEntries(
|
|
263
|
+
chainIds.map((chainId) => [
|
|
264
|
+
chainId,
|
|
265
|
+
mintsProxyConfig.mints1155.deployedAddress as Address,
|
|
266
|
+
]),
|
|
267
|
+
),
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
const sparksAddresses = getSparksAddresses();
|
|
272
|
+
|
|
273
|
+
const getErc20zContracts = (): ContractConfig[] => {
|
|
274
|
+
const addresses: Addresses = {};
|
|
275
|
+
|
|
276
|
+
const addressesFiles = readdirSync("../erc20z/addresses");
|
|
277
|
+
|
|
278
|
+
const storedConfigs = addressesFiles.map((file) => {
|
|
279
|
+
return {
|
|
280
|
+
chainId: parseInt(file.split(".")[0]),
|
|
281
|
+
config: {
|
|
282
|
+
...(JSON.parse(
|
|
283
|
+
readFileSync(`../erc20z/addresses/${file}`, "utf-8"),
|
|
284
|
+
) as {
|
|
285
|
+
SWAP_HELPER: Address;
|
|
286
|
+
ERC20Z: Address;
|
|
287
|
+
NONFUNGIBLE_POSITION_MANAGER: Address;
|
|
288
|
+
ROYALTIES: Address;
|
|
289
|
+
SALE_STRATEGY: Address;
|
|
290
|
+
SALE_STRATEGY_IMPL: Address;
|
|
291
|
+
WETH: Address;
|
|
292
|
+
}),
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
addAddress({
|
|
298
|
+
abi: royaltiesABI,
|
|
299
|
+
addresses,
|
|
300
|
+
configKey: "ROYALTIES",
|
|
301
|
+
contractName: "ERC20ZRoyalties",
|
|
302
|
+
storedConfigs,
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
addAddress({
|
|
306
|
+
abi: zoraTimedSaleStrategyImplABI,
|
|
307
|
+
addresses,
|
|
308
|
+
configKey: "SALE_STRATEGY",
|
|
309
|
+
contractName: "zoraTimedSaleStrategy",
|
|
310
|
+
storedConfigs,
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
addAddress({
|
|
314
|
+
abi: secondarySwapABI,
|
|
315
|
+
addresses,
|
|
316
|
+
configKey: "SWAP_HELPER",
|
|
317
|
+
contractName: "SecondarySwap",
|
|
318
|
+
storedConfigs,
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
return [
|
|
322
|
+
...toConfig(addresses),
|
|
323
|
+
{
|
|
324
|
+
abi: erc20ZABI,
|
|
325
|
+
name: "ERC20Z",
|
|
326
|
+
},
|
|
327
|
+
];
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export default defineConfig({
|
|
331
|
+
out: "./src/generated/wagmi.ts",
|
|
332
|
+
contracts: [
|
|
333
|
+
...get1155Contracts(),
|
|
334
|
+
...getErc20zContracts(),
|
|
335
|
+
...getSharedAddresses(),
|
|
336
|
+
{
|
|
337
|
+
abi: zoraSparksManagerImplABI,
|
|
338
|
+
name: "ZoraSparksManagerImpl",
|
|
339
|
+
address: sparksAddresses.sparksManager,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
abi: zoraSparks1155ABI,
|
|
343
|
+
name: "ZoraSparks1155",
|
|
344
|
+
address: sparksAddresses.sparks1155,
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
abi: sparksEthUnwrapperAndCallerABI,
|
|
348
|
+
name: "MintsEthUnwrapperAndCaller",
|
|
349
|
+
address: sparksAddresses.mintsEthUnwrapperAndCaller,
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
abi: iUnwrapAndForwardActionABI,
|
|
353
|
+
name: "IUnwrapAndForwardAction",
|
|
354
|
+
},
|
|
355
|
+
// legacy mints contracts
|
|
356
|
+
{
|
|
357
|
+
abi: zoraMints1155ABI,
|
|
358
|
+
name: "ZoraMints1155",
|
|
359
|
+
address: sparksAddresses.mints1155,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
abi: zoraMintsManagerImplABI,
|
|
363
|
+
name: "ZoraMintsManagerImpl",
|
|
364
|
+
address: sparksAddresses.mintsManager,
|
|
365
|
+
},
|
|
366
|
+
// end legacy mints contract
|
|
367
|
+
{
|
|
368
|
+
abi: iPremintDefinitionsABI,
|
|
369
|
+
name: "IPremintDefinitions",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
abi: sponsoredSparksSpenderABI,
|
|
373
|
+
name: "SponsoredSparksSpender",
|
|
374
|
+
address: {
|
|
375
|
+
[zora.id]: "0x29b75AbA7dc7FE26d90CD96fbB390B26e04C4EB2",
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
abi: iSponsoredSparksSpenderActionABI,
|
|
380
|
+
name: "ISponsoredSparksSpenderAction",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
});
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Zora Labs
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|