@artblocks/contracts 1.0.2 → 1.0.3

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 (194) hide show
  1. package/README.md +30 -2
  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 +22 -4
  5. package/artifacts/contracts/GenArt721CoreV3.sol/GenArt721CoreV3.json +42 -5
  6. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV2.sol/MinterDAExpV2.json +2 -2
  7. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV3.sol/MinterDAExpV3.json +2 -2
  8. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol/MinterDAExpSettlementV0.json +2 -2
  9. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol/MinterDAExpSettlementV1.json +2 -2
  10. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV2.sol/MinterDALinV2.json +2 -2
  11. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV3.sol/MinterDALinV3.json +2 -2
  12. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV1.sol/MinterHolderV1.json +2 -2
  13. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV2.sol/MinterHolderV2.json +2 -2
  14. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV3.sol/MinterHolderV3.json +2 -2
  15. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV1.sol/MinterMerkleV1.json +2 -2
  16. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV2.sol/MinterMerkleV2.json +2 -2
  17. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV3.sol/MinterMerkleV3.json +2 -2
  18. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV4.sol/MinterMerkleV4.json +2 -2
  19. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol/MinterSetPriceV2.json +2 -2
  20. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol/MinterSetPriceV3.json +2 -2
  21. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol/MinterSetPriceERC20V2.json +2 -2
  22. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol/MinterSetPriceERC20V3.json +2 -2
  23. package/artifacts/contracts/engine/{GenArt721CoreV2_ENGINE_FLEX.sol → V2/GenArt721CoreV2_ENGINE_FLEX.sol}/GenArt721CoreV2_ENGINE_FLEX.json +3 -3
  24. package/artifacts/contracts/engine/{GenArt721CoreV2_PBAB.sol → V2/GenArt721CoreV2_PBAB.sol}/GenArt721CoreV2_PBAB.json +3 -3
  25. package/artifacts/contracts/engine/{GenArt721CoreV2_PRTNR.sol → V2/GenArt721CoreV2_PRTNR.sol}/GenArt721CoreV2_PRTNR.json +3 -3
  26. package/artifacts/contracts/engine/{GenArt721MinterBurner_PBAB.sol → V2/GenArt721MinterBurner_PBAB.sol}/GenArt721MinterBurner_PBAB.json +3 -3
  27. package/artifacts/contracts/engine/{GenArt721MinterDAExp_PBAB.sol → V2/GenArt721MinterDAExp_PBAB.sol}/GenArt721MinterDAExp_PBAB.json +3 -3
  28. package/artifacts/contracts/engine/{GenArt721Minter_PBAB.sol → V2/GenArt721Minter_PBAB.sol}/GenArt721Minter_PBAB.json +3 -3
  29. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +1960 -0
  30. package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +2247 -0
  31. package/artifacts/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol/GenArt721CoreV3_Engine_Flex_PROOF.json +2247 -0
  32. package/artifacts/contracts/engine/V3/forks/PROHIBITION/AdminACLV0_PROHIBITION.sol/AdminACLV0_PROHIBITION.json +401 -0
  33. package/artifacts/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol/GenArt721CoreV3_Engine_Flex_PROHIBITION.json +2281 -0
  34. package/artifacts/contracts/engine/V3/forks/PROHIBITION/interfaces/IAdminACLV0_PROHIBITION.sol/IAdminACLV0_PROHIBITION.json +359 -0
  35. package/artifacts/contracts/engine/V3/forks/PROHIBITION/interfaces/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.sol/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.json +1094 -0
  36. package/artifacts/contracts/engine-registry/CoreRegistryV1.sol/CoreRegistryV1.json +242 -0
  37. package/artifacts/contracts/engine-registry/EngineRegistryV0.sol/EngineRegistryV0.json +2 -2
  38. package/artifacts/contracts/explorations/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +41 -4
  39. package/artifacts/contracts/interfaces/0.8.x/IBytecodeStorageReader.sol/IBytecodeStorageReader.json +111 -0
  40. package/artifacts/contracts/interfaces/0.8.x/ICoreRegistryV1.sol/ICoreRegistryV1.json +172 -0
  41. package/artifacts/contracts/interfaces/0.8.x/IFilteredMinterSEAV0.sol/IFilteredMinterSEAV0.json +55 -53
  42. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractExposesHashSeed.sol/IGenArt721CoreContractExposesHashSeed.json +30 -0
  43. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3.sol/IGenArt721CoreContractV3.json +13 -0
  44. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol/IGenArt721CoreContractV3_Base.json +13 -0
  45. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol/IGenArt721CoreContractV3_Engine.json +7 -13
  46. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine_Flex.sol/IGenArt721CoreContractV3_Engine_Flex.json +7 -13
  47. package/artifacts/contracts/interfaces/0.8.x/IMinterFilterV1.sol/IMinterFilterV1.json +429 -0
  48. package/artifacts/contracts/interfaces/0.8.x/IPseudorandomAtomic.sol/IPseudorandomAtomic.json +30 -0
  49. package/artifacts/contracts/interfaces/0.8.x/IRandomizer_V3CoreBase.sol/IRandomizer_V3CoreBase.json +24 -0
  50. package/artifacts/contracts/interfaces/0.8.x/ISharedRandomizerV0.sol/ISharedRandomizerV0.json +207 -0
  51. package/artifacts/contracts/libs/0.8.x/{BytecodeStorage.sol → BytecodeStorageV0.sol}/BytecodeStorage.json +3 -3
  52. package/artifacts/contracts/libs/0.8.x/BytecodeStorageV1.sol/BytecodeStorageReader.json +163 -0
  53. package/artifacts/contracts/libs/0.8.x/BytecodeStorageV1.sol/BytecodeStorageWriter.json +10 -0
  54. package/artifacts/contracts/libs/0.8.x/Bytes32Strings.sol/Bytes32Strings.json +2 -2
  55. package/artifacts/contracts/libs/0.8.x/ERC721_PackedHashSeed.sol/ERC721_PackedHashSeed.json +2 -2
  56. package/artifacts/contracts/libs/0.8.x/SSTORE2.sol/SSTORE2.json +10 -0
  57. package/artifacts/contracts/libs/integration-refs/delegation-registry/DelegationRegistry.sol/DelegationRegistry.json +2 -2
  58. package/artifacts/contracts/libs/integration-refs/gnosis-safe/GnosisSafeMock.sol/GnosisSafeMock.json +2 -2
  59. package/artifacts/contracts/libs/integration-refs/gnosis-safe/GnosisSafeProxyFactoryMock.sol/GnosisSafeProxyFactoryMock.json +2 -2
  60. package/artifacts/contracts/libs/integration-refs/gnosis-safe/MultiSendMock.sol/MultiSendMock.json +2 -2
  61. package/artifacts/contracts/libs/integration-refs/weth9/weth9.sol/WETH9_.json +2 -2
  62. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV1.sol/MinterFilterV1.json +2 -2
  63. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV2.sol/MinterFilterV2.json +692 -0
  64. package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol/MinterDAExpSettlementV2.json +2 -2
  65. package/artifacts/contracts/minter-suite/Minters/MinterDAExpV4.sol/MinterDAExpV4.json +2 -2
  66. package/artifacts/contracts/minter-suite/Minters/MinterDALinV4.sol/MinterDALinV4.json +2 -2
  67. package/artifacts/contracts/minter-suite/Minters/MinterHolderV4.sol/MinterHolderV4.json +2 -2
  68. package/artifacts/contracts/minter-suite/Minters/MinterMerkleV5.sol/MinterMerkleV5.json +2 -2
  69. package/artifacts/contracts/minter-suite/Minters/MinterPolyptychV0.sol/IGenArt721CoreContractV3WithRandomizer.json +10 -160
  70. package/artifacts/contracts/minter-suite/Minters/MinterPolyptychV0.sol/MinterPolyptychV0.json +2 -2
  71. package/artifacts/contracts/minter-suite/Minters/MinterSEAV0.sol/MinterSEAV0.json +59 -80
  72. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol/MinterSetPriceERC20V4.json +2 -2
  73. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV4.sol/MinterSetPriceV4.json +2 -2
  74. package/artifacts/contracts/mock/{BytecodeTextCR_DMock.sol/BytecodeTextCR_DMock.json → BytecodeV0TextCR_DMock.sol/BytecodeV0TextCR_DMock.json} +4 -4
  75. package/artifacts/contracts/mock/BytecodeV1LibCallsMock.sol/BytecodeV1LibCallsMock.json +135 -0
  76. package/artifacts/contracts/mock/BytecodeV1TextCR_DMock.sol/BytecodeV1TextCR_DMock.json +301 -0
  77. package/artifacts/contracts/mock/DeadReceiverBidderMock.sol/DeadReceiverBidderMock.json +2 -2
  78. package/artifacts/contracts/mock/DeadReceiverMock.sol/DeadReceiverMock.json +2 -2
  79. package/artifacts/contracts/mock/DummySharedMinter.sol/DummySharedMinter.json +114 -0
  80. package/artifacts/contracts/mock/ERC20Mock.sol/ERC20Mock.json +2 -2
  81. package/artifacts/contracts/mock/GasLimitReceiverBidderMock.sol/GasLimitReceiverBidderMock.json +2 -2
  82. package/artifacts/contracts/mock/GasLimitReceiverMock.sol/GasLimitReceiverMock.json +2 -2
  83. package/artifacts/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol/GenArt721CoreV3_Engine_IncorrectCoreType.json +22 -4
  84. package/artifacts/contracts/mock/MockAdminACLV0.sol/MockAdminACLV0Events.json +2 -2
  85. package/artifacts/contracts/mock/MockAdminACLV0_PROHIBITION.sol/MockAdminACLV0Events_PROHIBITION.json +440 -0
  86. package/artifacts/contracts/mock/OriginRegisterMock.sol/OriginRegisterMock.json +39 -0
  87. package/artifacts/contracts/mock/RandomizerV2_NoAssignMock.sol/RandomizerV2_NoAssignMock.json +2 -2
  88. package/artifacts/contracts/mock/ReentrancyHolderMock.sol/ReentrancyHolderMock.json +2 -2
  89. package/artifacts/contracts/mock/ReentrancyMerkleMock.sol/ReentrancyMerkleMock.json +2 -2
  90. package/artifacts/contracts/mock/ReentrancyMock.sol/ReentrancyMock.json +2 -2
  91. package/artifacts/contracts/mock/ReentrancySEAMock.sol/ReentrancySEAAutoBidderMock.json +2 -2
  92. package/artifacts/contracts/mock/SSTORE2Mock.sol/SSTORE2Mock.json +118 -0
  93. package/artifacts/contracts/randomizer/{BasicRandomizer.sol → deprecated/BasicRandomizer.sol}/BasicRandomizer.json +3 -3
  94. package/artifacts/contracts/randomizer/{BasicRandomizerBase_v0_0_0.sol → deprecated/BasicRandomizerBase_v0_0_0.sol}/RandomizerBase.json +1 -1
  95. package/artifacts/contracts/randomizer/{PolyptychRandomizerV0.sol → deprecated/PolyptychRandomizerV0.sol}/BasicPolyptychRandomizerV0.json +3 -3
  96. package/artifacts/contracts/randomizer/{RandomizerV2.sol → deprecated/RandomizerV2.sol}/BasicRandomizerV2.json +3 -3
  97. package/artifacts/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol/PseudorandomAtomic.json +30 -0
  98. package/artifacts/contracts/randomizer/shared/SharedRandomizerV0.sol/SharedRandomizerV0.json +231 -0
  99. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride.sol/GenArt721RoyaltyOverride.json +2 -2
  100. package/contracts/AdminACLV0.sol +1 -1
  101. package/contracts/AdminACLV1.sol +1 -1
  102. package/contracts/DependencyRegistryV0.sol +15 -28
  103. package/contracts/GenArt721CoreV3.sol +37 -34
  104. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV2.sol +1 -1
  105. package/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV3.sol +1 -1
  106. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol +1 -1
  107. package/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol +1 -1
  108. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV2.sol +1 -1
  109. package/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV3.sol +1 -1
  110. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV1.sol +1 -1
  111. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV2.sol +1 -1
  112. package/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV3.sol +1 -1
  113. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV1.sol +1 -1
  114. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV2.sol +1 -1
  115. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV3.sol +1 -1
  116. package/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV4.sol +1 -1
  117. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol +1 -1
  118. package/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol +1 -1
  119. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol +1 -1
  120. package/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol +1 -1
  121. package/contracts/engine/{GenArt721CoreV2_ENGINE_FLEX.sol → V2/GenArt721CoreV2_ENGINE_FLEX.sol} +2 -2
  122. package/contracts/engine/{GenArt721CoreV2_PBAB.sol → V2/GenArt721CoreV2_PBAB.sol} +2 -2
  123. package/contracts/engine/{GenArt721CoreV2_PRTNR.sol → V2/GenArt721CoreV2_PRTNR.sol} +3 -3
  124. package/contracts/engine/{GenArt721MinterBurner_PBAB.sol → V2/GenArt721MinterBurner_PBAB.sol} +2 -2
  125. package/contracts/engine/{GenArt721MinterDAExp_PBAB.sol → V2/GenArt721MinterDAExp_PBAB.sol} +2 -2
  126. package/contracts/engine/{GenArt721Minter_PBAB.sol → V2/GenArt721Minter_PBAB.sol} +2 -2
  127. package/contracts/{GenArt721CoreV3_Engine.sol → engine/V3/GenArt721CoreV3_Engine.sol} +29 -20
  128. package/contracts/{GenArt721CoreV3_Engine_Flex.sol → engine/V3/GenArt721CoreV3_Engine_Flex.sol} +30 -21
  129. package/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol +2293 -0
  130. package/contracts/engine/V3/forks/PROHIBITION/AdminACLV0_PROHIBITION.sol +281 -0
  131. package/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol +2354 -0
  132. package/contracts/engine/V3/forks/PROHIBITION/interfaces/IAdminACLV0_PROHIBITION.sol +123 -0
  133. package/contracts/engine/V3/forks/PROHIBITION/interfaces/IGenArt721CoreContractV3_Engine_Flex_PROHIBITION.sol +29 -0
  134. package/contracts/engine-registry/CoreRegistryV1.sol +254 -0
  135. package/contracts/engine-registry/EngineRegistryV0.sol +1 -1
  136. package/contracts/explorations/GenArt721CoreV3_Explorations.sol +34 -31
  137. package/contracts/interfaces/0.8.x/IBytecodeStorageReader.sol +62 -0
  138. package/contracts/interfaces/0.8.x/ICoreRegistryV1.sol +27 -0
  139. package/contracts/interfaces/0.8.x/IDelegationRegistry.sol +1 -1
  140. package/contracts/interfaces/0.8.x/IDependencyRegistryCompatibleV0.sol +1 -1
  141. package/contracts/interfaces/0.8.x/IDependencyRegistryV0.sol +1 -1
  142. package/contracts/interfaces/0.8.x/IEngineRegistryV0.sol +1 -1
  143. package/contracts/interfaces/0.8.x/IFilteredMinterSEAV0.sol +34 -15
  144. package/contracts/interfaces/0.8.x/IGenArt721CoreContractExposesHashSeed.sol +11 -0
  145. package/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol +3 -0
  146. package/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol +0 -5
  147. package/contracts/interfaces/0.8.x/IMinterFilterV1.sol +158 -0
  148. package/contracts/interfaces/0.8.x/IPseudorandomAtomic.sol +16 -0
  149. package/contracts/interfaces/0.8.x/IRandomizerPolyptychV0.sol +1 -1
  150. package/contracts/interfaces/0.8.x/IRandomizerV2.sol +2 -5
  151. package/contracts/interfaces/0.8.x/IRandomizer_V3CoreBase.sol +10 -0
  152. package/contracts/interfaces/0.8.x/ISharedRandomizerV0.sol +105 -0
  153. package/contracts/libs/0.8.x/BytecodeStorageV1.sol +399 -0
  154. package/contracts/libs/0.8.x/SSTORE2.sol +109 -0
  155. package/contracts/libs/integration-refs/delegation-registry/DelegationRegistry.sol +1 -1
  156. package/contracts/libs/integration-refs/weth9/weth9.sol +2 -0
  157. package/contracts/minter-suite/MinterFilter/MinterFilterV1.sol +1 -1
  158. package/contracts/minter-suite/MinterFilter/MinterFilterV2.sol +756 -0
  159. package/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol +1 -1
  160. package/contracts/minter-suite/Minters/MinterDAExpV4.sol +1 -1
  161. package/contracts/minter-suite/Minters/MinterDALinV4.sol +1 -1
  162. package/contracts/minter-suite/Minters/MinterHolderV4.sol +1 -1
  163. package/contracts/minter-suite/Minters/MinterMerkleV5.sol +1 -1
  164. package/contracts/minter-suite/Minters/MinterPolyptychV0.sol +14 -13
  165. package/contracts/minter-suite/Minters/MinterSEAV0.sol +232 -183
  166. package/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol +1 -1
  167. package/contracts/minter-suite/Minters/MinterSetPriceV4.sol +1 -1
  168. package/contracts/mock/{BytecodeTextCR_DMock.sol → BytecodeV0TextCR_DMock.sol} +5 -5
  169. package/contracts/mock/BytecodeV1LibCallsMock.sol +114 -0
  170. package/contracts/mock/BytecodeV1TextCR_DMock.sol +233 -0
  171. package/contracts/mock/DeadReceiverBidderMock.sol +1 -1
  172. package/contracts/mock/DeadReceiverMock.sol +1 -1
  173. package/contracts/mock/DummySharedMinter.sol +75 -0
  174. package/contracts/mock/GasLimitReceiverBidderMock.sol +1 -1
  175. package/contracts/mock/GasLimitReceiverMock.sol +1 -1
  176. package/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol +14 -27
  177. package/contracts/mock/MockAdminACLV0.sol +1 -1
  178. package/contracts/mock/MockAdminACLV0_PROHIBITION.sol +207 -0
  179. package/contracts/mock/OriginRegisterMock.sol +27 -0
  180. package/contracts/mock/RandomizerV2_NoAssignMock.sol +2 -2
  181. package/contracts/mock/SSTORE2Mock.sol +93 -0
  182. package/contracts/randomizer/{BasicRandomizer.sol → deprecated/BasicRandomizer.sol} +1 -1
  183. package/contracts/randomizer/{BasicRandomizerBase_v0_0_0.sol → deprecated/BasicRandomizerBase_v0_0_0.sol} +1 -1
  184. package/contracts/randomizer/{PolyptychRandomizerV0.sol → deprecated/PolyptychRandomizerV0.sol} +3 -3
  185. package/contracts/randomizer/{RandomizerV2.sol → deprecated/RandomizerV2.sol} +3 -3
  186. package/contracts/randomizer/primitive/PseudorandomAtomicBasic.sol +30 -0
  187. package/contracts/randomizer/shared/SharedRandomizerV0.sol +245 -0
  188. package/package.json +23 -30
  189. package/.env.example +0 -17
  190. package/artifacts/contracts/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +0 -1942
  191. package/artifacts/contracts/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +0 -2229
  192. package/artifacts/contracts/engine-registry/future/EngineRegistryV1.sol/EngineRegistryV1.json +0 -109
  193. package/contracts/engine-registry/future/EngineRegistryV1.sol +0 -86
  194. /package/contracts/libs/0.8.x/{BytecodeStorage.sol → BytecodeStorageV0.sol} +0 -0
