mocks

package
v1.0.0-preview.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) ExecuteScriptAtBlockHeight

func (_m *Client) ExecuteScriptAtBlockHeight(ctx context.Context, height uint64, script []byte, arguments []cadence.Value) (cadence.Value, error)

ExecuteScriptAtBlockHeight provides a mock function with given fields: ctx, height, script, arguments

func (*Client) ExecuteScriptAtBlockID

func (_m *Client) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments []cadence.Value) (cadence.Value, error)

ExecuteScriptAtBlockID provides a mock function with given fields: ctx, blockID, script, arguments

func (*Client) ExecuteScriptAtLatestBlock

func (_m *Client) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments []cadence.Value) (cadence.Value, error)

ExecuteScriptAtLatestBlock provides a mock function with given fields: ctx, script, arguments

func (*Client) GetAccount

func (_m *Client) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: ctx, address

func (*Client) GetAccountAtBlockHeight

func (_m *Client) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, blockHeight uint64) (*flow.Account, error)

GetAccountAtBlockHeight provides a mock function with given fields: ctx, address, blockHeight

func (*Client) GetAccountAtLatestBlock

func (_m *Client) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccountAtLatestBlock provides a mock function with given fields: ctx, address

func (*Client) GetBlockByHeight

func (_m *Client) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)

GetBlockByHeight provides a mock function with given fields: ctx, height

func (*Client) GetBlockByID

func (_m *Client) GetBlockByID(ctx context.Context, blockID flow.Identifier) (*flow.Block, error)

GetBlockByID provides a mock function with given fields: ctx, blockID

func (*Client) GetBlockHeaderByHeight

func (_m *Client) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.BlockHeader, error)

GetBlockHeaderByHeight provides a mock function with given fields: ctx, height

func (*Client) GetBlockHeaderByID

func (_m *Client) GetBlockHeaderByID(ctx context.Context, blockID flow.Identifier) (*flow.BlockHeader, error)

GetBlockHeaderByID provides a mock function with given fields: ctx, blockID

func (*Client) GetCollection

func (_m *Client) GetCollection(ctx context.Context, colID flow.Identifier) (*flow.Collection, error)

GetCollection provides a mock function with given fields: ctx, colID

func (*Client) GetEventsForBlockIDs

func (_m *Client) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier) ([]flow.BlockEvents, error)

GetEventsForBlockIDs provides a mock function with given fields: ctx, eventType, blockIDs

func (*Client) GetEventsForHeightRange

func (_m *Client) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight uint64, endHeight uint64) ([]flow.BlockEvents, error)

GetEventsForHeightRange provides a mock function with given fields: ctx, eventType, startHeight, endHeight

func (*Client) GetExecutionDataByBlockID

func (_m *Client) GetExecutionDataByBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionData, error)

GetExecutionDataByBlockID provides a mock function with given fields: ctx, blockID

func (*Client) GetExecutionResultForBlockID

func (_m *Client) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)

GetExecutionResultForBlockID provides a mock function with given fields: ctx, blockID

func (*Client) GetLatestBlock

func (_m *Client) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, error)

GetLatestBlock provides a mock function with given fields: ctx, isSealed

func (*Client) GetLatestBlockHeader

func (_m *Client) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error)

GetLatestBlockHeader provides a mock function with given fields: ctx, isSealed

func (*Client) GetLatestProtocolStateSnapshot

func (_m *Client) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)

GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx

func (*Client) GetNetworkParameters

func (_m *Client) GetNetworkParameters(ctx context.Context) (*flow.NetworkParameters, error)

GetNetworkParameters provides a mock function with given fields: ctx

func (*Client) GetNodeVersionInfo

func (_m *Client) GetNodeVersionInfo(ctx context.Context) (*flow.NodeVersionInfo, error)

GetNodeVersionInfo provides a mock function with given fields: ctx

func (*Client) GetTransaction

func (_m *Client) GetTransaction(ctx context.Context, txID flow.Identifier) (*flow.Transaction, error)

GetTransaction provides a mock function with given fields: ctx, txID

func (*Client) GetTransactionResult

func (_m *Client) GetTransactionResult(ctx context.Context, txID flow.Identifier) (*flow.TransactionResult, error)

GetTransactionResult provides a mock function with given fields: ctx, txID

func (*Client) GetTransactionResultsByBlockID

func (_m *Client) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionResult, error)

GetTransactionResultsByBlockID provides a mock function with given fields: ctx, blockID

func (*Client) GetTransactionsByBlockID

func (_m *Client) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.Transaction, error)

GetTransactionsByBlockID provides a mock function with given fields: ctx, blockID

func (*Client) Ping

func (_m *Client) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*Client) SendTransaction

func (_m *Client) SendTransaction(ctx context.Context, tx flow.Transaction) error

SendTransaction provides a mock function with given fields: ctx, tx

func (*Client) SubscribeEventsByBlockHeight

func (_m *Client) SubscribeEventsByBlockHeight(ctx context.Context, startHeight uint64, filter flow.EventFilter, opts ...access.SubscribeOption) (<-chan flow.BlockEvents, <-chan error, error)

SubscribeEventsByBlockHeight provides a mock function with given fields: ctx, startHeight, filter, opts

func (*Client) SubscribeEventsByBlockID

func (_m *Client) SubscribeEventsByBlockID(ctx context.Context, startBlockID flow.Identifier, filter flow.EventFilter, opts ...access.SubscribeOption) (<-chan flow.BlockEvents, <-chan error, error)

SubscribeEventsByBlockID provides a mock function with given fields: ctx, startBlockID, filter, opts

func (*Client) SubscribeExecutionDataByBlockHeight

func (_m *Client) SubscribeExecutionDataByBlockHeight(ctx context.Context, startHeight uint64) (<-chan flow.ExecutionDataStreamResponse, <-chan error, error)

SubscribeExecutionDataByBlockHeight provides a mock function with given fields: ctx, startHeight

func (*Client) SubscribeExecutionDataByBlockID

func (_m *Client) SubscribeExecutionDataByBlockID(ctx context.Context, startBlockID flow.Identifier) (<-chan flow.ExecutionDataStreamResponse, <-chan error, error)

SubscribeExecutionDataByBlockID provides a mock function with given fields: ctx, startBlockID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL