mocks

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeKeeper

type BridgeKeeper struct {
	mock.Mock
}

BridgeKeeper is an autogenerated mock type for the BridgeKeeper type

func NewBridgeKeeper

func NewBridgeKeeper(t mockConstructorTestingTNewBridgeKeeper) *BridgeKeeper

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

func (*BridgeKeeper) EVMAddressFromSignatures

func (_m *BridgeKeeper) EVMAddressFromSignatures(ctx context.Context, sigA []byte, sigB []byte) (common.Address, error)

EVMAddressFromSignatures provides a mock function with given fields: ctx, sigA, sigB

func (*BridgeKeeper) GetAttestationRequestsByHeight

func (_m *BridgeKeeper) GetAttestationRequestsByHeight(ctx context.Context, height uint64) (*types.AttestationRequests, error)

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

func (*BridgeKeeper) GetBridgeValsetByTimestamp

func (_m *BridgeKeeper) GetBridgeValsetByTimestamp(ctx context.Context, timestamp uint64) (*types.BridgeValidatorSet, error)

GetBridgeValsetByTimestamp provides a mock function with given fields: ctx, timestamp

func (*BridgeKeeper) GetEVMAddressByOperator

func (_m *BridgeKeeper) GetEVMAddressByOperator(ctx context.Context, operatorAddress string) ([]byte, error)

GetEVMAddressByOperator provides a mock function with given fields: ctx, operatorAddress

func (*BridgeKeeper) GetLatestCheckpointIndex

func (_m *BridgeKeeper) GetLatestCheckpointIndex(ctx context.Context) (uint64, error)

GetLatestCheckpointIndex provides a mock function with given fields: ctx

func (*BridgeKeeper) GetValidatorCheckpointFromStorage

func (_m *BridgeKeeper) GetValidatorCheckpointFromStorage(ctx context.Context) (*types.ValidatorCheckpoint, error)

GetValidatorCheckpointFromStorage provides a mock function with given fields: ctx

func (*BridgeKeeper) GetValidatorCheckpointParamsFromStorage

func (_m *BridgeKeeper) GetValidatorCheckpointParamsFromStorage(ctx context.Context, timestamp uint64) (types.ValidatorCheckpointParams, error)

GetValidatorCheckpointParamsFromStorage provides a mock function with given fields: ctx, timestamp

func (*BridgeKeeper) GetValidatorDidSignCheckpoint

func (_m *BridgeKeeper) GetValidatorDidSignCheckpoint(ctx context.Context, operatorAddr string, checkpointTimestamp uint64) (bool, int64, error)

GetValidatorDidSignCheckpoint provides a mock function with given fields: ctx, operatorAddr, checkpointTimestamp

func (*BridgeKeeper) GetValidatorSetSignaturesFromStorage

func (_m *BridgeKeeper) GetValidatorSetSignaturesFromStorage(ctx context.Context, timestamp uint64) (*types.BridgeValsetSignatures, error)

GetValidatorSetSignaturesFromStorage provides a mock function with given fields: ctx, timestamp

func (*BridgeKeeper) GetValidatorTimestampByIdxFromStorage

func (_m *BridgeKeeper) GetValidatorTimestampByIdxFromStorage(ctx context.Context, checkpointIdx uint64) (types.CheckpointTimestamp, error)

GetValidatorTimestampByIdxFromStorage provides a mock function with given fields: ctx, checkpointIdx

func (*BridgeKeeper) Logger

func (_m *BridgeKeeper) Logger(ctx context.Context) log.Logger

Logger provides a mock function with given fields: ctx

func (*BridgeKeeper) SetBridgeValsetSignature

func (_m *BridgeKeeper) SetBridgeValsetSignature(ctx context.Context, operatorAddress string, timestamp uint64, signature string) error

SetBridgeValsetSignature provides a mock function with given fields: ctx, operatorAddress, timestamp, signature

func (*BridgeKeeper) SetEVMAddressByOperator

func (_m *BridgeKeeper) SetEVMAddressByOperator(ctx context.Context, operatorAddr string, evmAddr []byte) error

SetEVMAddressByOperator provides a mock function with given fields: ctx, operatorAddr, evmAddr

func (*BridgeKeeper) SetOracleAttestation

func (_m *BridgeKeeper) SetOracleAttestation(ctx context.Context, operatorAddress string, snapshot []byte, sig []byte) error

SetOracleAttestation provides a mock function with given fields: ctx, operatorAddress, snapshot, sig

type Keyring

type Keyring struct {
	mock.Mock
}

Keyring is an autogenerated mock type for the Keyring type

func NewKeyring

func NewKeyring(t mockConstructorTestingTNewKeyring) *Keyring

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

func (*Keyring) Backend

func (_m *Keyring) Backend() string

Backend provides a mock function with given fields:

func (*Keyring) Delete

func (_m *Keyring) Delete(uid string) error

Delete provides a mock function with given fields: uid

func (*Keyring) DeleteByAddress

func (_m *Keyring) DeleteByAddress(address types.Address) error

DeleteByAddress provides a mock function with given fields: address

func (*Keyring) ExportPrivKeyArmor

func (_m *Keyring) ExportPrivKeyArmor(uid string, encryptPassphrase string) (string, error)

ExportPrivKeyArmor provides a mock function with given fields: uid, encryptPassphrase

func (*Keyring) ExportPrivKeyArmorByAddress

