client

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-3-Clause Imports: 15 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 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

func (_m *Client) BlockByHash(_a0 context.Context, _a1 common.Hash) (*types.Block, error)

BlockByHash provides a mock function with given fields: _a0, _a1

func (*Client) BlockByNumber

func (_m *Client) BlockByNumber(_a0 context.Context, _a1 *big.Int) (*types.Block, error)

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

func (_m *Client) ChainID(_a0 context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: _a0

func (*Client) EstimateBaseFee added in v0.1.26

func (_m *Client) EstimateBaseFee(ctx context.Context) (*big.Int, error)

EstimateBaseFee provides a mock function with given fields: ctx

func (*Client) EstimateGas added in v0.0.17

func (_m *Client) EstimateGas(_a0 context.Context, _a1 interfaces.CallMsg) (uint64, error)

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

func (_m *Client) GetContractInfo(_a0 common.Address, _a1 bool) (string, uint8, error)

GetContractInfo provides a mock function with given fields: _a0, _a1

func (*Client) HeaderByHash

func (_m *Client) HeaderByHash(_a0 context.Context, _a1 common.Hash) (*types.Header, error)

HeaderByHash provides a mock function with given fields: _a0, _a1

func (*Client) HeaderByNumber

func (_m *Client) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: _a0, _a1

func (*Client) IsBootstrapped

func (_m *Client) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)

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

func (_m *Client) NonceAt(_a0 context.Context, _a1 common.Address, _a2 *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: _a0, _a1, _a2

func (*Client) Peers

func (_m *Client) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)

Peers provides a mock function with given fields: _a0, _a1

func (*Client) SendTransaction

func (_m *Client) SendTransaction(_a0 context.Context, _a1 *types.Transaction) error

SendTransaction provides a mock function with given fields: _a0, _a1

func (*Client) SuggestGasPrice

func (_m *Client) SuggestGasPrice(_a0 context.Context) (*big.Int, error)

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

func (_m *Client) TransactionReceipt(_a0 context.Context, _a1 common.Hash) (*types.Receipt, error)

TransactionReceipt provides a mock function with given fields: _a0, _a1

func (*Client) TxPoolContent

func (_m *Client) TxPoolContent(_a0 context.Context) (*client.TxPoolContent, error)

TxPoolContent provides a mock function with given fields: _a0

type InfoClient added in v0.1.26

type InfoClient struct {
	mock.Mock
}

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

func (*InfoClient) Peers added in v0.1.26

func (_m *InfoClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)

Peers provides a mock function with given fields: _a0, _a1

type PChainClient added in v0.1.26

type PChainClient struct {
	mock.Mock
}

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

func (_m *PChainClient) GetHeight(ctx context.Context, options ...rpc.Option) (uint64, error)

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

func (*PChainClient) IssueTx added in v0.1.26

func (_m *PChainClient) IssueTx(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error)

IssueTx provides a mock function with given fields: ctx, tx, options

func (*PChainClient) Peers added in v0.1.26

func (_m *PChainClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)

Peers provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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