Documentation ¶
Index ¶
- type Client
- func (_m *Client) Close() error
- func (_m *Client) ExecuteScriptAtBlockHeight(ctx context.Context, height uint64, script []byte, arguments []cadence.Value) (cadence.Value, error)
- func (_m *Client) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, ...) (cadence.Value, error)
- func (_m *Client) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments []cadence.Value) (cadence.Value, error)
- func (_m *Client) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (_m *Client) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, blockHeight uint64) (*flow.Account, error)
- func (_m *Client) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (_m *Client) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)
- func (_m *Client) GetBlockByID(ctx context.Context, blockID flow.Identifier) (*flow.Block, error)
- func (_m *Client) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.BlockHeader, error)
- func (_m *Client) GetBlockHeaderByID(ctx context.Context, blockID flow.Identifier) (*flow.BlockHeader, error)
- func (_m *Client) GetCollection(ctx context.Context, colID flow.Identifier) (*flow.Collection, error)
- func (_m *Client) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier) ([]flow.BlockEvents, error)
- func (_m *Client) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight uint64, endHeight uint64) ([]flow.BlockEvents, error)
- func (_m *Client) GetExecutionDataByBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionData, error)
- func (_m *Client) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *Client) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, error)
- func (_m *Client) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error)
- func (_m *Client) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
- func (_m *Client) GetNetworkParameters(ctx context.Context) (*flow.NetworkParameters, error)
- func (_m *Client) GetTransaction(ctx context.Context, txID flow.Identifier) (*flow.Transaction, error)
- func (_m *Client) GetTransactionResult(ctx context.Context, txID flow.Identifier) (*flow.TransactionResult, error)
- func (_m *Client) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionResult, error)
- func (_m *Client) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.Transaction, error)
- func (_m *Client) Ping(ctx context.Context) error
- func (_m *Client) SendTransaction(ctx context.Context, tx flow.Transaction) error
- func (_m *Client) SubscribeEventsByBlockHeight(ctx context.Context, startHeight uint64, filter flow.EventFilter, ...) (<-chan flow.BlockEvents, <-chan error, error)
- func (_m *Client) SubscribeEventsByBlockID(ctx context.Context, startBlockID flow.Identifier, filter flow.EventFilter, ...) (<-chan flow.BlockEvents, <-chan error, error)
- func (_m *Client) SubscribeExecutionDataByBlockHeight(ctx context.Context, startHeight uint64) (<-chan flow.ExecutionDataStreamResponse, <-chan error, error)
- func (_m *Client) SubscribeExecutionDataByBlockID(ctx context.Context, startBlockID flow.Identifier) (<-chan flow.ExecutionDataStreamResponse, <-chan error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
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 ¶
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 ¶
GetBlockByHeight provides a mock function with given fields: ctx, height
func (*Client) GetBlockByID ¶
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 ¶
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 ¶
GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx
func (*Client) GetNetworkParameters ¶
GetNetworkParameters 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) SendTransaction ¶
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