test

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBase

type BlockBase struct{}

func (*BlockBase) Height

func (_r *BlockBase) Height() int64

func (*BlockBase) ID

func (_r *BlockBase) ID() []byte

func (*BlockBase) LogsBloom

func (_r *BlockBase) LogsBloom() module.LogsBloom

func (*BlockBase) Marshal

func (_r *BlockBase) Marshal(w io.Writer) error

func (*BlockBase) MarshalBody

func (_r *BlockBase) MarshalBody(w io.Writer) error

func (*BlockBase) MarshalHeader

func (_r *BlockBase) MarshalHeader(w io.Writer) error

func (*BlockBase) NewBlock added in v0.9.6

func (_r *BlockBase) NewBlock(vl module.ValidatorList) module.Block

func (*BlockBase) NextValidators

func (_r *BlockBase) NextValidators() module.ValidatorList

func (*BlockBase) NextValidatorsHash

func (_r *BlockBase) NextValidatorsHash() []byte

func (*BlockBase) NormalTransactions

func (_r *BlockBase) NormalTransactions() module.TransactionList

func (*BlockBase) PatchTransactions

func (_r *BlockBase) PatchTransactions() module.TransactionList

func (*BlockBase) PrevID

func (_r *BlockBase) PrevID() []byte

func (*BlockBase) Proposer

func (_r *BlockBase) Proposer() module.Address

func (*BlockBase) Result

func (_r *BlockBase) Result() []byte

func (*BlockBase) Timestamp

func (_r *BlockBase) Timestamp() int64

func (*BlockBase) ToJSON

func (_r *BlockBase) ToJSON(version module.JSONVersion) (interface{}, error)

func (*BlockBase) Version

func (_r *BlockBase) Version() int

func (*BlockBase) Votes

func (_r *BlockBase) Votes() module.CommitVoteSet

type BlockManagerBase

type BlockManagerBase struct{}

func (*BlockManagerBase) Commit

func (*BlockManagerBase) ExportBlocks

func (_r *BlockManagerBase) ExportBlocks(from int64, to int64, dst db.Database, on func(height int64) error) error

func (*BlockManagerBase) ExportGenesis

func (_r *BlockManagerBase) ExportGenesis(blk module.Block, writer module.GenesisStorageWriter) error

func (*BlockManagerBase) Finalize

func (*BlockManagerBase) GetBlock

func (_r *BlockManagerBase) GetBlock(id []byte) (module.Block, error)

func (*BlockManagerBase) GetBlockByHeight

func (_r *BlockManagerBase) GetBlockByHeight(height int64) (module.Block, error)

func (*BlockManagerBase) GetGenesisData

func (_r *BlockManagerBase) GetGenesisData() (module.Block, module.CommitVoteSet, error)

func (*BlockManagerBase) GetLastBlock

func (_r *BlockManagerBase) GetLastBlock() (module.Block, error)

func (*BlockManagerBase) GetTransactionInfo

func (_r *BlockManagerBase) GetTransactionInfo(id []byte) (module.TransactionInfo, error)

func (*BlockManagerBase) Import

func (_r *BlockManagerBase) Import(r io.Reader, flags int, cb func(module.BlockCandidate, error)) (canceler module.Canceler, err error)

func (*BlockManagerBase) ImportBlock

func (_r *BlockManagerBase) ImportBlock(blk module.BlockData, flags int, cb func(module.BlockCandidate, error)) (canceler module.Canceler, err error)

func (*BlockManagerBase) NewBlockDataFromReader

func (_r *BlockManagerBase) NewBlockDataFromReader(r io.Reader) (module.BlockData, error)

func (*BlockManagerBase) Propose

func (_r *BlockManagerBase) Propose(parentID []byte, votes module.CommitVoteSet, cb func(module.BlockCandidate, error)) (canceler module.Canceler, err error)

func (*BlockManagerBase) SendTransactionAndWait

func (_r *BlockManagerBase) SendTransactionAndWait(txi interface{}) (tid []byte, rc <-chan interface{}, err error)

func (*BlockManagerBase) Term

func (_r *BlockManagerBase) Term()

func (*BlockManagerBase) WaitForBlock

