keeper

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuardianInvariant

func GuardianInvariant(k Keeper) sdk.Invariant

func IsValidEthereumAddress

func IsValidEthereumAddress(address string) error

func NewMsgServer

func NewMsgServer(k Keeper) types.MsgServer

func RegisterInvariants

func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)

RegisterInvariants registers the fbridge module invariants

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	key, memKey sdk.StoreKey,
	authKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	authority string,
) Keeper

func (Keeper) BeginBlocker

func (k Keeper) BeginBlocker(ctx sdk.Context)

func (Keeper) Commitments

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) GetAllVotes

func (k Keeper) GetAllVotes(ctx sdk.Context) (votes []types.Vote)

GetAllVotes returns all the votes from the store

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

func (Keeper) GetBridgeInactiveCounter

func (k Keeper) GetBridgeInactiveCounter(ctx sdk.Context) uint64

func (Keeper) GetBridgeStatus

func (k Keeper) GetBridgeStatus(ctx sdk.Context) types.BridgeStatus

func (Keeper) GetBridgeStatusMetadata

func (k Keeper) GetBridgeStatusMetadata(ctx sdk.Context) types.BridgeStatusMetadata

func (Keeper) GetBridgeSwitch

func (k Keeper) GetBridgeSwitch(ctx sdk.Context, guardian sdk.AccAddress) (types.BridgeSwitch, error)

func (Keeper) GetBridgeSwitches

func (k Keeper) GetBridgeSwitches(ctx sdk.Context) []types.BridgeSwitch

func (Keeper) GetNextProposalID

func (k Keeper) GetNextProposalID(ctx sdk.Context) uint64

func (Keeper) GetNextSequence

func (k Keeper) GetNextSequence(ctx sdk.Context) uint64

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

func (Keeper) GetProposalVotes

func (k Keeper) GetProposalVotes(ctx sdk.Context, proposalID uint64) []types.Vote

func (Keeper) GetRole

func (k Keeper) GetRole(ctx sdk.Context, addr sdk.AccAddress) types.Role

func (Keeper) GetRoleMetadata

func (k Keeper) GetRoleMetadata(ctx sdk.Context) types.RoleMetadata

func (Keeper) GetRolePairs

func (k Keeper) GetRolePairs(ctx sdk.Context) []types.RolePair

func (Keeper) GetRoleProposal

func (k Keeper) GetRoleProposal(ctx sdk.Context, id uint64) (proposal types.RoleProposal, found bool)

func (Keeper) GetRoleProposals

func (k Keeper) GetRoleProposals(ctx sdk.Context) (proposals []types.RoleProposal)

GetRoleProposals returns all the role proposals from store

func (Keeper) GetSeqToBlocknum

func (k Keeper) GetSeqToBlocknum(ctx sdk.Context, seq uint64) (uint64, error)

func (Keeper) GetVote

func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (types.VoteOption, error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState) error

func (Keeper) InitMemStore

func (k Keeper) InitMemStore(ctx sdk.Context)

func (Keeper) IsBridgeHalted

func (k Keeper) IsBridgeHalted(ctx sdk.Context) bool

func (Keeper) IsInitialized

func (k Keeper) IsInitialized(ctx sdk.Context) bool

IsInitialized returns true if the keeper is properly initialized, and false otherwise.

func (Keeper) IterateProposals

func (k Keeper) IterateProposals(ctx sdk.Context, cb func(proposal types.RoleProposal) (stop bool))

IterateProposals iterates over the all the role proposals and performs a callback function

func (Keeper) IterateVotes

func (k Keeper) IterateVotes(ctx sdk.Context, cb func(proposal types.Vote) (stop bool))

IterateVotes iterates over the all the votes for role proposals and performs a callback function

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Member

func (Keeper) Members

func (Keeper) Params

func (Keeper) Proposal

func (Keeper) Proposals

func (Keeper) RegisterRoleProposal

func (k Keeper) RegisterRoleProposal(ctx sdk.Context, proposer, target sdk.AccAddress, role types.Role) (types.RoleProposal, error)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error

func (Keeper) Vote

func (Keeper) Votes

Jump to

Keyboard shortcuts

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