@artblocks/contracts 1.0.3 → 1.0.4

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 (366) hide show
  1. package/README.md +32 -25
  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 +125 -17
  5. package/artifacts/contracts/GenArt721CoreV3.sol/GenArt721CoreV3.json +6 -6
  6. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV0.sol/MinterDAExpV0.json +2 -2
  7. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV1.sol/MinterDAExpV1.json +2 -2
  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/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol/MinterDAExpSettlementV0.json +2 -2
  11. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol/MinterDAExpSettlementV1.json +2 -2
  12. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV0.sol/MinterDALinV0.json +2 -2
  13. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV1.sol/MinterDALinV1.json +2 -2
  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/archive/minter-suite/Minters/MinterHolder/MinterHolderV0.sol/MinterHolderV0.json +2 -2
  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/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV0.sol/MinterMerkleV0.json +2 -2
  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/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV0.sol/MinterSetPriceV0.json +2 -2
  26. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV1.sol/MinterSetPriceV1.json +2 -2
  27. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol/MinterSetPriceV2.json +2 -2
  28. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol/MinterSetPriceV3.json +2 -2
  29. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V0.sol/MinterSetPriceERC20V0.json +2 -2
  30. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V1.sol/MinterSetPriceERC20V1.json +2 -2
  31. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol/MinterSetPriceERC20V2.json +2 -2
  32. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol/MinterSetPriceERC20V3.json +2 -2
  33. package/artifacts/contracts/engine/V2/GenArt721CoreV2_ENGINE_FLEX.sol/GenArt721CoreV2_ENGINE_FLEX.json +2 -2
  34. package/artifacts/contracts/engine/V2/GenArt721CoreV2_PBAB.sol/GenArt721CoreV2_PBAB.json +2 -2
  35. package/artifacts/contracts/engine/V2/GenArt721CoreV2_PRTNR.sol/GenArt721CoreV2_PRTNR.json +2 -2
  36. package/artifacts/contracts/engine/V2/GenArt721MinterBurner_PBAB.sol/GenArt721MinterBurner_PBAB.json +2 -2
  37. package/artifacts/contracts/engine/V2/GenArt721MinterDAExp_PBAB.sol/GenArt721MinterDAExp_PBAB.json +2 -2
  38. package/artifacts/contracts/engine/V2/GenArt721Minter_PBAB.sol/GenArt721Minter_PBAB.json +2 -2
  39. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +6 -6
  40. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +6 -6
  41. package/artifacts/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol/GenArt721CoreV3_Engine_Flex_PROOF.json +4 -4
  42. package/artifacts/contracts/engine/V3/forks/PROHIBITION/AdminACLV0_PROHIBITION.sol/AdminACLV0_PROHIBITION.json +2 -2
  43. package/artifacts/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol/GenArt721CoreV3_Engine_Flex_PROHIBITION.json +6 -6
  44. package/artifacts/contracts/engine-registry/CoreRegistryV1.sol/CoreRegistryV1.json +2 -2
  45. package/artifacts/contracts/engine-registry/EngineRegistryV0.sol/EngineRegistryV0.json +2 -2
  46. package/artifacts/contracts/explorations/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +6 -6
  47. package/artifacts/contracts/interfaces/{0.5.x → v0.5.x}/IBonusContract.sol/IBonusContract.json +1 -1
  48. package/artifacts/contracts/interfaces/{0.5.x → v0.5.x}/IGenArt721CoreContractV1.sol/IGenArt721CoreContractV1.json +1 -1
  49. package/artifacts/contracts/interfaces/{0.5.x → v0.5.x}/IGenArt721CoreV2_PBAB.sol/IGenArt721CoreV2_PBAB.json +1 -1
  50. package/artifacts/contracts/interfaces/{0.5.x → v0.5.x}/IRandomizer.sol/IRandomizer.json +1 -1
  51. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IAdminACLV0.sol/IAdminACLV0.json +1 -1
  52. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IArtblocksRoyaltyOverride.sol/IArtblocksRoyaltyOverride.json +1 -1
  53. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IBonusContract.sol/IBonusContract.json +1 -1
  54. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IBytecodeStorageReader.sol/IBytecodeStorageReader.json +1 -1
  55. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/ICoreRegistryV1.sol/ICoreRegistryV1.json +1 -1
  56. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IDelegationRegistry.sol/IDelegationRegistry.json +1 -1
  57. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IDependencyRegistryCompatibleV0.sol/IDependencyRegistryCompatibleV0.json +1 -1
  58. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +3 -3
  59. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IEngineRegistryV0.sol/IEngineRegistryV0.json +1 -1
  60. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlementV0.sol/IFilteredMinterDAExpSettlementV0.json +1 -1
  61. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlementV1.sol/IFilteredMinterDAExpSettlementV1.json +1 -1
  62. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlement_Mixin.sol/IFilteredMinterDAExpSettlement_Mixin.json +1 -1
  63. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpV0.sol/IFilteredMinterDAExpV0.json +1 -1
  64. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpV1.sol/IFilteredMinterDAExpV1.json +1 -1
  65. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDALinV0.sol/IFilteredMinterDALinV0.json +1 -1
  66. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDALinV1.sol/IFilteredMinterDALinV1.json +1 -1
  67. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV0.sol/IFilteredMinterHolderV0.json +1 -1
  68. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV1.sol/IFilteredMinterHolderV1.json +1 -1
  69. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV2.sol/IFilteredMinterHolderV2.json +1 -1
  70. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV0.sol/IFilteredMinterMerkleV0.json +1 -1
  71. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV1.sol/IFilteredMinterMerkleV1.json +1 -1
  72. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV2.sol/IFilteredMinterMerkleV2.json +1 -1
  73. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterSEAV0.sol/IFilteredMinterSEAV0.json +1 -1
  74. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV0.sol/IFilteredMinterV0.json +1 -1
  75. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV1.sol/IFilteredMinterV1.json +1 -1
  76. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV2.sol/IFilteredMinterV2.json +1 -1
  77. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractExposesHashSeed.sol/IGenArt721CoreContractExposesHashSeed.json +1 -1
  78. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV1.sol/IGenArt721CoreContractV1.json +1 -1
  79. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3.sol/IGenArt721CoreContractV3.json +1 -1
  80. package/artifacts/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3WithSharedRandomizer.sol/IGenArt721CoreContractV3WithSharedRandomizer.json +24 -0
  81. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Base.sol/IGenArt721CoreContractV3_Base.json +1 -1
  82. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Engine.sol/IGenArt721CoreContractV3_Engine.json +1 -1
  83. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Engine_Flex.sol/IGenArt721CoreContractV3_Engine_Flex.json +1 -1
  84. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreV2_PBAB.sol/IGenArt721CoreV2_PBAB.json +1 -1
  85. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IManifold.sol/IManifold.json +1 -1
  86. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IMinterBaseV0.sol/IMinterBaseV0.json +1 -1
  87. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IMinterFilterV0.sol/IMinterFilterV0.json +1 -1
  88. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IMinterFilterV1.sol/IMinterFilterV1.json +86 -1
  89. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IMintingAPICoreV0.sol/IMintingAPICoreV0.json +1 -1
  90. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IMintingAPIMinterV0.sol/IMintingAPIMinterV0.json +1 -1
  91. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IPseudorandomAtomic.sol/IPseudorandomAtomic.json +1 -1
  92. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizer.sol/IRandomizer.json +1 -1
  93. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizerPolyptychV0.sol/IRandomizerPolyptychV0.json +1 -1
  94. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizerV2.sol/IRandomizerV2.json +1 -1
  95. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizer_V3CoreBase.sol/IRandomizer_V3CoreBase.json +1 -1
  96. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol/ISharedMinterDAExpSettlementV0.json +207 -0
  97. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAExpV0.sol/ISharedMinterDAExpV0.json +93 -0
  98. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDALinV0.sol/ISharedMinterDALinV0.json +93 -0
  99. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAV0.sol/ISharedMinterDAV0.json +69 -0
  100. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterHolderV0.sol/ISharedMinterHolderV0.json +203 -0
  101. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterMerkleV0.sol/ISharedMinterMerkleV0.json +123 -0
  102. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol/ISharedMinterSEAV0.json +261 -0
  103. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterSimplePurchaseV0.sol/ISharedMinterSimplePurchaseV0.json +64 -0
  104. package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterV0.sol/ISharedMinterV0.json +533 -0
  105. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/ISharedRandomizerV0.sol/ISharedRandomizerV0.json +42 -26
  106. package/artifacts/contracts/interfaces/{0.8.x → v0.8.x}/IWETH.sol/IWETH.json +1 -1
  107. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/Address.json +2 -2
  108. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/Counters.json +2 -2
  109. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/CustomERC721Metadata.json +2 -2
  110. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/ERC721.json +2 -2
  111. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/ERC721Enumerable.json +2 -2
  112. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/GenArt721CoreV1.json +2 -2
  113. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/SafeMath.json +2 -2
  114. package/artifacts/contracts/legacy/GenArt721CoreV1.sol/Strings.json +2 -2
  115. package/artifacts/contracts/legacy/GenArt721LegacyMinter.sol/GenArt721LegacyMinter.json +2 -2
  116. package/artifacts/contracts/libs/integration-refs/delegation-registry/DelegationRegistry.sol/DelegationRegistry.json +2 -2
  117. package/artifacts/contracts/libs/{0.5.x → v0.5.x}/CustomERC721Metadata.sol/CustomERC721Metadata.json +3 -3
  118. package/artifacts/contracts/libs/{0.5.x → v0.5.x}/IERC20.sol/IERC20.json +1 -1
  119. package/artifacts/contracts/libs/{0.5.x → v0.5.x}/SafeMath.sol/SafeMath.json +3 -3
  120. package/artifacts/contracts/libs/{0.5.x → v0.5.x}/Strings.sol/Strings.json +3 -3
  121. package/artifacts/contracts/libs/v0.8.x/ABHelpers.sol/ABHelpers.json +10 -0
  122. package/artifacts/contracts/libs/v0.8.x/AuthLib.sol/AuthLib.json +10 -0
  123. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/BytecodeStorageV0.sol/BytecodeStorage.json +3 -3
  124. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/BytecodeStorageV1.sol/BytecodeStorageReader.json +3 -3
  125. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/BytecodeStorageV1.sol/BytecodeStorageWriter.json +3 -3
  126. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/Bytes32Strings.sol/Bytes32Strings.json +3 -3
  127. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/ERC721_PackedHashSeed.sol/ERC721_PackedHashSeed.json +3 -3
  128. package/artifacts/contracts/libs/{0.8.x → v0.8.x}/SSTORE2.sol/SSTORE2.json +3 -3
  129. package/artifacts/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol/DAExpLib.json +10 -0
  130. package/artifacts/contracts/libs/v0.8.x/minter-libs/DALinLib.sol/DALinLib.json +10 -0
  131. package/artifacts/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol/MaxInvocationsLib.json +10 -0
  132. package/artifacts/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol/MerkleLib.json +10 -0
  133. package/artifacts/contracts/libs/v0.8.x/minter-libs/PolyptychLib.sol/PolyptychLib.json +10 -0
  134. package/artifacts/contracts/libs/v0.8.x/minter-libs/SEALib.sol/SEALib.json +10 -0
  135. package/artifacts/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol/SetPriceLib.json +10 -0
  136. package/artifacts/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol/SettlementExpLib.json +10 -0
  137. package/artifacts/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol/SplitFundsLib.json +10 -0
  138. package/artifacts/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol/TokenHolderLib.json +10 -0
  139. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV0.sol/MinterFilterV0.json +2 -2
  140. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV1.sol/MinterFilterV1.json +2 -2
  141. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV2.sol/MinterFilterV2.json +58 -2
  142. package/artifacts/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol/MinterDAExpHolderV5.json +1228 -0
  143. package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol/MinterDAExpSettlementV2.json +2 -2
  144. package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol/MinterDAExpSettlementV3.json +1146 -0
  145. package/artifacts/contracts/minter-suite/Minters/MinterDAExpV4.sol/MinterDAExpV4.json +2 -2
  146. package/artifacts/contracts/minter-suite/Minters/MinterDAExpV5.sol/MinterDAExpV5.json +909 -0
  147. package/artifacts/contracts/minter-suite/Minters/MinterDALinHolderV5.sol/MinterDALinHolderV5.json +1228 -0
  148. package/artifacts/contracts/minter-suite/Minters/MinterDALinV4.sol/MinterDALinV4.json +2 -2
  149. package/artifacts/contracts/minter-suite/Minters/MinterDALinV5.sol/MinterDALinV5.json +909 -0
  150. package/artifacts/contracts/minter-suite/Minters/MinterHolderV4.sol/MinterHolderV4.json +2 -2
  151. package/artifacts/contracts/minter-suite/Minters/MinterMerkleV5.sol/MinterMerkleV5.json +2 -2
  152. package/artifacts/contracts/minter-suite/Minters/MinterPolyptychV0.sol/MinterPolyptychV0.json +2 -2
  153. package/artifacts/contracts/minter-suite/Minters/MinterSEAV0.sol/MinterSEAV0.json +2 -2
  154. package/artifacts/contracts/minter-suite/Minters/MinterSEAV1.sol/MinterSEAV1.json +1325 -0
  155. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol/MinterSetPriceERC20V4.json +2 -2
  156. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol/MinterSetPriceERC20V5.json +848 -0
  157. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol/MinterSetPriceHolderV5.json +1091 -0
  158. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol/MinterSetPriceMerkleV5.json +1075 -0
  159. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol/MinterSetPricePolyptychERC20V5.json +1243 -0
  160. package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol/MinterSetPricePolyptychV5.json +1167 -0
  161. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV4.sol/MinterSetPriceV4.json +2 -2
  162. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV5.sol/MinterSetPriceV5.json +772 -0
  163. package/artifacts/contracts/mock/BytecodeV0TextCR_DMock.sol/BytecodeV0TextCR_DMock.json +2 -2
  164. package/artifacts/contracts/mock/BytecodeV1LibCallsMock.sol/BytecodeV1LibCallsMock.json +2 -2
  165. package/artifacts/contracts/mock/BytecodeV1TextCR_DMock.sol/BytecodeV1TextCR_DMock.json +4 -4
  166. package/artifacts/contracts/mock/DeadReceiverBidderMock.sol/DeadReceiverBidderMock.json +25 -2
  167. package/artifacts/contracts/mock/DummySharedMinter.sol/DummySharedMinter.json +2 -2
  168. package/artifacts/contracts/mock/ERC20Mock.sol/ERC20Mock.json +28 -2
  169. package/artifacts/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol/GenArt721CoreV3_Engine_IncorrectCoreType.json +4 -4
  170. package/artifacts/contracts/mock/MockAdminACLV0.sol/MockAdminACLV0Events.json +2 -2
  171. package/artifacts/contracts/mock/MockAdminACLV0_PROHIBITION.sol/MockAdminACLV0Events_PROHIBITION.json +2 -2
  172. package/artifacts/contracts/mock/OriginRegisterMock.sol/OriginRegisterMock.json +2 -2
  173. package/artifacts/contracts/mock/RandomizerV2_NoAssignMock.sol/RandomizerV2_NoAssignMock.json +2 -2
  174. package/artifacts/contracts/mock/ReentrancyHolderMock.sol/ReentrancyHolderMock.json +2 -2
  175. package/artifacts/contracts/mock/ReentrancyMerkleMock.sol/ReentrancyMerkleMock.json +2 -2
  176. package/artifacts/contracts/mock/ReentrancyMock.sol/ReentrancyMock.json +2 -2
  177. package/artifacts/contracts/mock/ReentrancySEAMock.sol/ReentrancySEAAutoBidderMock.json +2 -2
  178. package/artifacts/contracts/mock/SSTORE2Mock.sol/SSTORE2Mock.json +2 -2
  179. package/artifacts/contracts/randomizer/deprecated/BasicRandomizer.sol/BasicRandomizer.json +2 -2
  180. package/artifacts/contracts/randomizer/deprecated/PolyptychRandomizerV0.sol/BasicPolyptychRandomizerV0.json +2 -2
  181. package/artifacts/contracts/randomizer/deprecated/RandomizerV2.sol/BasicRandomizerV2.json +2 -2
  182. package/artifacts/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol/PseudorandomAtomic.json +2 -2
  183. package/artifacts/contracts/randomizer/shared/SharedRandomizerV0.sol/SharedRandomizerV0.json +48 -32
  184. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride.sol/GenArt721RoyaltyOverride.json +2 -2
  185. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride_PBAB.sol/GenArt721RoyaltyOverride_PBAB.json +2 -2
  186. package/contracts/AdminACLV0.sol +1 -1
  187. package/contracts/AdminACLV1.sol +1 -1
  188. package/contracts/DependencyRegistryV0.sol +216 -107
  189. package/contracts/GenArt721CoreV3.sol +27 -12
  190. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV0.sol +3 -3
  191. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV1.sol +3 -3
  192. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV2.sol +3 -3
  193. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV3.sol +3 -3
  194. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol +3 -3
  195. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol +3 -3
  196. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV0.sol +3 -3
  197. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV1.sol +3 -3
  198. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV2.sol +3 -3
  199. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV3.sol +3 -3
  200. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV0.sol +3 -3
  201. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV1.sol +3 -3
  202. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV2.sol +4 -4
  203. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV3.sol +4 -4
  204. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV0.sol +3 -3
  205. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV1.sol +3 -3
  206. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV2.sol +4 -4
  207. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV3.sol +4 -4
  208. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV4.sol +4 -4
  209. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV0.sol +3 -3
  210. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV1.sol +3 -3
  211. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol +3 -3
  212. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol +3 -3
  213. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V0.sol +3 -3
  214. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V1.sol +3 -3
  215. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol +3 -3
  216. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol +3 -3
  217. package/contracts/engine/V2/GenArt721CoreV2_ENGINE_FLEX.sol +2 -2
  218. package/contracts/engine/V2/GenArt721CoreV2_PBAB.sol +2 -2
  219. package/contracts/engine/V2/GenArt721CoreV2_PRTNR.sol +3 -3
  220. package/contracts/engine/V2/GenArt721MinterBurner_PBAB.sol +2 -2
  221. package/contracts/engine/V2/GenArt721MinterDAExp_PBAB.sol +1 -1
  222. package/contracts/engine/V2/GenArt721Minter_PBAB.sol +2 -2
  223. package/contracts/engine/V3/GenArt721CoreV3_Engine.sol +29 -14
  224. package/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol +29 -14
  225. package/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol +9 -9
  226. package/contracts/engine/V3/forks/PROHIBITION/AdminACLV0_PROHIBITION.sol +1 -1
  227. package/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol +20 -15
  228. package/contracts/engine/V3/forks/PROHIBITION/interfaces/IAdminACLV0_PROHIBITION.sol +1 -1
  229. package/contracts/engine/V3/forks/PROHIBITION/interfaces/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.sol +1 -1
  230. package/contracts/engine-registry/CoreRegistryV1.sol +1 -1
  231. package/contracts/engine-registry/EngineRegistryV0.sol +1 -1
  232. package/contracts/explorations/GenArt721CoreV3_Explorations.sol +27 -12
  233. package/contracts/interfaces/{0.8.x → v0.8.x}/IDependencyRegistryV0.sol +2 -2
  234. package/contracts/interfaces/v0.8.x/IGenArt721CoreContractV3WithSharedRandomizer.sol +23 -0
  235. package/contracts/interfaces/{0.8.x → v0.8.x}/IMinterFilterV1.sol +26 -0
  236. package/contracts/interfaces/v0.8.x/IRandomizer_V3CoreBase.sol +23 -0
  237. package/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol +37 -0
  238. package/contracts/interfaces/v0.8.x/ISharedMinterDAExpV0.sol +25 -0
  239. package/contracts/interfaces/v0.8.x/ISharedMinterDALinV0.sol +26 -0
  240. package/contracts/interfaces/v0.8.x/ISharedMinterDAV0.sol +19 -0
  241. package/contracts/interfaces/v0.8.x/ISharedMinterHolderV0.sol +69 -0
  242. package/contracts/interfaces/v0.8.x/ISharedMinterMerkleV0.sol +44 -0
  243. package/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol +78 -0
  244. package/contracts/interfaces/v0.8.x/ISharedMinterSimplePurchaseV0.sol +28 -0
  245. package/contracts/interfaces/v0.8.x/ISharedMinterV0.sol +191 -0
  246. package/contracts/interfaces/{0.8.x → v0.8.x}/ISharedRandomizerV0.sol +42 -24
  247. package/contracts/legacy/GenArt721CoreV1.sol +2 -2
  248. package/contracts/legacy/GenArt721LegacyMinter.sol +5 -5
  249. package/contracts/libs/integration-refs/delegation-registry/DelegationRegistry.sol +1 -1
  250. package/contracts/libs/v0.8.x/ABHelpers.sol +55 -0
  251. package/contracts/libs/v0.8.x/AuthLib.sol +197 -0
  252. package/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol +125 -0
  253. package/contracts/libs/v0.8.x/minter-libs/DALinLib.sol +109 -0
  254. package/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol +348 -0
  255. package/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol +175 -0
  256. package/contracts/libs/v0.8.x/minter-libs/PolyptychLib.sol +160 -0
  257. package/contracts/libs/v0.8.x/minter-libs/SEALib.sol +320 -0
  258. package/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol +44 -0
  259. package/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol +390 -0
  260. package/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol +583 -0
  261. package/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol +153 -0
  262. package/contracts/minter-suite/MinterFilter/MinterFilterV0.sol +3 -3
  263. package/contracts/minter-suite/MinterFilter/MinterFilterV1.sol +5 -5
  264. package/contracts/minter-suite/MinterFilter/MinterFilterV2.sol +83 -9
  265. package/contracts/minter-suite/Minters/MinterBase_v0_1_1.sol +4 -4
  266. package/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol +966 -0
  267. package/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol +3 -3
  268. package/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol +1126 -0
  269. package/contracts/minter-suite/Minters/MinterDAExpV4.sol +3 -3
  270. package/contracts/minter-suite/Minters/MinterDAExpV5.sol +606 -0
  271. package/contracts/minter-suite/Minters/MinterDALinHolderV5.sol +952 -0
  272. package/contracts/minter-suite/Minters/MinterDALinV4.sol +3 -3
  273. package/contracts/minter-suite/Minters/MinterDALinV5.sol +591 -0
  274. package/contracts/minter-suite/Minters/MinterHolderV4.sol +4 -4
  275. package/contracts/minter-suite/Minters/MinterMerkleV5.sol +4 -4
  276. package/contracts/minter-suite/Minters/MinterPolyptychV0.sol +6 -6
  277. package/contracts/minter-suite/Minters/MinterSEAV0.sol +3 -3
  278. package/contracts/minter-suite/Minters/MinterSEAV1.sol +1190 -0
  279. package/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol +5 -5
  280. package/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol +570 -0
  281. package/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol +821 -0
  282. package/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol +802 -0
  283. package/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol +1096 -0
  284. package/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol +992 -0
  285. package/contracts/minter-suite/Minters/MinterSetPriceV4.sol +3 -3
  286. package/contracts/minter-suite/Minters/MinterSetPriceV5.sol +461 -0
  287. package/contracts/mock/BytecodeV0TextCR_DMock.sol +1 -1
  288. package/contracts/mock/BytecodeV1LibCallsMock.sol +1 -1
  289. package/contracts/mock/BytecodeV1TextCR_DMock.sol +1 -1
  290. package/contracts/mock/DeadReceiverBidderMock.sol +15 -0
  291. package/contracts/mock/DummySharedMinter.sol +2 -2
  292. package/contracts/mock/ERC20Mock.sol +16 -0
  293. package/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol +9 -9
  294. package/contracts/mock/MockAdminACLV0.sol +1 -1
  295. package/contracts/mock/MockAdminACLV0_PROHIBITION.sol +1 -1
  296. package/contracts/mock/OriginRegisterMock.sol +1 -1
  297. package/contracts/mock/ReentrancyHolderMock.sol +1 -1
  298. package/contracts/mock/ReentrancyMerkleMock.sol +1 -1
  299. package/contracts/mock/ReentrancyMock.sol +1 -1
  300. package/contracts/mock/ReentrancySEAMock.sol +1 -1
  301. package/contracts/mock/SSTORE2Mock.sol +1 -1
  302. package/contracts/randomizer/deprecated/BasicRandomizer.sol +1 -1
  303. package/contracts/randomizer/deprecated/PolyptychRandomizerV0.sol +2 -2
  304. package/contracts/randomizer/deprecated/RandomizerV2.sol +2 -2
  305. package/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol +1 -1
  306. package/contracts/randomizer/shared/SharedRandomizerV0.sol +91 -76
  307. package/contracts/royalty-registry/GenArt721RoyaltyOverride.sol +2 -2
  308. package/contracts/royalty-registry/GenArt721RoyaltyOverride_PBAB.sol +2 -2
  309. package/package.json +46 -31
  310. package/LICENSE +0 -165
  311. package/contracts/interfaces/0.8.x/IRandomizer_V3CoreBase.sol +0 -10
  312. /package/contracts/interfaces/{0.5.x → v0.5.x}/IBonusContract.sol +0 -0
  313. /package/contracts/interfaces/{0.5.x → v0.5.x}/IGenArt721CoreContractV1.sol +0 -0
  314. /package/contracts/interfaces/{0.5.x → v0.5.x}/IGenArt721CoreV2_PBAB.sol +0 -0
  315. /package/contracts/interfaces/{0.5.x → v0.5.x}/IRandomizer.sol +0 -0
  316. /package/contracts/interfaces/{0.8.x → v0.8.x}/IAdminACLV0.sol +0 -0
  317. /package/contracts/interfaces/{0.8.x → v0.8.x}/IArtblocksRoyaltyOverride.sol +0 -0
  318. /package/contracts/interfaces/{0.8.x → v0.8.x}/IBonusContract.sol +0 -0
  319. /package/contracts/interfaces/{0.8.x → v0.8.x}/IBytecodeStorageReader.sol +0 -0
  320. /package/contracts/interfaces/{0.8.x → v0.8.x}/ICoreRegistryV1.sol +0 -0
  321. /package/contracts/interfaces/{0.8.x → v0.8.x}/IDelegationRegistry.sol +0 -0
  322. /package/contracts/interfaces/{0.8.x → v0.8.x}/IDependencyRegistryCompatibleV0.sol +0 -0
  323. /package/contracts/interfaces/{0.8.x → v0.8.x}/IEngineRegistryV0.sol +0 -0
  324. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlementV0.sol +0 -0
  325. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlementV1.sol +0 -0
  326. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpSettlement_Mixin.sol +0 -0
  327. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpV0.sol +0 -0
  328. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDAExpV1.sol +0 -0
  329. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDALinV0.sol +0 -0
  330. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterDALinV1.sol +0 -0
  331. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV0.sol +0 -0
  332. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV1.sol +0 -0
  333. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterHolderV2.sol +0 -0
  334. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV0.sol +0 -0
  335. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV1.sol +0 -0
  336. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterMerkleV2.sol +0 -0
  337. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterSEAV0.sol +0 -0
  338. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV0.sol +0 -0
  339. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV1.sol +0 -0
  340. /package/contracts/interfaces/{0.8.x → v0.8.x}/IFilteredMinterV2.sol +0 -0
  341. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractExposesHashSeed.sol +0 -0
  342. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV1.sol +0 -0
  343. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3.sol +0 -0
  344. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Base.sol +0 -0
  345. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Engine.sol +0 -0
  346. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreContractV3_Engine_Flex.sol +0 -0
  347. /package/contracts/interfaces/{0.8.x → v0.8.x}/IGenArt721CoreV2_PBAB.sol +0 -0
  348. /package/contracts/interfaces/{0.8.x → v0.8.x}/IManifold.sol +0 -0
  349. /package/contracts/interfaces/{0.8.x → v0.8.x}/IMinterBaseV0.sol +0 -0
  350. /package/contracts/interfaces/{0.8.x → v0.8.x}/IMinterFilterV0.sol +0 -0
  351. /package/contracts/interfaces/{0.8.x → v0.8.x}/IMintingAPICoreV0.sol +0 -0
  352. /package/contracts/interfaces/{0.8.x → v0.8.x}/IMintingAPIMinterV0.sol +0 -0
  353. /package/contracts/interfaces/{0.8.x → v0.8.x}/IPseudorandomAtomic.sol +0 -0
  354. /package/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizer.sol +0 -0
  355. /package/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizerPolyptychV0.sol +0 -0
  356. /package/contracts/interfaces/{0.8.x → v0.8.x}/IRandomizerV2.sol +0 -0
  357. /package/contracts/interfaces/{0.8.x → v0.8.x}/IWETH.sol +0 -0
  358. /package/contracts/libs/{0.5.x → v0.5.x}/CustomERC721Metadata.sol +0 -0
  359. /package/contracts/libs/{0.5.x → v0.5.x}/IERC20.sol +0 -0
  360. /package/contracts/libs/{0.5.x → v0.5.x}/SafeMath.sol +0 -0
  361. /package/contracts/libs/{0.5.x → v0.5.x}/Strings.sol +0 -0
  362. /package/contracts/libs/{0.8.x → v0.8.x}/BytecodeStorageV0.sol +0 -0
  363. /package/contracts/libs/{0.8.x → v0.8.x}/BytecodeStorageV1.sol +0 -0
  364. /package/contracts/libs/{0.8.x → v0.8.x}/Bytes32Strings.sol +0 -0
  365. /package/contracts/libs/{0.8.x → v0.8.x}/ERC721_PackedHashSeed.sol +0 -0
  366. /package/contracts/libs/{0.8.x → v0.8.x}/SSTORE2.sol +0 -0