func (_r *BlockManagerBase) WaitForBlock(height int64) (<-chan module.Block, error)

func (*BlockManagerBase) WaitForTransaction

func (_r *BlockManagerBase) WaitForTransaction(parentID []byte, cb func()) bool

func (*BlockManagerBase) WaitTransactionResult

func (_r *BlockManagerBase) WaitTransactionResult(id []byte) (rc <-chan interface{}, err error)

type ChainBase

type ChainBase struct{}

func (*ChainBase) Backup

func (_r *ChainBase) Backup(file string, extra []string) error

func (*ChainBase) BlockManager

func (_r *ChainBase) BlockManager() module.BlockManager

func (*ChainBase) CID

func (_r *ChainBase) CID() int

func (*ChainBase) Channel

func (_r *ChainBase) Channel() string

func (*ChainBase) CommitVoteSetDecoder

func (_r *ChainBase) CommitVoteSetDecoder() module.CommitVoteSetDecoder

func (*ChainBase) ConcurrencyLevel

func (_r *ChainBase) ConcurrencyLevel() int

func (*ChainBase) Consensus

func (_r *ChainBase) Consensus() module.Consensus

func (*ChainBase) Database

func (_r *ChainBase) Database() db.Database

func (*ChainBase) DefaultWaitTimeout

func (_r *ChainBase) DefaultWaitTimeout() time.Duration

func (*ChainBase) Genesis

func (_r *ChainBase) Genesis() []byte

func (*ChainBase) GenesisStorage

func (_r *ChainBase) GenesisStorage() module.GenesisStorage

func (*ChainBase) Import

func (_r *ChainBase) Import(src string, height int64) error

func (*ChainBase) Init

func (_r *ChainBase) Init() error

func (*ChainBase) IsStarted

func (_r *ChainBase) IsStarted() bool

func (*ChainBase) IsStopped

func (_r *ChainBase) IsStopped() bool

func (*ChainBase) Logger

func (_r *ChainBase) Logger() log.Logger

func (*ChainBase) MaxBlockTxBytes

func (_r *ChainBase) MaxBlockTxBytes() int

func (*ChainBase) MaxWaitTimeout

func (_r *ChainBase) MaxWaitTimeout() time.Duration

func (*ChainBase) MetricContext

func (_r *ChainBase) MetricContext() context.Context

func (*ChainBase) NID

func (_r *ChainBase) NID() int

func (*ChainBase) NetID

func (_r *ChainBase) NetID() int

func (*ChainBase) NetworkManager

func (_r *ChainBase) NetworkManager() module.NetworkManager

func (*ChainBase) NormalTxPoolSize

func (_r *ChainBase) NormalTxPoolSize() int

func (*ChainBase) PatchDecoder

func (_r *ChainBase) PatchDecoder() module.PatchDecoder

func (*ChainBase) PatchTxPoolSize

func (_r *ChainBase) PatchTxPoolSize() int

func (*ChainBase) Prune

func (_r *ChainBase) Prune(gs string, dbt string, height int64) error

func (*ChainBase) Regulator

func (_r *ChainBase) Regulator() module.Regulator

func (*ChainBase) Reset

func (_r *ChainBase) Reset() error

func (*ChainBase) RunTask added in v0.9.6

func (_r *ChainBase) RunTask(task string, params json.RawMessage) error

func (*ChainBase) ServiceManager

func (_r *ChainBase) ServiceManager() module.ServiceManager

func (*ChainBase) Start

func (_r *ChainBase) Start() error

func (*ChainBase) State

func (_r *ChainBase) State() (string, int64, error)

func (*ChainBase) Stop

func (_r *ChainBase) Stop() error

func (*ChainBase) Term

func (_r *ChainBase) Term() error

func (*ChainBase) TransactionTimeout added in v0.9.4

func (_r *ChainBase) TransactionTimeout() time.Duration

func (*ChainBase) Verify

func (_r *ChainBase) Verify() error

func (*ChainBase) Wallet

func (_r *ChainBase) Wallet() module.Wallet

type CommitVoteSetBase

type CommitVoteSetBase struct{}

func (*CommitVoteSetBase) Bytes

func (_r *CommitVoteSetBase) Bytes() []byte

func (*CommitVoteSetBase) Hash

func (_r *CommitVoteSetBase) Hash() []byte

func (*CommitVoteSetBase) Timestamp

func (_r *CommitVoteSetBase) Timestamp() int64

func (*CommitVoteSetBase) VerifyBlock added in v0.9.8

func (_r *CommitVoteSetBase) VerifyBlock(block module.BlockData, validators module.ValidatorList) ([]bool, error)

type NetworkManagerBase

type NetworkManagerBase struct{}

func (*NetworkManagerBase) AddRole

func (_r *NetworkManagerBase) AddRole(role module.Role, peers ...module.PeerID)

func (*NetworkManagerBase) GetPeers

func (_r *NetworkManagerBase) GetPeers() []module.PeerID

func (*NetworkManagerBase) GetPeersByRole

func (_r *NetworkManagerBase) GetPeersByRole(role module.Role) []module.PeerID

func (*NetworkManagerBase) HasRole

func (_r *NetworkManagerBase) HasRole(role module.Role, id module.PeerID) bool

func (*NetworkManagerBase) RegisterReactor

func (_r *NetworkManagerBase) RegisterReactor(name string, pi module.ProtocolInfo, reactor module.Reactor, piList []module.ProtocolInfo, priority uint8) (module.ProtocolHandler, error)

func (*NetworkManagerBase) RegisterReactorForStreams

func (_r *NetworkManagerBase) RegisterReactorForStreams(name string, pi module.ProtocolInfo, reactor module.Reactor, piList []module.ProtocolInfo, priority uint8) (module.ProtocolHandler, error)

func (*NetworkManagerBase) RemoveRole

func (_r *NetworkManagerBase) RemoveRole(role module.Role, peers ...module.PeerID)

func (*NetworkManagerBase) Roles

func (_r *NetworkManagerBase) Roles(id module.PeerID) []module.Role

func (*NetworkManagerBase) SetInitialRoles

func (_r *NetworkManagerBase) SetInitialRoles(roles ...module.Role)

func (*NetworkManagerBase) SetRole

func (_r *NetworkManagerBase) SetRole(version int64, role module.Role, peers ...module.PeerID)

func (*NetworkManagerBase) SetTrustSeeds

func (_r *NetworkManagerBase) SetTrustSeeds(seeds string)

func (*NetworkManagerBase) Start

func (_r *NetworkManagerBase) Start() error

func (*NetworkManagerBase) Term

func (_r *NetworkManagerBase) Term()

func (*NetworkManagerBase) UnregisterReactor

func (_r *NetworkManagerBase) UnregisterReactor(reactor module.Reactor) error

type ReceiptBase

type ReceiptBase struct{}

func (*ReceiptBase) Bytes

func (_r *ReceiptBase) Bytes() []byte

func (*ReceiptBase) Check

func (_r *ReceiptBase) Check(r module.Receipt) error

func (*ReceiptBase) CumulativeStepUsed

func (_r *ReceiptBase) CumulativeStepUsed() *big.Int

func (*ReceiptBase) EventLogIterator

func (_r *ReceiptBase) EventLogIterator() module.EventLogIterator

func (*ReceiptBase) Fee added in v0.9.8

func (_r *ReceiptBase) Fee() *big.Int

func (*ReceiptBase) FeePaymentIterator added in v0.9.6

func (_r *ReceiptBase) FeePaymentIterator() module.FeePaymentIterator

func (*ReceiptBase) GetProofOfEvent

func (_r *ReceiptBase) GetProofOfEvent(int) ([][]byte, error)

func (*ReceiptBase) LogsBloom

func (_r *ReceiptBase) LogsBloom() module.LogsBloom

func (*ReceiptBase) LogsBloomDisabled added in v0.9.6

func (_r *ReceiptBase) LogsBloomDisabled() bool

func (*ReceiptBase) SCOREAddress

func (_r *ReceiptBase) SCOREAddress() module.Address

func (*ReceiptBase) Status

func (_r *ReceiptBase) Status() module.Status

func (*ReceiptBase) StepPrice

