@zoralabs/protocol-deployments 0.3.4-PRE.0 → 0.3.5-COMMENTS.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 +8 -2
- package/LICENSE +21 -0
- package/dist/generated/wagmi.d.ts +2935 -44
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +1006 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1002 -10
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -22
- package/src/generated/wagmi.ts +1028 -34
- package/src/types.ts +18 -0
- package/json/1155.json +0 -212
- package/json/mints.json +0 -46
- package/wagmi.config.ts +0 -383
package/src/types.ts
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
} from "./generated/wagmi";
|
|
8
8
|
import { Address } from "viem";
|
|
9
9
|
|
|
10
|
+
import { commentsABI } from "./generated/wagmi";
|
|
11
|
+
|
|
10
12
|
export enum PremintConfigVersion {
|
|
11
13
|
V1 = "1",
|
|
12
14
|
V2 = "2",
|
|
@@ -121,3 +123,19 @@ export type SponsoredSparksBatch = AbiParametersToPrimitiveTypes<
|
|
|
121
123
|
"hashSponsoredMint"
|
|
122
124
|
>["inputs"]
|
|
123
125
|
>[0];
|
|
126
|
+
|
|
127
|
+
export type CommentIdentifier = AbiParametersToPrimitiveTypes<
|
|
128
|
+
ExtractAbiFunction<typeof commentsABI, "hashCommentIdentifier">["inputs"]
|
|
129
|
+
>[0];
|
|
130
|
+
|
|
131
|
+
export const emptyCommentIdentifier = (): CommentIdentifier => {
|
|
132
|
+
const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
133
|
+
const zeroHash =
|
|
134
|
+
"0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
135
|
+
return {
|
|
136
|
+
commenter: zeroAddress,
|
|
137
|
+
contractAddress: zeroAddress,
|
|
138
|
+
tokenId: 0n,
|
|
139
|
+
nonce: zeroHash,
|
|
140
|
+
};
|
|
141
|
+
};
|
package/json/1155.json
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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/wagmi.config.ts
DELETED
|
@@ -1,383 +0,0 @@
|
|
|
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
|
-
});
|