mocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvmFactorier

type EvmFactorier struct {
	mock.Mock
}

EvmFactorier is an autogenerated mock type for the EvmFactorier type

func NewEvmFactorier

func NewEvmFactorier(t mockConstructorTestingTNewEvmFactorier) *EvmFactorier

NewEvmFactorier creates a new instance of EvmFactorier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EvmFactorier) Build

func (_m *EvmFactorier) Build(cfg config.EVM, chainReferenceID string, smartContractID string, smartContractABIJson string, smartContractAddress string, chainID *big.Int, blockHeight int64, blockHeightHash common.Hash, minOnChainBalance *big.Int) (chain.Processor, error)

Build provides a mock function with given fields: cfg, chainReferenceID, smartContractID, smartContractABIJson, smartContractAddress, chainID, blockHeight, blockHeightHash, minOnChainBalance

type PalomaClienter

type PalomaClienter struct {
	mock.Mock
}

PalomaClienter is an autogenerated mock type for the PalomaClienter type

func NewPalomaClienter

func NewPalomaClienter(t mockConstructorTestingTNewPalomaClienter) *PalomaClienter

NewPalomaClienter creates a new instance of PalomaClienter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PalomaClienter) AddExternalChainInfo

func (_m *PalomaClienter) AddExternalChainInfo(ctx context.Context, chainInfos ...paloma.ChainInfoIn) error

AddExternalChainInfo provides a mock function with given fields: ctx, chainInfos

func (*PalomaClienter) AddMessageEvidence

func (_m *PalomaClienter) AddMessageEvidence(ctx context.Context, queueTypeName string, messageID uint64, proof proto.Message) error

AddMessageEvidence provides a mock function with given fields: ctx, queueTypeName, messageID, proof

func (*PalomaClienter) BlockHeight added in v0.4.0

func (_m *PalomaClienter) BlockHeight(_a0 context.Context) (int64, error)

BlockHeight provides a mock function with given fields: _a0

func (*PalomaClienter) BroadcastMessageSignatures

func (_m *PalomaClienter) BroadcastMessageSignatures(ctx context.Context, signatures ...paloma.BroadcastMessageSignatureIn) error

BroadcastMessageSignatures provides a mock function with given fields: ctx, signatures

func (*PalomaClienter) GetValidator added in v0.7.0

func (_m *PalomaClienter) GetValidator(ctx context.Context) (*types.Validator, error)

GetValidator provides a mock function with given fields: ctx

func (*PalomaClienter) GetValidatorAddress added in v0.4.0

func (_m *PalomaClienter) GetValidatorAddress() cosmos_sdktypes.ValAddress

GetValidatorAddress provides a mock function with given fields:

func (*PalomaClienter) KeepValidatorAlive added in v0.5.0

func (_m *PalomaClienter) KeepValidatorAlive(ctx context.Context) error

KeepValidatorAlive provides a mock function with given fields: ctx

func (*PalomaClienter) QueryGetEVMChainInfos

func (_m *PalomaClienter) QueryGetEVMChainInfos(ctx context.Context) ([]*evmtypes.ChainInfo, error)

QueryGetEVMChainInfos provides a mock function with given fields: ctx

func (*PalomaClienter) QueryGetEVMValsetByID

func (_m *PalomaClienter) QueryGetEVMValsetByID(ctx context.Context, id uint64, chainID string) (*evmtypes.Valset, error)

QueryGetEVMValsetByID provides a mock function with given fields: ctx, id, chainID

func (*PalomaClienter) QueryGetSnapshotByID added in v0.4.0

func (_m *PalomaClienter) QueryGetSnapshotByID(ctx context.Context, id uint64) (*valsettypes.Snapshot, error)

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

func (*PalomaClienter) QueryGetValidatorAliveUntil added in v0.5.0

func (_m *PalomaClienter) QueryGetValidatorAliveUntil(ctx context.Context) (time.Time, error)

QueryGetValidatorAliveUntil provides a mock function with given fields: ctx

func (*PalomaClienter) QueryMessagesForAttesting added in v1.2.0

func (_m *PalomaClienter) QueryMessagesForAttesting(ctx context.Context, queueTypeName string) ([]chain.MessageWithSignatures, error)

QueryMessagesForAttesting provides a mock function with given fields: ctx, queueTypeName

func (*PalomaClienter) QueryMessagesForRelaying added in v1.2.0

func (_m *PalomaClienter) QueryMessagesForRelaying(ctx context.Context, queueTypeName string) ([]chain.MessageWithSignatures, error)

QueryMessagesForRelaying provides a mock function with given fields: ctx, queueTypeName

func (*PalomaClienter) QueryMessagesForSigning

func (_m *PalomaClienter) QueryMessagesForSigning(ctx context.Context, queueTypeName string) ([]chain.QueuedMessage, error)

QueryMessagesForSigning provides a mock function with given fields: ctx, queueTypeName

func (*PalomaClienter) QueryValidatorInfo

func (_m *PalomaClienter) QueryValidatorInfo(ctx context.Context) ([]*valsettypes.ExternalChainInfo, error)

QueryValidatorInfo provides a mock function with given fields: ctx

func (*PalomaClienter) SetErrorData added in v1.2.0

func (_m *PalomaClienter) SetErrorData(ctx context.Context, queueTypeName string, messageID uint64, data []byte) error

SetErrorData provides a mock function with given fields: ctx, queueTypeName, messageID, data

func (*PalomaClienter) SetPublicAccessData

func (_m *PalomaClienter) SetPublicAccessData(ctx context.Context, queueTypeName string, messageID uint64, data []byte) error

SetPublicAccessData provides a mock function with given fields: ctx, queueTypeName, messageID, data

Jump to

Keyboard shortcuts

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