tzrpcbackendmocks

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcClient

type RpcClient struct {
	mock.Mock
}

RpcClient is an autogenerated mock type for the RpcClient type

func NewRpcClient

func NewRpcClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RpcClient

NewRpcClient creates a new instance of RpcClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RpcClient) BanNetworkPeer

func (_m *RpcClient) BanNetworkPeer(ctx context.Context, peerID string) error

BanNetworkPeer provides a mock function with given fields: ctx, peerID

func (*RpcClient) BanNetworkPoint

func (_m *RpcClient) BanNetworkPoint(ctx context.Context, address string) error

BanNetworkPoint provides a mock function with given fields: ctx, address

func (*RpcClient) Broadcast

func (_m *RpcClient) Broadcast(ctx context.Context, o *codec.Op) (tezos.OpHash, error)

Broadcast provides a mock function with given fields: ctx, o

func (*RpcClient) BroadcastOperation

func (_m *RpcClient) BroadcastOperation(ctx context.Context, body []byte) (tezos.OpHash, error)

BroadcastOperation provides a mock function with given fields: ctx, body

func (*RpcClient) Client

func (_m *RpcClient) Client() *http.Client

Client provides a mock function with given fields:

func (*RpcClient) Close

func (_m *RpcClient) Close()

Close provides a mock function with given fields:

func (*RpcClient) Complete

func (_m *RpcClient) Complete(ctx context.Context, o *codec.Op, key tezos.Key) error

Complete provides a mock function with given fields: ctx, o, key

func (*RpcClient) ConnectToNetworkPoint

func (_m *RpcClient) ConnectToNetworkPoint(ctx context.Context, address string, timeout time.Duration) error

ConnectToNetworkPoint provides a mock function with given fields: ctx, address, timeout

func (*RpcClient) Do

func (_m *RpcClient) Do(req *http.Request, v interface{}) error

Do provides a mock function with given fields: req, v

func (*RpcClient) DoAsync

func (_m *RpcClient) DoAsync(req *http.Request, mon rpc.Monitor) error

DoAsync provides a mock function with given fields: req, mon

func (*RpcClient) ForgeOperation

func (_m *RpcClient) ForgeOperation(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

ForgeOperation provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) Get

func (_m *RpcClient) Get(ctx context.Context, urlpath string, result interface{}) error

Get provides a mock function with given fields: ctx, urlpath, result

func (*RpcClient) GetActiveBigmapInfo

func (_m *RpcClient) GetActiveBigmapInfo(ctx context.Context, bigmap int64) (*rpc.BigmapInfo, error)

GetActiveBigmapInfo provides a mock function with given fields: ctx, bigmap

func (*RpcClient) GetActiveBigmapValue

func (_m *RpcClient) GetActiveBigmapValue(ctx context.Context, bigmap int64, hash tezos.ExprHash) (micheline.Prim, error)

GetActiveBigmapValue provides a mock function with given fields: ctx, bigmap, hash

func (*RpcClient) GetAsync

func (_m *RpcClient) GetAsync(ctx context.Context, urlpath string, mon rpc.Monitor) error

GetAsync provides a mock function with given fields: ctx, urlpath, mon

func (*RpcClient) GetBigmapInfo

func (_m *RpcClient) GetBigmapInfo(ctx context.Context, bigmap int64, id rpc.BlockID) (*rpc.BigmapInfo, error)

GetBigmapInfo provides a mock function with given fields: ctx, bigmap, id

func (*RpcClient) GetBigmapValue

func (_m *RpcClient) GetBigmapValue(ctx context.Context, bigmap int64, hash tezos.ExprHash, id rpc.BlockID) (micheline.Prim, error)

GetBigmapValue provides a mock function with given fields: ctx, bigmap, hash, id

func (*RpcClient) GetBlock

func (_m *RpcClient) GetBlock(ctx context.Context, id rpc.BlockID) (*rpc.Block, error)

GetBlock provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockHash

func (_m *RpcClient) GetBlockHash(ctx context.Context, id rpc.BlockID) (tezos.BlockHash, error)

GetBlockHash provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockHeader

func (_m *RpcClient) GetBlockHeader(ctx context.Context, id rpc.BlockID) (*rpc.BlockHeader, error)

GetBlockHeader provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockHeight

func (_m *RpcClient) GetBlockHeight(ctx context.Context, height int64) (*rpc.Block, error)

GetBlockHeight provides a mock function with given fields: ctx, height

func (*RpcClient) GetBlockMetadata

func (_m *RpcClient) GetBlockMetadata(ctx context.Context, id rpc.BlockID) (*rpc.BlockMetadata, error)

GetBlockMetadata provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockOperation

func (_m *RpcClient) GetBlockOperation(ctx context.Context, id rpc.BlockID, l int, n int) (*rpc.Operation, error)

GetBlockOperation provides a mock function with given fields: ctx, id, l, n

func (*RpcClient) GetBlockOperationHash

func (_m *RpcClient) GetBlockOperationHash(ctx context.Context, id rpc.BlockID, l int, n int) (tezos.OpHash, error)

GetBlockOperationHash provides a mock function with given fields: ctx, id, l, n

func (*RpcClient) GetBlockOperationHashes

func (_m *RpcClient) GetBlockOperationHashes(ctx context.Context, id rpc.BlockID) ([][]tezos.OpHash, error)

GetBlockOperationHashes provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockOperationList

func (_m *RpcClient) GetBlockOperationList(ctx context.Context, id rpc.BlockID, l int) ([]rpc.Operation, error)

GetBlockOperationList provides a mock function with given fields: ctx, id, l

func (*RpcClient) GetBlockOperationListHashes

func (_m *RpcClient) GetBlockOperationListHashes(ctx context.Context, id rpc.BlockID, l int) ([]tezos.OpHash, error)

GetBlockOperationListHashes provides a mock function with given fields: ctx, id, l

func (*RpcClient) GetBlockOperations

func (_m *RpcClient) GetBlockOperations(ctx context.Context, id rpc.BlockID) ([][]rpc.Operation, error)

GetBlockOperations provides a mock function with given fields: ctx, id

func (*RpcClient) GetBlockPredHashes

func (_m *RpcClient) GetBlockPredHashes(ctx context.Context, hash tezos.BlockHash, count int) ([]tezos.BlockHash, error)

GetBlockPredHashes provides a mock function with given fields: ctx, hash, count

func (*RpcClient) GetChainId

func (_m *RpcClient) GetChainId(ctx context.Context) (tezos.ChainIdHash, error)

GetChainId provides a mock function with given fields: ctx

func (*RpcClient) GetConstants

func (_m *RpcClient) GetConstants(ctx context.Context, id rpc.BlockID) (rpc.Constants, error)

GetConstants provides a mock function with given fields: ctx, id

func (*RpcClient) GetContract

func (_m *RpcClient) GetContract(ctx context.Context, addr tezos.Address, id rpc.BlockID) (*rpc.ContractInfo, error)

GetContract provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetContractBalance

func (_m *RpcClient) GetContractBalance(ctx context.Context, addr tezos.Address, id rpc.BlockID) (tezos.Z, error)

GetContractBalance provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetContractEntrypoints

func (_m *RpcClient) GetContractEntrypoints(ctx context.Context, addr tezos.Address) (map[string]micheline.Type, error)

GetContractEntrypoints provides a mock function with given fields: ctx, addr

func (*RpcClient) GetContractExt

func (_m *RpcClient) GetContractExt(ctx context.Context, addr tezos.Address, id rpc.BlockID) (*rpc.ContractInfo, error)

GetContractExt provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetContractScript

func (_m *RpcClient) GetContractScript(ctx context.Context, addr tezos.Address) (*micheline.Script, error)

GetContractScript provides a mock function with given fields: ctx, addr

