mocks

package
v0.0.0-...-3c905e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainClient

type ChainClient struct {
	mock.Mock
}

ChainClient is an autogenerated mock type for the ChainClient type

func (*ChainClient) AddPushSubscribe

func (_m *ChainClient) AddPushSubscribe(ctx context.Context, in *types.PushSubscribeReq, opts ...grpc.CallOption) (*types.ReplySubscribePush, error)

AddPushSubscribe provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CloseQueue

func (_m *ChainClient) CloseQueue(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error)

CloseQueue provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ConvertExectoAddr

func (_m *ChainClient) ConvertExectoAddr(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*types.ReplyString, error)

ConvertExectoAddr provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CreateNoBalanceTransaction

func (_m *ChainClient) CreateNoBalanceTransaction(ctx context.Context, in *types.NoBalanceTx, opts ...grpc.CallOption) (*types.ReplySignRawTx, error)

CreateNoBalanceTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CreateNoBalanceTxs

func (_m *ChainClient) CreateNoBalanceTxs(ctx context.Context, in *types.NoBalanceTxs, opts ...grpc.CallOption) (*types.ReplySignRawTx, error)

CreateNoBalanceTxs provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CreateRawTransaction

func (_m *ChainClient) CreateRawTransaction(ctx context.Context, in *types.CreateTx, opts ...grpc.CallOption) (*types.UnsignTx, error)

CreateRawTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CreateRawTxGroup

func (_m *ChainClient) CreateRawTxGroup(ctx context.Context, in *types.CreateTransactionGroup, opts ...grpc.CallOption) (*types.UnsignTx, error)

CreateRawTxGroup provides a mock function with given fields: ctx, in, opts

func (*ChainClient) CreateTransaction

func (_m *ChainClient) CreateTransaction(ctx context.Context, in *types.CreateTxIn, opts ...grpc.CallOption) (*types.UnsignTx, error)

CreateTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) DumpPrivkey

func (_m *ChainClient) DumpPrivkey(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*types.ReplyString, error)

DumpPrivkey provides a mock function with given fields: ctx, in, opts

func (*ChainClient) DumpPrivkeysFile

func (_m *ChainClient) DumpPrivkeysFile(ctx context.Context, in *types.ReqPrivkeysFile, opts ...grpc.CallOption) (*types.Reply, error)

DumpPrivkeysFile provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ExecWallet

func (_m *ChainClient) ExecWallet(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error)

ExecWallet provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GenSeed

func (_m *ChainClient) GenSeed(ctx context.Context, in *types.GenSeedLang, opts ...grpc.CallOption) (*types.ReplySeed, error)

GenSeed provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetAccount

func (_m *ChainClient) GetAccount(ctx context.Context, in *types.ReqGetAccount, opts ...grpc.CallOption) (*types.WalletAccount, error)

GetAccount provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetAccounts

func (_m *ChainClient) GetAccounts(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.WalletAccounts, error)

GetAccounts provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetAddrOverview

func (_m *ChainClient) GetAddrOverview(ctx context.Context, in *types.ReqAddr, opts ...grpc.CallOption) (*types.AddrOverview, error)

GetAddrOverview provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetAddressDrivers

func (_m *ChainClient) GetAddressDrivers(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.AddressDrivers, error)

GetAddressDrivers provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetAllExecBalance

func (_m *ChainClient) GetAllExecBalance(ctx context.Context, in *types.ReqAllExecBalance, opts ...grpc.CallOption) (*types.AllExecBalance, error)

GetAllExecBalance provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBalance

func (_m *ChainClient) GetBalance(ctx context.Context, in *types.ReqBalance, opts ...grpc.CallOption) (*types.Accounts, error)

GetBalance provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlockByHashes

func (_m *ChainClient) GetBlockByHashes(ctx context.Context, in *types.ReqHashes, opts ...grpc.CallOption) (*types.BlockDetails, error)

GetBlockByHashes provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlockBySeq

func (_m *ChainClient) GetBlockBySeq(ctx context.Context, in *types.Int64, opts ...grpc.CallOption) (*types.BlockSeq, error)

GetBlockBySeq provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlockHash

func (_m *ChainClient) GetBlockHash(ctx context.Context, in *types.ReqInt, opts ...grpc.CallOption) (*types.ReplyHash, error)

GetBlockHash provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlockOverview

func (_m *ChainClient) GetBlockOverview(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.BlockOverview, error)

GetBlockOverview provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlockSequences

func (_m *ChainClient) GetBlockSequences(ctx context.Context, in *types.ReqBlocks, opts ...grpc.CallOption) (*types.BlockSequences, error)

GetBlockSequences provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetBlocks

func (_m *ChainClient) GetBlocks(ctx context.Context, in *types.ReqBlocks, opts ...grpc.CallOption) (*types.Reply, error)

GetBlocks provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetChainConfig

func (_m *ChainClient) GetChainConfig(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ChainConfigInfo, error)

GetChainConfig provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetCoinSymbol

func (_m *ChainClient) GetCoinSymbol(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ReplyString, error)

GetCoinSymbol provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetCryptoList

func (_m *ChainClient) GetCryptoList(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.CryptoList, error)

GetCryptoList provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetFatalFailure

func (_m *ChainClient) GetFatalFailure(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int32, error)

GetFatalFailure provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetFork

func (_m *ChainClient) GetFork(ctx context.Context, in *types.ReqKey, opts ...grpc.CallOption) (*types.Int64, error)

GetFork provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetHeaders

func (_m *ChainClient) GetHeaders(ctx context.Context, in *types.ReqBlocks, opts ...grpc.CallOption) (*types.Headers, error)

GetHeaders provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetHexTxByHash

func (_m *ChainClient) GetHexTxByHash(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.HexTx, error)

GetHexTxByHash provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetLastBlockSequence

func (_m *ChainClient) GetLastBlockSequence(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error)

GetLastBlockSequence provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetLastHeader

func (_m *ChainClient) GetLastHeader(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Header, error)

GetLastHeader provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetLastMemPool

func (_m *ChainClient) GetLastMemPool(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ReplyTxList, error)

GetLastMemPool provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetMemPool

func (_m *ChainClient) GetMemPool(ctx context.Context, in *types.ReqGetMempool, opts ...grpc.CallOption) (*types.ReplyTxList, error)

GetMemPool provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetParaTxByHeight

func (_m *ChainClient) GetParaTxByHeight(ctx context.Context, in *types.ReqParaTxByHeight, opts ...grpc.CallOption) (*types.ParaTxDetails, error)

GetParaTxByHeight provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetParaTxByTitle

func (_m *ChainClient) GetParaTxByTitle(ctx context.Context, in *types.ReqParaTxByTitle, opts ...grpc.CallOption) (*types.ParaTxDetails, error)

GetParaTxByTitle provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetPeerInfo

func (_m *ChainClient) GetPeerInfo(ctx context.Context, in *types.P2PGetPeerReq, opts ...grpc.CallOption) (*types.PeerList, error)

GetPeerInfo provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetProperFee

func (_m *ChainClient) GetProperFee(ctx context.Context, in *types.ReqProperFee, opts ...grpc.CallOption) (*types.ReplyProperFee, error)

GetProperFee provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetPushSeqLastNum

func (_m *ChainClient) GetPushSeqLastNum(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*types.Int64, error)

GetPushSeqLastNum provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetSeed

func (_m *ChainClient) GetSeed(ctx context.Context, in *types.GetSeedByPw, opts ...grpc.CallOption) (*types.ReplySeed, error)

GetSeed provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetSequenceByHash

func (_m *ChainClient) GetSequenceByHash(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.Int64, error)

GetSequenceByHash provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetServerTime

func (_m *ChainClient) GetServerTime(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ServerTime, error)

GetServerTime provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetTransactionByAddr

func (_m *ChainClient) GetTransactionByAddr(ctx context.Context, in *types.ReqAddr, opts ...grpc.CallOption) (*types.ReplyTxInfos, error)

GetTransactionByAddr provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetTransactionByHashes

func (_m *ChainClient) GetTransactionByHashes(ctx context.Context, in *types.ReqHashes, opts ...grpc.CallOption) (*types.TransactionDetails, error)

GetTransactionByHashes provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetWalletRecoverAddress

func (_m *ChainClient) GetWalletRecoverAddress(ctx context.Context, in *types.ReqGetWalletRecoverAddr, opts ...grpc.CallOption) (*types.ReplyString, error)

GetWalletRecoverAddress provides a mock function with given fields: ctx, in, opts

func (*ChainClient) GetWalletStatus

func (_m *ChainClient) GetWalletStatus(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.WalletStatus, error)

GetWalletStatus provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ImportPrivkey

func (_m *ChainClient) ImportPrivkey(ctx context.Context, in *types.ReqWalletImportPrivkey, opts ...grpc.CallOption) (*types.WalletAccount, error)

ImportPrivkey provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ImportPrivkeysFile

func (_m *ChainClient) ImportPrivkeysFile(ctx context.Context, in *types.ReqPrivkeysFile, opts ...grpc.CallOption) (*types.Reply, error)

ImportPrivkeysFile provides a mock function with given fields: ctx, in, opts

func (*ChainClient) IsNtpClockSync

func (_m *ChainClient) IsNtpClockSync(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error)

IsNtpClockSync provides a mock function with given fields: ctx, in, opts

func (*ChainClient) IsSync

func (_m *ChainClient) IsSync(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error)

IsSync provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ListPushes

func (_m *ChainClient) ListPushes(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.PushSubscribes, error)

ListPushes provides a mock function with given fields: ctx, in, opts

func (*ChainClient) LoadParaTxByTitle

func (_m *ChainClient) LoadParaTxByTitle(ctx context.Context, in *types.ReqHeightByTitle, opts ...grpc.CallOption) (*types.ReplyHeightByTitle, error)

LoadParaTxByTitle provides a mock function with given fields: ctx, in, opts

func (*ChainClient) Lock

func (_m *ChainClient) Lock(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error)

Lock provides a mock function with given fields: ctx, in, opts

func (*ChainClient) MergeBalance

