@@ -19,18 +19,7 @@ contract CurateFactory {
19
19
20
20
/// @dev Emitted when a new Curate contract is deployed using this factory. TODO: change TCR mentions.
21
21
/// @param _address The address of the newly deployed Curate contract.
22
- /// @param _listMetadata A link to registry / list metadata (title,description) using its URI
23
- event NewList (CurateV2 indexed _address , string _listMetadata );
24
-
25
- // ************************************* //
26
- // * Enums / Structs * //
27
- // ************************************* //
28
-
29
- struct TemplateRegistryParams {
30
- address templateRegistry; // The current status of the item.
31
- string [2 ] registrationTemplateParameters; // Template and data mappings json for registration requests.
32
- string [2 ] removalTemplateParameters; // Template and data mappings json for removal requests.
33
- }
22
+ event NewGTCR (CurateV2 indexed _address );
34
23
35
24
// ************************************* //
36
25
// * Storage * //
@@ -58,47 +47,46 @@ contract CurateFactory {
58
47
/// @param _arbitrator Arbitrator to resolve potential disputes. The arbitrator is trusted to support appeal periods and not reenter.
59
48
/// @param _arbitratorExtraData Extra data for the trusted arbitrator contract.
60
49
/// @param _evidenceModule The evidence contract for the arbitrator.
61
- /// @param _connectedList The address of the Curate contract that stores related Curate addresses. This parameter can be left empty.
62
- /// @param _templateRegistryParams The dispute template registry.
63
- /// - templateRegistry : The dispute template registry.
64
- /// - registrationTemplateParameters : Template and data mappings json for registration requests.
65
- /// - removalTemplateParameters : Template and data mappings json for removal requests.
50
+ /// @param _connectedTCR The address of the Curate contract that stores related Curate addresses. This parameter can be left empty.
51
+ /// @param _registrationTemplateParameters Template and data mappings json for registration requests.
52
+ /// @param _removalTemplateParameters Template and data mappings json for removal requests.
53
+ /// @param _templateRegistry The dispute template registry.
66
54
/// @param _baseDeposits The base deposits for requests/challenges as follows:
67
55
/// - The base deposit to submit an item.
68
56
/// - The base deposit to remove an item.
69
57
/// - The base deposit to challenge a submission.
70
58
/// - The base deposit to challenge a removal request.
71
59
/// @param _challengePeriodDuration The time in seconds parties have to challenge a request.
72
60
/// @param _relayerContract The address of the relay contract to add/remove items directly.
73
- /// @param _listMetadata A link to registry / list metadata (title,description) using its URI
74
61
function deploy (
75
62
address _governor ,
76
63
IArbitratorV2 _arbitrator ,
77
64
bytes calldata _arbitratorExtraData ,
78
65
EvidenceModule _evidenceModule ,
79
- address _connectedList ,
80
- TemplateRegistryParams calldata _templateRegistryParams ,
66
+ address _connectedTCR ,
67
+ string [2 ] calldata _registrationTemplateParameters ,
68
+ string [2 ] calldata _removalTemplateParameters ,
69
+ address _templateRegistry ,
81
70
uint256 [4 ] calldata _baseDeposits ,
82
71
uint256 _challengePeriodDuration ,
83
- address _relayerContract ,
84
- string memory _listMetadata
72
+ address _relayerContract
85
73
) public {
86
74
CurateV2 instance = clone (curate);
87
75
instance.initialize (
88
76
_governor,
89
77
_arbitrator,
90
78
_arbitratorExtraData,
91
79
_evidenceModule,
92
- _connectedList ,
93
- _templateRegistryParams.registrationTemplateParameters ,
94
- _templateRegistryParams.removalTemplateParameters ,
95
- _templateRegistryParams.templateRegistry ,
80
+ _connectedTCR ,
81
+ _registrationTemplateParameters ,
82
+ _removalTemplateParameters ,
83
+ _templateRegistry ,
96
84
_baseDeposits,
97
85
_challengePeriodDuration,
98
86
_relayerContract
99
87
);
100
88
instances.push (instance);
101
- emit NewList (instance, _listMetadata );
89
+ emit NewGTCR (instance);
102
90
}
103
91
104
92
/// @notice Adaptation of https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/Clones.sol.
0 commit comments