walletmock

package
v0.0.0-...-1c741c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	mock.Mock
}

Wallet is an autogenerated mock type for the Wallet type

func (*Wallet) Close

func (_m *Wallet) Close() error

Close provides a mock function with given fields:

func (*Wallet) ImportAddress

func (_m *Wallet) ImportAddress(_a0 btcutil.Address) error

ImportAddress provides a mock function with given fields: _a0

func (*Wallet) ListUnspent

func (_m *Wallet) ListUnspent() ([]btcjson.ListUnspentResult, error)

ListUnspent provides a mock function with given fields:

func (*Wallet) NewAddress

func (_m *Wallet) NewAddress() (btcutil.Address, error)

NewAddress provides a mock function with given fields:

func (*Wallet) NewPubkey

func (_m *Wallet) NewPubkey() (*btcec.PublicKey, error)

NewPubkey provides a mock function with given fields:

func (*Wallet) SelectUnspent

func (_m *Wallet) SelectUnspent(amt btcutil.Amount, feePerTxIn btcutil.Amount, feePerTxOut btcutil.Amount) ([]btcjson.ListUnspentResult, btcutil.Amount, error)

SelectUnspent provides a mock function with given fields: amt, feePerTxIn, feePerTxOut

func (*Wallet) SendRawTransaction

func (_m *Wallet) SendRawTransaction(tx *wire.MsgTx) (*chainhash.Hash, error)

SendRawTransaction provides a mock function with given fields: tx

func (*Wallet) SetRPCClient

func (_m *Wallet) SetRPCClient(_a0 rpc.Client)

SetRPCClient provides a mock function with given fields: _a0

func (*Wallet) Unlock

func (_m *Wallet) Unlock(privPass []byte) error

Unlock provides a mock function with given fields: privPass

func (*Wallet) WitnessSignTxByIdxs

func (_m *Wallet) WitnessSignTxByIdxs(tx *wire.MsgTx, idxs []int) ([]wire.TxWitness, error)

WitnessSignTxByIdxs provides a mock function with given fields: tx, idxs

func (*Wallet) WitnessSignature

func (_m *Wallet) WitnessSignature(tx *wire.MsgTx, idx int, amt btcutil.Amount, sc []byte, pub *btcec.PublicKey) ([]byte, error)

WitnessSignature provides a mock function with given fields: tx, idx, amt, sc, pub

func (*Wallet) WitnessSignatureWithCallback

func (_m *Wallet) WitnessSignatureWithCallback(tx *wire.MsgTx, idx int, amt btcutil.Amount, sc []byte, pub *btcec.PublicKey, privkeyConverter wallet.PrivateKeyConverter) ([]byte, error)

WitnessSignatureWithCallback provides a mock function with given fields: tx, idx, amt, sc, pub, privkeyConverter

Jump to

Keyboard shortcuts

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