Documentation ¶
Index ¶
- type ScriptExecutor
- func (_m *ScriptExecutor) ExecuteAtBlockHeight(ctx context.Context, script []byte, arguments [][]byte, height uint64) ([]byte, error)
- func (_m *ScriptExecutor) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
- func (_m *ScriptExecutor) GetAccountBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)
- func (_m *ScriptExecutor) GetAccountKeys(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScriptExecutor ¶
ScriptExecutor is an autogenerated mock type for the ScriptExecutor type
func NewScriptExecutor ¶
func NewScriptExecutor(t interface { mock.TestingT Cleanup(func()) }) *ScriptExecutor
NewScriptExecutor creates a new instance of ScriptExecutor. 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 (*ScriptExecutor) ExecuteAtBlockHeight ¶
func (_m *ScriptExecutor) ExecuteAtBlockHeight(ctx context.Context, script []byte, arguments [][]byte, height uint64) ([]byte, error)
ExecuteAtBlockHeight provides a mock function with given fields: ctx, script, arguments, height
func (*ScriptExecutor) GetAccountAtBlockHeight ¶
func (_m *ScriptExecutor) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
GetAccountAtBlockHeight provides a mock function with given fields: ctx, address, height
func (*ScriptExecutor) GetAccountBalance ¶ added in v0.35.17
func (_m *ScriptExecutor) GetAccountBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)
GetAccountBalance provides a mock function with given fields: ctx, address, height
func (*ScriptExecutor) GetAccountKeys ¶ added in v0.35.17
func (_m *ScriptExecutor) GetAccountKeys(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
GetAccountKeys provides a mock function with given fields: ctx, address, height