Versions in this module Expand all Collapse all v0 v0.0.2 Mar 21, 2024 v0.0.1 Mar 13, 2024 Changes in this version + const FunctionExecute + const FunctionVote + var ErrPropsalExectued = errors.New("err_proposal_executed") + var ErrPropsalInvalidExectueTime = errors.New("err_proposal_invalid_execute_time") + var ErrPropsalInvalidFunction = errors.New("err_proposal_invalid_function") + var ErrPropsalInvalidGrantAmount = errors.New("err_proposal_invalid_grant_amount") + var ErrPropsalInvalidInitData = errors.New("err_proposal_invalid_init_data") + var ErrPropsalInvalidTxAction = errors.New("err_proposal_invalid_tx_action") + var ErrPropsalInvalidTxCallParams = errors.New("err_proposal_invalid_tx_call_params") + var ErrPropsalInvalidVoteParams = errors.New("err_proposal_invalid_vote_params") + var ErrPropsalInvalidVoteTime = errors.New("err_proposal_invalid_vote_time") + var ErrPropsalNoStakes = errors.New("err_proposal_no_stakes") + func Execute(tx *schema.Transaction, state *schema.StateForProposal, oracle *schema.Oracle, ...) (*schema.StateForProposal, string, string, error) + type InitData struct + GrantAmount string + GrantFrom string + GrantTo string + VoteDeadLine int64 + type LocalState struct + Against int64 + Approved bool + Executed bool + Infavor int64 + Voteds map[string]Voted + func (l *LocalState) Hash() string + func (l *LocalState) String() string + type VoteParams struct + Infavor bool + type Voted struct + Infavor bool + Weight int64