@@ -1,9 +1,9 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
  // Created By: Art Blocks Inc.
3
3
 
4
- import "../../interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol";
5
- import "../../interfaces/0.8.x/IMinterFilterV0.sol";
6
- import "../../interfaces/0.8.x/IFilteredMinterDAExpV1.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
7
  import "./MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
@@ -0,0 +1,606 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ // Created By: Art Blocks Inc.
3
+
4
+ import "../../interfaces/v0.8.x/ISharedMinterSimplePurchaseV0.sol";
5
+ import "../../interfaces/v0.8.x/ISharedMinterV0.sol";
6
+ import "../../interfaces/v0.8.x/ISharedMinterDAV0.sol";
7
+ import "../../interfaces/v0.8.x/ISharedMinterDAExpV0.sol";
8
+ import "../../interfaces/v0.8.x/IMinterFilterV1.sol";
9
+
10
+ import "../../libs/v0.8.x/minter-libs/SplitFundsLib.sol";
11
+ import "../../libs/v0.8.x/minter-libs/MaxInvocationsLib.sol";
12
+ import "../../libs/v0.8.x/minter-libs/DAExpLib.sol";
13
+ import "../../libs/v0.8.x/AuthLib.sol";
14
+
15
+ import "@openzeppelin-4.7/contracts/utils/math/SafeCast.sol";
16
+ import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
17
+
18
+ pragma solidity 0.8.19;
19
+
20
+ /**
21
+ * @title Shared, filtered Minter contract that allows tokens to be minted with
22
+ * ETH. Pricing is achieved using an automated, exponential Dutch-auction mechanism.
23
+ * This is designed to be used with GenArt721CoreContractV3 flagship or
24
+ * engine contracts.
25
+ * @author Art Blocks Inc.
26
+ * @notice Privileged Roles and Ownership:
27
+ * This contract is designed to be managed, with limited powers.
28
+ * Privileged roles and abilities are controlled by the project's artist, which
29
+ * can be modified by the core contract's Admin ACL contract. Both of these
30
+ * roles hold extensive power and can modify minter details.
31
+ * Care must be taken to ensure that the admin ACL contract and artist
32
+ * addresses are secure behind a multi-sig or other access control mechanism.
33
+ * ----------------------------------------------------------------------------
34
+ * The following functions are restricted to the minter filter's Admin ACL
35
+ * contract:
36
+ * - setMinimumPriceDecayHalfLifeSeconds
37
+ * ----------------------------------------------------------------------------
38
+ * The following functions are restricted to the core contract's Admin ACL
39
+ * contract:
40
+ * - resetAuctionDetails (note: this will prevent minting until a new auction
41
+ * is created)
42
+ * ----------------------------------------------------------------------------
43
+ * The following functions are restricted to a project's artist:
44
+ * - setAuctionDetails (note: this may only be called when there is no active
45
+ * auction)
46
+ * - syncProjectMaxInvocationsToCore
47
+ * - manuallyLimitProjectMaxInvocations
48
+ * ----------------------------------------------------------------------------
49
+ * Additional admin and artist privileged roles may be described on other
50
+ * contracts that this minter integrates with.
51
+ *
52
+ * @dev Note that while this minter makes use of `block.timestamp` and it is
53
+ * technically possible that this value is manipulated by block producers, such
54
+ * manipulation will not have material impact on the price values of this minter
55
+ * given the business practices for how pricing is congfigured for this minter
56
+ * and that variations on the order of less than a minute should not
57
+ * meaningfully impact price given the minimum allowable price decay rate that
58
+ * this minter intends to support.
59
+ */
60
+ contract MinterDAExpV5 is
61
+ ReentrancyGuard,
62
+ ISharedMinterSimplePurchaseV0,
63
+ ISharedMinterV0,
64
+ ISharedMinterDAV0,
65
+ ISharedMinterDAExpV0
66
+ {
67
+ using SafeCast for uint256;
68
+ /// Minter filter address this minter interacts with
69
+ address public immutable minterFilterAddress;
70
+
71
+ /// Minter filter this minter may interact with.
72
+ IMinterFilterV1 private immutable minterFilter;
73
+
74
+ /// minterType for this minter
75
+ string public constant minterType = "MinterDAExpV5";
76
+
77
+ /// minter version for this minter
78
+ string public constant minterVersion = "v5.0.0";
79
+
80
+ uint256 constant ONE_MILLION = 1_000_000;
81
+ //// Minimum price decay half life: price must decay with a half life of at
82
+ /// least this amount (must cut in half at least every N seconds).
83
+ uint256 public minimumPriceDecayHalfLifeSeconds = 45; // 45 seconds
84
+
85
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
86
+ // STATE VARIABLES FOR SplitFundsLib begin here
87
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
88
+
89
+ // contractAddress => IsEngineCache
90
+ mapping(address => SplitFundsLib.IsEngineCache) private _isEngineCaches;
91
+
92
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
93
+ // STATE VARIABLES FOR SplitFundsLib end here
94
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
95
+
96
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
97
+ // STATE VARIABLES FOR DAExpLib begin here
98
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
99
+
100
+ mapping(address => mapping(uint256 => DAExpLib.DAProjectConfig))
101
+ private _auctionProjectConfigMapping;
102
+
103
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
104
+ // STATE VARIABLES FOR DAExpLib end here
105
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
106
+
107
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
108
+ // STATE VARIABLES FOR MaxInvocationsLib begin here
109
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
110
+
111
+ // contractAddress => projectId => max invocations specific project config
112
+ mapping(address => mapping(uint256 => MaxInvocationsLib.MaxInvocationsProjectConfig))
113
+ private _maxInvocationsProjectConfigMapping;
114
+
115
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
116
+ // STATE VARIABLES FOR MaxInvocationsLib end here
117
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////
118
+
119
+ /**
120
+ * @notice Initializes contract to be a Filtered Minter for
121
+ * `_minterFilter` minter filter.
122
+ * @param _minterFilter Minter filter for which this will be a
123
+ * filtered minter.
124
+ */
125
+ constructor(address _minterFilter) ReentrancyGuard() {
126
+ minterFilterAddress = _minterFilter;
127
+ minterFilter = IMinterFilterV1(_minterFilter);
128
+ emit AuctionMinHalfLifeSecondsUpdated(minimumPriceDecayHalfLifeSeconds);
129
+ }
130
+
131
+ /**
132
+ * @notice Manually sets the local maximum invocations of project `_projectId`
133
+ * with the provided `_maxInvocations`, checking that `_maxInvocations` is less
134
+ * than or equal to the value of project `_project_id`'s maximum invocations that is
135
+ * set on the core contract.
136
+ * @dev Note that a `_maxInvocations` of 0 can only be set if the current `invocations`
137
+ * value is also 0 and this would also set `maxHasBeenInvoked` to true, correctly short-circuiting
138
+ * this minter's purchase function, avoiding extra gas costs from the core contract's maxInvocations check.
139
+ * @param _projectId Project ID to set the maximum invocations for.
140
+ * @param _coreContract Core contract address for the given project.
141
+ * @param _maxInvocations Maximum invocations to set for the project.
142
+ */
143
+ function manuallyLimitProjectMaxInvocations(
144
+ uint256 _projectId,
145
+ address _coreContract,
146
+ uint24 _maxInvocations
147
+ ) external {
148
+ AuthLib.onlyArtist({
149
+ _projectId: _projectId,
150
+ _coreContract: _coreContract,
151
+ _sender: msg.sender
152
+ });
153
+ MaxInvocationsLib.manuallyLimitProjectMaxInvocations({
154
+ _projectId: _projectId,
155
+ _coreContract: _coreContract,
156
+ _maxInvocations: _maxInvocations,
157
+ maxInvocationsProjectConfig: _maxInvocationsProjectConfigMapping[
158
+ _coreContract
159
+ ][_projectId]
160
+ });
161
+
162
+ emit ProjectMaxInvocationsLimitUpdated(
163
+ _projectId,
164
+ _coreContract,
165
+ _maxInvocations
166
+ );
167
+ }
168
+
169
+ /**
170
+ * @notice Sets auction details for project `_projectId`.
171
+ * Requires one of the following:
172
+ * - The auction is unconfigured
173
+ * - The auction has not yet started
174
+ * - The minter-local max invocations have been reached
175
+ * @dev Note that allowing the artist to set auction details after reaching
176
+ * max invocations effectively grants the artist the ability to set a new
177
+ * auction at any point, since minter-local max invocations can be set by
178
+ * the artist.
179
+ * @param _projectId Project ID to set auction details for.
180
+ * @param _coreContract Core contract address for the given project.
181
+ * @param _auctionTimestampStart Timestamp at which to start the auction.
182
+ * @param _priceDecayHalfLifeSeconds The half life with which to decay the
183
+ * price (in seconds).
184
+ * @param _startPrice Price at which to start the auction, in Wei.
185
+ * @param _basePrice Resting price of the auction, in Wei.
186
+ * @dev Note that it is intentionally supported here that the configured
187
+ * price may be explicitly set to `0`.
188
+ */
189
+ function setAuctionDetails(
190
+ uint256 _projectId,
191
+ address _coreContract,
192
+ uint40 _auctionTimestampStart,
193
+ uint40 _priceDecayHalfLifeSeconds,
194
+ uint256 _startPrice,
195
+ uint256 _basePrice
196
+ ) external {
197
+ AuthLib.onlyArtist({
198
+ _projectId: _projectId,
199
+ _coreContract: _coreContract,
200
+ _sender: msg.sender
201
+ });
202
+ // CHECKS
203
+ DAExpLib.DAProjectConfig
204
+ storage _auctionProjectConfig = _auctionProjectConfigMapping[
205
+ _coreContract
206
+ ][_projectId];
207
+ MaxInvocationsLib.MaxInvocationsProjectConfig
208
+ storage _maxInvocationsProjectConfig = _maxInvocationsProjectConfigMapping[
209
+ _coreContract
210
+ ][_projectId];
211
+
212
+ require(
213
+ (_priceDecayHalfLifeSeconds >= minimumPriceDecayHalfLifeSeconds),
214
+ "Price decay half life must be greater than min allowable value"
215
+ );
216
+
217
+ // EFFECTS
218
+ bool maxHasBeenInvoked = MaxInvocationsLib.getMaxHasBeenInvoked(
219
+ _maxInvocationsProjectConfig
220
+ );
221
+ DAExpLib.setAuctionDetailsExp({
222
+ _DAProjectConfig: _auctionProjectConfig,
223
+ _auctionTimestampStart: _auctionTimestampStart,
224
+ _priceDecayHalfLifeSeconds: _priceDecayHalfLifeSeconds,
225
+ _startPrice: _startPrice.toUint88(),
226
+ _basePrice: _basePrice.toUint88(),
227
+ _allowReconfigureAfterStart: maxHasBeenInvoked
228
+ });
229
+
230
+ emit SetAuctionDetailsExp({
231
+ _projectId: _projectId,
232
+ _coreContract: _coreContract,
233
+ _auctionTimestampStart: _auctionTimestampStart,
234
+ _priceDecayHalfLifeSeconds: _priceDecayHalfLifeSeconds,
235
+ _startPrice: _startPrice,
236
+ _basePrice: _basePrice
237
+ });
238
+
239
+ // sync local max invocations if not initially populated
240
+ // @dev if local max invocations and maxHasBeenInvoked are both
241
+ // initial values, we know they have not been populated.
242
+ if (
243
+ MaxInvocationsLib.maxInvocationsIsUnconfigured(
244
+ _maxInvocationsProjectConfig
245
+ )
246
+ ) {
247
+ syncProjectMaxInvocationsToCore(_projectId, _coreContract);
248
+ }
249
+ }
250
+
251
+ /**
252
+ * @notice Sets the minimum and maximum values that are settable for
253
+ * `_priceDecayHalfLifeSeconds` across all projects.
254
+ * @param _minimumPriceDecayHalfLifeSeconds Minimum price decay half life
255
+ * (in seconds).
256
+ */
257
+ function setMinimumPriceDecayHalfLifeSeconds(
258
+ uint256 _minimumPriceDecayHalfLifeSeconds
259
+ ) external {
260
+ AuthLib.onlyMinterFilterAdminACL({
261
+ _minterFilterAddress: minterFilterAddress,
262
+ _sender: msg.sender,
263
+ _contract: address(this),
264
+ _selector: this.setMinimumPriceDecayHalfLifeSeconds.selector
265
+ });
266
+ require(
267
+ _minimumPriceDecayHalfLifeSeconds > 0,
268
+ "Half life of zero not allowed"
269
+ );
270
+ minimumPriceDecayHalfLifeSeconds = _minimumPriceDecayHalfLifeSeconds;
271
+
272
+ emit AuctionMinHalfLifeSecondsUpdated(
273
+ _minimumPriceDecayHalfLifeSeconds
274
+ );
275
+ }
276
+
277
+ /**
278
+ * @notice Resets auction details for project `_projectId`, zero-ing out all
279
+ * relevant auction fields. Not intended to be used in normal auction
280
+ * operation, but rather only in case of the need to halt an auction.
281
+ * @param _projectId Project ID to set auction details for.
282
+ * @param _coreContract Core contract address for the given project.
283
+ */
284
+ function resetAuctionDetails(
285
+ uint256 _projectId,
286
+ address _coreContract
287
+ ) external {
288
+ AuthLib.onlyCoreAdminACL({
289
+ _coreContract: _coreContract,
290
+ _sender: msg.sender,
291
+ _contract: address(this),
292
+ _selector: this.resetAuctionDetails.selector
293
+ });
294
+
295
+ delete _auctionProjectConfigMapping[_coreContract][_projectId];
296
+
297
+ emit ResetAuctionDetails(_projectId, _coreContract);
298
+ }
299
+
300
+ /**
301
+ * @notice Purchases a token from project `_projectId`.
302
+ * Note: Collectors should not send excessive value with their purchase
303
+ * transaction, because the artist has the ability to change the auction
304
+ * details at any time, including the price.
305
+ * @param _projectId Project ID to mint a token on.
306
+ * @param _coreContract Core contract address for the given project.
307
+ * @return tokenId Token ID of minted token
308
+ */
309
+ function purchase(
310
+ uint256 _projectId,
311
+ address _coreContract
312
+ ) external payable returns (uint256 tokenId) {
313
+ tokenId = purchaseTo({
314
+ _to: msg.sender,
315
+ _projectId: _projectId,
316
+ _coreContract: _coreContract
317
+ });
318
+
319
+ return tokenId;
320
+ }
321
+
322
+ // public getter functions
323
+ /**
324
+ * @notice Gets the maximum invocations project configuration.
325
+ * @param _projectId The ID of the project whose data needs to be fetched.
326
+ * @param _coreContract The address of the core contract.
327
+ * @return MaxInvocationsLib.MaxInvocationsProjectConfig instance with the
328
+ * configuration data.
329
+ */
330
+ function maxInvocationsProjectConfig(
331
+ uint256 _projectId,
332
+ address _coreContract
333
+ )
334
+ external
335
+ view
336
+ returns (MaxInvocationsLib.MaxInvocationsProjectConfig memory)
337
+ {
338
+ return _maxInvocationsProjectConfigMapping[_coreContract][_projectId];
339
+ }
340
+
341
+ /**
342
+ * @notice Retrieves the auction parameters for a specific project.
343
+ * @param _projectId The unique identifier for the project.
344
+ * @param _coreContract The address of the core contract for the project.
345
+ * @return timestampStart The start timestamp for the auction.
346
+ * @return priceDecayHalfLifeSeconds The half-life for the price decay
347
+ * during the auction, in seconds.
348
+ * @return startPrice The starting price of the auction.
349
+ * @return basePrice The base price of the auction.
350
+ */
351
+ function projectAuctionParameters(
352
+ uint256 _projectId,
353
+ address _coreContract
354
+ )
355
+ external
356
+ view
357
+ returns (
358
+ uint40 timestampStart,
359
+ uint40 priceDecayHalfLifeSeconds,
360
+ uint256 startPrice,
361
+ uint256 basePrice
362
+ )
363
+ {
364
+ DAExpLib.DAProjectConfig
365
+ storage _auctionProjectConfig = _auctionProjectConfigMapping[
366
+ _coreContract
367
+ ][_projectId];
368
+ timestampStart = _auctionProjectConfig.timestampStart;
369
+ priceDecayHalfLifeSeconds = _auctionProjectConfig
370
+ .priceDecayHalfLifeSeconds;
371
+ startPrice = _auctionProjectConfig.startPrice;
372
+ basePrice = _auctionProjectConfig.basePrice;
373
+ }
374
+
375
+ /**
376
+ * @notice Checks if the specified `_coreContract` is a valid engine contract.
377
+ * @dev This function retrieves the cached value of `_coreContract` from
378
+ * the `isEngineCache` mapping. If the cached value is already set, it
379
+ * returns the cached value. Otherwise, it calls the `getV3CoreIsEngine`
380
+ * function from the `SplitFundsLib` library to check if `_coreContract`
381
+ * is a valid engine contract.
382
+ * @dev This function will revert if the provided `_coreContract` is not
383
+ * a valid Engine or V3 Flagship contract.
384
+ * @param _coreContract The address of the contract to check.
385
+ * @return bool indicating if `_coreContract` is a valid engine contract.
386
+ */
387
+ function isEngineView(address _coreContract) external view returns (bool) {
388
+ SplitFundsLib.IsEngineCache storage isEngineCache = _isEngineCaches[
389
+ _coreContract
390
+ ];
391
+ if (isEngineCache.isCached) {
392
+ return isEngineCache.isEngine;
393
+ } else {
394
+ // @dev this calls the non-modifying variant of getV3CoreIsEngine
395
+ return SplitFundsLib.getV3CoreIsEngineView(_coreContract);
396
+ }
397
+ }
398
+
399
+ /**
400
+ * @notice projectId => has project reached its maximum number of
401
+ * invocations? Note that this returns a local cache of the core contract's
402
+ * state, and may be out of sync with the core contract. This is
403
+ * intentional, as it only enables gas optimization of mints after a
404
+ * project's maximum invocations has been reached. A false negative will
405
+ * only result in a gas cost increase, since the core contract will still
406
+ * enforce a maxInvocation check during minting. A false positive is not
407
+ * possible because the V3 core contract only allows maximum invocations
408
+ * to be reduced, not increased. Based on this rationale, we intentionally
409
+ * do not do input validation in this method as to whether or not the input
410
+ * @param _projectId is an existing project ID.
411
+ * @param _coreContract is an existing core contract address.
412
+ */
413
+ function projectMaxHasBeenInvoked(
414
+ uint256 _projectId,
415
+ address _coreContract
416
+ ) external view returns (bool) {
417
+ return
418
+ MaxInvocationsLib.getMaxHasBeenInvoked(
419
+ _maxInvocationsProjectConfigMapping[_coreContract][_projectId]
420
+ );
421
+ }
422
+
423
+ /**
424
+ * @notice projectId => project's maximum number of invocations.
425
+ * Optionally synced with core contract value, for gas optimization.
426
+ * Note that this returns a local cache of the core contract's
427
+ * state, and may be out of sync with the core contract. This is
428
+ * intentional, as it only enables gas optimization of mints after a
429
+ * project's maximum invocations has been reached.
430
+ * @dev A number greater than the core contract's project max invocations
431
+ * will only result in a gas cost increase, since the core contract will
432
+ * still enforce a maxInvocation check during minting. A number less than
433
+ * the core contract's project max invocations is only possible when the
434
+ * project's max invocations have not been synced on this minter, since the
435
+ * V3 core contract only allows maximum invocations to be reduced, not
436
+ * increased. When this happens, the minter will enable minting, allowing
437
+ * the core contract to enforce the max invocations check. Based on this
438
+ * rationale, we intentionally do not do input validation in this method as
439
+ * to whether or not the input `_projectId` is an existing project ID.
440
+ * @param _projectId is an existing project ID.
441
+ * @param _coreContract is an existing core contract address.
442
+ */
443
+ function projectMaxInvocations(
444
+ uint256 _projectId,
445
+ address _coreContract
446
+ ) external view returns (uint256) {
447
+ return
448
+ MaxInvocationsLib.getMaxInvocations(
449
+ _maxInvocationsProjectConfigMapping[_coreContract][_projectId]
450
+ );
451
+ }
452
+
453
+ /**
454
+ * @notice Gets if price of token is configured, price of minting a
455
+ * token on project `_projectId`, and currency symbol and address to be
456
+ * used as payment. Supersedes any core contract price information.
457
+ * @param _projectId Project ID to get price information for
458
+ * @param _coreContract Contract address of the core contract
459
+ * @return isConfigured true only if token price has been configured on
460
+ * this minter
461
+ * @return tokenPriceInWei current price of token on this minter - invalid
462
+ * if price has not yet been configured
463
+ * @return currencySymbol currency symbol for purchases of project on this
464
+ * minter. This minter always returns "ETH"
465
+ * @return currencyAddress currency address for purchases of project on
466
+ * this minter. This minter always returns null address, reserved for ether
467
+ */
468
+ function getPriceInfo(
469
+ uint256 _projectId,
470
+ address _coreContract
471
+ )
472
+ external
473
+ view
474
+ returns (
475
+ bool isConfigured,
476
+ uint256 tokenPriceInWei,
477
+ string memory currencySymbol,
478
+ address currencyAddress
479
+ )
480
+ {
481
+ DAExpLib.DAProjectConfig
482
+ storage auctionProjectConfig = _auctionProjectConfigMapping[
483
+ _coreContract
484
+ ][_projectId];
485
+ isConfigured = (auctionProjectConfig.startPrice > 0);
486
+ if (!isConfigured) {
487
+ // In the case of unconfigured auction, return price of zero when
488
+ // getPriceExp would otherwise revert
489
+ tokenPriceInWei = 0;
490
+ } else if (block.timestamp <= auctionProjectConfig.timestampStart) {
491
+ // Provide a reasonable value for `tokenPriceInWei` when
492
+ // getPriceExp would otherwise revert, using the starting price
493
+ // before auction starts.
494
+ tokenPriceInWei = auctionProjectConfig.startPrice;
495
+ } else {
496
+ tokenPriceInWei = DAExpLib.getPriceExp(auctionProjectConfig);
497
+ }
498
+ currencySymbol = "ETH";
499
+ currencyAddress = address(0);
500
+ }
501
+
502
+ /**
503
+ * @notice Syncs local maximum invocations of project `_projectId` based on
504
+ * the value currently defined in the core contract.
505
+ * @param _projectId Project ID to set the maximum invocations for.
506
+ * @param _coreContract Core contract address for the given project.
507
+ * @dev this enables gas reduction after maxInvocations have been reached -
508
+ * core contracts shall still enforce a maxInvocation check during mint.
509
+ */
510
+ function syncProjectMaxInvocationsToCore(
511
+ uint256 _projectId,
512
+ address _coreContract
513
+ ) public {
514
+ AuthLib.onlyArtist({
515
+ _projectId: _projectId,
516
+ _coreContract: _coreContract,
517
+ _sender: msg.sender
518
+ });
519
+
520
+ uint256 maxInvocations = MaxInvocationsLib
521
+ .syncProjectMaxInvocationsToCore({
522
+ _projectId: _projectId,
523
+ _coreContract: _coreContract,
524
+ maxInvocationsProjectConfig: _maxInvocationsProjectConfigMapping[
525
+ _coreContract
526
+ ][_projectId]
527
+ });
528
+ emit ProjectMaxInvocationsLimitUpdated(
529
+ _projectId,
530
+ _coreContract,
531
+ maxInvocations
532
+ );
533
+ }
534
+
535
+ /**
536
+ * @notice Purchases a token from project `_projectId` and sets
537
+ * the token's owner to `_to`.
538
+ * Note: Collectors should not send excessive value with their purchase
539
+ * transaction, because the artist has the ability to change the auction
540
+ * details at any time, including the price.
541
+ * @param _to Address to be the new token's owner.
542
+ * @param _projectId Project ID to mint a token on.
543
+ * @param _coreContract Core contract address for the given project.
544
+ * @return tokenId Token ID of minted token
545
+ */
546
+ function purchaseTo(
547
+ address _to,
548
+ uint256 _projectId,
549
+ address _coreContract
550
+ ) public payable nonReentrant returns (uint256 tokenId) {
551
+ // CHECKS
552
+ MaxInvocationsLib.MaxInvocationsProjectConfig
553
+ storage _maxInvocationsProjectConfig = _maxInvocationsProjectConfigMapping[
554
+ _coreContract
555
+ ][_projectId];
556
+
557
+ DAExpLib.DAProjectConfig
558
+ storage _auctionProjectConfig = _auctionProjectConfigMapping[
559
+ _coreContract
560
+ ][_projectId];
561
+
562
+ // Note that `maxHasBeenInvoked` is only checked here to reduce gas
563
+ // consumption after a project has been fully minted.
564
+ // `_maxInvocationsProjectConfig.maxHasBeenInvoked` is locally cached to reduce
565
+ // gas consumption, but if not in sync with the core contract's value,
566
+ // the core contract also enforces its own max invocation check during
567
+ // minting.
568
+ require(
569
+ !_maxInvocationsProjectConfig.maxHasBeenInvoked,
570
+ "Max invocations reached"
571
+ );
572
+
573
+ // getPriceExp reverts if auction is unconfigured or has not started
574
+ uint256 pricePerTokenInWei = DAExpLib.getPriceExp(
575
+ _auctionProjectConfig
576
+ );
577
+ require(msg.value >= pricePerTokenInWei, "Min value to mint req.");
578
+
579
+ // EFFECTS
580
+ tokenId = minterFilter.mint_joo({
581
+ _to: _to,
582
+ _projectId: _projectId,
583
+ _coreContract: _coreContract,
584
+ _sender: msg.sender
585
+ });
586
+
587
+ MaxInvocationsLib.validatePurchaseEffectsInvocations(
588
+ tokenId,
589
+ _maxInvocationsProjectConfig
590
+ );
591
+
592
+ // INTERACTIONS
593
+ bool isEngine = SplitFundsLib.isEngine(
594
+ _coreContract,
595
+ _isEngineCaches[_coreContract]
596
+ );
597
+ SplitFundsLib.splitFundsETH({
598
+ _projectId: _projectId,
599
+ _pricePerTokenInWei: pricePerTokenInWei,
600
+ _coreContract: _coreContract,
601
+ _isEngine: isEngine
602
+ });
603
+
604
+ return tokenId;
605
+ }
606
+ }