Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockConfidentialTxApi
- func (m *MockConfidentialTxApi) Add(tx *types.ConfidentialTx, txinList []*types.InputConfidentialTxIn, ...) error
- func (m *MockConfidentialTxApi) AddPubkeySign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, ...) error
- func (m *MockConfidentialTxApi) AddPubkeySignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) error
- func (m *MockConfidentialTxApi) AddScriptSign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, ...) error
- func (m *MockConfidentialTxApi) AddScriptSignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) error
- func (m *MockConfidentialTxApi) AddTxMultisigSign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, ...) error
- func (m *MockConfidentialTxApi) AddTxMultisigSignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) error
- func (m *MockConfidentialTxApi) Blind(tx *types.ConfidentialTx, txinList []*types.BlindInputData, ...) error
- func (m *MockConfidentialTxApi) Create(version, locktime uint32, txinList []*types.InputConfidentialTxIn, ...) (*types.ConfidentialTx, error)
- func (m *MockConfidentialTxApi) EXPECT() *MockConfidentialTxApiMockRecorder
- func (m *MockConfidentialTxApi) FilterUtxoByTxInList(tx *types.ConfidentialTx, utxoList []*types.ElementsUtxoData) ([]*types.ElementsUtxoData, error)
- func (m *MockConfidentialTxApi) GetAll(tx *types.ConfidentialTx, hasWitness bool) (*types.TransactionData, []*types.ConfidentialTxIn, []*types.ConfidentialTxOut, ...)
- func (m *MockConfidentialTxApi) GetAllWithAddress(tx *types.ConfidentialTx, hasWitness bool) (*types.TransactionData, []*types.ConfidentialTxIn, []*types.ConfidentialTxOut, ...)
- func (m *MockConfidentialTxApi) GetCommitment(amount int64, amountBlindFactor, assetBlindFactor, asset string) (string, string, error)
- func (m *MockConfidentialTxApi) GetPegoutAddress(tx *types.ConfidentialTx, index uint32) (*types.Address, bool, error)
- func (m *MockConfidentialTxApi) GetSighash(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) (*types.ByteData, error)
- func (m *MockConfidentialTxApi) GetTxIn(txHex string, outpoint *types.OutPoint) (*types.ConfidentialTxIn, error)
- func (m *MockConfidentialTxApi) GetTxid(tx *types.ConfidentialTx) string
- func (m *MockConfidentialTxApi) SignWithPrivkey(tx *types.Transaction, outpoint *types.OutPoint, privkey *types.Privkey, ...) error
- func (m *MockConfidentialTxApi) UnblindByTxOut(txout *types.ConfidentialTxOut, blindingkey *types.Privkey) (*types.UnblindData, error)
- func (m *MockConfidentialTxApi) UnblindTxOut(tx *types.ConfidentialTx, index uint32, blindingKey *types.Privkey) (*types.ElementsUtxoData, error)
- func (m *MockConfidentialTxApi) VerifyEcSignatureByUtxo(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) (bool, error)
- func (m *MockConfidentialTxApi) VerifySign(tx *types.ConfidentialTx, outpoint *types.OutPoint, ...) (bool, string, error)
- type MockConfidentialTxApiMockRecorder
- func (mr *MockConfidentialTxApiMockRecorder) Add(tx, txinList, txoutList, pegoutAddressList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddPubkeySign(tx, outpoint, hashType, pubkey, signature interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddPubkeySignByDescriptor(tx, outpoint, outputDescriptor, signature interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddScriptSign(tx, outpoint, hashType, signList, redeemScript interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddScriptSignByDescriptor(tx, outpoint, outputDescriptor, signList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddTxMultisigSign(tx, outpoint, hashType, signList, redeemScript interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) AddTxMultisigSignByDescriptor(tx, outpoint, outputDescriptor, signList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) Blind(tx, txinList, txoutList, option interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) Create(version, locktime, txinList, txoutList, pegoutAddressList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) FilterUtxoByTxInList(tx, utxoList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetAll(tx, hasWitness interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetAllWithAddress(tx, hasWitness interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetCommitment(amount, amountBlindFactor, assetBlindFactor, asset interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetPegoutAddress(tx, index interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetSighash(tx, outpoint, sighashType, utxoList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetTxIn(txHex, outpoint interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) GetTxid(tx interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) SignWithPrivkey(tx, outpoint, privkey, sighashType, txinUtxoList interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) UnblindByTxOut(txout, blindingkey interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) UnblindTxOut(tx, index, blindingKey interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) VerifyEcSignatureByUtxo(tx, outpoint, utxo, signature interface{}) *gomock.Call
- func (mr *MockConfidentialTxApiMockRecorder) VerifySign(tx, outpoint, txinUtxoList interface{}) *gomock.Call
- type MockLedgerLiquidLibApi
- type MockLedgerLiquidLibApiMockRecorder
- type MockTransactionApi
- func (m *MockTransactionApi) Add(tx *types.Transaction, txinList []*types.InputTxIn, ...) error
- func (m *MockTransactionApi) AddPubkeySign(tx *types.Transaction, outpoint *types.OutPoint, hashType types.HashType, ...) error
- func (m *MockTransactionApi) AddPubkeySignByDescriptor(tx *types.Transaction, outpoint *types.OutPoint, ...) error
- func (m *MockTransactionApi) Create(version, locktime uint32, txinList []*types.InputTxIn, ...) (*types.Transaction, error)
- func (m *MockTransactionApi) EXPECT() *MockTransactionApiMockRecorder
- func (m *MockTransactionApi) GetTxOut(tx *types.Transaction, vout uint32) (*types.TxOut, error)
- func (m *MockTransactionApi) GetTxid(tx *types.Transaction) string
- func (m *MockTransactionApi) SignWithPrivkey(tx *types.Transaction, outpoint *types.OutPoint, privkey *types.Privkey, ...) error
- func (m *MockTransactionApi) VerifySign(tx *types.Transaction, outpoint *types.OutPoint, amount int64, ...) (bool, string, error)
- type MockTransactionApiMockRecorder
- func (mr *MockTransactionApiMockRecorder) Add(tx, txinList, txoutList interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) AddPubkeySign(tx, outpoint, hashType, pubkey, signature interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) AddPubkeySignByDescriptor(tx, outpoint, outputDescriptor, signature interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) Create(version, locktime, txinList, txoutList interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) GetTxOut(tx, vout interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) GetTxid(tx interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) SignWithPrivkey(tx, outpoint, privkey, sighashType, utxoList interface{}) *gomock.Call
- func (mr *MockTransactionApiMockRecorder) VerifySign(tx, outpoint, amount, txinUtxoList interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfidentialTxApi ¶
type MockConfidentialTxApi struct {
// contains filtered or unexported fields
}
MockConfidentialTxApi is a mock of ConfidentialTxApi interface.
func NewMockConfidentialTxApi ¶
func NewMockConfidentialTxApi(ctrl *gomock.Controller) *MockConfidentialTxApi
NewMockConfidentialTxApi creates a new mock instance.
func (*MockConfidentialTxApi) Add ¶
func (m *MockConfidentialTxApi) Add(tx *types.ConfidentialTx, txinList []*types.InputConfidentialTxIn, txoutList []*types.InputConfidentialTxOut, pegoutAddressList *[]string) error
Add mocks base method.
func (*MockConfidentialTxApi) AddPubkeySign ¶
func (m *MockConfidentialTxApi) AddPubkeySign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, pubkey *types.Pubkey, signature string) error
AddPubkeySign mocks base method.
func (*MockConfidentialTxApi) AddPubkeySignByDescriptor ¶
func (m *MockConfidentialTxApi) AddPubkeySignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, outputDescriptor *types.Descriptor, signature string) error
AddPubkeySignByDescriptor mocks base method.
func (*MockConfidentialTxApi) AddScriptSign ¶
func (m *MockConfidentialTxApi) AddScriptSign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, signList []*types.SignParameter, redeemScript *types.Script) error
AddScriptSign mocks base method.
func (*MockConfidentialTxApi) AddScriptSignByDescriptor ¶
func (m *MockConfidentialTxApi) AddScriptSignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, outputDescriptor *types.Descriptor, signList []*types.SignParameter) error
AddScriptSignByDescriptor mocks base method.
func (*MockConfidentialTxApi) AddTxMultisigSign ¶
func (m *MockConfidentialTxApi) AddTxMultisigSign(tx *types.ConfidentialTx, outpoint *types.OutPoint, hashType types.HashType, signList []*types.SignParameter, redeemScript *types.Script) error
AddTxMultisigSign mocks base method.
func (*MockConfidentialTxApi) AddTxMultisigSignByDescriptor ¶
func (m *MockConfidentialTxApi) AddTxMultisigSignByDescriptor(tx *types.ConfidentialTx, outpoint *types.OutPoint, outputDescriptor *types.Descriptor, signList []*types.SignParameter) error
AddTxMultisigSignByDescriptor mocks base method.
func (*MockConfidentialTxApi) Blind ¶
func (m *MockConfidentialTxApi) Blind(tx *types.ConfidentialTx, txinList []*types.BlindInputData, txoutList []*types.BlindOutputData, option *types.BlindTxOption) error
Blind mocks base method.
func (*MockConfidentialTxApi) Create ¶
func (m *MockConfidentialTxApi) Create(version, locktime uint32, txinList []*types.InputConfidentialTxIn, txoutList []*types.InputConfidentialTxOut, pegoutAddressList *[]string) (*types.ConfidentialTx, error)
Create mocks base method.
func (*MockConfidentialTxApi) EXPECT ¶
func (m *MockConfidentialTxApi) EXPECT() *MockConfidentialTxApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfidentialTxApi) FilterUtxoByTxInList ¶
func (m *MockConfidentialTxApi) FilterUtxoByTxInList(tx *types.ConfidentialTx, utxoList []*types.ElementsUtxoData) ([]*types.ElementsUtxoData, error)
FilterUtxoByTxInList mocks base method.
func (*MockConfidentialTxApi) GetAll ¶
func (m *MockConfidentialTxApi) GetAll(tx *types.ConfidentialTx, hasWitness bool) (*types.TransactionData, []*types.ConfidentialTxIn, []*types.ConfidentialTxOut, error)
GetAll mocks base method.
func (*MockConfidentialTxApi) GetAllWithAddress ¶
func (m *MockConfidentialTxApi) GetAllWithAddress(tx *types.ConfidentialTx, hasWitness bool) (*types.TransactionData, []*types.ConfidentialTxIn, []*types.ConfidentialTxOut, error)
GetAllWithAddress mocks base method.
func (*MockConfidentialTxApi) GetCommitment ¶
func (m *MockConfidentialTxApi) GetCommitment(amount int64, amountBlindFactor, assetBlindFactor, asset string) (string, string, error)
GetCommitment mocks base method.
func (*MockConfidentialTxApi) GetPegoutAddress ¶
func (m *MockConfidentialTxApi) GetPegoutAddress(tx *types.ConfidentialTx, index uint32) (*types.Address, bool, error)
GetPegoutAddress mocks base method.
func (*MockConfidentialTxApi) GetSighash ¶
func (m *MockConfidentialTxApi) GetSighash(tx *types.ConfidentialTx, outpoint *types.OutPoint, sighashType types.SigHashType, utxoList []*types.ElementsUtxoData) (*types.ByteData, error)
GetSighash mocks base method.
func (*MockConfidentialTxApi) GetTxIn ¶
func (m *MockConfidentialTxApi) GetTxIn(txHex string, outpoint *types.OutPoint) (*types.ConfidentialTxIn, error)
GetTxIn mocks base method.
func (*MockConfidentialTxApi) GetTxid ¶
func (m *MockConfidentialTxApi) GetTxid(tx *types.ConfidentialTx) string
GetTxid mocks base method.
func (*MockConfidentialTxApi) SignWithPrivkey ¶ added in v0.4.0
func (m *MockConfidentialTxApi) SignWithPrivkey(tx *types.Transaction, outpoint *types.OutPoint, privkey *types.Privkey, sighashType types.SigHashType, txinUtxoList []*types.UtxoData) error
SignWithPrivkey mocks base method.
func (*MockConfidentialTxApi) UnblindByTxOut ¶ added in v0.3.16
func (m *MockConfidentialTxApi) UnblindByTxOut(txout *types.ConfidentialTxOut, blindingkey *types.Privkey) (*types.UnblindData, error)
UnblindByTxOut mocks base method.
func (*MockConfidentialTxApi) UnblindTxOut ¶
func (m *MockConfidentialTxApi) UnblindTxOut(tx *types.ConfidentialTx, index uint32, blindingKey *types.Privkey) (*types.ElementsUtxoData, error)
UnblindTxOut mocks base method.
func (*MockConfidentialTxApi) VerifyEcSignatureByUtxo ¶
func (m *MockConfidentialTxApi) VerifyEcSignatureByUtxo(tx *types.ConfidentialTx, outpoint *types.OutPoint, utxo *types.ElementsUtxoData, signature *types.SignParameter) (bool, error)
VerifyEcSignatureByUtxo mocks base method.
func (*MockConfidentialTxApi) VerifySign ¶
func (m *MockConfidentialTxApi) VerifySign(tx *types.ConfidentialTx, outpoint *types.OutPoint, txinUtxoList []*types.ElementsUtxoData) (bool, string, error)
VerifySign mocks base method.
type MockConfidentialTxApiMockRecorder ¶
type MockConfidentialTxApiMockRecorder struct {
// contains filtered or unexported fields
}
MockConfidentialTxApiMockRecorder is the mock recorder for MockConfidentialTxApi.
func (*MockConfidentialTxApiMockRecorder) Add ¶
func (mr *MockConfidentialTxApiMockRecorder) Add(tx, txinList, txoutList, pegoutAddressList interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockConfidentialTxApiMockRecorder) AddPubkeySign ¶
func (mr *MockConfidentialTxApiMockRecorder) AddPubkeySign(tx, outpoint, hashType, pubkey, signature interface{}) *gomock.Call
AddPubkeySign indicates an expected call of AddPubkeySign.
func (*MockConfidentialTxApiMockRecorder) AddPubkeySignByDescriptor ¶
func (mr *MockConfidentialTxApiMockRecorder) AddPubkeySignByDescriptor(tx, outpoint, outputDescriptor, signature interface{}) *gomock.Call
AddPubkeySignByDescriptor indicates an expected call of AddPubkeySignByDescriptor.
func (*MockConfidentialTxApiMockRecorder) AddScriptSign ¶
func (mr *MockConfidentialTxApiMockRecorder) AddScriptSign(tx, outpoint, hashType, signList, redeemScript interface{}) *gomock.Call
AddScriptSign indicates an expected call of AddScriptSign.
func (*MockConfidentialTxApiMockRecorder) AddScriptSignByDescriptor ¶
func (mr *MockConfidentialTxApiMockRecorder) AddScriptSignByDescriptor(tx, outpoint, outputDescriptor, signList interface{}) *gomock.Call
AddScriptSignByDescriptor indicates an expected call of AddScriptSignByDescriptor.
func (*MockConfidentialTxApiMockRecorder) AddTxMultisigSign ¶
func (mr *MockConfidentialTxApiMockRecorder) AddTxMultisigSign(tx, outpoint, hashType, signList, redeemScript interface{}) *gomock.Call
AddTxMultisigSign indicates an expected call of AddTxMultisigSign.
func (*MockConfidentialTxApiMockRecorder) AddTxMultisigSignByDescriptor ¶
func (mr *MockConfidentialTxApiMockRecorder) AddTxMultisigSignByDescriptor(tx, outpoint, outputDescriptor, signList interface{}) *gomock.Call
AddTxMultisigSignByDescriptor indicates an expected call of AddTxMultisigSignByDescriptor.
func (*MockConfidentialTxApiMockRecorder) Blind ¶
func (mr *MockConfidentialTxApiMockRecorder) Blind(tx, txinList, txoutList, option interface{}) *gomock.Call
Blind indicates an expected call of Blind.
func (*MockConfidentialTxApiMockRecorder) Create ¶
func (mr *MockConfidentialTxApiMockRecorder) Create(version, locktime, txinList, txoutList, pegoutAddressList interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockConfidentialTxApiMockRecorder) FilterUtxoByTxInList ¶
func (mr *MockConfidentialTxApiMockRecorder) FilterUtxoByTxInList(tx, utxoList interface{}) *gomock.Call
FilterUtxoByTxInList indicates an expected call of FilterUtxoByTxInList.
func (*MockConfidentialTxApiMockRecorder) GetAll ¶
func (mr *MockConfidentialTxApiMockRecorder) GetAll(tx, hasWitness interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockConfidentialTxApiMockRecorder) GetAllWithAddress ¶
func (mr *MockConfidentialTxApiMockRecorder) GetAllWithAddress(tx, hasWitness interface{}) *gomock.Call
GetAllWithAddress indicates an expected call of GetAllWithAddress.
func (*MockConfidentialTxApiMockRecorder) GetCommitment ¶
func (mr *MockConfidentialTxApiMockRecorder) GetCommitment(amount, amountBlindFactor, assetBlindFactor, asset interface{}) *gomock.Call
GetCommitment indicates an expected call of GetCommitment.
func (*MockConfidentialTxApiMockRecorder) GetPegoutAddress ¶
func (mr *MockConfidentialTxApiMockRecorder) GetPegoutAddress(tx, index interface{}) *gomock.Call
GetPegoutAddress indicates an expected call of GetPegoutAddress.
func (*MockConfidentialTxApiMockRecorder) GetSighash ¶
func (mr *MockConfidentialTxApiMockRecorder) GetSighash(tx, outpoint, sighashType, utxoList interface{}) *gomock.Call
GetSighash indicates an expected call of GetSighash.
func (*MockConfidentialTxApiMockRecorder) GetTxIn ¶
func (mr *MockConfidentialTxApiMockRecorder) GetTxIn(txHex, outpoint interface{}) *gomock.Call
GetTxIn indicates an expected call of GetTxIn.
func (*MockConfidentialTxApiMockRecorder) GetTxid ¶
func (mr *MockConfidentialTxApiMockRecorder) GetTxid(tx interface{}) *gomock.Call
GetTxid indicates an expected call of GetTxid.
func (*MockConfidentialTxApiMockRecorder) SignWithPrivkey ¶ added in v0.4.0
func (mr *MockConfidentialTxApiMockRecorder) SignWithPrivkey(tx, outpoint, privkey, sighashType, txinUtxoList interface{}) *gomock.Call
SignWithPrivkey indicates an expected call of SignWithPrivkey.
func (*MockConfidentialTxApiMockRecorder) UnblindByTxOut ¶ added in v0.3.16
func (mr *MockConfidentialTxApiMockRecorder) UnblindByTxOut(txout, blindingkey interface{}) *gomock.Call
UnblindByTxOut indicates an expected call of UnblindByTxOut.
func (*MockConfidentialTxApiMockRecorder) UnblindTxOut ¶
func (mr *MockConfidentialTxApiMockRecorder) UnblindTxOut(tx, index, blindingKey interface{}) *gomock.Call
UnblindTxOut indicates an expected call of UnblindTxOut.
func (*MockConfidentialTxApiMockRecorder) VerifyEcSignatureByUtxo ¶
func (mr *MockConfidentialTxApiMockRecorder) VerifyEcSignatureByUtxo(tx, outpoint, utxo, signature interface{}) *gomock.Call
VerifyEcSignatureByUtxo indicates an expected call of VerifyEcSignatureByUtxo.
func (*MockConfidentialTxApiMockRecorder) VerifySign ¶
func (mr *MockConfidentialTxApiMockRecorder) VerifySign(tx, outpoint, txinUtxoList interface{}) *gomock.Call
VerifySign indicates an expected call of VerifySign.
type MockLedgerLiquidLibApi ¶
type MockLedgerLiquidLibApi struct {
// contains filtered or unexported fields
}
MockLedgerLiquidLibApi is a mock of LedgerLiquidLibApi interface.
func NewMockLedgerLiquidLibApi ¶
func NewMockLedgerLiquidLibApi(ctrl *gomock.Controller) *MockLedgerLiquidLibApi
NewMockLedgerLiquidLibApi creates a new mock instance.
func (*MockLedgerLiquidLibApi) EXPECT ¶
func (m *MockLedgerLiquidLibApi) EXPECT() *MockLedgerLiquidLibApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLedgerLiquidLibApi) GetAuthorizeSignature ¶
func (m *MockLedgerLiquidLibApi) GetAuthorizeSignature(tx *types.ConfidentialTx, key *types.Privkey) (*types.ByteData, error)
GetAuthorizeSignature mocks base method.
type MockLedgerLiquidLibApiMockRecorder ¶
type MockLedgerLiquidLibApiMockRecorder struct {
// contains filtered or unexported fields
}
MockLedgerLiquidLibApiMockRecorder is the mock recorder for MockLedgerLiquidLibApi.
func (*MockLedgerLiquidLibApiMockRecorder) GetAuthorizeSignature ¶
func (mr *MockLedgerLiquidLibApiMockRecorder) GetAuthorizeSignature(tx, key interface{}) *gomock.Call
GetAuthorizeSignature indicates an expected call of GetAuthorizeSignature.
type MockTransactionApi ¶
type MockTransactionApi struct {
// contains filtered or unexported fields
}
MockTransactionApi is a mock of TransactionApi interface.
func NewMockTransactionApi ¶
func NewMockTransactionApi(ctrl *gomock.Controller) *MockTransactionApi
NewMockTransactionApi creates a new mock instance.
func (*MockTransactionApi) Add ¶
func (m *MockTransactionApi) Add(tx *types.Transaction, txinList []*types.InputTxIn, txoutList []*types.InputTxOut) error
Add mocks base method.
func (*MockTransactionApi) AddPubkeySign ¶
func (m *MockTransactionApi) AddPubkeySign(tx *types.Transaction, outpoint *types.OutPoint, hashType types.HashType, pubkey *types.Pubkey, signature string) error
AddPubkeySign mocks base method.
func (*MockTransactionApi) AddPubkeySignByDescriptor ¶
func (m *MockTransactionApi) AddPubkeySignByDescriptor(tx *types.Transaction, outpoint *types.OutPoint, outputDescriptor *types.Descriptor, signature string) error
AddPubkeySignByDescriptor mocks base method.
func (*MockTransactionApi) Create ¶
func (m *MockTransactionApi) Create(version, locktime uint32, txinList []*types.InputTxIn, txoutList []*types.InputTxOut) (*types.Transaction, error)
Create mocks base method.
func (*MockTransactionApi) EXPECT ¶
func (m *MockTransactionApi) EXPECT() *MockTransactionApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransactionApi) GetTxOut ¶
func (m *MockTransactionApi) GetTxOut(tx *types.Transaction, vout uint32) (*types.TxOut, error)
GetTxOut mocks base method.
func (*MockTransactionApi) GetTxid ¶
func (m *MockTransactionApi) GetTxid(tx *types.Transaction) string
GetTxid mocks base method.
func (*MockTransactionApi) SignWithPrivkey ¶
func (m *MockTransactionApi) SignWithPrivkey(tx *types.Transaction, outpoint *types.OutPoint, privkey *types.Privkey, sighashType types.SigHashType, utxoList []*types.UtxoData) error
SignWithPrivkey mocks base method.
func (*MockTransactionApi) VerifySign ¶
func (m *MockTransactionApi) VerifySign(tx *types.Transaction, outpoint *types.OutPoint, amount int64, txinUtxoList []*types.UtxoData) (bool, string, error)
VerifySign mocks base method.
type MockTransactionApiMockRecorder ¶
type MockTransactionApiMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionApiMockRecorder is the mock recorder for MockTransactionApi.
func (*MockTransactionApiMockRecorder) Add ¶
func (mr *MockTransactionApiMockRecorder) Add(tx, txinList, txoutList interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockTransactionApiMockRecorder) AddPubkeySign ¶
func (mr *MockTransactionApiMockRecorder) AddPubkeySign(tx, outpoint, hashType, pubkey, signature interface{}) *gomock.Call
AddPubkeySign indicates an expected call of AddPubkeySign.
func (*MockTransactionApiMockRecorder) AddPubkeySignByDescriptor ¶
func (mr *MockTransactionApiMockRecorder) AddPubkeySignByDescriptor(tx, outpoint, outputDescriptor, signature interface{}) *gomock.Call
AddPubkeySignByDescriptor indicates an expected call of AddPubkeySignByDescriptor.
func (*MockTransactionApiMockRecorder) Create ¶
func (mr *MockTransactionApiMockRecorder) Create(version, locktime, txinList, txoutList interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTransactionApiMockRecorder) GetTxOut ¶
func (mr *MockTransactionApiMockRecorder) GetTxOut(tx, vout interface{}) *gomock.Call
GetTxOut indicates an expected call of GetTxOut.
func (*MockTransactionApiMockRecorder) GetTxid ¶
func (mr *MockTransactionApiMockRecorder) GetTxid(tx interface{}) *gomock.Call
GetTxid indicates an expected call of GetTxid.
func (*MockTransactionApiMockRecorder) SignWithPrivkey ¶
func (mr *MockTransactionApiMockRecorder) SignWithPrivkey(tx, outpoint, privkey, sighashType, utxoList interface{}) *gomock.Call
SignWithPrivkey indicates an expected call of SignWithPrivkey.
func (*MockTransactionApiMockRecorder) VerifySign ¶
func (mr *MockTransactionApiMockRecorder) VerifySign(tx, outpoint, amount, txinUtxoList interface{}) *gomock.Call
VerifySign indicates an expected call of VerifySign.