func (_m *ChainClient) MergeBalance(ctx context.Context, in *types.ReqWalletMergeBalance, opts ...grpc.CallOption) (*types.ReplyHashes, error)

MergeBalance provides a mock function with given fields: ctx, in, opts

func (*ChainClient) NetInfo

func (_m *ChainClient) NetInfo(ctx context.Context, in *types.P2PGetNetInfoReq, opts ...grpc.CallOption) (*types.NodeNetInfo, error)

NetInfo provides a mock function with given fields: ctx, in, opts

func (*ChainClient) NewAccount

func (_m *ChainClient) NewAccount(ctx context.Context, in *types.ReqNewAccount, opts ...grpc.CallOption) (*types.WalletAccount, error)

NewAccount provides a mock function with given fields: ctx, in, opts

func (*ChainClient) QueryChain

func (_m *ChainClient) QueryChain(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error)

QueryChain provides a mock function with given fields: ctx, in, opts

func (*ChainClient) QueryConsensus

func (_m *ChainClient) QueryConsensus(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error)

QueryConsensus provides a mock function with given fields: ctx, in, opts

func (*ChainClient) QueryRandNum

func (_m *ChainClient) QueryRandNum(ctx context.Context, in *types.ReqRandHash, opts ...grpc.CallOption) (*types.ReplyHash, error)

QueryRandNum provides a mock function with given fields: ctx, in, opts

func (*ChainClient) QueryTransaction

func (_m *ChainClient) QueryTransaction(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.TransactionDetail, error)

QueryTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) ReWriteTx

func (_m *ChainClient) ReWriteTx(ctx context.Context, in *types.ReWriteRawTx, opts ...grpc.CallOption) (*types.UnsignTx, error)

ReWriteTx provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SaveSeed

func (_m *ChainClient) SaveSeed(ctx context.Context, in *types.SaveSeedByPw, opts ...grpc.CallOption) (*types.Reply, error)

SaveSeed provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SendDelayTransaction

func (_m *ChainClient) SendDelayTransaction(ctx context.Context, in *types.DelayTx, opts ...grpc.CallOption) (*types.Reply, error)

SendDelayTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SendToAddress

func (_m *ChainClient) SendToAddress(ctx context.Context, in *types.ReqWalletSendToAddress, opts ...grpc.CallOption) (*types.ReplyHash, error)

SendToAddress provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SendTransaction

func (_m *ChainClient) SendTransaction(ctx context.Context, in *types.Transaction, opts ...grpc.CallOption) (*types.Reply, error)

SendTransaction provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SendTransactionSync

func (_m *ChainClient) SendTransactionSync(ctx context.Context, in *types.Transaction, opts ...grpc.CallOption) (*types.Reply, error)

SendTransactionSync provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SendTransactions

func (_m *ChainClient) SendTransactions(ctx context.Context, in *types.Transactions, opts ...grpc.CallOption) (*types.Replies, error)

SendTransactions provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SetLabl

func (_m *ChainClient) SetLabl(ctx context.Context, in *types.ReqWalletSetLabel, opts ...grpc.CallOption) (*types.WalletAccount, error)

SetLabl provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SetPasswd

func (_m *ChainClient) SetPasswd(ctx context.Context, in *types.ReqWalletSetPasswd, opts ...grpc.CallOption) (*types.Reply, error)

SetPasswd provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SetTxFee

func (_m *ChainClient) SetTxFee(ctx context.Context, in *types.ReqWalletSetFee, opts ...grpc.CallOption) (*types.Reply, error)

SetTxFee provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SignRawTx

func (_m *ChainClient) SignRawTx(ctx context.Context, in *types.ReqSignRawTx, opts ...grpc.CallOption) (*types.ReplySignRawTx, error)

SignRawTx provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SignWalletRecoverTx

func (_m *ChainClient) SignWalletRecoverTx(ctx context.Context, in *types.ReqSignWalletRecoverTx, opts ...grpc.CallOption) (*types.ReplySignRawTx, error)

SignWalletRecoverTx provides a mock function with given fields: ctx, in, opts

func (*ChainClient) SubEvent

func (_m *ChainClient) SubEvent(ctx context.Context, in *types.ReqSubscribe, opts ...grpc.CallOption) (types.Chain_SubEventClient, error)

SubEvent provides a mock function with given fields: ctx, in, opts

func (*ChainClient) UnLock

func (_m *ChainClient) UnLock(ctx context.Context, in *types.WalletUnLock, opts ...grpc.CallOption) (*types.Reply, error)

UnLock provides a mock function with given fields: ctx, in, opts

func (*ChainClient) UnSubEvent

func (_m *ChainClient) UnSubEvent(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*types.Reply, error)

UnSubEvent provides a mock function with given fields: ctx, in, opts

func (*ChainClient) Version

func (_m *ChainClient) Version(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.VersionInfo, error)

Version provides a mock function with given fields: ctx, in, opts

func (*ChainClient) WalletTransactionList

func (_m *ChainClient) WalletTransactionList(ctx context.Context, in *types.ReqWalletTransactionList, opts ...grpc.CallOption) (*types.WalletTxDetails, error)

WalletTransactionList provides a mock function with given fields: ctx, in, opts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL