@artblocks/contracts 1.1.0 → 1.2.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 (257) hide show
  1. package/README.md +75 -7
  2. package/artifacts/contracts/AdminACLV0.sol/AdminACLV0.json +2 -2
  3. package/artifacts/contracts/AdminACLV1.sol/AdminACLV1.json +2 -2
  4. package/artifacts/contracts/DependencyRegistryV0.sol/DependencyRegistryV0.json +273 -155
  5. package/artifacts/contracts/archive/GenArt721CoreV3.sol/GenArt721CoreV3.json +2047 -0
  6. package/artifacts/contracts/archive/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +2021 -0
  7. package/artifacts/contracts/{minter-suite → archive/minter-suite}/Minters/MinterBase_v0_1_1.sol/MinterBase.json +1 -1
  8. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV2.sol/MinterDAExpV2.json +2 -2
  9. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV3.sol/MinterDAExpV3.json +2 -2
  10. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDAExp}/MinterDAExpV4.sol/MinterDAExpV4.json +3 -3
  11. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol/MinterDAExpSettlementV0.json +2 -2
  12. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol/MinterDAExpSettlementV1.json +2 -2
  13. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDAExpSettlement}/MinterDAExpSettlementV2.sol/MinterDAExpSettlementV2.json +3 -3
  14. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV2.sol/MinterDALinV2.json +2 -2
  15. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV3.sol/MinterDALinV3.json +2 -2
  16. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDALin}/MinterDALinV4.sol/MinterDALinV4.json +3 -3
  17. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV1.sol/MinterHolderV1.json +2 -2
  18. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV2.sol/MinterHolderV2.json +2 -2
  19. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV3.sol/MinterHolderV3.json +2 -2
  20. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterHolder}/MinterHolderV4.sol/MinterHolderV4.json +3 -3
  21. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV1.sol/MinterMerkleV1.json +2 -2
  22. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV2.sol/MinterMerkleV2.json +2 -2
  23. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV3.sol/MinterMerkleV3.json +2 -2
  24. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV4.sol/MinterMerkleV4.json +2 -2
  25. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterMerkle}/MinterMerkleV5.sol/MinterMerkleV5.json +3 -3
  26. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterPolyptych}/MinterPolyptychV0.sol/IGenArt721CoreContractV3WithRandomizer.json +31 -63
  27. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterPolyptych}/MinterPolyptychV0.sol/MinterPolyptychV0.json +3 -3
  28. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterSEA}/MinterSEAV0.sol/MinterSEAV0.json +3 -3
  29. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol/MinterSetPriceV2.json +2 -2
  30. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol/MinterSetPriceV3.json +2 -2
  31. package/artifacts/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterSetPrice}/MinterSetPriceV4.sol/MinterSetPriceV4.json +3 -3
  32. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V0.sol/MinterSetPriceERC20V0.json +65 -2
  33. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V1.sol/MinterSetPriceERC20V1.json +65 -2
  34. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol/MinterSetPriceERC20V2.json +2 -2
  35. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol/MinterSetPriceERC20V3.json +2 -2
  36. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V4.sol/MinterSetPriceERC20V4.json +807 -0
  37. package/artifacts/contracts/engine/V2/GenArt721MinterBurner_PBAB.sol/GenArt721MinterBurner_PBAB.json +65 -2
  38. package/artifacts/contracts/engine/V2/GenArt721Minter_PBAB.sol/GenArt721Minter_PBAB.json +65 -2
  39. package/artifacts/contracts/engine/V3/EngineFactoryV0.sol/EngineFactoryV0.json +606 -0
  40. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +567 -206
  41. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +787 -224
  42. package/artifacts/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol/GenArt721CoreV3_Engine_Flex_PROOF.json +38 -8
  43. package/artifacts/contracts/engine/V3/forks/PROHIBITION/AdminACLV0_PROHIBITION.sol/AdminACLV0_PROHIBITION.json +2 -2
  44. package/artifacts/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol/GenArt721CoreV3_Engine_Flex_PROHIBITION.json +38 -8
  45. package/artifacts/contracts/engine/V3/forks/PROHIBITION/interfaces/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.sol/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.json +36 -68
  46. package/artifacts/contracts/interfaces/v0.8.x/IAdminACLV0_Extended.sol/IAdminACLV0_Extended.json +140 -0
  47. package/artifacts/contracts/interfaces/v0.8.x/IBytecodeStorageReaderV2.sol/IBytecodeStorageReaderV2.json +130 -0
  48. package/artifacts/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +58 -45
  49. package/artifacts/contracts/interfaces/v0.8.x/IEngineFactoryV0.sol/IEngineFactoryV0.json +283 -0
  50. package/artifacts/contracts/interfaces/v0.8.x/IFilteredMinterDAExpSettlementV0.sol/IFilteredMinterDAExpSettlementV0.json +12 -12
  51. package/artifacts/contracts/interfaces/v0.8.x/IFilteredMinterDAExpSettlementV1.sol/IFilteredMinterDAExpSettlementV1.json +12 -12
  52. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3.sol/IGenArt721CoreContractV3.json +30 -62
  53. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol/IGenArt721CoreContractV3_Base.json +30 -62
  54. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine.sol/IGenArt721CoreContractV3_Engine.json +170 -104
  55. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_Flex.sol/IGenArt721CoreContractV3_Engine_Flex.json +170 -104
  56. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_Flex_PreV3p2.sol/IGenArt721CoreContractV3_Engine_Flex_PreV3p2.json +1028 -0
  57. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_PreV3p2.sol/IGenArt721CoreContractV3_Engine_PreV3p2.json +741 -0
  58. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_ProjectFinance.sol/IGenArt721CoreContractV3_ProjectFinance.json +87 -0
  59. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721Minter_PBAB.sol/IGenArt721Minter_PBAB.json +279 -0
  60. package/artifacts/contracts/interfaces/v0.8.x/IPseudorandomAtomic.sol/IPseudorandomAtomic.json +1 -1
  61. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol/ISharedMinterDAExpSettlementV0.json +18 -0
  62. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterRAMV0.sol/ISharedMinterRAMV0.json +62 -0
  63. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterRequired.sol/ISharedMinterRequired.json +37 -0
  64. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol/ISharedMinterSEAV0.json +1 -1
  65. package/artifacts/contracts/interfaces/v0.8.x/ISplitAtomicFactoryV0.sol/ISplitAtomicFactoryV0.json +170 -0
  66. package/artifacts/contracts/interfaces/v0.8.x/ISplitAtomicV0.sol/ISplitAtomicV0.json +126 -0
  67. package/artifacts/contracts/interfaces/v0.8.x/ISplitProviderV0.sol/ISplitProviderV0.json +98 -0
  68. package/artifacts/contracts/interfaces/v0.8.x/integration-refs/splits-0x-v2/ISplitFactoryV2.sol/ISplitFactoryV2.json +123 -0
  69. package/artifacts/contracts/libs/integration-refs/delegation-registry/DelegationRegistry.sol/DelegationRegistry.json +2 -2
  70. package/artifacts/contracts/libs/integration-refs/gnosis-safe/GnosisSafeMock.sol/GnosisSafeMock.json +2 -2
  71. package/artifacts/contracts/libs/integration-refs/gnosis-safe/GnosisSafeProxyFactoryMock.sol/GnosisSafeProxyFactoryMock.json +2 -2
  72. package/artifacts/contracts/libs/integration-refs/gnosis-safe/MultiSendMock.sol/MultiSendMock.json +2 -2
  73. package/artifacts/contracts/libs/integration-refs/weth9/weth9.sol/WETH9_.json +2 -2
  74. package/artifacts/contracts/libs/v0.8.x/ABHelpers.sol/ABHelpers.json +2 -2
  75. package/artifacts/contracts/libs/v0.8.x/AuthLib.sol/AuthLib.json +2 -2
  76. package/artifacts/contracts/libs/v0.8.x/BitMap.sol/BitMaps256.json +10 -0
  77. package/artifacts/contracts/libs/v0.8.x/BytecodeStorageV0.sol/BytecodeStorage.json +2 -2
  78. package/artifacts/contracts/libs/v0.8.x/BytecodeStorageV1.sol/BytecodeStorageReader.json +2 -2
  79. package/artifacts/contracts/libs/v0.8.x/BytecodeStorageV1.sol/BytecodeStorageWriter.json +2 -2
  80. package/artifacts/contracts/libs/v0.8.x/BytecodeStorageV2.sol/BytecodeStorageReader.json +214 -0
  81. package/artifacts/contracts/libs/v0.8.x/BytecodeStorageV2.sol/BytecodeStorageWriter.json +10 -0
  82. package/artifacts/contracts/libs/v0.8.x/Bytes32Strings.sol/Bytes32Strings.json +2 -2
  83. package/artifacts/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol/DependencyRegistryStorageLib.json +10 -0
  84. package/artifacts/contracts/libs/v0.8.x/ERC721_PackedHashSeed.sol/ERC721_PackedHashSeed.json +2 -2
  85. package/artifacts/contracts/libs/v0.8.x/ERC721_PackedHashSeedV1.sol/ERC721_PackedHashSeedV1.json +444 -0
  86. package/artifacts/contracts/libs/v0.8.x/PackedBools.sol/PackedBools.json +10 -0
  87. package/artifacts/contracts/libs/v0.8.x/SSTORE2.sol/SSTORE2.json +2 -2
  88. package/artifacts/contracts/libs/v0.8.x/V3FlexLib.sol/V3FlexLib.json +208 -0
  89. package/artifacts/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol/DAExpLib.json +2 -2
  90. package/artifacts/contracts/libs/v0.8.x/minter-libs/DALib.sol/DALib.json +2 -2
  91. package/artifacts/contracts/libs/v0.8.x/minter-libs/DALinLib.sol/DALinLib.json +2 -2
  92. package/artifacts/contracts/libs/v0.8.x/minter-libs/GenericMinterEventsLib.sol/GenericMinterEventsLib.json +2 -2
  93. package/artifacts/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol/MaxInvocationsLib.json +2 -2
  94. package/artifacts/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol/MerkleLib.json +2 -2
  95. package/artifacts/contracts/libs/v0.8.x/minter-libs/PolyptychLib.sol/PolyptychLib.json +2 -2
  96. package/artifacts/contracts/libs/v0.8.x/minter-libs/RAMLib.sol/RAMLib.json +398 -0
  97. package/artifacts/contracts/libs/v0.8.x/minter-libs/SEALib.sol/SEALib.json +2 -2
  98. package/artifacts/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol/SetPriceLib.json +2 -2
  99. package/artifacts/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol/SettlementExpLib.json +2 -2
  100. package/artifacts/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol/SplitFundsLib.json +2 -2
  101. package/artifacts/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol/TokenHolderLib.json +2 -2
  102. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV1.sol/MinterFilterV1.json +2 -2
  103. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV2.sol/MinterFilterV2.json +2 -2
  104. package/artifacts/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol/MinterDAExpHolderV5.json +2 -2
  105. package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol/MinterDAExpSettlementV3.json +2 -2
  106. package/artifacts/contracts/minter-suite/Minters/MinterDAExpV5.sol/MinterDAExpV5.json +2 -2
  107. package/artifacts/contracts/minter-suite/Minters/MinterDALinHolderV5.sol/MinterDALinHolderV5.json +2 -2
  108. package/artifacts/contracts/minter-suite/Minters/MinterDALinV5.sol/MinterDALinV5.json +2 -2
  109. package/artifacts/contracts/minter-suite/Minters/MinterRAMV0.sol/MinterRAMV0.json +1374 -0
  110. package/artifacts/contracts/minter-suite/Minters/MinterSEAV1.sol/MinterSEAV1.json +7 -7
  111. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol/MinterSetPriceERC20V5.json +2 -2
  112. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol/MinterSetPriceHolderV5.json +2 -2
  113. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol/MinterSetPriceMerkleV5.json +2 -2
  114. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol/MinterSetPricePolyptychERC20V5.json +2 -2
  115. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol/MinterSetPricePolyptychV5.json +2 -2
  116. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV5.sol/MinterSetPriceV5.json +2 -2
  117. package/artifacts/contracts/minter-suite/Minters/one-off/MinterSetPriceV5_SingleCore.sol/MinterSetPriceV5_SingleCore.json +417 -0
  118. package/artifacts/contracts/mock/BytecodeV2LibCallsMock.sol/BytecodeV2LibCallsMock.json +154 -0
  119. package/artifacts/contracts/mock/BytecodeV2TextCR_DMock.sol/BytecodeV2TextCR_DMock.json +428 -0
  120. package/artifacts/contracts/mock/DummySharedMinter.sol/DummySharedMinter.json +2 -2
  121. package/artifacts/contracts/mock/ERC20Mock.sol/ERC20Mock.json +2 -2
  122. package/artifacts/contracts/mock/ForceSendMock.sol/ForceSendMock.json +24 -0
  123. package/artifacts/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol/GenArt721CoreV3_Engine_IncorrectCoreType.json +2 -2
  124. package/artifacts/contracts/mock/Mock0xSplitsV2PullFactory.sol/Mock0xSplitsV2PullFactory.json +149 -0
  125. package/artifacts/contracts/mock/Mock0xSplitsV2Splitter.sol/Mock0xSplitsV2Splitter.json +99 -0
  126. package/artifacts/contracts/mock/MockAdminACLV0.sol/MockAdminACLV0Events.json +20 -2
  127. package/artifacts/contracts/mock/MockAdminACLV0_PROHIBITION.sol/MockAdminACLV0Events_PROHIBITION.json +20 -2
  128. package/artifacts/contracts/mock/RandomizerV2_NoAssignMock.sol/RandomizerV2_NoAssignMock.json +2 -2
  129. package/artifacts/contracts/mock/ReentrancyGenArt721MinterMock.sol/ReentrancyGenArt721MinterMock.json +100 -0
  130. package/artifacts/contracts/mock/ReentrancyHolderMock.sol/ReentrancyHolderMock.json +2 -2
  131. package/artifacts/contracts/mock/ReentrancyHolderMockShared.sol/ReentrancyHolderMockShared.json +2 -2
  132. package/artifacts/contracts/mock/ReentrancyMerkleMock.sol/ReentrancyMerkleMock.json +2 -2
  133. package/artifacts/contracts/mock/ReentrancyMerkleMockShared.sol/ReentrancyMerkleMockShared.json +2 -2
  134. package/artifacts/contracts/mock/ReentrancyMock.sol/ReentrancyMock.json +2 -2
  135. package/artifacts/contracts/mock/ReentrancyMockShared.sol/ReentrancyMockShared.json +2 -2
  136. package/artifacts/contracts/mock/ReentrancySEAMock.sol/ReentrancySEAAutoBidderMock.json +2 -2
  137. package/artifacts/contracts/mock/ReentrancySEAMockShared.sol/ReentrancySEAAutoBidderMockShared.json +2 -2
  138. package/artifacts/contracts/mock/ReentrancySplitterMocks.sol/ReentrancySplitterDrainETHMock.json +54 -0
  139. package/artifacts/contracts/mock/ReentrancySplitterMocks.sol/ReentrancySplitterSendETHMock.json +54 -0
  140. package/artifacts/contracts/randomizer/deprecated/PolyptychRandomizerV0.sol/BasicPolyptychRandomizerV0.json +2 -2
  141. package/artifacts/contracts/randomizer/deprecated/RandomizerV2.sol/BasicRandomizerV2.json +2 -2
  142. package/artifacts/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol/PseudorandomAtomic.json +2 -2
  143. package/artifacts/contracts/randomizer/shared/SharedRandomizerV0.sol/SharedRandomizerV0.json +2 -2
  144. package/artifacts/contracts/split/SplitAtomicFactoryV0.sol/SplitAtomicFactoryV0.json +203 -0
  145. package/artifacts/contracts/split/SplitAtomicV0.sol/SplitAtomicV0.json +168 -0
  146. package/artifacts/contracts/split/split-provider/SplitProviderV0.sol/SplitProviderV0.json +141 -0
  147. package/contracts/AdminACLV0.sol +6 -2
  148. package/contracts/AdminACLV1.sol +2 -2
  149. package/contracts/DependencyRegistryV0.sol +687 -408
  150. package/contracts/{GenArt721CoreV3.sol → archive/GenArt721CoreV3.sol} +56 -20
  151. package/contracts/{explorations → archive}/GenArt721CoreV3_Explorations.sol +49 -13
  152. package/contracts/{minter-suite → archive/minter-suite}/Minters/MinterBase_v0_1_1.sol +4 -4
  153. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDAExp}/MinterDAExpV4.sol +4 -4
  154. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol +4 -4
  155. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol +5 -5
  156. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDAExpSettlement}/MinterDAExpSettlementV2.sol +8 -8
  157. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterDALin}/MinterDALinV4.sol +4 -4
  158. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterHolder}/MinterHolderV4.sol +5 -5
  159. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterMerkle}/MinterMerkleV5.sol +5 -5
  160. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterPolyptych}/MinterPolyptychV0.sol +7 -7
  161. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterSEA}/MinterSEAV0.sol +13 -13
  162. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterSetPrice}/MinterSetPriceV4.sol +4 -4
  163. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V0.sol +82 -10
  164. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V1.sol +82 -10
  165. package/contracts/{minter-suite/Minters → archive/minter-suite/Minters/MinterSetPriceERC20}/MinterSetPriceERC20V4.sol +88 -21
  166. package/contracts/engine/V2/GenArt721MinterBurner_PBAB.sol +81 -22
  167. package/contracts/engine/V2/GenArt721Minter_PBAB.sol +80 -22
  168. package/contracts/engine/V3/EngineFactoryV0.sol +419 -0
  169. package/contracts/engine/V3/GenArt721CoreV3_Engine.sol +894 -488
  170. package/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol +1054 -650
  171. package/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol +3 -3
  172. package/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol +1 -1
  173. package/contracts/engine/V3/forks/PROHIBITION/interfaces/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.sol +2 -2
  174. package/contracts/interfaces/v0.8.x/IAdminACLV0_Extended.sol +20 -0
  175. package/contracts/interfaces/v0.8.x/IBytecodeStorageReaderV2.sol +23 -0
  176. package/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol +47 -45
  177. package/contracts/interfaces/v0.8.x/IEngineFactoryV0.sol +124 -0
  178. package/contracts/interfaces/v0.8.x/IFilteredMinterDAExpSettlementV0.sol +1 -3
  179. package/contracts/interfaces/v0.8.x/IFilteredMinterDAExpSettlementV1.sol +1 -3
  180. package/contracts/interfaces/v0.8.x/IFilteredMinterDAExpV1.sol +1 -3
  181. package/contracts/interfaces/v0.8.x/IFilteredMinterDALinV1.sol +1 -3
  182. package/contracts/interfaces/v0.8.x/IFilteredMinterHolderV2.sol +1 -3
  183. package/contracts/interfaces/v0.8.x/IFilteredMinterMerkleV2.sol +1 -3
  184. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol +115 -11
  185. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine.sol +84 -8
  186. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_Flex.sol +26 -8
  187. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_Flex_PreV3p2.sol +141 -0
  188. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_Engine_PreV3p2.sol +78 -0
  189. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3_ProjectFinance.sol +47 -0
  190. package/contracts/interfaces/v0.8.x/IGenArt721Minter_PBAB.sol +91 -0
  191. package/contracts/interfaces/v0.8.x/IPseudorandomAtomic.sol +1 -3
  192. package/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol +19 -0
  193. package/contracts/interfaces/v0.8.x/ISharedMinterRAMV0.sol +23 -0
  194. package/contracts/interfaces/v0.8.x/ISharedMinterRequired.sol +20 -0
  195. package/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol +1 -4
  196. package/contracts/interfaces/v0.8.x/ISharedMinterV0.sol +12 -6
  197. package/contracts/interfaces/v0.8.x/ISplitAtomicFactoryV0.sol +81 -0
  198. package/contracts/interfaces/v0.8.x/ISplitAtomicV0.sol +72 -0
  199. package/contracts/interfaces/v0.8.x/ISplitProviderV0.sol +49 -0
  200. package/contracts/interfaces/v0.8.x/integration-refs/splits-0x-v2/ISplitFactoryV2.sol +62 -0
  201. package/contracts/libs/v0.8.x/ABHelpers.sol +18 -4
  202. package/contracts/libs/v0.8.x/BitMap.sol +112 -0
  203. package/contracts/libs/v0.8.x/BytecodeStorageV2.sol +593 -0
  204. package/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol +90 -0
  205. package/contracts/libs/v0.8.x/ERC721_PackedHashSeedV1.sol +591 -0
  206. package/contracts/libs/v0.8.x/PackedBools.sol +42 -0
  207. package/contracts/libs/v0.8.x/V3FlexLib.sol +591 -0
  208. package/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol +10 -12
  209. package/contracts/libs/v0.8.x/minter-libs/DALinLib.sol +4 -9
  210. package/contracts/libs/v0.8.x/minter-libs/GenericMinterEventsLib.sol +44 -44
  211. package/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol +64 -63
  212. package/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol +14 -10
  213. package/contracts/libs/v0.8.x/minter-libs/RAMLib.sol +2927 -0
  214. package/contracts/libs/v0.8.x/minter-libs/SEALib.sol +60 -62
  215. package/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol +4 -8
  216. package/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol +92 -89
  217. package/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol +21 -15
  218. package/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol +5 -4
  219. package/contracts/minter-suite/MinterFilter/MinterFilterV2.sol +16 -10
  220. package/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol +2 -2
  221. package/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol +19 -15
  222. package/contracts/minter-suite/Minters/MinterDAExpV5.sol +2 -2
  223. package/contracts/minter-suite/Minters/MinterDALinHolderV5.sol +2 -2
  224. package/contracts/minter-suite/Minters/MinterDALinV5.sol +2 -2
  225. package/contracts/minter-suite/Minters/MinterRAMV0.sol +1205 -0
  226. package/contracts/minter-suite/Minters/MinterSEAV1.sol +21 -32
  227. package/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol +17 -8
  228. package/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol +2 -2
  229. package/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol +2 -2
  230. package/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol +23 -9
  231. package/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol +2 -2
  232. package/contracts/minter-suite/Minters/MinterSetPriceV5.sol +2 -2
  233. package/contracts/minter-suite/Minters/one-off/MinterSetPriceV5_SingleCore.sol +446 -0
  234. package/contracts/mock/BytecodeV2LibCallsMock.sol +128 -0
  235. package/contracts/mock/BytecodeV2TextCR_DMock.sol +316 -0
  236. package/contracts/mock/ForceSendMock.sol +22 -0
  237. package/contracts/mock/Mock0xSplitsV2PullFactory.sol +75 -0
  238. package/contracts/mock/Mock0xSplitsV2Splitter.sol +47 -0
  239. package/contracts/mock/MockAdminACLV0.sol +21 -0
  240. package/contracts/mock/MockAdminACLV0_PROHIBITION.sol +21 -0
  241. package/contracts/mock/ReentrancyGenArt721MinterMock.sol +47 -0
  242. package/contracts/mock/ReentrancySplitterMocks.sol +67 -0
  243. package/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol +1 -1
  244. package/contracts/randomizer/shared/SharedRandomizerV0.sol +1 -1
  245. package/contracts/split/SplitAtomicFactoryV0.sol +121 -0
  246. package/contracts/split/SplitAtomicV0.sol +265 -0
  247. package/contracts/split/split-provider/SplitProviderV0.sol +201 -0
  248. package/package.json +62 -34
  249. package/artifacts/contracts/GenArt721CoreV3.sol/GenArt721CoreV3.json +0 -1965
  250. package/artifacts/contracts/explorations/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +0 -1939
  251. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol/MinterSetPriceERC20V4.json +0 -768
  252. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride.sol/GenArt721RoyaltyOverride.json +0 -208
  253. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride_PBAB.sol/GenArt721RoyaltyOverride_PBAB.json +0 -301
  254. package/contracts/archive/readme.md +0 -16
  255. package/contracts/engine/README.md +0 -21
  256. package/contracts/royalty-registry/GenArt721RoyaltyOverride.sol +0 -168
  257. package/contracts/royalty-registry/GenArt721RoyaltyOverride_PBAB.sol +0 -221
@@ -1,19 +1,19 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
- pragma solidity 0.8.19;
2
+ pragma solidity 0.8.22;
3
3
 
4
4
  // Created By: Art Blocks Inc.
5
5
 
6
- import "./interfaces/v0.8.x/IRandomizer_V3CoreBase.sol";
7
- import "./interfaces/v0.8.x/IAdminACLV0.sol";
8
- import "./interfaces/v0.8.x/IGenArt721CoreContractV3.sol";
9
- import "./interfaces/v0.8.x/IGenArt721CoreContractExposesHashSeed.sol";
10
- import "./interfaces/v0.8.x/IManifold.sol";
6
+ import "../interfaces/v0.8.x/IRandomizer_V3CoreBase.sol";
7
+ import "../interfaces/v0.8.x/IAdminACLV0.sol";
8
+ import "../interfaces/v0.8.x/IGenArt721CoreContractV3.sol";
9
+ import "../interfaces/v0.8.x/IGenArt721CoreContractExposesHashSeed.sol";
10
+ import "../interfaces/v0.8.x/IManifold.sol";
11
11
 
12
12
  import "@openzeppelin-4.7/contracts/utils/Strings.sol";
13
13
  import "@openzeppelin-4.7/contracts/access/Ownable.sol";
14
- import "./libs/v0.8.x/ERC721_PackedHashSeed.sol";
15
- import "./libs/v0.8.x/BytecodeStorageV1.sol";
16
- import "./libs/v0.8.x/Bytes32Strings.sol";
14
+ import "../libs/v0.8.x/ERC721_PackedHashSeed.sol";
15
+ import "../libs/v0.8.x/BytecodeStorageV1.sol";
16
+ import "../libs/v0.8.x/Bytes32Strings.sol";
17
17
 
