@artblocks/contracts 1.2.1 → 1.3.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 (71) hide show
  1. package/artifacts/contracts/BytecodeStorageReaders/BytecodeStorageReaderContractV2_Web3Call.sol/BytecodeStorageReaderContractV2_Web3Call.json +201 -0
  2. package/artifacts/contracts/BytecodeStorageReaders/UniversalBytecodeStorageReader.sol/UniversalBytecodeStorageReader.json +2 -2
  3. package/artifacts/contracts/DependencyRegistryV0.sol/DependencyRegistryV0.json +42 -53
  4. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +2 -2
  5. package/artifacts/contracts/generator/GenArt721GeneratorV0.sol/GenArt721GeneratorV0.json +2 -2
  6. package/artifacts/contracts/interfaces/v0.8.x/IDelegateRegistry.sol/IDelegateRegistry.json +820 -0
  7. package/artifacts/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +13 -0
  8. package/artifacts/contracts/interfaces/v0.8.x/IPMPAugmentHook.sol/IPMPAugmentHook.json +83 -0
  9. package/artifacts/contracts/interfaces/v0.8.x/IPMPConfigureHook.sol/IPMPConfigureHook.json +80 -0
  10. package/artifacts/contracts/interfaces/v0.8.x/IPMPV0.sol/IPMPV0.json +402 -0
  11. package/artifacts/contracts/interfaces/v0.8.x/IUniversalBytecodeStorageReader.sol/IUniversalBytecodeStorageReader.json +13 -0
  12. package/artifacts/contracts/interfaces/v0.8.x/IWeb3Call.sol/IWeb3Call.json +47 -0
  13. package/artifacts/contracts/libs/integration-refs/delegation-registry/DelegateRegistry.sol/DelegateRegistry.json +846 -0
  14. package/artifacts/contracts/libs/integration-refs/delegation-registry/libraries/RegistryHashes.sol/RegistryHashes.json +10 -0
  15. package/artifacts/contracts/libs/integration-refs/delegation-registry/libraries/RegistryOps.sol/RegistryOps.json +10 -0
  16. package/artifacts/contracts/libs/integration-refs/delegation-registry/libraries/RegistryStorage.sol/RegistryStorage.json +10 -0
  17. package/artifacts/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol/DependencyRegistryStorageLib.json +2 -2
  18. package/artifacts/contracts/libs/v0.8.x/ImmutableStringArray.sol/ImmutableStringArray.json +10 -0
  19. package/artifacts/contracts/libs/v0.8.x/V3FlexLib.sol/V3FlexLib.json +2 -2
  20. package/artifacts/contracts/mock/ImmutableStringArrayMock.sol/ImmutableStringArrayMock.json +69 -0
  21. package/artifacts/contracts/mock/MockPMPAugmentHook.sol/MockPMPAugmentHook.json +214 -0
  22. package/artifacts/contracts/mock/MockPMPConfigureHook.sol/MockPMPConfigureHook.json +236 -0
  23. package/artifacts/contracts/web3call/PMPV0.sol/PMPV0.json +629 -0
  24. package/artifacts/contracts/web3call/Web3Call.sol/Web3Call.json +66 -0
  25. package/artifacts/contracts/web3call/augment-hooks/AbstractPMPAugmentHook.sol/AbstractPMPAugmentHook.json +83 -0
  26. package/artifacts/contracts/web3call/augment-hooks/InjectBaseGasFee.sol/InjectBaseGasFee.json +83 -0
  27. package/artifacts/contracts/web3call/augment-hooks/InjectChromieSquiggleFloorPrice.sol/IUniswapV2Pair.json +60 -0
  28. package/artifacts/contracts/web3call/augment-hooks/InjectChromieSquiggleFloorPrice.sol/InjectChromieSquiggleFloorPrice.json +107 -0
  29. package/artifacts/contracts/web3call/augment-hooks/InjectIsNounsDaoMember.sol/InjectIsNounsDaoMember.json +96 -0
  30. package/artifacts/contracts/web3call/augment-hooks/InjectIsProjectFullyMinted.sol/InjectIsProjectFullyMinted.json +83 -0
  31. package/artifacts/contracts/web3call/augment-hooks/InjectPolyptychTokenHash.sol/InjectPolyptychTokenHash.json +141 -0
  32. package/artifacts/contracts/web3call/augment-hooks/InjectTokenHashSeed.sol/InjectTokenHashSeed.json +99 -0
  33. package/artifacts/contracts/web3call/augment-hooks/InjectTokenOwner.sol/InjectTokenOwner.json +99 -0
  34. package/artifacts/contracts/web3call/augment-hooks/InjectTokenOwnerEthBalance.sol/InjectTokenOwnerEthBalance.json +83 -0
  35. package/artifacts/contracts/web3call/augment-hooks/InjectUSDCTotalSupply.sol/InjectUSDCTotalSupply.json +107 -0
  36. package/artifacts/contracts/web3call/configure-hooks/abstractPMPConfigureHook.sol/AbstractPMPConfigureHook.json +80 -0
  37. package/contracts/BytecodeStorageReaders/BytecodeStorageReaderContractV2_Web3Call.sol +128 -0
  38. package/contracts/DependencyRegistryV0.sol +67 -28
  39. package/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol +7 -1
  40. package/contracts/generator/GenArt721GeneratorV0.sol +77 -8
  41. package/contracts/interfaces/v0.8.x/IDelegateRegistry.sol +318 -0
  42. package/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol +2 -0
  43. package/contracts/interfaces/v0.8.x/IPMPAugmentHook.sol +31 -0
  44. package/contracts/interfaces/v0.8.x/IPMPConfigureHook.sol +25 -0
  45. package/contracts/interfaces/v0.8.x/IPMPV0.sol +224 -0
  46. package/contracts/interfaces/v0.8.x/IUniversalBytecodeStorageReader.sol +5 -0
  47. package/contracts/interfaces/v0.8.x/IWeb3Call.sol +28 -0
  48. package/contracts/libs/integration-refs/delegation-registry/DelegateRegistry.sol +753 -0
  49. package/contracts/libs/integration-refs/delegation-registry/libraries/RegistryHashes.sol +359 -0
  50. package/contracts/libs/integration-refs/delegation-registry/libraries/RegistryOps.sol +31 -0
  51. package/contracts/libs/integration-refs/delegation-registry/libraries/RegistryStorage.sol +87 -0
  52. package/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol +3 -0
  53. package/contracts/libs/v0.8.x/ImmutableStringArray.sol +289 -0
  54. package/contracts/libs/v0.8.x/V3FlexLib.sol +7 -1
  55. package/contracts/mock/ImmutableStringArrayMock.sol +47 -0
  56. package/contracts/mock/MockPMPAugmentHook.sol +170 -0
  57. package/contracts/mock/MockPMPConfigureHook.sol +78 -0
  58. package/contracts/web3call/PMPV0.sol +1125 -0
  59. package/contracts/web3call/Web3Call.sol +25 -0
  60. package/contracts/web3call/augment-hooks/AbstractPMPAugmentHook.sol +46 -0
  61. package/contracts/web3call/augment-hooks/InjectBaseGasFee.sol +57 -0
  62. package/contracts/web3call/augment-hooks/InjectChromieSquiggleFloorPrice.sol +103 -0
  63. package/contracts/web3call/augment-hooks/InjectIsNounsDaoMember.sol +66 -0
  64. package/contracts/web3call/augment-hooks/InjectIsProjectFullyMinted.sol +73 -0
  65. package/contracts/web3call/augment-hooks/InjectPolyptychTokenHash.sol +88 -0
  66. package/contracts/web3call/augment-hooks/InjectTokenHashSeed.sol +62 -0
  67. package/contracts/web3call/augment-hooks/InjectTokenOwner.sol +60 -0
  68. package/contracts/web3call/augment-hooks/InjectTokenOwnerEthBalance.sol +61 -0
  69. package/contracts/web3call/augment-hooks/InjectUSDCTotalSupply.sol +69 -0
  70. package/contracts/web3call/configure-hooks/abstractPMPConfigureHook.sol +41 -0
  71. package/package.json +5 -5
@@ -0,0 +1,236 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MockPMPConfigureHook",
4
+ "sourceName": "contracts/mock/MockPMPConfigureHook.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "coreContract",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "tokenId",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "components": [
23
+ {
24
+ "internalType": "string",
25
+ "name": "key",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "internalType": "enum IPMPV0.ParamType",
30
+ "name": "configuredParamType",
31
+ "type": "uint8"
32
+ },
33
+ {
34
+ "internalType": "bytes32",
35
+ "name": "configuredValue",
36
+ "type": "bytes32"
37
+ },
38
+ {
39
+ "internalType": "bool",
40
+ "name": "configuringArtistString",
41
+ "type": "bool"
42
+ },
43
+ {
44
+ "internalType": "string",
45
+ "name": "configuredValueString",
46
+ "type": "string"
47
+ }
48
+ ],
49
+ "indexed": false,
50
+ "internalType": "struct IPMPV0.PMPInput",
51
+ "name": "pmpInput",
52
+ "type": "tuple"
53
+ }
54
+ ],
55
+ "name": "TokenPMPConfigured",
56
+ "type": "event"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "lastConfiguredValue",
61
+ "outputs": [
62
+ {
63
+ "internalType": "bytes32",
64
+ "name": "",
65
+ "type": "bytes32"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "lastConfiguredValueString",
74
+ "outputs": [
75
+ {
76
+ "internalType": "string",
77
+ "name": "",
78
+ "type": "string"
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "lastConfiguringArtistString",
87
+ "outputs": [
88
+ {
89
+ "internalType": "bool",
90
+ "name": "",
91
+ "type": "bool"
92
+ }
93
+ ],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "lastCoreContract",
100
+ "outputs": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "",
104
+ "type": "address"
105
+ }
106
+ ],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "lastPmpKey",
113
+ "outputs": [
114
+ {
115
+ "internalType": "string",
116
+ "name": "",
117
+ "type": "string"
118
+ }
119
+ ],
120
+ "stateMutability": "view",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "lastTokenId",
126
+ "outputs": [
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "coreContract",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "uint256",
145
+ "name": "tokenId",
146
+ "type": "uint256"
147
+ },
148
+ {
149
+ "components": [
150
+ {
151
+ "internalType": "string",
152
+ "name": "key",
153
+ "type": "string"
154
+ },
155
+ {
156
+ "internalType": "enum IPMPV0.ParamType",
157
+ "name": "configuredParamType",
158
+ "type": "uint8"
159
+ },
160
+ {
161
+ "internalType": "bytes32",
162
+ "name": "configuredValue",
163
+ "type": "bytes32"
164
+ },
165
+ {
166
+ "internalType": "bool",
167
+ "name": "configuringArtistString",
168
+ "type": "bool"
169
+ },
170
+ {
171
+ "internalType": "string",
172
+ "name": "configuredValueString",
173
+ "type": "string"
174
+ }
175
+ ],
176
+ "internalType": "struct IPMPV0.PMPInput",
177
+ "name": "pmpInput",
178
+ "type": "tuple"
179
+ }
180
+ ],
181
+ "name": "onTokenPMPConfigure",
182
+ "outputs": [],
183
+ "stateMutability": "nonpayable",
184
+ "type": "function"
185
+ },
186
+ {
187
+ "inputs": [
188
+ {
189
+ "internalType": "bool",
190
+ "name": "_shouldRevert",
191
+ "type": "bool"
192
+ }
193
+ ],
194
+ "name": "setShouldRevert",
195
+ "outputs": [],
196
+ "stateMutability": "nonpayable",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "shouldRevert",
202
+ "outputs": [
203
+ {
204
+ "internalType": "bool",
205
+ "name": "",
206
+ "type": "bool"
207
+ }
208
+ ],
209
+ "stateMutability": "view",
210
+ "type": "function"
211
+ },
212
+ {
213
+ "inputs": [
214
+ {
215
+ "internalType": "bytes4",
216
+ "name": "interfaceId",
217
+ "type": "bytes4"
218
+ }
219
+ ],
220
+ "name": "supportsInterface",
221
+ "outputs": [
222
+ {
223
+ "internalType": "bool",
224
+ "name": "",
225
+ "type": "bool"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ }
231
+ ],
232
+ "bytecode": "0x60806040526005805461ff001916905534801561001b57600080fd5b506107da8061002b6000396000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c806301ffc9a7146100935780632af81d3a146100bb5780632fd82f2b146100c8578063507725b7146100dd578063677e7135146101085780636813d7871461011d57806377d8a39d1461014557806387f296641461015c578063d3072d8214610164578063f84ddf0b14610176575b600080fd5b6100a66100a1366004610369565b61017f565b60405190151581526020015b60405180910390f35b6005546100a69060ff1681565b6100d06101b6565b6040516100b291906103e0565b6000546100f0906001600160a01b031681565b6040516001600160a01b0390911681526020016100b2565b61011b6101163660046104d2565b610244565b005b61011b61012b3660046105be565b600580549115156101000261ff0019909216919091179055565b61014e60035481565b6040519081526020016100b2565b6100d061035c565b6005546100a690610100900460ff1681565b61014e60015481565b60006001600160e01b0319821663677e713560e01b14806101b057506301ffc9a760e01b6001600160e01b03198316145b92915050565b600280546101c3906105d9565b80601f01602080910402602001604051908101604052809291908181526020018280546101ef906105d9565b801561023c5780601f106102115761010080835404028352916020019161023c565b820191906000526020600020905b81548152906001019060200180831161021f57829003601f168201915b505050505081565b600080546001600160a01b0319166001600160a01b038516179055600182905580516002906102739082610663565b506040810151600355608081015160049061028e9082610663565b5060608101516005805460ff191691151591909117905560405182906001600160a01b038516907f979de810211e673a83a4a16a5c73e96c3cebadd4648f237c6dcbf8a5ea106ec2906102e2908590610722565b60405180910390a3600554610100900460ff16156103575760405162461bcd60e51b815260206004820152602860248201527f4d6f636b504d50436f6e666967757265486f6f6b3a20496e74656e74696f6e616044820152671b081c995d995c9d60c21b606482015260840160405180910390fd5b505050565b600480546101c3906105d9565b60006020828403121561037b57600080fd5b81356001600160e01b03198116811461039357600080fd5b9392505050565b6000815180845260005b818110156103c0576020818501810151868301820152016103a4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610393602083018461039a565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561042b5761042b6103f3565b60405290565b600082601f83011261044257600080fd5b81356001600160401b038082111561045c5761045c6103f3565b604051601f8301601f19908116603f01168101908282118183101715610484576104846103f3565b8160405283815286602085880101111561049d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803580151581146104cd57600080fd5b919050565b6000806000606084860312156104e757600080fd5b83356001600160a01b03811681146104fe57600080fd5b92506020840135915060408401356001600160401b038082111561052157600080fd5b9085019060a0828803121561053557600080fd5b61053d610409565b82358281111561054c57600080fd5b61055889828601610431565b82525060208301356009811061056d57600080fd5b602082015260408381013590820152610588606084016104bd565b606082015260808301358281111561059f57600080fd5b6105ab89828601610431565b6080830152508093505050509250925092565b6000602082840312156105d057600080fd5b610393826104bd565b600181811c908216806105ed57607f821691505b60208210810361060d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610357576000816000526020600020601f850160051c8101602086101561063c5750805b601f850160051c820191505b8181101561065b57828155600101610648565b505050505050565b81516001600160401b0381111561067c5761067c6103f3565b6106908161068a84546105d9565b84610613565b602080601f8311600181146106c557600084156106ad5750858301515b600019600386901b1c1916600185901b17855561065b565b600085815260208120601f198616915b828110156106f4578886015182559484019460019091019084016106d5565b50858210156107125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602081526000825160a0602084015261073e60c084018261039a565b905060208401516009811061076357634e487b7160e01b600052602160045260246000fd5b80604085015250604084015160608401526060840151151560808401526080840151601f198483030160a085015261079b828261039a565b9594505050505056fea2646970667358221220d30052a59a24f8bc87cd3cff2aaeeaf2e8f11ea30d952f4e727d903bc18061a264736f6c63430008160033",
233
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061008e5760003560e01c806301ffc9a7146100935780632af81d3a146100bb5780632fd82f2b146100c8578063507725b7146100dd578063677e7135146101085780636813d7871461011d57806377d8a39d1461014557806387f296641461015c578063d3072d8214610164578063f84ddf0b14610176575b600080fd5b6100a66100a1366004610369565b61017f565b60405190151581526020015b60405180910390f35b6005546100a69060ff1681565b6100d06101b6565b6040516100b291906103e0565b6000546100f0906001600160a01b031681565b6040516001600160a01b0390911681526020016100b2565b61011b6101163660046104d2565b610244565b005b61011b61012b3660046105be565b600580549115156101000261ff0019909216919091179055565b61014e60035481565b6040519081526020016100b2565b6100d061035c565b6005546100a690610100900460ff1681565b61014e60015481565b60006001600160e01b0319821663677e713560e01b14806101b057506301ffc9a760e01b6001600160e01b03198316145b92915050565b600280546101c3906105d9565b80601f01602080910402602001604051908101604052809291908181526020018280546101ef906105d9565b801561023c5780601f106102115761010080835404028352916020019161023c565b820191906000526020600020905b81548152906001019060200180831161021f57829003601f168201915b505050505081565b600080546001600160a01b0319166001600160a01b038516179055600182905580516002906102739082610663565b506040810151600355608081015160049061028e9082610663565b5060608101516005805460ff191691151591909117905560405182906001600160a01b038516907f979de810211e673a83a4a16a5c73e96c3cebadd4648f237c6dcbf8a5ea106ec2906102e2908590610722565b60405180910390a3600554610100900460ff16156103575760405162461bcd60e51b815260206004820152602860248201527f4d6f636b504d50436f6e666967757265486f6f6b3a20496e74656e74696f6e616044820152671b081c995d995c9d60c21b606482015260840160405180910390fd5b505050565b600480546101c3906105d9565b60006020828403121561037b57600080fd5b81356001600160e01b03198116811461039357600080fd5b9392505050565b6000815180845260005b818110156103c0576020818501810151868301820152016103a4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610393602083018461039a565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561042b5761042b6103f3565b60405290565b600082601f83011261044257600080fd5b81356001600160401b038082111561045c5761045c6103f3565b604051601f8301601f19908116603f01168101908282118183101715610484576104846103f3565b8160405283815286602085880101111561049d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803580151581146104cd57600080fd5b919050565b6000806000606084860312156104e757600080fd5b83356001600160a01b03811681146104fe57600080fd5b92506020840135915060408401356001600160401b038082111561052157600080fd5b9085019060a0828803121561053557600080fd5b61053d610409565b82358281111561054c57600080fd5b61055889828601610431565b82525060208301356009811061056d57600080fd5b602082015260408381013590820152610588606084016104bd565b606082015260808301358281111561059f57600080fd5b6105ab89828601610431565b6080830152508093505050509250925092565b6000602082840312156105d057600080fd5b610393826104bd565b600181811c908216806105ed57607f821691505b60208210810361060d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610357576000816000526020600020601f850160051c8101602086101561063c5750805b601f850160051c820191505b8181101561065b57828155600101610648565b505050505050565b81516001600160401b0381111561067c5761067c6103f3565b6106908161068a84546105d9565b84610613565b602080601f8311600181146106c557600084156106ad5750858301515b600019600386901b1c1916600185901b17855561065b565b600085815260208120601f198616915b828110156106f4578886015182559484019460019091019084016106d5565b50858210156107125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602081526000825160a0602084015261073e60c084018261039a565b905060208401516009811061076357634e487b7160e01b600052602160045260246000fd5b80604085015250604084015160608401526060840151151560808401526080840151601f198483030160a085015261079b828261039a565b9594505050505056fea2646970667358221220d30052a59a24f8bc87cd3cff2aaeeaf2e8f11ea30d952f4e727d903bc18061a264736f6c63430008160033",
234
+ "linkReferences": {},
235
+ "deployedLinkReferences": {}
236
+ }