@artblocks/contracts 1.4.0 → 1.6.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.
Files changed (26) hide show
  1. package/README.md +1 -1
  2. package/artifacts/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol/IFormPaletteBindingHooks.json +723 -0
  3. package/artifacts/contracts/interfaces/v0.8.x/IMintTimeAndTransferCountHooks.sol/IMintTimeAndTransferCountHooks.json +356 -0
  4. package/artifacts/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol/IPMPProjectViewsV0.json +126 -0
  5. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol/ISharedMinterRequiredPMPV0.json +36 -0
  6. package/artifacts/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol/RequiredPMPLib.json +10 -0
  7. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol/MinterSetPricePMPV0.json +613 -0
  8. package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/IMinterPMPPurchase.json +91 -0
  9. package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/MockPMPMinterReentrantConfigureHook.json +180 -0
  10. package/artifacts/contracts/mock/MockPMPReentrantConfigureHook.sol/MockPMPReentrantConfigureHook.json +158 -0
  11. package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/IMinterPurchaseWithPMPs.json +67 -0
  12. package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/ReentrancyPMPMockShared.json +154 -0
  13. package/artifacts/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol/FormPaletteBindingHooks.json +919 -0
  14. package/artifacts/contracts/web3call/combined-hooks/MintTimeAndTransferCountHooks.sol/MintTimeAndTransferCountHooks.json +435 -0
  15. package/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol +339 -0
  16. package/contracts/interfaces/v0.8.x/IMintTimeAndTransferCountHooks.sol +125 -0
  17. package/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol +59 -0
  18. package/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol +27 -0
  19. package/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol +336 -0
  20. package/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol +664 -0
  21. package/contracts/mock/MockPMPMinterReentrantConfigureHook.sol +85 -0
  22. package/contracts/mock/MockPMPReentrantConfigureHook.sol +59 -0
  23. package/contracts/mock/ReentrancyPMPMockShared.sol +81 -0
  24. package/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol +1392 -0
  25. package/contracts/web3call/combined-hooks/MintTimeAndTransferCountHooks.sol +483 -0
  26. package/package.json +2 -1
