Documentation
¶
Index ¶
- type BridgeKeeper
- func (_m *BridgeKeeper) EVMAddressFromSignatures(ctx context.Context, sigA []byte, sigB []byte) (common.Address, error)
- func (_m *BridgeKeeper) GetAttestationRequestsByHeight(ctx context.Context, height uint64) (*types.AttestationRequests, error)
- func (_m *BridgeKeeper) GetBridgeValsetByTimestamp(ctx context.Context, timestamp uint64) (*types.BridgeValidatorSet, error)
- func (_m *BridgeKeeper) GetEVMAddressByOperator(ctx context.Context, operatorAddress string) ([]byte, error)
- func (_m *BridgeKeeper) GetLatestCheckpointIndex(ctx context.Context) (uint64, error)
- func (_m *BridgeKeeper) GetValidatorCheckpointFromStorage(ctx context.Context) (*types.ValidatorCheckpoint, error)
- func (_m *BridgeKeeper) GetValidatorCheckpointParamsFromStorage(ctx context.Context, timestamp uint64) (types.ValidatorCheckpointParams, error)
- func (_m *BridgeKeeper) GetValidatorDidSignCheckpoint(ctx context.Context, operatorAddr string, checkpointTimestamp uint64) (bool, int64, error)
- func (_m *BridgeKeeper) GetValidatorSetSignaturesFromStorage(ctx context.Context, timestamp uint64) (*types.BridgeValsetSignatures, error)
- func (_m *BridgeKeeper) GetValidatorTimestampByIdxFromStorage(ctx context.Context, checkpointIdx uint64) (types.CheckpointTimestamp, error)
- func (_m *BridgeKeeper) Logger(ctx context.Context) log.Logger
- func (_m *BridgeKeeper) SetBridgeValsetSignature(ctx context.Context, operatorAddress string, timestamp uint64, ...) error
- func (_m *BridgeKeeper) SetEVMAddressByOperator(ctx context.Context, operatorAddr string, evmAddr []byte) error
- func (_m *BridgeKeeper) SetOracleAttestation(ctx context.Context, operatorAddress string, snapshot []byte, sig []byte) error
- type Keyring
- func (_m *Keyring) Backend() string
- func (_m *Keyring) Delete(uid string) error
- func (_m *Keyring) DeleteByAddress(address types.Address) error
- func (_m *Keyring) ExportPrivKeyArmor(uid string, encryptPassphrase string) (string, error)
- func (_m *Keyring) ExportPrivKeyArmorByAddress(address types.Address, encryptPassphrase string) (string, error)
- func (_m *Keyring) ExportPubKeyArmor(uid string) (string, error)
- func (_m *Keyring) ExportPubKeyArmorByAddress(address types.Address) (string, error)
- func (_m *Keyring) ImportPrivKey(uid string, armor string, passphrase string) error
- func (_m *Keyring) ImportPrivKeyHex(uid string, privKey string, algoStr string) error
- func (_m *Keyring) ImportPubKey(uid string, armor string) error
- func (_m *Keyring) Key(uid string) (*keyring.Record, error)
- func (_m *Keyring) KeyByAddress(address types.Address) (*keyring.Record, error)
- func (_m *Keyring) List() ([]*keyring.Record, error)
- func (_m *Keyring) MigrateAll() ([]*keyring.Record, error)
- func (_m *Keyring) NewAccount(uid string, mnemonic string, bip39Passphrase string, hdPath string, ...) (*keyring.Record, error)
- func (_m *Keyring) NewMnemonic(uid string, language keyring.Language, hdPath string, bip39Passphrase string, ...) (*keyring.Record, string, error)
- func (_m *Keyring) Rename(from string, to string) error
- func (_m *Keyring) SaveLedgerKey(uid string, algo keyring.SignatureAlgo, hrp string, coinType uint32, ...) (*keyring.Record, error)
- func (_m *Keyring) SaveMultisig(uid string, pubkey cryptotypes.PubKey) (*keyring.Record, error)
- func (_m *Keyring) SaveOfflineKey(uid string, pubkey cryptotypes.PubKey) (*keyring.Record, error)
- func (_m *Keyring) Sign(uid string, msg []byte, signMode signing.SignMode) ([]byte, cryptotypes.PubKey, error)
- func (_m *Keyring) SignByAddress(address types.Address, msg []byte, signMode signing.SignMode) ([]byte, cryptotypes.PubKey, error)
- func (_m *Keyring) SupportedAlgorithms() (keyring.SigningAlgoList, keyring.SigningAlgoList)
- type OracleKeeper
- func (_m *OracleKeeper) GetAggregatedReportsByHeight(ctx context.Context, height uint64) []types.Aggregate
- func (_m *OracleKeeper) GetTimestampAfter(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)
- func (_m *OracleKeeper) GetTimestampBefore(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)
- type StakingKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeKeeper ¶
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 ¶
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) DeleteByAddress ¶
DeleteByAddress provides a mock function with given fields: address
func (*Keyring) ExportPrivKeyArmor ¶
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 ¶
ExportPubKeyArmor provides a mock function with given fields: uid
func (*Keyring) ExportPubKeyArmorByAddress ¶
ExportPubKeyArmorByAddress provides a mock function with given fields: address
func (*Keyring) ImportPrivKey ¶
ImportPrivKey provides a mock function with given fields: uid, armor, passphrase
func (*Keyring) ImportPrivKeyHex ¶
ImportPrivKeyHex provides a mock function with given fields: uid, privKey, algoStr
func (*Keyring) ImportPubKey ¶
ImportPubKey provides a mock function with given fields: uid, armor
func (*Keyring) KeyByAddress ¶
KeyByAddress provides a mock function with given fields: address
func (*Keyring) MigrateAll ¶
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) 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 ¶
SaveMultisig provides a mock function with given fields: uid, pubkey
func (*Keyring) SaveOfflineKey ¶
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 ¶
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
type StakingKeeper ¶
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