Documentation ¶
Index ¶
- type Proposal
- func (prp *Proposal) Finalize(blockid []byte) error
- func (prp *Proposal) GetVATWhiteList() map[string]bool
- func (prp *Proposal) GetVerifiableAutogenTx(blockHeight int64, maxCount int, timestamp int64) ([]*pb.Transaction, error)
- func (prp *Proposal) IsPropose(proposalTx *pb.Transaction) bool
- func (prp *Proposal) IsVoteOk(proposalTx *pb.Transaction) bool
- func (prp *Proposal) ReadOutput(desc *contract.TxDesc) (contract.ContractOutputInterface, error)
- func (prp *Proposal) Rollback(desc *contract.TxDesc) error
- func (prp *Proposal) Run(desc *contract.TxDesc) error
- func (prp *Proposal) SetContext(context *contract.TxContext) error
- func (prp *Proposal) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proposal ¶
type Proposal struct {
// contains filtered or unexported fields
}
Proposal implements the proposal function on AmpChain
func NewProposal ¶
NewProposal instances a new Proposal
func (*Proposal) GetVATWhiteList ¶
GetVATWhiteList 实现VAT接口
func (*Proposal) GetVerifiableAutogenTx ¶
func (prp *Proposal) GetVerifiableAutogenTx(blockHeight int64, maxCount int, timestamp int64) ([]*pb.Transaction, error)
GetVerifiableAutogenTx 实现VAT接口
func (*Proposal) IsPropose ¶
func (prp *Proposal) IsPropose(proposalTx *pb.Transaction) bool
IsPropose return true if tx has Propose method
func (*Proposal) IsVoteOk ¶
func (prp *Proposal) IsVoteOk(proposalTx *pb.Transaction) bool
IsVoteOk check vote result of tx
func (*Proposal) ReadOutput ¶
ReadOutput implements ContractInterface
func (*Proposal) SetContext ¶
SetContext implements ContractInterface
Click to show internal directories.
Click to hide internal directories.