setLOP
set LOP ERC20 token address
| name | type | description |
|---|---|---|
| _LOP | address | The address of LOP |
setVLOP
set vLOP ERC20 token address
| name | type | description |
|---|---|---|
| _vLOP | address | The address of vLOP |
createProposal
create a new proposal
| name | type | description |
|---|---|---|
| _budget | uint256 | proposal budget |
voteYes
vote Yes for a proposal
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |
voteNo
vote No for a proposal
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |
execute
execute proposal
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |
LOP
get LOP token address
No params
vLOP
get vLOP token address
No params
minVote
get the minimum vote number
No params
proposals
get proposal info by id
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |
isProposal
check proposal status by creator
| name | type | description |
|---|---|---|
| creator | address | proposal creator |
isVoted
check you vote proposal before
| name | type | description |
|---|---|---|
| user | address | user address |
| proposalId | uint256 | proposal id |
SetLOP
emitted when update LOP address
| name | type | description |
|---|---|---|
| _LOP | address | LOP address |
SetVLOP
emitted when update vLOP address
| name | type | description |
|---|---|---|
| _vLOP | address | _vLOP address |
ProposalCreated
emitted when proposal is created
| name | type | description |
|---|---|---|
| owner | address | owner address |
| budget | uint256 | proposal budget |
| proposalId | uint256 | proposal id |
VoteYes
emitted when vote proposal as Yes
| name | type | description |
|---|---|---|
| voter | address | voter address |
| proposalId | uint256 | proposal id |
VoteNo
emitted when vote proposal as No
| name | type | description |
|---|---|---|
| voter | address | voter address |
| proposalId | uint256 | proposal id |
Activated
emitted when proposal is activated
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |
Cancelled
emitted when cancel proposal
| name | type | description |
|---|---|---|
| proposalId | uint256 | proposal id |