Documentation
¶
Index ¶
- type Client
- func (_m *Client) BalanceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (*big.Int, error)
- func (_m *Client) BlockByHash(_a0 context.Context, _a1 common.Hash) (*types.Block, error)
- func (_m *Client) BlockByNumber(_a0 context.Context, _a1 *big.Int) (*types.Block, error)
- func (_m *Client) CallContract(_a0 context.Context, _a1 interfaces.CallMsg, _a2 *big.Int) ([]byte, error)
- func (_m *Client) ChainID(_a0 context.Context) (*big.Int, error)
- func (_m *Client) EstimateBaseFee(ctx context.Context) (*big.Int, error)
- func (_m *Client) EstimateGas(_a0 context.Context, _a1 interfaces.CallMsg) (uint64, error)
- func (_m *Client) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error)
- func (_m *Client) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
- func (_m *Client) GetContractInfo(_a0 common.Address, _a1 bool) (string, uint8, error)
- func (_m *Client) HeaderByHash(_a0 context.Context, _a1 common.Hash) (*types.Header, error)
- func (_m *Client) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)
- func (_m *Client) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
- func (_m *Client) IssueTx(ctx context.Context, txBytes []byte, options ...rpc.Option) (ids.ID, error)
- func (_m *Client) NonceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (uint64, error)
- func (_m *Client) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)
- func (_m *Client) SendTransaction(_a0 context.Context, _a1 *types.Transaction) error
- func (_m *Client) SuggestGasPrice(_a0 context.Context) (*big.Int, error)
- func (_m *Client) TraceBlockByHash(_a0 context.Context, _a1 string) ([]*client.Call, [][]*client.FlatCall, error)
- func (_m *Client) TraceTransaction(_a0 context.Context, _a1 string) (*client.Call, []*client.FlatCall, error)
- func (_m *Client) TransactionByHash(_a0 context.Context, _a1 common.Hash) (*types.Transaction, bool, error)
- func (_m *Client) TransactionReceipt(_a0 context.Context, _a1 common.Hash) (*types.Receipt, error)
- func (_m *Client) TxPoolContent(_a0 context.Context) (*client.TxPoolContent, error)
- type InfoClient
- type PChainClient
- func (_m *PChainClient) GetAssetDescription(ctx context.Context, assetID string, options ...rpc.Option) (*avm.GetAssetDescriptionReply, error)
- func (_m *PChainClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error)
- func (_m *PChainClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error)
- func (_m *PChainClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error)
- func (_m *PChainClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
- func (_m *PChainClient) GetContainerByIndex(ctx context.Context, index uint64, options ...rpc.Option) (indexer.Container, error)
- func (_m *PChainClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, ...) ([]platformvm.ClientPermissionlessValidator, error)
- func (_m *PChainClient) GetHeight(ctx context.Context, options ...rpc.Option) (uint64, error)
- func (_m *PChainClient) GetLastAccepted(_a0 context.Context, _a1 ...rpc.Option) (indexer.Container, uint64, error)
- func (_m *PChainClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
- func (_m *PChainClient) GetRewardUTXOs(_a0 context.Context, _a1 *api.GetTxArgs, _a2 ...rpc.Option) ([][]byte, error)
- func (_m *PChainClient) GetStake(ctx context.Context, addrs []ids.ShortID, validatorsOnly bool, ...) (map[ids.ID]uint64, [][]byte, error)
- func (_m *PChainClient) GetTx(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error)
- func (_m *PChainClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
- func (_m *PChainClient) GetUTXOs(ctx context.Context, addrs []ids.ShortID, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error)
- func (_m *PChainClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
- func (_m *PChainClient) IssueTx(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error)
- func (_m *PChainClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, 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 NewClient ¶ added in v0.1.26
func NewClient(t mockConstructorTestingTNewClient) *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.
func (*Client) BalanceAt ¶
func (_m *Client) BalanceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: _a0, _a1, _a2
func (*Client) BlockByHash ¶
BlockByHash provides a mock function with given fields: _a0, _a1
func (*Client) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: _a0, _a1
func (*Client) CallContract ¶ added in v0.0.26
func (_m *Client) CallContract(_a0 context.Context, _a1 interfaces.CallMsg, _a2 *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: _a0, _a1, _a2
func (*Client) EstimateBaseFee ¶ added in v0.1.26
EstimateBaseFee provides a mock function with given fields: ctx
func (*Client) EstimateGas ¶ added in v0.0.17
EstimateGas provides a mock function with given fields: _a0, _a1
func (*Client) GetAtomicUTXOs ¶ added in v0.1.26
func (_m *Client) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)
GetAtomicUTXOs provides a mock function with given fields: ctx, addrs, sourceChain, limit, startAddress, startUTXOID, options
func (*Client) GetBlockchainID ¶ added in v0.1.26
func (_m *Client) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2
func (*Client) GetContractInfo ¶ added in v0.1.5
GetContractInfo provides a mock function with given fields: _a0, _a1
func (*Client) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: _a0, _a1
func (*Client) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: _a0, _a1
func (*Client) IsBootstrapped ¶
IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2
func (*Client) IssueTx ¶ added in v0.1.26
func (_m *Client) IssueTx(ctx context.Context, txBytes []byte, options ...rpc.Option) (ids.ID, error)
IssueTx provides a mock function with given fields: ctx, txBytes, options
func (*Client) SendTransaction ¶
SendTransaction provides a mock function with given fields: _a0, _a1
func (*Client) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: _a0
func (*Client) TraceBlockByHash ¶ added in v0.1.1
func (_m *Client) TraceBlockByHash(_a0 context.Context, _a1 string) ([]*client.Call, [][]*client.FlatCall, error)
TraceBlockByHash provides a mock function with given fields: _a0, _a1
func (*Client) TraceTransaction ¶
func (_m *Client) TraceTransaction(_a0 context.Context, _a1 string) (*client.Call, []*client.FlatCall, error)
TraceTransaction provides a mock function with given fields: _a0, _a1
func (*Client) TransactionByHash ¶
func (_m *Client) TransactionByHash(_a0 context.Context, _a1 common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: _a0, _a1
func (*Client) TransactionReceipt ¶
TransactionReceipt provides a mock function with given fields: _a0, _a1
func (*Client) TxPoolContent ¶
TxPoolContent provides a mock function with given fields: _a0
type InfoClient ¶ added in v0.1.26
InfoClient is an autogenerated mock type for the InfoClient type
func NewInfoClient ¶ added in v0.1.26
func NewInfoClient(t mockConstructorTestingTNewInfoClient) *InfoClient
NewInfoClient creates a new instance of InfoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InfoClient) GetBlockchainID ¶ added in v0.1.26
func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2
func (*InfoClient) IsBootstrapped ¶ added in v0.1.26
func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2
type PChainClient ¶ added in v0.1.26
PChainClient is an autogenerated mock type for the PChainClient type
func NewPChainClient ¶ added in v0.1.26
func NewPChainClient(t mockConstructorTestingTNewPChainClient) *PChainClient
NewPChainClient creates a new instance of PChainClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PChainClient) GetAssetDescription ¶ added in v0.1.26
func (_m *PChainClient) GetAssetDescription(ctx context.Context, assetID string, options ...rpc.Option) (*avm.GetAssetDescriptionReply, error)
GetAssetDescription provides a mock function with given fields: ctx, assetID, options
func (*PChainClient) GetAtomicUTXOs ¶ added in v0.1.26
func (_m *PChainClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)
GetAtomicUTXOs provides a mock function with given fields: ctx, addrs, sourceChain, limit, startAddress, startUTXOID, options
func (*PChainClient) GetBalance ¶ added in v0.1.26
func (_m *PChainClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error)
GetBalance provides a mock function with given fields: ctx, addrs, options
func (*PChainClient) GetBlock ¶ added in v0.1.26
func (_m *PChainClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error)
GetBlock provides a mock function with given fields: ctx, blockID, options
func (*PChainClient) GetBlockchainID ¶ added in v0.1.26
func (_m *PChainClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2
func (*PChainClient) GetContainerByIndex ¶ added in v0.1.26
func (_m *PChainClient) GetContainerByIndex(ctx context.Context, index uint64, options ...rpc.Option) (indexer.Container, error)
GetContainerByIndex provides a mock function with given fields: ctx, index, options
func (*PChainClient) GetCurrentValidators ¶ added in v0.1.26
func (_m *PChainClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error)
GetCurrentValidators provides a mock function with given fields: ctx, subnetID, nodeIDs, options
func (*PChainClient) GetHeight ¶ added in v0.1.26
GetHeight provides a mock function with given fields: ctx, options
func (*PChainClient) GetLastAccepted ¶ added in v0.1.26
func (_m *PChainClient) GetLastAccepted(_a0 context.Context, _a1 ...rpc.Option) (indexer.Container, uint64, error)
GetLastAccepted provides a mock function with given fields: _a0, _a1
func (*PChainClient) GetNodeID ¶ added in v0.1.26
func (_m *PChainClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
GetNodeID provides a mock function with given fields: _a0, _a1
func (*PChainClient) GetRewardUTXOs ¶ added in v0.1.26
func (_m *PChainClient) GetRewardUTXOs(_a0 context.Context, _a1 *api.GetTxArgs, _a2 ...rpc.Option) ([][]byte, error)
GetRewardUTXOs provides a mock function with given fields: _a0, _a1, _a2
func (*PChainClient) GetStake ¶ added in v0.1.26
func (_m *PChainClient) GetStake(ctx context.Context, addrs []ids.ShortID, validatorsOnly bool, options ...rpc.Option) (map[ids.ID]uint64, [][]byte, error)
GetStake provides a mock function with given fields: ctx, addrs, validatorsOnly, options
func (*PChainClient) GetTx ¶ added in v0.1.26
func (_m *PChainClient) GetTx(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error)
GetTx provides a mock function with given fields: ctx, txID, options
func (*PChainClient) GetTxFee ¶ added in v0.1.26
func (_m *PChainClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
GetTxFee provides a mock function with given fields: _a0, _a1
func (*PChainClient) GetUTXOs ¶ added in v0.1.26
func (_m *PChainClient) GetUTXOs(ctx context.Context, addrs []ids.ShortID, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)
GetUTXOs provides a mock function with given fields: ctx, addrs, limit, startAddress, startUTXOID, options
func (*PChainClient) IsBootstrapped ¶ added in v0.1.26
func (_m *PChainClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2