Documentation ¶
Index ¶
- type Wallet
- func (_m *Wallet) Close() error
- func (_m *Wallet) ImportAddress(_a0 btcutil.Address) error
- func (_m *Wallet) ListUnspent() ([]btcjson.ListUnspentResult, error)
- func (_m *Wallet) NewAddress() (btcutil.Address, error)
- func (_m *Wallet) NewPubkey() (*btcec.PublicKey, error)
- func (_m *Wallet) SelectUnspent(amt btcutil.Amount, feePerTxIn btcutil.Amount, feePerTxOut btcutil.Amount) ([]btcjson.ListUnspentResult, btcutil.Amount, error)
- func (_m *Wallet) SendRawTransaction(tx *wire.MsgTx) (*chainhash.Hash, error)
- func (_m *Wallet) SetRPCClient(_a0 rpc.Client)
- func (_m *Wallet) Unlock(privPass []byte) error
- func (_m *Wallet) WitnessSignTxByIdxs(tx *wire.MsgTx, idxs []int) ([]wire.TxWitness, error)
- func (_m *Wallet) WitnessSignature(tx *wire.MsgTx, idx int, amt btcutil.Amount, sc []byte, pub *btcec.PublicKey) ([]byte, error)
- func (_m *Wallet) WitnessSignatureWithCallback(tx *wire.MsgTx, idx int, amt btcutil.Amount, sc []byte, pub *btcec.PublicKey, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
Wallet is an autogenerated mock type for the Wallet type
func (*Wallet) ImportAddress ¶
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 ¶
NewAddress 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 ¶
SendRawTransaction provides a mock function with given fields: tx
func (*Wallet) SetRPCClient ¶
SetRPCClient provides a mock function with given fields: _a0
func (*Wallet) WitnessSignTxByIdxs ¶
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