func (*RpcClient) GetContractStorage

func (_m *RpcClient) GetContractStorage(ctx context.Context, addr tezos.Address, id rpc.BlockID) (micheline.Prim, error)

GetContractStorage provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetContractStorageNormalized

func (_m *RpcClient) GetContractStorageNormalized(ctx context.Context, addr tezos.Address, id rpc.BlockID, mode rpc.UnparsingMode) (micheline.Prim, error)

GetContractStorageNormalized provides a mock function with given fields: ctx, addr, id, mode

func (*RpcClient) GetCustomConstants

func (_m *RpcClient) GetCustomConstants(ctx context.Context, id rpc.BlockID, resp interface{}) error

GetCustomConstants provides a mock function with given fields: ctx, id, resp

func (*RpcClient) GetDelegate

func (_m *RpcClient) GetDelegate(ctx context.Context, addr tezos.Address, id rpc.BlockID) (*rpc.Delegate, error)

GetDelegate provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetDelegateBalance

func (_m *RpcClient) GetDelegateBalance(ctx context.Context, addr tezos.Address, id rpc.BlockID) (int64, error)

GetDelegateBalance provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetGenesisBlock

func (_m *RpcClient) GetGenesisBlock(ctx context.Context) (*rpc.Block, error)

GetGenesisBlock provides a mock function with given fields: ctx

func (*RpcClient) GetHeadBlock

func (_m *RpcClient) GetHeadBlock(ctx context.Context) (*rpc.Block, error)

GetHeadBlock provides a mock function with given fields: ctx

func (*RpcClient) GetInvalidBlock

func (_m *RpcClient) GetInvalidBlock(ctx context.Context, blockID tezos.BlockHash) (*rpc.InvalidBlock, error)

GetInvalidBlock provides a mock function with given fields: ctx, blockID

func (*RpcClient) GetInvalidBlocks

func (_m *RpcClient) GetInvalidBlocks(ctx context.Context) ([]*rpc.InvalidBlock, error)

GetInvalidBlocks provides a mock function with given fields: ctx

func (*RpcClient) GetManagerKey

func (_m *RpcClient) GetManagerKey(ctx context.Context, addr tezos.Address, id rpc.BlockID) (tezos.Key, error)

GetManagerKey provides a mock function with given fields: ctx, addr, id

func (*RpcClient) GetMempool

func (_m *RpcClient) GetMempool(ctx context.Context) (*rpc.Mempool, error)

GetMempool provides a mock function with given fields: ctx

func (*RpcClient) GetNetworkConnections

func (_m *RpcClient) GetNetworkConnections(ctx context.Context) ([]*rpc.NetworkConnection, error)

GetNetworkConnections provides a mock function with given fields: ctx

func (*RpcClient) GetNetworkPeer

func (_m *RpcClient) GetNetworkPeer(ctx context.Context, peerID string) (*rpc.NetworkPeer, error)

GetNetworkPeer provides a mock function with given fields: ctx, peerID

func (*RpcClient) GetNetworkPeerBanned

func (_m *RpcClient) GetNetworkPeerBanned(ctx context.Context, peerID string) (bool, error)

GetNetworkPeerBanned provides a mock function with given fields: ctx, peerID

func (*RpcClient) GetNetworkPeerLog

func (_m *RpcClient) GetNetworkPeerLog(ctx context.Context, peerID string) ([]*rpc.NetworkPeerLogEntry, error)

GetNetworkPeerLog provides a mock function with given fields: ctx, peerID

func (*RpcClient) GetNetworkPeers

func (_m *RpcClient) GetNetworkPeers(ctx context.Context, filter string) ([]*rpc.NetworkPeer, error)

GetNetworkPeers provides a mock function with given fields: ctx, filter

func (*RpcClient) GetNetworkPoint

func (_m *RpcClient) GetNetworkPoint(ctx context.Context, address string) (*rpc.NetworkPoint, error)

GetNetworkPoint provides a mock function with given fields: ctx, address

