Documentation
¶
Overview ¶
Package test is a generated GoMock package.
Index ¶
- func CreateKey(index int32) (*btcec.PrivateKey, *btcec.PublicKey)
- type MockLightning
- func (m *MockLightning) AddInvoice(_ context.Context, in *invoicesrpc.AddInvoiceData) (lntypes.Hash, string, error)
- func (m *MockLightning) ChannelBackup(_ context.Context, op wire.OutPoint) ([]byte, error)
- func (m *MockLightning) ChannelBackups(context.Context) ([]byte, error)
- func (m *MockLightning) CloseChannel(context.Context, *wire.OutPoint, bool, int32, btcutil.Address) (chan lndclient.CloseChannelUpdate, chan error, error)
- func (m *MockLightning) ClosedChannels(context.Context) ([]lndclient.ClosedChannel, error)
- func (m *MockLightning) ConfirmedWalletBalance(context.Context) (btcutil.Amount, error)
- func (m *MockLightning) Connect(_ context.Context, peer route.Vertex, host string, _ bool) error
- func (m *MockLightning) Connections() map[route.Vertex]string
- func (m *MockLightning) DecodePaymentRequest(context.Context, string) (*lndclient.PaymentRequest, error)
- func (m *MockLightning) EstimateFeeToP2WSH(context.Context, btcutil.Amount, int32) (btcutil.Amount, error)
- func (m *MockLightning) ForwardingHistory(context.Context, lndclient.ForwardingHistoryRequest) (*lndclient.ForwardingHistoryResponse, error)
- func (m *MockLightning) GetChanInfo(ctx context.Context, cid uint64) (*lndclient.ChannelEdge, error)
- func (m *MockLightning) GetInfo(context.Context) (*lndclient.Info, error)
- func (m *MockLightning) ListChannels(context.Context, bool, bool) ([]lndclient.ChannelInfo, error)
- func (m *MockLightning) ListInvoices(context.Context, lndclient.ListInvoicesRequest) (*lndclient.ListInvoicesResponse, error)
- func (m *MockLightning) ListPayments(context.Context, lndclient.ListPaymentsRequest) (*lndclient.ListPaymentsResponse, error)
- func (m *MockLightning) ListTransactions(context.Context, int32, int32) ([]lndclient.Transaction, error)
- func (m *MockLightning) LookupInvoice(_ context.Context, hash lntypes.Hash) (*lndclient.Invoice, error)
- func (m *MockLightning) OpenChannel(_ context.Context, peer route.Vertex, localSat, pushSat btcutil.Amount, _ bool) (*wire.OutPoint, error)
- func (m *MockLightning) PayInvoice(_ context.Context, invoice string, _ btcutil.Amount, _ *uint64) chan lndclient.PaymentResult
- func (m *MockLightning) PendingChannels(context.Context) (*lndclient.PendingChannels, error)
- func (m *MockLightning) SubscribeChannelBackups(ctx context.Context) (<-chan lnrpc.ChanBackupSnapshot, <-chan error, error)
- func (m *MockLightning) SubscribeChannelEvents(ctx context.Context) (<-chan *lndclient.ChannelEventUpdate, <-chan error, error)
- func (m *MockLightning) UpdateChanPolicy(ctx context.Context, req lndclient.PolicyUpdateRequest, ...) error
- func (m *MockLightning) WaitForFinished()
- type MockSigner
- func (s *MockSigner) ComputeInputScript(context.Context, *wire.MsgTx, []*lndclient.SignDescriptor) ([]*input.Script, error)
- func (s *MockSigner) DeriveSharedKey(context.Context, *btcec.PublicKey, *keychain.KeyLocator) ([32]byte, error)
- func (s *MockSigner) SignMessage(context.Context, []byte, keychain.KeyLocator) ([]byte, error)
- func (s *MockSigner) SignOutputRaw(_ context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor) ([][]byte, error)
- func (s *MockSigner) VerifyMessage(_ context.Context, msg, sig []byte, _ [33]byte) (bool, error)
- type MockSignerClient
- func (m *MockSignerClient) ComputeInputScript(ctx context.Context, tx *wire.MsgTx, ...) ([]*input.Script, error)
- func (m *MockSignerClient) DeriveSharedKey(ctx context.Context, ephemeralPubKey *btcec.PublicKey, ...) ([32]byte, error)
- func (m *MockSignerClient) EXPECT() *MockSignerClientMockRecorder
- func (m *MockSignerClient) SignMessage(ctx context.Context, msg []byte, locator keychain.KeyLocator) ([]byte, error)
- func (m *MockSignerClient) SignOutputRaw(ctx context.Context, tx *wire.MsgTx, ...) ([][]byte, error)
- func (m *MockSignerClient) VerifyMessage(ctx context.Context, msg, sig []byte, pubkey [33]byte) (bool, error)
- type MockSignerClientMockRecorder
- func (mr *MockSignerClientMockRecorder) ComputeInputScript(ctx, tx, signDescriptors interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) DeriveSharedKey(ctx, ephemeralPubKey, keyLocator interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) SignMessage(ctx, msg, locator interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) SignOutputRaw(ctx, tx, signDescriptors interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) VerifyMessage(ctx, msg, sig, pubkey interface{}) *gomock.Call
- type MockWalletKit
- func (m *MockWalletKit) AddTx(tx *wire.MsgTx)
- func (m *MockWalletKit) BumpFee(context.Context, wire.OutPoint, chainfee.SatPerKWeight) error
- func (m *MockWalletKit) DeriveKey(_ context.Context, in *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKit) DeriveNextKey(_ context.Context, family int32) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKit) EstimateFee(_ context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
- func (m *MockWalletKit) LeaseOutput(context.Context, wtxmgr.LockID, wire.OutPoint, time.Duration) (time.Time, error)
- func (m *MockWalletKit) ListAccounts(context.Context, string, walletrpc.AddressType) ([]*walletrpc.Account, error)
- func (m *MockWalletKit) ListSweeps(_ context.Context) ([]string, error)
- func (m *MockWalletKit) ListUnspent(context.Context, int32, int32) ([]*lnwallet.Utxo, error)
- func (m *MockWalletKit) NextAddr(context.Context) (btcutil.Address, error)
- func (m *MockWalletKit) PublishTransaction(_ context.Context, tx *wire.MsgTx, label string) error
- func (m *MockWalletKit) ReleaseOutput(context.Context, wtxmgr.LockID, wire.OutPoint) error
- func (m *MockWalletKit) SendOutputs(_ context.Context, outputs []*wire.TxOut, _ chainfee.SatPerKWeight, ...) (*wire.MsgTx, error)
- type MockWalletKitClient
- func (m *MockWalletKitClient) BumpFee(arg0 context.Context, arg1 wire.OutPoint, arg2 chainfee.SatPerKWeight) error
- func (m *MockWalletKitClient) DeriveKey(ctx context.Context, locator *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKitClient) DeriveNextKey(ctx context.Context, family int32) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKitClient) EXPECT() *MockWalletKitClientMockRecorder
- func (m *MockWalletKitClient) EstimateFee(ctx context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
- func (m *MockWalletKitClient) LeaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint, ...) (time.Time, error)
- func (m *MockWalletKitClient) ListAccounts(ctx context.Context, name string, addressType walletrpc.AddressType) ([]*walletrpc.Account, error)
- func (m *MockWalletKitClient) ListSweeps(ctx context.Context) ([]string, error)
- func (m *MockWalletKitClient) ListUnspent(ctx context.Context, minConfs, maxConfs int32) ([]*lnwallet.Utxo, error)
- func (m *MockWalletKitClient) NextAddr(ctx context.Context) (btcutil.Address, error)
- func (m *MockWalletKitClient) PublishTransaction(ctx context.Context, tx *wire.MsgTx, label string) error
- func (m *MockWalletKitClient) ReleaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint) error
- func (m *MockWalletKitClient) SendOutputs(ctx context.Context, outputs []*wire.TxOut, feeRate chainfee.SatPerKWeight, ...) (*wire.MsgTx, error)
- type MockWalletKitClientMockRecorder
- func (mr *MockWalletKitClientMockRecorder) BumpFee(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) DeriveKey(ctx, locator interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) DeriveNextKey(ctx, family interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) EstimateFee(ctx, confTarget interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) LeaseOutput(ctx, lockID, op, leaseTime interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListAccounts(ctx, name, addressType interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListSweeps(ctx interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListUnspent(ctx, minConfs, maxConfs interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) NextAddr(ctx interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) PublishTransaction(ctx, tx, label interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ReleaseOutput(ctx, lockID, op interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) SendOutputs(ctx, outputs, feeRate, label interface{}) *gomock.Call
- type PaymentChannelMessage
- type ScbKeyRing
- type SignOutputRawRequest
- type SignerClient
- type WalletKitClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockLightning ¶
type MockLightning struct {
lndclient.LightningClient
SendPaymentChannel chan PaymentChannelMessage
NodePubkey string
ChainParams *chaincfg.Params
ScbKeyRing *ScbKeyRing
Transactions []lndclient.Transaction
Sweeps []string
// Invoices is a set of invoices that have been created by the mock,
// keyed by hash string.
Invoices map[lntypes.Hash]*lndclient.Invoice
Channels []lndclient.ChannelInfo
ChannelsClosed []lndclient.ClosedChannel
ChannelsPending []lndclient.PendingChannel
ForwardingEvents []lndclient.ForwardingEvent
Payments []lndclient.Payment
// contains filtered or unexported fields
}
func NewMockLightning ¶
func NewMockLightning() *MockLightning
func (*MockLightning) AddInvoice ¶
func (m *MockLightning) AddInvoice(_ context.Context, in *invoicesrpc.AddInvoiceData) (lntypes.Hash, string, error)
func (*MockLightning) ChannelBackup ¶
ChannelBackup retrieves the backup for a particular channel. The backup is returned as an encrypted chanbackup.Single payload.
func (*MockLightning) ChannelBackups ¶
func (m *MockLightning) ChannelBackups(context.Context) ([]byte, error)
ChannelBackups retrieves backups for all existing pending open and open channels. The backups are returned as an encrypted chanbackup.Multi payload.
func (*MockLightning) CloseChannel ¶
func (*MockLightning) ClosedChannels ¶
func (m *MockLightning) ClosedChannels( context.Context) ([]lndclient.ClosedChannel, error)
ClosedChannels returns a list of our closed channels.
func (*MockLightning) ConfirmedWalletBalance ¶
func (*MockLightning) Connections ¶
func (m *MockLightning) Connections() map[route.Vertex]string
func (*MockLightning) DecodePaymentRequest ¶
func (m *MockLightning) DecodePaymentRequest(context.Context, string) (*lndclient.PaymentRequest, error)
func (*MockLightning) EstimateFeeToP2WSH ¶
func (*MockLightning) ForwardingHistory ¶
func (m *MockLightning) ForwardingHistory(context.Context, lndclient.ForwardingHistoryRequest) (*lndclient.ForwardingHistoryResponse, error)
ForwardingHistory returns the mock's set of forwarding events.
func (*MockLightning) GetChanInfo ¶
func (m *MockLightning) GetChanInfo(ctx context.Context, cid uint64) (*lndclient.ChannelEdge, error)
func (*MockLightning) ListChannels ¶
func (m *MockLightning) ListChannels(context.Context, bool, bool) ([]lndclient.ChannelInfo, error)
ListChannels retrieves all channels of the backing lnd node.
func (*MockLightning) ListInvoices ¶
func (m *MockLightning) ListInvoices(context.Context, lndclient.ListInvoicesRequest) (*lndclient.ListInvoicesResponse, error)
ListInvoices returns our mock's invoices.
func (*MockLightning) ListPayments ¶
func (m *MockLightning) ListPayments(context.Context, lndclient.ListPaymentsRequest) (*lndclient.ListPaymentsResponse, error)
ListPayments makes a paginated call to our list payments endpoint.
func (*MockLightning) ListTransactions ¶
func (m *MockLightning) ListTransactions(context.Context, int32, int32) ([]lndclient.Transaction, error)
ListTransactions returns all known transactions of the backing lnd node.
func (*MockLightning) LookupInvoice ¶
func (m *MockLightning) LookupInvoice(_ context.Context, hash lntypes.Hash) (*lndclient.Invoice, error)
LookupInvoice looks up an invoice in the mock's set of stored invoices. If it is not found, this call will fail. Note that these invoices should be settled using settleInvoice to have a preimage, settled state and settled date set.
func (*MockLightning) OpenChannel ¶
func (*MockLightning) PayInvoice ¶
func (m *MockLightning) PayInvoice(_ context.Context, invoice string, _ btcutil.Amount, _ *uint64) chan lndclient.PaymentResult
PayInvoice pays an invoice.
func (*MockLightning) PendingChannels ¶
func (m *MockLightning) PendingChannels( context.Context) (*lndclient.PendingChannels, error)
func (*MockLightning) SubscribeChannelBackups ¶
func (m *MockLightning) SubscribeChannelBackups(ctx context.Context, ) (<-chan lnrpc.ChanBackupSnapshot, <-chan error, error)
func (*MockLightning) SubscribeChannelEvents ¶
func (m *MockLightning) SubscribeChannelEvents(ctx context.Context) ( <-chan *lndclient.ChannelEventUpdate, <-chan error, error)
func (*MockLightning) UpdateChanPolicy ¶
func (m *MockLightning) UpdateChanPolicy(ctx context.Context, req lndclient.PolicyUpdateRequest, chanPoint *wire.OutPoint) error
func (*MockLightning) WaitForFinished ¶
func (m *MockLightning) WaitForFinished()
type MockSigner ¶
type MockSigner struct {
SignOutputRawChannel chan SignOutputRawRequest
Height int32
NodePubkey string
Signature []byte
SignatureMsg string
}
func NewMockSigner ¶
func NewMockSigner() *MockSigner
func (*MockSigner) ComputeInputScript ¶
func (s *MockSigner) ComputeInputScript(context.Context, *wire.MsgTx, []*lndclient.SignDescriptor) ([]*input.Script, error)
func (*MockSigner) DeriveSharedKey ¶
func (s *MockSigner) DeriveSharedKey(context.Context, *btcec.PublicKey, *keychain.KeyLocator) ([32]byte, error)
func (*MockSigner) SignMessage ¶
func (s *MockSigner) SignMessage(context.Context, []byte, keychain.KeyLocator) ([]byte, error)
func (*MockSigner) SignOutputRaw ¶
func (s *MockSigner) SignOutputRaw(_ context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor) ([][]byte, error)
func (*MockSigner) VerifyMessage ¶
type MockSignerClient ¶
type MockSignerClient struct {
// contains filtered or unexported fields
}
MockSignerClient is a mock of SignerClient interface.
func NewMockSignerClient ¶
func NewMockSignerClient(ctrl *gomock.Controller) *MockSignerClient
NewMockSignerClient creates a new mock instance.
func (*MockSignerClient) ComputeInputScript ¶
func (m *MockSignerClient) ComputeInputScript(ctx context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor) ([]*input.Script, error)
ComputeInputScript mocks base method.
func (*MockSignerClient) DeriveSharedKey ¶
func (m *MockSignerClient) DeriveSharedKey(ctx context.Context, ephemeralPubKey *btcec.PublicKey, keyLocator *keychain.KeyLocator) ([32]byte, error)
DeriveSharedKey mocks base method.
func (*MockSignerClient) EXPECT ¶
func (m *MockSignerClient) EXPECT() *MockSignerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSignerClient) SignMessage ¶
func (m *MockSignerClient) SignMessage(ctx context.Context, msg []byte, locator keychain.KeyLocator) ([]byte, error)
SignMessage mocks base method.
func (*MockSignerClient) SignOutputRaw ¶
func (m *MockSignerClient) SignOutputRaw(ctx context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor) ([][]byte, error)
SignOutputRaw mocks base method.
func (*MockSignerClient) VerifyMessage ¶
func (m *MockSignerClient) VerifyMessage(ctx context.Context, msg, sig []byte, pubkey [33]byte) (bool, error)
VerifyMessage mocks base method.
type MockSignerClientMockRecorder ¶
type MockSignerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSignerClientMockRecorder is the mock recorder for MockSignerClient.
func (*MockSignerClientMockRecorder) ComputeInputScript ¶
func (mr *MockSignerClientMockRecorder) ComputeInputScript(ctx, tx, signDescriptors interface{}) *gomock.Call
ComputeInputScript indicates an expected call of ComputeInputScript.
func (*MockSignerClientMockRecorder) DeriveSharedKey ¶
func (mr *MockSignerClientMockRecorder) DeriveSharedKey(ctx, ephemeralPubKey, keyLocator interface{}) *gomock.Call
DeriveSharedKey indicates an expected call of DeriveSharedKey.
func (*MockSignerClientMockRecorder) SignMessage ¶
func (mr *MockSignerClientMockRecorder) SignMessage(ctx, msg, locator interface{}) *gomock.Call
SignMessage indicates an expected call of SignMessage.
func (*MockSignerClientMockRecorder) SignOutputRaw ¶
func (mr *MockSignerClientMockRecorder) SignOutputRaw(ctx, tx, signDescriptors interface{}) *gomock.Call
SignOutputRaw indicates an expected call of SignOutputRaw.
func (*MockSignerClientMockRecorder) VerifyMessage ¶
func (mr *MockSignerClientMockRecorder) VerifyMessage(ctx, msg, sig, pubkey interface{}) *gomock.Call
VerifyMessage indicates an expected call of VerifyMessage.
type MockWalletKit ¶
type MockWalletKit struct {
TxPublishChannel chan *wire.MsgTx
SendOutputsChannel chan wire.MsgTx
Transactions []*wire.MsgTx
Sweeps []string
// contains filtered or unexported fields
}
func NewMockWalletKit ¶
func NewMockWalletKit() *MockWalletKit
func (*MockWalletKit) AddTx ¶
func (m *MockWalletKit) AddTx(tx *wire.MsgTx)
AddRelevantTx marks the given transaction as relevant.
func (*MockWalletKit) BumpFee ¶
func (m *MockWalletKit) BumpFee(context.Context, wire.OutPoint, chainfee.SatPerKWeight) error
func (*MockWalletKit) DeriveKey ¶
func (m *MockWalletKit) DeriveKey(_ context.Context, in *keychain.KeyLocator) ( *keychain.KeyDescriptor, error)
func (*MockWalletKit) DeriveNextKey ¶
func (m *MockWalletKit) DeriveNextKey(_ context.Context, family int32) ( *keychain.KeyDescriptor, error)
func (*MockWalletKit) EstimateFee ¶
func (m *MockWalletKit) EstimateFee(_ context.Context, confTarget int32) ( chainfee.SatPerKWeight, error)
func (*MockWalletKit) LeaseOutput ¶
func (*MockWalletKit) ListAccounts ¶
func (m *MockWalletKit) ListAccounts(context.Context, string, walletrpc.AddressType) ([]*walletrpc.Account, error)
ListAccounts retrieves all accounts belonging to the wallet by default. Optional name and addressType can be provided to filter through all of the wallet accounts and return only those matching.
func (*MockWalletKit) ListSweeps ¶
func (m *MockWalletKit) ListSweeps(_ context.Context) ([]string, error)
ListSweeps returns a list of the sweep transaction ids known to our node.
func (*MockWalletKit) ListUnspent ¶
func (*MockWalletKit) PublishTransaction ¶
func (*MockWalletKit) ReleaseOutput ¶
func (*MockWalletKit) SendOutputs ¶
type MockWalletKitClient ¶
type MockWalletKitClient struct {
// contains filtered or unexported fields
}
MockWalletKitClient is a mock of WalletKitClient interface.
func NewMockWalletKitClient ¶
func NewMockWalletKitClient(ctrl *gomock.Controller) *MockWalletKitClient
NewMockWalletKitClient creates a new mock instance.
func (*MockWalletKitClient) BumpFee ¶
func (m *MockWalletKitClient) BumpFee(arg0 context.Context, arg1 wire.OutPoint, arg2 chainfee.SatPerKWeight) error
BumpFee mocks base method.
func (*MockWalletKitClient) DeriveKey ¶
func (m *MockWalletKitClient) DeriveKey(ctx context.Context, locator *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
DeriveKey mocks base method.
func (*MockWalletKitClient) DeriveNextKey ¶
func (m *MockWalletKitClient) DeriveNextKey(ctx context.Context, family int32) (*keychain.KeyDescriptor, error)
DeriveNextKey mocks base method.
func (*MockWalletKitClient) EXPECT ¶
func (m *MockWalletKitClient) EXPECT() *MockWalletKitClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWalletKitClient) EstimateFee ¶
func (m *MockWalletKitClient) EstimateFee(ctx context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
EstimateFee mocks base method.
func (*MockWalletKitClient) LeaseOutput ¶
func (m *MockWalletKitClient) LeaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint, leaseTime time.Duration) (time.Time, error)
LeaseOutput mocks base method.
func (*MockWalletKitClient) ListAccounts ¶
func (m *MockWalletKitClient) ListAccounts(ctx context.Context, name string, addressType walletrpc.AddressType) ([]*walletrpc.Account, error)
ListAccounts mocks base method.
func (*MockWalletKitClient) ListSweeps ¶
func (m *MockWalletKitClient) ListSweeps(ctx context.Context) ([]string, error)
ListSweeps mocks base method.
func (*MockWalletKitClient) ListUnspent ¶
func (m *MockWalletKitClient) ListUnspent(ctx context.Context, minConfs, maxConfs int32) ([]*lnwallet.Utxo, error)
ListUnspent mocks base method.
func (*MockWalletKitClient) PublishTransaction ¶
func (m *MockWalletKitClient) PublishTransaction(ctx context.Context, tx *wire.MsgTx, label string) error
PublishTransaction mocks base method.
func (*MockWalletKitClient) ReleaseOutput ¶
func (m *MockWalletKitClient) ReleaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint) error
ReleaseOutput mocks base method.
func (*MockWalletKitClient) SendOutputs ¶
func (m *MockWalletKitClient) SendOutputs(ctx context.Context, outputs []*wire.TxOut, feeRate chainfee.SatPerKWeight, label string) (*wire.MsgTx, error)
SendOutputs mocks base method.
type MockWalletKitClientMockRecorder ¶
type MockWalletKitClientMockRecorder struct {
// contains filtered or unexported fields
}
MockWalletKitClientMockRecorder is the mock recorder for MockWalletKitClient.
func (*MockWalletKitClientMockRecorder) BumpFee ¶
func (mr *MockWalletKitClientMockRecorder) BumpFee(arg0, arg1, arg2 interface{}) *gomock.Call
BumpFee indicates an expected call of BumpFee.
func (*MockWalletKitClientMockRecorder) DeriveKey ¶
func (mr *MockWalletKitClientMockRecorder) DeriveKey(ctx, locator interface{}) *gomock.Call
DeriveKey indicates an expected call of DeriveKey.
func (*MockWalletKitClientMockRecorder) DeriveNextKey ¶
func (mr *MockWalletKitClientMockRecorder) DeriveNextKey(ctx, family interface{}) *gomock.Call
DeriveNextKey indicates an expected call of DeriveNextKey.
func (*MockWalletKitClientMockRecorder) EstimateFee ¶
func (mr *MockWalletKitClientMockRecorder) EstimateFee(ctx, confTarget interface{}) *gomock.Call
EstimateFee indicates an expected call of EstimateFee.
func (*MockWalletKitClientMockRecorder) LeaseOutput ¶
func (mr *MockWalletKitClientMockRecorder) LeaseOutput(ctx, lockID, op, leaseTime interface{}) *gomock.Call
LeaseOutput indicates an expected call of LeaseOutput.
func (*MockWalletKitClientMockRecorder) ListAccounts ¶
func (mr *MockWalletKitClientMockRecorder) ListAccounts(ctx, name, addressType interface{}) *gomock.Call
ListAccounts indicates an expected call of ListAccounts.
func (*MockWalletKitClientMockRecorder) ListSweeps ¶
func (mr *MockWalletKitClientMockRecorder) ListSweeps(ctx interface{}) *gomock.Call
ListSweeps indicates an expected call of ListSweeps.
func (*MockWalletKitClientMockRecorder) ListUnspent ¶
func (mr *MockWalletKitClientMockRecorder) ListUnspent(ctx, minConfs, maxConfs interface{}) *gomock.Call
ListUnspent indicates an expected call of ListUnspent.
func (*MockWalletKitClientMockRecorder) NextAddr ¶
func (mr *MockWalletKitClientMockRecorder) NextAddr(ctx interface{}) *gomock.Call
NextAddr indicates an expected call of NextAddr.
func (*MockWalletKitClientMockRecorder) PublishTransaction ¶
func (mr *MockWalletKitClientMockRecorder) PublishTransaction(ctx, tx, label interface{}) *gomock.Call
PublishTransaction indicates an expected call of PublishTransaction.
func (*MockWalletKitClientMockRecorder) ReleaseOutput ¶
func (mr *MockWalletKitClientMockRecorder) ReleaseOutput(ctx, lockID, op interface{}) *gomock.Call
ReleaseOutput indicates an expected call of ReleaseOutput.
func (*MockWalletKitClientMockRecorder) SendOutputs ¶
func (mr *MockWalletKitClientMockRecorder) SendOutputs(ctx, outputs, feeRate, label interface{}) *gomock.Call
SendOutputs indicates an expected call of SendOutputs.
type PaymentChannelMessage ¶
type PaymentChannelMessage struct {
PaymentRequest string
Done chan lndclient.PaymentResult
}
PaymentChannelMessage is the data that passed through SendPaymentChannel.
type ScbKeyRing ¶
type ScbKeyRing struct {
EncryptionKey keychain.KeyDescriptor
}
func (*ScbKeyRing) DeriveKey ¶
func (k *ScbKeyRing) DeriveKey( keychain.KeyLocator) (keychain.KeyDescriptor, error)
func (*ScbKeyRing) DeriveNextKey ¶
func (k *ScbKeyRing) DeriveNextKey( keychain.KeyFamily) (keychain.KeyDescriptor, error)
type SignOutputRawRequest ¶
type SignOutputRawRequest struct {
Tx *wire.MsgTx
SignDescriptors []*lndclient.SignDescriptor
}
SignOutputRawRequest contains input data for a tx signing request.
type SignerClient ¶
type SignerClient interface {
lndclient.SignerClient
}
type WalletKitClient ¶
type WalletKitClient interface {
lndclient.WalletKitClient
}