func (_r *ReceiptBase) StepPrice() *big.Int

func (*ReceiptBase) StepUsed

func (_r *ReceiptBase) StepUsed() *big.Int

func (*ReceiptBase) To

func (_r *ReceiptBase) To() module.Address

func (*ReceiptBase) ToJSON

func (_r *ReceiptBase) ToJSON(version module.JSONVersion) (interface{}, error)

type RegulatorBase

type RegulatorBase struct{}

func (*RegulatorBase) CommitTimeout

func (_r *RegulatorBase) CommitTimeout() time.Duration

func (*RegulatorBase) MaxTxCount

func (_r *RegulatorBase) MaxTxCount() int

func (*RegulatorBase) MinCommitTimeout

func (_r *RegulatorBase) MinCommitTimeout() time.Duration

func (*RegulatorBase) OnPropose

func (_r *RegulatorBase) OnPropose(now time.Time)

func (*RegulatorBase) OnTxExecution

func (_r *RegulatorBase) OnTxExecution(count int, ed time.Duration, fd time.Duration)

func (*RegulatorBase) SetBlockInterval

func (_r *RegulatorBase) SetBlockInterval(i time.Duration, d time.Duration)

type ServiceManagerBase

type ServiceManagerBase struct{}

func (*ServiceManagerBase) Call

func (_r *ServiceManagerBase) Call(result []byte, vl module.ValidatorList, js []byte, bi module.BlockInfo) (interface{}, error)

func (*ServiceManagerBase) CreateInitialTransition

func (_r *ServiceManagerBase) CreateInitialTransition(result []byte, nextValidators module.ValidatorList) (module.Transition, error)

func (*ServiceManagerBase) CreateSyncTransition

func (_r *ServiceManagerBase) CreateSyncTransition(transition module.Transition, result []byte, vlHash []byte) module.Transition

func (*ServiceManagerBase) CreateTransition

func (*ServiceManagerBase) ExecuteTransaction

func (_r *ServiceManagerBase) ExecuteTransaction(result []byte, vh []byte, js []byte, bi module.BlockInfo) (module.Receipt, error)

func (*ServiceManagerBase) ExportResult

func (_r *ServiceManagerBase) ExportResult(result []byte, vh []byte, dst db.Database) error

func (*ServiceManagerBase) Finalize

func (_r *ServiceManagerBase) Finalize(transition module.Transition, opt int) error

func (*ServiceManagerBase) GenesisTransactionFromBytes

func (_r *ServiceManagerBase) GenesisTransactionFromBytes(b []byte, blockVersion int) (module.Transaction, error)

func (*ServiceManagerBase) GetAPIInfo

func (_r *ServiceManagerBase) GetAPIInfo(result []byte, addr module.Address) (module.APIInfo, error)

func (*ServiceManagerBase) GetBalance

func (_r *ServiceManagerBase) GetBalance(result []byte, addr module.Address) (*big.Int, error)

func (*ServiceManagerBase) GetChainID

func (_r *ServiceManagerBase) GetChainID(result []byte) (int64, error)

func (*ServiceManagerBase) GetMembers

func (_r *ServiceManagerBase) GetMembers(result []byte) (module.MemberList, error)

func (*ServiceManagerBase) GetMinimizeBlockGen

func (_r *ServiceManagerBase) GetMinimizeBlockGen(result []byte) bool

func (*ServiceManagerBase) GetNetworkID

func (_r *ServiceManagerBase) GetNetworkID(result []byte) (int64, error)

func (*ServiceManagerBase) GetPatches

func (*ServiceManagerBase) GetRoundLimit

func (_r *ServiceManagerBase) GetRoundLimit(result []byte, vl int) int64

func (*ServiceManagerBase) GetTotalSupply

func (_r *ServiceManagerBase) GetTotalSupply(result []byte) (*big.Int, error)

func (*ServiceManagerBase) HasTransaction

func (_r *ServiceManagerBase) HasTransaction(id []byte) bool

func (*ServiceManagerBase) ImportResult

func (_r *ServiceManagerBase) ImportResult(result []byte, vh []byte, src db.Database) error