func (*RpcClient) GetNetworkPointBanned

func (_m *RpcClient) GetNetworkPointBanned(ctx context.Context, address string) (bool, error)

GetNetworkPointBanned provides a mock function with given fields: ctx, address

func (*RpcClient) GetNetworkPointLog

func (_m *RpcClient) GetNetworkPointLog(ctx context.Context, address string) ([]*rpc.NetworkPointLogEntry, error)

GetNetworkPointLog provides a mock function with given fields: ctx, address

func (*RpcClient) GetNetworkPoints

func (_m *RpcClient) GetNetworkPoints(ctx context.Context, filter string) ([]*rpc.NetworkPoint, error)

GetNetworkPoints provides a mock function with given fields: ctx, filter

func (*RpcClient) GetNetworkStats

func (_m *RpcClient) GetNetworkStats(ctx context.Context) (*rpc.NetworkStats, error)

GetNetworkStats provides a mock function with given fields: ctx

func (*RpcClient) GetNormalizedScript

func (_m *RpcClient) GetNormalizedScript(ctx context.Context, addr tezos.Address, mode rpc.UnparsingMode) (*micheline.Script, error)

GetNormalizedScript provides a mock function with given fields: ctx, addr, mode

func (*RpcClient) GetParams

func (_m *RpcClient) GetParams(ctx context.Context, id rpc.BlockID) (*tezos.Params, error)

GetParams provides a mock function with given fields: ctx, id

func (*RpcClient) GetRollSnapshotInfoCycle

func (_m *RpcClient) GetRollSnapshotInfoCycle(ctx context.Context, id rpc.BlockID, cycle int64) (*rpc.RollSnapshotInfo, error)

GetRollSnapshotInfoCycle provides a mock function with given fields: ctx, id, cycle

func (*RpcClient) GetSnapshotIndexCycle

func (_m *RpcClient) GetSnapshotIndexCycle(ctx context.Context, id rpc.BlockID, cycle int64) (*rpc.SnapshotIndex, error)

GetSnapshotIndexCycle provides a mock function with given fields: ctx, id, cycle

func (*RpcClient) GetStakingSnapshotInfoCycle

func (_m *RpcClient) GetStakingSnapshotInfoCycle(ctx context.Context, id rpc.BlockID, cycle int64) (*rpc.StakingSnapshotInfo, error)

GetStakingSnapshotInfoCycle provides a mock function with given fields: ctx, id, cycle

func (*RpcClient) GetStatus

func (_m *RpcClient) GetStatus(ctx context.Context) (rpc.Status, error)

GetStatus provides a mock function with given fields: ctx

func (*RpcClient) GetTipHeader

func (_m *RpcClient) GetTipHeader(ctx context.Context) (*rpc.BlockHeader, error)

GetTipHeader provides a mock function with given fields: ctx

func (*RpcClient) GetTips

func (_m *RpcClient) GetTips(ctx context.Context, depth int, head tezos.BlockHash) ([][]tezos.BlockHash, error)

GetTips provides a mock function with given fields: ctx, depth, head

func (*RpcClient) GetVersionInfo

func (_m *RpcClient) GetVersionInfo(ctx context.Context) (rpc.VersionInfo, error)

GetVersionInfo provides a mock function with given fields: ctx

func (*RpcClient) GetVoteProposal

func (_m *RpcClient) GetVoteProposal(ctx context.Context, id rpc.BlockID) (tezos.ProtocolHash, error)

GetVoteProposal provides a mock function with given fields: ctx, id

func (*RpcClient) GetVoteQuorum

func (_m *RpcClient) GetVoteQuorum(ctx context.Context, id rpc.BlockID) (int, error)

GetVoteQuorum provides a mock function with given fields: ctx, id

func (*RpcClient) GetVoteResult

func (_m *RpcClient) GetVoteResult(ctx context.Context, id rpc.BlockID) (rpc.BallotSummary, error)

GetVoteResult provides a mock function with given fields: ctx, id