18
18
  /**
19
19
  * @title Art Blocks ERC-721 core contract, V3.
@@ -103,7 +103,7 @@ contract GenArt721CoreV3 is
103
103
  uint8 constant AT_CHARACTER_CODE = uint8(bytes1("@")); // 0x40
104
104
 
105
105
  // numeric constants
106
- uint256 constant ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE = 25; // 25%
106
+ // max art blocks primary sales percentage is 100%
107
107
  uint256 constant ART_BLOCKS_MAX_SECONDARY_SALES_BPS = 10000; // 10_000 BPS = 100%
108
108
  uint256 constant ARTIST_MAX_SECONDARY_ROYALTY_PERCENTAGE = 95; // 95%
109
109
 
@@ -125,10 +125,13 @@ contract GenArt721CoreV3 is
125
125
  bytes32 constant FIELD_ARTBLOCKS_SECONDARY_SALES_ADDRESS =
126
126
  "artblocksSecondarySalesAddress";
127
127
  bytes32 constant FIELD_RANDOMIZER_ADDRESS = "randomizerAddress";
128
+ bytes32 constant FIELD_NEXT_CORE_CONTRACT = "nextCoreContract";
128
129
  bytes32 constant FIELD_ARTBLOCKS_CURATION_REGISTRY_ADDRESS =
129
130
  "curationRegistryAddress";
130
131
  bytes32 constant FIELD_ARTBLOCKS_DEPENDENCY_REGISTRY_ADDRESS =
131
132
  "dependencyRegistryAddress";
133
+ bytes32 constant FIELD_ARTBLOCKS_ON_CHAIN_GENERATOR_ADDRESS =
134
+ "onChainGeneratorAddress";
132
135
  bytes32 constant FIELD_ARTBLOCKS_PRIMARY_SALES_PERCENTAGE =
133
136
  "artblocksPrimaryPercentage";
134
137
  bytes32 constant FIELD_ARTBLOCKS_SECONDARY_SALES_BPS =
@@ -160,11 +163,15 @@ contract GenArt721CoreV3 is
160
163
  /// Art Blocks Project ID range: [3-373]
161
164
  address public constant ART_BLOCKS_ERC721TOKEN_ADDRESS_V1 =
162
165
  0xa7d8d9ef8D8Ce8992Df33D8b8CF4Aebabd5bD270;
166
+ /// pointer to next core contract associated with this contract
167
+ address public nextCoreContract;
163
168
 
164
169
  /// Curation registry managed by Art Blocks
165
170
  address public artblocksCurationRegistryAddress;
166
171
  /// Dependency registry managed by Art Blocks
167
172
  address public artblocksDependencyRegistryAddress;
173
+ /// On chain generator managed by Art Blocks
174
+ address public artblocksOnChainGeneratorAddress;
168
175
 
169
176
  /// current randomizer contract
170
177
  IRandomizer_V3CoreBase public randomizerContract;
@@ -484,6 +491,16 @@ contract GenArt721CoreV3 is
484
491
  Ownable.renounceOwnership();
485
492
  }
486
493
 
494
+ /**
495
+ * @notice Updates reference to next core contract, associated with this contract.
496
+ * @param _nextCoreContract Address of the next core contract
497
+ */
498
+ function updateNextCoreContract(address _nextCoreContract) external {
499
+ _onlyAdminACL(this.updateNextCoreContract.selector);
500
+ nextCoreContract = _nextCoreContract;
501
+ emit PlatformUpdated(FIELD_NEXT_CORE_CONTRACT);
502
+ }
503
+
487
504
  /**
488
505
  * @notice Updates reference to Art Blocks Curation Registry contract.
489
506
  * @param _artblocksCurationRegistryAddress Address of new Curation
@@ -512,6 +529,19 @@ contract GenArt721CoreV3 is
512
529
  emit PlatformUpdated(FIELD_ARTBLOCKS_DEPENDENCY_REGISTRY_ADDRESS);
513
530
  }
514
531
 
532
+ /**
533
+ * @notice Updates reference to Art Blocks On Chain Generator contract.
534
+ * @param _artblocksOnChainGeneratorAddress Address of new on chain generator.
535
+ */
536
+ function updateArtblocksOnChainGeneratorAddress(
537
+ address _artblocksOnChainGeneratorAddress
538
+ ) external {
539
+ _onlyAdminACL(this.updateArtblocksOnChainGeneratorAddress.selector);
540
+ _onlyNonZeroAddress(_artblocksOnChainGeneratorAddress);
541
+ artblocksOnChainGeneratorAddress = _artblocksOnChainGeneratorAddress;
542
+ emit PlatformUpdated(FIELD_ARTBLOCKS_ON_CHAIN_GENERATOR_ADDRESS);
543
+ }
544
+
515
545
  /**
516
546
  * @notice Updates artblocksPrimarySalesAddress to
517
547
  * `_artblocksPrimarySalesAddress`.
@@ -550,11 +580,8 @@ contract GenArt721CoreV3 is
550
580
  uint256 artblocksPrimarySalesPercentage_
551
581
  ) external {
552
582
  _onlyAdminACL(this.updateArtblocksPrimarySalesPercentage.selector);
553
- require(
554
- artblocksPrimarySalesPercentage_ <=
555
- ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE,
556
- "Max of ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE percent"
557
- );
583
+ // anything above 100 percent is illogical
584
+ require(artblocksPrimarySalesPercentage_ <= 100, "Max of 100 percent");
558
585
  _artblocksPrimarySalesPercentage = uint8(
559
586
  artblocksPrimarySalesPercentage_
560
587
  );
@@ -896,6 +923,8 @@ contract GenArt721CoreV3 is
896
923
  /**
897
924
  * @notice Updates artist name for project `_projectId` to be
898
925
  * `_projectArtistName`.
926
+ * @dev allows admin to update after project is locked, due to our
927
+ * experiences of artist name changes being requested post-lock.
899
928
  * @param _projectId Project ID.
900
929
  * @param _projectArtistName New artist name.
901
930
  */
@@ -903,10 +932,17 @@ contract GenArt721CoreV3 is
903
932
  uint256 _projectId,
904
933
  string memory _projectArtistName
905
934
  ) external {
906
- _onlyUnlocked(_projectId);
907
- _onlyArtistOrAdminACL(
908
- _projectId,
909
- this.updateProjectArtistName.selector
935
+ // checks
936
+ // if unlocked, only artist may update, if locked, only admin may update
937
+ require(
938
+ _projectUnlocked(_projectId)
939
+ ? msg.sender == projectIdToFinancials[_projectId].artistAddress
940
+ : adminACLAllowed(
941
+ msg.sender,
942
+ address(this),
943
+ this.updateProjectArtistName.selector
944
+ ),
945
+ "Only artist, owner when locked"
910
946
  );
911
947
  _onlyNonEmptyString(_projectArtistName);
912
948
  projects[_projectId].artist = _projectArtistName;
@@ -967,7 +1003,7 @@ contract GenArt721CoreV3 is
967
1003
  address(this),
968
1004
  this.updateProjectDescription.selector
969
1005
  ),
970
- "Only artist when unlocked, owner when locked"
1006
+ "Only artist, owner when locked"
971
1007
  );
972
1008
  // effects
973
1009
  // store description in contract bytecode, replacing reference address from
@@ -43,7 +43,7 @@ import "../libs/v0.8.x/Bytes32Strings.sol";
43
43
  * - forbidNewProjects (forever forbidding new projects)
44
44
  * - updateDefaultBaseURI (used to initialize new project base URIs)
45
45
  * ----------------------------------------------------------------------------
46
- * The following functions are restricted to either the the Artist address or
46
+ * The following functions are restricted to either the Artist address or
47
47
  * the Admin ACL contract, only when the project is not locked:
48
48
  * - updateProjectName
49
49
  * - updateProjectArtistName
@@ -103,7 +103,7 @@ contract GenArt721CoreV3_Explorations is
103
103
  uint8 constant AT_CHARACTER_CODE = uint8(bytes1("@")); // 0x40
104
104
 
105
105
  // numeric constants
106
- uint256 constant ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE = 100; // 100%
106
+ // max art blocks primary sales percentage is 100%
107
107
  uint256 constant ART_BLOCKS_MAX_SECONDARY_SALES_BPS = 10000; // 10_000 BPS = 100%
108
108
  uint256 constant ARTIST_MAX_SECONDARY_ROYALTY_PERCENTAGE = 95; // 95%
109
109
 
@@ -125,11 +125,14 @@ contract GenArt721CoreV3_Explorations is
125
125
  bytes32 constant FIELD_ARTBLOCKS_SECONDARY_SALES_ADDRESS =
126
126
  "artblocksSecondarySalesAddress";
127
127
  bytes32 constant FIELD_RANDOMIZER_ADDRESS = "randomizerAddress";
