Documentation ¶
Index ¶
- func EnableGovernance(r action.Router) error
- func EnableInternalGovernance(r action.Router) error
- type CancelProposal
- type CreateProposal
- func (c CreateProposal) Marshal() ([]byte, error)
- func (c CreateProposal) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CreateProposal) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CreateProposal) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (c CreateProposal) Signers() []action.Address
- func (c CreateProposal) Tags() kv.Pairs
- func (c CreateProposal) Type() action.Type
- func (c *CreateProposal) Unmarshal(bytes []byte) error
- func (c CreateProposal) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type ExpireVotes
- func (e ExpireVotes) Marshal() ([]byte, error)
- func (e ExpireVotes) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (e ExpireVotes) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (e ExpireVotes) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (e ExpireVotes) Signers() []action.Address
- func (e ExpireVotes) Tags() kv.Pairs
- func (e ExpireVotes) Type() action.Type
- func (e *ExpireVotes) Unmarshal(bytes []byte) error
- func (e ExpireVotes) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type FinalizeProposal
- func (p FinalizeProposal) Marshal() ([]byte, error)
- func (FinalizeProposal) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (FinalizeProposal) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (FinalizeProposal) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (p FinalizeProposal) Signers() []action.Address
- func (p FinalizeProposal) Tags() kv.Pairs
- func (p FinalizeProposal) Type() action.Type
- func (p *FinalizeProposal) Unmarshal(bytes []byte) error
- func (FinalizeProposal) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type FundProposal
- type VoteProposal
- type WithdrawFunds
- func (wp WithdrawFunds) Marshal() ([]byte, error)
- func (wp WithdrawFunds) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (wp WithdrawFunds) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (wp WithdrawFunds) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (wp WithdrawFunds) Signers() []action.Address
- func (wp WithdrawFunds) Tags() kv.Pairs
- func (wp WithdrawFunds) Type() action.Type
- func (wp *WithdrawFunds) Unmarshal(bytes []byte) error
- func (wp WithdrawFunds) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableGovernance ¶
Types ¶
type CancelProposal ¶
type CancelProposal struct { ProposalId gov.ProposalID `json:"proposalId"` Proposer keys.Address `json:"proposerAddress"` Reason string `json:"cancelReason"` }
func (*CancelProposal) Marshal ¶
func (cp *CancelProposal) Marshal() ([]byte, error)
func (CancelProposal) Signers ¶
func (cp CancelProposal) Signers() []action.Address
func (CancelProposal) Tags ¶
func (cp CancelProposal) Tags() kv.Pairs
func (CancelProposal) Type ¶
func (cp CancelProposal) Type() action.Type
func (*CancelProposal) Unmarshal ¶
func (cp *CancelProposal) Unmarshal(data []byte) error
type CreateProposal ¶
type CreateProposal struct { ProposalID governance.ProposalID `json:"proposalId"` ProposalType governance.ProposalType `json:"proposalType"` Headline string `json:"proposalHeadline"` Description string `json:"proposalDescription"` Proposer keys.Address `json:"proposerAddress"` InitialFunding action.Amount `json:"initialFunding"` FundingDeadline int64 `json:"fundingDeadline"` FundingGoal *balance.Amount `json:"fundingGoal"` VotingDeadline int64 `json:"votingDeadline"` PassPercentage int `json:"passPercentage"` ConfigUpdate string `json:"configUpdate"` }
func (CreateProposal) Marshal ¶
func (c CreateProposal) Marshal() ([]byte, error)
func (CreateProposal) ProcessCheck ¶
func (CreateProposal) ProcessDeliver ¶
func (CreateProposal) ProcessFee ¶
func (CreateProposal) Signers ¶
func (c CreateProposal) Signers() []action.Address
func (CreateProposal) Tags ¶
func (c CreateProposal) Tags() kv.Pairs
func (CreateProposal) Type ¶
func (c CreateProposal) Type() action.Type
func (*CreateProposal) Unmarshal ¶
func (c *CreateProposal) Unmarshal(bytes []byte) error
type ExpireVotes ¶
type ExpireVotes struct { ProposalID governance.ProposalID `json:"proposalId"` ValidatorAddress action.Address `json:"validatorAddress"` }
func (ExpireVotes) Marshal ¶
func (e ExpireVotes) Marshal() ([]byte, error)
func (ExpireVotes) ProcessCheck ¶
func (ExpireVotes) ProcessDeliver ¶
func (ExpireVotes) ProcessFee ¶
func (ExpireVotes) Signers ¶
func (e ExpireVotes) Signers() []action.Address
func (ExpireVotes) Tags ¶
func (e ExpireVotes) Tags() kv.Pairs
func (ExpireVotes) Type ¶
func (e ExpireVotes) Type() action.Type
func (*ExpireVotes) Unmarshal ¶
func (e *ExpireVotes) Unmarshal(bytes []byte) error
type FinalizeProposal ¶
type FinalizeProposal struct { ProposalID governance.ProposalID `json:"proposalId"` ValidatorAddress action.Address `json:"validatorAddress"` }
func (FinalizeProposal) Marshal ¶
func (p FinalizeProposal) Marshal() ([]byte, error)
func (FinalizeProposal) ProcessCheck ¶
func (FinalizeProposal) ProcessDeliver ¶
func (FinalizeProposal) ProcessFee ¶
func (FinalizeProposal) Signers ¶
func (p FinalizeProposal) Signers() []action.Address
func (FinalizeProposal) Tags ¶
func (p FinalizeProposal) Tags() kv.Pairs
func (FinalizeProposal) Type ¶
func (p FinalizeProposal) Type() action.Type
func (*FinalizeProposal) Unmarshal ¶
func (p *FinalizeProposal) Unmarshal(bytes []byte) error
type FundProposal ¶
type FundProposal struct { ProposalId governance.ProposalID `json:"proposalId"` FunderAddress keys.Address `json:"funderAddress"` FundValue action.Amount `json:"fundValue"` }
func (FundProposal) Marshal ¶
func (fp FundProposal) Marshal() ([]byte, error)
func (FundProposal) Signers ¶
func (fp FundProposal) Signers() []action.Address
func (FundProposal) Tags ¶
func (fp FundProposal) Tags() kv.Pairs
func (FundProposal) Type ¶
func (fp FundProposal) Type() action.Type
func (*FundProposal) Unmarshal ¶
func (fp *FundProposal) Unmarshal(bytes []byte) error
type VoteProposal ¶
type VoteProposal struct { ProposalID gov.ProposalID `json:"proposalId"` Address action.Address `json:"address"` ValidatorAddress action.Address `json:"validatorAddress"` Opinion gov.VoteOpinion `json:"voteOpinion"` }
func (*VoteProposal) Marshal ¶
func (vote *VoteProposal) Marshal() ([]byte, error)
func (VoteProposal) Signers ¶
func (vote VoteProposal) Signers() []action.Address
func (VoteProposal) Tags ¶
func (vote VoteProposal) Tags() kv.Pairs
func (VoteProposal) Type ¶
func (vote VoteProposal) Type() action.Type
func (*VoteProposal) Unmarshal ¶
func (vote *VoteProposal) Unmarshal(data []byte) error
type WithdrawFunds ¶
type WithdrawFunds struct { ProposalID governance.ProposalID `json:"proposalId"` Funder keys.Address `json:"funderAddress"` WithdrawValue action.Amount `json:"withdrawValue"` Beneficiary keys.Address `json:"beneficiaryAddress"` }
func (WithdrawFunds) Marshal ¶
func (wp WithdrawFunds) Marshal() ([]byte, error)
func (WithdrawFunds) ProcessCheck ¶
func (WithdrawFunds) ProcessDeliver ¶
func (WithdrawFunds) ProcessFee ¶
func (WithdrawFunds) Signers ¶
func (wp WithdrawFunds) Signers() []action.Address
func (WithdrawFunds) Tags ¶
func (wp WithdrawFunds) Tags() kv.Pairs
func (WithdrawFunds) Type ¶
func (wp WithdrawFunds) Type() action.Type
func (*WithdrawFunds) Unmarshal ¶
func (wp *WithdrawFunds) Unmarshal(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.