func (*RpcClient) Init

func (_m *RpcClient) Init(ctx context.Context) error

Init provides a mock function with given fields: ctx

func (*RpcClient) ListActiveBigmapKeys

func (_m *RpcClient) ListActiveBigmapKeys(ctx context.Context, bigmap int64) ([]tezos.ExprHash, error)

ListActiveBigmapKeys provides a mock function with given fields: ctx, bigmap

func (*RpcClient) ListActiveBigmapValues

func (_m *RpcClient) ListActiveBigmapValues(ctx context.Context, bigmap int64, id rpc.BlockID) ([]micheline.Prim, error)

ListActiveBigmapValues provides a mock function with given fields: ctx, bigmap, id

func (*RpcClient) ListActiveDelegates

func (_m *RpcClient) ListActiveDelegates(ctx context.Context, id rpc.BlockID) (rpc.DelegateList, error)

ListActiveDelegates provides a mock function with given fields: ctx, id

func (*RpcClient) ListBakingRights

func (_m *RpcClient) ListBakingRights(ctx context.Context, id rpc.BlockID, max int) ([]rpc.BakingRight, error)

ListBakingRights provides a mock function with given fields: ctx, id, max

func (*RpcClient) ListBakingRightsCycle

func (_m *RpcClient) ListBakingRightsCycle(ctx context.Context, id rpc.BlockID, cycle int64, max int) ([]rpc.BakingRight, error)

ListBakingRightsCycle provides a mock function with given fields: ctx, id, cycle, max

func (*RpcClient) ListBallots

func (_m *RpcClient) ListBallots(ctx context.Context, id rpc.BlockID) (rpc.BallotList, error)

ListBallots provides a mock function with given fields: ctx, id

func (*RpcClient) ListBigmapKeys

func (_m *RpcClient) ListBigmapKeys(ctx context.Context, bigmap int64, id rpc.BlockID) ([]tezos.ExprHash, error)

ListBigmapKeys provides a mock function with given fields: ctx, bigmap, id

func (*RpcClient) ListBigmapValues

func (_m *RpcClient) ListBigmapValues(ctx context.Context, bigmap int64, id rpc.BlockID) ([]micheline.Prim, error)

ListBigmapValues provides a mock function with given fields: ctx, bigmap, id

func (*RpcClient) ListContracts

func (_m *RpcClient) ListContracts(ctx context.Context, id rpc.BlockID) (rpc.Contracts, error)

ListContracts provides a mock function with given fields: ctx, id

func (*RpcClient) ListEndorsingRights

func (_m *RpcClient) ListEndorsingRights(ctx context.Context, id rpc.BlockID) ([]rpc.EndorsingRight, error)

ListEndorsingRights provides a mock function with given fields: ctx, id

func (*RpcClient) ListEndorsingRightsCycle

func (_m *RpcClient) ListEndorsingRightsCycle(ctx context.Context, id rpc.BlockID, cycle int64) ([]rpc.EndorsingRight, error)

ListEndorsingRightsCycle provides a mock function with given fields: ctx, id, cycle

func (*RpcClient) ListProposals

func (_m *RpcClient) ListProposals(ctx context.Context, id rpc.BlockID) (rpc.ProposalList, error)

ListProposals provides a mock function with given fields: ctx, id

func (*RpcClient) ListSnapshotRollOwners

func (_m *RpcClient) ListSnapshotRollOwners(ctx context.Context, id rpc.BlockID, cycle int64, index int64) (*rpc.SnapshotOwners, error)

ListSnapshotRollOwners provides a mock function with given fields: ctx, id, cycle, index

func (*RpcClient) ListVoters

func (_m *RpcClient) ListVoters(ctx context.Context, id rpc.BlockID) (rpc.VoterList, error)

ListVoters provides a mock function with given fields: ctx, id

func (*RpcClient) Listen

func (_m *RpcClient) Listen()

Listen provides a mock function with given fields:

