Documentation
¶
Index ¶
- type Instance
- func (_m *Instance) ApplyExtrinsic(data types.Extrinsic) ([]byte, error)
- func (_m *Instance) BabeConfiguration() (*types.BabeConfiguration, error)
- func (_m *Instance) CheckInherents()
- func (_m *Instance) DecodeSessionKeys(enc []byte) ([]byte, error)
- func (_m *Instance) Exec(function string, data []byte) ([]byte, error)
- func (_m *Instance) ExecuteBlock(block *types.Block) ([]byte, error)
- func (_m *Instance) FinalizeBlock() (*types.Header, error)
- func (_m *Instance) GenerateSessionKeys()
- func (_m *Instance) GetCodeHash() common.Hash
- func (_m *Instance) GrandpaAuthorities() ([]types.Authority, error)
- func (_m *Instance) InherentExtrinsics(data []byte) ([]byte, error)
- func (_m *Instance) InitializeBlock(header *types.Header) error
- func (_m *Instance) Keystore() *keystore.GlobalKeystore
- func (_m *Instance) Metadata() ([]byte, error)
- func (_m *Instance) NetworkService() runtime.BasicNetwork
- func (_m *Instance) NodeStorage() runtime.NodeStorage
- func (_m *Instance) OffchainWorker()
- func (_m *Instance) PaymentQueryInfo(ext []byte) (*types.RuntimeDispatchInfo, error)
- func (_m *Instance) RandomSeed()
- func (_m *Instance) SetContextStorage(s runtime.Storage)
- func (_m *Instance) Stop()
- func (_m *Instance) UpdateRuntimeCode(_a0 []byte) error
- func (_m *Instance) ValidateTransaction(e types.Extrinsic) (*transaction.Validity, error)
- func (_m *Instance) Validator() bool
- func (_m *Instance) Version() runtime.Version
- type TransactionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
Instance is an autogenerated mock type for the Instance type
func NewInstance ¶
func NewInstance(t mockConstructorTestingTNewInstance) *Instance
NewInstance creates a new instance of Instance. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Instance) ApplyExtrinsic ¶
ApplyExtrinsic provides a mock function with given fields: data
func (*Instance) BabeConfiguration ¶
func (_m *Instance) BabeConfiguration() (*types.BabeConfiguration, error)
BabeConfiguration provides a mock function with given fields:
func (*Instance) CheckInherents ¶
func (_m *Instance) CheckInherents()
CheckInherents provides a mock function with given fields:
func (*Instance) DecodeSessionKeys ¶
DecodeSessionKeys provides a mock function with given fields: enc
func (*Instance) ExecuteBlock ¶
ExecuteBlock provides a mock function with given fields: block
func (*Instance) FinalizeBlock ¶
FinalizeBlock provides a mock function with given fields:
func (*Instance) GenerateSessionKeys ¶
func (_m *Instance) GenerateSessionKeys()
GenerateSessionKeys provides a mock function with given fields:
func (*Instance) GetCodeHash ¶
GetCodeHash provides a mock function with given fields:
func (*Instance) GrandpaAuthorities ¶
GrandpaAuthorities provides a mock function with given fields:
func (*Instance) InherentExtrinsics ¶
InherentExtrinsics provides a mock function with given fields: data
func (*Instance) InitializeBlock ¶
InitializeBlock provides a mock function with given fields: header
func (*Instance) Keystore ¶
func (_m *Instance) Keystore() *keystore.GlobalKeystore
Keystore provides a mock function with given fields:
func (*Instance) NetworkService ¶
func (_m *Instance) NetworkService() runtime.BasicNetwork
NetworkService provides a mock function with given fields:
func (*Instance) NodeStorage ¶
func (_m *Instance) NodeStorage() runtime.NodeStorage
NodeStorage provides a mock function with given fields:
func (*Instance) OffchainWorker ¶
func (_m *Instance) OffchainWorker()
OffchainWorker provides a mock function with given fields:
func (*Instance) PaymentQueryInfo ¶
func (_m *Instance) PaymentQueryInfo(ext []byte) (*types.RuntimeDispatchInfo, error)
PaymentQueryInfo provides a mock function with given fields: ext
func (*Instance) RandomSeed ¶
func (_m *Instance) RandomSeed()
RandomSeed provides a mock function with given fields:
func (*Instance) SetContextStorage ¶
SetContextStorage provides a mock function with given fields: s
func (*Instance) UpdateRuntimeCode ¶
UpdateRuntimeCode provides a mock function with given fields: _a0
func (*Instance) ValidateTransaction ¶
ValidateTransaction provides a mock function with given fields: e
type TransactionState ¶
TransactionState is an autogenerated mock type for the TransactionState type
func NewTransactionState ¶
func NewTransactionState(t mockConstructorTestingTNewTransactionState) *TransactionState
NewTransactionState creates a new instance of TransactionState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionState) AddToPool ¶
func (_m *TransactionState) AddToPool(vt *transaction.ValidTransaction) common.Hash
AddToPool provides a mock function with given fields: vt