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) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, blockHeight uint64) (uint64, error)
- func (_m *Client) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
- func (_m *Client) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountKey, error)
- func (_m *Client) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountKey, error)
- func (_m *Client) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]*flow.AccountKey, error)
- func (_m *Client) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]*flow.AccountKey, 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) GetCollectionByID(ctx context.Context, id 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) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *Client) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (_m *Client) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.FullCollection, 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) GetNodeVersionInfo(ctx context.Context) (*flow.NodeVersionInfo, error)
- func (_m *Client) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
- func (_m *Client) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
- func (_m *Client) GetSystemTransaction(ctx context.Context, blockID flow.Identifier) (*flow.Transaction, error)
- func (_m *Client) GetSystemTransactionResult(ctx context.Context, blockID flow.Identifier) (*flow.TransactionResult, 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) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32) (*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) SendAndSubscribeTransactionStatuses(ctx context.Context, tx flow.Transaction) (<-chan *flow.TransactionResult, <-chan error, error)
- func (_m *Client) SendTransaction(ctx context.Context, tx flow.Transaction) error
- func (_m *Client) SubscribeAccountStatusesFromLatestBlock(ctx context.Context, filter flow.AccountStatusFilter) (<-chan *flow.AccountStatus, <-chan error, error)
- func (_m *Client) SubscribeAccountStatusesFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) (<-chan *flow.AccountStatus, <-chan error, error)
- func (_m *Client) SubscribeAccountStatusesFromStartHeight(ctx context.Context, startBlockHeight uint64, filter flow.AccountStatusFilter) (<-chan *flow.AccountStatus, <-chan error, error)
- func (_m *Client) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.BlockDigest, <-chan error, error)
- func (_m *Client) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) (<-chan *flow.BlockDigest, <-chan error, error)
- func (_m *Client) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.BlockDigest, <-chan error, error)
- func (_m *Client) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.BlockHeader, <-chan error, error)
- func (_m *Client) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) (<-chan *flow.BlockHeader, <-chan error, error)
- func (_m *Client) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.BlockHeader, <-chan error, error)
- func (_m *Client) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.Block, <-chan error, error)
- func (_m *Client) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) (<-chan *flow.Block, <-chan error, error)
- func (_m *Client) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.Block, <-chan error, 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) GetAccountBalanceAtBlockHeight ¶ added in v1.4.0
func (_m *Client) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, blockHeight uint64) (uint64, error)
GetAccountBalanceAtBlockHeight provides a mock function with given fields: ctx, address, blockHeight
func (*Client) GetAccountBalanceAtLatestBlock ¶ added in v1.4.0
func (_m *Client) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
GetAccountBalanceAtLatestBlock provides a mock function with given fields: ctx, address
func (*Client) GetAccountKeyAtBlockHeight ¶ added in v1.4.0
func (_m *Client) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountKey, error)
GetAccountKeyAtBlockHeight provides a mock function with given fields: ctx, address, keyIndex, height
func (*Client) GetAccountKeyAtLatestBlock ¶ added in v1.4.0
func (_m *Client) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountKey, error)
GetAccountKeyAtLatestBlock provides a mock function with given fields: ctx, address, keyIndex
func (*Client) GetAccountKeysAtBlockHeight ¶ added in v1.4.0
func (_m *Client) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]*flow.AccountKey, error)
GetAccountKeysAtBlockHeight provides a mock function with given fields: ctx, address, height
func (*Client) GetAccountKeysAtLatestBlock ¶ added in v1.4.0
func (_m *Client) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]*flow.AccountKey, error)
GetAccountKeysAtLatestBlock 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) GetCollectionByID ¶ added in v1.4.0
func (_m *Client) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)
GetCollectionByID provides a mock function with given fields: ctx, id
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) GetExecutionResultByID ¶ added in v1.4.0
func (_m *Client) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
GetExecutionResultByID provides a mock function with given fields: ctx, id
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) GetFullCollectionByID ¶ added in v1.4.0
func (_m *Client) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.FullCollection, error)
GetFullCollectionByID provides a mock function with given fields: ctx, id
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) GetNodeVersionInfo ¶
GetNodeVersionInfo provides a mock function with given fields: ctx
func (*Client) GetProtocolStateSnapshotByBlockID ¶ added in v1.4.0
func (_m *Client) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
GetProtocolStateSnapshotByBlockID provides a mock function with given fields: ctx, blockID
func (*Client) GetProtocolStateSnapshotByHeight ¶ added in v1.4.0
func (_m *Client) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
GetProtocolStateSnapshotByHeight provides a mock function with given fields: ctx, blockHeight
func (*Client) GetSystemTransaction ¶ added in v1.4.0
func (_m *Client) GetSystemTransaction(ctx context.Context, blockID flow.Identifier) (*flow.Transaction, error)
GetSystemTransaction provides a mock function with given fields: ctx, blockID
func (*Client) GetSystemTransactionResult ¶ added in v1.4.0
func (_m *Client) GetSystemTransactionResult(ctx context.Context, blockID flow.Identifier) (*flow.TransactionResult, error)
GetSystemTransactionResult provides a mock function with given fields: ctx, blockID
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) GetTransactionResultByIndex ¶ added in v1.4.0
func (_m *Client) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32) (*flow.TransactionResult, error)
GetTransactionResultByIndex provides a mock function with given fields: ctx, blockID, index
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) SendAndSubscribeTransactionStatuses ¶ added in v1.4.0
func (_m *Client) SendAndSubscribeTransactionStatuses(ctx context.Context, tx flow.Transaction) (<-chan *flow.TransactionResult, <-chan error, error)
SendAndSubscribeTransactionStatuses provides a mock function with given fields: ctx, tx
func (*Client) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*Client) SubscribeAccountStatusesFromLatestBlock ¶ added in v1.4.0
func (_m *Client) SubscribeAccountStatusesFromLatestBlock(ctx context.Context, filter flow.AccountStatusFilter) (<-chan *flow.AccountStatus, <-chan error, error)
SubscribeAccountStatusesFromLatestBlock provides a mock function with given fields: ctx, filter
func (*Client) SubscribeAccountStatusesFromStartBlockID ¶ added in v1.4.0
func (_m *Client) SubscribeAccountStatusesFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, filter flow.AccountStatusFilter) (<-chan *flow.AccountStatus, <-chan error, error)
SubscribeAccountStatusesFromStartBlockID provides a mock function with given fields: ctx, startBlockID, filter
func (*Client) SubscribeAccountStatusesFromStartHeight ¶ added in v1.4.0
func (_m *Client) SubscribeAccountStatusesFromStartHeight(ctx context.Context, startBlockHeight uint64, filter flow.AccountStatusFilter) (<-chan *flow.AccountStatus, <-chan error, error)
SubscribeAccountStatusesFromStartHeight provides a mock function with given fields: ctx, startBlockHeight, filter
func (*Client) SubscribeBlockDigestsFromLatest ¶ added in v1.4.0
func (_m *Client) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.BlockDigest, <-chan error, error)
SubscribeBlockDigestsFromLatest provides a mock function with given fields: ctx, blockStatus
func (*Client) SubscribeBlockDigestsFromStartBlockID ¶ added in v1.4.0
func (_m *Client) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) (<-chan *flow.BlockDigest, <-chan error, error)
SubscribeBlockDigestsFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus
func (*Client) SubscribeBlockDigestsFromStartHeight ¶ added in v1.4.0
func (_m *Client) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.BlockDigest, <-chan error, error)
SubscribeBlockDigestsFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus
func (*Client) SubscribeBlockHeadersFromLatest ¶ added in v1.4.0
func (_m *Client) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.BlockHeader, <-chan error, error)
SubscribeBlockHeadersFromLatest provides a mock function with given fields: ctx, blockStatus
func (*Client) SubscribeBlockHeadersFromStartBlockID ¶ added in v1.4.0
func (_m *Client) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) (<-chan *flow.BlockHeader, <-chan error, error)
SubscribeBlockHeadersFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus
func (*Client) SubscribeBlockHeadersFromStartHeight ¶ added in v1.4.0
func (_m *Client) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.BlockHeader, <-chan error, error)
SubscribeBlockHeadersFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus
func (*Client) SubscribeBlocksFromLatest ¶ added in v1.4.0
func (_m *Client) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) (<-chan *flow.Block, <-chan error, error)
SubscribeBlocksFromLatest provides a mock function with given fields: ctx, blockStatus
func (*Client) SubscribeBlocksFromStartBlockID ¶ added in v1.4.0
func (_m *Client) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) (<-chan *flow.Block, <-chan error, error)
SubscribeBlocksFromStartBlockID provides a mock function with given fields: ctx, startBlockID, blockStatus
func (*Client) SubscribeBlocksFromStartHeight ¶ added in v1.4.0
func (_m *Client) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) (<-chan *flow.Block, <-chan error, error)
SubscribeBlocksFromStartHeight provides a mock function with given fields: ctx, startHeight, blockStatus
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