func (*RpcClient) MonitorBlockHeader

func (_m *RpcClient) MonitorBlockHeader(ctx context.Context, monitor *rpc.BlockHeaderMonitor) error

MonitorBlockHeader provides a mock function with given fields: ctx, monitor

func (*RpcClient) MonitorBootstrapped

func (_m *RpcClient) MonitorBootstrapped(ctx context.Context, monitor *rpc.BootstrapMonitor) error

MonitorBootstrapped provides a mock function with given fields: ctx, monitor

func (*RpcClient) MonitorMempool

func (_m *RpcClient) MonitorMempool(ctx context.Context, monitor *rpc.MempoolMonitor) error

MonitorMempool provides a mock function with given fields: ctx, monitor

func (*RpcClient) MonitorNetworkPeerLog

func (_m *RpcClient) MonitorNetworkPeerLog(ctx context.Context, peerID string, monitor *rpc.NetworkPeerMonitor) error

MonitorNetworkPeerLog provides a mock function with given fields: ctx, peerID, monitor

func (*RpcClient) MonitorNetworkPointLog

func (_m *RpcClient) MonitorNetworkPointLog(ctx context.Context, address string, monitor *rpc.NetworkPointMonitor) error

MonitorNetworkPointLog provides a mock function with given fields: ctx, address, monitor

func (*RpcClient) NewRequest

func (_m *RpcClient) NewRequest(ctx context.Context, method string, urlStr string, body interface{}) (*http.Request, error)

NewRequest provides a mock function with given fields: ctx, method, urlStr, body

func (*RpcClient) Post

func (_m *RpcClient) Post(ctx context.Context, urlpath string, body interface{}, result interface{}) error

Post provides a mock function with given fields: ctx, urlpath, body, result

func (*RpcClient) Put

func (_m *RpcClient) Put(ctx context.Context, urlpath string, body interface{}, result interface{}) error

Put provides a mock function with given fields: ctx, urlpath, body, result

func (*RpcClient) ResolveChainConfig

func (_m *RpcClient) ResolveChainConfig(ctx context.Context) error

ResolveChainConfig provides a mock function with given fields: ctx

func (*RpcClient) RunCallback

func (_m *RpcClient) RunCallback(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

RunCallback provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) RunCode

func (_m *RpcClient) RunCode(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

RunCode provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) RunOperation

func (_m *RpcClient) RunOperation(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

RunOperation provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) RunView

func (_m *RpcClient) RunView(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

RunView provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) Send

func (_m *RpcClient) Send(ctx context.Context, op *codec.Op, opts *rpc.CallOptions) (*rpc.Receipt, error)

Send provides a mock function with given fields: ctx, op, opts

func (*RpcClient) Simulate

func (_m *RpcClient) Simulate(ctx context.Context, o *codec.Op, opts *rpc.CallOptions) (*rpc.Receipt, error)

Simulate provides a mock function with given fields: ctx, o, opts

func (*RpcClient) TraceCode

func (_m *RpcClient) TraceCode(ctx context.Context, id rpc.BlockID, body interface{}, resp interface{}) error

TraceCode provides a mock function with given fields: ctx, id, body, resp

func (*RpcClient) TrustNetworkPeer

func (_m *RpcClient) TrustNetworkPeer(ctx context.Context, peerID string) error

TrustNetworkPeer provides a mock function with given fields: ctx, peerID

func (*RpcClient) TrustNetworkPoint

func (_m *RpcClient) TrustNetworkPoint(ctx context.Context, address string) error

TrustNetworkPoint provides a mock function with given fields: ctx, address

func (*RpcClient) UseIpfsUrl

func (_m *RpcClient) UseIpfsUrl(uri string) error

UseIpfsUrl provides a mock function with given fields: uri

func (*RpcClient) Validate

func (_m *RpcClient) Validate(ctx context.Context, o *codec.Op) error

Validate provides a mock function with given fields: ctx, o

Jump to

Keyboard shortcuts

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