128
+ bytes32 constant FIELD_NEXT_CORE_CONTRACT = "nextCoreContract";
128
129
  // note: Curation registry address will never be updated on V3 Explorations
129
130
  bytes32 constant FIELD_ARTBLOCKS_CURATION_REGISTRY_ADDRESS =
130
131
  "curationRegistryAddress";
131
132
  bytes32 constant FIELD_ARTBLOCKS_DEPENDENCY_REGISTRY_ADDRESS =
132
133
  "dependencyRegistryAddress";
134
+ bytes32 constant FIELD_ARTBLOCKS_ON_CHAIN_GENERATOR_ADDRESS =
135
+ "onChainGeneratorAddress";
133
136
  bytes32 constant FIELD_ARTBLOCKS_PRIMARY_SALES_PERCENTAGE =
134
137
  "artblocksPrimaryPercentage";
135
138
  bytes32 constant FIELD_ARTBLOCKS_SECONDARY_SALES_BPS =
@@ -154,12 +157,17 @@ contract GenArt721CoreV3_Explorations is
154
157
  bytes32 constant FIELD_PROJECT_ASPECT_RATIO = "aspectRatio";
155
158
  bytes32 constant FIELD_PROJECT_BASE_URI = "baseURI";
156
159
 
160
+ /// pointer to next core contract associated with this contract
161
+ address public nextCoreContract;
162
+
157
163
  /// Curation registry is not relevant for Art Blocks Explorations, and will
158
164
  /// remain null for interface-conformance purposes only, specifically for
159
165
  /// indexing layers.
160
166
  address public artblocksCurationRegistryAddress;
161
167
  /// Dependency registry managed by Art Blocks
162
168
  address public artblocksDependencyRegistryAddress;
169
+ /// On chain generator managed by Art Blocks
170
+ address public artblocksOnChainGeneratorAddress;
163
171
 
164
172
  /// current randomizer contract
165
173
  IRandomizerV2 public randomizerContract;
@@ -408,7 +416,7 @@ contract GenArt721CoreV3_Explorations is
408
416
  unchecked {
409
417
  // invocationsBefore is uint24 << max uint256. In production use,
410
418
  // _projectId * ONE_MILLION must be << max uint256, otherwise
411
- // tokenIdToProjectId function become invalid.
419
+ // tokenIdToProjectId function becomes invalid.
412
420
  // Therefore, no risk of overflow
413
421
  thisTokenId = (_projectId * ONE_MILLION) + invocationsBefore;
414
422
  }
@@ -489,6 +497,16 @@ contract GenArt721CoreV3_Explorations is
489
497
  Ownable.renounceOwnership();
490
498
  }
491
499
 
500
+ /**
501
+ * @notice Updates reference to next core contract, associated with this contract.
502
+ * @param _nextCoreContract Address of the next core contract
503
+ */
504
+ function updateNextCoreContract(address _nextCoreContract) external {
505
+ _onlyAdminACL(this.updateNextCoreContract.selector);
506
+ nextCoreContract = _nextCoreContract;
507
+ emit PlatformUpdated(FIELD_NEXT_CORE_CONTRACT);
508
+ }
509
+
492
510
  /**
493
511
  * @notice Warning: Configuring Curation Registry contract is not supported
494
512
  * on V3 Explorations version of this contract.
@@ -518,6 +536,19 @@ contract GenArt721CoreV3_Explorations is
518
536
  emit PlatformUpdated(FIELD_ARTBLOCKS_DEPENDENCY_REGISTRY_ADDRESS);
519
537
  }
520
538
 
539
+ /**
540
+ * @notice Updates reference to Art Blocks On Chain Generator contract.
541
+ * @param _artblocksOnChainGeneratorAddress Address of new on chain generator.
542
+ */
543
+ function updateArtblocksOnChainGeneratorAddress(
544
+ address _artblocksOnChainGeneratorAddress
545
+ ) external {
546
+ _onlyAdminACL(this.updateArtblocksOnChainGeneratorAddress.selector);
547
+ _onlyNonZeroAddress(_artblocksOnChainGeneratorAddress);
548
+ artblocksOnChainGeneratorAddress = _artblocksOnChainGeneratorAddress;
549
+ emit PlatformUpdated(FIELD_ARTBLOCKS_ON_CHAIN_GENERATOR_ADDRESS);
550
+ }
551
+
521
552
  /**
522
553
  * @notice Updates artblocksPrimarySalesAddress to
523
554
  * `_artblocksPrimarySalesAddress`.
@@ -556,11 +587,8 @@ contract GenArt721CoreV3_Explorations is
556
587
  uint256 artblocksPrimarySalesPercentage_
557
588
  ) external {
558
589
  _onlyAdminACL(this.updateArtblocksPrimarySalesPercentage.selector);
559
- require(
560
- artblocksPrimarySalesPercentage_ <=
561
- ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE,
562
- "Max of ART_BLOCKS_MAX_PRIMARY_SALES_PERCENTAGE percent"
563
- );
590
+ // anything above 100 percent is illogical
591
+ require(artblocksPrimarySalesPercentage_ <= 100, "Max of 100 percent");
564
592
  _artblocksPrimarySalesPercentage = uint8(
565
593
  artblocksPrimarySalesPercentage_
566
594
  );
@@ -902,6 +930,8 @@ contract GenArt721CoreV3_Explorations is
902
930
  /**
903
931
  * @notice Updates artist name for project `_projectId` to be
904
932
  * `_projectArtistName`.
933
+ * @dev allows admin to update after project is locked, due to our
934
+ * experiences of artist name changes being requested post-lock.
905
935
  * @param _projectId Project ID.
906
936
  * @param _projectArtistName New artist name.
907
937
  */
@@ -909,10 +939,16 @@ contract GenArt721CoreV3_Explorations is
909
939
  uint256 _projectId,
910
940
  string memory _projectArtistName
911
941
  ) external {
912
- _onlyUnlocked(_projectId);
913
- _onlyArtistOrAdminACL(
914
- _projectId,
915
- this.updateProjectArtistName.selector
942
+ // if unlocked, only artist may update, if locked, only admin may update
943
+ require(
944
+ _projectUnlocked(_projectId)
945
+ ? msg.sender == projectIdToFinancials[_projectId].artistAddress
946
+ : adminACLAllowed(
947
+ msg.sender,
948
+ address(this),
949
+ this.updateProjectArtistName.selector
950
+ ),
951
+ "Only artist, owner when locked"
916
952
  );
917
953
  _onlyNonEmptyString(_projectArtistName);
918
954
  projects[_projectId].artist = _projectArtistName;
@@ -973,7 +1009,7 @@ contract GenArt721CoreV3_Explorations is
973
1009
  address(this),
974
1010
  this.updateProjectDescription.selector
975
1011
  ),
976
- "Only artist when unlocked, owner when locked"
1012
+ "Only artist, owner when locked"
977
1013
  );
978
1014
  // effects
979
1015
  // store description in contract bytecode, replacing reference address from
