Documentation
¶
Index ¶
- type RpcClient
- func (_m *RpcClient) CreateWallet(name string, opts ...rpcclient.CreateWalletOpt) (*btcjson.CreateWalletResult, error)
- func (_m *RpcClient) GenerateToAddress(numBlocks int64, address btcutil.Address, maxTries *int64) ([]*chainhash.Hash, error)
- func (_m *RpcClient) GetBalance(account string) (btcutil.Amount, error)
- func (_m *RpcClient) GetNewAddress(account string) (btcutil.Address, error)
- func (_m *RpcClient) GetWalletInfo() (*btcjson.GetWalletInfoResult, error)
- func (_m *RpcClient) LoadWallet(name string) (*btcjson.LoadWalletResult, error)
- func (_m *RpcClient) SendToAddress(address btcutil.Address, amount btcutil.Amount) (*chainhash.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcClient ¶
RpcClient is an autogenerated mock type for the rpcClient type
func NewRpcClient ¶
func NewRpcClient(t mockConstructorTestingTNewRpcClient) *RpcClient
NewRpcClient creates a new instance of RpcClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RpcClient) CreateWallet ¶
func (_m *RpcClient) CreateWallet(name string, opts ...rpcclient.CreateWalletOpt) (*btcjson.CreateWalletResult, error)
CreateWallet provides a mock function with given fields: name, opts
func (*RpcClient) GenerateToAddress ¶
func (_m *RpcClient) GenerateToAddress(numBlocks int64, address btcutil.Address, maxTries *int64) ([]*chainhash.Hash, error)
GenerateToAddress provides a mock function with given fields: numBlocks, address, maxTries
func (*RpcClient) GetBalance ¶
GetBalance provides a mock function with given fields: account
func (*RpcClient) GetNewAddress ¶
GetNewAddress provides a mock function with given fields: account
func (*RpcClient) GetWalletInfo ¶
func (_m *RpcClient) GetWalletInfo() (*btcjson.GetWalletInfoResult, error)
GetWalletInfo provides a mock function with given fields:
func (*RpcClient) LoadWallet ¶
func (_m *RpcClient) LoadWallet(name string) (*btcjson.LoadWalletResult, error)
LoadWallet provides a mock function with given fields: name
Click to show internal directories.
Click to hide internal directories.