@artblocks/contracts 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/artifacts/contracts/AdminACLV1.sol/AdminACLV1.json +2 -2
- package/artifacts/contracts/DependencyRegistryV0.sol/DependencyRegistryV0.json +97 -10
- package/artifacts/contracts/GenArt721CoreV3.sol/GenArt721CoreV3.json +4 -4
- package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +4 -9
- package/artifacts/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +4 -9
- package/artifacts/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol/GenArt721CoreV3_Engine_Flex_PROOF.json +4 -9
- package/artifacts/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol/GenArt721CoreV3_Engine_Flex_PROHIBITION.json +4 -9
- package/artifacts/contracts/engine-registry/CoreRegistryV1.sol/CoreRegistryV1.json +12 -12
- package/artifacts/contracts/explorations/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +4 -4
- package/artifacts/contracts/interfaces/v0.8.x/ICoreRegistryV1.sol/ICoreRegistryV1.json +6 -6
- package/artifacts/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +19 -0
- package/artifacts/contracts/interfaces/v0.8.x/IMinterFilterV1.sol/IMinterFilterV1.json +22 -22
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol/ISharedMinterDAExpSettlementV0.json +8 -101
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAExpV0.sol/ISharedMinterDAExpV0.json +1 -57
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDALinV0.sol/ISharedMinterDALinV0.json +1 -57
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterDAV0.sol/ISharedMinterDAV0.json +2 -21
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterHolderERC20V0.sol/ISharedMinterHolderERC20V0.json +158 -0
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterHolderV0.sol/ISharedMinterHolderV0.json +15 -90
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterMerkleV0.sol/ISharedMinterMerkleV0.json +10 -36
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol/ISharedMinterSEAV0.json +4 -236
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterSimplePurchaseV0.sol/ISharedMinterSimplePurchaseV0.json +5 -5
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterV0.sol/ISharedMinterV0.json +7 -423
- package/artifacts/contracts/interfaces/v0.8.x/ISharedRandomizerV0.sol/ISharedRandomizerV0.json +17 -17
- package/artifacts/contracts/libs/v0.8.x/ABHelpers.sol/ABHelpers.json +2 -2
- package/artifacts/contracts/libs/v0.8.x/AuthLib.sol/AuthLib.json +2 -2
- package/artifacts/contracts/libs/v0.8.x/Bytes32Strings.sol/Bytes32Strings.json +2 -2
- package/artifacts/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol/DAExpLib.json +60 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/DALib.sol/DALib.json +30 -0
- package/artifacts/contracts/libs/v0.8.x/minter-libs/DALinLib.sol/DALinLib.json +60 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/GenericMinterEventsLib.sol/GenericMinterEventsLib.json +346 -0
- package/artifacts/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol/MaxInvocationsLib.json +29 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol/MerkleLib.json +30 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/PolyptychLib.sol/PolyptychLib.json +2 -2
- package/artifacts/contracts/libs/v0.8.x/minter-libs/SEALib.sol/SEALib.json +254 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol/SetPriceLib.json +48 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol/SettlementExpLib.json +41 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol/SplitFundsLib.json +35 -3
- package/artifacts/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol/TokenHolderLib.json +79 -3
- package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV1.sol/MinterFilterV1.json +2 -2
- package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV2.sol/MinterFilterV2.json +41 -41
- package/artifacts/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol/MinterDAExpHolderV5.json +66 -632
- package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol/MinterDAExpSettlementV2.json +2 -20
- package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol/MinterDAExpSettlementV3.json +67 -594
- package/artifacts/contracts/minter-suite/Minters/MinterDAExpV5.sol/MinterDAExpV5.json +33 -524
- package/artifacts/contracts/minter-suite/Minters/MinterDALinHolderV5.sol/MinterDALinHolderV5.json +66 -632
- package/artifacts/contracts/minter-suite/Minters/MinterDALinV5.sol/MinterDALinV5.json +33 -524
- package/artifacts/contracts/minter-suite/Minters/MinterSEAV1.sol/MinterSEAV1.json +51 -717
- package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol/MinterSetPriceERC20V5.json +58 -454
- package/artifacts/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol/MinterSetPriceHolderV5.json +61 -552
- package/artifacts/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol/MinterSetPriceMerkleV5.json +55 -497
- package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol/MinterSetPricePolyptychERC20V5.json +110 -571
- package/artifacts/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol/MinterSetPricePolyptychV5.json +69 -560
- package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV5.sol/MinterSetPriceV5.json +28 -444
- package/artifacts/contracts/mock/DummySharedMinter.sol/DummySharedMinter.json +2 -2
- package/artifacts/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol/GenArt721CoreV3_Engine_IncorrectCoreType.json +4 -9
- package/artifacts/contracts/mock/OriginRegisterMock.sol/OriginRegisterMock.json +2 -2
- package/artifacts/contracts/mock/ReentrancyHolderMockShared.sol/ReentrancyHolderMockShared.json +136 -0
- package/artifacts/contracts/mock/ReentrancyMerkleMockShared.sol/ReentrancyMerkleMockShared.json +105 -0
- package/artifacts/contracts/mock/ReentrancyMockShared.sol/ReentrancyMockShared.json +100 -0
- package/artifacts/contracts/mock/ReentrancySEAMockShared.sol/ReentrancySEAAutoBidderMockShared.json +69 -0
- package/artifacts/contracts/randomizer/shared/SharedRandomizerV0.sol/SharedRandomizerV0.json +19 -19
- package/contracts/DependencyRegistryV0.sol +84 -16
- package/contracts/archive/readme.md +16 -0
- package/contracts/engine/README.md +21 -0
- package/contracts/engine/V3/GenArt721CoreV3_Engine.sol +4 -10
- package/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol +4 -10
- package/contracts/engine/V3/forks/GenArt721CoreV3_Engine_Flex_PROOF.sol +4 -10
- package/contracts/engine/V3/forks/PROHIBITION/GenArt721CoreV3_Engine_Flex_PROHIBITION.sol +4 -10
- package/contracts/engine-registry/CoreRegistryV1.sol +58 -65
- package/contracts/interfaces/v0.8.x/ICoreRegistryV1.sol +6 -8
- package/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol +3 -0
- package/contracts/interfaces/v0.8.x/IMinterFilterV1.sol +25 -25
- package/contracts/interfaces/v0.8.x/ISharedMinterDAExpSettlementV0.sol +11 -20
- package/contracts/interfaces/v0.8.x/ISharedMinterDAExpV0.sol +1 -14
- package/contracts/interfaces/v0.8.x/ISharedMinterDALinV0.sol +1 -15
- package/contracts/interfaces/v0.8.x/ISharedMinterDAV0.sol +2 -8
- package/contracts/interfaces/v0.8.x/ISharedMinterHolderERC20V0.sol +47 -0
- package/contracts/interfaces/v0.8.x/ISharedMinterHolderV0.sol +15 -43
- package/contracts/interfaces/v0.8.x/ISharedMinterMerkleV0.sol +10 -20
- package/contracts/interfaces/v0.8.x/ISharedMinterSEAV0.sol +4 -67
- package/contracts/interfaces/v0.8.x/ISharedMinterSimplePurchaseV0.sol +5 -5
- package/contracts/interfaces/v0.8.x/ISharedMinterV0.sol +7 -155
- package/contracts/interfaces/v0.8.x/ISharedRandomizerV0.sol +37 -37
- package/contracts/libs/v0.8.x/ABHelpers.sol +14 -14
- package/contracts/libs/v0.8.x/AuthLib.sol +101 -102
- package/contracts/libs/v0.8.x/Bytes32Strings.sol +5 -5
- package/contracts/libs/v0.8.x/minter-libs/DAExpLib.sol +163 -38
- package/contracts/libs/v0.8.x/minter-libs/DALib.sol +26 -0
- package/contracts/libs/v0.8.x/minter-libs/DALinLib.sol +144 -37
- package/contracts/libs/v0.8.x/minter-libs/GenericMinterEventsLib.sol +171 -0
- package/contracts/libs/v0.8.x/minter-libs/MaxInvocationsLib.sol +250 -110
- package/contracts/libs/v0.8.x/minter-libs/MerkleLib.sol +257 -48
- package/contracts/libs/v0.8.x/minter-libs/PolyptychLib.sol +138 -58
- package/contracts/libs/v0.8.x/minter-libs/SEALib.sol +778 -103
- package/contracts/libs/v0.8.x/minter-libs/SetPriceLib.sol +135 -13
- package/contracts/libs/v0.8.x/minter-libs/SettlementExpLib.sol +567 -187
- package/contracts/libs/v0.8.x/minter-libs/SplitFundsLib.sol +480 -322
- package/contracts/libs/v0.8.x/minter-libs/TokenHolderLib.sol +214 -76
- package/contracts/minter-suite/MinterFilter/MinterFilterV2.sol +347 -304
- package/contracts/minter-suite/Minters/MinterDAExpHolderV5.sol +391 -491
- package/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol +1 -54
- package/contracts/minter-suite/Minters/MinterDAExpSettlementV3.sol +388 -628
- package/contracts/minter-suite/Minters/MinterDAExpV5.sol +212 -273
- package/contracts/minter-suite/Minters/MinterDALinHolderV5.sol +393 -488
- package/contracts/minter-suite/Minters/MinterDALinV5.sol +220 -277
- package/contracts/minter-suite/Minters/MinterSEAV1.sol +327 -664
- package/contracts/minter-suite/Minters/MinterSetPriceERC20V5.sol +278 -303
- package/contracts/minter-suite/Minters/MinterSetPriceHolderV5.sol +355 -446
- package/contracts/minter-suite/Minters/MinterSetPriceMerkleV5.sol +328 -416
- package/contracts/minter-suite/Minters/MinterSetPricePolyptychERC20V5.sol +538 -622
- package/contracts/minter-suite/Minters/MinterSetPricePolyptychV5.sol +429 -553
- package/contracts/minter-suite/Minters/MinterSetPriceV5.sol +180 -227
- package/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol +3 -10
- package/contracts/mock/ReentrancyHolderMockShared.sol +59 -0
- package/contracts/mock/ReentrancyMerkleMockShared.sol +58 -0
- package/contracts/mock/ReentrancyMockShared.sol +48 -0
- package/contracts/mock/ReentrancySEAMockShared.sol +40 -0
- package/contracts/randomizer/shared/SharedRandomizerV0.sol +78 -70
- package/package.json +39 -33
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// SPDX-License-Identifier: LGPL-3.0-only
|
|
2
|
+
// Created By: Art Blocks Inc.
|
|
3
|
+
|
|
4
|
+
pragma solidity ^0.8.0;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title Art Blocks Generic Events Library
|
|
8
|
+
* @notice This library is designed to define a set of generic events that all
|
|
9
|
+
* shared minter libraries may utilize to populate indexed extra minter details
|
|
10
|
+
* @dev Strings not supported. Recommend conversion of (short) strings to
|
|
11
|
+
* bytes32 to remain gas-efficient.
|
|
12
|
+
* @author Art Blocks Inc.
|
|
13
|
+
*/
|
|
14
|
+
library GenericMinterEventsLib {
|
|
15
|
+
/**
|
|
16
|
+
* @notice Generic project minter configuration event. Removes key `key`
|
|
17
|
+
* for project `projectId`.
|
|
18
|
+
* @param projectId Project ID to remove key for
|
|
19
|
+
* @param coreContract Core contract address that projectId is on
|
|
20
|
+
* @param key Key to remove
|
|
21
|
+
*/
|
|
22
|
+
event ConfigKeyRemoved(
|
|
23
|
+
uint256 indexed projectId,
|
|
24
|
+
address indexed coreContract,
|
|
25
|
+
bytes32 key
|
|
26
|
+
);
|
|
27
|
+
/// BOOL
|
|
28
|
+
/**
|
|
29
|
+
* @notice Generic project minter configuration event. Sets value of key
|
|
30
|
+
* `key` to `value` for project `projectId`.
|
|
31
|
+
* @param projectId Project ID to set key for
|
|
32
|
+
* @param coreContract Core contract address that projectId is on
|
|
33
|
+
* @param key Key to set
|
|
34
|
+
* @param value Value to set key to
|
|
35
|
+
*/
|
|
36
|
+
event ConfigValueSet(
|
|
37
|
+
uint256 indexed projectId,
|
|
38
|
+
address indexed coreContract,
|
|
39
|
+
bytes32 key,
|
|
40
|
+
bool value
|
|
41
|
+
);
|
|
42
|
+
/// UINT256
|
|
43
|
+
/**
|
|
44
|
+
* @notice Generic project minter configuration event. Sets value of key
|
|
45
|
+
* `key` to `value` for project `projectId`.
|
|
46
|
+
* @param projectId Project ID to set key for
|
|
47
|
+
* @param coreContract Core contract address that projectId is on
|
|
48
|
+
* @param key Key to set
|
|
49
|
+
* @param value Value to set key to
|
|
50
|
+
*/
|
|
51
|
+
event ConfigValueSet(
|
|
52
|
+
uint256 indexed projectId,
|
|
53
|
+
address indexed coreContract,
|
|
54
|
+
bytes32 key,
|
|
55
|
+
uint256 value
|
|
56
|
+
);
|
|
57
|
+
/**
|
|
58
|
+
* @notice Generic project minter configuration event. Adds value `value`
|
|
59
|
+
* to the set of uint256 at key `key` for project `projectId`.
|
|
60
|
+
* @param projectId Project ID to set key for
|
|
61
|
+
* @param coreContract Core contract address that projectId is on
|
|
62
|
+
* @param key Key to modify
|
|
63
|
+
* @param value Value to add to the key's set
|
|
64
|
+
*/
|
|
65
|
+
event ConfigValueAddedToSet(
|
|
66
|
+
uint256 indexed projectId,
|
|
67
|
+
address indexed coreContract,
|
|
68
|
+
bytes32 key,
|
|
69
|
+
uint256 value
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* @notice Generic project minter configuration event. Removes value
|
|
73
|
+
* `value` to the set of uint256 at key `key` for project `projectId`.
|
|
74
|
+
* @param projectId Project ID to set key for
|
|
75
|
+
* @param coreContract Core contract address that projectId is on
|
|
76
|
+
* @param key Key to modify
|
|
77
|
+
* @param value Value removed from the key's set
|
|
78
|
+
*/
|
|
79
|
+
event ConfigValueRemovedFromSet(
|
|
80
|
+
uint256 indexed projectId,
|
|
81
|
+
address indexed coreContract,
|
|
82
|
+
bytes32 key,
|
|
83
|
+
uint256 value
|
|
84
|
+
);
|
|
85
|
+
/// ADDRESS
|
|
86
|
+
/**
|
|
87
|
+
* @notice Generic project minter configuration event. Sets value of key
|
|
88
|
+
* `key` to `value` for project `projectId`.
|
|
89
|
+
* @param projectId Project ID to set key for
|
|
90
|
+
* @param coreContract Core contract address that projectId is on
|
|
91
|
+
* @param key Key to set
|
|
92
|
+
* @param value Value to set key to
|
|
93
|
+
*/
|
|
94
|
+
event ConfigValueSet(
|
|
95
|
+
uint256 indexed projectId,
|
|
96
|
+
address indexed coreContract,
|
|
97
|
+
bytes32 key,
|
|
98
|
+
address value
|
|
99
|
+
);
|
|
100
|
+
/**
|
|
101
|
+
* @notice Generic project minter configuration event. Adds value `value`
|
|
102
|
+
* to the set of addresses at key `key` for project `projectId`.
|
|
103
|
+
* @param projectId Project ID to set key for
|
|
104
|
+
* @param coreContract Core contract address that projectId is on
|
|
105
|
+
* @param key Key to modify
|
|
106
|
+
* @param value Value to add to the key's set
|
|
107
|
+
*/
|
|
108
|
+
event ConfigValueAddedToSet(
|
|
109
|
+
uint256 indexed projectId,
|
|
110
|
+
address indexed coreContract,
|
|
111
|
+
bytes32 key,
|
|
112
|
+
address value
|
|
113
|
+
);
|
|
114
|
+
/**
|
|
115
|
+
* @notice Generic project minter configuration event. Removes value
|
|
116
|
+
* `value` to the set of addresses at key `key` for project `projectId`.
|
|
117
|
+
* @param projectId Project ID to set key for
|
|
118
|
+
* @param coreContract Core contract address that projectId is on
|
|
119
|
+
* @param key Key to modify
|
|
120
|
+
* @param value Value removed from the key's set
|
|
121
|
+
*/
|
|
122
|
+
event ConfigValueRemovedFromSet(
|
|
123
|
+
uint256 indexed projectId,
|
|
124
|
+
address indexed coreContract,
|
|
125
|
+
bytes32 key,
|
|
126
|
+
address value
|
|
127
|
+
);
|
|
128
|
+
/// BYTES32
|
|
129
|
+
/**
|
|
130
|
+
* @notice Generic project minter configuration event. Sets value of key
|
|
131
|
+
* `key` to `value` for project `projectId`.
|
|
132
|
+
* @param projectId Project ID to set key for
|
|
133
|
+
* @param coreContract Core contract address that projectId is on
|
|
134
|
+
* @param key Key to set
|
|
135
|
+
* @param value Value to set key to
|
|
136
|
+
*/
|
|
137
|
+
event ConfigValueSet(
|
|
138
|
+
uint256 indexed projectId,
|
|
139
|
+
address indexed coreContract,
|
|
140
|
+
bytes32 key,
|
|
141
|
+
bytes32 value
|
|
142
|
+
);
|
|
143
|
+
/**
|
|
144
|
+
* @notice Generic project minter configuration event. Adds value `value`
|
|
145
|
+
* to the set of bytes32 at key `key` for project `projectId`.
|
|
146
|
+
* @param projectId Project ID to set key for
|
|
147
|
+
* @param coreContract Core contract address that projectId is on
|
|
148
|
+
* @param key Key to modify
|
|
149
|
+
* @param value Value to add to the key's set
|
|
150
|
+
*/
|
|
151
|
+
event ConfigValueAddedToSet(
|
|
152
|
+
uint256 indexed projectId,
|
|
153
|
+
address indexed coreContract,
|
|
154
|
+
bytes32 key,
|
|
155
|
+
bytes32 value
|
|
156
|
+
);
|
|
157
|
+
/**
|
|
158
|
+
* @notice Generic project minter configuration event. Removes value
|
|
159
|
+
* `value` to the set of bytes32 at key `key` for project `projectId`.
|
|
160
|
+
* @param projectId Project ID to set key for
|
|
161
|
+
* @param coreContract Core contract address that projectId is on
|
|
162
|
+
* @param key Key to modify
|
|
163
|
+
* @param value Value removed from the key's set
|
|
164
|
+
*/
|
|
165
|
+
event ConfigValueRemovedFromSet(
|
|
166
|
+
uint256 indexed projectId,
|
|
167
|
+
address indexed coreContract,
|
|
168
|
+
bytes32 key,
|
|
169
|
+
bytes32 value
|
|
170
|
+
);
|
|
171
|
+
}
|