@@ -1,10 +1,10 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IMinterBaseV0.sol";
5
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
6
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3.sol";
7
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Engine.sol";
4
+ import "../../../interfaces/v0.8.x/IMinterBaseV0.sol";
5
+ import "../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
6
+ import "../../../interfaces/v0.8.x/IGenArt721CoreContractV3.sol";
7
+ import "../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Engine.sol";
8
8
 
9
9
  import "@openzeppelin-4.7/contracts/token/ERC20/IERC20.sol";
10
10
 
@@ -1,10 +1,10 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterDAExpV1.sol";
7
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterDAExpV1.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
10
10
  import "@openzeppelin-4.5/contracts/utils/math/SafeCast.sol";
@@ -678,7 +678,7 @@ contract MinterDAExpSettlementV0 is
678
678
 
679
679
  /**
680
680
  * @notice Reclaims the sender's payment above current settled price for
681
- * project `_projectId`. The current settled price is the the price paid
681
+ * project `_projectId`. The current settled price is the price paid
682
682
  * for the most recently purchased token, or the base price if the artist
683
683
  * has withdrawn revenues after the auction reached base price.
684
684
  * This function is callable at any point, but is expected to typically be
@@ -694,7 +694,7 @@ contract MinterDAExpSettlementV0 is
694
694
 
695
695
  /**
696
696
  * @notice Reclaims the sender's payment above current settled price for
697
- * project `_projectId`. The current settled price is the the price paid
697
+ * project `_projectId`. The current settled price is the price paid
698
698
  * for the most recently purchased token, or the base price if the artist
699
699
  * has withdrawn revenues after the auction reached base price.
700
700
  * This function is callable at any point, but is expected to typically be
@@ -750,7 +750,7 @@ contract MinterDAExpSettlementV0 is
750
750
 
751
751
  /**
752
752
  * @notice Reclaims the sender's payment above current settled price for
753
- * projects in `_projectIds`. The current settled price is the the price
753
+ * projects in `_projectIds`. The current settled price is the price
754
754
  * paid for the most recently purchased token, or the base price if the
755
755
  * artist has withdrawn revenues after the auction reached base price.
756
756
  * This function is callable at any point, but is expected to typically be
@@ -774,7 +774,7 @@ contract MinterDAExpSettlementV0 is
774
774
 
775
775
  /**
776
776
  * @notice Reclaims the sender's payment above current settled price for
777
- * projects in `_projectIds`. The current settled price is the the price
777
+ * projects in `_projectIds`. The current settled price is the price
778
778
  * paid for the most recently purchased token, or the base price if the
779
779
  * artist has withdrawn revenues after the auction reached base price.
780
780
  * This function is callable at any point, but is expected to typically be
@@ -4,7 +4,7 @@
4
4
  import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
5
  import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
6
  import "../../../../interfaces/v0.8.x/IFilteredMinterDAExpSettlementV0.sol";
7
- import "../../../../minter-suite/Minters/MinterBase_v0_1_1.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.7/contracts/security/ReentrancyGuard.sol";
10
10
  import "@openzeppelin-4.7/contracts/utils/math/SafeCast.sol";
@@ -688,7 +688,7 @@ contract MinterDAExpSettlementV1 is
688
688
 
689
689
  /**
690
690
  * @notice Reclaims the sender's payment above current settled price for
691
- * project `_projectId`. The current settled price is the the price paid
691
+ * project `_projectId`. The current settled price is the price paid
692
692
  * for the most recently purchased token, or the base price if the artist
693
693
  * has withdrawn revenues after the auction reached base price.
694
694
  * This function is callable at any point, but is expected to typically be
@@ -704,7 +704,7 @@ contract MinterDAExpSettlementV1 is
704
704
 
705
705
  /**
706
706
  * @notice Reclaims the sender's payment above current settled price for
707
- * project `_projectId`. The current settled price is the the price paid
707
+ * project `_projectId`. The current settled price is the price paid
708
708
  * for the most recently purchased token, or the base price if the artist
709
709
  * has withdrawn revenues after the auction reached base price.
710
710
  * This function is callable at any point, but is expected to typically be
@@ -760,7 +760,7 @@ contract MinterDAExpSettlementV1 is
760
760
 
761
761
  /**
762
762
  * @notice Reclaims the sender's payment above current settled price for
763
- * projects in `_projectIds`. The current settled price is the the price
763
+ * projects in `_projectIds`. The current settled price is the price
764
764
  * paid for the most recently purchased token, or the base price if the
765
765
  * artist has withdrawn revenues after the auction reached base price.
766
766
  * This function is callable at any point, but is expected to typically be
@@ -784,7 +784,7 @@ contract MinterDAExpSettlementV1 is
784
784
 
785
785
  /**
786
786
  * @notice Reclaims the sender's payment above current settled price for
787
- * projects in `_projectIds`. The current settled price is the the price
787
+ * projects in `_projectIds`. The current settled price is the price
788
788
  * paid for the most recently purchased token, or the base price if the
789
789
  * artist has withdrawn revenues after the auction reached base price.
790
790
  * This function is callable at any point, but is expected to typically be
@@ -1,10 +1,10 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterDAExpSettlementV1.sol";
7
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterDAExpSettlementV1.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.7/contracts/security/ReentrancyGuard.sol";
10
10
  import "@openzeppelin-4.7/contracts/utils/math/SafeCast.sol";
@@ -727,7 +727,7 @@ contract MinterDAExpSettlementV2 is
727
727
 
728
728
  /**
729
729
  * @notice Reclaims the sender's payment above current settled price for
730
- * project `_projectId`. The current settled price is the the price paid
730
+ * project `_projectId`. The current settled price is the price paid
731
731
  * for the most recently purchased token, or the base price if the artist
732
732
  * has withdrawn revenues after the auction reached base price.
733
733
  * This function is callable at any point, but is expected to typically be
@@ -743,7 +743,7 @@ contract MinterDAExpSettlementV2 is
743
743
 
744
744
  /**
745
745
  * @notice Reclaims the sender's payment above current settled price for
746
- * project `_projectId`. The current settled price is the the price paid
746
+ * project `_projectId`. The current settled price is the price paid
747
747
  * for the most recently purchased token, or the base price if the artist
748
748
  * has withdrawn revenues after the auction reached base price.
749
749
  * This function is callable at any point, but is expected to typically be
@@ -799,7 +799,7 @@ contract MinterDAExpSettlementV2 is
799
799
 
800
800
  /**
801
801
  * @notice Reclaims the sender's payment above current settled price for
802
- * projects in `_projectIds`. The current settled price is the the price
802
+ * projects in `_projectIds`. The current settled price is the price
803
803
  * paid for the most recently purchased token, or the base price if the
804
804
  * artist has withdrawn revenues after the auction reached base price.
805
805
  * This function is callable at any point, but is expected to typically be
@@ -823,7 +823,7 @@ contract MinterDAExpSettlementV2 is
823
823
 
824
824
  /**
825
825
  * @notice Reclaims the sender's payment above current settled price for
826
- * projects in `_projectIds`. The current settled price is the the price
826
+ * projects in `_projectIds`. The current settled price is the price
827
827
  * paid for the most recently purchased token, or the base price if the
828
828
  * artist has withdrawn revenues after the auction reached base price.
829
829
  * This function is callable at any point, but is expected to typically be
@@ -1,10 +1,10 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterDALinV1.sol";
7
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterDALinV1.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
10
10
  import "@openzeppelin-4.5/contracts/utils/math/SafeCast.sol";
@@ -1,11 +1,11 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterHolderV2.sol";
7
- import "./MinterBase_v0_1_1.sol";
8
- import "../../interfaces/v0.8.x/IDelegationRegistry.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterHolderV2.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
+ import "../../../../interfaces/v0.8.x/IDelegationRegistry.sol";
9
9
 
10
10
  import "@openzeppelin-4.5/contracts/token/ERC721/IERC721.sol";
11
11
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
@@ -1,11 +1,11 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterMerkleV2.sol";
7
- import "../../interfaces/v0.8.x/IDelegationRegistry.sol";
8
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterMerkleV2.sol";
7
+ import "../../../../interfaces/v0.8.x/IDelegationRegistry.sol";
8
+ import "../MinterBase_v0_1_1.sol";
9
9
 
10
10
  import "@openzeppelin-4.7/contracts/utils/cryptography/MerkleProof.sol";
11
11
  import "@openzeppelin-4.7/contracts/token/ERC20/IERC20.sol";
@@ -1,13 +1,13 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IGenArt721CoreContractExposesHashSeed.sol";
6
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
7
- import "../../interfaces/v0.8.x/IFilteredMinterHolderV2.sol";
8
- import "../../interfaces/v0.8.x/IRandomizerPolyptychV0.sol";
9
- import "../../interfaces/v0.8.x/IDelegationRegistry.sol";
10
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractExposesHashSeed.sol";
6
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
7
+ import "../../../../interfaces/v0.8.x/IFilteredMinterHolderV2.sol";
8
+ import "../../../../interfaces/v0.8.x/IRandomizerPolyptychV0.sol";
9
+ import "../../../../interfaces/v0.8.x/IDelegationRegistry.sol";
10
+ import "../MinterBase_v0_1_1.sol";
11
11
 
12
12
  import "@openzeppelin-4.5/contracts/token/ERC721/IERC721.sol";
13
13
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
@@ -3,10 +3,10 @@
3
3
 
4
4
  pragma solidity 0.8.19;
5
5
 
6
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
7
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
8
- import "../../interfaces/v0.8.x/IFilteredMinterSEAV0.sol";
9
- import "./MinterBase_v0_1_1.sol";
6
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
7
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
8
+ import "../../../../interfaces/v0.8.x/IFilteredMinterSEAV0.sol";
9
+ import "../MinterBase_v0_1_1.sol";
10
10
 
11
11
  import "@openzeppelin-4.7/contracts/token/ERC721/IERC721.sol";
12
12
  import "@openzeppelin-4.7/contracts/security/ReentrancyGuard.sol";
@@ -119,23 +119,23 @@ contract MinterSEAV0 is ReentrancyGuard, MinterBase, IFilteredMinterSEAV0 {
119
119
 
120
120
  // minter-wide, admin-configurable parameters
121
121
  // ----------------------------------------
122
- // minimum inital auction length, in seconds; configurable by admin
122
+ // minimum initial auction length, in seconds; configurable by admin
123
123
  // max uint32 ~= 4.3e9 sec ~= 136 years
124
124
  // @dev enforced only when artist configures a project
125
125
  // @dev default to 10 minutes
126
126
  uint32 minAuctionDurationSeconds = 600;
127
- // maximum inital auction length, in seconds; configurable by admin
127
+ // maximum initial auction length, in seconds; configurable by admin
128
128
  // @dev enforced only when artist configures a project
129
129
  // @dev default to 1 month (1/12 of a year)
130
130
  uint32 maxAuctionDurationSeconds = 2_629_746;
131
131
  // the minimum percent increase for new bids above the current bid
132
- // configureable by admin
132
+ // configurable by admin
133
133
  // max uint8 ~= 255, > 100 percent
134
134
  // @dev used when determining the increment percentage for any new bid on
135
135
  // the minter, across all projects
136
136
  uint8 minterMinBidIncrementPercentage = 5;
137
137
  // minimum time remaining in auction after a new bid is placed
138
- // configureable by admin
138
+ // configurable by admin
139
139
  // max uint32 ~= 4.3e9 sec ~= 136 years
140
140
  // @dev used when determining the buffer time for any new bid on the
141
141
  // minter, across all projects
@@ -406,7 +406,7 @@ contract MinterSEAV0 is ReentrancyGuard, MinterBase, IFilteredMinterSEAV0 {
406
406
  * @param _projectId Project ID to set future auction details for.
407
407
  * @param _timestampStart Timestamp after which new auctions may be
408
408
  * started. Note that this is not the timestamp of the auction start, but
409
- * rather the timestamp after which a auction may be started. Also note
409
+ * rather the timestamp after which an auction may be started. Also note
410
410
  * that the passed value here must either be in the future, or `0` (which
411
411
  * indicates that auctions are immediately startable).
412
412
  * @param _auctionDurationSeconds Duration of new auctions, in seconds,
@@ -499,7 +499,7 @@ contract MinterSEAV0 is ReentrancyGuard, MinterBase, IFilteredMinterSEAV0 {
499
499
  * has a "next token" assigned to a project, but the project has been reset
500
500
  * via `resetAuctionDetails`, and the artist does not want an auction to be
501
501
  * started for the "next token". This function also protects against the
502
- * unforseen case where the minter is in an unexpected state where it has a
502
+ * unforeseen case where the minter is in an unexpected state where it has a
503
503
  * "next token" assigned to a project, but for some reason the project is
504
504
  * unable to begin a new auction due to a bug.
505
505
  * @dev only a single token may be actively assigned to a project's "next
@@ -541,11 +541,11 @@ contract MinterSEAV0 is ReentrancyGuard, MinterBase, IFilteredMinterSEAV0 {
541
541
 
542
542
  /**
543
543
  * @notice Emergency, Artist-only function that attempts to mint a new
544
- * token and set it as the the next token to be auctioned for project
544
+ * token and set it as the next token to be auctioned for project
545
545
  * `_projectId`.
546
- * Note: This function is only included for emergency, unforseen use cases,
546
+ * Note: This function is only included for emergency, unforeseen use cases,
547
547
  * and should not be used in normal operation. It is here only for
548
- * redundant protection against an unforseen edge case where the minter
548
+ * redundant protection against an unforeseen edge case where the minter
549
549
  * does not have a populated "next token", but there are still invocations
550
550
  * remaining on the project.
551
551
  * This function reverts if the project is not configured on this minter.
@@ -1,10 +1,10 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/v0.8.x/IFilteredMinterV2.sol";
7
- import "./MinterBase_v0_1_1.sol";
4
+ import "../../../../interfaces/v0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../../../../interfaces/v0.8.x/IMinterFilterV0.sol";
6
+ import "../../../../interfaces/v0.8.x/IFilteredMinterV2.sol";
7
+ import "../MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
10
10