Documentation ¶
Index ¶
- type Client
- func (_m *Client) AddNode(ctx context.Context, peerId, address string) error
- func (_m *Client) BatchLiveCells(ctx context.Context, batch []types.BatchLiveCellItem) error
- func (_m *Client) BatchTransactions(ctx context.Context, batch []types.BatchTransactionItem) error
- func (_m *Client) CalculateDaoMaximumWithdraw(ctx context.Context, point *types.OutPoint, hash types.Hash) (uint64, error)
- func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Client) ClearBannedAddresses(ctx context.Context) error
- func (_m *Client) ClearTxPool(ctx context.Context) error
- func (_m *Client) Close()
- func (_m *Client) DryRunTransaction(ctx context.Context, transaction *types.Transaction) (*types.DryRunTransactionResult, error)
- func (_m *Client) EstimateFeeRate(ctx context.Context, blocks uint64) (*types.EstimateFeeRateResult, error)
- func (_m *Client) GetBannedAddresses(ctx context.Context) ([]*types.BannedAddress, error)
- func (_m *Client) GetBlock(ctx context.Context, hash types.Hash) (*types.Block, error)
- func (_m *Client) GetBlockByNumber(ctx context.Context, number uint64) (*types.Block, error)
- func (_m *Client) GetBlockEconomicState(ctx context.Context, hash types.Hash) (*types.BlockEconomicState, error)
- func (_m *Client) GetBlockHash(ctx context.Context, number uint64) (*types.Hash, error)
- func (_m *Client) GetBlockMedianTime(ctx context.Context, blockHash types.Hash) (uint64, error)
- func (_m *Client) GetBlockchainInfo(ctx context.Context) (*types.BlockchainInfo, error)
- func (_m *Client) GetCellbaseOutputCapacityDetails(ctx context.Context, hash types.Hash) (*types.BlockReward, error)
- func (_m *Client) GetCells(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.LiveCells, error)
- func (_m *Client) GetCellsCapacity(ctx context.Context, searchKey *indexer.SearchKey) (*indexer.Capacity, error)
- func (_m *Client) GetConsensus(ctx context.Context) (*types.Consensus, error)
- func (_m *Client) GetCurrentEpoch(ctx context.Context) (*types.Epoch, error)
- func (_m *Client) GetEpochByNumber(ctx context.Context, number uint64) (*types.Epoch, error)
- func (_m *Client) GetForkBlock(ctx context.Context, blockHash types.Hash) (*types.Block, error)
- func (_m *Client) GetHeader(ctx context.Context, hash types.Hash) (*types.Header, error)
- func (_m *Client) GetHeaderByNumber(ctx context.Context, number uint64) (*types.Header, error)
- func (_m *Client) GetLiveCell(ctx context.Context, outPoint *types.OutPoint, withData bool) (*types.CellWithStatus, error)
- func (_m *Client) GetPeers(ctx context.Context) ([]*types.Node, error)
- func (_m *Client) GetRawTxPool(ctx context.Context) (*types.RawTxPool, error)
- func (_m *Client) GetTip(ctx context.Context) (*indexer.TipHeader, error)
- func (_m *Client) GetTipBlockNumber(ctx context.Context) (uint64, error)
- func (_m *Client) GetTipHeader(ctx context.Context) (*types.Header, error)
- func (_m *Client) GetTransaction(ctx context.Context, hash types.Hash) (*types.TransactionWithStatus, error)
- func (_m *Client) GetTransactionProof(ctx context.Context, txHashes []string, blockHash *types.Hash) (*types.TransactionProof, error)
- func (_m *Client) GetTransactions(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.Transactions, error)
- func (_m *Client) LocalNodeInfo(ctx context.Context) (*types.Node, error)
- func (_m *Client) PingPeers(ctx context.Context) error
- func (_m *Client) RemoveNode(ctx context.Context, peerId string) error
- func (_m *Client) SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
- func (_m *Client) SendTransactionNoneValidation(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
- func (_m *Client) SetBan(ctx context.Context, address string, command string, banTime uint64, ...) error
- func (_m *Client) SetNetworkActive(ctx context.Context, state bool) error
- func (_m *Client) SyncState(ctx context.Context) (*types.SyncState, error)
- func (_m *Client) TxPoolInfo(ctx context.Context) (*types.TxPoolInfo, error)
- func (_m *Client) VerifyTransactionProof(ctx context.Context, proof *types.TransactionProof) ([]*types.Hash, 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) BatchLiveCells ¶
BatchLiveCells provides a mock function with given fields: ctx, batch
func (*Client) BatchTransactions ¶
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) ClearBannedAddresses ¶ added in v0.101.1
func (*Client) ClearTxPool ¶ added in v0.101.1
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 ¶
GetBannedAddresses provides a mock function with given fields: ctx
func (*Client) GetBlockByNumber ¶
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 ¶
GetBlockHash provides a mock function with given fields: ctx, number
func (*Client) GetBlockMedianTime ¶ added in v0.101.1
func (*Client) GetBlockchainInfo ¶
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
GetConsensus provides a mock function with given fields: ctx
func (*Client) GetCurrentEpoch ¶
GetCurrentEpoch provides a mock function with given fields: ctx
func (*Client) GetEpochByNumber ¶
GetEpochByNumber provides a mock function with given fields: ctx, number
func (*Client) GetForkBlock ¶ added in v0.101.1
func (*Client) GetHeaderByNumber ¶
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) GetRawTxPool ¶ added in v0.101.1
func (*Client) GetTipBlockNumber ¶
GetTipBlockNumber provides a mock function with given fields: ctx
func (*Client) GetTipHeader ¶
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) GetTransactionProof ¶ added in v0.101.1
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 ¶
LocalNodeInfo provides a mock function with given fields: ctx
func (*Client) RemoveNode ¶ added in v0.101.1
func (*Client) SendTransaction ¶
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) SetNetworkActive ¶ added in v0.101.1
func (*Client) TxPoolInfo ¶
TxPoolInfo provides a mock function with given fields: ctx