mocks

package
Version: v1.67.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 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 Chain33Client

type Chain33Client struct {
	mock.Mock
}

Chain33Client is an autogenerated mock type for the Chain33Client type

func (*Chain33Client) AddPushSubscribe added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) CloseQueue

func (_m *Chain33Client) 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 (*Chain33Client) ConvertExectoAddr added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) CreateNoBalanceTransaction

func (_m *Chain33Client) 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 (*Chain33Client) CreateNoBalanceTxs

func (_m *Chain33Client) 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 (*Chain33Client) CreateRawTransaction

func (_m *Chain33Client) 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 (*Chain33Client) CreateRawTxGroup

func (_m *Chain33Client) 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 (*Chain33Client) CreateTransaction

func (_m *Chain33Client) 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 (*Chain33Client) DumpPrivkey

func (_m *Chain33Client) 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 (*Chain33Client) DumpPrivkeysFile

func (_m *Chain33Client) 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 (*Chain33Client) ExecWallet

func (_m *Chain33Client) 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 (*Chain33Client) GenSeed

func (_m *Chain33Client) 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 (*Chain33Client) GetAccount added in v1.65.0

func (_m *Chain33Client) 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 (*Chain33Client) GetAccounts

func (_m *Chain33Client) 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 (*Chain33Client) GetAddrOverview

func (_m *Chain33Client) 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 (*Chain33Client) GetAddressDrivers added in v1.67.1

func (_m *Chain33Client) 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 (*Chain33Client) GetAllExecBalance

func (_m *Chain33Client) 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 (*Chain33Client) GetBalance

func (_m *Chain33Client) 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 (*Chain33Client) GetBlockByHashes

func (_m *Chain33Client) 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 (*Chain33Client) GetBlockBySeq

func (_m *Chain33Client) 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 (*Chain33Client) GetBlockHash

func (_m *Chain33Client) 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 (*Chain33Client) GetBlockOverview

func (_m *Chain33Client) 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 (*Chain33Client) GetBlockSequences added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) GetBlocks

func (_m *Chain33Client) 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 (*Chain33Client) GetChainConfig added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) GetCoinSymbol added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) GetCryptoList added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) GetFatalFailure

func (_m *Chain33Client) 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 (*Chain33Client) GetFork

func (_m *Chain33Client) 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 (*Chain33Client) GetHeaders

func (_m *Chain33Client) 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 (*Chain33Client) GetHexTxByHash

func (_m *Chain33Client) 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 (*Chain33Client) GetLastBlockSequence

func (_m *Chain33Client) 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 (*Chain33Client) GetLastHeader

func (_m *Chain33Client) 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 (*Chain33Client) GetLastMemPool

func (_m *Chain33Client) 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 (*Chain33Client) GetMemPool

func (_m *Chain33Client) 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 (*Chain33Client) GetParaTxByHeight

func (_m *Chain33Client) 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 (*Chain33Client) GetParaTxByTitle

func (_m *Chain33Client) 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 (*Chain33Client) GetPeerInfo

func (_m *Chain33Client) 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 (*Chain33Client) GetProperFee

func (_m *Chain33Client) 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 (*Chain33Client) GetPushSeqLastNum added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) GetSeed

func (_m *Chain33Client) 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 (*Chain33Client) GetSequenceByHash

func (_m *Chain33Client) 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 (*Chain33Client) GetServerTime added in v1.65.1

func (_m *Chain33Client) 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 (*Chain33Client) GetTransactionByAddr

func (_m *Chain33Client) 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 (*Chain33Client) GetTransactionByHashes

func (_m *Chain33Client) 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 (*Chain33Client) GetWalletRecoverAddress added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) GetWalletStatus

func (_m *Chain33Client) 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 (*Chain33Client) ImportPrivkey

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

func (*Chain33Client) ImportPrivkeysFile

func (_m *Chain33Client) 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 (*Chain33Client) IsNtpClockSync

func (_m *Chain33Client) 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 (*Chain33Client) IsSync

func (_m *Chain33Client) 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 (*Chain33Client) ListPushes added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) LoadParaTxByTitle

func (_m *Chain33Client) 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 (*Chain33Client) Lock

func (_m *Chain33Client) 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 (*Chain33Client) MergeBalance

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

func (*Chain33Client) NetInfo

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

func (*Chain33Client) NewAccount

func (_m *Chain33Client) 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 (*Chain33Client) QueryChain

func (_m *Chain33Client) 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 (*Chain33Client) QueryConsensus

func (_m *Chain33Client) 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 (*Chain33Client) QueryRandNum

func (_m *Chain33Client) 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 (*Chain33Client) QueryTransaction

func (_m *Chain33Client) 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 (*Chain33Client) ReWriteTx added in v1.66.1

func (_m *Chain33Client) 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 (*Chain33Client) SaveSeed

func (_m *Chain33Client) 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 (*Chain33Client) SendDelayTransaction added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) SendToAddress

func (_m *Chain33Client) 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 (*Chain33Client) SendTransaction

func (_m *Chain33Client) 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 (*Chain33Client) SendTransactionSync added in v1.65.1

func (_m *Chain33Client) 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 (*Chain33Client) SendTransactions added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) SetLabl

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

func (*Chain33Client) SetPasswd

func (_m *Chain33Client) 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 (*Chain33Client) SetTxFee

func (_m *Chain33Client) 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 (*Chain33Client) SignRawTx

func (_m *Chain33Client) 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 (*Chain33Client) SignWalletRecoverTx added in v1.65.3

func (_m *Chain33Client) 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 (*Chain33Client) SubEvent added in v1.66.1

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

func (*Chain33Client) UnLock

func (_m *Chain33Client) 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 (*Chain33Client) Version

func (_m *Chain33Client) 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 (*Chain33Client) WalletTransactionList

func (_m *Chain33Client) 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