Documentation
¶
Index ¶
- func GuardianInvariant(k Keeper) sdk.Invariant
- func IsValidEthereumAddress(address string) error
- func NewMsgServer(k Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) BridgeStatus(goCtx context.Context, req *types.QueryBridgeStatusRequest) (*types.QueryBridgeStatusResponse, error)
- func (k Keeper) Commitments(ctx context.Context, request *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error)
- func (k Keeper) ConfirmedProvision(ctx context.Context, request *types.QueryConfirmedProvisionRequest) (*types.QueryConfirmedProvisionResponse, error)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllVotes(ctx sdk.Context) (votes []types.Vote)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBridgeInactiveCounter(ctx sdk.Context) uint64
- func (k Keeper) GetBridgeStatus(ctx sdk.Context) types.BridgeStatus
- func (k Keeper) GetBridgeStatusMetadata(ctx sdk.Context) types.BridgeStatusMetadata
- func (k Keeper) GetBridgeSwitch(ctx sdk.Context, guardian sdk.AccAddress) (types.BridgeSwitch, error)
- func (k Keeper) GetBridgeSwitches(ctx sdk.Context) []types.BridgeSwitch
- func (k Keeper) GetNextProposalID(ctx sdk.Context) uint64
- func (k Keeper) GetNextSequence(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProposalVotes(ctx sdk.Context, proposalID uint64) []types.Vote
- func (k Keeper) GetRole(ctx sdk.Context, addr sdk.AccAddress) types.Role
- func (k Keeper) GetRoleMetadata(ctx sdk.Context) types.RoleMetadata
- func (k Keeper) GetRolePairs(ctx sdk.Context) []types.RolePair
- func (k Keeper) GetRoleProposal(ctx sdk.Context, id uint64) (proposal types.RoleProposal, found bool)
- func (k Keeper) GetRoleProposals(ctx sdk.Context) (proposals []types.RoleProposal)
- func (k Keeper) GetSeqToBlocknum(ctx sdk.Context, seq uint64) (uint64, error)
- func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (types.VoteOption, error)
- func (k Keeper) GreatestConsecutiveConfirmedSeq(ctx context.Context, ...) (*types.QueryGreatestConsecutiveConfirmedSeqResponse, error)
- func (k Keeper) GreatestSeqByOperator(ctx context.Context, request *types.QueryGreatestSeqByOperatorRequest) (*types.QueryGreatestSeqByOperatorResponse, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState) error
- func (k Keeper) InitMemStore(ctx sdk.Context)
- func (k Keeper) IsBridgeHalted(ctx sdk.Context) bool
- func (k Keeper) IsInitialized(ctx sdk.Context) bool
- func (k Keeper) IterateProposals(ctx sdk.Context, cb func(proposal types.RoleProposal) (stop bool))
- func (k Keeper) IterateVotes(ctx sdk.Context, cb func(proposal types.Vote) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Member(goCtx context.Context, req *types.QueryMemberRequest) (*types.QueryMemberResponse, error)
- func (k Keeper) Members(goCtx context.Context, req *types.QueryMembersRequest) (*types.QueryMembersResponse, error)
- func (k Keeper) NeededSubmissionSeqs(ctx context.Context, request *types.QueryNeededSubmissionSeqsRequest) (*types.QueryNeededSubmissionSeqsResponse, error)
- func (k Keeper) NextSeqSend(goCtx context.Context, req *types.QueryNextSeqSendRequest) (*types.QueryNextSeqSendResponse, error)
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Proposal(goCtx context.Context, req *types.QueryProposalRequest) (*types.QueryProposalResponse, error)
- func (k Keeper) Proposals(goCtx context.Context, req *types.QueryProposalsRequest) (*types.QueryProposalsResponse, error)
- func (k Keeper) RegisterRoleProposal(ctx sdk.Context, proposer, target sdk.AccAddress, role types.Role) (types.RoleProposal, error)
- func (k Keeper) SeqToBlocknums(goCtx context.Context, req *types.QuerySeqToBlocknumsRequest) (*types.QuerySeqToBlocknumsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) SubmittedProvision(ctx context.Context, request *types.QuerySubmittedProvisionRequest) (*types.QuerySubmittedProvisionResponse, error)
- func (k Keeper) Vote(goCtx context.Context, req *types.QueryVoteRequest) (*types.QueryVoteResponse, error)
- func (k Keeper) Votes(goCtx context.Context, req *types.QueryVotesRequest) (*types.QueryVotesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuardianInvariant ¶
func IsValidEthereumAddress ¶
func NewMsgServer ¶
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 (Keeper) BridgeStatus ¶
func (k Keeper) BridgeStatus(goCtx context.Context, req *types.QueryBridgeStatusRequest) (*types.QueryBridgeStatusResponse, error)
func (Keeper) Commitments ¶
func (k Keeper) Commitments(ctx context.Context, request *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error)
func (Keeper) ConfirmedProvision ¶
func (k Keeper) ConfirmedProvision(ctx context.Context, request *types.QueryConfirmedProvisionRequest) (*types.QueryConfirmedProvisionResponse, error)
func (Keeper) EndBlocker ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetAllVotes ¶
GetAllVotes returns all the votes from the store
func (Keeper) GetAuthority ¶
func (Keeper) GetBridgeInactiveCounter ¶
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) GetProposalVotes ¶
func (Keeper) GetRoleMetadata ¶
func (k Keeper) GetRoleMetadata(ctx sdk.Context) types.RoleMetadata
func (Keeper) GetRoleProposal ¶
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 (Keeper) GetVote ¶
func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (types.VoteOption, error)
func (Keeper) GreatestConsecutiveConfirmedSeq ¶
func (k Keeper) GreatestConsecutiveConfirmedSeq(ctx context.Context, request *types.QueryGreatestConsecutiveConfirmedSeqRequest) (*types.QueryGreatestConsecutiveConfirmedSeqResponse, error)
func (Keeper) GreatestSeqByOperator ¶
func (k Keeper) GreatestSeqByOperator(ctx context.Context, request *types.QueryGreatestSeqByOperatorRequest) (*types.QueryGreatestSeqByOperatorResponse, error)
func (Keeper) InitGenesis ¶
func (Keeper) InitMemStore ¶
func (Keeper) IsInitialized ¶
IsInitialized returns true if the keeper is properly initialized, and false otherwise.
func (Keeper) IterateProposals ¶
IterateProposals iterates over the all the role proposals and performs a callback function
func (Keeper) IterateVotes ¶
IterateVotes iterates over the all the votes for role proposals and performs a callback function
func (Keeper) Member ¶
func (k Keeper) Member(goCtx context.Context, req *types.QueryMemberRequest) (*types.QueryMemberResponse, error)
func (Keeper) Members ¶
func (k Keeper) Members(goCtx context.Context, req *types.QueryMembersRequest) (*types.QueryMembersResponse, error)
func (Keeper) NeededSubmissionSeqs ¶
func (k Keeper) NeededSubmissionSeqs(ctx context.Context, request *types.QueryNeededSubmissionSeqsRequest) (*types.QueryNeededSubmissionSeqsResponse, error)
func (Keeper) NextSeqSend ¶
func (k Keeper) NextSeqSend(goCtx context.Context, req *types.QueryNextSeqSendRequest) (*types.QueryNextSeqSendResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Proposal ¶
func (k Keeper) Proposal(goCtx context.Context, req *types.QueryProposalRequest) (*types.QueryProposalResponse, error)
func (Keeper) Proposals ¶
func (k Keeper) Proposals(goCtx context.Context, req *types.QueryProposalsRequest) (*types.QueryProposalsResponse, error)
func (Keeper) RegisterRoleProposal ¶
func (k Keeper) RegisterRoleProposal(ctx sdk.Context, proposer, target sdk.AccAddress, role types.Role) (types.RoleProposal, error)
func (Keeper) SeqToBlocknums ¶
func (k Keeper) SeqToBlocknums(goCtx context.Context, req *types.QuerySeqToBlocknumsRequest) (*types.QuerySeqToBlocknumsResponse, error)
func (Keeper) SubmittedProvision ¶
func (k Keeper) SubmittedProvision(ctx context.Context, request *types.QuerySubmittedProvisionRequest) (*types.QuerySubmittedProvisionResponse, error)
func (Keeper) Vote ¶
func (k Keeper) Vote(goCtx context.Context, req *types.QueryVoteRequest) (*types.QueryVoteResponse, error)
func (Keeper) Votes ¶
func (k Keeper) Votes(goCtx context.Context, req *types.QueryVotesRequest) (*types.QueryVotesResponse, error)
Click to show internal directories.
Click to hide internal directories.