@artblocks/contracts 1.5.0 → 1.7.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 (53) hide show
  1. package/artifacts/contracts/DependencyRegistryV0.sol/DependencyRegistryV0.json +61 -148
  2. package/artifacts/contracts/generator/GenArt721GeneratorV0.sol/GenArt721GeneratorV0.json +15 -2
  3. package/artifacts/contracts/generator/InPlaceDocument.sol/InPlaceDocument.json +10 -0
  4. package/artifacts/contracts/interfaces/v0.8.x/IAbxfsFileDataReader.sol/IAbxfsFileDataReader.json +109 -0
  5. package/artifacts/contracts/interfaces/v0.8.x/IAbxfsFileStore.sol/IAbxfsFileStore.json +86 -0
  6. package/artifacts/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +41 -27
  7. package/artifacts/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol/IFormPaletteBindingHooks.json +723 -0
  8. package/artifacts/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol/IPMPProjectViewsV0.json +126 -0
  9. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol/ISharedMinterRequiredPMPV0.json +36 -0
  10. package/artifacts/contracts/libs/v0.8.x/AbxfsCanonical.sol/AbxfsCanonical.json +10 -0
  11. package/artifacts/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol/DependencyRegistryStorageLib.json +2 -2
  12. package/artifacts/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol/RequiredPMPLib.json +10 -0
  13. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol/MinterSetPricePMPV0.json +613 -0
  14. package/artifacts/contracts/mock/CallProbeMock.sol/CallProbeMock.json +45 -0
  15. package/artifacts/contracts/mock/GasProbeMock.sol/GasProbeMock.json +45 -0
  16. package/artifacts/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol/GenArt721GeneratorV0ScriptyReferenceMock.json +346 -0
  17. package/artifacts/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol/ILegacyGenArt721CoreV2_PBAB_Flex.json +47 -0
  18. package/artifacts/contracts/mock/InPlaceDocumentHarnessMock.sol/InPlaceDocumentHarnessMock.json +161 -0
  19. package/artifacts/contracts/mock/MockAbxfsFileDataReader.sol/IMockFileStore.json +91 -0
  20. package/artifacts/contracts/mock/MockAbxfsFileDataReader.sol/MockAbxfsFileDataReader.json +183 -0
  21. package/artifacts/contracts/mock/MockAbxfsFileStore.sol/MockAbxfsFileStore.json +204 -0
  22. package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/IMinterPMPPurchase.json +91 -0
  23. package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/MockPMPMinterReentrantConfigureHook.json +180 -0
  24. package/artifacts/contracts/mock/MockPMPReentrantConfigureHook.sol/MockPMPReentrantConfigureHook.json +158 -0
  25. package/artifacts/contracts/mock/RawResponseMock.sol/RawResponseMock.json +61 -0
  26. package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/IMinterPurchaseWithPMPs.json +67 -0
  27. package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/ReentrancyPMPMockShared.json +154 -0
  28. package/artifacts/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol/FormPaletteBindingHooks.json +919 -0
  29. package/contracts/DependencyRegistryV0.sol +136 -226
  30. package/contracts/generator/GenArt721GeneratorV0.sol +541 -280
  31. package/contracts/generator/InPlaceDocument.sol +306 -0
  32. package/contracts/interfaces/v0.8.x/IAbxfsFileDataReader.sol +67 -0
  33. package/contracts/interfaces/v0.8.x/IAbxfsFileStore.sol +40 -0
  34. package/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol +33 -22
  35. package/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol +339 -0
  36. package/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol +59 -0
  37. package/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol +27 -0
  38. package/contracts/libs/v0.8.x/AbxfsCanonical.sol +23 -0
  39. package/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol +10 -4
  40. package/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol +336 -0
  41. package/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol +664 -0
  42. package/contracts/mock/CallProbeMock.sol +20 -0
  43. package/contracts/mock/GasProbeMock.sol +21 -0
  44. package/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol +1316 -0
  45. package/contracts/mock/InPlaceDocumentHarnessMock.sol +189 -0
  46. package/contracts/mock/MockAbxfsFileDataReader.sol +134 -0
  47. package/contracts/mock/MockAbxfsFileStore.sol +125 -0
  48. package/contracts/mock/MockPMPMinterReentrantConfigureHook.sol +85 -0
  49. package/contracts/mock/MockPMPReentrantConfigureHook.sol +59 -0
  50. package/contracts/mock/RawResponseMock.sol +58 -0
  51. package/contracts/mock/ReentrancyPMPMockShared.sol +81 -0
  52. package/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol +1392 -0
  53. package/package.json +1 -1
@@ -0,0 +1,204 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MockAbxfsFileStore",
4
+ "sourceName": "contracts/mock/MockAbxfsFileStore.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "bytes32",
10
+ "name": "cid",
11
+ "type": "bytes32"
12
+ }
13
+ ],
14
+ "name": "FileNotFound",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "offset",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "size",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "name": "OffsetOutOfRange",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "bytes32",
37
+ "name": "cid",
38
+ "type": "bytes32"
39
+ }
40
+ ],
41
+ "name": "fileExists",
42
+ "outputs": [
43
+ {
44
+ "internalType": "bool",
45
+ "name": "",
46
+ "type": "bool"
47
+ }
48
+ ],
49
+ "stateMutability": "view",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [
54
+ {
55
+ "internalType": "bytes32",
56
+ "name": "cid",
57
+ "type": "bytes32"
58
+ }
59
+ ],
60
+ "name": "getFileInfo",
61
+ "outputs": [
62
+ {
63
+ "components": [
64
+ {
65
+ "internalType": "bytes32",
66
+ "name": "root",
67
+ "type": "bytes32"
68
+ },
69
+ {
70
+ "internalType": "uint8",
71
+ "name": "rootLevel",
72
+ "type": "uint8"
73
+ },
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "chunkCount",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "size",
82
+ "type": "uint256"
83
+ },
84
+ {
85
+ "internalType": "string",
86
+ "name": "mimeType",
87
+ "type": "string"
88
+ },
89
+ {
90
+ "internalType": "bytes32",
91
+ "name": "codec",
92
+ "type": "bytes32"
93
+ },
94
+ {
95
+ "internalType": "bytes32",
96
+ "name": "outputHash",
97
+ "type": "bytes32"
98
+ }
99
+ ],
100
+ "internalType": "struct IAbxfsFileStore.FileInfo",
101
+ "name": "info",
102
+ "type": "tuple"
103
+ }
104
+ ],
105
+ "stateMutability": "view",
106
+ "type": "function"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "bytes32",
112
+ "name": "cid",
113
+ "type": "bytes32"
114
+ },
115
+ {
116
+ "internalType": "uint256",
117
+ "name": "offset",
118
+ "type": "uint256"
119
+ }
120
+ ],
121
+ "name": "locateByte",
122
+ "outputs": [
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "index",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "chunkStart",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "internalType": "bytes32",
135
+ "name": "chunkId",
136
+ "type": "bytes32"
137
+ },
138
+ {
139
+ "internalType": "uint256",
140
+ "name": "chunkSize",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "stateMutability": "view",
145
+ "type": "function"
146
+ },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "bytes32",
151
+ "name": "cid",
152
+ "type": "bytes32"
153
+ },
154
+ {
155
+ "internalType": "uint256",
156
+ "name": "index",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "name": "readChunk",
161
+ "outputs": [
162
+ {
163
+ "internalType": "bytes",
164
+ "name": "data",
165
+ "type": "bytes"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "bytes32",
175
+ "name": "cid",
176
+ "type": "bytes32"
177
+ },
178
+ {
179
+ "internalType": "bytes32",
180
+ "name": "codec",
181
+ "type": "bytes32"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "size",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "bytes[]",
190
+ "name": "chunks",
191
+ "type": "bytes[]"
192
+ }
193
+ ],
194
+ "name": "setFile",
195
+ "outputs": [],
196
+ "stateMutability": "nonpayable",
197
+ "type": "function"
198
+ }
199
+ ],
200
+ "bytecode": "0x608060405234801561001057600080fd5b5061089e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806307fb991b1461005c5780630cec5f62146100945780634da254f4146100c757806352f7347b146100dc578063c203cb0c146100fc575b600080fd5b61006f61006a3660046105c2565b61011c565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b6100b76100a23660046105e4565b60009081526020819052604090205460ff1690565b604051901515815260200161008b565b6100da6100d53660046105fd565b610226565b005b6100ef6100ea3660046105e4565b61030d565b60405161008b91906106dc565b61010f61010a3660046105c2565b610427565b60405161008b9190610744565b600080600080600061012d876104c0565b90505b60038101548510156101f55760018160030186815481106101535761015361075e565b60009182526020909120015461017391906001600160a01b03163b61078a565b915061017f82856107a3565b8610156101de57848482600301878154811061019d5761019d61075e565b60009182526020918290200154604080516001600160a01b0390921682840152805180830384018152918101905280519101209196509450925061021d9050565b6101e882856107a3565b6001909501949350610130565b60405163b6a7f69b60e01b815260048101879052602481018590526044015b60405180910390fd5b92959194509250565b6000858152602081905260408120805460ff1916600190811782558101869055600281018590559061025c906003830190610588565b60005b8281101561030457816003016102cc8585848181106102805761028061075e565b905060200281019061029291906107b6565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506104f892505050565b815460018082018455600093845260209093200180546001600160a01b0319166001600160a01b03929092169190911790550161025f565b50505050505050565b6040805160e0810182526000808252602082018190529181018290526060808201839052608082015260a0810182905260c081018290529061034e836104c0565b90508260405160200161036391815260200190565b60408051601f1981840301815291815281516020928301208452600383015484820152600283015460608501528051808201909152600f81526e1d195e1d0bda985d985cd8dc9a5c1d608a1b918101919091526080830152600181015460a083018190521561041957826040516020016103fe9181526040602082018190526007908201526618dbdb9d195b9d60ca1b606082015260800190565b6040516020818303038152906040528051906020012061041c565b60005b60c083015250919050565b60606000610434846104c0565b60030183815481106104485761044861075e565b6000918252602090912001546001600160a01b0316905061046b6001823b61078a565b6001600160401b0381111561048257610482610803565b6040519080825280601f01601f1916602001820160405280156104ac576020820181803683370190505b5091508151600160208401833c5092915050565b6000818152602081905260409020805460ff166104f35760405163a4b13c7360e01b815260048101839052602401610214565b919050565b6000808251600161050991906107a3565b8360405160200161051b929190610819565b60405160208183030381529060405290508051602082016000f091506001600160a01b0382166105825760405162461bcd60e51b815260206004820152601260248201527118da1d5b9ac81ddc9a5d194819985a5b195960721b6044820152606401610214565b50919050565b50805460008255906000526020600020908101906105a691906105a9565b50565b5b808211156105be57600081556001016105aa565b5090565b600080604083850312156105d557600080fd5b50508035926020909101359150565b6000602082840312156105f657600080fd5b5035919050565b60008060008060006080868803121561061557600080fd5b85359450602086013593506040860135925060608601356001600160401b038082111561064157600080fd5b818801915088601f83011261065557600080fd5b81358181111561066457600080fd5b8960208260051b850101111561067957600080fd5b9699959850939650602001949392505050565b60005b838110156106a757818101518382015260200161068f565b50506000910152565b600081518084526106c881602086016020860161068c565b601f01601f19169290920160200192915050565b602081528151602082015260ff602083015116604082015260408201516060820152606082015160808201526000608083015160e060a08401526107246101008401826106b0565b905060a084015160c084015260c084015160e08401528091505092915050565b60208152600061075760208301846106b0565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561079d5761079d610774565b92915050565b8082018082111561079d5761079d610774565b6000808335601e198436030181126107cd57600080fd5b8301803591506001600160401b038211156107e757600080fd5b6020019150368190038213156107fc57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b606160f81b815260f083901b6001600160f01b03191660018201526680600a3d393df360c81b6003820152815160009061085a81600b85016020870161068c565b91909101600b01939250505056fea2646970667358221220043ec5748510137662234d5e11fa8a706a2b6729093df3db18ed118af4d2979864736f6c63430008160033",
201
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806307fb991b1461005c5780630cec5f62146100945780634da254f4146100c757806352f7347b146100dc578063c203cb0c146100fc575b600080fd5b61006f61006a3660046105c2565b61011c565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b6100b76100a23660046105e4565b60009081526020819052604090205460ff1690565b604051901515815260200161008b565b6100da6100d53660046105fd565b610226565b005b6100ef6100ea3660046105e4565b61030d565b60405161008b91906106dc565b61010f61010a3660046105c2565b610427565b60405161008b9190610744565b600080600080600061012d876104c0565b90505b60038101548510156101f55760018160030186815481106101535761015361075e565b60009182526020909120015461017391906001600160a01b03163b61078a565b915061017f82856107a3565b8610156101de57848482600301878154811061019d5761019d61075e565b60009182526020918290200154604080516001600160a01b0390921682840152805180830384018152918101905280519101209196509450925061021d9050565b6101e882856107a3565b6001909501949350610130565b60405163b6a7f69b60e01b815260048101879052602481018590526044015b60405180910390fd5b92959194509250565b6000858152602081905260408120805460ff1916600190811782558101869055600281018590559061025c906003830190610588565b60005b8281101561030457816003016102cc8585848181106102805761028061075e565b905060200281019061029291906107b6565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506104f892505050565b815460018082018455600093845260209093200180546001600160a01b0319166001600160a01b03929092169190911790550161025f565b50505050505050565b6040805160e0810182526000808252602082018190529181018290526060808201839052608082015260a0810182905260c081018290529061034e836104c0565b90508260405160200161036391815260200190565b60408051601f1981840301815291815281516020928301208452600383015484820152600283015460608501528051808201909152600f81526e1d195e1d0bda985d985cd8dc9a5c1d608a1b918101919091526080830152600181015460a083018190521561041957826040516020016103fe9181526040602082018190526007908201526618dbdb9d195b9d60ca1b606082015260800190565b6040516020818303038152906040528051906020012061041c565b60005b60c083015250919050565b60606000610434846104c0565b60030183815481106104485761044861075e565b6000918252602090912001546001600160a01b0316905061046b6001823b61078a565b6001600160401b0381111561048257610482610803565b6040519080825280601f01601f1916602001820160405280156104ac576020820181803683370190505b5091508151600160208401833c5092915050565b6000818152602081905260409020805460ff166104f35760405163a4b13c7360e01b815260048101839052602401610214565b919050565b6000808251600161050991906107a3565b8360405160200161051b929190610819565b60405160208183030381529060405290508051602082016000f091506001600160a01b0382166105825760405162461bcd60e51b815260206004820152601260248201527118da1d5b9ac81ddc9a5d194819985a5b195960721b6044820152606401610214565b50919050565b50805460008255906000526020600020908101906105a691906105a9565b50565b5b808211156105be57600081556001016105aa565b5090565b600080604083850312156105d557600080fd5b50508035926020909101359150565b6000602082840312156105f657600080fd5b5035919050565b60008060008060006080868803121561061557600080fd5b85359450602086013593506040860135925060608601356001600160401b038082111561064157600080fd5b818801915088601f83011261065557600080fd5b81358181111561066457600080fd5b8960208260051b850101111561067957600080fd5b9699959850939650602001949392505050565b60005b838110156106a757818101518382015260200161068f565b50506000910152565b600081518084526106c881602086016020860161068c565b601f01601f19169290920160200192915050565b602081528151602082015260ff602083015116604082015260408201516060820152606082015160808201526000608083015160e060a08401526107246101008401826106b0565b905060a084015160c084015260c084015160e08401528091505092915050565b60208152600061075760208301846106b0565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561079d5761079d610774565b92915050565b8082018082111561079d5761079d610774565b6000808335601e198436030181126107cd57600080fd5b8301803591506001600160401b038211156107e757600080fd5b6020019150368190038213156107fc57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b606160f81b815260f083901b6001600160f01b03191660018201526680600a3d393df360c81b6003820152815160009061085a81600b85016020870161068c565b91909101600b01939250505056fea2646970667358221220043ec5748510137662234d5e11fa8a706a2b6729093df3db18ed118af4d2979864736f6c63430008160033",
202
+ "linkReferences": {},
203
+ "deployedLinkReferences": {}
204
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMinterPMPPurchase",
4
+ "sourceName": "contracts/mock/MockPMPMinterReentrantConfigureHook.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "projectId",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "coreContract",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "name": "purchase",
20
+ "outputs": [
21
+ {
22
+ "internalType": "uint256",
23
+ "name": "tokenId",
24
+ "type": "uint256"
25
+ }
26
+ ],
27
+ "stateMutability": "payable",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "projectId",
35
+ "type": "uint256"
36
+ },
37
+ {
38
+ "internalType": "address",
39
+ "name": "coreContract",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "components": [
44
+ {
45
+ "internalType": "string",
46
+ "name": "key",
47
+ "type": "string"
48
+ },
49
+ {
50
+ "internalType": "enum IPMPV0.ParamType",
51
+ "name": "configuredParamType",
52
+ "type": "uint8"
53
+ },
54
+ {
55
+ "internalType": "bytes32",
56
+ "name": "configuredValue",
57
+ "type": "bytes32"
58
+ },
59
+ {
60
+ "internalType": "bool",
61
+ "name": "configuringArtistString",
62
+ "type": "bool"
63
+ },
64
+ {
65
+ "internalType": "string",
66
+ "name": "configuredValueString",
67
+ "type": "string"
68
+ }
69
+ ],
70
+ "internalType": "struct IPMPV0.PMPInput[]",
71
+ "name": "pmpInputs",
72
+ "type": "tuple[]"
73
+ }
74
+ ],
75
+ "name": "purchaseWithPMPs",
76
+ "outputs": [
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "tokenId",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "stateMutability": "payable",
84
+ "type": "function"
85
+ }
86
+ ],
87
+ "bytecode": "0x",
88
+ "deployedBytecode": "0x",
89
+ "linkReferences": {},
90
+ "deployedLinkReferences": {}
91
+ }
@@ -0,0 +1,180 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MockPMPMinterReentrantConfigureHook",
4
+ "sourceName": "contracts/mock/MockPMPMinterReentrantConfigureHook.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "minter_",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "projectId_",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "coreContract_",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "pricePerTokenInWei_",
26
+ "type": "uint256"
27
+ },
28
+ {
29
+ "internalType": "bool",
30
+ "name": "reenterWithPMPs_",
31
+ "type": "bool"
32
+ }
33
+ ],
34
+ "stateMutability": "nonpayable",
35
+ "type": "constructor"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "coreContract",
40
+ "outputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "",
44
+ "type": "address"
45
+ }
46
+ ],
47
+ "stateMutability": "view",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [],
52
+ "name": "minter",
53
+ "outputs": [
54
+ {
55
+ "internalType": "address",
56
+ "name": "",
57
+ "type": "address"
58
+ }
59
+ ],
60
+ "stateMutability": "view",
61
+ "type": "function"
62
+ },
63
+ {
64
+ "inputs": [
65
+ {
66
+ "internalType": "address",
67
+ "name": "",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "internalType": "uint256",
72
+ "name": "",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "components": [
77
+ {
78
+ "internalType": "string",
79
+ "name": "key",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "internalType": "enum IPMPV0.ParamType",
84
+ "name": "configuredParamType",
85
+ "type": "uint8"
86
+ },
87
+ {
88
+ "internalType": "bytes32",
89
+ "name": "configuredValue",
90
+ "type": "bytes32"
91
+ },
92
+ {
93
+ "internalType": "bool",
94
+ "name": "configuringArtistString",
95
+ "type": "bool"
96
+ },
97
+ {
98
+ "internalType": "string",
99
+ "name": "configuredValueString",
100
+ "type": "string"
101
+ }
102
+ ],
103
+ "internalType": "struct IPMPV0.PMPInput",
104
+ "name": "pmpInput",
105
+ "type": "tuple"
106
+ }
107
+ ],
108
+ "name": "onTokenPMPConfigure",
109
+ "outputs": [],
110
+ "stateMutability": "nonpayable",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "pricePerTokenInWei",
116
+ "outputs": [
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "stateMutability": "view",
124
+ "type": "function"
125
+ },
126
+ {
127
+ "inputs": [],
128
+ "name": "projectId",
129
+ "outputs": [
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "stateMutability": "view",
137
+ "type": "function"
138
+ },
139
+ {
140
+ "inputs": [],
141
+ "name": "reenterWithPMPs",
142
+ "outputs": [
143
+ {
144
+ "internalType": "bool",
145
+ "name": "",
146
+ "type": "bool"
147
+ }
148
+ ],
149
+ "stateMutability": "view",
150
+ "type": "function"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "bytes4",
156
+ "name": "interfaceId",
157
+ "type": "bytes4"
158
+ }
159
+ ],
160
+ "name": "supportsInterface",
161
+ "outputs": [
162
+ {
163
+ "internalType": "bool",
164
+ "name": "",
165
+ "type": "bool"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "stateMutability": "payable",
173
+ "type": "receive"
174
+ }
175
+ ],
176
+ "bytecode": "0x61012060405234801561001157600080fd5b506040516109c43803806109c483398101604081905261003091610076565b6001600160a01b0394851660805260a093909352921660c05260e0919091521515610100526100d6565b80516001600160a01b038116811461007157600080fd5b919050565b600080600080600060a0868803121561008e57600080fd5b6100978661005a565b9450602086015193506100ac6040870161005a565b925060608601519150608086015180151581146100c857600080fd5b809150509295509295909350565b60805160a05160c05160e0516101005161086c61015860003960008181610167015261022a01526000818161019b01528181610303015261045b0152600081816101cf01528181610345015261040a0152600081816101030152818161032401526103dc01526000818160b7015281816102d40152610432015261086c6000f3fe6080604052600436106100645760003560e01c806301ffc9a71461007057806307546172146100a55780633fafa127146100f1578063677e713514610133578063b5c2934714610155578063df520efc14610189578063e80db5db146101bd57600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b3660046104c7565b6101f1565b60405190151581526020015b60405180910390f35b3480156100b157600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161009c565b3480156100fd57600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161009c565b34801561013f57600080fd5b5061015361014e3660046104f8565b610228565b005b34801561016157600080fd5b506100907f000000000000000000000000000000000000000000000000000000000000000081565b34801561019557600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c957600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663677e713560e01b148061022257506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f0000000000000000000000000000000000000000000000000000000000000000156103cd57604080516001808252818301909252600091816020015b6102966040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102655790505090506102b482610642565b816000815181106102c7576102c76106e3565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a569e60d7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000856040518563ffffffff1660e01b81526004016103839392919061073f565b60206040518083038185885af11580156103a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103c6919061081d565b5050505050565b60405163ae77c23760e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063ae77c237907f00000000000000000000000000000000000000000000000000000000000000009060440160206040518083038185885af115801561049c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104c1919061081d565b50505050565b6000602082840312156104d957600080fd5b81356001600160e01b0319811681146104f157600080fd5b9392505050565b60008060006060848603121561050d57600080fd5b83356001600160a01b038116811461052457600080fd5b92506020840135915060408401356001600160401b0381111561054657600080fd5b840160a0818703121561055857600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561059b5761059b610563565b60405290565b600082601f8301126105b257600080fd5b81356001600160401b03808211156105cc576105cc610563565b604051601f8301601f19908116603f011681019082821181831017156105f4576105f4610563565b8160405283815286602085880101111561060d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b8035801515811461063d57600080fd5b919050565b600060a0823603121561065457600080fd5b61065c610579565b82356001600160401b038082111561067357600080fd5b61067f368387016105a1565b8352602085013591506009821061069557600080fd5b816020840152604085013560408401526106b16060860161062d565b606084015260808501359150808211156106ca57600080fd5b506106d7368286016105a1565b60808301525092915050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b8181101561071f57602081850181015186830182015201610703565b506000602082860101526020601f19601f83011685010191505092915050565b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561080a57607f198c8503018652825160a081518187526107a7828801826106f9565b91505089820151600981106107ca57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906107f681836106f9565b978a01979550505091870191600101610781565b50919d9c50505050505050505050505050565b60006020828403121561082f57600080fd5b505191905056fea2646970667358221220200f61ea257a7a30909603af3ec8e8a122c4392b4b8f679d9f0b764903b793c864736f6c63430008160033",
177
+ "deployedBytecode": "0x6080604052600436106100645760003560e01c806301ffc9a71461007057806307546172146100a55780633fafa127146100f1578063677e713514610133578063b5c2934714610155578063df520efc14610189578063e80db5db146101bd57600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b3660046104c7565b6101f1565b60405190151581526020015b60405180910390f35b3480156100b157600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161009c565b3480156100fd57600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161009c565b34801561013f57600080fd5b5061015361014e3660046104f8565b610228565b005b34801561016157600080fd5b506100907f000000000000000000000000000000000000000000000000000000000000000081565b34801561019557600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c957600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663677e713560e01b148061022257506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f0000000000000000000000000000000000000000000000000000000000000000156103cd57604080516001808252818301909252600091816020015b6102966040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102655790505090506102b482610642565b816000815181106102c7576102c76106e3565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a569e60d7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000856040518563ffffffff1660e01b81526004016103839392919061073f565b60206040518083038185885af11580156103a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103c6919061081d565b5050505050565b60405163ae77c23760e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063ae77c237907f00000000000000000000000000000000000000000000000000000000000000009060440160206040518083038185885af115801561049c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104c1919061081d565b50505050565b6000602082840312156104d957600080fd5b81356001600160e01b0319811681146104f157600080fd5b9392505050565b60008060006060848603121561050d57600080fd5b83356001600160a01b038116811461052457600080fd5b92506020840135915060408401356001600160401b0381111561054657600080fd5b840160a0818703121561055857600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561059b5761059b610563565b60405290565b600082601f8301126105b257600080fd5b81356001600160401b03808211156105cc576105cc610563565b604051601f8301601f19908116603f011681019082821181831017156105f4576105f4610563565b8160405283815286602085880101111561060d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b8035801515811461063d57600080fd5b919050565b600060a0823603121561065457600080fd5b61065c610579565b82356001600160401b038082111561067357600080fd5b61067f368387016105a1565b8352602085013591506009821061069557600080fd5b816020840152604085013560408401526106b16060860161062d565b606084015260808501359150808211156106ca57600080fd5b506106d7368286016105a1565b60808301525092915050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b8181101561071f57602081850181015186830182015201610703565b506000602082860101526020601f19601f83011685010191505092915050565b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561080a57607f198c8503018652825160a081518187526107a7828801826106f9565b91505089820151600981106107ca57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906107f681836106f9565b978a01979550505091870191600101610781565b50919d9c50505050505050505050505050565b60006020828403121561082f57600080fd5b505191905056fea2646970667358221220200f61ea257a7a30909603af3ec8e8a122c4392b4b8f679d9f0b764903b793c864736f6c63430008160033",
178
+ "linkReferences": {},
179
+ "deployedLinkReferences": {}
180
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MockPMPReentrantConfigureHook",
4
+ "sourceName": "contracts/mock/MockPMPReentrantConfigureHook.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "pmp_",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "targetCoreContract_",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "targetTokenId_",
21
+ "type": "uint256"
22
+ },
23
+ {
24
+ "internalType": "string",
25
+ "name": "targetKey_",
26
+ "type": "string"
27
+ }
28
+ ],
29
+ "stateMutability": "nonpayable",
30
+ "type": "constructor"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "components": [
46
+ {
47
+ "internalType": "string",
48
+ "name": "key",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "internalType": "enum IPMPV0.ParamType",
53
+ "name": "configuredParamType",
54
+ "type": "uint8"
55
+ },
56
+ {
57
+ "internalType": "bytes32",
58
+ "name": "configuredValue",
59
+ "type": "bytes32"
60
+ },
61
+ {
62
+ "internalType": "bool",
63
+ "name": "configuringArtistString",
64
+ "type": "bool"
65
+ },
66
+ {
67
+ "internalType": "string",
68
+ "name": "configuredValueString",
69
+ "type": "string"
70
+ }
71
+ ],
72
+ "internalType": "struct IPMPV0.PMPInput",
73
+ "name": "",
74
+ "type": "tuple"
75
+ }
76
+ ],
77
+ "name": "onTokenPMPConfigure",
78
+ "outputs": [],
79
+ "stateMutability": "nonpayable",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "pmp",
85
+ "outputs": [
86
+ {
87
+ "internalType": "contract IPMPV0",
88
+ "name": "",
89
+ "type": "address"
90
+ }
91
+ ],
92
+ "stateMutability": "view",
93
+ "type": "function"
94
+ },
95
+ {
96
+ "inputs": [
97
+ {
98
+ "internalType": "bytes4",
99
+ "name": "interfaceId",
100
+ "type": "bytes4"
101
+ }
102
+ ],
103
+ "name": "supportsInterface",
104
+ "outputs": [
105
+ {
106
+ "internalType": "bool",
107
+ "name": "",
108
+ "type": "bool"
109
+ }
110
+ ],
111
+ "stateMutability": "view",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "targetCoreContract",
117
+ "outputs": [
118
+ {
119
+ "internalType": "address",
120
+ "name": "",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "stateMutability": "view",
125
+ "type": "function"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "targetKey",
130
+ "outputs": [
131
+ {
132
+ "internalType": "string",
133
+ "name": "",
134
+ "type": "string"
135
+ }
136
+ ],
137
+ "stateMutability": "view",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "targetTokenId",
143
+ "outputs": [
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "",
147
+ "type": "uint256"
148
+ }
149
+ ],
150
+ "stateMutability": "view",
151
+ "type": "function"
152
+ }
153
+ ],
154
+ "bytecode": "0x60e06040523480156200001157600080fd5b50604051620009b8380380620009b8833981016040819052620000349162000098565b6001600160a01b03808516608052831660a05260c082905260006200005a82826200022d565b5050505050620002f9565b80516001600160a01b03811681146200007d57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215620000af57600080fd5b620000ba8562000065565b93506020620000cb81870162000065565b6040870151606088015191955093506001600160401b0380821115620000f057600080fd5b818801915088601f8301126200010557600080fd5b8151818111156200011a576200011a62000082565b604051601f8201601f19908116603f0116810190838211818310171562000145576200014562000082565b816040528281528b868487010111156200015e57600080fd5b600093505b8284101562000182578484018601518185018701529285019262000163565b600086848301015280965050505050505092959194509250565b600181811c90821680620001b157607f821691505b602082108103620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000228576000816000526020600020601f850160051c81016020861015620002035750805b601f850160051c820191505b8181101562000224578281556001016200020f565b5050505b505050565b81516001600160401b0381111562000249576200024962000082565b62000261816200025a84546200019c565b84620001d8565b602080601f831160018114620002995760008415620002805750858301515b600019600386901b1c1916600185901b17855562000224565b600085815260208120601f198616915b82811015620002ca57888601518255948401946001909101908401620002a9565b5085821015620002e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05161067c6200033c60003960008181610124015261033401526000818160e8015261031201526000818160a901526102e5015261067c6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806301ffc9a714610067578063677e71351461008f578063713f3647146100a457806385c038a5146100e3578063a73e8e361461010a578063b49673941461011f575b600080fd5b61007a610075366004610424565b610154565b60405190151581526020015b60405180910390f35b6100a261009d366004610455565b61018b565b005b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610086565b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b610112610396565b6040516100869190610506565b6101467f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610086565b60006001600160e01b0319821663677e713560e01b148061018557506301ffc9a760e01b6001600160e01b03198316145b92915050565b604080516001808252818301909252600091816020015b6101d36040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816101a25790505090506040518060a001604052806000805461020090610519565b80601f016020809104026020016040519081016040528092919081815260200182805461022c90610519565b80156102795780601f1061024e57610100808354040283529160200191610279565b820191906000526020600020905b81548152906001019060200180831161025c57829003601f168201915b5050509183525050602001600381526020016000801b815260200160001515815260200160405180602001604052806000815250815250816000815181106102c3576102c3610553565b602090810291909101015260405163037c31bd60e51b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636f8637a09061035e907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908690600401610569565b600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b5050505050505050565b600080546103a390610519565b80601f01602080910402602001604051908101604052809291908181526020018280546103cf90610519565b801561041c5780601f106103f15761010080835404028352916020019161041c565b820191906000526020600020905b8154815290600101906020018083116103ff57829003601f168201915b505050505081565b60006020828403121561043657600080fd5b81356001600160e01b03198116811461044e57600080fd5b9392505050565b60008060006060848603121561046a57600080fd5b83356001600160a01b038116811461048157600080fd5b92506020840135915060408401356001600160401b038111156104a357600080fd5b840160a081870312156104b557600080fd5b809150509250925092565b6000815180845260005b818110156104e6576020818501810151868301820152016104ca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061044e60208301846104c0565b600181811c9082168061052d57607f821691505b60208210810361054d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03841681526020808201849052606060408084018290528451848301819052600093608092909183870190600581901b8801850189850188805b8481101561063357607f198c8503018652825160a081518187526105d0828801826104c0565b91505089820151600981106105f357634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b8701529061061f81836104c0565b978a019795505050918701916001016105aa565b50919d9c5050505050505050505050505056fea2646970667358221220135f769dace5d6bb5351da1ec8090052b16f36af411e7c964946aa7b5f9d539864736f6c63430008160033",
155
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c806301ffc9a714610067578063677e71351461008f578063713f3647146100a457806385c038a5146100e3578063a73e8e361461010a578063b49673941461011f575b600080fd5b61007a610075366004610424565b610154565b60405190151581526020015b60405180910390f35b6100a261009d366004610455565b61018b565b005b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610086565b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b610112610396565b6040516100869190610506565b6101467f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610086565b60006001600160e01b0319821663677e713560e01b148061018557506301ffc9a760e01b6001600160e01b03198316145b92915050565b604080516001808252818301909252600091816020015b6101d36040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816101a25790505090506040518060a001604052806000805461020090610519565b80601f016020809104026020016040519081016040528092919081815260200182805461022c90610519565b80156102795780601f1061024e57610100808354040283529160200191610279565b820191906000526020600020905b81548152906001019060200180831161025c57829003601f168201915b5050509183525050602001600381526020016000801b815260200160001515815260200160405180602001604052806000815250815250816000815181106102c3576102c3610553565b602090810291909101015260405163037c31bd60e51b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636f8637a09061035e907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908690600401610569565b600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b5050505050505050565b600080546103a390610519565b80601f01602080910402602001604051908101604052809291908181526020018280546103cf90610519565b801561041c5780601f106103f15761010080835404028352916020019161041c565b820191906000526020600020905b8154815290600101906020018083116103ff57829003601f168201915b505050505081565b60006020828403121561043657600080fd5b81356001600160e01b03198116811461044e57600080fd5b9392505050565b60008060006060848603121561046a57600080fd5b83356001600160a01b038116811461048157600080fd5b92506020840135915060408401356001600160401b038111156104a357600080fd5b840160a081870312156104b557600080fd5b809150509250925092565b6000815180845260005b818110156104e6576020818501810151868301820152016104ca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061044e60208301846104c0565b600181811c9082168061052d57607f821691505b60208210810361054d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03841681526020808201849052606060408084018290528451848301819052600093608092909183870190600581901b8801850189850188805b8481101561063357607f198c8503018652825160a081518187526105d0828801826104c0565b91505089820151600981106105f357634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b8701529061061f81836104c0565b978a019795505050918701916001016105aa565b50919d9c5050505050505050505050505056fea2646970667358221220135f769dace5d6bb5351da1ec8090052b16f36af411e7c964946aa7b5f9d539864736f6c63430008160033",
156
+ "linkReferences": {},
157
+ "deployedLinkReferences": {}
158
+ }