@zoralabs/protocol-deployments 0.1.8 → 0.1.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 -22
- package/CHANGELOG.md +12 -0
- package/dist/generated/wagmi.d.ts +474 -80
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +395 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +391 -40
- package/dist/index.js.map +1 -1
- package/dist/typedData.d.ts +177 -0
- package/dist/typedData.d.ts.map +1 -0
- package/package.json +11 -17
- package/src/generated/wagmi.ts +227 -39
- package/src/index.ts +1 -0
- package/src/typedData.ts +226 -0
- package/wagmi.config.ts +0 -189
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Address, TypedDataToPrimitiveTypes } from "abitype";
|
|
2
|
+
import { TypedDataDefinition } from "viem";
|
|
3
|
+
import { zoraMints1155Address } from "./generated/wagmi";
|
|
4
|
+
declare const premintV1TypedDataType: {
|
|
5
|
+
readonly CreatorAttribution: readonly [{
|
|
6
|
+
readonly name: "tokenConfig";
|
|
7
|
+
readonly type: "TokenCreationConfig";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "uid";
|
|
10
|
+
readonly type: "uint32";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "version";
|
|
13
|
+
readonly type: "uint32";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "deleted";
|
|
16
|
+
readonly type: "bool";
|
|
17
|
+
}];
|
|
18
|
+
readonly TokenCreationConfig: readonly [{
|
|
19
|
+
readonly name: "tokenURI";
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "maxSupply";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "maxTokensPerAddress";
|
|
26
|
+
readonly type: "uint64";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "pricePerToken";
|
|
29
|
+
readonly type: "uint96";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "mintStart";
|
|
32
|
+
readonly type: "uint64";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "mintDuration";
|
|
35
|
+
readonly type: "uint64";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "royaltyMintSchedule";
|
|
38
|
+
readonly type: "uint32";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "royaltyBPS";
|
|
41
|
+
readonly type: "uint32";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "royaltyRecipient";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "fixedPriceMinter";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Builds a typed data definition for a PremintConfigV1 to be signed
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
export declare const premintV1TypedDataDefinition: ({ chainId, creator1155Contract, message, }: {
|
|
55
|
+
chainId: number;
|
|
56
|
+
creator1155Contract: Address;
|
|
57
|
+
message: TypedDataToPrimitiveTypes<typeof premintV1TypedDataType>["CreatorAttribution"];
|
|
58
|
+
}) => TypedDataDefinition<typeof premintV1TypedDataType, "CreatorAttribution">;
|
|
59
|
+
declare const premintV2TypedDataType: {
|
|
60
|
+
readonly CreatorAttribution: readonly [{
|
|
61
|
+
readonly name: "tokenConfig";
|
|
62
|
+
readonly type: "TokenCreationConfig";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "uid";
|
|
65
|
+
readonly type: "uint32";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "version";
|
|
68
|
+
readonly type: "uint32";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "deleted";
|
|
71
|
+
readonly type: "bool";
|
|
72
|
+
}];
|
|
73
|
+
readonly TokenCreationConfig: readonly [{
|
|
74
|
+
readonly name: "tokenURI";
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "maxSupply";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "maxTokensPerAddress";
|
|
81
|
+
readonly type: "uint64";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "pricePerToken";
|
|
84
|
+
readonly type: "uint96";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "mintStart";
|
|
87
|
+
readonly type: "uint64";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "mintDuration";
|
|
90
|
+
readonly type: "uint64";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "royaltyBPS";
|
|
93
|
+
readonly type: "uint32";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "payoutRecipient";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "fixedPriceMinter";
|
|
99
|
+
readonly type: "address";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "createReferral";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Builds a typed data definition for a PremintConfigV2 to be signed
|
|
107
|
+
*/
|
|
108
|
+
export declare const premintV2TypedDataDefinition: ({ chainId, creator1155Contract, message, }: {
|
|
109
|
+
chainId: number;
|
|
110
|
+
creator1155Contract: Address;
|
|
111
|
+
message: TypedDataToPrimitiveTypes<typeof premintV2TypedDataType>["CreatorAttribution"];
|
|
112
|
+
}) => TypedDataDefinition<typeof premintV2TypedDataType, "CreatorAttribution">;
|
|
113
|
+
declare const permitSafeTransferTypedDataType: {
|
|
114
|
+
readonly PermitSafeTransfer: readonly [{
|
|
115
|
+
readonly name: "owner";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "to";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "tokenId";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "quantity";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "safeTransferData";
|
|
128
|
+
readonly type: "bytes";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "nonce";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "deadline";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Builds a typed data definition for a PermitSafeTransfer on the Mints1155 contract to be signed
|
|
139
|
+
*/
|
|
140
|
+
export declare const mintsSafeTransferTypedDataDefinition: ({ chainId, message, }: {
|
|
141
|
+
chainId: keyof typeof zoraMints1155Address;
|
|
142
|
+
message: TypedDataToPrimitiveTypes<typeof permitSafeTransferTypedDataType>["PermitSafeTransfer"];
|
|
143
|
+
}) => TypedDataDefinition<typeof permitSafeTransferTypedDataType, "PermitSafeTransfer">;
|
|
144
|
+
declare const permitSafeBatchTransferTypedDataType: {
|
|
145
|
+
readonly Permit: readonly [{
|
|
146
|
+
readonly name: "owner";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "to";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "tokenIds";
|
|
153
|
+
readonly type: "uint256[]";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "quantities";
|
|
156
|
+
readonly type: "uint256[]";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "safeTransferData";
|
|
159
|
+
readonly type: "bytes";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "nonce";
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "deadline";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}];
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Builds a typed data definition for a PermitSafeTransferBatch on the Mints1155 contract to be signed
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
export declare const mintsSafeTransferBatchTypedDataDefinition: ({ chainId, message, }: {
|
|
173
|
+
chainId: keyof typeof zoraMints1155Address;
|
|
174
|
+
message: TypedDataToPrimitiveTypes<typeof permitSafeBatchTransferTypedDataType>["Permit"];
|
|
175
|
+
}) => TypedDataDefinition<typeof permitSafeBatchTransferTypedDataType, "Permit">;
|
|
176
|
+
export {};
|
|
177
|
+
//# sourceMappingURL=typedData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../src/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGP,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAiBzD,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBE,CAAC;AAE/B;;;GAGG;AACH,eAAO,MAAM,4BAA4B;aAK9B,MAAM;yBACM,OAAO;aACnB,0BACP,6BAA6B,CAC9B,CAAC,oBAAoB,CAAC;MACrB,oBACF,6BAA6B,EAC7B,oBAAoB,CAUpB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBE,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,4BAA4B;aAK9B,MAAM;yBACM,OAAO;aACnB,0BACP,6BAA6B,CAC9B,CAAC,oBAAoB,CAAC;MACrB,oBACF,6BAA6B,EAC7B,oBAAoB,CAUpB,CAAC;AAEH,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;CAU3B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,oCAAoC;aAItC,MAAM,2BAA2B;aACjC,0BACP,sCAAsC,CACvC,CAAC,oBAAoB,CAAC;MACrB,oBACF,sCAAsC,EACtC,oBAAoB,CAWpB,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;CA+BhC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,yCAAyC;aAI3C,MAAM,2BAA2B;aACjC,0BACP,2CAA2C,CAC5C,CAAC,QAAQ,CAAC;MACT,oBACF,2CAA2C,EAC3C,QAAQ,CAWR,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,26 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "yarn
|
|
19
|
+
"build": "yarn bundle-configs && tsup",
|
|
20
20
|
"bundle-configs": "tsx scripts/bundle-configs.ts && yarn prettier",
|
|
21
|
-
"prettier": "prettier --write 'src/**/*.ts' 'scripts/*'
|
|
22
|
-
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'
|
|
23
|
-
"wagmi": "wagmi generate"
|
|
21
|
+
"prettier": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
22
|
+
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {},
|
|
26
25
|
"devDependencies": {
|
|
27
|
-
"zoralabs-tsconfig": "*",
|
|
28
|
-
"typescript": "^5.2.2",
|
|
29
|
-
"tsx": "^3.13.0",
|
|
30
|
-
"tsup": "^7.2.0",
|
|
31
|
-
"glob": "^10.2.2",
|
|
32
|
-
"es-main": "^1.2.0",
|
|
33
|
-
"@wagmi/cli": "^1.0.1",
|
|
34
|
-
"@types/node": "^20.1.2",
|
|
35
26
|
"@lavamoat/preinstall-always-fail": "2.0.0",
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
27
|
+
"@types/node": "^20.1.2",
|
|
28
|
+
"es-main": "^1.2.0",
|
|
29
|
+
"tsup": "^7.2.0",
|
|
30
|
+
"tsx": "^3.13.0",
|
|
31
|
+
"typescript": "^5.2.2",
|
|
32
|
+
"viem": "^2.9.18",
|
|
33
|
+
"zoralabs-tsconfig": "*"
|
|
40
34
|
}
|
|
41
35
|
}
|
package/src/generated/wagmi.ts
CHANGED
|
@@ -14,6 +14,20 @@
|
|
|
14
14
|
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x777777E8850d8D6d98De2B5f64fae401F96eFF31)
|
|
15
15
|
*/
|
|
16
16
|
export const erc20MinterABI = [
|
|
17
|
+
{
|
|
18
|
+
stateMutability: 'nonpayable',
|
|
19
|
+
type: 'function',
|
|
20
|
+
inputs: [],
|
|
21
|
+
name: 'acceptOwnership',
|
|
22
|
+
outputs: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
stateMutability: 'nonpayable',
|
|
26
|
+
type: 'function',
|
|
27
|
+
inputs: [],
|
|
28
|
+
name: 'cancelOwnershipTransfer',
|
|
29
|
+
outputs: [],
|
|
30
|
+
},
|
|
17
31
|
{
|
|
18
32
|
stateMutability: 'pure',
|
|
19
33
|
type: 'function',
|
|
@@ -56,7 +70,7 @@ export const erc20MinterABI = [
|
|
|
56
70
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
57
71
|
},
|
|
58
72
|
{
|
|
59
|
-
stateMutability: '
|
|
73
|
+
stateMutability: 'view',
|
|
60
74
|
type: 'function',
|
|
61
75
|
inputs: [{ name: 'totalValue', internalType: 'uint256', type: 'uint256' }],
|
|
62
76
|
name: 'computeTotalReward',
|
|
@@ -83,6 +97,13 @@ export const erc20MinterABI = [
|
|
|
83
97
|
name: 'contractVersion',
|
|
84
98
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
85
99
|
},
|
|
100
|
+
{
|
|
101
|
+
stateMutability: 'view',
|
|
102
|
+
type: 'function',
|
|
103
|
+
inputs: [],
|
|
104
|
+
name: 'ethRewardAmount',
|
|
105
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
106
|
+
},
|
|
86
107
|
{
|
|
87
108
|
stateMutability: 'view',
|
|
88
109
|
type: 'function',
|
|
@@ -95,6 +116,32 @@ export const erc20MinterABI = [
|
|
|
95
116
|
{ name: 'createReferral', internalType: 'address', type: 'address' },
|
|
96
117
|
],
|
|
97
118
|
},
|
|
119
|
+
{
|
|
120
|
+
stateMutability: 'view',
|
|
121
|
+
type: 'function',
|
|
122
|
+
inputs: [],
|
|
123
|
+
name: 'getERC20MinterConfig',
|
|
124
|
+
outputs: [
|
|
125
|
+
{
|
|
126
|
+
name: '',
|
|
127
|
+
internalType: 'struct IERC20Minter.ERC20MinterConfig',
|
|
128
|
+
type: 'tuple',
|
|
129
|
+
components: [
|
|
130
|
+
{
|
|
131
|
+
name: 'zoraRewardRecipientAddress',
|
|
132
|
+
internalType: 'address',
|
|
133
|
+
type: 'address',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'rewardRecipientPercentage',
|
|
137
|
+
internalType: 'uint256',
|
|
138
|
+
type: 'uint256',
|
|
139
|
+
},
|
|
140
|
+
{ name: 'ethReward', internalType: 'uint256', type: 'uint256' },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
98
145
|
{
|
|
99
146
|
stateMutability: 'view',
|
|
100
147
|
type: 'function',
|
|
@@ -127,12 +174,15 @@ export const erc20MinterABI = [
|
|
|
127
174
|
internalType: 'address',
|
|
128
175
|
type: 'address',
|
|
129
176
|
},
|
|
177
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
178
|
+
{ name: '_rewardPct', internalType: 'uint256', type: 'uint256' },
|
|
179
|
+
{ name: '_ethReward', internalType: 'uint256', type: 'uint256' },
|
|
130
180
|
],
|
|
131
181
|
name: 'initialize',
|
|
132
182
|
outputs: [],
|
|
133
183
|
},
|
|
134
184
|
{
|
|
135
|
-
stateMutability: '
|
|
185
|
+
stateMutability: 'payable',
|
|
136
186
|
type: 'function',
|
|
137
187
|
inputs: [
|
|
138
188
|
{ name: 'mintTo', internalType: 'address', type: 'address' },
|
|
@@ -147,6 +197,39 @@ export const erc20MinterABI = [
|
|
|
147
197
|
name: 'mint',
|
|
148
198
|
outputs: [],
|
|
149
199
|
},
|
|
200
|
+
{
|
|
201
|
+
stateMutability: 'view',
|
|
202
|
+
type: 'function',
|
|
203
|
+
inputs: [],
|
|
204
|
+
name: 'minterConfig',
|
|
205
|
+
outputs: [
|
|
206
|
+
{
|
|
207
|
+
name: 'zoraRewardRecipientAddress',
|
|
208
|
+
internalType: 'address',
|
|
209
|
+
type: 'address',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'rewardRecipientPercentage',
|
|
213
|
+
internalType: 'uint256',
|
|
214
|
+
type: 'uint256',
|
|
215
|
+
},
|
|
216
|
+
{ name: 'ethReward', internalType: 'uint256', type: 'uint256' },
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
stateMutability: 'view',
|
|
221
|
+
type: 'function',
|
|
222
|
+
inputs: [],
|
|
223
|
+
name: 'owner',
|
|
224
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
stateMutability: 'view',
|
|
228
|
+
type: 'function',
|
|
229
|
+
inputs: [],
|
|
230
|
+
name: 'pendingOwner',
|
|
231
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
232
|
+
},
|
|
150
233
|
{
|
|
151
234
|
stateMutability: 'pure',
|
|
152
235
|
type: 'function',
|
|
@@ -189,6 +272,20 @@ export const erc20MinterABI = [
|
|
|
189
272
|
name: 'resetSale',
|
|
190
273
|
outputs: [],
|
|
191
274
|
},
|
|
275
|
+
{
|
|
276
|
+
stateMutability: 'nonpayable',
|
|
277
|
+
type: 'function',
|
|
278
|
+
inputs: [],
|
|
279
|
+
name: 'resignOwnership',
|
|
280
|
+
outputs: [],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
stateMutability: 'nonpayable',
|
|
284
|
+
type: 'function',
|
|
285
|
+
inputs: [{ name: '_newOwner', internalType: 'address', type: 'address' }],
|
|
286
|
+
name: 'safeTransferOwnership',
|
|
287
|
+
outputs: [],
|
|
288
|
+
},
|
|
192
289
|
{
|
|
193
290
|
stateMutability: 'view',
|
|
194
291
|
type: 'function',
|
|
@@ -217,6 +314,32 @@ export const erc20MinterABI = [
|
|
|
217
314
|
},
|
|
218
315
|
],
|
|
219
316
|
},
|
|
317
|
+
{
|
|
318
|
+
stateMutability: 'nonpayable',
|
|
319
|
+
type: 'function',
|
|
320
|
+
inputs: [
|
|
321
|
+
{
|
|
322
|
+
name: 'config',
|
|
323
|
+
internalType: 'struct IERC20Minter.ERC20MinterConfig',
|
|
324
|
+
type: 'tuple',
|
|
325
|
+
components: [
|
|
326
|
+
{
|
|
327
|
+
name: 'zoraRewardRecipientAddress',
|
|
328
|
+
internalType: 'address',
|
|
329
|
+
type: 'address',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: 'rewardRecipientPercentage',
|
|
333
|
+
internalType: 'uint256',
|
|
334
|
+
type: 'uint256',
|
|
335
|
+
},
|
|
336
|
+
{ name: 'ethReward', internalType: 'uint256', type: 'uint256' },
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
name: 'setERC20MinterConfig',
|
|
341
|
+
outputs: [],
|
|
342
|
+
},
|
|
220
343
|
{
|
|
221
344
|
stateMutability: 'nonpayable',
|
|
222
345
|
type: 'function',
|
|
@@ -243,13 +366,6 @@ export const erc20MinterABI = [
|
|
|
243
366
|
name: 'setSale',
|
|
244
367
|
outputs: [],
|
|
245
368
|
},
|
|
246
|
-
{
|
|
247
|
-
stateMutability: 'nonpayable',
|
|
248
|
-
type: 'function',
|
|
249
|
-
inputs: [{ name: 'recipient', internalType: 'address', type: 'address' }],
|
|
250
|
-
name: 'setZoraRewardsRecipient',
|
|
251
|
-
outputs: [],
|
|
252
|
-
},
|
|
253
369
|
{
|
|
254
370
|
stateMutability: 'pure',
|
|
255
371
|
type: 'function',
|
|
@@ -258,31 +374,44 @@ export const erc20MinterABI = [
|
|
|
258
374
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
259
375
|
},
|
|
260
376
|
{
|
|
261
|
-
stateMutability: '
|
|
377
|
+
stateMutability: 'view',
|
|
262
378
|
type: 'function',
|
|
263
379
|
inputs: [],
|
|
264
380
|
name: 'totalRewardPct',
|
|
265
381
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
266
382
|
},
|
|
267
383
|
{
|
|
268
|
-
stateMutability: '
|
|
384
|
+
stateMutability: 'nonpayable',
|
|
269
385
|
type: 'function',
|
|
270
|
-
inputs: [],
|
|
271
|
-
name: '
|
|
272
|
-
outputs: [
|
|
386
|
+
inputs: [{ name: '_newOwner', internalType: 'address', type: 'address' }],
|
|
387
|
+
name: 'transferOwnership',
|
|
388
|
+
outputs: [],
|
|
273
389
|
},
|
|
274
390
|
{
|
|
275
391
|
type: 'event',
|
|
276
392
|
anonymous: false,
|
|
277
393
|
inputs: [
|
|
278
394
|
{
|
|
279
|
-
name: '
|
|
280
|
-
internalType: '
|
|
281
|
-
type: '
|
|
395
|
+
name: 'config',
|
|
396
|
+
internalType: 'struct IERC20Minter.ERC20MinterConfig',
|
|
397
|
+
type: 'tuple',
|
|
398
|
+
components: [
|
|
399
|
+
{
|
|
400
|
+
name: 'zoraRewardRecipientAddress',
|
|
401
|
+
internalType: 'address',
|
|
402
|
+
type: 'address',
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: 'rewardRecipientPercentage',
|
|
406
|
+
internalType: 'uint256',
|
|
407
|
+
type: 'uint256',
|
|
408
|
+
},
|
|
409
|
+
{ name: 'ethReward', internalType: 'uint256', type: 'uint256' },
|
|
410
|
+
],
|
|
282
411
|
indexed: false,
|
|
283
412
|
},
|
|
284
413
|
],
|
|
285
|
-
name: '
|
|
414
|
+
name: 'ERC20MinterConfigSet',
|
|
286
415
|
},
|
|
287
416
|
{
|
|
288
417
|
type: 'event',
|
|
@@ -357,6 +486,14 @@ export const erc20MinterABI = [
|
|
|
357
486
|
],
|
|
358
487
|
name: 'ERC20RewardsDeposit',
|
|
359
488
|
},
|
|
489
|
+
{
|
|
490
|
+
type: 'event',
|
|
491
|
+
anonymous: false,
|
|
492
|
+
inputs: [
|
|
493
|
+
{ name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
494
|
+
],
|
|
495
|
+
name: 'Initialized',
|
|
496
|
+
},
|
|
360
497
|
{
|
|
361
498
|
type: 'event',
|
|
362
499
|
anonymous: false,
|
|
@@ -394,6 +531,63 @@ export const erc20MinterABI = [
|
|
|
394
531
|
],
|
|
395
532
|
name: 'MintComment',
|
|
396
533
|
},
|
|
534
|
+
{
|
|
535
|
+
type: 'event',
|
|
536
|
+
anonymous: false,
|
|
537
|
+
inputs: [
|
|
538
|
+
{
|
|
539
|
+
name: 'owner',
|
|
540
|
+
internalType: 'address',
|
|
541
|
+
type: 'address',
|
|
542
|
+
indexed: true,
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: 'canceledOwner',
|
|
546
|
+
internalType: 'address',
|
|
547
|
+
type: 'address',
|
|
548
|
+
indexed: true,
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
name: 'OwnerCanceled',
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
type: 'event',
|
|
555
|
+
anonymous: false,
|
|
556
|
+
inputs: [
|
|
557
|
+
{
|
|
558
|
+
name: 'owner',
|
|
559
|
+
internalType: 'address',
|
|
560
|
+
type: 'address',
|
|
561
|
+
indexed: true,
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
name: 'pendingOwner',
|
|
565
|
+
internalType: 'address',
|
|
566
|
+
type: 'address',
|
|
567
|
+
indexed: true,
|
|
568
|
+
},
|
|
569
|
+
],
|
|
570
|
+
name: 'OwnerPending',
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
type: 'event',
|
|
574
|
+
anonymous: false,
|
|
575
|
+
inputs: [
|
|
576
|
+
{
|
|
577
|
+
name: 'prevOwner',
|
|
578
|
+
internalType: 'address',
|
|
579
|
+
type: 'address',
|
|
580
|
+
indexed: true,
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: 'newOwner',
|
|
584
|
+
internalType: 'address',
|
|
585
|
+
type: 'address',
|
|
586
|
+
indexed: true,
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
name: 'OwnerUpdated',
|
|
590
|
+
},
|
|
397
591
|
{
|
|
398
592
|
type: 'event',
|
|
399
593
|
anonymous: false,
|
|
@@ -431,30 +625,24 @@ export const erc20MinterABI = [
|
|
|
431
625
|
],
|
|
432
626
|
name: 'SaleSet',
|
|
433
627
|
},
|
|
434
|
-
{
|
|
435
|
-
type: 'event',
|
|
436
|
-
anonymous: false,
|
|
437
|
-
inputs: [
|
|
438
|
-
{
|
|
439
|
-
name: 'prevRecipient',
|
|
440
|
-
internalType: 'address',
|
|
441
|
-
type: 'address',
|
|
442
|
-
indexed: true,
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
name: 'newRecipient',
|
|
446
|
-
internalType: 'address',
|
|
447
|
-
type: 'address',
|
|
448
|
-
indexed: true,
|
|
449
|
-
},
|
|
450
|
-
],
|
|
451
|
-
name: 'ZoraRewardsRecipientSet',
|
|
452
|
-
},
|
|
453
628
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
454
|
-
{ type: 'error', inputs: [], name: 'AlreadyInitialized' },
|
|
455
629
|
{ type: 'error', inputs: [], name: 'ERC20TransferSlippage' },
|
|
630
|
+
{ type: 'error', inputs: [], name: 'FailedToSendEthReward' },
|
|
631
|
+
{
|
|
632
|
+
type: 'error',
|
|
633
|
+
inputs: [],
|
|
634
|
+
name: 'INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
type: 'error',
|
|
638
|
+
inputs: [],
|
|
639
|
+
name: 'INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING',
|
|
640
|
+
},
|
|
456
641
|
{ type: 'error', inputs: [], name: 'InvalidCurrency' },
|
|
457
|
-
{ type: 'error', inputs: [], name: '
|
|
642
|
+
{ type: 'error', inputs: [], name: 'InvalidValue' },
|
|
643
|
+
{ type: 'error', inputs: [], name: 'ONLY_OWNER' },
|
|
644
|
+
{ type: 'error', inputs: [], name: 'ONLY_PENDING_OWNER' },
|
|
645
|
+
{ type: 'error', inputs: [], name: 'OWNER_CANNOT_BE_ZERO_ADDRESS' },
|
|
458
646
|
{ type: 'error', inputs: [], name: 'PricePerTokenTooLow' },
|
|
459
647
|
{ type: 'error', inputs: [], name: 'RequestMintInvalidUseMint' },
|
|
460
648
|
{ type: 'error', inputs: [], name: 'SaleEnded' },
|
package/src/index.ts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
// built at build time. They are not checked in to git.
|
|
3
3
|
// The can be generated by running `yarn prepack` in the root
|
|
4
4
|
export * from "./generated/wagmi";
|
|
5
|
+
export * from "./typedData";
|
|
5
6
|
export * as contracts1155 from "./generated/1155";
|
|
6
7
|
export * as mints from "./generated/mints";
|