Documentation
¶
Index ¶
- type MempoolHostMock
- type SelectionSessionMock
- func (mock *SelectionSessionMock) GetAccountState(address []byte) (*types.AccountState, error)
- func (mock *SelectionSessionMock) IsIncorrectlyGuarded(tx data.TransactionHandler) bool
- func (mock *SelectionSessionMock) IsInterfaceNil() bool
- func (mock *SelectionSessionMock) SetBalance(address []byte, balance *big.Int)
- func (mock *SelectionSessionMock) SetNonce(address []byte, nonce uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MempoolHostMock ¶ added in v1.0.18
type MempoolHostMock struct { ComputeTxFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int GetTransferredValueCalled func(tx data.TransactionHandler) *big.Int // contains filtered or unexported fields }
MempoolHostMock -
func NewMempoolHostMock ¶ added in v1.0.18
func NewMempoolHostMock() *MempoolHostMock
NewMempoolHostMock -
func (*MempoolHostMock) ComputeTxFee ¶ added in v1.0.18
func (mock *MempoolHostMock) ComputeTxFee(tx data.TransactionWithFeeHandler) *big.Int
ComputeTxFee -
func (*MempoolHostMock) GetTransferredValue ¶ added in v1.0.18
func (mock *MempoolHostMock) GetTransferredValue(tx data.TransactionHandler) *big.Int
GetTransferredValue -
func (*MempoolHostMock) IsInterfaceNil ¶ added in v1.0.18
func (mock *MempoolHostMock) IsInterfaceNil() bool
IsInterfaceNil -
type SelectionSessionMock ¶ added in v1.0.18
type SelectionSessionMock struct { AccountStateByAddress map[string]*types.AccountState GetAccountStateCalled func(address []byte) (*types.AccountState, error) IsIncorrectlyGuardedCalled func(tx data.TransactionHandler) bool // contains filtered or unexported fields }
SelectionSessionMock -
func NewSelectionSessionMock ¶ added in v1.0.18
func NewSelectionSessionMock() *SelectionSessionMock
NewSelectionSessionMock -
func (*SelectionSessionMock) GetAccountState ¶ added in v1.0.18
func (mock *SelectionSessionMock) GetAccountState(address []byte) (*types.AccountState, error)
GetAccountState -
func (*SelectionSessionMock) IsIncorrectlyGuarded ¶ added in v1.0.18
func (mock *SelectionSessionMock) IsIncorrectlyGuarded(tx data.TransactionHandler) bool
IsIncorrectlyGuarded -
func (*SelectionSessionMock) IsInterfaceNil ¶ added in v1.0.18
func (mock *SelectionSessionMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*SelectionSessionMock) SetBalance ¶ added in v1.0.18
func (mock *SelectionSessionMock) SetBalance(address []byte, balance *big.Int)
SetBalance -
func (*SelectionSessionMock) SetNonce ¶ added in v1.0.18
func (mock *SelectionSessionMock) SetNonce(address []byte, nonce uint64)
SetNonce -
Click to show internal directories.
Click to hide internal directories.