proposal

package
v0.0.0-...-d9e9996 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func NewProposal(log log.Logger, lg *ledger.Ledger, uvm *utxo.UtxoVM) *Proposal

NewProposal instances a new Proposal

func (*Proposal) Finalize

func (prp *Proposal) Finalize(blockid []byte) error

Finalize implements ContractInterface

func (*Proposal) GetVATWhiteList

func (prp *Proposal) GetVATWhiteList() map[string]bool

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

func (prp *Proposal) ReadOutput(desc *contract.TxDesc) (contract.ContractOutputInterface, error)

ReadOutput implements ContractInterface

func (*Proposal) Rollback

func (prp *Proposal) Rollback(desc *contract.TxDesc) error

Rollback implements ContractInterface

func (*Proposal) Run

func (prp *Proposal) Run(desc *contract.TxDesc) error

Run implements ContractInterface

func (*Proposal) SetContext

func (prp *Proposal) SetContext(context *contract.TxContext) error

SetContext implements ContractInterface

func (*Proposal) Stop

func (prp *Proposal) Stop()

Stop implements ContractInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL