Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAccount
- type MockAccountMockRecorder
- func (mr *MockAccountMockRecorder) GetAddress() *gomock.Call
- func (mr *MockAccountMockRecorder) GetBalance() *gomock.Call
- func (mr *MockAccountMockRecorder) GetNonce() *gomock.Call
- func (mr *MockAccountMockRecorder) IncrNonce() *gomock.Call
- func (mr *MockAccountMockRecorder) SetBalance(arg0 interface{}) *gomock.Call
- type MockBlock
- func (m *MockBlock) ComputeHash() util.Hash
- func (m *MockBlock) EXPECT() *MockBlockMockRecorder
- func (m *MockBlock) GetBytes() []byte
- func (m *MockBlock) GetBytesNoHashSig() []byte
- func (m *MockBlock) GetBytesNoTxs() []byte
- func (m *MockBlock) GetHash() util.Hash
- func (m *MockBlock) GetHashAsHex() string
- func (m *MockBlock) GetHeader() types.Header
- func (m *MockBlock) GetNumber() uint64
- func (m *MockBlock) GetSignature() []byte
- func (m *MockBlock) GetSize() int64
- func (m *MockBlock) GetSizeNoTxs() int64
- func (m *MockBlock) GetTransactions() []types.Transaction
- func (m *MockBlock) GetValidationContexts() []types.ValidationContext
- func (m *MockBlock) ReplaceHeader(header types.Header) types.Block
- func (m *MockBlock) SetHash(arg0 util.Hash)
- func (m *MockBlock) SetHeader(h types.Header)
- func (m *MockBlock) SetSig(arg0 []byte)
- func (m *MockBlock) SetSignature(sig []byte)
- func (m *MockBlock) SetValidationContexts(arg0 ...types.ValidationContext)
- type MockBlockMaker
- func (m *MockBlockMaker) ChainReader() types.ChainReaderFactory
- func (m *MockBlockMaker) EXPECT() *MockBlockMakerMockRecorder
- func (m *MockBlockMaker) Generate(arg0 *types.GenerateBlockParams, arg1 ...types.CallOp) (types.Block, error)
- func (m *MockBlockMaker) IsMainChain(arg0 types.ChainReaderFactory) bool
- func (m *MockBlockMaker) ProcessBlock(arg0 types.Block, arg1 ...types.CallOp) (types.ChainReaderFactory, error)
- type MockBlockMakerMockRecorder
- func (mr *MockBlockMakerMockRecorder) ChainReader() *gomock.Call
- func (mr *MockBlockMakerMockRecorder) Generate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockBlockMakerMockRecorder) IsMainChain(arg0 interface{}) *gomock.Call
- func (mr *MockBlockMakerMockRecorder) ProcessBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockBlockMockRecorder
- func (mr *MockBlockMockRecorder) ComputeHash() *gomock.Call
- func (mr *MockBlockMockRecorder) GetBytes() *gomock.Call
- func (mr *MockBlockMockRecorder) GetBytesNoHashSig() *gomock.Call
- func (mr *MockBlockMockRecorder) GetBytesNoTxs() *gomock.Call
- func (mr *MockBlockMockRecorder) GetHash() *gomock.Call
- func (mr *MockBlockMockRecorder) GetHashAsHex() *gomock.Call
- func (mr *MockBlockMockRecorder) GetHeader() *gomock.Call
- func (mr *MockBlockMockRecorder) GetNumber() *gomock.Call
- func (mr *MockBlockMockRecorder) GetSignature() *gomock.Call
- func (mr *MockBlockMockRecorder) GetSize() *gomock.Call
- func (mr *MockBlockMockRecorder) GetSizeNoTxs() *gomock.Call
- func (mr *MockBlockMockRecorder) GetTransactions() *gomock.Call
- func (mr *MockBlockMockRecorder) GetValidationContexts() *gomock.Call
- func (mr *MockBlockMockRecorder) ReplaceHeader(header interface{}) *gomock.Call
- func (mr *MockBlockMockRecorder) SetHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockMockRecorder) SetHeader(h interface{}) *gomock.Call
- func (mr *MockBlockMockRecorder) SetSig(arg0 interface{}) *gomock.Call
- func (mr *MockBlockMockRecorder) SetSignature(sig interface{}) *gomock.Call
- func (mr *MockBlockMockRecorder) SetValidationContexts(arg0 ...interface{}) *gomock.Call
- type MockBlockchain
- func (m *MockBlockchain) ChainReader() types.ChainReaderFactory
- func (m *MockBlockchain) ChooseBestChain(opts ...types.CallOp) (types.Chainer, error)
- func (m *MockBlockchain) CreateAccount(blockNo uint64, chain types.Chainer, account types.Account) error
- func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
- func (m *MockBlockchain) Generate(arg0 *types.GenerateBlockParams, arg1 ...types.CallOp) (types.Block, error)
- func (m *MockBlockchain) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
- func (m *MockBlockchain) GetAccountNonce(address util.String, opts ...types.CallOp) (uint64, error)
- func (m *MockBlockchain) GetBestChain() types.Chainer
- func (m *MockBlockchain) GetBlock(number uint64, hash util.Hash) (types.Block, error)
- func (m *MockBlockchain) GetBlockByHash(hash util.Hash, opts ...types.CallOp) (types.Block, error)
- func (m *MockBlockchain) GetChainReaderByHash(hash util.Hash) types.ChainReaderFactory
- func (m *MockBlockchain) GetChainsReader() []types.ChainReaderFactory
- func (m *MockBlockchain) GetEventEmitter() *emitter.Emitter
- func (m *MockBlockchain) GetLocators() ([]util.Hash, error)
- func (m *MockBlockchain) GetTransaction(arg0 util.Hash, arg1 ...types.CallOp) (types.Transaction, error)
- func (m *MockBlockchain) GetTxPool() types.TxPool
- func (m *MockBlockchain) HaveBlock(hash util.Hash) (bool, error)
- func (m *MockBlockchain) OrphanBlocks() types.CacheReader
- func (m *MockBlockchain) ProcessBlock(arg0 types.Block, arg1 ...types.CallOp) (types.ChainReaderFactory, error)
- func (m *MockBlockchain) SetCoinbase(coinbase *crypto.Key)
- func (m *MockBlockchain) SetDB(arg0 elldb.DB)
- func (m *MockBlockchain) SetGenesisBlock(block types.Block)
- func (m *MockBlockchain) Up() error
- type MockBlockchainMockRecorder
- func (mr *MockBlockchainMockRecorder) ChainReader() *gomock.Call
- func (mr *MockBlockchainMockRecorder) ChooseBestChain(opts ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) CreateAccount(blockNo, chain, account interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Generate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetAccountNonce(address interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBestChain() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlock(number, hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetChainReaderByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetChainsReader() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetEventEmitter() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetLocators() *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTransaction(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) GetTxPool() *gomock.Call
- func (mr *MockBlockchainMockRecorder) HaveBlock(hash interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) OrphanBlocks() *gomock.Call
- func (mr *MockBlockchainMockRecorder) ProcessBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) SetCoinbase(coinbase interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) SetDB(arg0 interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) SetGenesisBlock(block interface{}) *gomock.Call
- func (mr *MockBlockchainMockRecorder) Up() *gomock.Call
- type MockCacheReader
- type MockCacheReaderMockRecorder
- type MockCallOp
- type MockCallOpMockRecorder
- type MockChainInfo
- type MockChainInfoMockRecorder
- type MockChainReaderFactory
- func (m *MockChainReaderFactory) Current(opts ...types.CallOp) (types.Block, error)
- func (m *MockChainReaderFactory) EXPECT() *MockChainReaderFactoryMockRecorder
- func (m *MockChainReaderFactory) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
- func (m *MockChainReaderFactory) GetBlock(number uint64, opts ...types.CallOp) (types.Block, error)
- func (m *MockChainReaderFactory) GetBlockByHash(hash util.Hash, opts ...types.CallOp) (types.Block, error)
- func (m *MockChainReaderFactory) GetHeader(number uint64, opts ...types.CallOp) (types.Header, error)
- func (m *MockChainReaderFactory) GetHeaderByHash(hash util.Hash, opts ...types.CallOp) (types.Header, error)
- func (m *MockChainReaderFactory) GetID() util.String
- func (m *MockChainReaderFactory) GetParent() types.ChainReaderFactory
- func (m *MockChainReaderFactory) GetParentBlock() types.Block
- func (m *MockChainReaderFactory) GetRoot() types.Block
- type MockChainReaderFactoryMockRecorder
- func (mr *MockChainReaderFactoryMockRecorder) Current(opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetBlock(number interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetHeader(number interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetHeaderByHash(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetID() *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetParent() *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetParentBlock() *gomock.Call
- func (mr *MockChainReaderFactoryMockRecorder) GetRoot() *gomock.Call
- type MockChainStorer
- func (m *MockChainStorer) CreateAccount(targetBlockNum uint64, account types.Account, opts ...types.CallOp) error
- func (m *MockChainStorer) Current(opts ...types.CallOp) (types.Block, error)
- func (m *MockChainStorer) DB() elldb.DB
- func (m *MockChainStorer) Delete(key []byte, opts ...types.CallOp) error
- func (m *MockChainStorer) EXPECT() *MockChainStorerMockRecorder
- func (m *MockChainStorer) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
- func (m *MockChainStorer) GetAccounts(opts ...types.CallOp) ([]types.Account, error)
- func (m *MockChainStorer) GetBlock(number uint64, opts ...types.CallOp) (types.Block, error)
- func (m *MockChainStorer) GetBlockByHash(hash util.Hash, opts ...types.CallOp) (types.Block, error)
- func (m *MockChainStorer) GetBlockByNumberAndHash(number uint64, hash util.Hash, opts ...types.CallOp) (types.Block, error)
- func (m *MockChainStorer) GetHeader(number uint64, opts ...types.CallOp) (types.Header, error)
- func (m *MockChainStorer) GetHeaderByHash(hash util.Hash, opts ...types.CallOp) (types.Header, error)
- func (m *MockChainStorer) GetTransaction(hash util.Hash, opts ...types.CallOp) (types.Transaction, error)
- func (m *MockChainStorer) NewTx() (elldb.Tx, error)
- func (m *MockChainStorer) PutBlock(block types.Block, opts ...types.CallOp) error
- func (m *MockChainStorer) PutMinedBlock(block types.Block, opts ...types.CallOp) error
- func (m *MockChainStorer) PutTransactions(txs []types.Transaction, blockNumber uint64, opts ...types.CallOp) error
- type MockChainStorerMockRecorder
- func (mr *MockChainStorerMockRecorder) CreateAccount(targetBlockNum, account interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) Current(opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) DB() *gomock.Call
- func (mr *MockChainStorerMockRecorder) Delete(key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetAccounts(opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetBlock(number interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetBlockByNumberAndHash(number, hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetHeader(number interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetHeaderByHash(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) GetTransaction(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) NewTx() *gomock.Call
- func (mr *MockChainStorerMockRecorder) PutBlock(block interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) PutMinedBlock(block interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainStorerMockRecorder) PutTransactions(txs, blockNumber interface{}, opts ...interface{}) *gomock.Call
- type MockChainer
- func (m *MockChainer) ChainReader() types.ChainReaderFactory
- func (m *MockChainer) CreateAccount(targetBlockNum uint64, account types.Account, opts ...types.CallOp) error
- func (m *MockChainer) Current(opts ...types.CallOp) (types.Header, error)
- func (m *MockChainer) EXPECT() *MockChainerMockRecorder
- func (m *MockChainer) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
- func (m *MockChainer) GetBlock(arg0 uint64, arg1 ...types.CallOp) (types.Block, error)
- func (m *MockChainer) GetID() util.String
- func (m *MockChainer) GetInfo() types.ChainInfo
- func (m *MockChainer) GetParentBlock() types.Block
- func (m *MockChainer) GetRoot() types.Block
- func (m *MockChainer) GetStore() types.ChainStorer
- func (m *MockChainer) GetTransaction(hash util.Hash, opts ...types.CallOp) (types.Transaction, error)
- func (m *MockChainer) NewStateTree(opts ...types.CallOp) (types.Tree, error)
- func (m *MockChainer) PutTransactions(txs []types.Transaction, blockNumber uint64, opts ...types.CallOp) error
- type MockChainerMockRecorder
- func (mr *MockChainerMockRecorder) ChainReader() *gomock.Call
- func (mr *MockChainerMockRecorder) CreateAccount(targetBlockNum, account interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) Current(opts ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) GetBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) GetID() *gomock.Call
- func (mr *MockChainerMockRecorder) GetInfo() *gomock.Call
- func (mr *MockChainerMockRecorder) GetParentBlock() *gomock.Call
- func (mr *MockChainerMockRecorder) GetRoot() *gomock.Call
- func (mr *MockChainerMockRecorder) GetStore() *gomock.Call
- func (mr *MockChainerMockRecorder) GetTransaction(hash interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) NewStateTree(opts ...interface{}) *gomock.Call
- func (mr *MockChainerMockRecorder) PutTransactions(txs, blockNumber interface{}, opts ...interface{}) *gomock.Call
- type MockHeader
- func (m *MockHeader) ComputeHash() util.Hash
- func (m *MockHeader) Copy() types.Header
- func (m *MockHeader) EXPECT() *MockHeaderMockRecorder
- func (m *MockHeader) GetBytes() []byte
- func (m *MockHeader) GetCreatorPubKey() util.String
- func (m *MockHeader) GetDifficulty() *big.Int
- func (m *MockHeader) GetExtra() []byte
- func (m *MockHeader) GetHashNoNonce() util.Hash
- func (m *MockHeader) GetNonce() util.BlockNonce
- func (m *MockHeader) GetNumber() uint64
- func (m *MockHeader) GetParentHash() util.Hash
- func (m *MockHeader) GetStateRoot() util.Hash
- func (m *MockHeader) GetTimestamp() int64
- func (m *MockHeader) GetTotalDifficulty() *big.Int
- func (m *MockHeader) GetTransactionsRoot() util.Hash
- func (m *MockHeader) SetCreatorPubKey(arg0 util.String)
- func (m *MockHeader) SetDifficulty(arg0 *big.Int)
- func (m *MockHeader) SetNonce(nonce util.BlockNonce)
- func (m *MockHeader) SetNumber(arg0 uint64)
- func (m *MockHeader) SetParentHash(arg0 util.Hash)
- func (m *MockHeader) SetStateRoot(arg0 util.Hash)
- func (m *MockHeader) SetTimestamp(arg0 int64)
- func (m *MockHeader) SetTotalDifficulty(arg0 *big.Int)
- func (m *MockHeader) SetTransactionsRoot(txRoot util.Hash)
- type MockHeaderMockRecorder
- func (mr *MockHeaderMockRecorder) ComputeHash() *gomock.Call
- func (mr *MockHeaderMockRecorder) Copy() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetBytes() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetCreatorPubKey() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetDifficulty() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetExtra() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetHashNoNonce() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetNonce() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetNumber() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetParentHash() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetStateRoot() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetTimestamp() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetTotalDifficulty() *gomock.Call
- func (mr *MockHeaderMockRecorder) GetTransactionsRoot() *gomock.Call
- func (mr *MockHeaderMockRecorder) SetCreatorPubKey(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetDifficulty(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetNonce(nonce interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetNumber(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetParentHash(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetStateRoot(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetTotalDifficulty(arg0 interface{}) *gomock.Call
- func (mr *MockHeaderMockRecorder) SetTransactionsRoot(txRoot interface{}) *gomock.Call
- type MockTransaction
- func (m *MockTransaction) ComputeHash() util.Hash
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) GetBytesNoHashAndSig() []byte
- func (m *MockTransaction) GetFee() util.String
- func (m *MockTransaction) GetFrom() util.String
- func (m *MockTransaction) GetHash() util.Hash
- func (m *MockTransaction) GetID() string
- func (m *MockTransaction) GetNonce() uint64
- func (m *MockTransaction) GetSenderPubKey() util.String
- func (m *MockTransaction) GetSignature() []byte
- func (m *MockTransaction) GetSizeNoFee() int64
- func (m *MockTransaction) GetTimestamp() int64
- func (m *MockTransaction) GetTo() util.String
- func (m *MockTransaction) GetType() int64
- func (m *MockTransaction) GetValue() util.String
- func (m *MockTransaction) SetFrom(arg0 util.String)
- func (m *MockTransaction) SetHash(arg0 util.Hash)
- func (m *MockTransaction) SetSenderPubKey(arg0 util.String)
- func (m *MockTransaction) SetSignature(sig []byte)
- func (m *MockTransaction) SetTimestamp(arg0 int64)
- func (m *MockTransaction) SetValue(arg0 util.String)
- func (m *MockTransaction) Sign(privKey string) ([]byte, error)
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) ComputeHash() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetBytesNoHashAndSig() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetFee() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetFrom() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetHash() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetID() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetNonce() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetSenderPubKey() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetSignature() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetSizeNoFee() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetTimestamp() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetTo() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetType() *gomock.Call
- func (mr *MockTransactionMockRecorder) GetValue() *gomock.Call
- func (mr *MockTransactionMockRecorder) SetFrom(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) SetHash(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) SetSenderPubKey(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) SetSignature(sig interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) SetValue(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Sign(privKey interface{}) *gomock.Call
- type MockTree
- type MockTreeMockRecorder
- type MockTxContainer
- func (m *MockTxContainer) Add(tx types.Transaction) bool
- func (m *MockTxContainer) ByteSize() int64
- func (m *MockTxContainer) EXPECT() *MockTxContainerMockRecorder
- func (m *MockTxContainer) First() types.Transaction
- func (m *MockTxContainer) Has(tx types.Transaction) bool
- func (m *MockTxContainer) IFind(predicate func(types.Transaction) bool) types.Transaction
- func (m *MockTxContainer) Last() types.Transaction
- func (m *MockTxContainer) Remove(txs ...types.Transaction)
- func (m *MockTxContainer) Size() int64
- func (m *MockTxContainer) Sort()
- type MockTxContainerMockRecorder
- func (mr *MockTxContainerMockRecorder) Add(tx interface{}) *gomock.Call
- func (mr *MockTxContainerMockRecorder) ByteSize() *gomock.Call
- func (mr *MockTxContainerMockRecorder) First() *gomock.Call
- func (mr *MockTxContainerMockRecorder) Has(tx interface{}) *gomock.Call
- func (mr *MockTxContainerMockRecorder) IFind(predicate interface{}) *gomock.Call
- func (mr *MockTxContainerMockRecorder) Last() *gomock.Call
- func (mr *MockTxContainerMockRecorder) Remove(txs ...interface{}) *gomock.Call
- func (mr *MockTxContainerMockRecorder) Size() *gomock.Call
- func (mr *MockTxContainerMockRecorder) Sort() *gomock.Call
- type MockTxPool
- func (m *MockTxPool) ByteSize() int64
- func (m *MockTxPool) Container() types.TxContainer
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) GetByFrom(address util.String) []types.Transaction
- func (m *MockTxPool) GetByHash(hash string) types.Transaction
- func (m *MockTxPool) Has(tx types.Transaction) bool
- func (m *MockTxPool) HasByHash(hash string) bool
- func (m *MockTxPool) Put(tx types.Transaction) error
- func (m *MockTxPool) Remove(txs ...types.Transaction)
- func (m *MockTxPool) Size() int64
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) ByteSize() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Container() *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetByFrom(address interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetByHash(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Has(tx interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) HasByHash(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Put(tx interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Remove(txs ...interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Size() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccount ¶
type MockAccount struct {
// contains filtered or unexported fields
}
MockAccount is a mock of Account interface
func NewMockAccount ¶
func NewMockAccount(ctrl *gomock.Controller) *MockAccount
NewMockAccount creates a new mock instance
func (*MockAccount) EXPECT ¶
func (m *MockAccount) EXPECT() *MockAccountMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAccount) GetAddress ¶
func (m *MockAccount) GetAddress() util.String
GetAddress mocks base method
func (*MockAccount) GetBalance ¶
func (m *MockAccount) GetBalance() util.String
GetBalance mocks base method
func (*MockAccount) SetBalance ¶
func (m *MockAccount) SetBalance(arg0 util.String)
SetBalance mocks base method
type MockAccountMockRecorder ¶
type MockAccountMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountMockRecorder is the mock recorder for MockAccount
func (*MockAccountMockRecorder) GetAddress ¶
func (mr *MockAccountMockRecorder) GetAddress() *gomock.Call
GetAddress indicates an expected call of GetAddress
func (*MockAccountMockRecorder) GetBalance ¶
func (mr *MockAccountMockRecorder) GetBalance() *gomock.Call
GetBalance indicates an expected call of GetBalance
func (*MockAccountMockRecorder) GetNonce ¶
func (mr *MockAccountMockRecorder) GetNonce() *gomock.Call
GetNonce indicates an expected call of GetNonce
func (*MockAccountMockRecorder) IncrNonce ¶
func (mr *MockAccountMockRecorder) IncrNonce() *gomock.Call
IncrNonce indicates an expected call of IncrNonce
func (*MockAccountMockRecorder) SetBalance ¶
func (mr *MockAccountMockRecorder) SetBalance(arg0 interface{}) *gomock.Call
SetBalance indicates an expected call of SetBalance
type MockBlock ¶
type MockBlock struct {
// contains filtered or unexported fields
}
MockBlock is a mock of Block interface
func NewMockBlock ¶
func NewMockBlock(ctrl *gomock.Controller) *MockBlock
NewMockBlock creates a new mock instance
func (*MockBlock) ComputeHash ¶
ComputeHash mocks base method
func (*MockBlock) EXPECT ¶
func (m *MockBlock) EXPECT() *MockBlockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlock) GetBytesNoHashSig ¶
GetBytesNoHashSig mocks base method
func (*MockBlock) GetBytesNoTxs ¶
GetBytesNoTxs mocks base method
func (*MockBlock) GetHashAsHex ¶
GetHashAsHex mocks base method
func (*MockBlock) GetSignature ¶
GetSignature mocks base method
func (*MockBlock) GetSizeNoTxs ¶
GetSizeNoTxs mocks base method
func (*MockBlock) GetTransactions ¶
func (m *MockBlock) GetTransactions() []types.Transaction
GetTransactions mocks base method
func (*MockBlock) GetValidationContexts ¶
func (m *MockBlock) GetValidationContexts() []types.ValidationContext
GetValidationContexts mocks base method
func (*MockBlock) ReplaceHeader ¶
ReplaceHeader mocks base method
func (*MockBlock) SetSignature ¶
SetSignature mocks base method
func (*MockBlock) SetValidationContexts ¶
func (m *MockBlock) SetValidationContexts(arg0 ...types.ValidationContext)
SetValidationContexts mocks base method
type MockBlockMaker ¶
type MockBlockMaker struct {
// contains filtered or unexported fields
}
MockBlockMaker is a mock of BlockMaker interface
func NewMockBlockMaker ¶
func NewMockBlockMaker(ctrl *gomock.Controller) *MockBlockMaker
NewMockBlockMaker creates a new mock instance
func (*MockBlockMaker) ChainReader ¶
func (m *MockBlockMaker) ChainReader() types.ChainReaderFactory
ChainReader mocks base method
func (*MockBlockMaker) EXPECT ¶
func (m *MockBlockMaker) EXPECT() *MockBlockMakerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockMaker) Generate ¶
func (m *MockBlockMaker) Generate(arg0 *types.GenerateBlockParams, arg1 ...types.CallOp) (types.Block, error)
Generate mocks base method
func (*MockBlockMaker) IsMainChain ¶
func (m *MockBlockMaker) IsMainChain(arg0 types.ChainReaderFactory) bool
IsMainChain mocks base method
func (*MockBlockMaker) ProcessBlock ¶
func (m *MockBlockMaker) ProcessBlock(arg0 types.Block, arg1 ...types.CallOp) (types.ChainReaderFactory, error)
ProcessBlock mocks base method
type MockBlockMakerMockRecorder ¶
type MockBlockMakerMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockMakerMockRecorder is the mock recorder for MockBlockMaker
func (*MockBlockMakerMockRecorder) ChainReader ¶
func (mr *MockBlockMakerMockRecorder) ChainReader() *gomock.Call
ChainReader indicates an expected call of ChainReader
func (*MockBlockMakerMockRecorder) Generate ¶
func (mr *MockBlockMakerMockRecorder) Generate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Generate indicates an expected call of Generate
func (*MockBlockMakerMockRecorder) IsMainChain ¶
func (mr *MockBlockMakerMockRecorder) IsMainChain(arg0 interface{}) *gomock.Call
IsMainChain indicates an expected call of IsMainChain
func (*MockBlockMakerMockRecorder) ProcessBlock ¶
func (mr *MockBlockMakerMockRecorder) ProcessBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ProcessBlock indicates an expected call of ProcessBlock
type MockBlockMockRecorder ¶
type MockBlockMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockMockRecorder is the mock recorder for MockBlock
func (*MockBlockMockRecorder) ComputeHash ¶
func (mr *MockBlockMockRecorder) ComputeHash() *gomock.Call
ComputeHash indicates an expected call of ComputeHash
func (*MockBlockMockRecorder) GetBytes ¶
func (mr *MockBlockMockRecorder) GetBytes() *gomock.Call
GetBytes indicates an expected call of GetBytes
func (*MockBlockMockRecorder) GetBytesNoHashSig ¶
func (mr *MockBlockMockRecorder) GetBytesNoHashSig() *gomock.Call
GetBytesNoHashSig indicates an expected call of GetBytesNoHashSig
func (*MockBlockMockRecorder) GetBytesNoTxs ¶
func (mr *MockBlockMockRecorder) GetBytesNoTxs() *gomock.Call
GetBytesNoTxs indicates an expected call of GetBytesNoTxs
func (*MockBlockMockRecorder) GetHash ¶
func (mr *MockBlockMockRecorder) GetHash() *gomock.Call
GetHash indicates an expected call of GetHash
func (*MockBlockMockRecorder) GetHashAsHex ¶
func (mr *MockBlockMockRecorder) GetHashAsHex() *gomock.Call
GetHashAsHex indicates an expected call of GetHashAsHex
func (*MockBlockMockRecorder) GetHeader ¶
func (mr *MockBlockMockRecorder) GetHeader() *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockBlockMockRecorder) GetNumber ¶
func (mr *MockBlockMockRecorder) GetNumber() *gomock.Call
GetNumber indicates an expected call of GetNumber
func (*MockBlockMockRecorder) GetSignature ¶
func (mr *MockBlockMockRecorder) GetSignature() *gomock.Call
GetSignature indicates an expected call of GetSignature
func (*MockBlockMockRecorder) GetSize ¶
func (mr *MockBlockMockRecorder) GetSize() *gomock.Call
GetSize indicates an expected call of GetSize
func (*MockBlockMockRecorder) GetSizeNoTxs ¶
func (mr *MockBlockMockRecorder) GetSizeNoTxs() *gomock.Call
GetSizeNoTxs indicates an expected call of GetSizeNoTxs
func (*MockBlockMockRecorder) GetTransactions ¶
func (mr *MockBlockMockRecorder) GetTransactions() *gomock.Call
GetTransactions indicates an expected call of GetTransactions
func (*MockBlockMockRecorder) GetValidationContexts ¶
func (mr *MockBlockMockRecorder) GetValidationContexts() *gomock.Call
GetValidationContexts indicates an expected call of GetValidationContexts
func (*MockBlockMockRecorder) ReplaceHeader ¶
func (mr *MockBlockMockRecorder) ReplaceHeader(header interface{}) *gomock.Call
ReplaceHeader indicates an expected call of ReplaceHeader
func (*MockBlockMockRecorder) SetHash ¶
func (mr *MockBlockMockRecorder) SetHash(arg0 interface{}) *gomock.Call
SetHash indicates an expected call of SetHash
func (*MockBlockMockRecorder) SetHeader ¶
func (mr *MockBlockMockRecorder) SetHeader(h interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader
func (*MockBlockMockRecorder) SetSig ¶
func (mr *MockBlockMockRecorder) SetSig(arg0 interface{}) *gomock.Call
SetSig indicates an expected call of SetSig
func (*MockBlockMockRecorder) SetSignature ¶
func (mr *MockBlockMockRecorder) SetSignature(sig interface{}) *gomock.Call
SetSignature indicates an expected call of SetSignature
func (*MockBlockMockRecorder) SetValidationContexts ¶
func (mr *MockBlockMockRecorder) SetValidationContexts(arg0 ...interface{}) *gomock.Call
SetValidationContexts indicates an expected call of SetValidationContexts
type MockBlockchain ¶
type MockBlockchain struct {
// contains filtered or unexported fields
}
MockBlockchain is a mock of Blockchain interface
func NewMockBlockchain ¶
func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain
NewMockBlockchain creates a new mock instance
func (*MockBlockchain) ChainReader ¶
func (m *MockBlockchain) ChainReader() types.ChainReaderFactory
ChainReader mocks base method
func (*MockBlockchain) ChooseBestChain ¶
ChooseBestChain mocks base method
func (*MockBlockchain) CreateAccount ¶
func (m *MockBlockchain) CreateAccount(blockNo uint64, chain types.Chainer, account types.Account) error
CreateAccount mocks base method
func (*MockBlockchain) EXPECT ¶
func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockchain) Generate ¶
func (m *MockBlockchain) Generate(arg0 *types.GenerateBlockParams, arg1 ...types.CallOp) (types.Block, error)
Generate mocks base method
func (*MockBlockchain) GetAccount ¶
func (m *MockBlockchain) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
GetAccount mocks base method
func (*MockBlockchain) GetAccountNonce ¶
GetAccountNonce mocks base method
func (*MockBlockchain) GetBestChain ¶
func (m *MockBlockchain) GetBestChain() types.Chainer
GetBestChain mocks base method
func (*MockBlockchain) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockBlockchain) GetChainReaderByHash ¶
func (m *MockBlockchain) GetChainReaderByHash(hash util.Hash) types.ChainReaderFactory
GetChainReaderByHash mocks base method
func (*MockBlockchain) GetChainsReader ¶
func (m *MockBlockchain) GetChainsReader() []types.ChainReaderFactory
GetChainsReader mocks base method
func (*MockBlockchain) GetEventEmitter ¶
func (m *MockBlockchain) GetEventEmitter() *emitter.Emitter
GetEventEmitter mocks base method
func (*MockBlockchain) GetLocators ¶
func (m *MockBlockchain) GetLocators() ([]util.Hash, error)
GetLocators mocks base method
func (*MockBlockchain) GetTransaction ¶
func (m *MockBlockchain) GetTransaction(arg0 util.Hash, arg1 ...types.CallOp) (types.Transaction, error)
GetTransaction mocks base method
func (*MockBlockchain) GetTxPool ¶
func (m *MockBlockchain) GetTxPool() types.TxPool
GetTxPool mocks base method
func (*MockBlockchain) HaveBlock ¶
func (m *MockBlockchain) HaveBlock(hash util.Hash) (bool, error)
HaveBlock mocks base method
func (*MockBlockchain) OrphanBlocks ¶
func (m *MockBlockchain) OrphanBlocks() types.CacheReader
OrphanBlocks mocks base method
func (*MockBlockchain) ProcessBlock ¶
func (m *MockBlockchain) ProcessBlock(arg0 types.Block, arg1 ...types.CallOp) (types.ChainReaderFactory, error)
ProcessBlock mocks base method
func (*MockBlockchain) SetCoinbase ¶
func (m *MockBlockchain) SetCoinbase(coinbase *crypto.Key)
SetCoinbase mocks base method
func (*MockBlockchain) SetDB ¶
func (m *MockBlockchain) SetDB(arg0 elldb.DB)
SetDB mocks base method
func (*MockBlockchain) SetGenesisBlock ¶
func (m *MockBlockchain) SetGenesisBlock(block types.Block)
SetGenesisBlock mocks base method
type MockBlockchainMockRecorder ¶
type MockBlockchainMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockchainMockRecorder is the mock recorder for MockBlockchain
func (*MockBlockchainMockRecorder) ChainReader ¶
func (mr *MockBlockchainMockRecorder) ChainReader() *gomock.Call
ChainReader indicates an expected call of ChainReader
func (*MockBlockchainMockRecorder) ChooseBestChain ¶
func (mr *MockBlockchainMockRecorder) ChooseBestChain(opts ...interface{}) *gomock.Call
ChooseBestChain indicates an expected call of ChooseBestChain
func (*MockBlockchainMockRecorder) CreateAccount ¶
func (mr *MockBlockchainMockRecorder) CreateAccount(blockNo, chain, account interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockBlockchainMockRecorder) Generate ¶
func (mr *MockBlockchainMockRecorder) Generate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Generate indicates an expected call of Generate
func (*MockBlockchainMockRecorder) GetAccount ¶
func (mr *MockBlockchainMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockBlockchainMockRecorder) GetAccountNonce ¶
func (mr *MockBlockchainMockRecorder) GetAccountNonce(address interface{}, opts ...interface{}) *gomock.Call
GetAccountNonce indicates an expected call of GetAccountNonce
func (*MockBlockchainMockRecorder) GetBestChain ¶
func (mr *MockBlockchainMockRecorder) GetBestChain() *gomock.Call
GetBestChain indicates an expected call of GetBestChain
func (*MockBlockchainMockRecorder) GetBlock ¶
func (mr *MockBlockchainMockRecorder) GetBlock(number, hash interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockBlockchainMockRecorder) GetBlockByHash ¶
func (mr *MockBlockchainMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockchainMockRecorder) GetChainReaderByHash ¶
func (mr *MockBlockchainMockRecorder) GetChainReaderByHash(hash interface{}) *gomock.Call
GetChainReaderByHash indicates an expected call of GetChainReaderByHash
func (*MockBlockchainMockRecorder) GetChainsReader ¶
func (mr *MockBlockchainMockRecorder) GetChainsReader() *gomock.Call
GetChainsReader indicates an expected call of GetChainsReader
func (*MockBlockchainMockRecorder) GetEventEmitter ¶
func (mr *MockBlockchainMockRecorder) GetEventEmitter() *gomock.Call
GetEventEmitter indicates an expected call of GetEventEmitter
func (*MockBlockchainMockRecorder) GetLocators ¶
func (mr *MockBlockchainMockRecorder) GetLocators() *gomock.Call
GetLocators indicates an expected call of GetLocators
func (*MockBlockchainMockRecorder) GetTransaction ¶
func (mr *MockBlockchainMockRecorder) GetTransaction(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockBlockchainMockRecorder) GetTxPool ¶
func (mr *MockBlockchainMockRecorder) GetTxPool() *gomock.Call
GetTxPool indicates an expected call of GetTxPool
func (*MockBlockchainMockRecorder) HaveBlock ¶
func (mr *MockBlockchainMockRecorder) HaveBlock(hash interface{}) *gomock.Call
HaveBlock indicates an expected call of HaveBlock
func (*MockBlockchainMockRecorder) OrphanBlocks ¶
func (mr *MockBlockchainMockRecorder) OrphanBlocks() *gomock.Call
OrphanBlocks indicates an expected call of OrphanBlocks
func (*MockBlockchainMockRecorder) ProcessBlock ¶
func (mr *MockBlockchainMockRecorder) ProcessBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ProcessBlock indicates an expected call of ProcessBlock
func (*MockBlockchainMockRecorder) SetCoinbase ¶
func (mr *MockBlockchainMockRecorder) SetCoinbase(coinbase interface{}) *gomock.Call
SetCoinbase indicates an expected call of SetCoinbase
func (*MockBlockchainMockRecorder) SetDB ¶
func (mr *MockBlockchainMockRecorder) SetDB(arg0 interface{}) *gomock.Call
SetDB indicates an expected call of SetDB
func (*MockBlockchainMockRecorder) SetGenesisBlock ¶
func (mr *MockBlockchainMockRecorder) SetGenesisBlock(block interface{}) *gomock.Call
SetGenesisBlock indicates an expected call of SetGenesisBlock
func (*MockBlockchainMockRecorder) Up ¶
func (mr *MockBlockchainMockRecorder) Up() *gomock.Call
Up indicates an expected call of Up
type MockCacheReader ¶
type MockCacheReader struct {
// contains filtered or unexported fields
}
MockCacheReader is a mock of CacheReader interface
func NewMockCacheReader ¶
func NewMockCacheReader(ctrl *gomock.Controller) *MockCacheReader
NewMockCacheReader creates a new mock instance
func (*MockCacheReader) EXPECT ¶
func (m *MockCacheReader) EXPECT() *MockCacheReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCacheReader) Get ¶
func (m *MockCacheReader) Get(key interface{}) interface{}
Get mocks base method
func (*MockCacheReader) Has ¶
func (m *MockCacheReader) Has(key interface{}) bool
Has mocks base method
type MockCacheReaderMockRecorder ¶
type MockCacheReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheReaderMockRecorder is the mock recorder for MockCacheReader
func (*MockCacheReaderMockRecorder) Get ¶
func (mr *MockCacheReaderMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockCacheReaderMockRecorder) Has ¶
func (mr *MockCacheReaderMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockCacheReaderMockRecorder) Len ¶
func (mr *MockCacheReaderMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len
type MockCallOp ¶
type MockCallOp struct {
// contains filtered or unexported fields
}
MockCallOp is a mock of CallOp interface
func NewMockCallOp ¶
func NewMockCallOp(ctrl *gomock.Controller) *MockCallOp
NewMockCallOp creates a new mock instance
func (*MockCallOp) EXPECT ¶
func (m *MockCallOp) EXPECT() *MockCallOpMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCallOpMockRecorder ¶
type MockCallOpMockRecorder struct {
// contains filtered or unexported fields
}
MockCallOpMockRecorder is the mock recorder for MockCallOp
func (*MockCallOpMockRecorder) GetName ¶
func (mr *MockCallOpMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName
type MockChainInfo ¶
type MockChainInfo struct {
// contains filtered or unexported fields
}
MockChainInfo is a mock of ChainInfo interface
func NewMockChainInfo ¶
func NewMockChainInfo(ctrl *gomock.Controller) *MockChainInfo
NewMockChainInfo creates a new mock instance
func (*MockChainInfo) EXPECT ¶
func (m *MockChainInfo) EXPECT() *MockChainInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainInfo) GetParentBlockNumber ¶
func (m *MockChainInfo) GetParentBlockNumber() uint64
GetParentBlockNumber mocks base method
func (*MockChainInfo) GetParentChainID ¶
func (m *MockChainInfo) GetParentChainID() util.String
GetParentChainID mocks base method
func (*MockChainInfo) GetTimestamp ¶
func (m *MockChainInfo) GetTimestamp() int64
GetTimestamp mocks base method
type MockChainInfoMockRecorder ¶
type MockChainInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockChainInfoMockRecorder is the mock recorder for MockChainInfo
func (*MockChainInfoMockRecorder) GetID ¶
func (mr *MockChainInfoMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockChainInfoMockRecorder) GetParentBlockNumber ¶
func (mr *MockChainInfoMockRecorder) GetParentBlockNumber() *gomock.Call
GetParentBlockNumber indicates an expected call of GetParentBlockNumber
func (*MockChainInfoMockRecorder) GetParentChainID ¶
func (mr *MockChainInfoMockRecorder) GetParentChainID() *gomock.Call
GetParentChainID indicates an expected call of GetParentChainID
func (*MockChainInfoMockRecorder) GetTimestamp ¶
func (mr *MockChainInfoMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp
type MockChainReaderFactory ¶
type MockChainReaderFactory struct {
// contains filtered or unexported fields
}
MockChainReaderFactory is a mock of ChainReaderFactory interface
func NewMockChainReaderFactory ¶
func NewMockChainReaderFactory(ctrl *gomock.Controller) *MockChainReaderFactory
NewMockChainReaderFactory creates a new mock instance
func (*MockChainReaderFactory) EXPECT ¶
func (m *MockChainReaderFactory) EXPECT() *MockChainReaderFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainReaderFactory) GetAccount ¶
func (m *MockChainReaderFactory) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
GetAccount mocks base method
func (*MockChainReaderFactory) GetBlockByHash ¶
func (m *MockChainReaderFactory) GetBlockByHash(hash util.Hash, opts ...types.CallOp) (types.Block, error)
GetBlockByHash mocks base method
func (*MockChainReaderFactory) GetHeader ¶
func (m *MockChainReaderFactory) GetHeader(number uint64, opts ...types.CallOp) (types.Header, error)
GetHeader mocks base method
func (*MockChainReaderFactory) GetHeaderByHash ¶
func (m *MockChainReaderFactory) GetHeaderByHash(hash util.Hash, opts ...types.CallOp) (types.Header, error)
GetHeaderByHash mocks base method
func (*MockChainReaderFactory) GetID ¶
func (m *MockChainReaderFactory) GetID() util.String
GetID mocks base method
func (*MockChainReaderFactory) GetParent ¶
func (m *MockChainReaderFactory) GetParent() types.ChainReaderFactory
GetParent mocks base method
func (*MockChainReaderFactory) GetParentBlock ¶
func (m *MockChainReaderFactory) GetParentBlock() types.Block
GetParentBlock mocks base method
func (*MockChainReaderFactory) GetRoot ¶
func (m *MockChainReaderFactory) GetRoot() types.Block
GetRoot mocks base method
type MockChainReaderFactoryMockRecorder ¶
type MockChainReaderFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockChainReaderFactoryMockRecorder is the mock recorder for MockChainReaderFactory
func (*MockChainReaderFactoryMockRecorder) Current ¶
func (mr *MockChainReaderFactoryMockRecorder) Current(opts ...interface{}) *gomock.Call
Current indicates an expected call of Current
func (*MockChainReaderFactoryMockRecorder) GetAccount ¶
func (mr *MockChainReaderFactoryMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockChainReaderFactoryMockRecorder) GetBlock ¶
func (mr *MockChainReaderFactoryMockRecorder) GetBlock(number interface{}, opts ...interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockChainReaderFactoryMockRecorder) GetBlockByHash ¶
func (mr *MockChainReaderFactoryMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockChainReaderFactoryMockRecorder) GetHeader ¶
func (mr *MockChainReaderFactoryMockRecorder) GetHeader(number interface{}, opts ...interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockChainReaderFactoryMockRecorder) GetHeaderByHash ¶
func (mr *MockChainReaderFactoryMockRecorder) GetHeaderByHash(hash interface{}, opts ...interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockChainReaderFactoryMockRecorder) GetID ¶
func (mr *MockChainReaderFactoryMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockChainReaderFactoryMockRecorder) GetParent ¶
func (mr *MockChainReaderFactoryMockRecorder) GetParent() *gomock.Call
GetParent indicates an expected call of GetParent
func (*MockChainReaderFactoryMockRecorder) GetParentBlock ¶
func (mr *MockChainReaderFactoryMockRecorder) GetParentBlock() *gomock.Call
GetParentBlock indicates an expected call of GetParentBlock
func (*MockChainReaderFactoryMockRecorder) GetRoot ¶
func (mr *MockChainReaderFactoryMockRecorder) GetRoot() *gomock.Call
GetRoot indicates an expected call of GetRoot
type MockChainStorer ¶
type MockChainStorer struct {
// contains filtered or unexported fields
}
MockChainStorer is a mock of ChainStorer interface
func NewMockChainStorer ¶
func NewMockChainStorer(ctrl *gomock.Controller) *MockChainStorer
NewMockChainStorer creates a new mock instance
func (*MockChainStorer) CreateAccount ¶
func (m *MockChainStorer) CreateAccount(targetBlockNum uint64, account types.Account, opts ...types.CallOp) error
CreateAccount mocks base method
func (*MockChainStorer) Delete ¶
func (m *MockChainStorer) Delete(key []byte, opts ...types.CallOp) error
Delete mocks base method
func (*MockChainStorer) EXPECT ¶
func (m *MockChainStorer) EXPECT() *MockChainStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainStorer) GetAccount ¶
func (m *MockChainStorer) GetAccount(address util.String, opts ...types.CallOp) (types.Account, error)
GetAccount mocks base method
func (*MockChainStorer) GetAccounts ¶
GetAccounts mocks base method
func (*MockChainStorer) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockChainStorer) GetBlockByNumberAndHash ¶
func (m *MockChainStorer) GetBlockByNumberAndHash(number uint64, hash util.Hash, opts ...types.CallOp) (types.Block, error)
GetBlockByNumberAndHash mocks base method
func (*MockChainStorer) GetHeaderByHash ¶
func (m *MockChainStorer) GetHeaderByHash(hash util.Hash, opts ...types.CallOp) (types.Header, error)
GetHeaderByHash mocks base method
func (*MockChainStorer) GetTransaction ¶
func (m *MockChainStorer) GetTransaction(hash util.Hash, opts ...types.CallOp) (types.Transaction, error)
GetTransaction mocks base method
func (*MockChainStorer) NewTx ¶
func (m *MockChainStorer) NewTx() (elldb.Tx, error)
NewTx mocks base method
func (*MockChainStorer) PutMinedBlock ¶
PutMinedBlock mocks base method
func (*MockChainStorer) PutTransactions ¶
func (m *MockChainStorer) PutTransactions(txs []types.Transaction, blockNumber uint64, opts ...types.CallOp) error
PutTransactions mocks base method
type MockChainStorerMockRecorder ¶
type MockChainStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockChainStorerMockRecorder is the mock recorder for MockChainStorer
func (*MockChainStorerMockRecorder) CreateAccount ¶
func (mr *MockChainStorerMockRecorder) CreateAccount(targetBlockNum, account interface{}, opts ...interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockChainStorerMockRecorder) Current ¶
func (mr *MockChainStorerMockRecorder) Current(opts ...interface{}) *gomock.Call
Current indicates an expected call of Current
func (*MockChainStorerMockRecorder) DB ¶
func (mr *MockChainStorerMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB
func (*MockChainStorerMockRecorder) Delete ¶
func (mr *MockChainStorerMockRecorder) Delete(key interface{}, opts ...interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockChainStorerMockRecorder) GetAccount ¶
func (mr *MockChainStorerMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockChainStorerMockRecorder) GetAccounts ¶
func (mr *MockChainStorerMockRecorder) GetAccounts(opts ...interface{}) *gomock.Call
GetAccounts indicates an expected call of GetAccounts
func (*MockChainStorerMockRecorder) GetBlock ¶
func (mr *MockChainStorerMockRecorder) GetBlock(number interface{}, opts ...interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockChainStorerMockRecorder) GetBlockByHash ¶
func (mr *MockChainStorerMockRecorder) GetBlockByHash(hash interface{}, opts ...interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockChainStorerMockRecorder) GetBlockByNumberAndHash ¶
func (mr *MockChainStorerMockRecorder) GetBlockByNumberAndHash(number, hash interface{}, opts ...interface{}) *gomock.Call
GetBlockByNumberAndHash indicates an expected call of GetBlockByNumberAndHash
func (*MockChainStorerMockRecorder) GetHeader ¶
func (mr *MockChainStorerMockRecorder) GetHeader(number interface{}, opts ...interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockChainStorerMockRecorder) GetHeaderByHash ¶
func (mr *MockChainStorerMockRecorder) GetHeaderByHash(hash interface{}, opts ...interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockChainStorerMockRecorder) GetTransaction ¶
func (mr *MockChainStorerMockRecorder) GetTransaction(hash interface{}, opts ...interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockChainStorerMockRecorder) NewTx ¶
func (mr *MockChainStorerMockRecorder) NewTx() *gomock.Call
NewTx indicates an expected call of NewTx
func (*MockChainStorerMockRecorder) PutBlock ¶
func (mr *MockChainStorerMockRecorder) PutBlock(block interface{}, opts ...interface{}) *gomock.Call
PutBlock indicates an expected call of PutBlock
func (*MockChainStorerMockRecorder) PutMinedBlock ¶
func (mr *MockChainStorerMockRecorder) PutMinedBlock(block interface{}, opts ...interface{}) *gomock.Call
PutMinedBlock indicates an expected call of PutMinedBlock
func (*MockChainStorerMockRecorder) PutTransactions ¶
func (mr *MockChainStorerMockRecorder) PutTransactions(txs, blockNumber interface{}, opts ...interface{}) *gomock.Call
PutTransactions indicates an expected call of PutTransactions
type MockChainer ¶
type MockChainer struct {
// contains filtered or unexported fields
}
MockChainer is a mock of Chainer interface
func NewMockChainer ¶
func NewMockChainer(ctrl *gomock.Controller) *MockChainer
NewMockChainer creates a new mock instance
func (*MockChainer) ChainReader ¶
func (m *MockChainer) ChainReader() types.ChainReaderFactory
ChainReader mocks base method
func (*MockChainer) CreateAccount ¶
func (m *MockChainer) CreateAccount(targetBlockNum uint64, account types.Account, opts ...types.CallOp) error
CreateAccount mocks base method
func (*MockChainer) EXPECT ¶
func (m *MockChainer) EXPECT() *MockChainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainer) GetAccount ¶
GetAccount mocks base method
func (*MockChainer) GetInfo ¶
func (m *MockChainer) GetInfo() types.ChainInfo
GetInfo mocks base method
func (*MockChainer) GetParentBlock ¶
func (m *MockChainer) GetParentBlock() types.Block
GetParentBlock mocks base method
func (*MockChainer) GetStore ¶
func (m *MockChainer) GetStore() types.ChainStorer
GetStore mocks base method
func (*MockChainer) GetTransaction ¶
func (m *MockChainer) GetTransaction(hash util.Hash, opts ...types.CallOp) (types.Transaction, error)
GetTransaction mocks base method
func (*MockChainer) NewStateTree ¶
NewStateTree mocks base method
func (*MockChainer) PutTransactions ¶
func (m *MockChainer) PutTransactions(txs []types.Transaction, blockNumber uint64, opts ...types.CallOp) error
PutTransactions mocks base method
type MockChainerMockRecorder ¶
type MockChainerMockRecorder struct {
// contains filtered or unexported fields
}
MockChainerMockRecorder is the mock recorder for MockChainer
func (*MockChainerMockRecorder) ChainReader ¶
func (mr *MockChainerMockRecorder) ChainReader() *gomock.Call
ChainReader indicates an expected call of ChainReader
func (*MockChainerMockRecorder) CreateAccount ¶
func (mr *MockChainerMockRecorder) CreateAccount(targetBlockNum, account interface{}, opts ...interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockChainerMockRecorder) Current ¶
func (mr *MockChainerMockRecorder) Current(opts ...interface{}) *gomock.Call
Current indicates an expected call of Current
func (*MockChainerMockRecorder) GetAccount ¶
func (mr *MockChainerMockRecorder) GetAccount(address interface{}, opts ...interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockChainerMockRecorder) GetBlock ¶
func (mr *MockChainerMockRecorder) GetBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockChainerMockRecorder) GetID ¶
func (mr *MockChainerMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockChainerMockRecorder) GetInfo ¶
func (mr *MockChainerMockRecorder) GetInfo() *gomock.Call
GetInfo indicates an expected call of GetInfo
func (*MockChainerMockRecorder) GetParentBlock ¶
func (mr *MockChainerMockRecorder) GetParentBlock() *gomock.Call
GetParentBlock indicates an expected call of GetParentBlock
func (*MockChainerMockRecorder) GetRoot ¶
func (mr *MockChainerMockRecorder) GetRoot() *gomock.Call
GetRoot indicates an expected call of GetRoot
func (*MockChainerMockRecorder) GetStore ¶
func (mr *MockChainerMockRecorder) GetStore() *gomock.Call
GetStore indicates an expected call of GetStore
func (*MockChainerMockRecorder) GetTransaction ¶
func (mr *MockChainerMockRecorder) GetTransaction(hash interface{}, opts ...interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockChainerMockRecorder) NewStateTree ¶
func (mr *MockChainerMockRecorder) NewStateTree(opts ...interface{}) *gomock.Call
NewStateTree indicates an expected call of NewStateTree
func (*MockChainerMockRecorder) PutTransactions ¶
func (mr *MockChainerMockRecorder) PutTransactions(txs, blockNumber interface{}, opts ...interface{}) *gomock.Call
PutTransactions indicates an expected call of PutTransactions
type MockHeader ¶
type MockHeader struct {
// contains filtered or unexported fields
}
MockHeader is a mock of Header interface
func NewMockHeader ¶
func NewMockHeader(ctrl *gomock.Controller) *MockHeader
NewMockHeader creates a new mock instance
func (*MockHeader) ComputeHash ¶
func (m *MockHeader) ComputeHash() util.Hash
ComputeHash mocks base method
func (*MockHeader) EXPECT ¶
func (m *MockHeader) EXPECT() *MockHeaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHeader) GetCreatorPubKey ¶
func (m *MockHeader) GetCreatorPubKey() util.String
GetCreatorPubKey mocks base method
func (*MockHeader) GetDifficulty ¶
func (m *MockHeader) GetDifficulty() *big.Int
GetDifficulty mocks base method
func (*MockHeader) GetHashNoNonce ¶
func (m *MockHeader) GetHashNoNonce() util.Hash
GetHashNoNonce mocks base method
func (*MockHeader) GetNonce ¶
func (m *MockHeader) GetNonce() util.BlockNonce
GetNonce mocks base method
func (*MockHeader) GetParentHash ¶
func (m *MockHeader) GetParentHash() util.Hash
GetParentHash mocks base method
func (*MockHeader) GetStateRoot ¶
func (m *MockHeader) GetStateRoot() util.Hash
GetStateRoot mocks base method
func (*MockHeader) GetTimestamp ¶
func (m *MockHeader) GetTimestamp() int64
GetTimestamp mocks base method
func (*MockHeader) GetTotalDifficulty ¶
func (m *MockHeader) GetTotalDifficulty() *big.Int
GetTotalDifficulty mocks base method
func (*MockHeader) GetTransactionsRoot ¶
func (m *MockHeader) GetTransactionsRoot() util.Hash
GetTransactionsRoot mocks base method
func (*MockHeader) SetCreatorPubKey ¶
func (m *MockHeader) SetCreatorPubKey(arg0 util.String)
SetCreatorPubKey mocks base method
func (*MockHeader) SetDifficulty ¶
func (m *MockHeader) SetDifficulty(arg0 *big.Int)
SetDifficulty mocks base method
func (*MockHeader) SetNonce ¶
func (m *MockHeader) SetNonce(nonce util.BlockNonce)
SetNonce mocks base method
func (*MockHeader) SetNumber ¶
func (m *MockHeader) SetNumber(arg0 uint64)
SetNumber mocks base method
func (*MockHeader) SetParentHash ¶
func (m *MockHeader) SetParentHash(arg0 util.Hash)
SetParentHash mocks base method
func (*MockHeader) SetStateRoot ¶
func (m *MockHeader) SetStateRoot(arg0 util.Hash)
SetStateRoot mocks base method
func (*MockHeader) SetTimestamp ¶
func (m *MockHeader) SetTimestamp(arg0 int64)
SetTimestamp mocks base method
func (*MockHeader) SetTotalDifficulty ¶
func (m *MockHeader) SetTotalDifficulty(arg0 *big.Int)
SetTotalDifficulty mocks base method
func (*MockHeader) SetTransactionsRoot ¶
func (m *MockHeader) SetTransactionsRoot(txRoot util.Hash)
SetTransactionsRoot mocks base method
type MockHeaderMockRecorder ¶
type MockHeaderMockRecorder struct {
// contains filtered or unexported fields
}
MockHeaderMockRecorder is the mock recorder for MockHeader
func (*MockHeaderMockRecorder) ComputeHash ¶
func (mr *MockHeaderMockRecorder) ComputeHash() *gomock.Call
ComputeHash indicates an expected call of ComputeHash
func (*MockHeaderMockRecorder) Copy ¶
func (mr *MockHeaderMockRecorder) Copy() *gomock.Call
Copy indicates an expected call of Copy
func (*MockHeaderMockRecorder) GetBytes ¶
func (mr *MockHeaderMockRecorder) GetBytes() *gomock.Call
GetBytes indicates an expected call of GetBytes
func (*MockHeaderMockRecorder) GetCreatorPubKey ¶
func (mr *MockHeaderMockRecorder) GetCreatorPubKey() *gomock.Call
GetCreatorPubKey indicates an expected call of GetCreatorPubKey
func (*MockHeaderMockRecorder) GetDifficulty ¶
func (mr *MockHeaderMockRecorder) GetDifficulty() *gomock.Call
GetDifficulty indicates an expected call of GetDifficulty
func (*MockHeaderMockRecorder) GetExtra ¶
func (mr *MockHeaderMockRecorder) GetExtra() *gomock.Call
GetExtra indicates an expected call of GetExtra
func (*MockHeaderMockRecorder) GetHashNoNonce ¶
func (mr *MockHeaderMockRecorder) GetHashNoNonce() *gomock.Call
GetHashNoNonce indicates an expected call of GetHashNoNonce
func (*MockHeaderMockRecorder) GetNonce ¶
func (mr *MockHeaderMockRecorder) GetNonce() *gomock.Call
GetNonce indicates an expected call of GetNonce
func (*MockHeaderMockRecorder) GetNumber ¶
func (mr *MockHeaderMockRecorder) GetNumber() *gomock.Call
GetNumber indicates an expected call of GetNumber
func (*MockHeaderMockRecorder) GetParentHash ¶
func (mr *MockHeaderMockRecorder) GetParentHash() *gomock.Call
GetParentHash indicates an expected call of GetParentHash
func (*MockHeaderMockRecorder) GetStateRoot ¶
func (mr *MockHeaderMockRecorder) GetStateRoot() *gomock.Call
GetStateRoot indicates an expected call of GetStateRoot
func (*MockHeaderMockRecorder) GetTimestamp ¶
func (mr *MockHeaderMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp
func (*MockHeaderMockRecorder) GetTotalDifficulty ¶
func (mr *MockHeaderMockRecorder) GetTotalDifficulty() *gomock.Call
GetTotalDifficulty indicates an expected call of GetTotalDifficulty
func (*MockHeaderMockRecorder) GetTransactionsRoot ¶
func (mr *MockHeaderMockRecorder) GetTransactionsRoot() *gomock.Call
GetTransactionsRoot indicates an expected call of GetTransactionsRoot
func (*MockHeaderMockRecorder) SetCreatorPubKey ¶
func (mr *MockHeaderMockRecorder) SetCreatorPubKey(arg0 interface{}) *gomock.Call
SetCreatorPubKey indicates an expected call of SetCreatorPubKey
func (*MockHeaderMockRecorder) SetDifficulty ¶
func (mr *MockHeaderMockRecorder) SetDifficulty(arg0 interface{}) *gomock.Call
SetDifficulty indicates an expected call of SetDifficulty
func (*MockHeaderMockRecorder) SetNonce ¶
func (mr *MockHeaderMockRecorder) SetNonce(nonce interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce
func (*MockHeaderMockRecorder) SetNumber ¶
func (mr *MockHeaderMockRecorder) SetNumber(arg0 interface{}) *gomock.Call
SetNumber indicates an expected call of SetNumber
func (*MockHeaderMockRecorder) SetParentHash ¶
func (mr *MockHeaderMockRecorder) SetParentHash(arg0 interface{}) *gomock.Call
SetParentHash indicates an expected call of SetParentHash
func (*MockHeaderMockRecorder) SetStateRoot ¶
func (mr *MockHeaderMockRecorder) SetStateRoot(arg0 interface{}) *gomock.Call
SetStateRoot indicates an expected call of SetStateRoot
func (*MockHeaderMockRecorder) SetTimestamp ¶
func (mr *MockHeaderMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call
SetTimestamp indicates an expected call of SetTimestamp
func (*MockHeaderMockRecorder) SetTotalDifficulty ¶
func (mr *MockHeaderMockRecorder) SetTotalDifficulty(arg0 interface{}) *gomock.Call
SetTotalDifficulty indicates an expected call of SetTotalDifficulty
func (*MockHeaderMockRecorder) SetTransactionsRoot ¶
func (mr *MockHeaderMockRecorder) SetTransactionsRoot(txRoot interface{}) *gomock.Call
SetTransactionsRoot indicates an expected call of SetTransactionsRoot
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance
func (*MockTransaction) ComputeHash ¶
func (m *MockTransaction) ComputeHash() util.Hash
ComputeHash mocks base method
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTransaction) GetBytesNoHashAndSig ¶
func (m *MockTransaction) GetBytesNoHashAndSig() []byte
GetBytesNoHashAndSig mocks base method
func (*MockTransaction) GetFee ¶
func (m *MockTransaction) GetFee() util.String
GetFee mocks base method
func (*MockTransaction) GetFrom ¶
func (m *MockTransaction) GetFrom() util.String
GetFrom mocks base method
func (*MockTransaction) GetHash ¶
func (m *MockTransaction) GetHash() util.Hash
GetHash mocks base method
func (*MockTransaction) GetNonce ¶
func (m *MockTransaction) GetNonce() uint64
GetNonce mocks base method
func (*MockTransaction) GetSenderPubKey ¶
func (m *MockTransaction) GetSenderPubKey() util.String
GetSenderPubKey mocks base method
func (*MockTransaction) GetSignature ¶
func (m *MockTransaction) GetSignature() []byte
GetSignature mocks base method
func (*MockTransaction) GetSizeNoFee ¶
func (m *MockTransaction) GetSizeNoFee() int64
GetSizeNoFee mocks base method
func (*MockTransaction) GetTimestamp ¶
func (m *MockTransaction) GetTimestamp() int64
GetTimestamp mocks base method
func (*MockTransaction) GetTo ¶
func (m *MockTransaction) GetTo() util.String
GetTo mocks base method
func (*MockTransaction) GetType ¶
func (m *MockTransaction) GetType() int64
GetType mocks base method
func (*MockTransaction) GetValue ¶
func (m *MockTransaction) GetValue() util.String
GetValue mocks base method
func (*MockTransaction) SetFrom ¶
func (m *MockTransaction) SetFrom(arg0 util.String)
SetFrom mocks base method
func (*MockTransaction) SetHash ¶
func (m *MockTransaction) SetHash(arg0 util.Hash)
SetHash mocks base method
func (*MockTransaction) SetSenderPubKey ¶
func (m *MockTransaction) SetSenderPubKey(arg0 util.String)
SetSenderPubKey mocks base method
func (*MockTransaction) SetSignature ¶
func (m *MockTransaction) SetSignature(sig []byte)
SetSignature mocks base method
func (*MockTransaction) SetTimestamp ¶
func (m *MockTransaction) SetTimestamp(arg0 int64)
SetTimestamp mocks base method
func (*MockTransaction) SetValue ¶
func (m *MockTransaction) SetValue(arg0 util.String)
SetValue mocks base method
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction
func (*MockTransactionMockRecorder) ComputeHash ¶
func (mr *MockTransactionMockRecorder) ComputeHash() *gomock.Call
ComputeHash indicates an expected call of ComputeHash
func (*MockTransactionMockRecorder) GetBytesNoHashAndSig ¶
func (mr *MockTransactionMockRecorder) GetBytesNoHashAndSig() *gomock.Call
GetBytesNoHashAndSig indicates an expected call of GetBytesNoHashAndSig
func (*MockTransactionMockRecorder) GetFee ¶
func (mr *MockTransactionMockRecorder) GetFee() *gomock.Call
GetFee indicates an expected call of GetFee
func (*MockTransactionMockRecorder) GetFrom ¶
func (mr *MockTransactionMockRecorder) GetFrom() *gomock.Call
GetFrom indicates an expected call of GetFrom
func (*MockTransactionMockRecorder) GetHash ¶
func (mr *MockTransactionMockRecorder) GetHash() *gomock.Call
GetHash indicates an expected call of GetHash
func (*MockTransactionMockRecorder) GetID ¶
func (mr *MockTransactionMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockTransactionMockRecorder) GetNonce ¶
func (mr *MockTransactionMockRecorder) GetNonce() *gomock.Call
GetNonce indicates an expected call of GetNonce
func (*MockTransactionMockRecorder) GetSenderPubKey ¶
func (mr *MockTransactionMockRecorder) GetSenderPubKey() *gomock.Call
GetSenderPubKey indicates an expected call of GetSenderPubKey
func (*MockTransactionMockRecorder) GetSignature ¶
func (mr *MockTransactionMockRecorder) GetSignature() *gomock.Call
GetSignature indicates an expected call of GetSignature
func (*MockTransactionMockRecorder) GetSizeNoFee ¶
func (mr *MockTransactionMockRecorder) GetSizeNoFee() *gomock.Call
GetSizeNoFee indicates an expected call of GetSizeNoFee
func (*MockTransactionMockRecorder) GetTimestamp ¶
func (mr *MockTransactionMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp
func (*MockTransactionMockRecorder) GetTo ¶
func (mr *MockTransactionMockRecorder) GetTo() *gomock.Call
GetTo indicates an expected call of GetTo
func (*MockTransactionMockRecorder) GetType ¶
func (mr *MockTransactionMockRecorder) GetType() *gomock.Call
GetType indicates an expected call of GetType
func (*MockTransactionMockRecorder) GetValue ¶
func (mr *MockTransactionMockRecorder) GetValue() *gomock.Call
GetValue indicates an expected call of GetValue
func (*MockTransactionMockRecorder) SetFrom ¶
func (mr *MockTransactionMockRecorder) SetFrom(arg0 interface{}) *gomock.Call
SetFrom indicates an expected call of SetFrom
func (*MockTransactionMockRecorder) SetHash ¶
func (mr *MockTransactionMockRecorder) SetHash(arg0 interface{}) *gomock.Call
SetHash indicates an expected call of SetHash
func (*MockTransactionMockRecorder) SetSenderPubKey ¶
func (mr *MockTransactionMockRecorder) SetSenderPubKey(arg0 interface{}) *gomock.Call
SetSenderPubKey indicates an expected call of SetSenderPubKey
func (*MockTransactionMockRecorder) SetSignature ¶
func (mr *MockTransactionMockRecorder) SetSignature(sig interface{}) *gomock.Call
SetSignature indicates an expected call of SetSignature
func (*MockTransactionMockRecorder) SetTimestamp ¶
func (mr *MockTransactionMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call
SetTimestamp indicates an expected call of SetTimestamp
func (*MockTransactionMockRecorder) SetValue ¶
func (mr *MockTransactionMockRecorder) SetValue(arg0 interface{}) *gomock.Call
SetValue indicates an expected call of SetValue
func (*MockTransactionMockRecorder) Sign ¶
func (mr *MockTransactionMockRecorder) Sign(privKey interface{}) *gomock.Call
Sign indicates an expected call of Sign
type MockTree ¶
type MockTree struct {
// contains filtered or unexported fields
}
MockTree is a mock of Tree interface
func NewMockTree ¶
func NewMockTree(ctrl *gomock.Controller) *MockTree
NewMockTree creates a new mock instance
func (*MockTree) EXPECT ¶
func (m *MockTree) EXPECT() *MockTreeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTree) GetItems ¶
func (m *MockTree) GetItems() []merkletree.Content
GetItems mocks base method
type MockTreeMockRecorder ¶
type MockTreeMockRecorder struct {
// contains filtered or unexported fields
}
MockTreeMockRecorder is the mock recorder for MockTree
func (*MockTreeMockRecorder) Add ¶
func (mr *MockTreeMockRecorder) Add(item interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTreeMockRecorder) Build ¶
func (mr *MockTreeMockRecorder) Build() *gomock.Call
Build indicates an expected call of Build
func (*MockTreeMockRecorder) GetItems ¶
func (mr *MockTreeMockRecorder) GetItems() *gomock.Call
GetItems indicates an expected call of GetItems
func (*MockTreeMockRecorder) Root ¶
func (mr *MockTreeMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root
type MockTxContainer ¶
type MockTxContainer struct {
// contains filtered or unexported fields
}
MockTxContainer is a mock of TxContainer interface
func NewMockTxContainer ¶
func NewMockTxContainer(ctrl *gomock.Controller) *MockTxContainer
NewMockTxContainer creates a new mock instance
func (*MockTxContainer) Add ¶
func (m *MockTxContainer) Add(tx types.Transaction) bool
Add mocks base method
func (*MockTxContainer) ByteSize ¶
func (m *MockTxContainer) ByteSize() int64
ByteSize mocks base method
func (*MockTxContainer) EXPECT ¶
func (m *MockTxContainer) EXPECT() *MockTxContainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxContainer) First ¶
func (m *MockTxContainer) First() types.Transaction
First mocks base method
func (*MockTxContainer) Has ¶
func (m *MockTxContainer) Has(tx types.Transaction) bool
Has mocks base method
func (*MockTxContainer) IFind ¶
func (m *MockTxContainer) IFind(predicate func(types.Transaction) bool) types.Transaction
IFind mocks base method
func (*MockTxContainer) Last ¶
func (m *MockTxContainer) Last() types.Transaction
Last mocks base method
func (*MockTxContainer) Remove ¶
func (m *MockTxContainer) Remove(txs ...types.Transaction)
Remove mocks base method
type MockTxContainerMockRecorder ¶
type MockTxContainerMockRecorder struct {
// contains filtered or unexported fields
}
MockTxContainerMockRecorder is the mock recorder for MockTxContainer
func (*MockTxContainerMockRecorder) Add ¶
func (mr *MockTxContainerMockRecorder) Add(tx interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTxContainerMockRecorder) ByteSize ¶
func (mr *MockTxContainerMockRecorder) ByteSize() *gomock.Call
ByteSize indicates an expected call of ByteSize
func (*MockTxContainerMockRecorder) First ¶
func (mr *MockTxContainerMockRecorder) First() *gomock.Call
First indicates an expected call of First
func (*MockTxContainerMockRecorder) Has ¶
func (mr *MockTxContainerMockRecorder) Has(tx interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockTxContainerMockRecorder) IFind ¶
func (mr *MockTxContainerMockRecorder) IFind(predicate interface{}) *gomock.Call
IFind indicates an expected call of IFind
func (*MockTxContainerMockRecorder) Last ¶
func (mr *MockTxContainerMockRecorder) Last() *gomock.Call
Last indicates an expected call of Last
func (*MockTxContainerMockRecorder) Remove ¶
func (mr *MockTxContainerMockRecorder) Remove(txs ...interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockTxContainerMockRecorder) Size ¶
func (mr *MockTxContainerMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size
func (*MockTxContainerMockRecorder) Sort ¶
func (mr *MockTxContainerMockRecorder) Sort() *gomock.Call
Sort indicates an expected call of Sort
type MockTxPool ¶
type MockTxPool struct {
// contains filtered or unexported fields
}
MockTxPool is a mock of TxPool interface
func NewMockTxPool ¶
func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool
NewMockTxPool creates a new mock instance
func (*MockTxPool) Container ¶
func (m *MockTxPool) Container() types.TxContainer
Container mocks base method
func (*MockTxPool) EXPECT ¶
func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxPool) GetByFrom ¶
func (m *MockTxPool) GetByFrom(address util.String) []types.Transaction
GetByFrom mocks base method
func (*MockTxPool) GetByHash ¶
func (m *MockTxPool) GetByHash(hash string) types.Transaction
GetByHash mocks base method
func (*MockTxPool) HasByHash ¶
func (m *MockTxPool) HasByHash(hash string) bool
HasByHash mocks base method
func (*MockTxPool) Remove ¶
func (m *MockTxPool) Remove(txs ...types.Transaction)
Remove mocks base method
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool
func (*MockTxPoolMockRecorder) ByteSize ¶
func (mr *MockTxPoolMockRecorder) ByteSize() *gomock.Call
ByteSize indicates an expected call of ByteSize
func (*MockTxPoolMockRecorder) Container ¶
func (mr *MockTxPoolMockRecorder) Container() *gomock.Call
Container indicates an expected call of Container
func (*MockTxPoolMockRecorder) GetByFrom ¶
func (mr *MockTxPoolMockRecorder) GetByFrom(address interface{}) *gomock.Call
GetByFrom indicates an expected call of GetByFrom
func (*MockTxPoolMockRecorder) GetByHash ¶
func (mr *MockTxPoolMockRecorder) GetByHash(hash interface{}) *gomock.Call
GetByHash indicates an expected call of GetByHash
func (*MockTxPoolMockRecorder) Has ¶
func (mr *MockTxPoolMockRecorder) Has(tx interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockTxPoolMockRecorder) HasByHash ¶
func (mr *MockTxPoolMockRecorder) HasByHash(hash interface{}) *gomock.Call
HasByHash indicates an expected call of HasByHash
func (*MockTxPoolMockRecorder) Put ¶
func (mr *MockTxPoolMockRecorder) Put(tx interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockTxPoolMockRecorder) Remove ¶
func (mr *MockTxPoolMockRecorder) Remove(txs ...interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockTxPoolMockRecorder) Size ¶
func (mr *MockTxPoolMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size