mirror of
https://github.com/status-im/topic-democracy.git
synced 2025-02-25 16:45:20 +00:00
39 lines
962 B
Solidity
39 lines
962 B
Solidity
pragma solidity >=0.5.0 <0.6.0;
|
|
|
|
import "./ProposalAbstract.sol";
|
|
|
|
/**
|
|
* @title Proposal
|
|
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
|
* @dev Initialization of Proposal, used in Instance construtor.
|
|
*/
|
|
contract ProposalInit is ProposalAbstract {
|
|
|
|
constructor() public {
|
|
token = MiniMeToken(address(-1));
|
|
}
|
|
|
|
function createProposal(
|
|
MiniMeToken _token,
|
|
Delegation _delegation,
|
|
bytes32 _dataHash,
|
|
uint256 _tabulationBlockDelay,
|
|
uint256 _blockStart,
|
|
uint256 _blockEndDelay,
|
|
QuorumType _quorum
|
|
)
|
|
external
|
|
{
|
|
require(address(token) == address(0), "Already initialized");
|
|
delegation = _delegation;
|
|
token = _token;
|
|
tabulationBlockDelay = _tabulationBlockDelay;
|
|
dataHash = _dataHash;
|
|
blockStart = _blockStart;
|
|
voteBlockEnd = blockStart + _blockEndDelay;
|
|
quorum = _quorum;
|
|
}
|
|
|
|
|
|
|
|
} |