func (*ServiceManagerBase) PatchTransition

func (_r *ServiceManagerBase) PatchTransition(transition module.Transition, patches module.TransactionList, bi module.BlockInfo) module.Transition

func (*ServiceManagerBase) ProposeTransition

func (_r *ServiceManagerBase) ProposeTransition(parent module.Transition, bi module.BlockInfo, csi module.ConsensusInfo) (module.Transition, error)

func (*ServiceManagerBase) ReceiptListFromResult

func (_r *ServiceManagerBase) ReceiptListFromResult(result []byte, g module.TransactionGroup) (module.ReceiptList, error)

func (*ServiceManagerBase) SendPatch

func (_r *ServiceManagerBase) SendPatch(patch module.Patch) error

func (*ServiceManagerBase) SendTransaction

func (_r *ServiceManagerBase) SendTransaction(tx interface{}) ([]byte, error)

func (*ServiceManagerBase) SendTransactionAndWait

func (_r *ServiceManagerBase) SendTransactionAndWait(tx interface{}) ([]byte, <-chan interface{}, error)

func (*ServiceManagerBase) Start

func (_r *ServiceManagerBase) Start()

func (*ServiceManagerBase) Term

func (_r *ServiceManagerBase) Term()

func (*ServiceManagerBase) TransactionFromBytes

func (_r *ServiceManagerBase) TransactionFromBytes(b []byte, blockVersion int) (module.Transaction, error)

func (*ServiceManagerBase) TransactionListFromHash

func (_r *ServiceManagerBase) TransactionListFromHash(hash []byte) module.TransactionList

func (*ServiceManagerBase) TransactionListFromSlice

func (_r *ServiceManagerBase) TransactionListFromSlice(txs []module.Transaction, version int) module.TransactionList

func (*ServiceManagerBase) ValidatorListFromHash

func (_r *ServiceManagerBase) ValidatorListFromHash(hash []byte) module.ValidatorList

func (*ServiceManagerBase) WaitForTransaction

func (_r *ServiceManagerBase) WaitForTransaction(parent module.Transition, bi module.BlockInfo, cb func()) bool

func (*ServiceManagerBase) WaitTransactionResult

func (_r *ServiceManagerBase) WaitTransactionResult(id []byte) (<-chan interface{}, error)

type TransactionBase

type TransactionBase struct{}

func (*TransactionBase) Bytes

func (_r *TransactionBase) Bytes() []byte

func (*TransactionBase) From

func (_r *TransactionBase) From() module.Address

func (*TransactionBase) Group

func (*TransactionBase) Hash

func (_r *TransactionBase) Hash() []byte

func (*TransactionBase) ID

func (_r *TransactionBase) ID() []byte

func (*TransactionBase) ToJSON

func (_r *TransactionBase) ToJSON(version module.JSONVersion) (interface{}, error)

func (*TransactionBase) ValidateNetwork

func (_r *TransactionBase) ValidateNetwork(nid int) bool

func (*TransactionBase) Verify

func (_r *TransactionBase) Verify() error

func (*TransactionBase) Version

func (_r *TransactionBase) Version() int

type TransactionListBase

type TransactionListBase struct{}

func (*TransactionListBase) Equal

func (*TransactionListBase) Flush

func (_r *TransactionListBase) Flush() error

func (*TransactionListBase) Get

func (*TransactionListBase) Hash

func (_r *TransactionListBase) Hash() []byte

func (*TransactionListBase) Iterator

type ValidatorListBase

type ValidatorListBase struct{}

func (*ValidatorListBase) Bytes

func (_r *ValidatorListBase) Bytes() []byte

func (*ValidatorListBase) Flush

func (_r *ValidatorListBase) Flush() error

func (*ValidatorListBase) Get

func (_r *ValidatorListBase) Get(i int) (module.Validator, bool)

func (*ValidatorListBase) Hash

func (_r *ValidatorListBase) Hash() []byte

func (*ValidatorListBase) IndexOf

func (_r *ValidatorListBase) IndexOf(module.Address) int

func (*ValidatorListBase) Len

func (_r *ValidatorListBase) Len() int

Jump to

Keyboard shortcuts

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