Documentation ¶
Index ¶
- type EntropyProviderPerBlock
- type Executor
- func (_m *Executor) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, ...) ([]byte, uint64, error)
- func (_m *Executor) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, ...) (*flow.Account, error)
- func (_m *Executor) GetAccountAvailableBalance(ctx context.Context, addr flow.Address, header *flow.Header, ...) (uint64, error)
- func (_m *Executor) GetAccountBalance(ctx context.Context, addr flow.Address, header *flow.Header, ...) (uint64, error)
- func (_m *Executor) GetAccountKey(ctx context.Context, addr flow.Address, keyIndex uint32, header *flow.Header, ...) (*flow.AccountPublicKey, error)
- func (_m *Executor) GetAccountKeys(ctx context.Context, addr flow.Address, header *flow.Header, ...) ([]flow.AccountPublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntropyProviderPerBlock ¶ added in v0.32.1
EntropyProviderPerBlock is an autogenerated mock type for the EntropyProviderPerBlock type
func NewEntropyProviderPerBlock ¶ added in v0.32.1
func NewEntropyProviderPerBlock(t interface { mock.TestingT Cleanup(func()) }) *EntropyProviderPerBlock
NewEntropyProviderPerBlock creates a new instance of EntropyProviderPerBlock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EntropyProviderPerBlock) AtBlockID ¶ added in v0.32.1
func (_m *EntropyProviderPerBlock) AtBlockID(blockID flow.Identifier) environment.EntropyProvider
AtBlockID provides a mock function with given fields: blockID
type Executor ¶
Executor is an autogenerated mock type for the Executor type
func NewExecutor ¶
NewExecutor creates a new instance of Executor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Executor) ExecuteScript ¶
func (_m *Executor) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, blockHeader *flow.Header, _a4 snapshot.StorageSnapshot) ([]byte, uint64, error)
ExecuteScript provides a mock function with given fields: ctx, script, arguments, blockHeader, _a4
func (*Executor) GetAccount ¶
func (_m *Executor) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, _a3 snapshot.StorageSnapshot) (*flow.Account, error)
GetAccount provides a mock function with given fields: ctx, addr, header, _a3
func (*Executor) GetAccountAvailableBalance ¶ added in v0.36.1
func (_m *Executor) GetAccountAvailableBalance(ctx context.Context, addr flow.Address, header *flow.Header, _a3 snapshot.StorageSnapshot) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: ctx, addr, header, _a3
func (*Executor) GetAccountBalance ¶ added in v0.35.17
func (_m *Executor) GetAccountBalance(ctx context.Context, addr flow.Address, header *flow.Header, _a3 snapshot.StorageSnapshot) (uint64, error)
GetAccountBalance provides a mock function with given fields: ctx, addr, header, _a3
func (*Executor) GetAccountKey ¶ added in v0.36.1
func (_m *Executor) GetAccountKey(ctx context.Context, addr flow.Address, keyIndex uint32, header *flow.Header, _a4 snapshot.StorageSnapshot) (*flow.AccountPublicKey, error)
GetAccountKey provides a mock function with given fields: ctx, addr, keyIndex, header, _a4
func (*Executor) GetAccountKeys ¶ added in v0.35.17
func (_m *Executor) GetAccountKeys(ctx context.Context, addr flow.Address, header *flow.Header, _a3 snapshot.StorageSnapshot) ([]flow.AccountPublicKey, error)
GetAccountKeys provides a mock function with given fields: ctx, addr, header, _a3