From effbdeeee0086dd83f24fadab64ff06f84e46c45 Mon Sep 17 00:00:00 2001 From: lazar Date: Thu, 15 Aug 2024 18:06:31 +0200 Subject: [PATCH] regen mocks --- btcclient/client_wallet.go | 4 ---- btcclient/interface.go | 1 - testutil/mocks/btcclient.go | 31 +++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/btcclient/client_wallet.go b/btcclient/client_wallet.go index 1a341181..fe52e740 100644 --- a/btcclient/client_wallet.go +++ b/btcclient/client_wallet.go @@ -138,10 +138,6 @@ func CalculateTxFee(feeRateAmount btcutil.Amount, size uint64) (uint64, error) { return uint64(feeRateAmount.MulF64(float64(size) / 1024)), nil } -func (c *Client) SignRawTransactionWithWallet2(tx *wire.MsgTx, inputs []btcjson.RawTxWitnessInput) (*wire.MsgTx, bool, error) { - return c.Client.SignRawTransactionWithWallet2(tx, inputs) -} - func (c *Client) FundRawTransaction(tx *wire.MsgTx, opts btcjson.FundRawTransactionOpts, isWitness *bool) (*btcjson.FundRawTransactionResult, error) { return c.Client.FundRawTransaction(tx, opts, isWitness) } diff --git a/btcclient/interface.go b/btcclient/interface.go index c5fd9c17..d3021412 100644 --- a/btcclient/interface.go +++ b/btcclient/interface.go @@ -39,7 +39,6 @@ type BTCWallet interface { WalletPassphrase(passphrase string, timeoutSecs int64) error DumpPrivKey(address btcutil.Address) (*btcutil.WIF, error) GetHighUTXOAndSum() (*btcjson.ListUnspentResult, float64, error) - SignRawTransactionWithWallet2(tx *wire.MsgTx, inputs []btcjson.RawTxWitnessInput) (*wire.MsgTx, bool, error) FundRawTransaction(tx *wire.MsgTx, opts btcjson.FundRawTransactionOpts, isWitness *bool) (*btcjson.FundRawTransactionResult, error) SignRawTransactionWithWallet(tx *wire.MsgTx) (*wire.MsgTx, bool, error) } diff --git a/testutil/mocks/btcclient.go b/testutil/mocks/btcclient.go index 8023d652..1bbdb6b9 100644 --- a/testutil/mocks/btcclient.go +++ b/testutil/mocks/btcclient.go @@ -251,6 +251,21 @@ func (mr *MockBTCWalletMockRecorder) DumpPrivKey(address interface{}) *gomock.Ca return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DumpPrivKey", reflect.TypeOf((*MockBTCWallet)(nil).DumpPrivKey), address) } +// FundRawTransaction mocks base method. +func (m *MockBTCWallet) FundRawTransaction(tx *wire.MsgTx, opts btcjson.FundRawTransactionOpts, isWitness *bool) (*btcjson.FundRawTransactionResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FundRawTransaction", tx, opts, isWitness) + ret0, _ := ret[0].(*btcjson.FundRawTransactionResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// FundRawTransaction indicates an expected call of FundRawTransaction. +func (mr *MockBTCWalletMockRecorder) FundRawTransaction(tx, opts, isWitness interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FundRawTransaction", reflect.TypeOf((*MockBTCWallet)(nil).FundRawTransaction), tx, opts, isWitness) +} + // GetBTCConfig mocks base method. func (m *MockBTCWallet) GetBTCConfig() *config.BTCConfig { m.ctrl.T.Helper() @@ -383,6 +398,22 @@ func (mr *MockBTCWalletMockRecorder) SendRawTransaction(tx, allowHighFees interf return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRawTransaction", reflect.TypeOf((*MockBTCWallet)(nil).SendRawTransaction), tx, allowHighFees) } +// SignRawTransactionWithWallet mocks base method. +func (m *MockBTCWallet) SignRawTransactionWithWallet(tx *wire.MsgTx) (*wire.MsgTx, bool, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignRawTransactionWithWallet", tx) + ret0, _ := ret[0].(*wire.MsgTx) + ret1, _ := ret[1].(bool) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 +} + +// SignRawTransactionWithWallet indicates an expected call of SignRawTransactionWithWallet. +func (mr *MockBTCWalletMockRecorder) SignRawTransactionWithWallet(tx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignRawTransactionWithWallet", reflect.TypeOf((*MockBTCWallet)(nil).SignRawTransactionWithWallet), tx) +} + // Stop mocks base method. func (m *MockBTCWallet) Stop() { m.ctrl.T.Helper()