-
Notifications
You must be signed in to change notification settings - Fork 3
/
IProjectFactory.sol
58 lines (42 loc) · 1.65 KB
/
IProjectFactory.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
/**
* @title Interface for ProjectFactory for HomeFi v2.5.0
* @dev This contract is used by HomeFi to create cheap clones of Project contract underlying
*/
interface IProjectFactory {
/**
* @dev Initialize this contract with HomeFi and master project address
* @param _underlying the implementation address of project smart contract
* @param _homeFi the latest address of HomeFi contract
*/
function initialize(address _underlying, address _homeFi) external;
/**
* @notice Update project implementation
* @dev Can only be called by HomeFi's admin
* @param _underlying address of the implementation
*/
function changeProjectImplementation(address _underlying) external;
/**
* @notice Create a clone for project contract.
* @dev Can only be called via HomeFi
* @param _currency address of the currency used by project
* @param _sender address of the sender, builder
* @return _clone address of the clone project contract
*/
function createProject(address _currency, address _sender)
external
returns (address _clone);
/// @notice Returns master implementation of project contract
function underlying() external view returns (address);
/// @notice Returns address of HomeFi contract
function homeFi() external view returns (address);
/**
* @notice checks trustedForwarder on HomeFi contract
* @param _forwarder address of contract forwarding meta tx
*/
function isTrustedForwarder(address _forwarder)
external
view
returns (bool);
}