mocks

package
v1.10.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewClient added in v1.5.0

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with no 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) 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

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) 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

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) 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) GetScheduledTransaction added in v1.10.0

func (_m *Client) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.Transaction, error)

GetScheduledTransaction provides a mock function with given fields: ctx, scheduledTxID

func (*Client) GetScheduledTransactionResult added in v1.10.0

func (_m *Client) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64) (*flow.TransactionResult, error)

GetScheduledTransactionResult provides a mock function with given fields: ctx, scheduledTxID

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) GetSystemTransactionResultWithID added in v1.8.3

func (_m *Client) GetSystemTransactionResultWithID(ctx context.Context, blockID flow.Identifier, systemTxID flow.Identifier) (*flow.TransactionResult, error)

GetSystemTransactionResultWithID provides a mock function with given fields: ctx, blockID, systemTxID

func (*Client) GetSystemTransactionWithID added in v1.8.3

func (_m *Client) GetSystemTransactionWithID(ctx context.Context, blockID flow.Identifier, systemTxID flow.Identifier) (*flow.Transaction, error)

GetSystemTransactionWithID provides a mock function with given fields: ctx, blockID, systemTxID

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) Ping

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

Ping provides a mock function with given fields: ctx

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

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

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

Jump to

Keyboard shortcuts

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