mocks

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 4 Imported by: 0

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

func (_m *Client) BatchLiveCells(ctx context.Context, batch []types.BatchLiveCellItem) error

BatchLiveCells provides a mock function with given fields: ctx, batch

func (*Client) BatchTransactions

func (_m *Client) BatchTransactions(ctx context.Context, batch []types.BatchTransactionItem) error

BatchTransactions provides a mock function with given fields: ctx, batch

func (*Client) CalculateDaoMaximumWithdraw

func (_m *Client) CalculateDaoMaximumWithdraw(ctx context.Context, point *types.OutPoint, hash types.Hash) (uint64, error)

CalculateDaoMaximumWithdraw provides a mock function with given fields: ctx, point, hash

func (*Client) CallContext added in v0.41.0

func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) DryRunTransaction

func (_m *Client) DryRunTransaction(ctx context.Context, transaction *types.Transaction) (*types.DryRunTransactionResult, error)

DryRunTransaction provides a mock function with given fields: ctx, transaction

func (*Client) EstimateFeeRate

func (_m *Client) EstimateFeeRate(ctx context.Context, blocks uint64) (*types.EstimateFeeRateResult, error)

EstimateFeeRate provides a mock function with given fields: ctx, blocks

func (*Client) GetBannedAddresses

func (_m *Client) GetBannedAddresses(ctx context.Context) ([]*types.BannedAddress, error)

GetBannedAddresses provides a mock function with given fields: ctx

func (*Client) GetBlock

func (_m *Client) GetBlock(ctx context.Context, hash types.Hash) (*types.Block, error)

GetBlock provides a mock function with given fields: ctx, hash

func (*Client) GetBlockByNumber

func (_m *Client) GetBlockByNumber(ctx context.Context, number uint64) (*types.Block, error)

GetBlockByNumber provides a mock function with given fields: ctx, number

func (*Client) GetBlockEconomicState

func (_m *Client) GetBlockEconomicState(ctx context.Context, hash types.Hash) (*types.BlockEconomicState, error)

GetBlockEconomicState provides a mock function with given fields: ctx, hash

func (*Client) GetBlockHash

func (_m *Client) GetBlockHash(ctx context.Context, number uint64) (*types.Hash, error)

GetBlockHash provides a mock function with given fields: ctx, number

func (*Client) GetBlockchainInfo

func (_m *Client) GetBlockchainInfo(ctx context.Context) (*types.BlockchainInfo, error)

GetBlockchainInfo provides a mock function with given fields: ctx

func (*Client) GetCellbaseOutputCapacityDetails

func (_m *Client) GetCellbaseOutputCapacityDetails(ctx context.Context, hash types.Hash) (*types.BlockReward, error)

GetCellbaseOutputCapacityDetails provides a mock function with given fields: ctx, hash

func (*Client) GetCells

func (_m *Client) GetCells(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, afterCursor string) (*indexer.LiveCells, error)

GetCells provides a mock function with given fields: ctx, searchKey, order, limit, afterCursor

func (*Client) GetCellsCapacity

func (_m *Client) GetCellsCapacity(ctx context.Context, searchKey *indexer.SearchKey) (*indexer.Capacity, error)

GetCellsCapacity provides a mock function with given fields: ctx, searchKey

func (*Client) GetConsensus added in v0.41.0

func (_m *Client) GetConsensus(ctx context.Context) (*types.Consensus, error)

GetConsensus provides a mock function with given fields: ctx

func (*Client) GetCurrentEpoch

func (_m *Client) GetCurrentEpoch(ctx context.Context) (*types.Epoch, error)

GetCurrentEpoch provides a mock function with given fields: ctx

func (*Client) GetEpochByNumber

func (_m *Client) GetEpochByNumber(ctx context.Context, number uint64) (*types.Epoch, error)

GetEpochByNumber provides a mock function with given fields: ctx, number

func (*Client) GetHeader

func (_m *Client) GetHeader(ctx context.Context, hash types.Hash) (*types.Header, error)

GetHeader provides a mock function with given fields: ctx, hash

func (*Client) GetHeaderByNumber

func (_m *Client) GetHeaderByNumber(ctx context.Context, number uint64) (*types.Header, error)

GetHeaderByNumber provides a mock function with given fields: ctx, number

func (*Client) GetLiveCell

func (_m *Client) GetLiveCell(ctx context.Context, outPoint *types.OutPoint, withData bool) (*types.CellWithStatus, error)

GetLiveCell provides a mock function with given fields: ctx, outPoint, withData

func (*Client) GetPeers

func (_m *Client) GetPeers(ctx context.Context) ([]*types.Node, error)

GetPeers provides a mock function with given fields: ctx

func (*Client) GetTip

func (_m *Client) GetTip(ctx context.Context) (*indexer.TipHeader, error)

GetTip provides a mock function with given fields: ctx

func (*Client) GetTipBlockNumber

func (_m *Client) GetTipBlockNumber(ctx context.Context) (uint64, error)

GetTipBlockNumber provides a mock function with given fields: ctx

func (*Client) GetTipHeader

func (_m *Client) GetTipHeader(ctx context.Context) (*types.Header, error)

GetTipHeader provides a mock function with given fields: ctx

func (*Client) GetTransaction

func (_m *Client) GetTransaction(ctx context.Context, hash types.Hash) (*types.TransactionWithStatus, error)

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

func (*Client) GetTransactions

func (_m *Client) GetTransactions(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, afterCursor string) (*indexer.Transactions, error)

GetTransactions provides a mock function with given fields: ctx, searchKey, order, limit, afterCursor

func (*Client) LocalNodeInfo

func (_m *Client) LocalNodeInfo(ctx context.Context) (*types.Node, error)

LocalNodeInfo provides a mock function with given fields: ctx

func (*Client) SendTransaction

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

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

func (*Client) SendTransactionNoneValidation

func (_m *Client) SendTransactionNoneValidation(ctx context.Context, tx *types.Transaction) (*types.Hash, error)

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

func (*Client) SetBan

func (_m *Client) SetBan(ctx context.Context, address string, command string, banTime uint64, absolute bool, reason string) error

SetBan provides a mock function with given fields: ctx, address, command, banTime, absolute, reason

func (*Client) TxPoolInfo

func (_m *Client) TxPoolInfo(ctx context.Context) (*types.TxPoolInfo, error)

TxPoolInfo provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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