@@ -10,7 +10,7 @@ import "./MinterBase_v0_1_1.sol";
10
10
 
11
11
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
12
12
 
13
- pragma solidity 0.8.17;
13
+ pragma solidity 0.8.19;
14
14
 
15
15
  /**
16
16
  * @title Filtered Minter contract that allows tokens to be minted with ETH
@@ -8,7 +8,7 @@ import "./MinterBase_v0_1_1.sol";
8
8
 
9
9
  import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
10
10
 
11
- pragma solidity 0.8.17;
11
+ pragma solidity 0.8.19;
12
12
 
13
13
  /**
14
14
  * @title Filtered Minter contract that allows tokens to be minted with ETH.
@@ -1,19 +1,19 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
- pragma solidity 0.8.17;
2
+ pragma solidity 0.8.19;
3
3
 
4
4
  // Created By: Art Blocks Inc.
5
5
 
6
- import "../libs/0.8.x/BytecodeStorage.sol";
6
+ import "../libs/0.8.x/BytecodeStorageV0.sol";
7
7
 
8
8
  /**
9
9
  * @title Art Blocks BytecodeTextCR_DMock.
10
10
  * @author Art Blocks Inc.
11
- * @notice This contract serves as a mock client of the BytecodeStorage library
11
+ * @notice This contract serves as a mock client of the BytecodeStorageV0 library
12
12
  * to allow for more granular testing of this library than is supported
13
13
  * by the usage of the library directly by specific current Art Blocks
14
14
  * client smart contracts, such as the `GenArt721CoreV3` contract. This
15
15
  * mock exposes the CR_D (create, read, _not updates_, delete)
16
- * operations that the underlying BytecodeStorage library allows clients
16
+ * operations that the underlying BytecodeStorageV0 library allows clients
17
17
  * to support.
18
18
  * Note that because updates can only functionally be performed by
19
19
  * combining a "delete" and "create" operation, given that deployed
@@ -21,7 +21,7 @@ import "../libs/0.8.x/BytecodeStorage.sol";
21
21
  * not expose updates (the usual "U" in "CRUD") as they are not
22
22
  * supported by the underlying library.
23
23
  */
24
- contract BytecodeTextCR_DMock {
24
+ contract BytecodeV0TextCR_DMock {
25
25
  using BytecodeStorage for string;
26
26
  using BytecodeStorage for address;
27
27
 
@@ -0,0 +1,114 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ pragma solidity 0.8.19;
3
+
4
+ // Created By: Art Blocks Inc.
5
+
6
+ import "../interfaces/0.8.x/IBytecodeStorageReader.sol";
7
+
8
+ /**
9
+ * @title Art Blocks IBytecodeStorageReader-conforming mock.
10
+ * @author Art Blocks Inc.
11
+ * @notice This contract serves as a mock client of the BytecodeStorageV1 library
12
+ * to allow for testing of making direct calls (rather than delegate calls)
13
+ * to a deployed copy of the library. This is for testing purposes as this
14
+ * is the expected integration flow for direct usage of the BytecodeStorageV1
15
+ * reader library in a post-EOF world where new EOF-contracts cannot DELEGATECALL
16
+ * into legacy contracts, in which we plan to have a BytecodeStorageV2 variant
17
+ * of the library that makes use of CALL rather than DELEGATECALL for the
18
+ * purposes of backwards-compatible reads.
19
+ */
20
+ contract BytecodeV1LibCallsMock {
21
+ // Address of the deployed BytecodeStorageReader contract library under mock harness.
22
+ address public bytecodeStorageReaderDeploymentAddress;
23
+ // Deployed instance of the BytecodeStorageReader contract library under mock harness.
24
+ IBytecodeStorageReader private bytecodeStorageReaderDeployment;
25
+
26
+ /**
27
+ * @notice Initializes contract.
28
+ */
29
+ constructor(address _bytecodeStorageReaderDeploymentAddress) {
30
+ bytecodeStorageReaderDeploymentAddress = _bytecodeStorageReaderDeploymentAddress;
31
+ bytecodeStorageReaderDeployment = IBytecodeStorageReader(
32
+ _bytecodeStorageReaderDeploymentAddress
33
+ );
34
+ }
35
+
36
+ /*//////////////////////////////////////////////////////////////
37
+ Proxy Read Operations of V1 Library
38
+ //////////////////////////////////////////////////////////////*/
39
+
40
+ /**
41
+ * @notice Read a string from contract bytecode
42
+ * @param _address address of deployed contract with bytecode stored in the V0 or V1 format
43
+ * @return data string read from contract bytecode
44
+ * @dev This function performs input validation that the contract to read is in an expected format
45
+ */
46
+ function readFromBytecode(
47
+ address _address
48
+ ) public view returns (string memory data) {
49
+ return bytecodeStorageReaderDeployment.readFromBytecode(_address);
50
+ }
51
+
52
+ /**
53
+ * @notice Read the bytes from contract bytecode that was written to the EVM using SSTORE2
54
+ * @param _address address of deployed contract with bytecode stored in the SSTORE2 format
55
+ * @return data bytes read from contract bytecode
56
+ * @dev This function performs no input validation on the provided contract,
57
+ * other than that there is content to read (but not that its a "storage contract")
58
+ */
59
+ function readBytesFromSSTORE2Bytecode(
60
+ address _address
61
+ ) public view returns (bytes memory data) {
62
+ return
63
+ bytecodeStorageReaderDeployment.readBytesFromSSTORE2Bytecode(
64
+ _address
65
+ );
66
+ }
67
+
68
+ /**
69
+ * @notice Read the bytes from contract bytecode, with an explicitly provided starting offset
70
+ * @param _address address of deployed contract with bytecode stored in the V0 or V1 format
71
+ * @param _offset offset to read from in contract bytecode, explicitly provided (not calculated)
72
+ * @return data bytes read from contract bytecode
73
+ * @dev This function performs no input validation on the provided contract,
74
+ * other than that there is content to read (but not that its a "storage contract")
75
+ */
76
+ function readBytesFromBytecode(
77
+ address _address,
78
+ uint256 _offset
79
+ ) public view returns (bytes memory data) {
80
+ return
81
+ bytecodeStorageReaderDeployment.readBytesFromBytecode(
82
+ _address,
83
+ _offset
84
+ );
85
+ }
86
+
87
+ /**
88
+ * @notice Get address for deployer for given contract bytecode
89
+ * @param _address address of deployed contract with bytecode stored in the V0 or V1 format
90
+ * @return writerAddress address read from contract bytecode
91
+ */
92
+ function getWriterAddressForBytecode(
93
+ address _address
94
+ ) public view returns (address) {
95
+ return
96
+ bytecodeStorageReaderDeployment.getWriterAddressForBytecode(
97
+ _address
98
+ );
99
+ }
100
+
101
+ /**
102
+ * @notice Get version for given contract bytecode
103
+ * @param _address address of deployed contract with bytecode stored in the V0 or V1 format
104
+ * @return version version read from contract bytecode
105
+ */
106
+ function getLibraryVersionForBytecode(
107
+ address _address
108
+ ) public view returns (bytes32) {
109
+ return
110
+ bytecodeStorageReaderDeployment.getLibraryVersionForBytecode(
111
+ _address
112
+ );
113
+ }
114
+ }
@@ -0,0 +1,233 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ pragma solidity 0.8.19;
3
+
4
+ // Created By: Art Blocks Inc.
5
+
6
+ import "../libs/0.8.x/BytecodeStorageV1.sol";
7
+
8
+ /**
9
+ * @title Art Blocks BytecodeTextCR_DMock.
10
+ * @author Art Blocks Inc.
11
+ * @notice This contract serves as a mock client of the BytecodeStorageV1 library
12
+ * to allow for more granular testing of this library than is supported
13
+ * by the usage of the library directly by specific current Art Blocks
14
+ * client smart contracts, such as the `GenArt721CoreV3` contract. This
15
+ * mock exposes the CR_D (create, read, _not updates_, delete)
16
+ * operations that the underlying BytecodeStorageV1 library allows clients
17
+ * to support.
18
+ * Note that because updates can only functionally be performed by
19
+ * combining a "delete" and "create" operation, given that deployed
20
+ * contracts cannot be _updated_ directly in chain-state, this mock does
21
+ * not expose updates (the usual "U" in "CRUD") as they are not
22
+ * supported by the underlying library.
23
+ */
24
+ contract BytecodeV1TextCR_DMock {
25
+ using BytecodeStorageWriter for string;
26
+
27
+ // monotonically increasing slot counter and associated slot-storage mapping
28
+ uint256 public nextTextSlotId = 0;
29
+ mapping(uint256 => address) public storedTextBytecodeAddresses;
30
+
31
+ // save deployer address to support basic ACL checks for non-read operations
32
+ address public deployerAddress;
33
+
34
+ modifier onlyDeployer() {
35
+ require(msg.sender == deployerAddress, "Only deployer");
36
+ _;
37
+ }
38
+
39
+ /**
40
+ * @notice Initializes contract.
41
+ */
42
+ constructor() {
43
+ deployerAddress = msg.sender;
44
+ }
45
+
46
+ /*//////////////////////////////////////////////////////////////
47
+ Create Read _ Delete
48
+ //////////////////////////////////////////////////////////////*/
49
+
50
+ /**
51
+ * @notice "Create": Adds a chunk of text to be stored to chain-state.
52
+ * @param _text Text to be created in chain-state.
53
+ * @return uint256 Slot that the written bytecode contract address was
54
+ * stored in.
55
+ * @dev Intentionally do not perform input validation, instead allowing
56
+ * the underlying BytecodeStorage lib to throw errors where applicable.
57
+ */
58
+ function createText(
59
+ string memory _text
60
+ ) external onlyDeployer returns (uint256) {
61
+ // store text in contract bytecode
62
+ storedTextBytecodeAddresses[nextTextSlotId] = _text.writeToBytecode();
63
+ // record written slot before incrementing
64
+ uint256 textSlotId = nextTextSlotId;
65
+ nextTextSlotId++;
66
+ return textSlotId;
67
+ }
68
+
69
+ /**
70
+ * @notice "Read": Reads chunk of text currently in the provided slot, from
71
+ * chain-state.
72
+ * @param _textSlotId Slot (associated with this contract) for which to
73
+ * read text content.
74
+ * @return string Content read from contract bytecode in the given slot.
75
+ * @dev Intentionally do not perform input validation, instead allowing
76
+ * the underlying BytecodeStorage lib to throw errors where applicable.
77
+ */
78
+ function readText(uint256 _textSlotId) public view returns (string memory) {
79
+ return
80
+ BytecodeStorageReader.readFromBytecode(
81
+ storedTextBytecodeAddresses[_textSlotId]
82
+ );
83
+ }
84
+
85
+ /**
86
+ * @notice "Delete": Deletes chunk of text currently in the provided slot,
87
+ * from chain-state.
88
+ * @param _textSlotId Slot (associated with this contract) for which to
89
+ * delete text content.
90
+ * @dev Intentionally do not perform input validation, instead allowing
91
+ * the underlying BytecodeStorage lib to throw errors where applicable.
92
+ */
93
+ function deleteText(uint256 _textSlotId) external onlyDeployer {
94
+ // delete reference to old storage contract address
95
+ delete storedTextBytecodeAddresses[_textSlotId];
96
+ }
97
+
98
+ /*//////////////////////////////////////////////////////////////
99
+ Additional Introspection
100
+ //////////////////////////////////////////////////////////////*/
101
+
102
+ /**
103
+ * @notice Allows additional read introspection, to read a chunk of text,
104
+ * from chain-state that lives at a given deployed address.
105
+ * @param _bytecodeAddress address from which to read text content.
106
+ * @return string Content read from contract bytecode at the given address.
107
+ * @dev Intentionally do not perform input validation, instead allowing
108
+ * the underlying BytecodeStorage lib to throw errors where applicable.
109
+ */
110
+ function readTextAtAddress(
111
+ address _bytecodeAddress
112
+ ) public view returns (string memory) {
113
+ return BytecodeStorageReader.readFromBytecode(_bytecodeAddress);
114
+ }
115
+
116
+ /**
117
+ * @notice Allows additional read introspection, to read a chunk of text,
118
+ * from chain-state that lives at a given deployed address with an
119
+ * explicitly provided `_offset`.
120
+ * @param _bytecodeAddress address from which to read text content.
121
+ * @param _offset Offset to read from in contract bytecode,
122
+ * explicitly provided (not calculated)
123
+ * @return string Content read from contract bytecode at the given address.
124
+ * @dev Intentionally do not perform input validation, instead allowing
125
+ * the underlying BytecodeStorage lib to throw errors where applicable.
126
+ */
127
+ function forceReadTextAtAddress(
128
+ address _bytecodeAddress,
129
+ uint256 _offset
130
+ ) public view returns (string memory) {
131
+ return
132
+ string(
133
+ BytecodeStorageReader.readBytesFromBytecode(
134
+ _bytecodeAddress,
135
+ _offset
136
+ )
137
+ );
138
+ }
139
+
140
+ /**
141
+ * @notice Allows additional read introspection, to read a chunk of text,
142
+ * from chain-state that lives at a given deployed address that
143
+ * was written with SSTORE2.
144
+ * @param _bytecodeAddress address from which to read text content.
145
+ * @return string Content read from contract bytecode at the given address.
146
+ * @dev Intentionally do not perform input validation, instead allowing
147
+ * the underlying BytecodeStorage lib to throw errors where applicable.
148
+ */
149
+ function readSSTORE2TextAtAddress(
150
+ address _bytecodeAddress
151
+ ) public view returns (string memory) {
152
+ return
153
+ string(
154
+ BytecodeStorageReader.readBytesFromSSTORE2Bytecode(
155
+ _bytecodeAddress
156
+ )
157
+ );
158
+ }
159
+
160
+ /**
161
+ * @notice Allows introspection of who deployed a given contracts-as-storage
162
+ * contract, based on a provided `_bytecodeAddress`.
163
+ * @param _bytecodeAddress address for which to read the author address.
164
+ * @return address of the author who wrote the data contained in the
165
+ * given `_bytecodeAddress` contract.
166
+ * @dev Intentionally do not perform input validation, instead allowing
167
+ * the underlying BytecodeStorage lib to throw errors where applicable.
168
+ */
169
+ function readAuthorForTextAtAddress(
170
+ address _bytecodeAddress
171
+ ) public view returns (address) {
172
+ return
173
+ BytecodeStorageReader.getWriterAddressForBytecode(_bytecodeAddress);
174
+ }
175
+
176
+ /**
177
+ * @notice Allows introspection of the version of a given contracts-as-storage
178
+ * contract, based on a provided `_bytecodeAddress`.
179
+ * @param _bytecodeAddress address for which to read the version.
180
+ * @return bytes32 version of the version string contained in the given `_bytecodeAddress`
181
+ * contract.
182
+ * @dev Intentionally do not perform input validation, instead allowing
183
+ * the underlying BytecodeStorage lib to throw errors where applicable.
184
+ */
185
+ function readLibraryVersionForTextAtAddress(
186
+ address _bytecodeAddress
187
+ ) public view returns (bytes32) {
188
+ return
189
+ BytecodeStorageReader.getLibraryVersionForBytecode(
190
+ _bytecodeAddress
191
+ );
192
+ }
193
+
194
+ /**
195
+ * @notice Allows additional internal purge-logic introspection, by allowing
196
+ * for the sending of arbitrary data from this contract to the
197
+ * provided existing `_bytecodeAddress`.
198
+ * @param _bytecodeAddress address for which to send call data.
199
+ * @param _data aribtrary data to send as call-data for raw `.call`.
200
+ * @dev WARNING - THIS IS NOT SECURE AND SHOULD NOT BE USED IN PRODUCTION.
201
+ */
202
+ function callWithNonsenseData(
203
+ address _bytecodeAddress,
204
+ bytes memory _data
205
+ ) external onlyDeployer {
206
+ (bool success /* `data` not needed */, ) = _bytecodeAddress.call(_data);
207
+ if (success) {
208
+ // WARNING - This implementation does not make use of the low-level
209
+ // call return result indicating success/failure. This is
210
+ // contrary to best practice but is OK in this instance as
211
+ // this method IS NOT SECURE AND SHOULD NOT BE USED IN
212
+ // PRODUCTION under any normal circumstances.
213
+ }
214
+ }
215
+
216
+ /**
217
+ * @notice Allows additional internal purge-logic introspection, by allowing
218
+ * for the sending of raw calls (with no data) from this contract to
219
+ * the provided existing `_bytecodeAddress`.
220
+ * @param _bytecodeAddress address for which to send call data.
221
+ * @dev WARNING - THIS IS NOT SECURE AND SHOULD NOT BE USED IN PRODUCTION.
222
+ */
223
+ function callWithoutData(address _bytecodeAddress) external onlyDeployer {
224
+ (bool success /* `data` not needed */, ) = _bytecodeAddress.call("");
225
+ if (success) {
226
+ // WARNING - This implementation does not make use of the low-level
227
+ // call return result indicating success/failure. This is
228
+ // contrary to best practice but is OK in this instance as
229
+ // this method IS NOT SECURE AND SHOULD NOT BE USED IN
230
+ // PRODUCTION under any normal circumstances.
231
+ }
232
+ }
233
+ }
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
 
3
- pragma solidity 0.8.17;
3
+ pragma solidity 0.8.19;
4
4
 
5
5
  import {DeadReceiverMock} from "./DeadReceiverMock.sol";
6
6
 
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
 
3
- pragma solidity 0.8.17;
3
+ pragma solidity 0.8.19;
4
4
 
5
5
  /**
6
6
  * @notice This reverts when receiving Ether
@@ -0,0 +1,75 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ // Created By: Art Blocks Inc.
3
+
4
+ import "../interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol";
5
+ import "../interfaces/0.8.x/IMinterFilterV1.sol";
6
+
7
+ pragma solidity 0.8.19;
8
+
9
+ /**
10
+ * @title NON-PRODUCTION shared minter used for testing purposes only.
11
+ * In general, this is intended to integrate with IMinterFilterV1, and should
12
+ * be used for integration testing purposes only.
13
+ * @author Art Blocks Inc.
14
+ */
15
+ contract DummySharedMinter {
16
+ /// Minter filter address this minter interacts with
17
+ address public immutable minterFilterAddress;
18
+
19
+ /// Minter filter this minter may interact with.
20
+ IMinterFilterV1 private immutable minterFilter;
21
+
22
+ /// minterType for this minter
23
+ string public constant minterType = "DummySharedMinter";
24
+
25
+ /// minter version for this minter
26
+ string public constant minterVersion = "v0.0.0";
27
+
28
+ uint256 constant ONE_MILLION = 1_000_000;
29
+
30
+ function _onlyArtist(
31
+ uint256 _projectId,
32
+ address _coreContract
33
+ ) internal view {
34
+ require(
35
+ msg.sender ==
36
+ IGenArt721CoreContractV3_Base(_coreContract)
37
+ .projectIdToArtistAddress(_projectId),
38
+ "Only Artist"
39
+ );
40
+ }
41
+
42
+ /**
43
+ * @notice Initializes contract to be a Filtered Minter for
44
+ * `_minterFilter`.
45
+ * @param _minterFilter Minter filter for which this will be a
46
+ * filtered minter.
47
+ */
48
+ constructor(address _minterFilter) {
49
+ minterFilterAddress = _minterFilter;
50
+ minterFilter = IMinterFilterV1(_minterFilter);
51
+ }
52
+
53
+ function purchase(
54
+ uint256 _projectId,
55
+ address _coreContract
56
+ ) external payable returns (uint256 tokenId) {
57
+ tokenId = purchaseTo(msg.sender, _projectId, _coreContract);
58
+ return tokenId;
59
+ }
60
+
61
+ function purchaseTo(
62
+ address _to,
63
+ uint256 _projectId,
64
+ address _coreContract
65
+ ) public payable returns (uint256 tokenId) {
66
+ tokenId = minterFilter.mint_joo(
67
+ _to,
68
+ _projectId,
69
+ _coreContract,
70
+ msg.sender
71
+ );
72
+ // intentionally does not split funds to keep this dummy minter simple
73
+ return tokenId;
74
+ }
75
+ }
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
 
3
- pragma solidity 0.8.17;
3
+ pragma solidity 0.8.19;
4
4
 
5
5
  import {GasLimitReceiverMock} from "./GasLimitReceiverMock.sol";
6
6
 
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
2
 
3
- pragma solidity 0.8.17;
3
+ pragma solidity 0.8.19;
4
4
 
5
5
  /**
6
6
  * @notice This uses all gas when receiving Ether, useful when testing denial
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: LGPL-3.0-only
2
- pragma solidity 0.8.17;
2
+ pragma solidity 0.8.19;
3
3
 
4
4
  // Created By: Art Blocks Inc.
5
5
 
@@ -13,7 +13,7 @@ import "../interfaces/0.8.x/IManifold.sol";
13
13
  import "@openzeppelin-4.7/contracts/utils/Strings.sol";
14
14
  import "@openzeppelin-4.7/contracts/access/Ownable.sol";
15
15
  import "../libs/0.8.x/ERC721_PackedHashSeed.sol";
16
- import "../libs/0.8.x/BytecodeStorage.sol";
16
+ import "../libs/0.8.x/BytecodeStorageV1.sol";
17
17
  import "../libs/0.8.x/Bytes32Strings.sol";
18
18
 
19
19
  /**
@@ -30,8 +30,7 @@ contract GenArt721CoreV3_Engine_IncorrectCoreType is
30
30
  IManifold
31
31
  // INTERFACE CONFORMANCE INTENTIONALLY OMITTED TO ENABLE MOCKING BUGGED CONTRACT
32
32
  {
33
- using BytecodeStorage for string;
34
- using BytecodeStorage for address;
33
+ using BytecodeStorageWriter for string;
35
34
  using Bytes32Strings for bytes32;
36
35
  using Strings for uint256;
37
36
  using Strings for address;
@@ -1115,16 +1114,6 @@ contract GenArt721CoreV3_Engine_IncorrectCoreType is
1115
1114
  {
1116
1115
  Project storage project = projects[_projectId];
1117
1116
  require(_scriptId < project.scriptCount, "scriptId out of range");
1118
- // purge old contract bytecode contract from the blockchain state
1119
- // note: Although this does reduce usage of Ethereum state, it does not
1120
- // reduce the gas costs of removal transactions. We believe this is the
1121
- // best behavior at the time of writing, and do not expect this to
1122
- // result in any breaking changes in the future. All current proposals
1123
- // to change the self-destruct opcode are backwards compatible, but may
1124
- // result in not removing the bytecode from the blockchain state. This
1125
- // implementation is compatible with that architecture, as it does not
1126
- // rely on the bytecode being removed from the blockchain state.
1127
- project.scriptBytecodeAddresses[_scriptId].purgeBytecode();
1128
1117
  // store script in contract bytecode, replacing reference address from
1129
1118
  // the contract that no longer exists with the newly created one
1130
1119
  project.scriptBytecodeAddresses[_scriptId] = _script.writeToBytecode();
@@ -1144,18 +1133,6 @@ contract GenArt721CoreV3_Engine_IncorrectCoreType is
1144
1133
  {
1145
1134
  Project storage project = projects[_projectId];
1146
1135
  require(project.scriptCount > 0, "there are no scripts to remove");
1147
- // purge old contract bytecode contract from the blockchain state
1148
- // note: Although this does reduce usage of Ethereum state, it does not
1149
- // reduce the gas costs of removal transactions. We believe this is the
1150
- // best behavior at the time of writing, and do not expect this to
1151
- // result in any breaking changes in the future. All current proposals
1152
- // to change the self-destruct opcode are backwards compatible, but may
1153
- // result in not removing the bytecode from the blockchain state. This
1154
- // implementation is compatible with that architecture, as it does not
1155
- // rely on the bytecode being removed from the blockchain state.
1156
- project
1157
- .scriptBytecodeAddresses[project.scriptCount - 1]
1158
- .purgeBytecode();
1159
1136
  // delete reference to contract address that no longer exists
1160
1137
  delete project.scriptBytecodeAddresses[project.scriptCount - 1];
1161
1138
  unchecked {
@@ -1580,7 +1557,7 @@ contract GenArt721CoreV3_Engine_IncorrectCoreType is
1580
1557
  if (_index >= project.scriptCount) {
1581
1558
  return "";
1582
1559
  }
1583
- return project.scriptBytecodeAddresses[_index].readFromBytecode();
1560
+ return _readFromBytecode(project.scriptBytecodeAddresses[_index]);
1584
1561
  }
1585
1562
 
1586
1563
  /**
@@ -1976,4 +1953,14 @@ contract GenArt721CoreV3_Engine_IncorrectCoreType is
1976
1953
  (block.timestamp - projectCompletedTimestamp <
1977
1954
  FOUR_WEEKS_IN_SECONDS);
1978
1955
  }
1956
+
1957
+ /**
1958
+ * Helper for calling `BytecodeStorageReader` external library reader method,
1959
+ * added for bytecode size reduction purposes.
1960
+ */
1961
+ function _readFromBytecode(
1962
+ address _address
1963
+ ) internal view returns (string memory) {
1964
+ return BytecodeStorageReader.readFromBytecode(_address);
1965
+ }
1979
1966
  }
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
 
3
- pragma solidity 0.8.17;
3
+ pragma solidity 0.8.19;
4
4
 
5
5
  import "../interfaces/0.8.x/IAdminACLV0.sol";
6
6
  import "@openzeppelin-4.7/contracts/access/Ownable.sol";