@@ -0,0 +1,356 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMintTimeAndTransferCountHooks",
4
+ "sourceName": "contracts/interfaces/v0.8.x/IMintTimeAndTransferCountHooks.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "coreContract",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "projectId",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "configuredHook",
21
+ "type": "address"
22
+ }
23
+ ],
24
+ "name": "HookNotConfiguredForProject",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "coreContract",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "uint256",
39
+ "name": "tokenId",
40
+ "type": "uint256"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "uint64",
45
+ "name": "timestamp",
46
+ "type": "uint64"
47
+ }
48
+ ],
49
+ "name": "MintTimestampRecorded",
50
+ "type": "event"
51
+ },
52
+ {
53
+ "anonymous": false,
54
+ "inputs": [
55
+ {
56
+ "indexed": true,
57
+ "internalType": "address",
58
+ "name": "coreContract",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "indexed": true,
63
+ "internalType": "uint256",
64
+ "name": "tokenId",
65
+ "type": "uint256"
66
+ },
67
+ {
68
+ "indexed": false,
69
+ "internalType": "uint64",
70
+ "name": "transferCount",
71
+ "type": "uint64"
72
+ }
73
+ ],
74
+ "name": "TransferCountPMPSyncFailed",
75
+ "type": "event"
76
+ },
77
+ {
78
+ "anonymous": false,
79
+ "inputs": [
80
+ {
81
+ "indexed": true,
82
+ "internalType": "address",
83
+ "name": "coreContract",
84
+ "type": "address"
85
+ },
86
+ {
87
+ "indexed": true,
88
+ "internalType": "uint256",
89
+ "name": "tokenId",
90
+ "type": "uint256"
91
+ },
92
+ {
93
+ "indexed": false,
94
+ "internalType": "uint64",
95
+ "name": "transferCount",
96
+ "type": "uint64"
97
+ },
98
+ {
99
+ "indexed": false,
100
+ "internalType": "address",
101
+ "name": "from",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "indexed": false,
106
+ "internalType": "address",
107
+ "name": "to",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "TransferCounted",
112
+ "type": "event"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "coreContract",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "tokenId",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "isTrackedFromMint",
128
+ "outputs": [
129
+ {
130
+ "internalType": "bool",
131
+ "name": "",
132
+ "type": "bool"
133
+ }
134
+ ],
135
+ "stateMutability": "view",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "address",
142
+ "name": "coreContract",
143
+ "type": "address"
144
+ },
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "tokenId",
148
+ "type": "uint256"
149
+ }
150
+ ],
151
+ "name": "mintTimestamp",
152
+ "outputs": [
153
+ {
154
+ "internalType": "uint256",
155
+ "name": "",
156
+ "type": "uint256"
157
+ }
158
+ ],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "address",
166
+ "name": "coreContract",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "tokenId",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "components": [
176
+ {
177
+ "internalType": "string",
178
+ "name": "key",
179
+ "type": "string"
180
+ },
181
+ {
182
+ "internalType": "string",
183
+ "name": "value",
184
+ "type": "string"
185
+ }
186
+ ],
187
+ "internalType": "struct IWeb3Call.TokenParam[]",
188
+ "name": "tokenParams",
189
+ "type": "tuple[]"
190
+ }
191
+ ],
192
+ "name": "onTokenPMPReadAugmentation",
193
+ "outputs": [
194
+ {
195
+ "components": [
196
+ {
197
+ "internalType": "string",
198
+ "name": "key",
199
+ "type": "string"
200
+ },
201
+ {
202
+ "internalType": "string",
203
+ "name": "value",
204
+ "type": "string"
205
+ }
206
+ ],
207
+ "internalType": "struct IWeb3Call.TokenParam[]",
208
+ "name": "augmentedTokenParams",
209
+ "type": "tuple[]"
210
+ }
211
+ ],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "address",
219
+ "name": "coreContract",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "tokenId",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "internalType": "address",
229
+ "name": "from",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "internalType": "address",
234
+ "name": "to",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "internalType": "address",
239
+ "name": "operator",
240
+ "type": "address"
241
+ }
242
+ ],
243
+ "name": "onTokenTransfer",
244
+ "outputs": [],
245
+ "stateMutability": "nonpayable",
246
+ "type": "function"
247
+ },
248
+ {
249
+ "inputs": [
250
+ {
251
+ "internalType": "address",
252
+ "name": "coreContract",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "tokenId",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "name": "secondsSinceMint",
262
+ "outputs": [
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "",
266
+ "type": "uint256"
267
+ }
268
+ ],
269
+ "stateMutability": "view",
270
+ "type": "function"
271
+ },
272
+ {
273
+ "inputs": [
274
+ {
275
+ "internalType": "bytes4",
276
+ "name": "interfaceId",
277
+ "type": "bytes4"
278
+ }
279
+ ],
280
+ "name": "supportsInterface",
281
+ "outputs": [
282
+ {
283
+ "internalType": "bool",
284
+ "name": "",
285
+ "type": "bool"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "address",
295
+ "name": "coreContract",
296
+ "type": "address"
297
+ },
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "tokenId",
301
+ "type": "uint256"
302
+ }
303
+ ],
304
+ "name": "tokenTransferState",
305
+ "outputs": [
306
+ {
307
+ "components": [
308
+ {
309
+ "internalType": "uint64",
310
+ "name": "mintTimestamp",
311
+ "type": "uint64"
312
+ },
313
+ {
314
+ "internalType": "uint64",
315
+ "name": "transferCount",
316
+ "type": "uint64"
317
+ }
318
+ ],
319
+ "internalType": "struct IMintTimeAndTransferCountHooks.TokenTransferState",
320
+ "name": "state",
321
+ "type": "tuple"
322
+ }
323
+ ],
324
+ "stateMutability": "view",
325
+ "type": "function"
326
+ },
327
+ {
328
+ "inputs": [
329
+ {
330
+ "internalType": "address",
331
+ "name": "coreContract",
332
+ "type": "address"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "tokenId",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "name": "transferCount",
341
+ "outputs": [
342
+ {
343
+ "internalType": "uint256",
344
+ "name": "",
345
+ "type": "uint256"
346
+ }
347
+ ],
348
+ "stateMutability": "view",
349
+ "type": "function"
350
+ }
351
+ ],
352
+ "bytecode": "0x",
353
+ "deployedBytecode": "0x",
354
+ "linkReferences": {},
355
+ "deployedLinkReferences": {}
356
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPMPProjectViewsV0",
4
+ "sourceName": "contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "coreContract",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "projectId",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "getProjectConfig",
20
+ "outputs": [
21
+ {
22
+ "internalType": "string[]",
23
+ "name": "pmpKeys",
24
+ "type": "string[]"
25
+ },
26
+ {
27
+ "internalType": "uint8",
28
+ "name": "configNonce",
29
+ "type": "uint8"
30
+ },
31
+ {
32
+ "internalType": "contract IPMPConfigureHook",
33
+ "name": "tokenPMPPostConfigHook",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "internalType": "contract IPMPAugmentHook",
38
+ "name": "tokenPMPReadAugmentationHook",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "coreContract",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "projectId",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "string",
59
+ "name": "pmpKey",
60
+ "type": "string"
61
+ }
62
+ ],
63
+ "name": "getProjectPMPConfig",
64
+ "outputs": [
65
+ {
66
+ "components": [
67
+ {
68
+ "internalType": "uint8",
69
+ "name": "highestConfigNonce",
70
+ "type": "uint8"
71
+ },
72
+ {
73
+ "internalType": "enum IPMPV0.AuthOption",
74
+ "name": "authOption",
75
+ "type": "uint8"
76
+ },
77
+ {
78
+ "internalType": "enum IPMPV0.ParamType",
79
+ "name": "paramType",
80
+ "type": "uint8"
81
+ },
82
+ {
83
+ "internalType": "uint48",
84
+ "name": "pmpLockedAfterTimestamp",
85
+ "type": "uint48"
86
+ },
87
+ {
88
+ "internalType": "address",
89
+ "name": "authAddress",
90
+ "type": "address"
91
+ },
92
+ {
93
+ "internalType": "uint8",
94
+ "name": "selectOptionsLength",
95
+ "type": "uint8"
96
+ },
97
+ {
98
+ "internalType": "string[]",
99
+ "name": "selectOptions",
100
+ "type": "string[]"
101
+ },
102
+ {
103
+ "internalType": "bytes32",
104
+ "name": "minRange",
105
+ "type": "bytes32"
106
+ },
107
+ {
108
+ "internalType": "bytes32",
109
+ "name": "maxRange",
110
+ "type": "bytes32"
111
+ }
112
+ ],
113
+ "internalType": "struct IPMPV0.PMPConfigView",
114
+ "name": "pmpConfigView",
115
+ "type": "tuple"
116
+ }
117
+ ],
118
+ "stateMutability": "view",
119
+ "type": "function"
120
+ }
121
+ ],
122
+ "bytecode": "0x",
123
+ "deployedBytecode": "0x",
124
+ "linkReferences": {},
125
+ "deployedLinkReferences": {}
126
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ISharedMinterRequiredPMPV0",
4
+ "sourceName": "contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "uint256",
12
+ "name": "projectId",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "address",
18
+ "name": "coreContract",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "string[]",
24
+ "name": "requiredPMPKeys",
25
+ "type": "string[]"
26
+ }
27
+ ],
28
+ "name": "ProjectRequiredPMPKeysUpdated",
29
+ "type": "event"
30
+ }
31
+ ],
32
+ "bytecode": "0x",
33
+ "deployedBytecode": "0x",
34
+ "linkReferences": {},
35
+ "deployedLinkReferences": {}
36
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "RequiredPMPLib",
4
+ "sourceName": "contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol",
5
+ "abi": [],
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220beb8745f4cd739edb736c15bb6ee4530d5feb646d281cd255a898e64f373a3a664736f6c63430008160033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220beb8745f4cd739edb736c15bb6ee4530d5feb646d281cd255a898e64f373a3a664736f6c63430008160033",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }