Documentation
¶
Index ¶
- type BlockChainClientMock
- func (mock *BlockChainClientMock) BestBlockHash(ctx context.Context) (string, error)
- func (mock *BlockChainClientMock) BestBlockHashCalls() []struct{ ... }
- func (mock *BlockChainClientMock) Block(ctx context.Context, hash string) (*models.Block, error)
- func (mock *BlockChainClientMock) BlockByHeight(ctx context.Context, height int) (*models.Block, error)
- func (mock *BlockChainClientMock) BlockByHeightCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockCount(ctx context.Context) (uint32, error)
- func (mock *BlockChainClientMock) BlockCountCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockDecodeHeader(ctx context.Context, hash string) (*models.BlockDecodeHeader, error)
- func (mock *BlockChainClientMock) BlockDecodeHeaderByHeight(ctx context.Context, height int) (*models.BlockDecodeHeader, error)
- func (mock *BlockChainClientMock) BlockDecodeHeaderByHeightCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockDecodeHeaderCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockHash(ctx context.Context, height int) (string, error)
- func (mock *BlockChainClientMock) BlockHashCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockHeader(ctx context.Context, hash string) (*models.BlockHeader, error)
- func (mock *BlockChainClientMock) BlockHeaderCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockHeaderHex(ctx context.Context, hash string) (string, error)
- func (mock *BlockChainClientMock) BlockHeaderHexCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockHex(ctx context.Context, hash string) (string, error)
- func (mock *BlockChainClientMock) BlockHexByHeight(ctx context.Context, height int) (string, error)
- func (mock *BlockChainClientMock) BlockHexByHeightCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockHexCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockStats(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error)
- func (mock *BlockChainClientMock) BlockStatsByHeight(ctx context.Context, height int, fields ...string) (*models.BlockStats, error)
- func (mock *BlockChainClientMock) BlockStatsByHeightCalls() []struct{ ... }
- func (mock *BlockChainClientMock) BlockStatsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) ChainInfo(ctx context.Context) (*models.ChainInfo, error)
- func (mock *BlockChainClientMock) ChainInfoCalls() []struct{ ... }
- func (mock *BlockChainClientMock) ChainTips(ctx context.Context) ([]*models.ChainTip, error)
- func (mock *BlockChainClientMock) ChainTipsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) ChainTxStats(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error)
- func (mock *BlockChainClientMock) ChainTxStatsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) CheckJournal(ctx context.Context) (*models.JournalStatus, error)
- func (mock *BlockChainClientMock) CheckJournalCalls() []struct{ ... }
- func (mock *BlockChainClientMock) Difficulty(ctx context.Context) (float64, error)
- func (mock *BlockChainClientMock) DifficultyCalls() []struct{ ... }
- func (mock *BlockChainClientMock) Generate(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error)
- func (mock *BlockChainClientMock) GenerateCalls() []struct{ ... }
- func (mock *BlockChainClientMock) GenerateToAddress(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error)
- func (mock *BlockChainClientMock) GenerateToAddressCalls() []struct{ ... }
- func (mock *BlockChainClientMock) InvalidateBlock(ctx context.Context, hash string) error
- func (mock *BlockChainClientMock) LegacyMerkleProof(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error)
- func (mock *BlockChainClientMock) LegacyMerkleProofCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MempoolAncestorIDs(ctx context.Context, txID string) ([]string, error)
- func (mock *BlockChainClientMock) MempoolAncestorIDsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MempoolAncestors(ctx context.Context, txID string) (models.MempoolTxs, error)
- func (mock *BlockChainClientMock) MempoolAncestorsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MempoolDescendantIDs(ctx context.Context, txID string) ([]string, error)
- func (mock *BlockChainClientMock) MempoolDescendantIDsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MempoolDescendants(ctx context.Context, txID string) (models.MempoolTxs, error)
- func (mock *BlockChainClientMock) MempoolDescendantsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MempoolEntry(ctx context.Context, txID string) (*models.MempoolEntry, error)
- func (mock *BlockChainClientMock) MempoolEntryCalls() []struct{ ... }
- func (mock *BlockChainClientMock) MerkleProof(ctx context.Context, blockHash string, txID string, ...) (*bc.MerkleProof, error)
- func (mock *BlockChainClientMock) MerkleProofCalls() []struct{ ... }
- func (mock *BlockChainClientMock) Output(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error)
- func (mock *BlockChainClientMock) OutputCalls() []struct{ ... }
- func (mock *BlockChainClientMock) OutputSetInfo(ctx context.Context) (*models.OutputSetInfo, error)
- func (mock *BlockChainClientMock) OutputSetInfoCalls() []struct{ ... }
- func (mock *BlockChainClientMock) PreciousBlock(ctx context.Context, blockHash string) error
- func (mock *BlockChainClientMock) PreciousBlockCalls() []struct{ ... }
- func (mock *BlockChainClientMock) PruneChain(ctx context.Context, height int) (uint32, error)
- func (mock *BlockChainClientMock) PruneChainCalls() []struct{ ... }
- func (mock *BlockChainClientMock) RawMempool(ctx context.Context) (models.MempoolTxs, error)
- func (mock *BlockChainClientMock) RawMempoolCalls() []struct{ ... }
- func (mock *BlockChainClientMock) RawMempoolIDs(ctx context.Context) ([]string, error)
- func (mock *BlockChainClientMock) RawMempoolIDsCalls() []struct{ ... }
- func (mock *BlockChainClientMock) RawNonFinalMempool(ctx context.Context) ([]string, error)
- func (mock *BlockChainClientMock) RawNonFinalMempoolCalls() []struct{ ... }
- func (mock *BlockChainClientMock) RebuildJournal(ctx context.Context) error
- func (mock *BlockChainClientMock) RebuildJournalCalls() []struct{ ... }
- func (mock *BlockChainClientMock) VerifyChain(ctx context.Context) (bool, error)
- func (mock *BlockChainClientMock) VerifyChainCalls() []struct{ ... }
- type ControlClientMock
- func (mock *ControlClientMock) ActiveZMQNotifications(ctx context.Context) ([]*models.ZMQNotification, error)
- func (mock *ControlClientMock) ActiveZMQNotificationsCalls() []struct{ ... }
- func (mock *ControlClientMock) DumpParams(ctx context.Context) ([]string, error)
- func (mock *ControlClientMock) DumpParamsCalls() []struct{ ... }
- func (mock *ControlClientMock) Info(ctx context.Context) (*models.Info, error)
- func (mock *ControlClientMock) InfoCalls() []struct{ ... }
- func (mock *ControlClientMock) MemoryInfo(ctx context.Context) (*models.MemoryInfo, error)
- func (mock *ControlClientMock) MemoryInfoCalls() []struct{ ... }
- func (mock *ControlClientMock) Settings(ctx context.Context) (*models.Settings, error)
- func (mock *ControlClientMock) SettingsCalls() []struct{ ... }
- func (mock *ControlClientMock) Stop(ctx context.Context) error
- func (mock *ControlClientMock) StopCalls() []struct{ ... }
- func (mock *ControlClientMock) Uptime(ctx context.Context) (time.Duration, error)
- func (mock *ControlClientMock) UptimeCalls() []struct{ ... }
- type MiningClientMock
- func (mock *MiningClientMock) BlockTemplate(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error)
- func (mock *MiningClientMock) BlockTemplateCalls() []struct{ ... }
- func (mock *MiningClientMock) MiningCandidate(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error)
- func (mock *MiningClientMock) MiningCandidateCalls() []struct{ ... }
- func (mock *MiningClientMock) MiningInfo(ctx context.Context) (*models.MiningInfo, error)
- func (mock *MiningClientMock) MiningInfoCalls() []struct{ ... }
- func (mock *MiningClientMock) NetworkHashPS(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error)
- func (mock *MiningClientMock) NetworkHashPSCalls() []struct{ ... }
- func (mock *MiningClientMock) PrioritiseTx(ctx context.Context, txID string, feeDelta int64) (bool, error)
- func (mock *MiningClientMock) PrioritiseTxCalls() []struct{ ... }
- func (mock *MiningClientMock) SubmitBlock(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
- func (mock *MiningClientMock) SubmitBlockCalls() []struct{ ... }
- func (mock *MiningClientMock) SubmitMiningSolution(ctx context.Context, solution *models.MiningSolution) (string, error)
- func (mock *MiningClientMock) SubmitMiningSolutionCalls() []struct{ ... }
- func (mock *MiningClientMock) VerifyBlockCandidate(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
- func (mock *MiningClientMock) VerifyBlockCandidateCalls() []struct{ ... }
- type NetworkClientMock
- func (mock *NetworkClientMock) AddNode(ctx context.Context, node string, command internal.NodeAddType) error
- func (mock *NetworkClientMock) AddNodeCalls() []struct{ ... }
- func (mock *NetworkClientMock) ClearBanned(ctx context.Context) error
- func (mock *NetworkClientMock) ClearBannedCalls() []struct{ ... }
- func (mock *NetworkClientMock) ConnectionCount(ctx context.Context) (uint64, error)
- func (mock *NetworkClientMock) ConnectionCountCalls() []struct{ ... }
- func (mock *NetworkClientMock) DisconnectNode(ctx context.Context, params models.ParamsDisconnectNode) error
- func (mock *NetworkClientMock) DisconnectNodeCalls() []struct{ ... }
- func (mock *NetworkClientMock) ExcessiveBlock(ctx context.Context) (*models.ExcessiveBlock, error)
- func (mock *NetworkClientMock) ExcessiveBlockCalls() []struct{ ... }
- func (mock *NetworkClientMock) ListBanned(ctx context.Context) ([]*models.BannedSubnet, error)
- func (mock *NetworkClientMock) ListBannedCalls() []struct{ ... }
- func (mock *NetworkClientMock) NetworkInfo(ctx context.Context) (*models.NetworkInfo, error)
- func (mock *NetworkClientMock) NetworkInfoCalls() []struct{ ... }
- func (mock *NetworkClientMock) NetworkTotals(ctx context.Context) (*models.NetworkTotals, error)
- func (mock *NetworkClientMock) NetworkTotalsCalls() []struct{ ... }
- func (mock *NetworkClientMock) NodeInfo(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error)
- func (mock *NetworkClientMock) NodeInfoCalls() []struct{ ... }
- func (mock *NetworkClientMock) PeerInfo(ctx context.Context) ([]*models.PeerInfo, error)
- func (mock *NetworkClientMock) PeerInfoCalls() []struct{ ... }
- func (mock *NetworkClientMock) Ping(ctx context.Context) error
- func (mock *NetworkClientMock) PingCalls() []struct{ ... }
- func (mock *NetworkClientMock) SetBan(ctx context.Context, subnet string, action internal.BanAction, ...) error
- func (mock *NetworkClientMock) SetBanCalls() []struct{ ... }
- func (mock *NetworkClientMock) SetBlockMaxSize(ctx context.Context, size uint64) (string, error)
- func (mock *NetworkClientMock) SetBlockMaxSizeCalls() []struct{ ... }
- func (mock *NetworkClientMock) SetExcessiveBlock(ctx context.Context, size uint64) (string, error)
- func (mock *NetworkClientMock) SetExcessiveBlockCalls() []struct{ ... }
- func (mock *NetworkClientMock) SetNetworkActive(ctx context.Context, enabled bool) error
- func (mock *NetworkClientMock) SetNetworkActiveCalls() []struct{ ... }
- func (mock *NetworkClientMock) SetTxPropagationFrequency(ctx context.Context, frequency uint64) error
- func (mock *NetworkClientMock) SetTxPropagationFrequencyCalls() []struct{ ... }
- type NodeClientMock
- func (mock *NodeClientMock) AbandonTransaction(ctx context.Context, txID string) error
- func (mock *NodeClientMock) AbandonTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) Account(ctx context.Context, address string) (string, error)
- func (mock *NodeClientMock) AccountAddress(ctx context.Context, account string) (string, error)
- func (mock *NodeClientMock) AccountAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) AccountAddresses(ctx context.Context, account string) ([]string, error)
- func (mock *NodeClientMock) AccountAddressesCalls() []struct{ ... }
- func (mock *NodeClientMock) AccountCalls() []struct{ ... }
- func (mock *NodeClientMock) ActiveZMQNotifications(ctx context.Context) ([]*models.ZMQNotification, error)
- func (mock *NodeClientMock) ActiveZMQNotificationsCalls() []struct{ ... }
- func (mock *NodeClientMock) AddMultiSigAddress(ctx context.Context, n int, keys ...string) (string, error)
- func (mock *NodeClientMock) AddMultiSigAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) AddNode(ctx context.Context, node string, command internal.NodeAddType) error
- func (mock *NodeClientMock) AddNodeCalls() []struct{ ... }
- func (mock *NodeClientMock) AddToConfiscationTransactionWhitelist(ctx context.Context, confiscationTxs []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
- func (mock *NodeClientMock) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
- func (mock *NodeClientMock) BackupWallet(ctx context.Context, dest string) error
- func (mock *NodeClientMock) BackupWalletCalls() []struct{ ... }
- func (mock *NodeClientMock) Balance(ctx context.Context, opts *models.OptsBalance) (uint64, error)
- func (mock *NodeClientMock) BalanceCalls() []struct{ ... }
- func (mock *NodeClientMock) BestBlockHash(ctx context.Context) (string, error)
- func (mock *NodeClientMock) BestBlockHashCalls() []struct{ ... }
- func (mock *NodeClientMock) Block(ctx context.Context, hash string) (*models.Block, error)
- func (mock *NodeClientMock) BlockByHeight(ctx context.Context, height int) (*models.Block, error)
- func (mock *NodeClientMock) BlockByHeightCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockCount(ctx context.Context) (uint32, error)
- func (mock *NodeClientMock) BlockCountCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockDecodeHeader(ctx context.Context, hash string) (*models.BlockDecodeHeader, error)
- func (mock *NodeClientMock) BlockDecodeHeaderByHeight(ctx context.Context, height int) (*models.BlockDecodeHeader, error)
- func (mock *NodeClientMock) BlockDecodeHeaderByHeightCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockDecodeHeaderCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockHash(ctx context.Context, height int) (string, error)
- func (mock *NodeClientMock) BlockHashCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockHeader(ctx context.Context, hash string) (*models.BlockHeader, error)
- func (mock *NodeClientMock) BlockHeaderCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockHeaderHex(ctx context.Context, hash string) (string, error)
- func (mock *NodeClientMock) BlockHeaderHexCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockHex(ctx context.Context, hash string) (string, error)
- func (mock *NodeClientMock) BlockHexByHeight(ctx context.Context, height int) (string, error)
- func (mock *NodeClientMock) BlockHexByHeightCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockHexCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockStats(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error)
- func (mock *NodeClientMock) BlockStatsByHeight(ctx context.Context, height int, fields ...string) (*models.BlockStats, error)
- func (mock *NodeClientMock) BlockStatsByHeightCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockStatsCalls() []struct{ ... }
- func (mock *NodeClientMock) BlockTemplate(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error)
- func (mock *NodeClientMock) BlockTemplateCalls() []struct{ ... }
- func (mock *NodeClientMock) ChainInfo(ctx context.Context) (*models.ChainInfo, error)
- func (mock *NodeClientMock) ChainInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) ChainTips(ctx context.Context) ([]*models.ChainTip, error)
- func (mock *NodeClientMock) ChainTipsCalls() []struct{ ... }
- func (mock *NodeClientMock) ChainTxStats(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error)
- func (mock *NodeClientMock) ChainTxStatsCalls() []struct{ ... }
- func (mock *NodeClientMock) CheckJournal(ctx context.Context) (*models.JournalStatus, error)
- func (mock *NodeClientMock) CheckJournalCalls() []struct{ ... }
- func (mock *NodeClientMock) ClearBanned(ctx context.Context) error
- func (mock *NodeClientMock) ClearBannedCalls() []struct{ ... }
- func (mock *NodeClientMock) ClearInvalidTransactions(ctx context.Context) (uint64, error)
- func (mock *NodeClientMock) ClearInvalidTransactionsCalls() []struct{ ... }
- func (mock *NodeClientMock) ConnectionCount(ctx context.Context) (uint64, error)
- func (mock *NodeClientMock) ConnectionCountCalls() []struct{ ... }
- func (mock *NodeClientMock) CreateMultiSig(ctx context.Context, n int, keys ...string) (*models.MultiSig, error)
- func (mock *NodeClientMock) CreateMultiSigCalls() []struct{ ... }
- func (mock *NodeClientMock) CreateRawTransaction(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error)
- func (mock *NodeClientMock) CreateRawTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) Difficulty(ctx context.Context) (float64, error)
- func (mock *NodeClientMock) DifficultyCalls() []struct{ ... }
- func (mock *NodeClientMock) DisconnectNode(ctx context.Context, params models.ParamsDisconnectNode) error
- func (mock *NodeClientMock) DisconnectNodeCalls() []struct{ ... }
- func (mock *NodeClientMock) DumpParams(ctx context.Context) ([]string, error)
- func (mock *NodeClientMock) DumpParamsCalls() []struct{ ... }
- func (mock *NodeClientMock) DumpPrivateKey(ctx context.Context, address string) (*primitives.PrivateKey, error)
- func (mock *NodeClientMock) DumpPrivateKeyCalls() []struct{ ... }
- func (mock *NodeClientMock) DumpWallet(ctx context.Context, dest string) (*models.DumpWallet, error)
- func (mock *NodeClientMock) DumpWalletCalls() []struct{ ... }
- func (mock *NodeClientMock) EncryptWallet(ctx context.Context, passphrase string) error
- func (mock *NodeClientMock) EncryptWalletCalls() []struct{ ... }
- func (mock *NodeClientMock) ExcessiveBlock(ctx context.Context) (*models.ExcessiveBlock, error)
- func (mock *NodeClientMock) ExcessiveBlockCalls() []struct{ ... }
- func (mock *NodeClientMock) FundRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error)
- func (mock *NodeClientMock) FundRawTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) Generate(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error)
- func (mock *NodeClientMock) GenerateCalls() []struct{ ... }
- func (mock *NodeClientMock) GenerateToAddress(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error)
- func (mock *NodeClientMock) GenerateToAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportAddress(ctx context.Context, address string, opts *models.OptsImportAddress) error
- func (mock *NodeClientMock) ImportAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportMulti(ctx context.Context, reqs []models.ImportMultiRequest, ...) ([]*models.ImportMulti, error)
- func (mock *NodeClientMock) ImportMultiCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportPrivateKey(ctx context.Context, p *primitives.PrivateKey, ...) error
- func (mock *NodeClientMock) ImportPrivateKeyCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportPrunedFunds(ctx context.Context, tx *bt.Tx, txOutProof string) error
- func (mock *NodeClientMock) ImportPrunedFundsCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportPublicKey(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error
- func (mock *NodeClientMock) ImportPublicKeyCalls() []struct{ ... }
- func (mock *NodeClientMock) ImportWallet(ctx context.Context, filename string) error
- func (mock *NodeClientMock) ImportWalletCalls() []struct{ ... }
- func (mock *NodeClientMock) Info(ctx context.Context) (*models.Info, error)
- func (mock *NodeClientMock) InfoCalls() []struct{ ... }
- func (mock *NodeClientMock) InvalidateBlock(ctx context.Context, hash string) error
- func (mock *NodeClientMock) KeypoolRefill(ctx context.Context, opts *models.OptsKeypoolRefill) error
- func (mock *NodeClientMock) KeypoolRefillCalls() []struct{ ... }
- func (mock *NodeClientMock) LegacyMerkleProof(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error)
- func (mock *NodeClientMock) LegacyMerkleProofCalls() []struct{ ... }
- func (mock *NodeClientMock) ListAccounts(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error)
- func (mock *NodeClientMock) ListAccountsCalls() []struct{ ... }
- func (mock *NodeClientMock) ListBanned(ctx context.Context) ([]*models.BannedSubnet, error)
- func (mock *NodeClientMock) ListBannedCalls() []struct{ ... }
- func (mock *NodeClientMock) ListLockUnspent(ctx context.Context) ([]*models.LockUnspent, error)
- func (mock *NodeClientMock) ListLockUnspentCalls() []struct{ ... }
- func (mock *NodeClientMock) ListReceivedByAccount(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error)
- func (mock *NodeClientMock) ListReceivedByAccountCalls() []struct{ ... }
- func (mock *NodeClientMock) ListReceivedByAddress(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error)
- func (mock *NodeClientMock) ListReceivedByAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) ListSinceBlock(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error)
- func (mock *NodeClientMock) ListSinceBlockCalls() []struct{ ... }
- func (mock *NodeClientMock) ListTransactions(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error)
- func (mock *NodeClientMock) ListTransactionsCalls() []struct{ ... }
- func (mock *NodeClientMock) ListUnspent(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error)
- func (mock *NodeClientMock) ListUnspentCalls() []struct{ ... }
- func (mock *NodeClientMock) ListWallets(ctx context.Context) ([]string, error)
- func (mock *NodeClientMock) ListWalletsCalls() []struct{ ... }
- func (mock *NodeClientMock) LockUnspent(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error)
- func (mock *NodeClientMock) LockUnspentCalls() []struct{ ... }
- func (mock *NodeClientMock) MemoryInfo(ctx context.Context) (*models.MemoryInfo, error)
- func (mock *NodeClientMock) MemoryInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) MempoolAncestorIDs(ctx context.Context, txID string) ([]string, error)
- func (mock *NodeClientMock) MempoolAncestorIDsCalls() []struct{ ... }
- func (mock *NodeClientMock) MempoolAncestors(ctx context.Context, txID string) (models.MempoolTxs, error)
- func (mock *NodeClientMock) MempoolAncestorsCalls() []struct{ ... }
- func (mock *NodeClientMock) MempoolDescendantIDs(ctx context.Context, txID string) ([]string, error)
- func (mock *NodeClientMock) MempoolDescendantIDsCalls() []struct{ ... }
- func (mock *NodeClientMock) MempoolDescendants(ctx context.Context, txID string) (models.MempoolTxs, error)
- func (mock *NodeClientMock) MempoolDescendantsCalls() []struct{ ... }
- func (mock *NodeClientMock) MempoolEntry(ctx context.Context, txID string) (*models.MempoolEntry, error)
- func (mock *NodeClientMock) MempoolEntryCalls() []struct{ ... }
- func (mock *NodeClientMock) MerkleProof(ctx context.Context, blockHash string, txID string, ...) (*bc.MerkleProof, error)
- func (mock *NodeClientMock) MerkleProofCalls() []struct{ ... }
- func (mock *NodeClientMock) MiningCandidate(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error)
- func (mock *NodeClientMock) MiningCandidateCalls() []struct{ ... }
- func (mock *NodeClientMock) MiningInfo(ctx context.Context) (*models.MiningInfo, error)
- func (mock *NodeClientMock) MiningInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) Move(ctx context.Context, from string, to string, amount uint64, ...) (bool, error)
- func (mock *NodeClientMock) MoveCalls() []struct{ ... }
- func (mock *NodeClientMock) NetworkHashPS(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error)
- func (mock *NodeClientMock) NetworkHashPSCalls() []struct{ ... }
- func (mock *NodeClientMock) NetworkInfo(ctx context.Context) (*models.NetworkInfo, error)
- func (mock *NodeClientMock) NetworkInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) NetworkTotals(ctx context.Context) (*models.NetworkTotals, error)
- func (mock *NodeClientMock) NetworkTotalsCalls() []struct{ ... }
- func (mock *NodeClientMock) NewAddress(ctx context.Context, opts *models.OptsNewAddress) (string, error)
- func (mock *NodeClientMock) NewAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) NodeInfo(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error)
- func (mock *NodeClientMock) NodeInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) Output(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error)
- func (mock *NodeClientMock) OutputCalls() []struct{ ... }
- func (mock *NodeClientMock) OutputSetInfo(ctx context.Context) (*models.OutputSetInfo, error)
- func (mock *NodeClientMock) OutputSetInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) PeerInfo(ctx context.Context) ([]*models.PeerInfo, error)
- func (mock *NodeClientMock) PeerInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) Ping(ctx context.Context) error
- func (mock *NodeClientMock) PingCalls() []struct{ ... }
- func (mock *NodeClientMock) PreciousBlock(ctx context.Context, blockHash string) error
- func (mock *NodeClientMock) PreciousBlockCalls() []struct{ ... }
- func (mock *NodeClientMock) PrioritiseTx(ctx context.Context, txID string, feeDelta int64) (bool, error)
- func (mock *NodeClientMock) PrioritiseTxCalls() []struct{ ... }
- func (mock *NodeClientMock) PruneChain(ctx context.Context, height int) (uint32, error)
- func (mock *NodeClientMock) PruneChainCalls() []struct{ ... }
- func (mock *NodeClientMock) RawChangeAddress(ctx context.Context) (string, error)
- func (mock *NodeClientMock) RawChangeAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) RawMempool(ctx context.Context) (models.MempoolTxs, error)
- func (mock *NodeClientMock) RawMempoolCalls() []struct{ ... }
- func (mock *NodeClientMock) RawMempoolIDs(ctx context.Context) ([]string, error)
- func (mock *NodeClientMock) RawMempoolIDsCalls() []struct{ ... }
- func (mock *NodeClientMock) RawNonFinalMempool(ctx context.Context) ([]string, error)
- func (mock *NodeClientMock) RawNonFinalMempoolCalls() []struct{ ... }
- func (mock *NodeClientMock) RawTransaction(ctx context.Context, txID string) (*bt.Tx, error)
- func (mock *NodeClientMock) RawTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) RebuildJournal(ctx context.Context) error
- func (mock *NodeClientMock) RebuildJournalCalls() []struct{ ... }
- func (mock *NodeClientMock) ReceivedByAddress(ctx context.Context, address string) (uint64, error)
- func (mock *NodeClientMock) ReceivedByAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) RemovePrunedFunds(ctx context.Context, txID string) error
- func (mock *NodeClientMock) RemovePrunedFundsCalls() []struct{ ... }
- func (mock *NodeClientMock) SendFrom(ctx context.Context, from string, to string, amount uint64, ...) (string, error)
- func (mock *NodeClientMock) SendFromCalls() []struct{ ... }
- func (mock *NodeClientMock) SendMany(ctx context.Context, from string, amounts map[string]uint64, ...) (string, error)
- func (mock *NodeClientMock) SendManyCalls() []struct{ ... }
- func (mock *NodeClientMock) SendRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error)
- func (mock *NodeClientMock) SendRawTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) SendRawTransactions(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error)
- func (mock *NodeClientMock) SendRawTransactionsCalls() []struct{ ... }
- func (mock *NodeClientMock) SendToAddress(ctx context.Context, address string, amount uint64, ...) (string, error)
- func (mock *NodeClientMock) SendToAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) SetAccount(ctx context.Context, address string, account string) error
- func (mock *NodeClientMock) SetAccountCalls() []struct{ ... }
- func (mock *NodeClientMock) SetBan(ctx context.Context, subnet string, action internal.BanAction, ...) error
- func (mock *NodeClientMock) SetBanCalls() []struct{ ... }
- func (mock *NodeClientMock) SetBlockMaxSize(ctx context.Context, size uint64) (string, error)
- func (mock *NodeClientMock) SetBlockMaxSizeCalls() []struct{ ... }
- func (mock *NodeClientMock) SetExcessiveBlock(ctx context.Context, size uint64) (string, error)
- func (mock *NodeClientMock) SetExcessiveBlockCalls() []struct{ ... }
- func (mock *NodeClientMock) SetNetworkActive(ctx context.Context, enabled bool) error
- func (mock *NodeClientMock) SetNetworkActiveCalls() []struct{ ... }
- func (mock *NodeClientMock) SetTxFee(ctx context.Context, amount uint64) (bool, error)
- func (mock *NodeClientMock) SetTxFeeCalls() []struct{ ... }
- func (mock *NodeClientMock) SetTxPropagationFrequency(ctx context.Context, frequency uint64) error
- func (mock *NodeClientMock) SetTxPropagationFrequencyCalls() []struct{ ... }
- func (mock *NodeClientMock) Settings(ctx context.Context) (*models.Settings, error)
- func (mock *NodeClientMock) SettingsCalls() []struct{ ... }
- func (mock *NodeClientMock) SignMessage(ctx context.Context, address string, message string) (string, error)
- func (mock *NodeClientMock) SignMessageCalls() []struct{ ... }
- func (mock *NodeClientMock) SignMessageWithPrivKey(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error)
- func (mock *NodeClientMock) SignMessageWithPrivKeyCalls() []struct{ ... }
- func (mock *NodeClientMock) SignRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error)
- func (mock *NodeClientMock) SignRawTransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) Stop(ctx context.Context) error
- func (mock *NodeClientMock) StopCalls() []struct{ ... }
- func (mock *NodeClientMock) SubmitBlock(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
- func (mock *NodeClientMock) SubmitBlockCalls() []struct{ ... }
- func (mock *NodeClientMock) SubmitMiningSolution(ctx context.Context, solution *models.MiningSolution) (string, error)
- func (mock *NodeClientMock) SubmitMiningSolutionCalls() []struct{ ... }
- func (mock *NodeClientMock) Transaction(ctx context.Context, txID string) (*models.Transaction, error)
- func (mock *NodeClientMock) TransactionCalls() []struct{ ... }
- func (mock *NodeClientMock) UnconfirmedBalance(ctx context.Context) (uint64, error)
- func (mock *NodeClientMock) UnconfirmedBalanceCalls() []struct{ ... }
- func (mock *NodeClientMock) Uptime(ctx context.Context) (time.Duration, error)
- func (mock *NodeClientMock) UptimeCalls() []struct{ ... }
- func (mock *NodeClientMock) ValidateAddress(ctx context.Context, address string) (*models.ValidateAddress, error)
- func (mock *NodeClientMock) ValidateAddressCalls() []struct{ ... }
- func (mock *NodeClientMock) VerifyBlockCandidate(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
- func (mock *NodeClientMock) VerifyBlockCandidateCalls() []struct{ ... }
- func (mock *NodeClientMock) VerifyChain(ctx context.Context) (bool, error)
- func (mock *NodeClientMock) VerifyChainCalls() []struct{ ... }
- func (mock *NodeClientMock) VerifySignedMessage(ctx context.Context, p *primitives.PrivateKey, signature string, ...) (bool, error)
- func (mock *NodeClientMock) VerifySignedMessageCalls() []struct{ ... }
- func (mock *NodeClientMock) WalletInfo(ctx context.Context) (*models.WalletInfo, error)
- func (mock *NodeClientMock) WalletInfoCalls() []struct{ ... }
- func (mock *NodeClientMock) WalletLock(ctx context.Context) error
- func (mock *NodeClientMock) WalletLockCalls() []struct{ ... }
- func (mock *NodeClientMock) WalletPhassphrase(ctx context.Context, passphrase string, timeout int) error
- func (mock *NodeClientMock) WalletPhassphraseCalls() []struct{ ... }
- func (mock *NodeClientMock) WalletPhassphraseChange(ctx context.Context, oldPassphrase string, newPassphrase string) error
- func (mock *NodeClientMock) WalletPhassphraseChangeCalls() []struct{ ... }
- type SocketMock
- func (mock *SocketMock) Addr() net.Addr
- func (mock *SocketMock) AddrCalls() []struct{}
- func (mock *SocketMock) Close() error
- func (mock *SocketMock) CloseCalls() []struct{}
- func (mock *SocketMock) Dial(ep string) error
- func (mock *SocketMock) DialCalls() []struct{ ... }
- func (mock *SocketMock) GetOption(name string) (interface{}, error)
- func (mock *SocketMock) GetOptionCalls() []struct{ ... }
- func (mock *SocketMock) Listen(ep string) error
- func (mock *SocketMock) ListenCalls() []struct{ ... }
- func (mock *SocketMock) Recv() (zmq4.Msg, error)
- func (mock *SocketMock) RecvCalls() []struct{}
- func (mock *SocketMock) Send(msg zmq4.Msg) error
- func (mock *SocketMock) SendCalls() []struct{ ... }
- func (mock *SocketMock) SendMulti(msg zmq4.Msg) error
- func (mock *SocketMock) SendMultiCalls() []struct{ ... }
- func (mock *SocketMock) SetOption(name string, value interface{}) error
- func (mock *SocketMock) SetOptionCalls() []struct{ ... }
- func (mock *SocketMock) Type() zmq4.SocketType
- func (mock *SocketMock) TypeCalls() []struct{}
- type TransactionClientMock
- func (mock *TransactionClientMock) AddToConfiscationTransactionWhitelist(ctx context.Context, confiscationTxs []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
- func (mock *TransactionClientMock) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
- func (mock *TransactionClientMock) CreateRawTransaction(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error)
- func (mock *TransactionClientMock) CreateRawTransactionCalls() []struct{ ... }
- func (mock *TransactionClientMock) FundRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error)
- func (mock *TransactionClientMock) FundRawTransactionCalls() []struct{ ... }
- func (mock *TransactionClientMock) RawTransaction(ctx context.Context, txID string) (*bt.Tx, error)
- func (mock *TransactionClientMock) RawTransactionCalls() []struct{ ... }
- func (mock *TransactionClientMock) SendRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error)
- func (mock *TransactionClientMock) SendRawTransactionCalls() []struct{ ... }
- func (mock *TransactionClientMock) SendRawTransactions(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error)
- func (mock *TransactionClientMock) SendRawTransactionsCalls() []struct{ ... }
- func (mock *TransactionClientMock) SignRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error)
- func (mock *TransactionClientMock) SignRawTransactionCalls() []struct{ ... }
- type UtilClientMock
- func (mock *UtilClientMock) ClearInvalidTransactions(ctx context.Context) (uint64, error)
- func (mock *UtilClientMock) ClearInvalidTransactionsCalls() []struct{ ... }
- func (mock *UtilClientMock) CreateMultiSig(ctx context.Context, n int, keys ...string) (*models.MultiSig, error)
- func (mock *UtilClientMock) CreateMultiSigCalls() []struct{ ... }
- func (mock *UtilClientMock) SignMessageWithPrivKey(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error)
- func (mock *UtilClientMock) SignMessageWithPrivKeyCalls() []struct{ ... }
- func (mock *UtilClientMock) ValidateAddress(ctx context.Context, address string) (*models.ValidateAddress, error)
- func (mock *UtilClientMock) ValidateAddressCalls() []struct{ ... }
- func (mock *UtilClientMock) VerifySignedMessage(ctx context.Context, p *primitives.PrivateKey, signature string, ...) (bool, error)
- func (mock *UtilClientMock) VerifySignedMessageCalls() []struct{ ... }
- type WalletClientMock
- func (mock *WalletClientMock) AbandonTransaction(ctx context.Context, txID string) error
- func (mock *WalletClientMock) AbandonTransactionCalls() []struct{ ... }
- func (mock *WalletClientMock) Account(ctx context.Context, address string) (string, error)
- func (mock *WalletClientMock) AccountAddress(ctx context.Context, account string) (string, error)
- func (mock *WalletClientMock) AccountAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) AccountAddresses(ctx context.Context, account string) ([]string, error)
- func (mock *WalletClientMock) AccountAddressesCalls() []struct{ ... }
- func (mock *WalletClientMock) AccountCalls() []struct{ ... }
- func (mock *WalletClientMock) AddMultiSigAddress(ctx context.Context, n int, keys ...string) (string, error)
- func (mock *WalletClientMock) AddMultiSigAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) BackupWallet(ctx context.Context, dest string) error
- func (mock *WalletClientMock) BackupWalletCalls() []struct{ ... }
- func (mock *WalletClientMock) Balance(ctx context.Context, opts *models.OptsBalance) (uint64, error)
- func (mock *WalletClientMock) BalanceCalls() []struct{ ... }
- func (mock *WalletClientMock) DumpPrivateKey(ctx context.Context, address string) (*primitives.PrivateKey, error)
- func (mock *WalletClientMock) DumpPrivateKeyCalls() []struct{ ... }
- func (mock *WalletClientMock) DumpWallet(ctx context.Context, dest string) (*models.DumpWallet, error)
- func (mock *WalletClientMock) DumpWalletCalls() []struct{ ... }
- func (mock *WalletClientMock) EncryptWallet(ctx context.Context, passphrase string) error
- func (mock *WalletClientMock) EncryptWalletCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportAddress(ctx context.Context, address string, opts *models.OptsImportAddress) error
- func (mock *WalletClientMock) ImportAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportMulti(ctx context.Context, reqs []models.ImportMultiRequest, ...) ([]*models.ImportMulti, error)
- func (mock *WalletClientMock) ImportMultiCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportPrivateKey(ctx context.Context, p *primitives.PrivateKey, ...) error
- func (mock *WalletClientMock) ImportPrivateKeyCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportPrunedFunds(ctx context.Context, tx *bt.Tx, txOutProof string) error
- func (mock *WalletClientMock) ImportPrunedFundsCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportPublicKey(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error
- func (mock *WalletClientMock) ImportPublicKeyCalls() []struct{ ... }
- func (mock *WalletClientMock) ImportWallet(ctx context.Context, filename string) error
- func (mock *WalletClientMock) ImportWalletCalls() []struct{ ... }
- func (mock *WalletClientMock) KeypoolRefill(ctx context.Context, opts *models.OptsKeypoolRefill) error
- func (mock *WalletClientMock) KeypoolRefillCalls() []struct{ ... }
- func (mock *WalletClientMock) ListAccounts(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error)
- func (mock *WalletClientMock) ListAccountsCalls() []struct{ ... }
- func (mock *WalletClientMock) ListLockUnspent(ctx context.Context) ([]*models.LockUnspent, error)
- func (mock *WalletClientMock) ListLockUnspentCalls() []struct{ ... }
- func (mock *WalletClientMock) ListReceivedByAccount(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error)
- func (mock *WalletClientMock) ListReceivedByAccountCalls() []struct{ ... }
- func (mock *WalletClientMock) ListReceivedByAddress(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error)
- func (mock *WalletClientMock) ListReceivedByAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) ListSinceBlock(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error)
- func (mock *WalletClientMock) ListSinceBlockCalls() []struct{ ... }
- func (mock *WalletClientMock) ListTransactions(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error)
- func (mock *WalletClientMock) ListTransactionsCalls() []struct{ ... }
- func (mock *WalletClientMock) ListUnspent(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error)
- func (mock *WalletClientMock) ListUnspentCalls() []struct{ ... }
- func (mock *WalletClientMock) ListWallets(ctx context.Context) ([]string, error)
- func (mock *WalletClientMock) ListWalletsCalls() []struct{ ... }
- func (mock *WalletClientMock) LockUnspent(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error)
- func (mock *WalletClientMock) LockUnspentCalls() []struct{ ... }
- func (mock *WalletClientMock) Move(ctx context.Context, from string, to string, amount uint64, ...) (bool, error)
- func (mock *WalletClientMock) MoveCalls() []struct{ ... }
- func (mock *WalletClientMock) NewAddress(ctx context.Context, opts *models.OptsNewAddress) (string, error)
- func (mock *WalletClientMock) NewAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) RawChangeAddress(ctx context.Context) (string, error)
- func (mock *WalletClientMock) RawChangeAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) ReceivedByAddress(ctx context.Context, address string) (uint64, error)
- func (mock *WalletClientMock) ReceivedByAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) RemovePrunedFunds(ctx context.Context, txID string) error
- func (mock *WalletClientMock) RemovePrunedFundsCalls() []struct{ ... }
- func (mock *WalletClientMock) SendFrom(ctx context.Context, from string, to string, amount uint64, ...) (string, error)
- func (mock *WalletClientMock) SendFromCalls() []struct{ ... }
- func (mock *WalletClientMock) SendMany(ctx context.Context, from string, amounts map[string]uint64, ...) (string, error)
- func (mock *WalletClientMock) SendManyCalls() []struct{ ... }
- func (mock *WalletClientMock) SendToAddress(ctx context.Context, address string, amount uint64, ...) (string, error)
- func (mock *WalletClientMock) SendToAddressCalls() []struct{ ... }
- func (mock *WalletClientMock) SetAccount(ctx context.Context, address string, account string) error
- func (mock *WalletClientMock) SetAccountCalls() []struct{ ... }
- func (mock *WalletClientMock) SetTxFee(ctx context.Context, amount uint64) (bool, error)
- func (mock *WalletClientMock) SetTxFeeCalls() []struct{ ... }
- func (mock *WalletClientMock) SignMessage(ctx context.Context, address string, message string) (string, error)
- func (mock *WalletClientMock) SignMessageCalls() []struct{ ... }
- func (mock *WalletClientMock) Transaction(ctx context.Context, txID string) (*models.Transaction, error)
- func (mock *WalletClientMock) TransactionCalls() []struct{ ... }
- func (mock *WalletClientMock) UnconfirmedBalance(ctx context.Context) (uint64, error)
- func (mock *WalletClientMock) UnconfirmedBalanceCalls() []struct{ ... }
- func (mock *WalletClientMock) WalletInfo(ctx context.Context) (*models.WalletInfo, error)
- func (mock *WalletClientMock) WalletInfoCalls() []struct{ ... }
- func (mock *WalletClientMock) WalletLock(ctx context.Context) error
- func (mock *WalletClientMock) WalletLockCalls() []struct{ ... }
- func (mock *WalletClientMock) WalletPhassphrase(ctx context.Context, passphrase string, timeout int) error
- func (mock *WalletClientMock) WalletPhassphraseCalls() []struct{ ... }
- func (mock *WalletClientMock) WalletPhassphraseChange(ctx context.Context, oldPassphrase string, newPassphrase string) error
- func (mock *WalletClientMock) WalletPhassphraseChangeCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChainClientMock ¶
type BlockChainClientMock struct { // BestBlockHashFunc mocks the BestBlockHash method. BestBlockHashFunc func(ctx context.Context) (string, error) // BlockFunc mocks the Block method. BlockFunc func(ctx context.Context, hash string) (*models.Block, error) // BlockByHeightFunc mocks the BlockByHeight method. BlockByHeightFunc func(ctx context.Context, height int) (*models.Block, error) // BlockCountFunc mocks the BlockCount method. BlockCountFunc func(ctx context.Context) (uint32, error) // BlockDecodeHeaderFunc mocks the BlockDecodeHeader method. BlockDecodeHeaderFunc func(ctx context.Context, hash string) (*models.BlockDecodeHeader, error) // BlockDecodeHeaderByHeightFunc mocks the BlockDecodeHeaderByHeight method. BlockDecodeHeaderByHeightFunc func(ctx context.Context, height int) (*models.BlockDecodeHeader, error) // BlockHashFunc mocks the BlockHash method. BlockHashFunc func(ctx context.Context, height int) (string, error) // BlockHeaderFunc mocks the BlockHeader method. BlockHeaderFunc func(ctx context.Context, hash string) (*models.BlockHeader, error) // BlockHeaderHexFunc mocks the BlockHeaderHex method. BlockHeaderHexFunc func(ctx context.Context, hash string) (string, error) // BlockHexFunc mocks the BlockHex method. BlockHexFunc func(ctx context.Context, hash string) (string, error) // BlockHexByHeightFunc mocks the BlockHexByHeight method. BlockHexByHeightFunc func(ctx context.Context, height int) (string, error) // BlockStatsFunc mocks the BlockStats method. BlockStatsFunc func(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error) // BlockStatsByHeightFunc mocks the BlockStatsByHeight method. BlockStatsByHeightFunc func(ctx context.Context, height int, fields ...string) (*models.BlockStats, error) // ChainInfoFunc mocks the ChainInfo method. ChainInfoFunc func(ctx context.Context) (*models.ChainInfo, error) // ChainTipsFunc mocks the ChainTips method. ChainTipsFunc func(ctx context.Context) ([]*models.ChainTip, error) // ChainTxStatsFunc mocks the ChainTxStats method. ChainTxStatsFunc func(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error) // CheckJournalFunc mocks the CheckJournal method. CheckJournalFunc func(ctx context.Context) (*models.JournalStatus, error) // DifficultyFunc mocks the Difficulty method. DifficultyFunc func(ctx context.Context) (float64, error) // GenerateFunc mocks the Generate method. GenerateFunc func(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error) // GenerateToAddressFunc mocks the GenerateToAddress method. GenerateToAddressFunc func(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error) // InvalidateBlockFunc mockes the InvalidateBlock method InvalidateBlockFunc func(ctx context.Context, blockHash string) error // LegacyMerkleProofFunc mocks the LegacyMerkleProof method. LegacyMerkleProofFunc func(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error) // MempoolAncestorIDsFunc mocks the MempoolAncestorIDs method. MempoolAncestorIDsFunc func(ctx context.Context, txID string) ([]string, error) // MempoolAncestorsFunc mocks the MempoolAncestors method. MempoolAncestorsFunc func(ctx context.Context, txID string) (models.MempoolTxs, error) // MempoolDescendantIDsFunc mocks the MempoolDescendantIDs method. MempoolDescendantIDsFunc func(ctx context.Context, txID string) ([]string, error) // MempoolDescendantsFunc mocks the MempoolDescendants method. MempoolDescendantsFunc func(ctx context.Context, txID string) (models.MempoolTxs, error) // MempoolEntryFunc mocks the MempoolEntry method. MempoolEntryFunc func(ctx context.Context, txID string) (*models.MempoolEntry, error) // MerkleProofFunc mocks the MerkleProof method. MerkleProofFunc func(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error) // OutputFunc mocks the Output method. OutputFunc func(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error) // OutputSetInfoFunc mocks the OutputSetInfo method. OutputSetInfoFunc func(ctx context.Context) (*models.OutputSetInfo, error) // PreciousBlockFunc mocks the PreciousBlock method. PreciousBlockFunc func(ctx context.Context, blockHash string) error // PruneChainFunc mocks the PruneChain method. PruneChainFunc func(ctx context.Context, height int) (uint32, error) // RawMempoolFunc mocks the RawMempool method. RawMempoolFunc func(ctx context.Context) (models.MempoolTxs, error) // RawMempoolIDsFunc mocks the RawMempoolIDs method. RawMempoolIDsFunc func(ctx context.Context) ([]string, error) // RawNonFinalMempoolFunc mocks the RawNonFinalMempool method. RawNonFinalMempoolFunc func(ctx context.Context) ([]string, error) // RebuildJournalFunc mocks the RebuildJournal method. RebuildJournalFunc func(ctx context.Context) error // VerifyChainFunc mocks the VerifyChain method. VerifyChainFunc func(ctx context.Context) (bool, error) // contains filtered or unexported fields }
BlockChainClientMock is a mock implementation of bn.BlockChainClient.
func TestSomethingThatUsesBlockChainClient(t *testing.T) { // make and configure a mocked bn.BlockChainClient mockedBlockChainClient := &BlockChainClientMock{ BestBlockHashFunc: func(ctx context.Context) (string, error) { panic("mock out the BestBlockHash method") }, BlockFunc: func(ctx context.Context, hash string) (*models.Block, error) { panic("mock out the Block method") }, BlockByHeightFunc: func(ctx context.Context, height int) (*models.Block, error) { panic("mock out the BlockByHeight method") }, BlockCountFunc: func(ctx context.Context) (uint32, error) { panic("mock out the BlockCount method") }, BlockDecodeHeaderFunc: func(ctx context.Context, hash string) (*models.BlockDecodeHeader, error) { panic("mock out the BlockDecodeHeader method") }, BlockDecodeHeaderByHeightFunc: func(ctx context.Context, height int) (*models.BlockDecodeHeader, error) { panic("mock out the BlockDecodeHeaderByHeight method") }, BlockHashFunc: func(ctx context.Context, height int) (string, error) { panic("mock out the BlockHash method") }, BlockHeaderFunc: func(ctx context.Context, hash string) (*models.BlockHeader, error) { panic("mock out the BlockHeader method") }, BlockHeaderHexFunc: func(ctx context.Context, hash string) (string, error) { panic("mock out the BlockHeaderHex method") }, BlockHexFunc: func(ctx context.Context, hash string) (string, error) { panic("mock out the BlockHex method") }, BlockHexByHeightFunc: func(ctx context.Context, height int) (string, error) { panic("mock out the BlockHexByHeight method") }, BlockStatsFunc: func(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error) { panic("mock out the BlockStats method") }, BlockStatsByHeightFunc: func(ctx context.Context, height int, fields ...string) (*models.BlockStats, error) { panic("mock out the BlockStatsByHeight method") }, ChainInfoFunc: func(ctx context.Context) (*models.ChainInfo, error) { panic("mock out the ChainInfo method") }, ChainTipsFunc: func(ctx context.Context) ([]*models.ChainTip, error) { panic("mock out the ChainTips method") }, ChainTxStatsFunc: func(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error) { panic("mock out the ChainTxStats method") }, CheckJournalFunc: func(ctx context.Context) (*models.JournalStatus, error) { panic("mock out the CheckJournal method") }, DifficultyFunc: func(ctx context.Context) (float64, error) { panic("mock out the Difficulty method") }, GenerateFunc: func(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error) { panic("mock out the Generate method") }, GenerateToAddressFunc: func(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error) { panic("mock out the GenerateToAddress method") }, LegacyMerkleProofFunc: func(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error) { panic("mock out the LegacyMerkleProof method") }, MempoolAncestorIDsFunc: func(ctx context.Context, txID string) ([]string, error) { panic("mock out the MempoolAncestorIDs method") }, MempoolAncestorsFunc: func(ctx context.Context, txID string) (models.MempoolTxs, error) { panic("mock out the MempoolAncestors method") }, MempoolDescendantIDsFunc: func(ctx context.Context, txID string) ([]string, error) { panic("mock out the MempoolDescendantIDs method") }, MempoolDescendantsFunc: func(ctx context.Context, txID string) (models.MempoolTxs, error) { panic("mock out the MempoolDescendants method") }, MempoolEntryFunc: func(ctx context.Context, txID string) (*models.MempoolEntry, error) { panic("mock out the MempoolEntry method") }, MerkleProofFunc: func(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error) { panic("mock out the MerkleProof method") }, OutputFunc: func(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error) { panic("mock out the Output method") }, OutputSetInfoFunc: func(ctx context.Context) (*models.OutputSetInfo, error) { panic("mock out the OutputSetInfo method") }, PreciousBlockFunc: func(ctx context.Context, blockHash string) error { panic("mock out the PreciousBlock method") }, PruneChainFunc: func(ctx context.Context, height int) (uint32, error) { panic("mock out the PruneChain method") }, RawMempoolFunc: func(ctx context.Context) (models.MempoolTxs, error) { panic("mock out the RawMempool method") }, RawMempoolIDsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the RawMempoolIDs method") }, RawNonFinalMempoolFunc: func(ctx context.Context) ([]string, error) { panic("mock out the RawNonFinalMempool method") }, RebuildJournalFunc: func(ctx context.Context) error { panic("mock out the RebuildJournal method") }, VerifyChainFunc: func(ctx context.Context) (bool, error) { panic("mock out the VerifyChain method") }, } // use mockedBlockChainClient in code that requires bn.BlockChainClient // and then make assertions. }
func (*BlockChainClientMock) BestBlockHash ¶
func (mock *BlockChainClientMock) BestBlockHash(ctx context.Context) (string, error)
BestBlockHash calls BestBlockHashFunc.
func (*BlockChainClientMock) BestBlockHashCalls ¶
func (mock *BlockChainClientMock) BestBlockHashCalls() []struct { Ctx context.Context }
BestBlockHashCalls gets all the calls that were made to BestBlockHash. Check the length with:
len(mockedBlockChainClient.BestBlockHashCalls())
func (*BlockChainClientMock) BlockByHeight ¶
func (mock *BlockChainClientMock) BlockByHeight(ctx context.Context, height int) (*models.Block, error)
BlockByHeight calls BlockByHeightFunc.
func (*BlockChainClientMock) BlockByHeightCalls ¶
func (mock *BlockChainClientMock) BlockByHeightCalls() []struct { Ctx context.Context Height int }
BlockByHeightCalls gets all the calls that were made to BlockByHeight. Check the length with:
len(mockedBlockChainClient.BlockByHeightCalls())
func (*BlockChainClientMock) BlockCalls ¶
func (mock *BlockChainClientMock) BlockCalls() []struct { Ctx context.Context Hash string }
BlockCalls gets all the calls that were made to Block. Check the length with:
len(mockedBlockChainClient.BlockCalls())
func (*BlockChainClientMock) BlockCount ¶
func (mock *BlockChainClientMock) BlockCount(ctx context.Context) (uint32, error)
BlockCount calls BlockCountFunc.
func (*BlockChainClientMock) BlockCountCalls ¶
func (mock *BlockChainClientMock) BlockCountCalls() []struct { Ctx context.Context }
BlockCountCalls gets all the calls that were made to BlockCount. Check the length with:
len(mockedBlockChainClient.BlockCountCalls())
func (*BlockChainClientMock) BlockDecodeHeader ¶
func (mock *BlockChainClientMock) BlockDecodeHeader(ctx context.Context, hash string) (*models.BlockDecodeHeader, error)
BlockDecodeHeader calls BlockDecodeHeaderFunc.
func (*BlockChainClientMock) BlockDecodeHeaderByHeight ¶
func (mock *BlockChainClientMock) BlockDecodeHeaderByHeight(ctx context.Context, height int) (*models.BlockDecodeHeader, error)
BlockDecodeHeaderByHeight calls BlockDecodeHeaderByHeightFunc.
func (*BlockChainClientMock) BlockDecodeHeaderByHeightCalls ¶
func (mock *BlockChainClientMock) BlockDecodeHeaderByHeightCalls() []struct { Ctx context.Context Height int }
BlockDecodeHeaderByHeightCalls gets all the calls that were made to BlockDecodeHeaderByHeight. Check the length with:
len(mockedBlockChainClient.BlockDecodeHeaderByHeightCalls())
func (*BlockChainClientMock) BlockDecodeHeaderCalls ¶
func (mock *BlockChainClientMock) BlockDecodeHeaderCalls() []struct { Ctx context.Context Hash string }
BlockDecodeHeaderCalls gets all the calls that were made to BlockDecodeHeader. Check the length with:
len(mockedBlockChainClient.BlockDecodeHeaderCalls())
func (*BlockChainClientMock) BlockHashCalls ¶
func (mock *BlockChainClientMock) BlockHashCalls() []struct { Ctx context.Context Height int }
BlockHashCalls gets all the calls that were made to BlockHash. Check the length with:
len(mockedBlockChainClient.BlockHashCalls())
func (*BlockChainClientMock) BlockHeader ¶
func (mock *BlockChainClientMock) BlockHeader(ctx context.Context, hash string) (*models.BlockHeader, error)
BlockHeader calls BlockHeaderFunc.
func (*BlockChainClientMock) BlockHeaderCalls ¶
func (mock *BlockChainClientMock) BlockHeaderCalls() []struct { Ctx context.Context Hash string }
BlockHeaderCalls gets all the calls that were made to BlockHeader. Check the length with:
len(mockedBlockChainClient.BlockHeaderCalls())
func (*BlockChainClientMock) BlockHeaderHex ¶
BlockHeaderHex calls BlockHeaderHexFunc.
func (*BlockChainClientMock) BlockHeaderHexCalls ¶
func (mock *BlockChainClientMock) BlockHeaderHexCalls() []struct { Ctx context.Context Hash string }
BlockHeaderHexCalls gets all the calls that were made to BlockHeaderHex. Check the length with:
len(mockedBlockChainClient.BlockHeaderHexCalls())
func (*BlockChainClientMock) BlockHexByHeight ¶
BlockHexByHeight calls BlockHexByHeightFunc.
func (*BlockChainClientMock) BlockHexByHeightCalls ¶
func (mock *BlockChainClientMock) BlockHexByHeightCalls() []struct { Ctx context.Context Height int }
BlockHexByHeightCalls gets all the calls that were made to BlockHexByHeight. Check the length with:
len(mockedBlockChainClient.BlockHexByHeightCalls())
func (*BlockChainClientMock) BlockHexCalls ¶
func (mock *BlockChainClientMock) BlockHexCalls() []struct { Ctx context.Context Hash string }
BlockHexCalls gets all the calls that were made to BlockHex. Check the length with:
len(mockedBlockChainClient.BlockHexCalls())
func (*BlockChainClientMock) BlockStats ¶
func (mock *BlockChainClientMock) BlockStats(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error)
BlockStats calls BlockStatsFunc.
func (*BlockChainClientMock) BlockStatsByHeight ¶
func (mock *BlockChainClientMock) BlockStatsByHeight(ctx context.Context, height int, fields ...string) (*models.BlockStats, error)
BlockStatsByHeight calls BlockStatsByHeightFunc.
func (*BlockChainClientMock) BlockStatsByHeightCalls ¶
func (mock *BlockChainClientMock) BlockStatsByHeightCalls() []struct { Ctx context.Context Height int Fields []string }
BlockStatsByHeightCalls gets all the calls that were made to BlockStatsByHeight. Check the length with:
len(mockedBlockChainClient.BlockStatsByHeightCalls())
func (*BlockChainClientMock) BlockStatsCalls ¶
func (mock *BlockChainClientMock) BlockStatsCalls() []struct { Ctx context.Context Hash string Fields []string }
BlockStatsCalls gets all the calls that were made to BlockStats. Check the length with:
len(mockedBlockChainClient.BlockStatsCalls())
func (*BlockChainClientMock) ChainInfoCalls ¶
func (mock *BlockChainClientMock) ChainInfoCalls() []struct { Ctx context.Context }
ChainInfoCalls gets all the calls that were made to ChainInfo. Check the length with:
len(mockedBlockChainClient.ChainInfoCalls())
func (*BlockChainClientMock) ChainTipsCalls ¶
func (mock *BlockChainClientMock) ChainTipsCalls() []struct { Ctx context.Context }
ChainTipsCalls gets all the calls that were made to ChainTips. Check the length with:
len(mockedBlockChainClient.ChainTipsCalls())
func (*BlockChainClientMock) ChainTxStats ¶
func (mock *BlockChainClientMock) ChainTxStats(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error)
ChainTxStats calls ChainTxStatsFunc.
func (*BlockChainClientMock) ChainTxStatsCalls ¶
func (mock *BlockChainClientMock) ChainTxStatsCalls() []struct { Ctx context.Context Opts *models.OptsChainTxStats }
ChainTxStatsCalls gets all the calls that were made to ChainTxStats. Check the length with:
len(mockedBlockChainClient.ChainTxStatsCalls())
func (*BlockChainClientMock) CheckJournal ¶
func (mock *BlockChainClientMock) CheckJournal(ctx context.Context) (*models.JournalStatus, error)
CheckJournal calls CheckJournalFunc.
func (*BlockChainClientMock) CheckJournalCalls ¶
func (mock *BlockChainClientMock) CheckJournalCalls() []struct { Ctx context.Context }
CheckJournalCalls gets all the calls that were made to CheckJournal. Check the length with:
len(mockedBlockChainClient.CheckJournalCalls())
func (*BlockChainClientMock) Difficulty ¶
func (mock *BlockChainClientMock) Difficulty(ctx context.Context) (float64, error)
Difficulty calls DifficultyFunc.
func (*BlockChainClientMock) DifficultyCalls ¶
func (mock *BlockChainClientMock) DifficultyCalls() []struct { Ctx context.Context }
DifficultyCalls gets all the calls that were made to Difficulty. Check the length with:
len(mockedBlockChainClient.DifficultyCalls())
func (*BlockChainClientMock) Generate ¶
func (mock *BlockChainClientMock) Generate(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error)
Generate calls GenerateFunc.
func (*BlockChainClientMock) GenerateCalls ¶
func (mock *BlockChainClientMock) GenerateCalls() []struct { Ctx context.Context N int Opts *models.OptsGenerate }
GenerateCalls gets all the calls that were made to Generate. Check the length with:
len(mockedBlockChainClient.GenerateCalls())
func (*BlockChainClientMock) GenerateToAddress ¶
func (mock *BlockChainClientMock) GenerateToAddress(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error)
GenerateToAddress calls GenerateToAddressFunc.
func (*BlockChainClientMock) GenerateToAddressCalls ¶
func (mock *BlockChainClientMock) GenerateToAddressCalls() []struct { Ctx context.Context N int Addr string Opts *models.OptsGenerate }
GenerateToAddressCalls gets all the calls that were made to GenerateToAddress. Check the length with:
len(mockedBlockChainClient.GenerateToAddressCalls())
func (*BlockChainClientMock) InvalidateBlock ¶
func (mock *BlockChainClientMock) InvalidateBlock(ctx context.Context, hash string) error
InvalidateBlock calls InvalidateBlockFunc.
func (*BlockChainClientMock) LegacyMerkleProof ¶
func (mock *BlockChainClientMock) LegacyMerkleProof(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error)
LegacyMerkleProof calls LegacyMerkleProofFunc.
func (*BlockChainClientMock) LegacyMerkleProofCalls ¶
func (mock *BlockChainClientMock) LegacyMerkleProofCalls() []struct { Ctx context.Context TxID string Opts *models.OptsLegacyMerkleProof }
LegacyMerkleProofCalls gets all the calls that were made to LegacyMerkleProof. Check the length with:
len(mockedBlockChainClient.LegacyMerkleProofCalls())
func (*BlockChainClientMock) MempoolAncestorIDs ¶
func (mock *BlockChainClientMock) MempoolAncestorIDs(ctx context.Context, txID string) ([]string, error)
MempoolAncestorIDs calls MempoolAncestorIDsFunc.
func (*BlockChainClientMock) MempoolAncestorIDsCalls ¶
func (mock *BlockChainClientMock) MempoolAncestorIDsCalls() []struct { Ctx context.Context TxID string }
MempoolAncestorIDsCalls gets all the calls that were made to MempoolAncestorIDs. Check the length with:
len(mockedBlockChainClient.MempoolAncestorIDsCalls())
func (*BlockChainClientMock) MempoolAncestors ¶
func (mock *BlockChainClientMock) MempoolAncestors(ctx context.Context, txID string) (models.MempoolTxs, error)
MempoolAncestors calls MempoolAncestorsFunc.
func (*BlockChainClientMock) MempoolAncestorsCalls ¶
func (mock *BlockChainClientMock) MempoolAncestorsCalls() []struct { Ctx context.Context TxID string }
MempoolAncestorsCalls gets all the calls that were made to MempoolAncestors. Check the length with:
len(mockedBlockChainClient.MempoolAncestorsCalls())
func (*BlockChainClientMock) MempoolDescendantIDs ¶
func (mock *BlockChainClientMock) MempoolDescendantIDs(ctx context.Context, txID string) ([]string, error)
MempoolDescendantIDs calls MempoolDescendantIDsFunc.
func (*BlockChainClientMock) MempoolDescendantIDsCalls ¶
func (mock *BlockChainClientMock) MempoolDescendantIDsCalls() []struct { Ctx context.Context TxID string }
MempoolDescendantIDsCalls gets all the calls that were made to MempoolDescendantIDs. Check the length with:
len(mockedBlockChainClient.MempoolDescendantIDsCalls())
func (*BlockChainClientMock) MempoolDescendants ¶
func (mock *BlockChainClientMock) MempoolDescendants(ctx context.Context, txID string) (models.MempoolTxs, error)
MempoolDescendants calls MempoolDescendantsFunc.
func (*BlockChainClientMock) MempoolDescendantsCalls ¶
func (mock *BlockChainClientMock) MempoolDescendantsCalls() []struct { Ctx context.Context TxID string }
MempoolDescendantsCalls gets all the calls that were made to MempoolDescendants. Check the length with:
len(mockedBlockChainClient.MempoolDescendantsCalls())
func (*BlockChainClientMock) MempoolEntry ¶
func (mock *BlockChainClientMock) MempoolEntry(ctx context.Context, txID string) (*models.MempoolEntry, error)
MempoolEntry calls MempoolEntryFunc.
func (*BlockChainClientMock) MempoolEntryCalls ¶
func (mock *BlockChainClientMock) MempoolEntryCalls() []struct { Ctx context.Context TxID string }
MempoolEntryCalls gets all the calls that were made to MempoolEntry. Check the length with:
len(mockedBlockChainClient.MempoolEntryCalls())
func (*BlockChainClientMock) MerkleProof ¶
func (mock *BlockChainClientMock) MerkleProof(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error)
MerkleProof calls MerkleProofFunc.
func (*BlockChainClientMock) MerkleProofCalls ¶
func (mock *BlockChainClientMock) MerkleProofCalls() []struct { Ctx context.Context BlockHash string TxID string Opts *models.OptsMerkleProof }
MerkleProofCalls gets all the calls that were made to MerkleProof. Check the length with:
len(mockedBlockChainClient.MerkleProofCalls())
func (*BlockChainClientMock) Output ¶
func (mock *BlockChainClientMock) Output(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error)
Output calls OutputFunc.
func (*BlockChainClientMock) OutputCalls ¶
func (mock *BlockChainClientMock) OutputCalls() []struct { Ctx context.Context TxID string N int Opts *models.OptsOutput }
OutputCalls gets all the calls that were made to Output. Check the length with:
len(mockedBlockChainClient.OutputCalls())
func (*BlockChainClientMock) OutputSetInfo ¶
func (mock *BlockChainClientMock) OutputSetInfo(ctx context.Context) (*models.OutputSetInfo, error)
OutputSetInfo calls OutputSetInfoFunc.
func (*BlockChainClientMock) OutputSetInfoCalls ¶
func (mock *BlockChainClientMock) OutputSetInfoCalls() []struct { Ctx context.Context }
OutputSetInfoCalls gets all the calls that were made to OutputSetInfo. Check the length with:
len(mockedBlockChainClient.OutputSetInfoCalls())
func (*BlockChainClientMock) PreciousBlock ¶
func (mock *BlockChainClientMock) PreciousBlock(ctx context.Context, blockHash string) error
PreciousBlock calls PreciousBlockFunc.
func (*BlockChainClientMock) PreciousBlockCalls ¶
func (mock *BlockChainClientMock) PreciousBlockCalls() []struct { Ctx context.Context BlockHash string }
PreciousBlockCalls gets all the calls that were made to PreciousBlock. Check the length with:
len(mockedBlockChainClient.PreciousBlockCalls())
func (*BlockChainClientMock) PruneChain ¶
PruneChain calls PruneChainFunc.
func (*BlockChainClientMock) PruneChainCalls ¶
func (mock *BlockChainClientMock) PruneChainCalls() []struct { Ctx context.Context Height int }
PruneChainCalls gets all the calls that were made to PruneChain. Check the length with:
len(mockedBlockChainClient.PruneChainCalls())
func (*BlockChainClientMock) RawMempool ¶
func (mock *BlockChainClientMock) RawMempool(ctx context.Context) (models.MempoolTxs, error)
RawMempool calls RawMempoolFunc.
func (*BlockChainClientMock) RawMempoolCalls ¶
func (mock *BlockChainClientMock) RawMempoolCalls() []struct { Ctx context.Context }
RawMempoolCalls gets all the calls that were made to RawMempool. Check the length with:
len(mockedBlockChainClient.RawMempoolCalls())
func (*BlockChainClientMock) RawMempoolIDs ¶
func (mock *BlockChainClientMock) RawMempoolIDs(ctx context.Context) ([]string, error)
RawMempoolIDs calls RawMempoolIDsFunc.
func (*BlockChainClientMock) RawMempoolIDsCalls ¶
func (mock *BlockChainClientMock) RawMempoolIDsCalls() []struct { Ctx context.Context }
RawMempoolIDsCalls gets all the calls that were made to RawMempoolIDs. Check the length with:
len(mockedBlockChainClient.RawMempoolIDsCalls())
func (*BlockChainClientMock) RawNonFinalMempool ¶
func (mock *BlockChainClientMock) RawNonFinalMempool(ctx context.Context) ([]string, error)
RawNonFinalMempool calls RawNonFinalMempoolFunc.
func (*BlockChainClientMock) RawNonFinalMempoolCalls ¶
func (mock *BlockChainClientMock) RawNonFinalMempoolCalls() []struct { Ctx context.Context }
RawNonFinalMempoolCalls gets all the calls that were made to RawNonFinalMempool. Check the length with:
len(mockedBlockChainClient.RawNonFinalMempoolCalls())
func (*BlockChainClientMock) RebuildJournal ¶
func (mock *BlockChainClientMock) RebuildJournal(ctx context.Context) error
RebuildJournal calls RebuildJournalFunc.
func (*BlockChainClientMock) RebuildJournalCalls ¶
func (mock *BlockChainClientMock) RebuildJournalCalls() []struct { Ctx context.Context }
RebuildJournalCalls gets all the calls that were made to RebuildJournal. Check the length with:
len(mockedBlockChainClient.RebuildJournalCalls())
func (*BlockChainClientMock) VerifyChain ¶
func (mock *BlockChainClientMock) VerifyChain(ctx context.Context) (bool, error)
VerifyChain calls VerifyChainFunc.
func (*BlockChainClientMock) VerifyChainCalls ¶
func (mock *BlockChainClientMock) VerifyChainCalls() []struct { Ctx context.Context }
VerifyChainCalls gets all the calls that were made to VerifyChain. Check the length with:
len(mockedBlockChainClient.VerifyChainCalls())
type ControlClientMock ¶
type ControlClientMock struct { // ActiveZMQNotificationsFunc mocks the ActiveZMQNotifications method. ActiveZMQNotificationsFunc func(ctx context.Context) ([]*models.ZMQNotification, error) // DumpParamsFunc mocks the DumpParams method. DumpParamsFunc func(ctx context.Context) ([]string, error) // InfoFunc mocks the Info method. InfoFunc func(ctx context.Context) (*models.Info, error) // MemoryInfoFunc mocks the MemoryInfo method. MemoryInfoFunc func(ctx context.Context) (*models.MemoryInfo, error) // SettingsFunc mocks the Settings method. SettingsFunc func(ctx context.Context) (*models.Settings, error) // StopFunc mocks the Stop method. StopFunc func(ctx context.Context) error // UptimeFunc mocks the Uptime method. UptimeFunc func(ctx context.Context) (time.Duration, error) // contains filtered or unexported fields }
ControlClientMock is a mock implementation of bn.ControlClient.
func TestSomethingThatUsesControlClient(t *testing.T) { // make and configure a mocked bn.ControlClient mockedControlClient := &ControlClientMock{ ActiveZMQNotificationsFunc: func(ctx context.Context) ([]*models.ZMQNotification, error) { panic("mock out the ActiveZMQNotifications method") }, DumpParamsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the DumpParams method") }, InfoFunc: func(ctx context.Context) (*models.Info, error) { panic("mock out the Info method") }, MemoryInfoFunc: func(ctx context.Context) (*models.MemoryInfo, error) { panic("mock out the MemoryInfo method") }, SettingsFunc: func(ctx context.Context) (*models.Settings, error) { panic("mock out the Settings method") }, StopFunc: func(ctx context.Context) error { panic("mock out the Stop method") }, UptimeFunc: func(ctx context.Context) (time.Duration, error) { panic("mock out the Uptime method") }, } // use mockedControlClient in code that requires bn.ControlClient // and then make assertions. }
func (*ControlClientMock) ActiveZMQNotifications ¶
func (mock *ControlClientMock) ActiveZMQNotifications(ctx context.Context) ([]*models.ZMQNotification, error)
ActiveZMQNotifications calls ActiveZMQNotificationsFunc.
func (*ControlClientMock) ActiveZMQNotificationsCalls ¶
func (mock *ControlClientMock) ActiveZMQNotificationsCalls() []struct { Ctx context.Context }
ActiveZMQNotificationsCalls gets all the calls that were made to ActiveZMQNotifications. Check the length with:
len(mockedControlClient.ActiveZMQNotificationsCalls())
func (*ControlClientMock) DumpParams ¶
func (mock *ControlClientMock) DumpParams(ctx context.Context) ([]string, error)
DumpParams calls DumpParamsFunc.
func (*ControlClientMock) DumpParamsCalls ¶
func (mock *ControlClientMock) DumpParamsCalls() []struct { Ctx context.Context }
DumpParamsCalls gets all the calls that were made to DumpParams. Check the length with:
len(mockedControlClient.DumpParamsCalls())
func (*ControlClientMock) InfoCalls ¶
func (mock *ControlClientMock) InfoCalls() []struct { Ctx context.Context }
InfoCalls gets all the calls that were made to Info. Check the length with:
len(mockedControlClient.InfoCalls())
func (*ControlClientMock) MemoryInfo ¶
func (mock *ControlClientMock) MemoryInfo(ctx context.Context) (*models.MemoryInfo, error)
MemoryInfo calls MemoryInfoFunc.
func (*ControlClientMock) MemoryInfoCalls ¶
func (mock *ControlClientMock) MemoryInfoCalls() []struct { Ctx context.Context }
MemoryInfoCalls gets all the calls that were made to MemoryInfo. Check the length with:
len(mockedControlClient.MemoryInfoCalls())
func (*ControlClientMock) SettingsCalls ¶
func (mock *ControlClientMock) SettingsCalls() []struct { Ctx context.Context }
SettingsCalls gets all the calls that were made to Settings. Check the length with:
len(mockedControlClient.SettingsCalls())
func (*ControlClientMock) Stop ¶
func (mock *ControlClientMock) Stop(ctx context.Context) error
Stop calls StopFunc.
func (*ControlClientMock) StopCalls ¶
func (mock *ControlClientMock) StopCalls() []struct { Ctx context.Context }
StopCalls gets all the calls that were made to Stop. Check the length with:
len(mockedControlClient.StopCalls())
func (*ControlClientMock) UptimeCalls ¶
func (mock *ControlClientMock) UptimeCalls() []struct { Ctx context.Context }
UptimeCalls gets all the calls that were made to Uptime. Check the length with:
len(mockedControlClient.UptimeCalls())
type MiningClientMock ¶
type MiningClientMock struct { // BlockTemplateFunc mocks the BlockTemplate method. BlockTemplateFunc func(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error) // MiningCandidateFunc mocks the MiningCandidate method. MiningCandidateFunc func(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error) // MiningInfoFunc mocks the MiningInfo method. MiningInfoFunc func(ctx context.Context) (*models.MiningInfo, error) // NetworkHashPSFunc mocks the NetworkHashPS method. NetworkHashPSFunc func(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error) // PrioritiseTxFunc mocks the PrioritiseTx method. PrioritiseTxFunc func(ctx context.Context, txID string, feeDelta int64) (bool, error) // SubmitBlockFunc mocks the SubmitBlock method. SubmitBlockFunc func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) // SubmitMiningSolutionFunc mocks the SubmitMiningSolution method. SubmitMiningSolutionFunc func(ctx context.Context, solution *models.MiningSolution) (string, error) // VerifyBlockCandidateFunc mocks the VerifyBlockCandidate method. VerifyBlockCandidateFunc func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) // contains filtered or unexported fields }
MiningClientMock is a mock implementation of bn.MiningClient.
func TestSomethingThatUsesMiningClient(t *testing.T) { // make and configure a mocked bn.MiningClient mockedMiningClient := &MiningClientMock{ BlockTemplateFunc: func(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error) { panic("mock out the BlockTemplate method") }, MiningCandidateFunc: func(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error) { panic("mock out the MiningCandidate method") }, MiningInfoFunc: func(ctx context.Context) (*models.MiningInfo, error) { panic("mock out the MiningInfo method") }, NetworkHashPSFunc: func(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error) { panic("mock out the NetworkHashPS method") }, PrioritiseTxFunc: func(ctx context.Context, txID string, feeDelta int64) (bool, error) { panic("mock out the PrioritiseTx method") }, SubmitBlockFunc: func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) { panic("mock out the SubmitBlock method") }, SubmitMiningSolutionFunc: func(ctx context.Context, solution *models.MiningSolution) (string, error) { panic("mock out the SubmitMiningSolution method") }, VerifyBlockCandidateFunc: func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) { panic("mock out the VerifyBlockCandidate method") }, } // use mockedMiningClient in code that requires bn.MiningClient // and then make assertions. }
func (*MiningClientMock) BlockTemplate ¶
func (mock *MiningClientMock) BlockTemplate(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error)
BlockTemplate calls BlockTemplateFunc.
func (*MiningClientMock) BlockTemplateCalls ¶
func (mock *MiningClientMock) BlockTemplateCalls() []struct { Ctx context.Context Opts *models.BlockTemplateRequest }
BlockTemplateCalls gets all the calls that were made to BlockTemplate. Check the length with:
len(mockedMiningClient.BlockTemplateCalls())
func (*MiningClientMock) MiningCandidate ¶
func (mock *MiningClientMock) MiningCandidate(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error)
MiningCandidate calls MiningCandidateFunc.
func (*MiningClientMock) MiningCandidateCalls ¶
func (mock *MiningClientMock) MiningCandidateCalls() []struct { Ctx context.Context Opts *models.OptsMiningCandidate }
MiningCandidateCalls gets all the calls that were made to MiningCandidate. Check the length with:
len(mockedMiningClient.MiningCandidateCalls())
func (*MiningClientMock) MiningInfo ¶
func (mock *MiningClientMock) MiningInfo(ctx context.Context) (*models.MiningInfo, error)
MiningInfo calls MiningInfoFunc.
func (*MiningClientMock) MiningInfoCalls ¶
func (mock *MiningClientMock) MiningInfoCalls() []struct { Ctx context.Context }
MiningInfoCalls gets all the calls that were made to MiningInfo. Check the length with:
len(mockedMiningClient.MiningInfoCalls())
func (*MiningClientMock) NetworkHashPS ¶
func (mock *MiningClientMock) NetworkHashPS(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error)
NetworkHashPS calls NetworkHashPSFunc.
func (*MiningClientMock) NetworkHashPSCalls ¶
func (mock *MiningClientMock) NetworkHashPSCalls() []struct { Ctx context.Context Opts *models.OptsNetworkHashPS }
NetworkHashPSCalls gets all the calls that were made to NetworkHashPS. Check the length with:
len(mockedMiningClient.NetworkHashPSCalls())
func (*MiningClientMock) PrioritiseTx ¶
func (mock *MiningClientMock) PrioritiseTx(ctx context.Context, txID string, feeDelta int64) (bool, error)
PrioritiseTx calls PrioritiseTxFunc.
func (*MiningClientMock) PrioritiseTxCalls ¶
func (mock *MiningClientMock) PrioritiseTxCalls() []struct { Ctx context.Context TxID string FeeDelta int64 }
PrioritiseTxCalls gets all the calls that were made to PrioritiseTx. Check the length with:
len(mockedMiningClient.PrioritiseTxCalls())
func (*MiningClientMock) SubmitBlock ¶
func (mock *MiningClientMock) SubmitBlock(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
SubmitBlock calls SubmitBlockFunc.
func (*MiningClientMock) SubmitBlockCalls ¶
func (mock *MiningClientMock) SubmitBlockCalls() []struct { Ctx context.Context Block *bc.Block Params *models.OptsSubmitBlock }
SubmitBlockCalls gets all the calls that were made to SubmitBlock. Check the length with:
len(mockedMiningClient.SubmitBlockCalls())
func (*MiningClientMock) SubmitMiningSolution ¶
func (mock *MiningClientMock) SubmitMiningSolution(ctx context.Context, solution *models.MiningSolution) (string, error)
SubmitMiningSolution calls SubmitMiningSolutionFunc.
func (*MiningClientMock) SubmitMiningSolutionCalls ¶
func (mock *MiningClientMock) SubmitMiningSolutionCalls() []struct { Ctx context.Context Solution *models.MiningSolution }
SubmitMiningSolutionCalls gets all the calls that were made to SubmitMiningSolution. Check the length with:
len(mockedMiningClient.SubmitMiningSolutionCalls())
func (*MiningClientMock) VerifyBlockCandidate ¶
func (mock *MiningClientMock) VerifyBlockCandidate(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
VerifyBlockCandidate calls VerifyBlockCandidateFunc.
func (*MiningClientMock) VerifyBlockCandidateCalls ¶
func (mock *MiningClientMock) VerifyBlockCandidateCalls() []struct { Ctx context.Context Block *bc.Block Params *models.OptsSubmitBlock }
VerifyBlockCandidateCalls gets all the calls that were made to VerifyBlockCandidate. Check the length with:
len(mockedMiningClient.VerifyBlockCandidateCalls())
type NetworkClientMock ¶
type NetworkClientMock struct { // AddNodeFunc mocks the AddNode method. AddNodeFunc func(ctx context.Context, node string, command internal.NodeAddType) error // ClearBannedFunc mocks the ClearBanned method. ClearBannedFunc func(ctx context.Context) error // ConnectionCountFunc mocks the ConnectionCount method. ConnectionCountFunc func(ctx context.Context) (uint64, error) // DisconnectNodeFunc mocks the DisconnectNode method. DisconnectNodeFunc func(ctx context.Context, params models.ParamsDisconnectNode) error // ExcessiveBlockFunc mocks the ExcessiveBlock method. ExcessiveBlockFunc func(ctx context.Context) (*models.ExcessiveBlock, error) // ListBannedFunc mocks the ListBanned method. ListBannedFunc func(ctx context.Context) ([]*models.BannedSubnet, error) // NetworkInfoFunc mocks the NetworkInfo method. NetworkInfoFunc func(ctx context.Context) (*models.NetworkInfo, error) // NetworkTotalsFunc mocks the NetworkTotals method. NetworkTotalsFunc func(ctx context.Context) (*models.NetworkTotals, error) // NodeInfoFunc mocks the NodeInfo method. NodeInfoFunc func(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error) // PeerInfoFunc mocks the PeerInfo method. PeerInfoFunc func(ctx context.Context) ([]*models.PeerInfo, error) // PingFunc mocks the Ping method. PingFunc func(ctx context.Context) error // SetBanFunc mocks the SetBan method. SetBanFunc func(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error // SetBlockMaxSizeFunc mocks the SetBlockMaxSize method. SetBlockMaxSizeFunc func(ctx context.Context, size uint64) (string, error) // SetExcessiveBlockFunc mocks the SetExcessiveBlock method. SetExcessiveBlockFunc func(ctx context.Context, size uint64) (string, error) // SetNetworkActiveFunc mocks the SetNetworkActive method. SetNetworkActiveFunc func(ctx context.Context, enabled bool) error // SetTxPropagationFrequencyFunc mocks the SetTxPropagationFrequency method. SetTxPropagationFrequencyFunc func(ctx context.Context, frequency uint64) error // contains filtered or unexported fields }
NetworkClientMock is a mock implementation of bn.NetworkClient.
func TestSomethingThatUsesNetworkClient(t *testing.T) { // make and configure a mocked bn.NetworkClient mockedNetworkClient := &NetworkClientMock{ AddNodeFunc: func(ctx context.Context, node string, command internal.NodeAddType) error { panic("mock out the AddNode method") }, ClearBannedFunc: func(ctx context.Context) error { panic("mock out the ClearBanned method") }, ConnectionCountFunc: func(ctx context.Context) (uint64, error) { panic("mock out the ConnectionCount method") }, DisconnectNodeFunc: func(ctx context.Context, params models.ParamsDisconnectNode) error { panic("mock out the DisconnectNode method") }, ExcessiveBlockFunc: func(ctx context.Context) (*models.ExcessiveBlock, error) { panic("mock out the ExcessiveBlock method") }, ListBannedFunc: func(ctx context.Context) ([]*models.BannedSubnet, error) { panic("mock out the ListBanned method") }, NetworkInfoFunc: func(ctx context.Context) (*models.NetworkInfo, error) { panic("mock out the NetworkInfo method") }, NetworkTotalsFunc: func(ctx context.Context) (*models.NetworkTotals, error) { panic("mock out the NetworkTotals method") }, NodeInfoFunc: func(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error) { panic("mock out the NodeInfo method") }, PeerInfoFunc: func(ctx context.Context) ([]*models.PeerInfo, error) { panic("mock out the PeerInfo method") }, PingFunc: func(ctx context.Context) error { panic("mock out the Ping method") }, SetBanFunc: func(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error { panic("mock out the SetBan method") }, SetBlockMaxSizeFunc: func(ctx context.Context, size uint64) (string, error) { panic("mock out the SetBlockMaxSize method") }, SetExcessiveBlockFunc: func(ctx context.Context, size uint64) (string, error) { panic("mock out the SetExcessiveBlock method") }, SetNetworkActiveFunc: func(ctx context.Context, enabled bool) error { panic("mock out the SetNetworkActive method") }, SetTxPropagationFrequencyFunc: func(ctx context.Context, frequency uint64) error { panic("mock out the SetTxPropagationFrequency method") }, } // use mockedNetworkClient in code that requires bn.NetworkClient // and then make assertions. }
func (*NetworkClientMock) AddNode ¶
func (mock *NetworkClientMock) AddNode(ctx context.Context, node string, command internal.NodeAddType) error
AddNode calls AddNodeFunc.
func (*NetworkClientMock) AddNodeCalls ¶
func (mock *NetworkClientMock) AddNodeCalls() []struct { Ctx context.Context Node string Command internal.NodeAddType }
AddNodeCalls gets all the calls that were made to AddNode. Check the length with:
len(mockedNetworkClient.AddNodeCalls())
func (*NetworkClientMock) ClearBanned ¶
func (mock *NetworkClientMock) ClearBanned(ctx context.Context) error
ClearBanned calls ClearBannedFunc.
func (*NetworkClientMock) ClearBannedCalls ¶
func (mock *NetworkClientMock) ClearBannedCalls() []struct { Ctx context.Context }
ClearBannedCalls gets all the calls that were made to ClearBanned. Check the length with:
len(mockedNetworkClient.ClearBannedCalls())
func (*NetworkClientMock) ConnectionCount ¶
func (mock *NetworkClientMock) ConnectionCount(ctx context.Context) (uint64, error)
ConnectionCount calls ConnectionCountFunc.
func (*NetworkClientMock) ConnectionCountCalls ¶
func (mock *NetworkClientMock) ConnectionCountCalls() []struct { Ctx context.Context }
ConnectionCountCalls gets all the calls that were made to ConnectionCount. Check the length with:
len(mockedNetworkClient.ConnectionCountCalls())
func (*NetworkClientMock) DisconnectNode ¶
func (mock *NetworkClientMock) DisconnectNode(ctx context.Context, params models.ParamsDisconnectNode) error
DisconnectNode calls DisconnectNodeFunc.
func (*NetworkClientMock) DisconnectNodeCalls ¶
func (mock *NetworkClientMock) DisconnectNodeCalls() []struct { Ctx context.Context Params models.ParamsDisconnectNode }
DisconnectNodeCalls gets all the calls that were made to DisconnectNode. Check the length with:
len(mockedNetworkClient.DisconnectNodeCalls())
func (*NetworkClientMock) ExcessiveBlock ¶
func (mock *NetworkClientMock) ExcessiveBlock(ctx context.Context) (*models.ExcessiveBlock, error)
ExcessiveBlock calls ExcessiveBlockFunc.
func (*NetworkClientMock) ExcessiveBlockCalls ¶
func (mock *NetworkClientMock) ExcessiveBlockCalls() []struct { Ctx context.Context }
ExcessiveBlockCalls gets all the calls that were made to ExcessiveBlock. Check the length with:
len(mockedNetworkClient.ExcessiveBlockCalls())
func (*NetworkClientMock) ListBanned ¶
func (mock *NetworkClientMock) ListBanned(ctx context.Context) ([]*models.BannedSubnet, error)
ListBanned calls ListBannedFunc.
func (*NetworkClientMock) ListBannedCalls ¶
func (mock *NetworkClientMock) ListBannedCalls() []struct { Ctx context.Context }
ListBannedCalls gets all the calls that were made to ListBanned. Check the length with:
len(mockedNetworkClient.ListBannedCalls())
func (*NetworkClientMock) NetworkInfo ¶
func (mock *NetworkClientMock) NetworkInfo(ctx context.Context) (*models.NetworkInfo, error)
NetworkInfo calls NetworkInfoFunc.
func (*NetworkClientMock) NetworkInfoCalls ¶
func (mock *NetworkClientMock) NetworkInfoCalls() []struct { Ctx context.Context }
NetworkInfoCalls gets all the calls that were made to NetworkInfo. Check the length with:
len(mockedNetworkClient.NetworkInfoCalls())
func (*NetworkClientMock) NetworkTotals ¶
func (mock *NetworkClientMock) NetworkTotals(ctx context.Context) (*models.NetworkTotals, error)
NetworkTotals calls NetworkTotalsFunc.
func (*NetworkClientMock) NetworkTotalsCalls ¶
func (mock *NetworkClientMock) NetworkTotalsCalls() []struct { Ctx context.Context }
NetworkTotalsCalls gets all the calls that were made to NetworkTotals. Check the length with:
len(mockedNetworkClient.NetworkTotalsCalls())
func (*NetworkClientMock) NodeInfo ¶
func (mock *NetworkClientMock) NodeInfo(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error)
NodeInfo calls NodeInfoFunc.
func (*NetworkClientMock) NodeInfoCalls ¶
func (mock *NetworkClientMock) NodeInfoCalls() []struct { Ctx context.Context Opts *models.OptsNodeInfo }
NodeInfoCalls gets all the calls that were made to NodeInfo. Check the length with:
len(mockedNetworkClient.NodeInfoCalls())
func (*NetworkClientMock) PeerInfoCalls ¶
func (mock *NetworkClientMock) PeerInfoCalls() []struct { Ctx context.Context }
PeerInfoCalls gets all the calls that were made to PeerInfo. Check the length with:
len(mockedNetworkClient.PeerInfoCalls())
func (*NetworkClientMock) Ping ¶
func (mock *NetworkClientMock) Ping(ctx context.Context) error
Ping calls PingFunc.
func (*NetworkClientMock) PingCalls ¶
func (mock *NetworkClientMock) PingCalls() []struct { Ctx context.Context }
PingCalls gets all the calls that were made to Ping. Check the length with:
len(mockedNetworkClient.PingCalls())
func (*NetworkClientMock) SetBan ¶
func (mock *NetworkClientMock) SetBan(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error
SetBan calls SetBanFunc.
func (*NetworkClientMock) SetBanCalls ¶
func (mock *NetworkClientMock) SetBanCalls() []struct { Ctx context.Context Subnet string Action internal.BanAction Opts *models.OptsSetBan }
SetBanCalls gets all the calls that were made to SetBan. Check the length with:
len(mockedNetworkClient.SetBanCalls())
func (*NetworkClientMock) SetBlockMaxSize ¶
SetBlockMaxSize calls SetBlockMaxSizeFunc.
func (*NetworkClientMock) SetBlockMaxSizeCalls ¶
func (mock *NetworkClientMock) SetBlockMaxSizeCalls() []struct { Ctx context.Context Size uint64 }
SetBlockMaxSizeCalls gets all the calls that were made to SetBlockMaxSize. Check the length with:
len(mockedNetworkClient.SetBlockMaxSizeCalls())
func (*NetworkClientMock) SetExcessiveBlock ¶
SetExcessiveBlock calls SetExcessiveBlockFunc.
func (*NetworkClientMock) SetExcessiveBlockCalls ¶
func (mock *NetworkClientMock) SetExcessiveBlockCalls() []struct { Ctx context.Context Size uint64 }
SetExcessiveBlockCalls gets all the calls that were made to SetExcessiveBlock. Check the length with:
len(mockedNetworkClient.SetExcessiveBlockCalls())
func (*NetworkClientMock) SetNetworkActive ¶
func (mock *NetworkClientMock) SetNetworkActive(ctx context.Context, enabled bool) error
SetNetworkActive calls SetNetworkActiveFunc.
func (*NetworkClientMock) SetNetworkActiveCalls ¶
func (mock *NetworkClientMock) SetNetworkActiveCalls() []struct { Ctx context.Context Enabled bool }
SetNetworkActiveCalls gets all the calls that were made to SetNetworkActive. Check the length with:
len(mockedNetworkClient.SetNetworkActiveCalls())
func (*NetworkClientMock) SetTxPropagationFrequency ¶
func (mock *NetworkClientMock) SetTxPropagationFrequency(ctx context.Context, frequency uint64) error
SetTxPropagationFrequency calls SetTxPropagationFrequencyFunc.
func (*NetworkClientMock) SetTxPropagationFrequencyCalls ¶
func (mock *NetworkClientMock) SetTxPropagationFrequencyCalls() []struct { Ctx context.Context Frequency uint64 }
SetTxPropagationFrequencyCalls gets all the calls that were made to SetTxPropagationFrequency. Check the length with:
len(mockedNetworkClient.SetTxPropagationFrequencyCalls())
type NodeClientMock ¶
type NodeClientMock struct { // AbandonTransactionFunc mocks the AbandonTransaction method. AbandonTransactionFunc func(ctx context.Context, txID string) error // AccountFunc mocks the Account method. AccountFunc func(ctx context.Context, address string) (string, error) // AccountAddressFunc mocks the AccountAddress method. AccountAddressFunc func(ctx context.Context, account string) (string, error) // AccountAddressesFunc mocks the AccountAddresses method. AccountAddressesFunc func(ctx context.Context, account string) ([]string, error) // ActiveZMQNotificationsFunc mocks the ActiveZMQNotifications method. ActiveZMQNotificationsFunc func(ctx context.Context) ([]*models.ZMQNotification, error) // AddMultiSigAddressFunc mocks the AddMultiSigAddress method. AddMultiSigAddressFunc func(ctx context.Context, n int, keys ...string) (string, error) // AddNodeFunc mocks the AddNode method. AddNodeFunc func(ctx context.Context, node string, command internal.NodeAddType) error // AddToConfiscationTransactionWhitelist mocks the AddToConfiscationTransactionWhitelist method AddToConfiscationTransactionWhitelistFunc func(ctx context.Context, confiscationTransactions []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error) // AddToConsensusBlacklistFunc mocks the AddToConsensusBlacklist AddToConsensusBlacklistFunc func(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error) // BackupWalletFunc mocks the BackupWallet method. BackupWalletFunc func(ctx context.Context, dest string) error // BalanceFunc mocks the Balance method. BalanceFunc func(ctx context.Context, opts *models.OptsBalance) (uint64, error) // BestBlockHashFunc mocks the BestBlockHash method. BestBlockHashFunc func(ctx context.Context) (string, error) // BlockFunc mocks the Block method. BlockFunc func(ctx context.Context, hash string) (*models.Block, error) // BlockByHeightFunc mocks the BlockByHeight method. BlockByHeightFunc func(ctx context.Context, height int) (*models.Block, error) // BlockCountFunc mocks the BlockCount method. BlockCountFunc func(ctx context.Context) (uint32, error) // BlockDecodeHeaderFunc mocks the BlockDecodeHeader method. BlockDecodeHeaderFunc func(ctx context.Context, hash string) (*models.BlockDecodeHeader, error) // BlockDecodeHeaderByHeightFunc mocks the BlockDecodeHeaderByHeight method. BlockDecodeHeaderByHeightFunc func(ctx context.Context, height int) (*models.BlockDecodeHeader, error) // BlockHashFunc mocks the BlockHash method. BlockHashFunc func(ctx context.Context, height int) (string, error) // BlockHeaderFunc mocks the BlockHeader method. BlockHeaderFunc func(ctx context.Context, hash string) (*models.BlockHeader, error) // BlockHeaderHexFunc mocks the BlockHeaderHex method. BlockHeaderHexFunc func(ctx context.Context, hash string) (string, error) // BlockHexFunc mocks the BlockHex method. BlockHexFunc func(ctx context.Context, hash string) (string, error) // BlockHexByHeightFunc mocks the BlockHexByHeight method. BlockHexByHeightFunc func(ctx context.Context, height int) (string, error) // BlockStatsFunc mocks the BlockStats method. BlockStatsFunc func(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error) // BlockStatsByHeightFunc mocks the BlockStatsByHeight method. BlockStatsByHeightFunc func(ctx context.Context, height int, fields ...string) (*models.BlockStats, error) // BlockTemplateFunc mocks the BlockTemplate method. BlockTemplateFunc func(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error) // ChainInfoFunc mocks the ChainInfo method. ChainInfoFunc func(ctx context.Context) (*models.ChainInfo, error) // ChainTipsFunc mocks the ChainTips method. ChainTipsFunc func(ctx context.Context) ([]*models.ChainTip, error) // ChainTxStatsFunc mocks the ChainTxStats method. ChainTxStatsFunc func(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error) // CheckJournalFunc mocks the CheckJournal method. CheckJournalFunc func(ctx context.Context) (*models.JournalStatus, error) // ClearBannedFunc mocks the ClearBanned method. ClearBannedFunc func(ctx context.Context) error // ClearInvalidTransactionsFunc mocks the ClearInvalidTransactions method. ClearInvalidTransactionsFunc func(ctx context.Context) (uint64, error) // ConnectionCountFunc mocks the ConnectionCount method. ConnectionCountFunc func(ctx context.Context) (uint64, error) // CreateMultiSigFunc mocks the CreateMultiSig method. CreateMultiSigFunc func(ctx context.Context, n int, keys ...string) (*models.MultiSig, error) // CreateRawTransactionFunc mocks the CreateRawTransaction method. CreateRawTransactionFunc func(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error) // DifficultyFunc mocks the Difficulty method. DifficultyFunc func(ctx context.Context) (float64, error) // DisconnectNodeFunc mocks the DisconnectNode method. DisconnectNodeFunc func(ctx context.Context, params models.ParamsDisconnectNode) error // DumpParamsFunc mocks the DumpParams method. DumpParamsFunc func(ctx context.Context) ([]string, error) // DumpPrivateKeyFunc mocks the DumpPrivateKey method. DumpPrivateKeyFunc func(ctx context.Context, address string) (*primitives.PrivateKey, error) // DumpWalletFunc mocks the DumpWallet method. DumpWalletFunc func(ctx context.Context, dest string) (*models.DumpWallet, error) // EncryptWalletFunc mocks the EncryptWallet method. EncryptWalletFunc func(ctx context.Context, passphrase string) error // ExcessiveBlockFunc mocks the ExcessiveBlock method. ExcessiveBlockFunc func(ctx context.Context) (*models.ExcessiveBlock, error) // FundRawTransactionFunc mocks the FundRawTransaction method. FundRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error) // GenerateFunc mocks the Generate method. GenerateFunc func(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error) // GenerateToAddressFunc mocks the GenerateToAddress method. GenerateToAddressFunc func(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error) // ImportAddressFunc mocks the ImportAddress method. ImportAddressFunc func(ctx context.Context, address string, opts *models.OptsImportAddress) error // ImportMultiFunc mocks the ImportMulti method. ImportMultiFunc func(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error) // ImportPrivateKeyFunc mocks the ImportPrivateKey method. ImportPrivateKeyFunc func(ctx context.Context, w *primitives.PrivateKey, opts *models.OptsImportPrivateKey) error // ImportPrunedFundsFunc mocks the ImportPrunedFunds method. ImportPrunedFundsFunc func(ctx context.Context, tx *bt.Tx, txOutProof string) error // ImportPublicKeyFunc mocks the ImportPublicKey method. ImportPublicKeyFunc func(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error // ImportWalletFunc mocks the ImportWallet method. ImportWalletFunc func(ctx context.Context, filename string) error // InfoFunc mocks the Info method. InfoFunc func(ctx context.Context) (*models.Info, error) // InvalidateBlockFunc mocks the InvalidateBlock method. InvalidateBlockFunc func(ctx context.Context, hash string) error // KeypoolRefillFunc mocks the KeypoolRefill method. KeypoolRefillFunc func(ctx context.Context, opts *models.OptsKeypoolRefill) error // LegacyMerkleProofFunc mocks the LegacyMerkleProof method. LegacyMerkleProofFunc func(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error) // ListAccountsFunc mocks the ListAccounts method. ListAccountsFunc func(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error) // ListBannedFunc mocks the ListBanned method. ListBannedFunc func(ctx context.Context) ([]*models.BannedSubnet, error) // ListLockUnspentFunc mocks the ListLockUnspent method. ListLockUnspentFunc func(ctx context.Context) ([]*models.LockUnspent, error) // ListReceivedByAccountFunc mocks the ListReceivedByAccount method. ListReceivedByAccountFunc func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error) // ListReceivedByAddressFunc mocks the ListReceivedByAddress method. ListReceivedByAddressFunc func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error) // ListSinceBlockFunc mocks the ListSinceBlock method. ListSinceBlockFunc func(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error) // ListTransactionsFunc mocks the ListTransactions method. ListTransactionsFunc func(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error) // ListUnspentFunc mocks the ListUnspent method. ListUnspentFunc func(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error) // ListWalletsFunc mocks the ListWallets method. ListWalletsFunc func(ctx context.Context) ([]string, error) // LockUnspentFunc mocks the LockUnspent method. LockUnspentFunc func(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error) // MemoryInfoFunc mocks the MemoryInfo method. MemoryInfoFunc func(ctx context.Context) (*models.MemoryInfo, error) // MempoolAncestorIDsFunc mocks the MempoolAncestorIDs method. MempoolAncestorIDsFunc func(ctx context.Context, txID string) ([]string, error) // MempoolAncestorsFunc mocks the MempoolAncestors method. MempoolAncestorsFunc func(ctx context.Context, txID string) (models.MempoolTxs, error) // MempoolDescendantIDsFunc mocks the MempoolDescendantIDs method. MempoolDescendantIDsFunc func(ctx context.Context, txID string) ([]string, error) // MempoolDescendantsFunc mocks the MempoolDescendants method. MempoolDescendantsFunc func(ctx context.Context, txID string) (models.MempoolTxs, error) // MempoolEntryFunc mocks the MempoolEntry method. MempoolEntryFunc func(ctx context.Context, txID string) (*models.MempoolEntry, error) // MerkleProofFunc mocks the MerkleProof method. MerkleProofFunc func(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error) // MiningCandidateFunc mocks the MiningCandidate method. MiningCandidateFunc func(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error) // MiningInfoFunc mocks the MiningInfo method. MiningInfoFunc func(ctx context.Context) (*models.MiningInfo, error) // MoveFunc mocks the Move method. MoveFunc func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error) // NetworkHashPSFunc mocks the NetworkHashPS method. NetworkHashPSFunc func(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error) // NetworkInfoFunc mocks the NetworkInfo method. NetworkInfoFunc func(ctx context.Context) (*models.NetworkInfo, error) // NetworkTotalsFunc mocks the NetworkTotals method. NetworkTotalsFunc func(ctx context.Context) (*models.NetworkTotals, error) // NewAddressFunc mocks the NewAddress method. NewAddressFunc func(ctx context.Context, opts *models.OptsNewAddress) (string, error) // NodeInfoFunc mocks the NodeInfo method. NodeInfoFunc func(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error) // OutputFunc mocks the Output method. OutputFunc func(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error) // OutputSetInfoFunc mocks the OutputSetInfo method. OutputSetInfoFunc func(ctx context.Context) (*models.OutputSetInfo, error) // PeerInfoFunc mocks the PeerInfo method. PeerInfoFunc func(ctx context.Context) ([]*models.PeerInfo, error) // PingFunc mocks the Ping method. PingFunc func(ctx context.Context) error // PreciousBlockFunc mocks the PreciousBlock method. PreciousBlockFunc func(ctx context.Context, blockHash string) error // PrioritiseTxFunc mocks the PrioritiseTx method. PrioritiseTxFunc func(ctx context.Context, txID string, feeDelta int64) (bool, error) // PruneChainFunc mocks the PruneChain method. PruneChainFunc func(ctx context.Context, height int) (uint32, error) // RawChangeAddressFunc mocks the RawChangeAddress method. RawChangeAddressFunc func(ctx context.Context) (string, error) // RawMempoolFunc mocks the RawMempool method. RawMempoolFunc func(ctx context.Context) (models.MempoolTxs, error) // RawMempoolIDsFunc mocks the RawMempoolIDs method. RawMempoolIDsFunc func(ctx context.Context) ([]string, error) // RawNonFinalMempoolFunc mocks the RawNonFinalMempool method. RawNonFinalMempoolFunc func(ctx context.Context) ([]string, error) // RawTransactionFunc mocks the RawTransaction method. RawTransactionFunc func(ctx context.Context, txID string) (*bt.Tx, error) // RebuildJournalFunc mocks the RebuildJournal method. RebuildJournalFunc func(ctx context.Context) error // ReceivedByAddressFunc mocks the ReceivedByAddress method. ReceivedByAddressFunc func(ctx context.Context, address string) (uint64, error) // RemovePrunedFundsFunc mocks the RemovePrunedFunds method. RemovePrunedFundsFunc func(ctx context.Context, txID string) error // SendFromFunc mocks the SendFrom method. SendFromFunc func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error) // SendManyFunc mocks the SendMany method. SendManyFunc func(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error) // SendRawTransactionFunc mocks the SendRawTransaction method. SendRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error) // SendRawTransactionsFunc mocks the SendRawTransactions method. SendRawTransactionsFunc func(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error) // SendToAddressFunc mocks the SendToAddress method. SendToAddressFunc func(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error) // SetAccountFunc mocks the SetAccount method. SetAccountFunc func(ctx context.Context, address string, account string) error // SetBanFunc mocks the SetBan method. SetBanFunc func(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error // SetBlockMaxSizeFunc mocks the SetBlockMaxSize method. SetBlockMaxSizeFunc func(ctx context.Context, size uint64) (string, error) // SetExcessiveBlockFunc mocks the SetExcessiveBlock method. SetExcessiveBlockFunc func(ctx context.Context, size uint64) (string, error) // SetNetworkActiveFunc mocks the SetNetworkActive method. SetNetworkActiveFunc func(ctx context.Context, enabled bool) error // SetTxFeeFunc mocks the SetTxFee method. SetTxFeeFunc func(ctx context.Context, amount uint64) (bool, error) // SetTxPropagationFrequencyFunc mocks the SetTxPropagationFrequency method. SetTxPropagationFrequencyFunc func(ctx context.Context, frequency uint64) error // SettingsFunc mocks the Settings method. SettingsFunc func(ctx context.Context) (*models.Settings, error) // SignMessageFunc mocks the SignMessage method. SignMessageFunc func(ctx context.Context, address string, message string) (string, error) // SignMessageWithPrivKeyFunc mocks the SignMessageWithPrivKey method. SignMessageWithPrivKeyFunc func(ctx context.Context, w *primitives.PrivateKey, msg string) (string, error) // SignRawTransactionFunc mocks the SignRawTransaction method. SignRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error) // StopFunc mocks the Stop method. StopFunc func(ctx context.Context) error // SubmitBlockFunc mocks the SubmitBlock method. SubmitBlockFunc func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) // SubmitMiningSolutionFunc mocks the SubmitMiningSolution method. SubmitMiningSolutionFunc func(ctx context.Context, solution *models.MiningSolution) (string, error) // TransactionFunc mocks the Transaction method. TransactionFunc func(ctx context.Context, txID string) (*models.Transaction, error) // UnconfirmedBalanceFunc mocks the UnconfirmedBalance method. UnconfirmedBalanceFunc func(ctx context.Context) (uint64, error) // UptimeFunc mocks the Uptime method. UptimeFunc func(ctx context.Context) (time.Duration, error) // ValidateAddressFunc mocks the ValidateAddress method. ValidateAddressFunc func(ctx context.Context, address string) (*models.ValidateAddress, error) // VerifyBlockCandidateFunc mocks the VerifyBlockCandidate method. VerifyBlockCandidateFunc func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) // VerifyChainFunc mocks the VerifyChain method. VerifyChainFunc func(ctx context.Context) (bool, error) // VerifySignedMessageFunc mocks the VerifySignedMessage method. VerifySignedMessageFunc func(ctx context.Context, w *primitives.PrivateKey, signature string, message string) (bool, error) // WalletInfoFunc mocks the WalletInfo method. WalletInfoFunc func(ctx context.Context) (*models.WalletInfo, error) // WalletLockFunc mocks the WalletLock method. WalletLockFunc func(ctx context.Context) error // WalletPhassphraseFunc mocks the WalletPhassphrase method. WalletPhassphraseFunc func(ctx context.Context, passphrase string, timeout int) error // WalletPhassphraseChangeFunc mocks the WalletPhassphraseChange method. WalletPhassphraseChangeFunc func(ctx context.Context, oldPassphrase string, newPassphrase string) error // contains filtered or unexported fields }
NodeClientMock is a mock implementation of bn.NodeClient.
func TestSomethingThatUsesNodeClient(t *testing.T) { // make and configure a mocked bn.NodeClient mockedNodeClient := &NodeClientMock{ AbandonTransactionFunc: func(ctx context.Context, txID string) error { panic("mock out the AbandonTransaction method") }, AccountFunc: func(ctx context.Context, address string) (string, error) { panic("mock out the Account method") }, AccountAddressFunc: func(ctx context.Context, account string) (string, error) { panic("mock out the AccountAddress method") }, AccountAddressesFunc: func(ctx context.Context, account string) ([]string, error) { panic("mock out the AccountAddresses method") }, ActiveZMQNotificationsFunc: func(ctx context.Context) ([]*models.ZMQNotification, error) { panic("mock out the ActiveZMQNotifications method") }, AddMultiSigAddressFunc: func(ctx context.Context, n int, keys ...string) (string, error) { panic("mock out the AddMultiSigAddress method") }, AddNodeFunc: func(ctx context.Context, node string, command internal.NodeAddType) error { panic("mock out the AddNode method") }, BackupWalletFunc: func(ctx context.Context, dest string) error { panic("mock out the BackupWallet method") }, BalanceFunc: func(ctx context.Context, opts *models.OptsBalance) (uint64, error) { panic("mock out the Balance method") }, BestBlockHashFunc: func(ctx context.Context) (string, error) { panic("mock out the BestBlockHash method") }, BlockFunc: func(ctx context.Context, hash string) (*models.Block, error) { panic("mock out the Block method") }, BlockByHeightFunc: func(ctx context.Context, height int) (*models.Block, error) { panic("mock out the BlockByHeight method") }, BlockCountFunc: func(ctx context.Context) (uint32, error) { panic("mock out the BlockCount method") }, BlockDecodeHeaderFunc: func(ctx context.Context, hash string) (*models.BlockDecodeHeader, error) { panic("mock out the BlockDecodeHeader method") }, BlockDecodeHeaderByHeightFunc: func(ctx context.Context, height int) (*models.BlockDecodeHeader, error) { panic("mock out the BlockDecodeHeaderByHeight method") }, BlockHashFunc: func(ctx context.Context, height int) (string, error) { panic("mock out the BlockHash method") }, BlockHeaderFunc: func(ctx context.Context, hash string) (*models.BlockHeader, error) { panic("mock out the BlockHeader method") }, BlockHeaderHexFunc: func(ctx context.Context, hash string) (string, error) { panic("mock out the BlockHeaderHex method") }, BlockHexFunc: func(ctx context.Context, hash string) (string, error) { panic("mock out the BlockHex method") }, BlockHexByHeightFunc: func(ctx context.Context, height int) (string, error) { panic("mock out the BlockHexByHeight method") }, BlockStatsFunc: func(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error) { panic("mock out the BlockStats method") }, BlockStatsByHeightFunc: func(ctx context.Context, height int, fields ...string) (*models.BlockStats, error) { panic("mock out the BlockStatsByHeight method") }, BlockTemplateFunc: func(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error) { panic("mock out the BlockTemplate method") }, ChainInfoFunc: func(ctx context.Context) (*models.ChainInfo, error) { panic("mock out the ChainInfo method") }, ChainTipsFunc: func(ctx context.Context) ([]*models.ChainTip, error) { panic("mock out the ChainTips method") }, ChainTxStatsFunc: func(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error) { panic("mock out the ChainTxStats method") }, CheckJournalFunc: func(ctx context.Context) (*models.JournalStatus, error) { panic("mock out the CheckJournal method") }, ClearBannedFunc: func(ctx context.Context) error { panic("mock out the ClearBanned method") }, ClearInvalidTransactionsFunc: func(ctx context.Context) (uint64, error) { panic("mock out the ClearInvalidTransactions method") }, ConnectionCountFunc: func(ctx context.Context) (uint64, error) { panic("mock out the ConnectionCount method") }, CreateMultiSigFunc: func(ctx context.Context, n int, keys ...string) (*models.MultiSig, error) { panic("mock out the CreateMultiSig method") }, CreateRawTransactionFunc: func(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error) { panic("mock out the CreateRawTransaction method") }, DifficultyFunc: func(ctx context.Context) (float64, error) { panic("mock out the Difficulty method") }, DisconnectNodeFunc: func(ctx context.Context, params models.ParamsDisconnectNode) error { panic("mock out the DisconnectNode method") }, DumpParamsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the DumpParams method") }, DumpPrivateKeyFunc: func(ctx context.Context, address string) (*primitives.PrivateKey, error) { panic("mock out the DumpPrivateKey method") }, DumpWalletFunc: func(ctx context.Context, dest string) (*models.DumpWallet, error) { panic("mock out the DumpWallet method") }, EncryptWalletFunc: func(ctx context.Context, passphrase string) error { panic("mock out the EncryptWallet method") }, ExcessiveBlockFunc: func(ctx context.Context) (*models.ExcessiveBlock, error) { panic("mock out the ExcessiveBlock method") }, FundRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error) { panic("mock out the FundRawTransaction method") }, GenerateFunc: func(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error) { panic("mock out the Generate method") }, GenerateToAddressFunc: func(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error) { panic("mock out the GenerateToAddress method") }, ImportAddressFunc: func(ctx context.Context, address string, opts *models.OptsImportAddress) error { panic("mock out the ImportAddress method") }, ImportMultiFunc: func(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error) { panic("mock out the ImportMulti method") }, ImportPrivateKeyFunc: func(ctx context.Context, w *primitives.PrivateKey, opts *models.OptsImportPrivateKey) error { panic("mock out the ImportPrivateKey method") }, ImportPrunedFundsFunc: func(ctx context.Context, tx *bt.Tx, txOutProof string) error { panic("mock out the ImportPrunedFunds method") }, ImportPublicKeyFunc: func(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error { panic("mock out the ImportPublicKey method") }, ImportWalletFunc: func(ctx context.Context, filename string) error { panic("mock out the ImportWallet method") }, InfoFunc: func(ctx context.Context) (*models.Info, error) { panic("mock out the Info method") }, KeypoolRefillFunc: func(ctx context.Context, opts *models.OptsKeypoolRefill) error { panic("mock out the KeypoolRefill method") }, LegacyMerkleProofFunc: func(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error) { panic("mock out the LegacyMerkleProof method") }, ListAccountsFunc: func(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error) { panic("mock out the ListAccounts method") }, ListBannedFunc: func(ctx context.Context) ([]*models.BannedSubnet, error) { panic("mock out the ListBanned method") }, ListLockUnspentFunc: func(ctx context.Context) ([]*models.LockUnspent, error) { panic("mock out the ListLockUnspent method") }, ListReceivedByAccountFunc: func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error) { panic("mock out the ListReceivedByAccount method") }, ListReceivedByAddressFunc: func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error) { panic("mock out the ListReceivedByAddress method") }, ListSinceBlockFunc: func(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error) { panic("mock out the ListSinceBlock method") }, ListTransactionsFunc: func(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error) { panic("mock out the ListTransactions method") }, ListUnspentFunc: func(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error) { panic("mock out the ListUnspent method") }, ListWalletsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the ListWallets method") }, LockUnspentFunc: func(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error) { panic("mock out the LockUnspent method") }, MemoryInfoFunc: func(ctx context.Context) (*models.MemoryInfo, error) { panic("mock out the MemoryInfo method") }, MempoolAncestorIDsFunc: func(ctx context.Context, txID string) ([]string, error) { panic("mock out the MempoolAncestorIDs method") }, MempoolAncestorsFunc: func(ctx context.Context, txID string) (models.MempoolTxs, error) { panic("mock out the MempoolAncestors method") }, MempoolDescendantIDsFunc: func(ctx context.Context, txID string) ([]string, error) { panic("mock out the MempoolDescendantIDs method") }, MempoolDescendantsFunc: func(ctx context.Context, txID string) (models.MempoolTxs, error) { panic("mock out the MempoolDescendants method") }, MempoolEntryFunc: func(ctx context.Context, txID string) (*models.MempoolEntry, error) { panic("mock out the MempoolEntry method") }, MerkleProofFunc: func(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error) { panic("mock out the MerkleProof method") }, MiningCandidateFunc: func(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error) { panic("mock out the MiningCandidate method") }, MiningInfoFunc: func(ctx context.Context) (*models.MiningInfo, error) { panic("mock out the MiningInfo method") }, MoveFunc: func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error) { panic("mock out the Move method") }, NetworkHashPSFunc: func(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error) { panic("mock out the NetworkHashPS method") }, NetworkInfoFunc: func(ctx context.Context) (*models.NetworkInfo, error) { panic("mock out the NetworkInfo method") }, NetworkTotalsFunc: func(ctx context.Context) (*models.NetworkTotals, error) { panic("mock out the NetworkTotals method") }, NewAddressFunc: func(ctx context.Context, opts *models.OptsNewAddress) (string, error) { panic("mock out the NewAddress method") }, NodeInfoFunc: func(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error) { panic("mock out the NodeInfo method") }, OutputFunc: func(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error) { panic("mock out the Output method") }, OutputSetInfoFunc: func(ctx context.Context) (*models.OutputSetInfo, error) { panic("mock out the OutputSetInfo method") }, PeerInfoFunc: func(ctx context.Context) ([]*models.PeerInfo, error) { panic("mock out the PeerInfo method") }, PingFunc: func(ctx context.Context) error { panic("mock out the Ping method") }, PreciousBlockFunc: func(ctx context.Context, blockHash string) error { panic("mock out the PreciousBlock method") }, PrioritiseTxFunc: func(ctx context.Context, txID string, feeDelta int64) (bool, error) { panic("mock out the PrioritiseTx method") }, PruneChainFunc: func(ctx context.Context, height int) (uint32, error) { panic("mock out the PruneChain method") }, RawChangeAddressFunc: func(ctx context.Context) (string, error) { panic("mock out the RawChangeAddress method") }, RawMempoolFunc: func(ctx context.Context) (models.MempoolTxs, error) { panic("mock out the RawMempool method") }, RawMempoolIDsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the RawMempoolIDs method") }, RawNonFinalMempoolFunc: func(ctx context.Context) ([]string, error) { panic("mock out the RawNonFinalMempool method") }, RawTransactionFunc: func(ctx context.Context, txID string) (*bt.Tx, error) { panic("mock out the RawTransaction method") }, RebuildJournalFunc: func(ctx context.Context) error { panic("mock out the RebuildJournal method") }, ReceivedByAddressFunc: func(ctx context.Context, address string) (uint64, error) { panic("mock out the ReceivedByAddress method") }, RemovePrunedFundsFunc: func(ctx context.Context, txID string) error { panic("mock out the RemovePrunedFunds method") }, SendFromFunc: func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error) { panic("mock out the SendFrom method") }, SendManyFunc: func(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error) { panic("mock out the SendMany method") }, SendRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error) { panic("mock out the SendRawTransaction method") }, SendRawTransactionsFunc: func(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error) { panic("mock out the SendRawTransactions method") }, SendToAddressFunc: func(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error) { panic("mock out the SendToAddress method") }, SetAccountFunc: func(ctx context.Context, address string, account string) error { panic("mock out the SetAccount method") }, SetBanFunc: func(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error { panic("mock out the SetBan method") }, SetBlockMaxSizeFunc: func(ctx context.Context, size uint64) (string, error) { panic("mock out the SetBlockMaxSize method") }, SetExcessiveBlockFunc: func(ctx context.Context, size uint64) (string, error) { panic("mock out the SetExcessiveBlock method") }, SetNetworkActiveFunc: func(ctx context.Context, enabled bool) error { panic("mock out the SetNetworkActive method") }, SetTxFeeFunc: func(ctx context.Context, amount uint64) (bool, error) { panic("mock out the SetTxFee method") }, SetTxPropagationFrequencyFunc: func(ctx context.Context, frequency uint64) error { panic("mock out the SetTxPropagationFrequency method") }, SettingsFunc: func(ctx context.Context) (*models.Settings, error) { panic("mock out the Settings method") }, SignMessageFunc: func(ctx context.Context, address string, message string) (string, error) { panic("mock out the SignMessage method") }, SignMessageWithPrivKeyFunc: func(ctx context.Context, w *primitives.PrivateKey, msg string) (string, error) { panic("mock out the SignMessageWithPrivKey method") }, SignRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error) { panic("mock out the SignRawTransaction method") }, StopFunc: func(ctx context.Context) error { panic("mock out the Stop method") }, SubmitBlockFunc: func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) { panic("mock out the SubmitBlock method") }, SubmitMiningSolutionFunc: func(ctx context.Context, solution *models.MiningSolution) (string, error) { panic("mock out the SubmitMiningSolution method") }, TransactionFunc: func(ctx context.Context, txID string) (*models.Transaction, error) { panic("mock out the Transaction method") }, UnconfirmedBalanceFunc: func(ctx context.Context) (uint64, error) { panic("mock out the UnconfirmedBalance method") }, UptimeFunc: func(ctx context.Context) (time.Duration, error) { panic("mock out the Uptime method") }, ValidateAddressFunc: func(ctx context.Context, address string) (*models.ValidateAddress, error) { panic("mock out the ValidateAddress method") }, VerifyBlockCandidateFunc: func(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error) { panic("mock out the VerifyBlockCandidate method") }, VerifyChainFunc: func(ctx context.Context) (bool, error) { panic("mock out the VerifyChain method") }, VerifySignedMessageFunc: func(ctx context.Context, w *primitives.PrivateKey, signature string, message string) (bool, error) { panic("mock out the VerifySignedMessage method") }, WalletInfoFunc: func(ctx context.Context) (*models.WalletInfo, error) { panic("mock out the WalletInfo method") }, WalletLockFunc: func(ctx context.Context) error { panic("mock out the WalletLock method") }, WalletPhassphraseFunc: func(ctx context.Context, passphrase string, timeout int) error { panic("mock out the WalletPhassphrase method") }, WalletPhassphraseChangeFunc: func(ctx context.Context, oldPassphrase string, newPassphrase string) error { panic("mock out the WalletPhassphraseChange method") }, } // use mockedNodeClient in code that requires bn.NodeClient // and then make assertions. }
func (*NodeClientMock) AbandonTransaction ¶
func (mock *NodeClientMock) AbandonTransaction(ctx context.Context, txID string) error
AbandonTransaction calls AbandonTransactionFunc.
func (*NodeClientMock) AbandonTransactionCalls ¶
func (mock *NodeClientMock) AbandonTransactionCalls() []struct { Ctx context.Context TxID string }
AbandonTransactionCalls gets all the calls that were made to AbandonTransaction. Check the length with:
len(mockedNodeClient.AbandonTransactionCalls())
func (*NodeClientMock) AccountAddress ¶
AccountAddress calls AccountAddressFunc.
func (*NodeClientMock) AccountAddressCalls ¶
func (mock *NodeClientMock) AccountAddressCalls() []struct { Ctx context.Context Account string }
AccountAddressCalls gets all the calls that were made to AccountAddress. Check the length with:
len(mockedNodeClient.AccountAddressCalls())
func (*NodeClientMock) AccountAddresses ¶
AccountAddresses calls AccountAddressesFunc.
func (*NodeClientMock) AccountAddressesCalls ¶
func (mock *NodeClientMock) AccountAddressesCalls() []struct { Ctx context.Context Account string }
AccountAddressesCalls gets all the calls that were made to AccountAddresses. Check the length with:
len(mockedNodeClient.AccountAddressesCalls())
func (*NodeClientMock) AccountCalls ¶
func (mock *NodeClientMock) AccountCalls() []struct { Ctx context.Context Address string }
AccountCalls gets all the calls that were made to Account. Check the length with:
len(mockedNodeClient.AccountCalls())
func (*NodeClientMock) ActiveZMQNotifications ¶
func (mock *NodeClientMock) ActiveZMQNotifications(ctx context.Context) ([]*models.ZMQNotification, error)
ActiveZMQNotifications calls ActiveZMQNotificationsFunc.
func (*NodeClientMock) ActiveZMQNotificationsCalls ¶
func (mock *NodeClientMock) ActiveZMQNotificationsCalls() []struct { Ctx context.Context }
ActiveZMQNotificationsCalls gets all the calls that were made to ActiveZMQNotifications. Check the length with:
len(mockedNodeClient.ActiveZMQNotificationsCalls())
func (*NodeClientMock) AddMultiSigAddress ¶
func (mock *NodeClientMock) AddMultiSigAddress(ctx context.Context, n int, keys ...string) (string, error)
AddMultiSigAddress calls AddMultiSigAddressFunc.
func (*NodeClientMock) AddMultiSigAddressCalls ¶
func (mock *NodeClientMock) AddMultiSigAddressCalls() []struct { Ctx context.Context N int Keys []string }
AddMultiSigAddressCalls gets all the calls that were made to AddMultiSigAddress. Check the length with:
len(mockedNodeClient.AddMultiSigAddressCalls())
func (*NodeClientMock) AddNode ¶
func (mock *NodeClientMock) AddNode(ctx context.Context, node string, command internal.NodeAddType) error
AddNode calls AddNodeFunc.
func (*NodeClientMock) AddNodeCalls ¶
func (mock *NodeClientMock) AddNodeCalls() []struct { Ctx context.Context Node string Command internal.NodeAddType }
AddNodeCalls gets all the calls that were made to AddNode. Check the length with:
len(mockedNodeClient.AddNodeCalls())
func (*NodeClientMock) AddToConfiscationTransactionWhitelist ¶
func (mock *NodeClientMock) AddToConfiscationTransactionWhitelist(ctx context.Context, confiscationTxs []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
AddToConfiscationTransactionWhitelist calls AddToConfiscationTransactionWhitelistFunc
func (*NodeClientMock) AddToConsensusBlacklist ¶
func (mock *NodeClientMock) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
AddToConsensusBlacklist calls AddToConsensusBlacklistFunc
func (*NodeClientMock) BackupWallet ¶
func (mock *NodeClientMock) BackupWallet(ctx context.Context, dest string) error
BackupWallet calls BackupWalletFunc.
func (*NodeClientMock) BackupWalletCalls ¶
func (mock *NodeClientMock) BackupWalletCalls() []struct { Ctx context.Context Dest string }
BackupWalletCalls gets all the calls that were made to BackupWallet. Check the length with:
len(mockedNodeClient.BackupWalletCalls())
func (*NodeClientMock) Balance ¶
func (mock *NodeClientMock) Balance(ctx context.Context, opts *models.OptsBalance) (uint64, error)
Balance calls BalanceFunc.
func (*NodeClientMock) BalanceCalls ¶
func (mock *NodeClientMock) BalanceCalls() []struct { Ctx context.Context Opts *models.OptsBalance }
BalanceCalls gets all the calls that were made to Balance. Check the length with:
len(mockedNodeClient.BalanceCalls())
func (*NodeClientMock) BestBlockHash ¶
func (mock *NodeClientMock) BestBlockHash(ctx context.Context) (string, error)
BestBlockHash calls BestBlockHashFunc.
func (*NodeClientMock) BestBlockHashCalls ¶
func (mock *NodeClientMock) BestBlockHashCalls() []struct { Ctx context.Context }
BestBlockHashCalls gets all the calls that were made to BestBlockHash. Check the length with:
len(mockedNodeClient.BestBlockHashCalls())
func (*NodeClientMock) BlockByHeight ¶
BlockByHeight calls BlockByHeightFunc.
func (*NodeClientMock) BlockByHeightCalls ¶
func (mock *NodeClientMock) BlockByHeightCalls() []struct { Ctx context.Context Height int }
BlockByHeightCalls gets all the calls that were made to BlockByHeight. Check the length with:
len(mockedNodeClient.BlockByHeightCalls())
func (*NodeClientMock) BlockCalls ¶
func (mock *NodeClientMock) BlockCalls() []struct { Ctx context.Context Hash string }
BlockCalls gets all the calls that were made to Block. Check the length with:
len(mockedNodeClient.BlockCalls())
func (*NodeClientMock) BlockCount ¶
func (mock *NodeClientMock) BlockCount(ctx context.Context) (uint32, error)
BlockCount calls BlockCountFunc.
func (*NodeClientMock) BlockCountCalls ¶
func (mock *NodeClientMock) BlockCountCalls() []struct { Ctx context.Context }
BlockCountCalls gets all the calls that were made to BlockCount. Check the length with:
len(mockedNodeClient.BlockCountCalls())
func (*NodeClientMock) BlockDecodeHeader ¶
func (mock *NodeClientMock) BlockDecodeHeader(ctx context.Context, hash string) (*models.BlockDecodeHeader, error)
BlockDecodeHeader calls BlockDecodeHeaderFunc.
func (*NodeClientMock) BlockDecodeHeaderByHeight ¶
func (mock *NodeClientMock) BlockDecodeHeaderByHeight(ctx context.Context, height int) (*models.BlockDecodeHeader, error)
BlockDecodeHeaderByHeight calls BlockDecodeHeaderByHeightFunc.
func (*NodeClientMock) BlockDecodeHeaderByHeightCalls ¶
func (mock *NodeClientMock) BlockDecodeHeaderByHeightCalls() []struct { Ctx context.Context Height int }
BlockDecodeHeaderByHeightCalls gets all the calls that were made to BlockDecodeHeaderByHeight. Check the length with:
len(mockedNodeClient.BlockDecodeHeaderByHeightCalls())
func (*NodeClientMock) BlockDecodeHeaderCalls ¶
func (mock *NodeClientMock) BlockDecodeHeaderCalls() []struct { Ctx context.Context Hash string }
BlockDecodeHeaderCalls gets all the calls that were made to BlockDecodeHeader. Check the length with:
len(mockedNodeClient.BlockDecodeHeaderCalls())
func (*NodeClientMock) BlockHashCalls ¶
func (mock *NodeClientMock) BlockHashCalls() []struct { Ctx context.Context Height int }
BlockHashCalls gets all the calls that were made to BlockHash. Check the length with:
len(mockedNodeClient.BlockHashCalls())
func (*NodeClientMock) BlockHeader ¶
func (mock *NodeClientMock) BlockHeader(ctx context.Context, hash string) (*models.BlockHeader, error)
BlockHeader calls BlockHeaderFunc.
func (*NodeClientMock) BlockHeaderCalls ¶
func (mock *NodeClientMock) BlockHeaderCalls() []struct { Ctx context.Context Hash string }
BlockHeaderCalls gets all the calls that were made to BlockHeader. Check the length with:
len(mockedNodeClient.BlockHeaderCalls())
func (*NodeClientMock) BlockHeaderHex ¶
BlockHeaderHex calls BlockHeaderHexFunc.
func (*NodeClientMock) BlockHeaderHexCalls ¶
func (mock *NodeClientMock) BlockHeaderHexCalls() []struct { Ctx context.Context Hash string }
BlockHeaderHexCalls gets all the calls that were made to BlockHeaderHex. Check the length with:
len(mockedNodeClient.BlockHeaderHexCalls())
func (*NodeClientMock) BlockHexByHeight ¶
BlockHexByHeight calls BlockHexByHeightFunc.
func (*NodeClientMock) BlockHexByHeightCalls ¶
func (mock *NodeClientMock) BlockHexByHeightCalls() []struct { Ctx context.Context Height int }
BlockHexByHeightCalls gets all the calls that were made to BlockHexByHeight. Check the length with:
len(mockedNodeClient.BlockHexByHeightCalls())
func (*NodeClientMock) BlockHexCalls ¶
func (mock *NodeClientMock) BlockHexCalls() []struct { Ctx context.Context Hash string }
BlockHexCalls gets all the calls that were made to BlockHex. Check the length with:
len(mockedNodeClient.BlockHexCalls())
func (*NodeClientMock) BlockStats ¶
func (mock *NodeClientMock) BlockStats(ctx context.Context, hash string, fields ...string) (*models.BlockStats, error)
BlockStats calls BlockStatsFunc.
func (*NodeClientMock) BlockStatsByHeight ¶
func (mock *NodeClientMock) BlockStatsByHeight(ctx context.Context, height int, fields ...string) (*models.BlockStats, error)
BlockStatsByHeight calls BlockStatsByHeightFunc.
func (*NodeClientMock) BlockStatsByHeightCalls ¶
func (mock *NodeClientMock) BlockStatsByHeightCalls() []struct { Ctx context.Context Height int Fields []string }
BlockStatsByHeightCalls gets all the calls that were made to BlockStatsByHeight. Check the length with:
len(mockedNodeClient.BlockStatsByHeightCalls())
func (*NodeClientMock) BlockStatsCalls ¶
func (mock *NodeClientMock) BlockStatsCalls() []struct { Ctx context.Context Hash string Fields []string }
BlockStatsCalls gets all the calls that were made to BlockStats. Check the length with:
len(mockedNodeClient.BlockStatsCalls())
func (*NodeClientMock) BlockTemplate ¶
func (mock *NodeClientMock) BlockTemplate(ctx context.Context, opts *models.BlockTemplateRequest) (*models.BlockTemplate, error)
BlockTemplate calls BlockTemplateFunc.
func (*NodeClientMock) BlockTemplateCalls ¶
func (mock *NodeClientMock) BlockTemplateCalls() []struct { Ctx context.Context Opts *models.BlockTemplateRequest }
BlockTemplateCalls gets all the calls that were made to BlockTemplate. Check the length with:
len(mockedNodeClient.BlockTemplateCalls())
func (*NodeClientMock) ChainInfoCalls ¶
func (mock *NodeClientMock) ChainInfoCalls() []struct { Ctx context.Context }
ChainInfoCalls gets all the calls that were made to ChainInfo. Check the length with:
len(mockedNodeClient.ChainInfoCalls())
func (*NodeClientMock) ChainTipsCalls ¶
func (mock *NodeClientMock) ChainTipsCalls() []struct { Ctx context.Context }
ChainTipsCalls gets all the calls that were made to ChainTips. Check the length with:
len(mockedNodeClient.ChainTipsCalls())
func (*NodeClientMock) ChainTxStats ¶
func (mock *NodeClientMock) ChainTxStats(ctx context.Context, opts *models.OptsChainTxStats) (*models.ChainTxStats, error)
ChainTxStats calls ChainTxStatsFunc.
func (*NodeClientMock) ChainTxStatsCalls ¶
func (mock *NodeClientMock) ChainTxStatsCalls() []struct { Ctx context.Context Opts *models.OptsChainTxStats }
ChainTxStatsCalls gets all the calls that were made to ChainTxStats. Check the length with:
len(mockedNodeClient.ChainTxStatsCalls())
func (*NodeClientMock) CheckJournal ¶
func (mock *NodeClientMock) CheckJournal(ctx context.Context) (*models.JournalStatus, error)
CheckJournal calls CheckJournalFunc.
func (*NodeClientMock) CheckJournalCalls ¶
func (mock *NodeClientMock) CheckJournalCalls() []struct { Ctx context.Context }
CheckJournalCalls gets all the calls that were made to CheckJournal. Check the length with:
len(mockedNodeClient.CheckJournalCalls())
func (*NodeClientMock) ClearBanned ¶
func (mock *NodeClientMock) ClearBanned(ctx context.Context) error
ClearBanned calls ClearBannedFunc.
func (*NodeClientMock) ClearBannedCalls ¶
func (mock *NodeClientMock) ClearBannedCalls() []struct { Ctx context.Context }
ClearBannedCalls gets all the calls that were made to ClearBanned. Check the length with:
len(mockedNodeClient.ClearBannedCalls())
func (*NodeClientMock) ClearInvalidTransactions ¶
func (mock *NodeClientMock) ClearInvalidTransactions(ctx context.Context) (uint64, error)
ClearInvalidTransactions calls ClearInvalidTransactionsFunc.
func (*NodeClientMock) ClearInvalidTransactionsCalls ¶
func (mock *NodeClientMock) ClearInvalidTransactionsCalls() []struct { Ctx context.Context }
ClearInvalidTransactionsCalls gets all the calls that were made to ClearInvalidTransactions. Check the length with:
len(mockedNodeClient.ClearInvalidTransactionsCalls())
func (*NodeClientMock) ConnectionCount ¶
func (mock *NodeClientMock) ConnectionCount(ctx context.Context) (uint64, error)
ConnectionCount calls ConnectionCountFunc.
func (*NodeClientMock) ConnectionCountCalls ¶
func (mock *NodeClientMock) ConnectionCountCalls() []struct { Ctx context.Context }
ConnectionCountCalls gets all the calls that were made to ConnectionCount. Check the length with:
len(mockedNodeClient.ConnectionCountCalls())
func (*NodeClientMock) CreateMultiSig ¶
func (mock *NodeClientMock) CreateMultiSig(ctx context.Context, n int, keys ...string) (*models.MultiSig, error)
CreateMultiSig calls CreateMultiSigFunc.
func (*NodeClientMock) CreateMultiSigCalls ¶
func (mock *NodeClientMock) CreateMultiSigCalls() []struct { Ctx context.Context N int Keys []string }
CreateMultiSigCalls gets all the calls that were made to CreateMultiSig. Check the length with:
len(mockedNodeClient.CreateMultiSigCalls())
func (*NodeClientMock) CreateRawTransaction ¶
func (mock *NodeClientMock) CreateRawTransaction(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error)
CreateRawTransaction calls CreateRawTransactionFunc.
func (*NodeClientMock) CreateRawTransactionCalls ¶
func (mock *NodeClientMock) CreateRawTransactionCalls() []struct { Ctx context.Context Utxos bt.UTXOs Params models.ParamsCreateRawTransaction }
CreateRawTransactionCalls gets all the calls that were made to CreateRawTransaction. Check the length with:
len(mockedNodeClient.CreateRawTransactionCalls())
func (*NodeClientMock) Difficulty ¶
func (mock *NodeClientMock) Difficulty(ctx context.Context) (float64, error)
Difficulty calls DifficultyFunc.
func (*NodeClientMock) DifficultyCalls ¶
func (mock *NodeClientMock) DifficultyCalls() []struct { Ctx context.Context }
DifficultyCalls gets all the calls that were made to Difficulty. Check the length with:
len(mockedNodeClient.DifficultyCalls())
func (*NodeClientMock) DisconnectNode ¶
func (mock *NodeClientMock) DisconnectNode(ctx context.Context, params models.ParamsDisconnectNode) error
DisconnectNode calls DisconnectNodeFunc.
func (*NodeClientMock) DisconnectNodeCalls ¶
func (mock *NodeClientMock) DisconnectNodeCalls() []struct { Ctx context.Context Params models.ParamsDisconnectNode }
DisconnectNodeCalls gets all the calls that were made to DisconnectNode. Check the length with:
len(mockedNodeClient.DisconnectNodeCalls())
func (*NodeClientMock) DumpParams ¶
func (mock *NodeClientMock) DumpParams(ctx context.Context) ([]string, error)
DumpParams calls DumpParamsFunc.
func (*NodeClientMock) DumpParamsCalls ¶
func (mock *NodeClientMock) DumpParamsCalls() []struct { Ctx context.Context }
DumpParamsCalls gets all the calls that were made to DumpParams. Check the length with:
len(mockedNodeClient.DumpParamsCalls())
func (*NodeClientMock) DumpPrivateKey ¶
func (mock *NodeClientMock) DumpPrivateKey(ctx context.Context, address string) (*primitives.PrivateKey, error)
DumpPrivateKey calls DumpPrivateKeyFunc.
func (*NodeClientMock) DumpPrivateKeyCalls ¶
func (mock *NodeClientMock) DumpPrivateKeyCalls() []struct { Ctx context.Context Address string }
DumpPrivateKeyCalls gets all the calls that were made to DumpPrivateKey. Check the length with:
len(mockedNodeClient.DumpPrivateKeyCalls())
func (*NodeClientMock) DumpWallet ¶
func (mock *NodeClientMock) DumpWallet(ctx context.Context, dest string) (*models.DumpWallet, error)
DumpWallet calls DumpWalletFunc.
func (*NodeClientMock) DumpWalletCalls ¶
func (mock *NodeClientMock) DumpWalletCalls() []struct { Ctx context.Context Dest string }
DumpWalletCalls gets all the calls that were made to DumpWallet. Check the length with:
len(mockedNodeClient.DumpWalletCalls())
func (*NodeClientMock) EncryptWallet ¶
func (mock *NodeClientMock) EncryptWallet(ctx context.Context, passphrase string) error
EncryptWallet calls EncryptWalletFunc.
func (*NodeClientMock) EncryptWalletCalls ¶
func (mock *NodeClientMock) EncryptWalletCalls() []struct { Ctx context.Context Passphrase string }
EncryptWalletCalls gets all the calls that were made to EncryptWallet. Check the length with:
len(mockedNodeClient.EncryptWalletCalls())
func (*NodeClientMock) ExcessiveBlock ¶
func (mock *NodeClientMock) ExcessiveBlock(ctx context.Context) (*models.ExcessiveBlock, error)
ExcessiveBlock calls ExcessiveBlockFunc.
func (*NodeClientMock) ExcessiveBlockCalls ¶
func (mock *NodeClientMock) ExcessiveBlockCalls() []struct { Ctx context.Context }
ExcessiveBlockCalls gets all the calls that were made to ExcessiveBlock. Check the length with:
len(mockedNodeClient.ExcessiveBlockCalls())
func (*NodeClientMock) FundRawTransaction ¶
func (mock *NodeClientMock) FundRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error)
FundRawTransaction calls FundRawTransactionFunc.
func (*NodeClientMock) FundRawTransactionCalls ¶
func (mock *NodeClientMock) FundRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsFundRawTransaction }
FundRawTransactionCalls gets all the calls that were made to FundRawTransaction. Check the length with:
len(mockedNodeClient.FundRawTransactionCalls())
func (*NodeClientMock) Generate ¶
func (mock *NodeClientMock) Generate(ctx context.Context, n int, opts *models.OptsGenerate) ([]string, error)
Generate calls GenerateFunc.
func (*NodeClientMock) GenerateCalls ¶
func (mock *NodeClientMock) GenerateCalls() []struct { Ctx context.Context N int Opts *models.OptsGenerate }
GenerateCalls gets all the calls that were made to Generate. Check the length with:
len(mockedNodeClient.GenerateCalls())
func (*NodeClientMock) GenerateToAddress ¶
func (mock *NodeClientMock) GenerateToAddress(ctx context.Context, n int, addr string, opts *models.OptsGenerate) ([]string, error)
GenerateToAddress calls GenerateToAddressFunc.
func (*NodeClientMock) GenerateToAddressCalls ¶
func (mock *NodeClientMock) GenerateToAddressCalls() []struct { Ctx context.Context N int Addr string Opts *models.OptsGenerate }
GenerateToAddressCalls gets all the calls that were made to GenerateToAddress. Check the length with:
len(mockedNodeClient.GenerateToAddressCalls())
func (*NodeClientMock) ImportAddress ¶
func (mock *NodeClientMock) ImportAddress(ctx context.Context, address string, opts *models.OptsImportAddress) error
ImportAddress calls ImportAddressFunc.
func (*NodeClientMock) ImportAddressCalls ¶
func (mock *NodeClientMock) ImportAddressCalls() []struct { Ctx context.Context Address string Opts *models.OptsImportAddress }
ImportAddressCalls gets all the calls that were made to ImportAddress. Check the length with:
len(mockedNodeClient.ImportAddressCalls())
func (*NodeClientMock) ImportMulti ¶
func (mock *NodeClientMock) ImportMulti(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error)
ImportMulti calls ImportMultiFunc.
func (*NodeClientMock) ImportMultiCalls ¶
func (mock *NodeClientMock) ImportMultiCalls() []struct { Ctx context.Context Reqs []models.ImportMultiRequest Opts *models.OptsImportMulti }
ImportMultiCalls gets all the calls that were made to ImportMulti. Check the length with:
len(mockedNodeClient.ImportMultiCalls())
func (*NodeClientMock) ImportPrivateKey ¶
func (mock *NodeClientMock) ImportPrivateKey(ctx context.Context, p *primitives.PrivateKey, opts *models.OptsImportPrivateKey) error
ImportPrivateKey calls ImportPrivateKeyFunc.
func (*NodeClientMock) ImportPrivateKeyCalls ¶
func (mock *NodeClientMock) ImportPrivateKeyCalls() []struct { Ctx context.Context P *primitives.PrivateKey Opts *models.OptsImportPrivateKey }
ImportPrivateKeyCalls gets all the calls that were made to ImportPrivateKey. Check the length with:
len(mockedNodeClient.ImportPrivateKeyCalls())
func (*NodeClientMock) ImportPrunedFunds ¶
func (mock *NodeClientMock) ImportPrunedFunds(ctx context.Context, tx *bt.Tx, txOutProof string) error
ImportPrunedFunds calls ImportPrunedFundsFunc.
func (*NodeClientMock) ImportPrunedFundsCalls ¶
func (mock *NodeClientMock) ImportPrunedFundsCalls() []struct { Ctx context.Context Tx *bt.Tx TxOutProof string }
ImportPrunedFundsCalls gets all the calls that were made to ImportPrunedFunds. Check the length with:
len(mockedNodeClient.ImportPrunedFundsCalls())
func (*NodeClientMock) ImportPublicKey ¶
func (mock *NodeClientMock) ImportPublicKey(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error
ImportPublicKey calls ImportPublicKeyFunc.
func (*NodeClientMock) ImportPublicKeyCalls ¶
func (mock *NodeClientMock) ImportPublicKeyCalls() []struct { Ctx context.Context PublicKey string Opts *models.OptsImportPublicKey }
ImportPublicKeyCalls gets all the calls that were made to ImportPublicKey. Check the length with:
len(mockedNodeClient.ImportPublicKeyCalls())
func (*NodeClientMock) ImportWallet ¶
func (mock *NodeClientMock) ImportWallet(ctx context.Context, filename string) error
ImportWallet calls ImportWalletFunc.
func (*NodeClientMock) ImportWalletCalls ¶
func (mock *NodeClientMock) ImportWalletCalls() []struct { Ctx context.Context Filename string }
ImportWalletCalls gets all the calls that were made to ImportWallet. Check the length with:
len(mockedNodeClient.ImportWalletCalls())
func (*NodeClientMock) InfoCalls ¶
func (mock *NodeClientMock) InfoCalls() []struct { Ctx context.Context }
InfoCalls gets all the calls that were made to Info. Check the length with:
len(mockedNodeClient.InfoCalls())
func (*NodeClientMock) InvalidateBlock ¶
func (mock *NodeClientMock) InvalidateBlock(ctx context.Context, hash string) error
InvalidateBlock calls InvalidateBlockFunc.
func (*NodeClientMock) KeypoolRefill ¶
func (mock *NodeClientMock) KeypoolRefill(ctx context.Context, opts *models.OptsKeypoolRefill) error
KeypoolRefill calls KeypoolRefillFunc.
func (*NodeClientMock) KeypoolRefillCalls ¶
func (mock *NodeClientMock) KeypoolRefillCalls() []struct { Ctx context.Context Opts *models.OptsKeypoolRefill }
KeypoolRefillCalls gets all the calls that were made to KeypoolRefill. Check the length with:
len(mockedNodeClient.KeypoolRefillCalls())
func (*NodeClientMock) LegacyMerkleProof ¶
func (mock *NodeClientMock) LegacyMerkleProof(ctx context.Context, txID string, opts *models.OptsLegacyMerkleProof) (*models.LegacyMerkleProof, error)
LegacyMerkleProof calls LegacyMerkleProofFunc.
func (*NodeClientMock) LegacyMerkleProofCalls ¶
func (mock *NodeClientMock) LegacyMerkleProofCalls() []struct { Ctx context.Context TxID string Opts *models.OptsLegacyMerkleProof }
LegacyMerkleProofCalls gets all the calls that were made to LegacyMerkleProof. Check the length with:
len(mockedNodeClient.LegacyMerkleProofCalls())
func (*NodeClientMock) ListAccounts ¶
func (mock *NodeClientMock) ListAccounts(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error)
ListAccounts calls ListAccountsFunc.
func (*NodeClientMock) ListAccountsCalls ¶
func (mock *NodeClientMock) ListAccountsCalls() []struct { Ctx context.Context Opts *models.OptsListAccounts }
ListAccountsCalls gets all the calls that were made to ListAccounts. Check the length with:
len(mockedNodeClient.ListAccountsCalls())
func (*NodeClientMock) ListBanned ¶
func (mock *NodeClientMock) ListBanned(ctx context.Context) ([]*models.BannedSubnet, error)
ListBanned calls ListBannedFunc.
func (*NodeClientMock) ListBannedCalls ¶
func (mock *NodeClientMock) ListBannedCalls() []struct { Ctx context.Context }
ListBannedCalls gets all the calls that were made to ListBanned. Check the length with:
len(mockedNodeClient.ListBannedCalls())
func (*NodeClientMock) ListLockUnspent ¶
func (mock *NodeClientMock) ListLockUnspent(ctx context.Context) ([]*models.LockUnspent, error)
ListLockUnspent calls ListLockUnspentFunc.
func (*NodeClientMock) ListLockUnspentCalls ¶
func (mock *NodeClientMock) ListLockUnspentCalls() []struct { Ctx context.Context }
ListLockUnspentCalls gets all the calls that were made to ListLockUnspent. Check the length with:
len(mockedNodeClient.ListLockUnspentCalls())
func (*NodeClientMock) ListReceivedByAccount ¶
func (mock *NodeClientMock) ListReceivedByAccount(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error)
ListReceivedByAccount calls ListReceivedByAccountFunc.
func (*NodeClientMock) ListReceivedByAccountCalls ¶
func (mock *NodeClientMock) ListReceivedByAccountCalls() []struct { Ctx context.Context Opts *models.OptsListReceivedBy }
ListReceivedByAccountCalls gets all the calls that were made to ListReceivedByAccount. Check the length with:
len(mockedNodeClient.ListReceivedByAccountCalls())
func (*NodeClientMock) ListReceivedByAddress ¶
func (mock *NodeClientMock) ListReceivedByAddress(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error)
ListReceivedByAddress calls ListReceivedByAddressFunc.
func (*NodeClientMock) ListReceivedByAddressCalls ¶
func (mock *NodeClientMock) ListReceivedByAddressCalls() []struct { Ctx context.Context Opts *models.OptsListReceivedBy }
ListReceivedByAddressCalls gets all the calls that were made to ListReceivedByAddress. Check the length with:
len(mockedNodeClient.ListReceivedByAddressCalls())
func (*NodeClientMock) ListSinceBlock ¶
func (mock *NodeClientMock) ListSinceBlock(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error)
ListSinceBlock calls ListSinceBlockFunc.
func (*NodeClientMock) ListSinceBlockCalls ¶
func (mock *NodeClientMock) ListSinceBlockCalls() []struct { Ctx context.Context Opts *models.OptsListSinceBlock }
ListSinceBlockCalls gets all the calls that were made to ListSinceBlock. Check the length with:
len(mockedNodeClient.ListSinceBlockCalls())
func (*NodeClientMock) ListTransactions ¶
func (mock *NodeClientMock) ListTransactions(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error)
ListTransactions calls ListTransactionsFunc.
func (*NodeClientMock) ListTransactionsCalls ¶
func (mock *NodeClientMock) ListTransactionsCalls() []struct { Ctx context.Context Opts *models.OptsListTransactions }
ListTransactionsCalls gets all the calls that were made to ListTransactions. Check the length with:
len(mockedNodeClient.ListTransactionsCalls())
func (*NodeClientMock) ListUnspent ¶
func (mock *NodeClientMock) ListUnspent(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error)
ListUnspent calls ListUnspentFunc.
func (*NodeClientMock) ListUnspentCalls ¶
func (mock *NodeClientMock) ListUnspentCalls() []struct { Ctx context.Context Opts *models.OptsListUnspent }
ListUnspentCalls gets all the calls that were made to ListUnspent. Check the length with:
len(mockedNodeClient.ListUnspentCalls())
func (*NodeClientMock) ListWallets ¶
func (mock *NodeClientMock) ListWallets(ctx context.Context) ([]string, error)
ListWallets calls ListWalletsFunc.
func (*NodeClientMock) ListWalletsCalls ¶
func (mock *NodeClientMock) ListWalletsCalls() []struct { Ctx context.Context }
ListWalletsCalls gets all the calls that were made to ListWallets. Check the length with:
len(mockedNodeClient.ListWalletsCalls())
func (*NodeClientMock) LockUnspent ¶
func (mock *NodeClientMock) LockUnspent(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error)
LockUnspent calls LockUnspentFunc.
func (*NodeClientMock) LockUnspentCalls ¶
func (mock *NodeClientMock) LockUnspentCalls() []struct { Ctx context.Context Lock bool Opts *models.OptsLockUnspent }
LockUnspentCalls gets all the calls that were made to LockUnspent. Check the length with:
len(mockedNodeClient.LockUnspentCalls())
func (*NodeClientMock) MemoryInfo ¶
func (mock *NodeClientMock) MemoryInfo(ctx context.Context) (*models.MemoryInfo, error)
MemoryInfo calls MemoryInfoFunc.
func (*NodeClientMock) MemoryInfoCalls ¶
func (mock *NodeClientMock) MemoryInfoCalls() []struct { Ctx context.Context }
MemoryInfoCalls gets all the calls that were made to MemoryInfo. Check the length with:
len(mockedNodeClient.MemoryInfoCalls())
func (*NodeClientMock) MempoolAncestorIDs ¶
MempoolAncestorIDs calls MempoolAncestorIDsFunc.
func (*NodeClientMock) MempoolAncestorIDsCalls ¶
func (mock *NodeClientMock) MempoolAncestorIDsCalls() []struct { Ctx context.Context TxID string }
MempoolAncestorIDsCalls gets all the calls that were made to MempoolAncestorIDs. Check the length with:
len(mockedNodeClient.MempoolAncestorIDsCalls())
func (*NodeClientMock) MempoolAncestors ¶
func (mock *NodeClientMock) MempoolAncestors(ctx context.Context, txID string) (models.MempoolTxs, error)
MempoolAncestors calls MempoolAncestorsFunc.
func (*NodeClientMock) MempoolAncestorsCalls ¶
func (mock *NodeClientMock) MempoolAncestorsCalls() []struct { Ctx context.Context TxID string }
MempoolAncestorsCalls gets all the calls that were made to MempoolAncestors. Check the length with:
len(mockedNodeClient.MempoolAncestorsCalls())
func (*NodeClientMock) MempoolDescendantIDs ¶
func (mock *NodeClientMock) MempoolDescendantIDs(ctx context.Context, txID string) ([]string, error)
MempoolDescendantIDs calls MempoolDescendantIDsFunc.
func (*NodeClientMock) MempoolDescendantIDsCalls ¶
func (mock *NodeClientMock) MempoolDescendantIDsCalls() []struct { Ctx context.Context TxID string }
MempoolDescendantIDsCalls gets all the calls that were made to MempoolDescendantIDs. Check the length with:
len(mockedNodeClient.MempoolDescendantIDsCalls())
func (*NodeClientMock) MempoolDescendants ¶
func (mock *NodeClientMock) MempoolDescendants(ctx context.Context, txID string) (models.MempoolTxs, error)
MempoolDescendants calls MempoolDescendantsFunc.
func (*NodeClientMock) MempoolDescendantsCalls ¶
func (mock *NodeClientMock) MempoolDescendantsCalls() []struct { Ctx context.Context TxID string }
MempoolDescendantsCalls gets all the calls that were made to MempoolDescendants. Check the length with:
len(mockedNodeClient.MempoolDescendantsCalls())
func (*NodeClientMock) MempoolEntry ¶
func (mock *NodeClientMock) MempoolEntry(ctx context.Context, txID string) (*models.MempoolEntry, error)
MempoolEntry calls MempoolEntryFunc.
func (*NodeClientMock) MempoolEntryCalls ¶
func (mock *NodeClientMock) MempoolEntryCalls() []struct { Ctx context.Context TxID string }
MempoolEntryCalls gets all the calls that were made to MempoolEntry. Check the length with:
len(mockedNodeClient.MempoolEntryCalls())
func (*NodeClientMock) MerkleProof ¶
func (mock *NodeClientMock) MerkleProof(ctx context.Context, blockHash string, txID string, opts *models.OptsMerkleProof) (*bc.MerkleProof, error)
MerkleProof calls MerkleProofFunc.
func (*NodeClientMock) MerkleProofCalls ¶
func (mock *NodeClientMock) MerkleProofCalls() []struct { Ctx context.Context BlockHash string TxID string Opts *models.OptsMerkleProof }
MerkleProofCalls gets all the calls that were made to MerkleProof. Check the length with:
len(mockedNodeClient.MerkleProofCalls())
func (*NodeClientMock) MiningCandidate ¶
func (mock *NodeClientMock) MiningCandidate(ctx context.Context, opts *models.OptsMiningCandidate) (*models.MiningCandidate, error)
MiningCandidate calls MiningCandidateFunc.
func (*NodeClientMock) MiningCandidateCalls ¶
func (mock *NodeClientMock) MiningCandidateCalls() []struct { Ctx context.Context Opts *models.OptsMiningCandidate }
MiningCandidateCalls gets all the calls that were made to MiningCandidate. Check the length with:
len(mockedNodeClient.MiningCandidateCalls())
func (*NodeClientMock) MiningInfo ¶
func (mock *NodeClientMock) MiningInfo(ctx context.Context) (*models.MiningInfo, error)
MiningInfo calls MiningInfoFunc.
func (*NodeClientMock) MiningInfoCalls ¶
func (mock *NodeClientMock) MiningInfoCalls() []struct { Ctx context.Context }
MiningInfoCalls gets all the calls that were made to MiningInfo. Check the length with:
len(mockedNodeClient.MiningInfoCalls())
func (*NodeClientMock) Move ¶
func (mock *NodeClientMock) Move(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error)
Move calls MoveFunc.
func (*NodeClientMock) MoveCalls ¶
func (mock *NodeClientMock) MoveCalls() []struct { Ctx context.Context From string To string Amount uint64 Opts *models.OptsMove }
MoveCalls gets all the calls that were made to Move. Check the length with:
len(mockedNodeClient.MoveCalls())
func (*NodeClientMock) NetworkHashPS ¶
func (mock *NodeClientMock) NetworkHashPS(ctx context.Context, opts *models.OptsNetworkHashPS) (uint64, error)
NetworkHashPS calls NetworkHashPSFunc.
func (*NodeClientMock) NetworkHashPSCalls ¶
func (mock *NodeClientMock) NetworkHashPSCalls() []struct { Ctx context.Context Opts *models.OptsNetworkHashPS }
NetworkHashPSCalls gets all the calls that were made to NetworkHashPS. Check the length with:
len(mockedNodeClient.NetworkHashPSCalls())
func (*NodeClientMock) NetworkInfo ¶
func (mock *NodeClientMock) NetworkInfo(ctx context.Context) (*models.NetworkInfo, error)
NetworkInfo calls NetworkInfoFunc.
func (*NodeClientMock) NetworkInfoCalls ¶
func (mock *NodeClientMock) NetworkInfoCalls() []struct { Ctx context.Context }
NetworkInfoCalls gets all the calls that were made to NetworkInfo. Check the length with:
len(mockedNodeClient.NetworkInfoCalls())
func (*NodeClientMock) NetworkTotals ¶
func (mock *NodeClientMock) NetworkTotals(ctx context.Context) (*models.NetworkTotals, error)
NetworkTotals calls NetworkTotalsFunc.
func (*NodeClientMock) NetworkTotalsCalls ¶
func (mock *NodeClientMock) NetworkTotalsCalls() []struct { Ctx context.Context }
NetworkTotalsCalls gets all the calls that were made to NetworkTotals. Check the length with:
len(mockedNodeClient.NetworkTotalsCalls())
func (*NodeClientMock) NewAddress ¶
func (mock *NodeClientMock) NewAddress(ctx context.Context, opts *models.OptsNewAddress) (string, error)
NewAddress calls NewAddressFunc.
func (*NodeClientMock) NewAddressCalls ¶
func (mock *NodeClientMock) NewAddressCalls() []struct { Ctx context.Context Opts *models.OptsNewAddress }
NewAddressCalls gets all the calls that were made to NewAddress. Check the length with:
len(mockedNodeClient.NewAddressCalls())
func (*NodeClientMock) NodeInfo ¶
func (mock *NodeClientMock) NodeInfo(ctx context.Context, opts *models.OptsNodeInfo) ([]*models.NodeInfo, error)
NodeInfo calls NodeInfoFunc.
func (*NodeClientMock) NodeInfoCalls ¶
func (mock *NodeClientMock) NodeInfoCalls() []struct { Ctx context.Context Opts *models.OptsNodeInfo }
NodeInfoCalls gets all the calls that were made to NodeInfo. Check the length with:
len(mockedNodeClient.NodeInfoCalls())
func (*NodeClientMock) Output ¶
func (mock *NodeClientMock) Output(ctx context.Context, txID string, n int, opts *models.OptsOutput) (*models.Output, error)
Output calls OutputFunc.
func (*NodeClientMock) OutputCalls ¶
func (mock *NodeClientMock) OutputCalls() []struct { Ctx context.Context TxID string N int Opts *models.OptsOutput }
OutputCalls gets all the calls that were made to Output. Check the length with:
len(mockedNodeClient.OutputCalls())
func (*NodeClientMock) OutputSetInfo ¶
func (mock *NodeClientMock) OutputSetInfo(ctx context.Context) (*models.OutputSetInfo, error)
OutputSetInfo calls OutputSetInfoFunc.
func (*NodeClientMock) OutputSetInfoCalls ¶
func (mock *NodeClientMock) OutputSetInfoCalls() []struct { Ctx context.Context }
OutputSetInfoCalls gets all the calls that were made to OutputSetInfo. Check the length with:
len(mockedNodeClient.OutputSetInfoCalls())
func (*NodeClientMock) PeerInfoCalls ¶
func (mock *NodeClientMock) PeerInfoCalls() []struct { Ctx context.Context }
PeerInfoCalls gets all the calls that were made to PeerInfo. Check the length with:
len(mockedNodeClient.PeerInfoCalls())
func (*NodeClientMock) Ping ¶
func (mock *NodeClientMock) Ping(ctx context.Context) error
Ping calls PingFunc.
func (*NodeClientMock) PingCalls ¶
func (mock *NodeClientMock) PingCalls() []struct { Ctx context.Context }
PingCalls gets all the calls that were made to Ping. Check the length with:
len(mockedNodeClient.PingCalls())
func (*NodeClientMock) PreciousBlock ¶
func (mock *NodeClientMock) PreciousBlock(ctx context.Context, blockHash string) error
PreciousBlock calls PreciousBlockFunc.
func (*NodeClientMock) PreciousBlockCalls ¶
func (mock *NodeClientMock) PreciousBlockCalls() []struct { Ctx context.Context BlockHash string }
PreciousBlockCalls gets all the calls that were made to PreciousBlock. Check the length with:
len(mockedNodeClient.PreciousBlockCalls())
func (*NodeClientMock) PrioritiseTx ¶
func (mock *NodeClientMock) PrioritiseTx(ctx context.Context, txID string, feeDelta int64) (bool, error)
PrioritiseTx calls PrioritiseTxFunc.
func (*NodeClientMock) PrioritiseTxCalls ¶
func (mock *NodeClientMock) PrioritiseTxCalls() []struct { Ctx context.Context TxID string FeeDelta int64 }
PrioritiseTxCalls gets all the calls that were made to PrioritiseTx. Check the length with:
len(mockedNodeClient.PrioritiseTxCalls())
func (*NodeClientMock) PruneChain ¶
PruneChain calls PruneChainFunc.
func (*NodeClientMock) PruneChainCalls ¶
func (mock *NodeClientMock) PruneChainCalls() []struct { Ctx context.Context Height int }
PruneChainCalls gets all the calls that were made to PruneChain. Check the length with:
len(mockedNodeClient.PruneChainCalls())
func (*NodeClientMock) RawChangeAddress ¶
func (mock *NodeClientMock) RawChangeAddress(ctx context.Context) (string, error)
RawChangeAddress calls RawChangeAddressFunc.
func (*NodeClientMock) RawChangeAddressCalls ¶
func (mock *NodeClientMock) RawChangeAddressCalls() []struct { Ctx context.Context }
RawChangeAddressCalls gets all the calls that were made to RawChangeAddress. Check the length with:
len(mockedNodeClient.RawChangeAddressCalls())
func (*NodeClientMock) RawMempool ¶
func (mock *NodeClientMock) RawMempool(ctx context.Context) (models.MempoolTxs, error)
RawMempool calls RawMempoolFunc.
func (*NodeClientMock) RawMempoolCalls ¶
func (mock *NodeClientMock) RawMempoolCalls() []struct { Ctx context.Context }
RawMempoolCalls gets all the calls that were made to RawMempool. Check the length with:
len(mockedNodeClient.RawMempoolCalls())
func (*NodeClientMock) RawMempoolIDs ¶
func (mock *NodeClientMock) RawMempoolIDs(ctx context.Context) ([]string, error)
RawMempoolIDs calls RawMempoolIDsFunc.
func (*NodeClientMock) RawMempoolIDsCalls ¶
func (mock *NodeClientMock) RawMempoolIDsCalls() []struct { Ctx context.Context }
RawMempoolIDsCalls gets all the calls that were made to RawMempoolIDs. Check the length with:
len(mockedNodeClient.RawMempoolIDsCalls())
func (*NodeClientMock) RawNonFinalMempool ¶
func (mock *NodeClientMock) RawNonFinalMempool(ctx context.Context) ([]string, error)
RawNonFinalMempool calls RawNonFinalMempoolFunc.
func (*NodeClientMock) RawNonFinalMempoolCalls ¶
func (mock *NodeClientMock) RawNonFinalMempoolCalls() []struct { Ctx context.Context }
RawNonFinalMempoolCalls gets all the calls that were made to RawNonFinalMempool. Check the length with:
len(mockedNodeClient.RawNonFinalMempoolCalls())
func (*NodeClientMock) RawTransaction ¶
func (mock *NodeClientMock) RawTransaction(ctx context.Context, txID string) (*bt.Tx, error)
RawTransaction calls RawTransactionFunc.
func (*NodeClientMock) RawTransactionCalls ¶
func (mock *NodeClientMock) RawTransactionCalls() []struct { Ctx context.Context TxID string }
RawTransactionCalls gets all the calls that were made to RawTransaction. Check the length with:
len(mockedNodeClient.RawTransactionCalls())
func (*NodeClientMock) RebuildJournal ¶
func (mock *NodeClientMock) RebuildJournal(ctx context.Context) error
RebuildJournal calls RebuildJournalFunc.
func (*NodeClientMock) RebuildJournalCalls ¶
func (mock *NodeClientMock) RebuildJournalCalls() []struct { Ctx context.Context }
RebuildJournalCalls gets all the calls that were made to RebuildJournal. Check the length with:
len(mockedNodeClient.RebuildJournalCalls())
func (*NodeClientMock) ReceivedByAddress ¶
ReceivedByAddress calls ReceivedByAddressFunc.
func (*NodeClientMock) ReceivedByAddressCalls ¶
func (mock *NodeClientMock) ReceivedByAddressCalls() []struct { Ctx context.Context Address string }
ReceivedByAddressCalls gets all the calls that were made to ReceivedByAddress. Check the length with:
len(mockedNodeClient.ReceivedByAddressCalls())
func (*NodeClientMock) RemovePrunedFunds ¶
func (mock *NodeClientMock) RemovePrunedFunds(ctx context.Context, txID string) error
RemovePrunedFunds calls RemovePrunedFundsFunc.
func (*NodeClientMock) RemovePrunedFundsCalls ¶
func (mock *NodeClientMock) RemovePrunedFundsCalls() []struct { Ctx context.Context TxID string }
RemovePrunedFundsCalls gets all the calls that were made to RemovePrunedFunds. Check the length with:
len(mockedNodeClient.RemovePrunedFundsCalls())
func (*NodeClientMock) SendFrom ¶
func (mock *NodeClientMock) SendFrom(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error)
SendFrom calls SendFromFunc.
func (*NodeClientMock) SendFromCalls ¶
func (mock *NodeClientMock) SendFromCalls() []struct { Ctx context.Context From string To string Amount uint64 Opts *models.OptsSendFrom }
SendFromCalls gets all the calls that were made to SendFrom. Check the length with:
len(mockedNodeClient.SendFromCalls())
func (*NodeClientMock) SendMany ¶
func (mock *NodeClientMock) SendMany(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error)
SendMany calls SendManyFunc.
func (*NodeClientMock) SendManyCalls ¶
func (mock *NodeClientMock) SendManyCalls() []struct { Ctx context.Context From string Amounts map[string]uint64 Opts *models.OptsSendMany }
SendManyCalls gets all the calls that were made to SendMany. Check the length with:
len(mockedNodeClient.SendManyCalls())
func (*NodeClientMock) SendRawTransaction ¶
func (mock *NodeClientMock) SendRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error)
SendRawTransaction calls SendRawTransactionFunc.
func (*NodeClientMock) SendRawTransactionCalls ¶
func (mock *NodeClientMock) SendRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsSendRawTransaction }
SendRawTransactionCalls gets all the calls that were made to SendRawTransaction. Check the length with:
len(mockedNodeClient.SendRawTransactionCalls())
func (*NodeClientMock) SendRawTransactions ¶
func (mock *NodeClientMock) SendRawTransactions(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error)
SendRawTransactions calls SendRawTransactionsFunc.
func (*NodeClientMock) SendRawTransactionsCalls ¶
func (mock *NodeClientMock) SendRawTransactionsCalls() []struct { Ctx context.Context Params []models.ParamsSendRawTransactions }
SendRawTransactionsCalls gets all the calls that were made to SendRawTransactions. Check the length with:
len(mockedNodeClient.SendRawTransactionsCalls())
func (*NodeClientMock) SendToAddress ¶
func (mock *NodeClientMock) SendToAddress(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error)
SendToAddress calls SendToAddressFunc.
func (*NodeClientMock) SendToAddressCalls ¶
func (mock *NodeClientMock) SendToAddressCalls() []struct { Ctx context.Context Address string Amount uint64 Opts *models.OptsSendToAddress }
SendToAddressCalls gets all the calls that were made to SendToAddress. Check the length with:
len(mockedNodeClient.SendToAddressCalls())
func (*NodeClientMock) SetAccount ¶
SetAccount calls SetAccountFunc.
func (*NodeClientMock) SetAccountCalls ¶
func (mock *NodeClientMock) SetAccountCalls() []struct { Ctx context.Context Address string Account string }
SetAccountCalls gets all the calls that were made to SetAccount. Check the length with:
len(mockedNodeClient.SetAccountCalls())
func (*NodeClientMock) SetBan ¶
func (mock *NodeClientMock) SetBan(ctx context.Context, subnet string, action internal.BanAction, opts *models.OptsSetBan) error
SetBan calls SetBanFunc.
func (*NodeClientMock) SetBanCalls ¶
func (mock *NodeClientMock) SetBanCalls() []struct { Ctx context.Context Subnet string Action internal.BanAction Opts *models.OptsSetBan }
SetBanCalls gets all the calls that were made to SetBan. Check the length with:
len(mockedNodeClient.SetBanCalls())
func (*NodeClientMock) SetBlockMaxSize ¶
SetBlockMaxSize calls SetBlockMaxSizeFunc.
func (*NodeClientMock) SetBlockMaxSizeCalls ¶
func (mock *NodeClientMock) SetBlockMaxSizeCalls() []struct { Ctx context.Context Size uint64 }
SetBlockMaxSizeCalls gets all the calls that were made to SetBlockMaxSize. Check the length with:
len(mockedNodeClient.SetBlockMaxSizeCalls())
func (*NodeClientMock) SetExcessiveBlock ¶
SetExcessiveBlock calls SetExcessiveBlockFunc.
func (*NodeClientMock) SetExcessiveBlockCalls ¶
func (mock *NodeClientMock) SetExcessiveBlockCalls() []struct { Ctx context.Context Size uint64 }
SetExcessiveBlockCalls gets all the calls that were made to SetExcessiveBlock. Check the length with:
len(mockedNodeClient.SetExcessiveBlockCalls())
func (*NodeClientMock) SetNetworkActive ¶
func (mock *NodeClientMock) SetNetworkActive(ctx context.Context, enabled bool) error
SetNetworkActive calls SetNetworkActiveFunc.
func (*NodeClientMock) SetNetworkActiveCalls ¶
func (mock *NodeClientMock) SetNetworkActiveCalls() []struct { Ctx context.Context Enabled bool }
SetNetworkActiveCalls gets all the calls that were made to SetNetworkActive. Check the length with:
len(mockedNodeClient.SetNetworkActiveCalls())
func (*NodeClientMock) SetTxFeeCalls ¶
func (mock *NodeClientMock) SetTxFeeCalls() []struct { Ctx context.Context Amount uint64 }
SetTxFeeCalls gets all the calls that were made to SetTxFee. Check the length with:
len(mockedNodeClient.SetTxFeeCalls())
func (*NodeClientMock) SetTxPropagationFrequency ¶
func (mock *NodeClientMock) SetTxPropagationFrequency(ctx context.Context, frequency uint64) error
SetTxPropagationFrequency calls SetTxPropagationFrequencyFunc.
func (*NodeClientMock) SetTxPropagationFrequencyCalls ¶
func (mock *NodeClientMock) SetTxPropagationFrequencyCalls() []struct { Ctx context.Context Frequency uint64 }
SetTxPropagationFrequencyCalls gets all the calls that were made to SetTxPropagationFrequency. Check the length with:
len(mockedNodeClient.SetTxPropagationFrequencyCalls())
func (*NodeClientMock) SettingsCalls ¶
func (mock *NodeClientMock) SettingsCalls() []struct { Ctx context.Context }
SettingsCalls gets all the calls that were made to Settings. Check the length with:
len(mockedNodeClient.SettingsCalls())
func (*NodeClientMock) SignMessage ¶
func (mock *NodeClientMock) SignMessage(ctx context.Context, address string, message string) (string, error)
SignMessage calls SignMessageFunc.
func (*NodeClientMock) SignMessageCalls ¶
func (mock *NodeClientMock) SignMessageCalls() []struct { Ctx context.Context Address string Message string }
SignMessageCalls gets all the calls that were made to SignMessage. Check the length with:
len(mockedNodeClient.SignMessageCalls())
func (*NodeClientMock) SignMessageWithPrivKey ¶
func (mock *NodeClientMock) SignMessageWithPrivKey(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error)
SignMessageWithPrivKey calls SignMessageWithPrivKeyFunc.
func (*NodeClientMock) SignMessageWithPrivKeyCalls ¶
func (mock *NodeClientMock) SignMessageWithPrivKeyCalls() []struct { Ctx context.Context P *primitives.PrivateKey Msg string }
SignMessageWithPrivKeyCalls gets all the calls that were made to SignMessageWithPrivKey. Check the length with:
len(mockedNodeClient.SignMessageWithPrivKeyCalls())
func (*NodeClientMock) SignRawTransaction ¶
func (mock *NodeClientMock) SignRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error)
SignRawTransaction calls SignRawTransactionFunc.
func (*NodeClientMock) SignRawTransactionCalls ¶
func (mock *NodeClientMock) SignRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsSignRawTransaction }
SignRawTransactionCalls gets all the calls that were made to SignRawTransaction. Check the length with:
len(mockedNodeClient.SignRawTransactionCalls())
func (*NodeClientMock) Stop ¶
func (mock *NodeClientMock) Stop(ctx context.Context) error
Stop calls StopFunc.
func (*NodeClientMock) StopCalls ¶
func (mock *NodeClientMock) StopCalls() []struct { Ctx context.Context }
StopCalls gets all the calls that were made to Stop. Check the length with:
len(mockedNodeClient.StopCalls())
func (*NodeClientMock) SubmitBlock ¶
func (mock *NodeClientMock) SubmitBlock(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
SubmitBlock calls SubmitBlockFunc.
func (*NodeClientMock) SubmitBlockCalls ¶
func (mock *NodeClientMock) SubmitBlockCalls() []struct { Ctx context.Context Block *bc.Block Params *models.OptsSubmitBlock }
SubmitBlockCalls gets all the calls that were made to SubmitBlock. Check the length with:
len(mockedNodeClient.SubmitBlockCalls())
func (*NodeClientMock) SubmitMiningSolution ¶
func (mock *NodeClientMock) SubmitMiningSolution(ctx context.Context, solution *models.MiningSolution) (string, error)
SubmitMiningSolution calls SubmitMiningSolutionFunc.
func (*NodeClientMock) SubmitMiningSolutionCalls ¶
func (mock *NodeClientMock) SubmitMiningSolutionCalls() []struct { Ctx context.Context Solution *models.MiningSolution }
SubmitMiningSolutionCalls gets all the calls that were made to SubmitMiningSolution. Check the length with:
len(mockedNodeClient.SubmitMiningSolutionCalls())
func (*NodeClientMock) Transaction ¶
func (mock *NodeClientMock) Transaction(ctx context.Context, txID string) (*models.Transaction, error)
Transaction calls TransactionFunc.
func (*NodeClientMock) TransactionCalls ¶
func (mock *NodeClientMock) TransactionCalls() []struct { Ctx context.Context TxID string }
TransactionCalls gets all the calls that were made to Transaction. Check the length with:
len(mockedNodeClient.TransactionCalls())
func (*NodeClientMock) UnconfirmedBalance ¶
func (mock *NodeClientMock) UnconfirmedBalance(ctx context.Context) (uint64, error)
UnconfirmedBalance calls UnconfirmedBalanceFunc.
func (*NodeClientMock) UnconfirmedBalanceCalls ¶
func (mock *NodeClientMock) UnconfirmedBalanceCalls() []struct { Ctx context.Context }
UnconfirmedBalanceCalls gets all the calls that were made to UnconfirmedBalance. Check the length with:
len(mockedNodeClient.UnconfirmedBalanceCalls())
func (*NodeClientMock) UptimeCalls ¶
func (mock *NodeClientMock) UptimeCalls() []struct { Ctx context.Context }
UptimeCalls gets all the calls that were made to Uptime. Check the length with:
len(mockedNodeClient.UptimeCalls())
func (*NodeClientMock) ValidateAddress ¶
func (mock *NodeClientMock) ValidateAddress(ctx context.Context, address string) (*models.ValidateAddress, error)
ValidateAddress calls ValidateAddressFunc.
func (*NodeClientMock) ValidateAddressCalls ¶
func (mock *NodeClientMock) ValidateAddressCalls() []struct { Ctx context.Context Address string }
ValidateAddressCalls gets all the calls that were made to ValidateAddress. Check the length with:
len(mockedNodeClient.ValidateAddressCalls())
func (*NodeClientMock) VerifyBlockCandidate ¶
func (mock *NodeClientMock) VerifyBlockCandidate(ctx context.Context, block *bc.Block, params *models.OptsSubmitBlock) (string, error)
VerifyBlockCandidate calls VerifyBlockCandidateFunc.
func (*NodeClientMock) VerifyBlockCandidateCalls ¶
func (mock *NodeClientMock) VerifyBlockCandidateCalls() []struct { Ctx context.Context Block *bc.Block Params *models.OptsSubmitBlock }
VerifyBlockCandidateCalls gets all the calls that were made to VerifyBlockCandidate. Check the length with:
len(mockedNodeClient.VerifyBlockCandidateCalls())
func (*NodeClientMock) VerifyChain ¶
func (mock *NodeClientMock) VerifyChain(ctx context.Context) (bool, error)
VerifyChain calls VerifyChainFunc.
func (*NodeClientMock) VerifyChainCalls ¶
func (mock *NodeClientMock) VerifyChainCalls() []struct { Ctx context.Context }
VerifyChainCalls gets all the calls that were made to VerifyChain. Check the length with:
len(mockedNodeClient.VerifyChainCalls())
func (*NodeClientMock) VerifySignedMessage ¶
func (mock *NodeClientMock) VerifySignedMessage(ctx context.Context, p *primitives.PrivateKey, signature string, message string) (bool, error)
VerifySignedMessage calls VerifySignedMessageFunc.
func (*NodeClientMock) VerifySignedMessageCalls ¶
func (mock *NodeClientMock) VerifySignedMessageCalls() []struct { Ctx context.Context P *primitives.PrivateKey Signature string Message string }
VerifySignedMessageCalls gets all the calls that were made to VerifySignedMessage. Check the length with:
len(mockedNodeClient.VerifySignedMessageCalls())
func (*NodeClientMock) WalletInfo ¶
func (mock *NodeClientMock) WalletInfo(ctx context.Context) (*models.WalletInfo, error)
WalletInfo calls WalletInfoFunc.
func (*NodeClientMock) WalletInfoCalls ¶
func (mock *NodeClientMock) WalletInfoCalls() []struct { Ctx context.Context }
WalletInfoCalls gets all the calls that were made to WalletInfo. Check the length with:
len(mockedNodeClient.WalletInfoCalls())
func (*NodeClientMock) WalletLock ¶
func (mock *NodeClientMock) WalletLock(ctx context.Context) error
WalletLock calls WalletLockFunc.
func (*NodeClientMock) WalletLockCalls ¶
func (mock *NodeClientMock) WalletLockCalls() []struct { Ctx context.Context }
WalletLockCalls gets all the calls that were made to WalletLock. Check the length with:
len(mockedNodeClient.WalletLockCalls())
func (*NodeClientMock) WalletPhassphrase ¶
func (mock *NodeClientMock) WalletPhassphrase(ctx context.Context, passphrase string, timeout int) error
WalletPhassphrase calls WalletPhassphraseFunc.
func (*NodeClientMock) WalletPhassphraseCalls ¶
func (mock *NodeClientMock) WalletPhassphraseCalls() []struct { Ctx context.Context Passphrase string Timeout int }
WalletPhassphraseCalls gets all the calls that were made to WalletPhassphrase. Check the length with:
len(mockedNodeClient.WalletPhassphraseCalls())
func (*NodeClientMock) WalletPhassphraseChange ¶
func (mock *NodeClientMock) WalletPhassphraseChange(ctx context.Context, oldPassphrase string, newPassphrase string) error
WalletPhassphraseChange calls WalletPhassphraseChangeFunc.
func (*NodeClientMock) WalletPhassphraseChangeCalls ¶
func (mock *NodeClientMock) WalletPhassphraseChangeCalls() []struct { Ctx context.Context OldPassphrase string NewPassphrase string }
WalletPhassphraseChangeCalls gets all the calls that were made to WalletPhassphraseChange. Check the length with:
len(mockedNodeClient.WalletPhassphraseChangeCalls())
type SocketMock ¶
type SocketMock struct { // AddrFunc mocks the Addr method. AddrFunc func() net.Addr // CloseFunc mocks the Close method. CloseFunc func() error // DialFunc mocks the Dial method. DialFunc func(ep string) error // GetOptionFunc mocks the GetOption method. GetOptionFunc func(name string) (interface{}, error) // ListenFunc mocks the Listen method. ListenFunc func(ep string) error // RecvFunc mocks the Recv method. RecvFunc func() (zmq4.Msg, error) // SendFunc mocks the Send method. SendFunc func(msg zmq4.Msg) error // SendMultiFunc mocks the SendMulti method. SendMultiFunc func(msg zmq4.Msg) error // SetOptionFunc mocks the SetOption method. SetOptionFunc func(name string, value interface{}) error // TypeFunc mocks the Type method. TypeFunc func() zmq4.SocketType // contains filtered or unexported fields }
SocketMock is a mock implementation of zmq4.Socket.
func TestSomethingThatUsesSocket(t *testing.T) { // make and configure a mocked zmq4.Socket mockedSocket := &SocketMock{ AddrFunc: func() net.Addr { panic("mock out the Addr method") }, CloseFunc: func() error { panic("mock out the Close method") }, DialFunc: func(ep string) error { panic("mock out the Dial method") }, GetOptionFunc: func(name string) (interface{}, error) { panic("mock out the GetOption method") }, ListenFunc: func(ep string) error { panic("mock out the Listen method") }, RecvFunc: func() (zmq4.Msg, error) { panic("mock out the Recv method") }, SendFunc: func(msg zmq4.Msg) error { panic("mock out the Send method") }, SendMultiFunc: func(msg zmq4.Msg) error { panic("mock out the SendMulti method") }, SetOptionFunc: func(name string, value interface{}) error { panic("mock out the SetOption method") }, TypeFunc: func() zmq4.SocketType { panic("mock out the Type method") }, } // use mockedSocket in code that requires zmq4.Socket // and then make assertions. }
func (*SocketMock) AddrCalls ¶
func (mock *SocketMock) AddrCalls() []struct { }
AddrCalls gets all the calls that were made to Addr. Check the length with:
len(mockedSocket.AddrCalls())
func (*SocketMock) CloseCalls ¶
func (mock *SocketMock) CloseCalls() []struct { }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedSocket.CloseCalls())
func (*SocketMock) DialCalls ¶
func (mock *SocketMock) DialCalls() []struct { Ep string }
DialCalls gets all the calls that were made to Dial. Check the length with:
len(mockedSocket.DialCalls())
func (*SocketMock) GetOption ¶
func (mock *SocketMock) GetOption(name string) (interface{}, error)
GetOption calls GetOptionFunc.
func (*SocketMock) GetOptionCalls ¶
func (mock *SocketMock) GetOptionCalls() []struct { Name string }
GetOptionCalls gets all the calls that were made to GetOption. Check the length with:
len(mockedSocket.GetOptionCalls())
func (*SocketMock) Listen ¶
func (mock *SocketMock) Listen(ep string) error
Listen calls ListenFunc.
func (*SocketMock) ListenCalls ¶
func (mock *SocketMock) ListenCalls() []struct { Ep string }
ListenCalls gets all the calls that were made to Listen. Check the length with:
len(mockedSocket.ListenCalls())
func (*SocketMock) RecvCalls ¶
func (mock *SocketMock) RecvCalls() []struct { }
RecvCalls gets all the calls that were made to Recv. Check the length with:
len(mockedSocket.RecvCalls())
func (*SocketMock) SendCalls ¶
func (mock *SocketMock) SendCalls() []struct { Msg zmq4.Msg }
SendCalls gets all the calls that were made to Send. Check the length with:
len(mockedSocket.SendCalls())
func (*SocketMock) SendMulti ¶
func (mock *SocketMock) SendMulti(msg zmq4.Msg) error
SendMulti calls SendMultiFunc.
func (*SocketMock) SendMultiCalls ¶
func (mock *SocketMock) SendMultiCalls() []struct { Msg zmq4.Msg }
SendMultiCalls gets all the calls that were made to SendMulti. Check the length with:
len(mockedSocket.SendMultiCalls())
func (*SocketMock) SetOption ¶
func (mock *SocketMock) SetOption(name string, value interface{}) error
SetOption calls SetOptionFunc.
func (*SocketMock) SetOptionCalls ¶
func (mock *SocketMock) SetOptionCalls() []struct { Name string Value interface{} }
SetOptionCalls gets all the calls that were made to SetOption. Check the length with:
len(mockedSocket.SetOptionCalls())
func (*SocketMock) TypeCalls ¶
func (mock *SocketMock) TypeCalls() []struct { }
TypeCalls gets all the calls that were made to Type. Check the length with:
len(mockedSocket.TypeCalls())
type TransactionClientMock ¶
type TransactionClientMock struct { // AddToConfiscationTransactionWhitelist mocks the AddToConfiscationTransactionWhitelist method AddToConfiscationTransactionWhitelistFunc func(ctx context.Context, confiscationTransactions []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error) // AddToConsensusBlacklistFunc mocks the AddToConsensusBlacklist method AddToConsensusBlacklistFunc func(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error) // CreateRawTransactionFunc mocks the CreateRawTransaction method. CreateRawTransactionFunc func(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error) // FundRawTransactionFunc mocks the FundRawTransaction method. FundRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error) // RawTransactionFunc mocks the RawTransaction method. RawTransactionFunc func(ctx context.Context, txID string) (*bt.Tx, error) // SendRawTransactionFunc mocks the SendRawTransaction method. SendRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error) // SendRawTransactionsFunc mocks the SendRawTransactions method. SendRawTransactionsFunc func(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error) // SignRawTransactionFunc mocks the SignRawTransaction method. SignRawTransactionFunc func(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error) // contains filtered or unexported fields }
TransactionClientMock is a mock implementation of bn.TransactionClient.
func TestSomethingThatUsesTransactionClient(t *testing.T) { // make and configure a mocked bn.TransactionClient mockedTransactionClient := &TransactionClientMock{ CreateRawTransactionFunc: func(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error) { panic("mock out the CreateRawTransaction method") }, FundRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error) { panic("mock out the FundRawTransaction method") }, RawTransactionFunc: func(ctx context.Context, txID string) (*bt.Tx, error) { panic("mock out the RawTransaction method") }, SendRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error) { panic("mock out the SendRawTransaction method") }, SendRawTransactionsFunc: func(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error) { panic("mock out the SendRawTransactions method") }, SignRawTransactionFunc: func(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error) { panic("mock out the SignRawTransaction method") }, } // use mockedTransactionClient in code that requires bn.TransactionClient // and then make assertions. }
func (*TransactionClientMock) AddToConfiscationTransactionWhitelist ¶
func (mock *TransactionClientMock) AddToConfiscationTransactionWhitelist(ctx context.Context, confiscationTxs []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
AddToConfiscationTransactionWhitelist calls AddToConfiscationTransactionWhitelistFunc
func (*TransactionClientMock) AddToConsensusBlacklist ¶
func (mock *TransactionClientMock) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
AddToConsensusBlacklist calls AddToConsensusBlacklistFunc
func (*TransactionClientMock) CreateRawTransaction ¶
func (mock *TransactionClientMock) CreateRawTransaction(ctx context.Context, utxos bt.UTXOs, params models.ParamsCreateRawTransaction) (*bt.Tx, error)
CreateRawTransaction calls CreateRawTransactionFunc.
func (*TransactionClientMock) CreateRawTransactionCalls ¶
func (mock *TransactionClientMock) CreateRawTransactionCalls() []struct { Ctx context.Context Utxos bt.UTXOs Params models.ParamsCreateRawTransaction }
CreateRawTransactionCalls gets all the calls that were made to CreateRawTransaction. Check the length with:
len(mockedTransactionClient.CreateRawTransactionCalls())
func (*TransactionClientMock) FundRawTransaction ¶
func (mock *TransactionClientMock) FundRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsFundRawTransaction) (*models.FundRawTransaction, error)
FundRawTransaction calls FundRawTransactionFunc.
func (*TransactionClientMock) FundRawTransactionCalls ¶
func (mock *TransactionClientMock) FundRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsFundRawTransaction }
FundRawTransactionCalls gets all the calls that were made to FundRawTransaction. Check the length with:
len(mockedTransactionClient.FundRawTransactionCalls())
func (*TransactionClientMock) RawTransaction ¶
func (mock *TransactionClientMock) RawTransaction(ctx context.Context, txID string) (*bt.Tx, error)
RawTransaction calls RawTransactionFunc.
func (*TransactionClientMock) RawTransactionCalls ¶
func (mock *TransactionClientMock) RawTransactionCalls() []struct { Ctx context.Context TxID string }
RawTransactionCalls gets all the calls that were made to RawTransaction. Check the length with:
len(mockedTransactionClient.RawTransactionCalls())
func (*TransactionClientMock) SendRawTransaction ¶
func (mock *TransactionClientMock) SendRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSendRawTransaction) (string, error)
SendRawTransaction calls SendRawTransactionFunc.
func (*TransactionClientMock) SendRawTransactionCalls ¶
func (mock *TransactionClientMock) SendRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsSendRawTransaction }
SendRawTransactionCalls gets all the calls that were made to SendRawTransaction. Check the length with:
len(mockedTransactionClient.SendRawTransactionCalls())
func (*TransactionClientMock) SendRawTransactions ¶
func (mock *TransactionClientMock) SendRawTransactions(ctx context.Context, params ...models.ParamsSendRawTransactions) (*models.SendRawTransactionsResponse, error)
SendRawTransactions calls SendRawTransactionsFunc.
func (*TransactionClientMock) SendRawTransactionsCalls ¶
func (mock *TransactionClientMock) SendRawTransactionsCalls() []struct { Ctx context.Context Params []models.ParamsSendRawTransactions }
SendRawTransactionsCalls gets all the calls that were made to SendRawTransactions. Check the length with:
len(mockedTransactionClient.SendRawTransactionsCalls())
func (*TransactionClientMock) SignRawTransaction ¶
func (mock *TransactionClientMock) SignRawTransaction(ctx context.Context, tx *bt.Tx, opts *models.OptsSignRawTransaction) (*models.SignedRawTransaction, error)
SignRawTransaction calls SignRawTransactionFunc.
func (*TransactionClientMock) SignRawTransactionCalls ¶
func (mock *TransactionClientMock) SignRawTransactionCalls() []struct { Ctx context.Context Tx *bt.Tx Opts *models.OptsSignRawTransaction }
SignRawTransactionCalls gets all the calls that were made to SignRawTransaction. Check the length with:
len(mockedTransactionClient.SignRawTransactionCalls())
type UtilClientMock ¶
type UtilClientMock struct { // ClearInvalidTransactionsFunc mocks the ClearInvalidTransactions method. ClearInvalidTransactionsFunc func(ctx context.Context) (uint64, error) // CreateMultiSigFunc mocks the CreateMultiSig method. CreateMultiSigFunc func(ctx context.Context, n int, keys ...string) (*models.MultiSig, error) // SignMessageWithPrivKeyFunc mocks the SignMessageWithPrivKey method. SignMessageWithPrivKeyFunc func(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error) // ValidateAddressFunc mocks the ValidateAddress method. ValidateAddressFunc func(ctx context.Context, address string) (*models.ValidateAddress, error) // VerifySignedMessageFunc mocks the VerifySignedMessage method. VerifySignedMessageFunc func(ctx context.Context, p *primitives.PrivateKey, signature string, message string) (bool, error) // contains filtered or unexported fields }
UtilClientMock is a mock implementation of bn.UtilClient.
func TestSomethingThatUsesUtilClient(t *testing.T) { // make and configure a mocked bn.UtilClient mockedUtilClient := &UtilClientMock{ ClearInvalidTransactionsFunc: func(ctx context.Context) (uint64, error) { panic("mock out the ClearInvalidTransactions method") }, CreateMultiSigFunc: func(ctx context.Context, n int, keys ...string) (*models.MultiSig, error) { panic("mock out the CreateMultiSig method") }, SignMessageWithPrivKeyFunc: func(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error) { panic("mock out the SignMessageWithPrivKey method") }, ValidateAddressFunc: func(ctx context.Context, address string) (*models.ValidateAddress, error) { panic("mock out the ValidateAddress method") }, VerifySignedMessageFunc: func(ctx context.Context, p *primitives.PrivateKey, signature string, message string) (bool, error) { panic("mock out the VerifySignedMessage method") }, } // use mockedUtilClient in code that requires bn.UtilClient // and then make assertions. }
func (*UtilClientMock) ClearInvalidTransactions ¶
func (mock *UtilClientMock) ClearInvalidTransactions(ctx context.Context) (uint64, error)
ClearInvalidTransactions calls ClearInvalidTransactionsFunc.
func (*UtilClientMock) ClearInvalidTransactionsCalls ¶
func (mock *UtilClientMock) ClearInvalidTransactionsCalls() []struct { Ctx context.Context }
ClearInvalidTransactionsCalls gets all the calls that were made to ClearInvalidTransactions. Check the length with:
len(mockedUtilClient.ClearInvalidTransactionsCalls())
func (*UtilClientMock) CreateMultiSig ¶
func (mock *UtilClientMock) CreateMultiSig(ctx context.Context, n int, keys ...string) (*models.MultiSig, error)
CreateMultiSig calls CreateMultiSigFunc.
func (*UtilClientMock) CreateMultiSigCalls ¶
func (mock *UtilClientMock) CreateMultiSigCalls() []struct { Ctx context.Context N int Keys []string }
CreateMultiSigCalls gets all the calls that were made to CreateMultiSig. Check the length with:
len(mockedUtilClient.CreateMultiSigCalls())
func (*UtilClientMock) SignMessageWithPrivKey ¶
func (mock *UtilClientMock) SignMessageWithPrivKey(ctx context.Context, p *primitives.PrivateKey, msg string) (string, error)
SignMessageWithPrivKey calls SignMessageWithPrivKeyFunc.
func (*UtilClientMock) SignMessageWithPrivKeyCalls ¶
func (mock *UtilClientMock) SignMessageWithPrivKeyCalls() []struct { Ctx context.Context P *primitives.PrivateKey Msg string }
SignMessageWithPrivKeyCalls gets all the calls that were made to SignMessageWithPrivKey. Check the length with:
len(mockedUtilClient.SignMessageWithPrivKeyCalls())
func (*UtilClientMock) ValidateAddress ¶
func (mock *UtilClientMock) ValidateAddress(ctx context.Context, address string) (*models.ValidateAddress, error)
ValidateAddress calls ValidateAddressFunc.
func (*UtilClientMock) ValidateAddressCalls ¶
func (mock *UtilClientMock) ValidateAddressCalls() []struct { Ctx context.Context Address string }
ValidateAddressCalls gets all the calls that were made to ValidateAddress. Check the length with:
len(mockedUtilClient.ValidateAddressCalls())
func (*UtilClientMock) VerifySignedMessage ¶
func (mock *UtilClientMock) VerifySignedMessage(ctx context.Context, p *primitives.PrivateKey, signature string, message string) (bool, error)
VerifySignedMessage calls VerifySignedMessageFunc.
func (*UtilClientMock) VerifySignedMessageCalls ¶
func (mock *UtilClientMock) VerifySignedMessageCalls() []struct { Ctx context.Context P *primitives.PrivateKey Signature string Message string }
VerifySignedMessageCalls gets all the calls that were made to VerifySignedMessage. Check the length with:
len(mockedUtilClient.VerifySignedMessageCalls())
type WalletClientMock ¶
type WalletClientMock struct { // AbandonTransactionFunc mocks the AbandonTransaction method. AbandonTransactionFunc func(ctx context.Context, txID string) error // AccountFunc mocks the Account method. AccountFunc func(ctx context.Context, address string) (string, error) // AccountAddressFunc mocks the AccountAddress method. AccountAddressFunc func(ctx context.Context, account string) (string, error) // AccountAddressesFunc mocks the AccountAddresses method. AccountAddressesFunc func(ctx context.Context, account string) ([]string, error) // AddMultiSigAddressFunc mocks the AddMultiSigAddress method. AddMultiSigAddressFunc func(ctx context.Context, n int, keys ...string) (string, error) // BackupWalletFunc mocks the BackupWallet method. BackupWalletFunc func(ctx context.Context, dest string) error // BalanceFunc mocks the Balance method. BalanceFunc func(ctx context.Context, opts *models.OptsBalance) (uint64, error) // DumpPrivateKeyFunc mocks the DumpPrivateKey method. DumpPrivateKeyFunc func(ctx context.Context, address string) (*primitives.PrivateKey, error) // DumpWalletFunc mocks the DumpWallet method. DumpWalletFunc func(ctx context.Context, dest string) (*models.DumpWallet, error) // EncryptWalletFunc mocks the EncryptWallet method. EncryptWalletFunc func(ctx context.Context, passphrase string) error // ImportAddressFunc mocks the ImportAddress method. ImportAddressFunc func(ctx context.Context, address string, opts *models.OptsImportAddress) error // ImportMultiFunc mocks the ImportMulti method. ImportMultiFunc func(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error) // ImportPrivateKeyFunc mocks the ImportPrivateKey method. ImportPrivateKeyFunc func(ctx context.Context, w *primitives.PrivateKey, opts *models.OptsImportPrivateKey) error // ImportPrunedFundsFunc mocks the ImportPrunedFunds method. ImportPrunedFundsFunc func(ctx context.Context, tx *bt.Tx, txOutProof string) error // ImportPublicKeyFunc mocks the ImportPublicKey method. ImportPublicKeyFunc func(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error // ImportWalletFunc mocks the ImportWallet method. ImportWalletFunc func(ctx context.Context, filename string) error // KeypoolRefillFunc mocks the KeypoolRefill method. KeypoolRefillFunc func(ctx context.Context, opts *models.OptsKeypoolRefill) error // ListAccountsFunc mocks the ListAccounts method. ListAccountsFunc func(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error) // ListLockUnspentFunc mocks the ListLockUnspent method. ListLockUnspentFunc func(ctx context.Context) ([]*models.LockUnspent, error) // ListReceivedByAccountFunc mocks the ListReceivedByAccount method. ListReceivedByAccountFunc func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error) // ListReceivedByAddressFunc mocks the ListReceivedByAddress method. ListReceivedByAddressFunc func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error) // ListSinceBlockFunc mocks the ListSinceBlock method. ListSinceBlockFunc func(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error) // ListTransactionsFunc mocks the ListTransactions method. ListTransactionsFunc func(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error) // ListUnspentFunc mocks the ListUnspent method. ListUnspentFunc func(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error) // ListWalletsFunc mocks the ListWallets method. ListWalletsFunc func(ctx context.Context) ([]string, error) // LockUnspentFunc mocks the LockUnspent method. LockUnspentFunc func(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error) // MoveFunc mocks the Move method. MoveFunc func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error) // NewAddressFunc mocks the NewAddress method. NewAddressFunc func(ctx context.Context, opts *models.OptsNewAddress) (string, error) // RawChangeAddressFunc mocks the RawChangeAddress method. RawChangeAddressFunc func(ctx context.Context) (string, error) // ReceivedByAddressFunc mocks the ReceivedByAddress method. ReceivedByAddressFunc func(ctx context.Context, address string) (uint64, error) // RemovePrunedFundsFunc mocks the RemovePrunedFunds method. RemovePrunedFundsFunc func(ctx context.Context, txID string) error // SendFromFunc mocks the SendFrom method. SendFromFunc func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error) // SendManyFunc mocks the SendMany method. SendManyFunc func(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error) // SendToAddressFunc mocks the SendToAddress method. SendToAddressFunc func(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error) // SetAccountFunc mocks the SetAccount method. SetAccountFunc func(ctx context.Context, address string, account string) error // SetTxFeeFunc mocks the SetTxFee method. SetTxFeeFunc func(ctx context.Context, amount uint64) (bool, error) // SignMessageFunc mocks the SignMessage method. SignMessageFunc func(ctx context.Context, address string, message string) (string, error) // TransactionFunc mocks the Transaction method. TransactionFunc func(ctx context.Context, txID string) (*models.Transaction, error) // UnconfirmedBalanceFunc mocks the UnconfirmedBalance method. UnconfirmedBalanceFunc func(ctx context.Context) (uint64, error) // WalletInfoFunc mocks the WalletInfo method. WalletInfoFunc func(ctx context.Context) (*models.WalletInfo, error) // WalletLockFunc mocks the WalletLock method. WalletLockFunc func(ctx context.Context) error // WalletPhassphraseFunc mocks the WalletPhassphrase method. WalletPhassphraseFunc func(ctx context.Context, passphrase string, timeout int) error // WalletPhassphraseChangeFunc mocks the WalletPhassphraseChange method. WalletPhassphraseChangeFunc func(ctx context.Context, oldPassphrase string, newPassphrase string) error // contains filtered or unexported fields }
WalletClientMock is a mock implementation of bn.WalletClient.
func TestSomethingThatUsesWalletClient(t *testing.T) { // make and configure a mocked bn.WalletClient mockedWalletClient := &WalletClientMock{ AbandonTransactionFunc: func(ctx context.Context, txID string) error { panic("mock out the AbandonTransaction method") }, AccountFunc: func(ctx context.Context, address string) (string, error) { panic("mock out the Account method") }, AccountAddressFunc: func(ctx context.Context, account string) (string, error) { panic("mock out the AccountAddress method") }, AccountAddressesFunc: func(ctx context.Context, account string) ([]string, error) { panic("mock out the AccountAddresses method") }, AddMultiSigAddressFunc: func(ctx context.Context, n int, keys ...string) (string, error) { panic("mock out the AddMultiSigAddress method") }, BackupWalletFunc: func(ctx context.Context, dest string) error { panic("mock out the BackupWallet method") }, BalanceFunc: func(ctx context.Context, opts *models.OptsBalance) (uint64, error) { panic("mock out the Balance method") }, DumpPrivateKeyFunc: func(ctx context.Context, address string) (*wif.WIF, error) { panic("mock out the DumpPrivateKey method") }, DumpWalletFunc: func(ctx context.Context, dest string) (*models.DumpWallet, error) { panic("mock out the DumpWallet method") }, EncryptWalletFunc: func(ctx context.Context, passphrase string) error { panic("mock out the EncryptWallet method") }, ImportAddressFunc: func(ctx context.Context, address string, opts *models.OptsImportAddress) error { panic("mock out the ImportAddress method") }, ImportMultiFunc: func(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error) { panic("mock out the ImportMulti method") }, ImportPrivateKeyFunc: func(ctx context.Context, w *wif.WIF, opts *models.OptsImportPrivateKey) error { panic("mock out the ImportPrivateKey method") }, ImportPrunedFundsFunc: func(ctx context.Context, tx *bt.Tx, txOutProof string) error { panic("mock out the ImportPrunedFunds method") }, ImportPublicKeyFunc: func(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error { panic("mock out the ImportPublicKey method") }, ImportWalletFunc: func(ctx context.Context, filename string) error { panic("mock out the ImportWallet method") }, KeypoolRefillFunc: func(ctx context.Context, opts *models.OptsKeypoolRefill) error { panic("mock out the KeypoolRefill method") }, ListAccountsFunc: func(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error) { panic("mock out the ListAccounts method") }, ListLockUnspentFunc: func(ctx context.Context) ([]*models.LockUnspent, error) { panic("mock out the ListLockUnspent method") }, ListReceivedByAccountFunc: func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error) { panic("mock out the ListReceivedByAccount method") }, ListReceivedByAddressFunc: func(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error) { panic("mock out the ListReceivedByAddress method") }, ListSinceBlockFunc: func(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error) { panic("mock out the ListSinceBlock method") }, ListTransactionsFunc: func(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error) { panic("mock out the ListTransactions method") }, ListUnspentFunc: func(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error) { panic("mock out the ListUnspent method") }, ListWalletsFunc: func(ctx context.Context) ([]string, error) { panic("mock out the ListWallets method") }, LockUnspentFunc: func(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error) { panic("mock out the LockUnspent method") }, MoveFunc: func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error) { panic("mock out the Move method") }, NewAddressFunc: func(ctx context.Context, opts *models.OptsNewAddress) (string, error) { panic("mock out the NewAddress method") }, RawChangeAddressFunc: func(ctx context.Context) (string, error) { panic("mock out the RawChangeAddress method") }, ReceivedByAddressFunc: func(ctx context.Context, address string) (uint64, error) { panic("mock out the ReceivedByAddress method") }, RemovePrunedFundsFunc: func(ctx context.Context, txID string) error { panic("mock out the RemovePrunedFunds method") }, SendFromFunc: func(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error) { panic("mock out the SendFrom method") }, SendManyFunc: func(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error) { panic("mock out the SendMany method") }, SendToAddressFunc: func(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error) { panic("mock out the SendToAddress method") }, SetAccountFunc: func(ctx context.Context, address string, account string) error { panic("mock out the SetAccount method") }, SetTxFeeFunc: func(ctx context.Context, amount uint64) (bool, error) { panic("mock out the SetTxFee method") }, SignMessageFunc: func(ctx context.Context, address string, message string) (string, error) { panic("mock out the SignMessage method") }, TransactionFunc: func(ctx context.Context, txID string) (*models.Transaction, error) { panic("mock out the Transaction method") }, UnconfirmedBalanceFunc: func(ctx context.Context) (uint64, error) { panic("mock out the UnconfirmedBalance method") }, WalletInfoFunc: func(ctx context.Context) (*models.WalletInfo, error) { panic("mock out the WalletInfo method") }, WalletLockFunc: func(ctx context.Context) error { panic("mock out the WalletLock method") }, WalletPhassphraseFunc: func(ctx context.Context, passphrase string, timeout int) error { panic("mock out the WalletPhassphrase method") }, WalletPhassphraseChangeFunc: func(ctx context.Context, oldPassphrase string, newPassphrase string) error { panic("mock out the WalletPhassphraseChange method") }, } // use mockedWalletClient in code that requires bn.WalletClient // and then make assertions. }
func (*WalletClientMock) AbandonTransaction ¶
func (mock *WalletClientMock) AbandonTransaction(ctx context.Context, txID string) error
AbandonTransaction calls AbandonTransactionFunc.
func (*WalletClientMock) AbandonTransactionCalls ¶
func (mock *WalletClientMock) AbandonTransactionCalls() []struct { Ctx context.Context TxID string }
AbandonTransactionCalls gets all the calls that were made to AbandonTransaction. Check the length with:
len(mockedWalletClient.AbandonTransactionCalls())
func (*WalletClientMock) AccountAddress ¶
AccountAddress calls AccountAddressFunc.
func (*WalletClientMock) AccountAddressCalls ¶
func (mock *WalletClientMock) AccountAddressCalls() []struct { Ctx context.Context Account string }
AccountAddressCalls gets all the calls that were made to AccountAddress. Check the length with:
len(mockedWalletClient.AccountAddressCalls())
func (*WalletClientMock) AccountAddresses ¶
func (mock *WalletClientMock) AccountAddresses(ctx context.Context, account string) ([]string, error)
AccountAddresses calls AccountAddressesFunc.
func (*WalletClientMock) AccountAddressesCalls ¶
func (mock *WalletClientMock) AccountAddressesCalls() []struct { Ctx context.Context Account string }
AccountAddressesCalls gets all the calls that were made to AccountAddresses. Check the length with:
len(mockedWalletClient.AccountAddressesCalls())
func (*WalletClientMock) AccountCalls ¶
func (mock *WalletClientMock) AccountCalls() []struct { Ctx context.Context Address string }
AccountCalls gets all the calls that were made to Account. Check the length with:
len(mockedWalletClient.AccountCalls())
func (*WalletClientMock) AddMultiSigAddress ¶
func (mock *WalletClientMock) AddMultiSigAddress(ctx context.Context, n int, keys ...string) (string, error)
AddMultiSigAddress calls AddMultiSigAddressFunc.
func (*WalletClientMock) AddMultiSigAddressCalls ¶
func (mock *WalletClientMock) AddMultiSigAddressCalls() []struct { Ctx context.Context N int Keys []string }
AddMultiSigAddressCalls gets all the calls that were made to AddMultiSigAddress. Check the length with:
len(mockedWalletClient.AddMultiSigAddressCalls())
func (*WalletClientMock) BackupWallet ¶
func (mock *WalletClientMock) BackupWallet(ctx context.Context, dest string) error
BackupWallet calls BackupWalletFunc.
func (*WalletClientMock) BackupWalletCalls ¶
func (mock *WalletClientMock) BackupWalletCalls() []struct { Ctx context.Context Dest string }
BackupWalletCalls gets all the calls that were made to BackupWallet. Check the length with:
len(mockedWalletClient.BackupWalletCalls())
func (*WalletClientMock) Balance ¶
func (mock *WalletClientMock) Balance(ctx context.Context, opts *models.OptsBalance) (uint64, error)
Balance calls BalanceFunc.
func (*WalletClientMock) BalanceCalls ¶
func (mock *WalletClientMock) BalanceCalls() []struct { Ctx context.Context Opts *models.OptsBalance }
BalanceCalls gets all the calls that were made to Balance. Check the length with:
len(mockedWalletClient.BalanceCalls())
func (*WalletClientMock) DumpPrivateKey ¶
func (mock *WalletClientMock) DumpPrivateKey(ctx context.Context, address string) (*primitives.PrivateKey, error)
DumpPrivateKey calls DumpPrivateKeyFunc.
func (*WalletClientMock) DumpPrivateKeyCalls ¶
func (mock *WalletClientMock) DumpPrivateKeyCalls() []struct { Ctx context.Context Address string }
DumpPrivateKeyCalls gets all the calls that were made to DumpPrivateKey. Check the length with:
len(mockedWalletClient.DumpPrivateKeyCalls())
func (*WalletClientMock) DumpWallet ¶
func (mock *WalletClientMock) DumpWallet(ctx context.Context, dest string) (*models.DumpWallet, error)
DumpWallet calls DumpWalletFunc.
func (*WalletClientMock) DumpWalletCalls ¶
func (mock *WalletClientMock) DumpWalletCalls() []struct { Ctx context.Context Dest string }
DumpWalletCalls gets all the calls that were made to DumpWallet. Check the length with:
len(mockedWalletClient.DumpWalletCalls())
func (*WalletClientMock) EncryptWallet ¶
func (mock *WalletClientMock) EncryptWallet(ctx context.Context, passphrase string) error
EncryptWallet calls EncryptWalletFunc.
func (*WalletClientMock) EncryptWalletCalls ¶
func (mock *WalletClientMock) EncryptWalletCalls() []struct { Ctx context.Context Passphrase string }
EncryptWalletCalls gets all the calls that were made to EncryptWallet. Check the length with:
len(mockedWalletClient.EncryptWalletCalls())
func (*WalletClientMock) ImportAddress ¶
func (mock *WalletClientMock) ImportAddress(ctx context.Context, address string, opts *models.OptsImportAddress) error
ImportAddress calls ImportAddressFunc.
func (*WalletClientMock) ImportAddressCalls ¶
func (mock *WalletClientMock) ImportAddressCalls() []struct { Ctx context.Context Address string Opts *models.OptsImportAddress }
ImportAddressCalls gets all the calls that were made to ImportAddress. Check the length with:
len(mockedWalletClient.ImportAddressCalls())
func (*WalletClientMock) ImportMulti ¶
func (mock *WalletClientMock) ImportMulti(ctx context.Context, reqs []models.ImportMultiRequest, opts *models.OptsImportMulti) ([]*models.ImportMulti, error)
ImportMulti calls ImportMultiFunc.
func (*WalletClientMock) ImportMultiCalls ¶
func (mock *WalletClientMock) ImportMultiCalls() []struct { Ctx context.Context Reqs []models.ImportMultiRequest Opts *models.OptsImportMulti }
ImportMultiCalls gets all the calls that were made to ImportMulti. Check the length with:
len(mockedWalletClient.ImportMultiCalls())
func (*WalletClientMock) ImportPrivateKey ¶
func (mock *WalletClientMock) ImportPrivateKey(ctx context.Context, p *primitives.PrivateKey, opts *models.OptsImportPrivateKey) error
ImportPrivateKey calls ImportPrivateKeyFunc.
func (*WalletClientMock) ImportPrivateKeyCalls ¶
func (mock *WalletClientMock) ImportPrivateKeyCalls() []struct { Ctx context.Context P *primitives.PrivateKey Opts *models.OptsImportPrivateKey }
ImportPrivateKeyCalls gets all the calls that were made to ImportPrivateKey. Check the length with:
len(mockedWalletClient.ImportPrivateKeyCalls())
func (*WalletClientMock) ImportPrunedFunds ¶
func (mock *WalletClientMock) ImportPrunedFunds(ctx context.Context, tx *bt.Tx, txOutProof string) error
ImportPrunedFunds calls ImportPrunedFundsFunc.
func (*WalletClientMock) ImportPrunedFundsCalls ¶
func (mock *WalletClientMock) ImportPrunedFundsCalls() []struct { Ctx context.Context Tx *bt.Tx TxOutProof string }
ImportPrunedFundsCalls gets all the calls that were made to ImportPrunedFunds. Check the length with:
len(mockedWalletClient.ImportPrunedFundsCalls())
func (*WalletClientMock) ImportPublicKey ¶
func (mock *WalletClientMock) ImportPublicKey(ctx context.Context, publicKey string, opts *models.OptsImportPublicKey) error
ImportPublicKey calls ImportPublicKeyFunc.
func (*WalletClientMock) ImportPublicKeyCalls ¶
func (mock *WalletClientMock) ImportPublicKeyCalls() []struct { Ctx context.Context PublicKey string Opts *models.OptsImportPublicKey }
ImportPublicKeyCalls gets all the calls that were made to ImportPublicKey. Check the length with:
len(mockedWalletClient.ImportPublicKeyCalls())
func (*WalletClientMock) ImportWallet ¶
func (mock *WalletClientMock) ImportWallet(ctx context.Context, filename string) error
ImportWallet calls ImportWalletFunc.
func (*WalletClientMock) ImportWalletCalls ¶
func (mock *WalletClientMock) ImportWalletCalls() []struct { Ctx context.Context Filename string }
ImportWalletCalls gets all the calls that were made to ImportWallet. Check the length with:
len(mockedWalletClient.ImportWalletCalls())
func (*WalletClientMock) KeypoolRefill ¶
func (mock *WalletClientMock) KeypoolRefill(ctx context.Context, opts *models.OptsKeypoolRefill) error
KeypoolRefill calls KeypoolRefillFunc.
func (*WalletClientMock) KeypoolRefillCalls ¶
func (mock *WalletClientMock) KeypoolRefillCalls() []struct { Ctx context.Context Opts *models.OptsKeypoolRefill }
KeypoolRefillCalls gets all the calls that were made to KeypoolRefill. Check the length with:
len(mockedWalletClient.KeypoolRefillCalls())
func (*WalletClientMock) ListAccounts ¶
func (mock *WalletClientMock) ListAccounts(ctx context.Context, opts *models.OptsListAccounts) (map[string]uint64, error)
ListAccounts calls ListAccountsFunc.
func (*WalletClientMock) ListAccountsCalls ¶
func (mock *WalletClientMock) ListAccountsCalls() []struct { Ctx context.Context Opts *models.OptsListAccounts }
ListAccountsCalls gets all the calls that were made to ListAccounts. Check the length with:
len(mockedWalletClient.ListAccountsCalls())
func (*WalletClientMock) ListLockUnspent ¶
func (mock *WalletClientMock) ListLockUnspent(ctx context.Context) ([]*models.LockUnspent, error)
ListLockUnspent calls ListLockUnspentFunc.
func (*WalletClientMock) ListLockUnspentCalls ¶
func (mock *WalletClientMock) ListLockUnspentCalls() []struct { Ctx context.Context }
ListLockUnspentCalls gets all the calls that were made to ListLockUnspent. Check the length with:
len(mockedWalletClient.ListLockUnspentCalls())
func (*WalletClientMock) ListReceivedByAccount ¶
func (mock *WalletClientMock) ListReceivedByAccount(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAccount, error)
ListReceivedByAccount calls ListReceivedByAccountFunc.
func (*WalletClientMock) ListReceivedByAccountCalls ¶
func (mock *WalletClientMock) ListReceivedByAccountCalls() []struct { Ctx context.Context Opts *models.OptsListReceivedBy }
ListReceivedByAccountCalls gets all the calls that were made to ListReceivedByAccount. Check the length with:
len(mockedWalletClient.ListReceivedByAccountCalls())
func (*WalletClientMock) ListReceivedByAddress ¶
func (mock *WalletClientMock) ListReceivedByAddress(ctx context.Context, opts *models.OptsListReceivedBy) ([]*models.ReceivedByAddress, error)
ListReceivedByAddress calls ListReceivedByAddressFunc.
func (*WalletClientMock) ListReceivedByAddressCalls ¶
func (mock *WalletClientMock) ListReceivedByAddressCalls() []struct { Ctx context.Context Opts *models.OptsListReceivedBy }
ListReceivedByAddressCalls gets all the calls that were made to ListReceivedByAddress. Check the length with:
len(mockedWalletClient.ListReceivedByAddressCalls())
func (*WalletClientMock) ListSinceBlock ¶
func (mock *WalletClientMock) ListSinceBlock(ctx context.Context, opts *models.OptsListSinceBlock) (*models.SinceBlock, error)
ListSinceBlock calls ListSinceBlockFunc.
func (*WalletClientMock) ListSinceBlockCalls ¶
func (mock *WalletClientMock) ListSinceBlockCalls() []struct { Ctx context.Context Opts *models.OptsListSinceBlock }
ListSinceBlockCalls gets all the calls that were made to ListSinceBlock. Check the length with:
len(mockedWalletClient.ListSinceBlockCalls())
func (*WalletClientMock) ListTransactions ¶
func (mock *WalletClientMock) ListTransactions(ctx context.Context, opts *models.OptsListTransactions) ([]*models.Transaction, error)
ListTransactions calls ListTransactionsFunc.
func (*WalletClientMock) ListTransactionsCalls ¶
func (mock *WalletClientMock) ListTransactionsCalls() []struct { Ctx context.Context Opts *models.OptsListTransactions }
ListTransactionsCalls gets all the calls that were made to ListTransactions. Check the length with:
len(mockedWalletClient.ListTransactionsCalls())
func (*WalletClientMock) ListUnspent ¶
func (mock *WalletClientMock) ListUnspent(ctx context.Context, opts *models.OptsListUnspent) (bt.UTXOs, error)
ListUnspent calls ListUnspentFunc.
func (*WalletClientMock) ListUnspentCalls ¶
func (mock *WalletClientMock) ListUnspentCalls() []struct { Ctx context.Context Opts *models.OptsListUnspent }
ListUnspentCalls gets all the calls that were made to ListUnspent. Check the length with:
len(mockedWalletClient.ListUnspentCalls())
func (*WalletClientMock) ListWallets ¶
func (mock *WalletClientMock) ListWallets(ctx context.Context) ([]string, error)
ListWallets calls ListWalletsFunc.
func (*WalletClientMock) ListWalletsCalls ¶
func (mock *WalletClientMock) ListWalletsCalls() []struct { Ctx context.Context }
ListWalletsCalls gets all the calls that were made to ListWallets. Check the length with:
len(mockedWalletClient.ListWalletsCalls())
func (*WalletClientMock) LockUnspent ¶
func (mock *WalletClientMock) LockUnspent(ctx context.Context, lock bool, opts *models.OptsLockUnspent) (bool, error)
LockUnspent calls LockUnspentFunc.
func (*WalletClientMock) LockUnspentCalls ¶
func (mock *WalletClientMock) LockUnspentCalls() []struct { Ctx context.Context Lock bool Opts *models.OptsLockUnspent }
LockUnspentCalls gets all the calls that were made to LockUnspent. Check the length with:
len(mockedWalletClient.LockUnspentCalls())
func (*WalletClientMock) Move ¶
func (mock *WalletClientMock) Move(ctx context.Context, from string, to string, amount uint64, opts *models.OptsMove) (bool, error)
Move calls MoveFunc.
func (*WalletClientMock) MoveCalls ¶
func (mock *WalletClientMock) MoveCalls() []struct { Ctx context.Context From string To string Amount uint64 Opts *models.OptsMove }
MoveCalls gets all the calls that were made to Move. Check the length with:
len(mockedWalletClient.MoveCalls())
func (*WalletClientMock) NewAddress ¶
func (mock *WalletClientMock) NewAddress(ctx context.Context, opts *models.OptsNewAddress) (string, error)
NewAddress calls NewAddressFunc.
func (*WalletClientMock) NewAddressCalls ¶
func (mock *WalletClientMock) NewAddressCalls() []struct { Ctx context.Context Opts *models.OptsNewAddress }
NewAddressCalls gets all the calls that were made to NewAddress. Check the length with:
len(mockedWalletClient.NewAddressCalls())
func (*WalletClientMock) RawChangeAddress ¶
func (mock *WalletClientMock) RawChangeAddress(ctx context.Context) (string, error)
RawChangeAddress calls RawChangeAddressFunc.
func (*WalletClientMock) RawChangeAddressCalls ¶
func (mock *WalletClientMock) RawChangeAddressCalls() []struct { Ctx context.Context }
RawChangeAddressCalls gets all the calls that were made to RawChangeAddress. Check the length with:
len(mockedWalletClient.RawChangeAddressCalls())
func (*WalletClientMock) ReceivedByAddress ¶
func (mock *WalletClientMock) ReceivedByAddress(ctx context.Context, address string) (uint64, error)
ReceivedByAddress calls ReceivedByAddressFunc.
func (*WalletClientMock) ReceivedByAddressCalls ¶
func (mock *WalletClientMock) ReceivedByAddressCalls() []struct { Ctx context.Context Address string }
ReceivedByAddressCalls gets all the calls that were made to ReceivedByAddress. Check the length with:
len(mockedWalletClient.ReceivedByAddressCalls())
func (*WalletClientMock) RemovePrunedFunds ¶
func (mock *WalletClientMock) RemovePrunedFunds(ctx context.Context, txID string) error
RemovePrunedFunds calls RemovePrunedFundsFunc.
func (*WalletClientMock) RemovePrunedFundsCalls ¶
func (mock *WalletClientMock) RemovePrunedFundsCalls() []struct { Ctx context.Context TxID string }
RemovePrunedFundsCalls gets all the calls that were made to RemovePrunedFunds. Check the length with:
len(mockedWalletClient.RemovePrunedFundsCalls())
func (*WalletClientMock) SendFrom ¶
func (mock *WalletClientMock) SendFrom(ctx context.Context, from string, to string, amount uint64, opts *models.OptsSendFrom) (string, error)
SendFrom calls SendFromFunc.
func (*WalletClientMock) SendFromCalls ¶
func (mock *WalletClientMock) SendFromCalls() []struct { Ctx context.Context From string To string Amount uint64 Opts *models.OptsSendFrom }
SendFromCalls gets all the calls that were made to SendFrom. Check the length with:
len(mockedWalletClient.SendFromCalls())
func (*WalletClientMock) SendMany ¶
func (mock *WalletClientMock) SendMany(ctx context.Context, from string, amounts map[string]uint64, opts *models.OptsSendMany) (string, error)
SendMany calls SendManyFunc.
func (*WalletClientMock) SendManyCalls ¶
func (mock *WalletClientMock) SendManyCalls() []struct { Ctx context.Context From string Amounts map[string]uint64 Opts *models.OptsSendMany }
SendManyCalls gets all the calls that were made to SendMany. Check the length with:
len(mockedWalletClient.SendManyCalls())
func (*WalletClientMock) SendToAddress ¶
func (mock *WalletClientMock) SendToAddress(ctx context.Context, address string, amount uint64, opts *models.OptsSendToAddress) (string, error)
SendToAddress calls SendToAddressFunc.
func (*WalletClientMock) SendToAddressCalls ¶
func (mock *WalletClientMock) SendToAddressCalls() []struct { Ctx context.Context Address string Amount uint64 Opts *models.OptsSendToAddress }
SendToAddressCalls gets all the calls that were made to SendToAddress. Check the length with:
len(mockedWalletClient.SendToAddressCalls())
func (*WalletClientMock) SetAccount ¶
SetAccount calls SetAccountFunc.
func (*WalletClientMock) SetAccountCalls ¶
func (mock *WalletClientMock) SetAccountCalls() []struct { Ctx context.Context Address string Account string }
SetAccountCalls gets all the calls that were made to SetAccount. Check the length with:
len(mockedWalletClient.SetAccountCalls())
func (*WalletClientMock) SetTxFeeCalls ¶
func (mock *WalletClientMock) SetTxFeeCalls() []struct { Ctx context.Context Amount uint64 }
SetTxFeeCalls gets all the calls that were made to SetTxFee. Check the length with:
len(mockedWalletClient.SetTxFeeCalls())
func (*WalletClientMock) SignMessage ¶
func (mock *WalletClientMock) SignMessage(ctx context.Context, address string, message string) (string, error)
SignMessage calls SignMessageFunc.
func (*WalletClientMock) SignMessageCalls ¶
func (mock *WalletClientMock) SignMessageCalls() []struct { Ctx context.Context Address string Message string }
SignMessageCalls gets all the calls that were made to SignMessage. Check the length with:
len(mockedWalletClient.SignMessageCalls())
func (*WalletClientMock) Transaction ¶
func (mock *WalletClientMock) Transaction(ctx context.Context, txID string) (*models.Transaction, error)
Transaction calls TransactionFunc.
func (*WalletClientMock) TransactionCalls ¶
func (mock *WalletClientMock) TransactionCalls() []struct { Ctx context.Context TxID string }
TransactionCalls gets all the calls that were made to Transaction. Check the length with:
len(mockedWalletClient.TransactionCalls())
func (*WalletClientMock) UnconfirmedBalance ¶
func (mock *WalletClientMock) UnconfirmedBalance(ctx context.Context) (uint64, error)
UnconfirmedBalance calls UnconfirmedBalanceFunc.
func (*WalletClientMock) UnconfirmedBalanceCalls ¶
func (mock *WalletClientMock) UnconfirmedBalanceCalls() []struct { Ctx context.Context }
UnconfirmedBalanceCalls gets all the calls that were made to UnconfirmedBalance. Check the length with:
len(mockedWalletClient.UnconfirmedBalanceCalls())
func (*WalletClientMock) WalletInfo ¶
func (mock *WalletClientMock) WalletInfo(ctx context.Context) (*models.WalletInfo, error)
WalletInfo calls WalletInfoFunc.
func (*WalletClientMock) WalletInfoCalls ¶
func (mock *WalletClientMock) WalletInfoCalls() []struct { Ctx context.Context }
WalletInfoCalls gets all the calls that were made to WalletInfo. Check the length with:
len(mockedWalletClient.WalletInfoCalls())
func (*WalletClientMock) WalletLock ¶
func (mock *WalletClientMock) WalletLock(ctx context.Context) error
WalletLock calls WalletLockFunc.
func (*WalletClientMock) WalletLockCalls ¶
func (mock *WalletClientMock) WalletLockCalls() []struct { Ctx context.Context }
WalletLockCalls gets all the calls that were made to WalletLock. Check the length with:
len(mockedWalletClient.WalletLockCalls())
func (*WalletClientMock) WalletPhassphrase ¶
func (mock *WalletClientMock) WalletPhassphrase(ctx context.Context, passphrase string, timeout int) error
WalletPhassphrase calls WalletPhassphraseFunc.
func (*WalletClientMock) WalletPhassphraseCalls ¶
func (mock *WalletClientMock) WalletPhassphraseCalls() []struct { Ctx context.Context Passphrase string Timeout int }
WalletPhassphraseCalls gets all the calls that were made to WalletPhassphrase. Check the length with:
len(mockedWalletClient.WalletPhassphraseCalls())
func (*WalletClientMock) WalletPhassphraseChange ¶
func (mock *WalletClientMock) WalletPhassphraseChange(ctx context.Context, oldPassphrase string, newPassphrase string) error
WalletPhassphraseChange calls WalletPhassphraseChangeFunc.
func (*WalletClientMock) WalletPhassphraseChangeCalls ¶
func (mock *WalletClientMock) WalletPhassphraseChangeCalls() []struct { Ctx context.Context OldPassphrase string NewPassphrase string }
WalletPhassphraseChangeCalls gets all the calls that were made to WalletPhassphraseChange. Check the length with:
len(mockedWalletClient.WalletPhassphraseChangeCalls())