func (_m *Keyring) ExportPrivKeyArmorByAddress(address types.Address, encryptPassphrase string) (string, error)

ExportPrivKeyArmorByAddress provides a mock function with given fields: address, encryptPassphrase

func (*Keyring) ExportPubKeyArmor

func (_m *Keyring) ExportPubKeyArmor(uid string) (string, error)

ExportPubKeyArmor provides a mock function with given fields: uid

func (*Keyring) ExportPubKeyArmorByAddress

func (_m *Keyring) ExportPubKeyArmorByAddress(address types.Address) (string, error)

ExportPubKeyArmorByAddress provides a mock function with given fields: address

func (*Keyring) ImportPrivKey

func (_m *Keyring) ImportPrivKey(uid string, armor string, passphrase string) error

ImportPrivKey provides a mock function with given fields: uid, armor, passphrase

func (*Keyring) ImportPrivKeyHex

func (_m *Keyring) ImportPrivKeyHex(uid string, privKey string, algoStr string) error

ImportPrivKeyHex provides a mock function with given fields: uid, privKey, algoStr

func (*Keyring) ImportPubKey

func (_m *Keyring) ImportPubKey(uid string, armor string) error

ImportPubKey provides a mock function with given fields: uid, armor

func (*Keyring) Key

func (_m *Keyring) Key(uid string) (*keyring.Record, error)

Key provides a mock function with given fields: uid

func (*Keyring) KeyByAddress

func (_m *Keyring) KeyByAddress(address types.Address) (*keyring.Record, error)

KeyByAddress provides a mock function with given fields: address

func (*Keyring) List

func (_m *Keyring) List() ([]*keyring.Record, error)

List provides a mock function with given fields:

func (*Keyring) MigrateAll

func (_m *Keyring) MigrateAll() ([]*keyring.Record, error)

MigrateAll provides a mock function with given fields:

func (*Keyring) NewAccount

func (_m *Keyring) NewAccount(uid string, mnemonic string, bip39Passphrase string, hdPath string, algo keyring.SignatureAlgo) (*keyring.Record, error)

NewAccount provides a mock function with given fields: uid, mnemonic, bip39Passphrase, hdPath, algo

func (*Keyring) NewMnemonic

func (_m *Keyring) NewMnemonic(uid string, language keyring.Language, hdPath string, bip39Passphrase string, algo keyring.SignatureAlgo) (*keyring.Record, string, error)

NewMnemonic provides a mock function with given fields: uid, language, hdPath, bip39Passphrase, algo

func (*Keyring) Rename

func (_m *Keyring) Rename(from string, to string) error

Rename provides a mock function with given fields: from, to

func (*Keyring) SaveLedgerKey

func (_m *Keyring) SaveLedgerKey(uid string, algo keyring.SignatureAlgo, hrp string, coinType uint32, account uint32, index uint32) (*keyring.Record, error)

SaveLedgerKey provides a mock function with given fields: uid, algo, hrp, coinType, account, index

func (*Keyring) SaveMultisig

func (_m *Keyring) SaveMultisig(uid string, pubkey cryptotypes.PubKey) (*keyring.Record, error)

SaveMultisig provides a mock function with given fields: uid, pubkey

func (*Keyring) SaveOfflineKey

func (_m *Keyring) SaveOfflineKey(uid string, pubkey cryptotypes.PubKey) (*keyring.Record, error)

SaveOfflineKey provides a mock function with given fields: uid, pubkey

func (*Keyring) Sign

func (_m *Keyring) Sign(uid string, msg []byte, signMode signing.SignMode) ([]byte, cryptotypes.PubKey, error)

Sign provides a mock function with given fields: uid, msg, signMode

func (*Keyring) SignByAddress

func (_m *Keyring) SignByAddress(address types.Address, msg []byte, signMode signing.SignMode) ([]byte, cryptotypes.PubKey, error)

SignByAddress provides a mock function with given fields: address, msg, signMode

func (*Keyring) SupportedAlgorithms

func (_m *Keyring) SupportedAlgorithms() (keyring.SigningAlgoList, keyring.SigningAlgoList)

SupportedAlgorithms provides a mock function with given fields:

type OracleKeeper

type OracleKeeper struct {
	mock.Mock
}

OracleKeeper is an autogenerated mock type for the OracleKeeper type

func NewOracleKeeper

func NewOracleKeeper(t mockConstructorTestingTNewOracleKeeper) *OracleKeeper

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

func (*OracleKeeper) GetAggregatedReportsByHeight

func (_m *OracleKeeper) GetAggregatedReportsByHeight(ctx context.Context, height uint64) []types.Aggregate

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

func (*OracleKeeper) GetTimestampAfter

func (_m *OracleKeeper) GetTimestampAfter(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)

GetTimestampAfter provides a mock function with given fields: ctx, queryId, timestamp

func (*OracleKeeper) GetTimestampBefore

func (_m *OracleKeeper) GetTimestampBefore(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)

GetTimestampBefore provides a mock function with given fields: ctx, queryId, timestamp

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t mockConstructorTestingTNewStakingKeeper) *StakingKeeper

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

func (*StakingKeeper) GetValidatorByConsAddr

func (_m *StakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr types.ConsAddress) (stakingtypes.Validator, error)

GetValidatorByConsAddr provides a mock function with given fields: ctx, consAddr

Jump to

Keyboard shortcuts

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