Documentation ¶
Index ¶
- func EmitEventAddObserver(ctx sdk.Context, observerCount uint64, ...)
- func EmitEventBallotCreated(ctx sdk.Context, ballot types.Ballot, observationHash, observationChain string)
- func EmitEventKeyGenBlockUpdated(ctx sdk.Context, keygen *types.Keygen)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func UpdateObserverList(list []string, oldObserverAddresss, newObserverAddress string)
- type Hooks
- func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h Hooks) AfterUnbondingInitiated(_ sdk.Context, _ uint64) error
- func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h Hooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error
- func (h Hooks) AfterValidatorCreated(_ sdk.Context, _ sdk.ValAddress) error
- func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeDelegationCreated(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
- func (h Hooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
- func (h Hooks) BeforeDelegationSharesModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
- func (h Hooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress) error
- func (h Hooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) error
- type Keeper
- func (k Keeper) AddBallotToList(ctx sdk.Context, ballot types.Ballot)
- func (k Keeper) AddObserverToSet(ctx sdk.Context, address string)
- func (k Keeper) AddVoteToBallot(ctx sdk.Context, ballot types.Ballot, address string, ...) (types.Ballot, error)
- func (k Keeper) AppendTss(ctx sdk.Context, tss types.TSS)
- func (k Keeper) BallotByIdentifier(goCtx context.Context, req *types.QueryBallotByIdentifierRequest) (*types.QueryBallotByIdentifierResponse, error)
- func (k Keeper) BlameByIdentifier(goCtx context.Context, request *types.QueryBlameByIdentifierRequest) (*types.QueryBlameByIdentifierResponse, error)
- func (k Keeper) BlamesByChainAndNonce(goCtx context.Context, request *types.QueryBlameByChainAndNonceRequest) (*types.QueryBlameByChainAndNonceResponse, error)
- func (k Keeper) ChainNonces(c context.Context, req *types.QueryGetChainNoncesRequest) (*types.QueryGetChainNoncesResponse, error)
- func (k Keeper) ChainNoncesAll(c context.Context, req *types.QueryAllChainNoncesRequest) (*types.QueryAllChainNoncesResponse, error)
- func (k Keeper) CheckAndCleanObserver(ctx sdk.Context, valAddress sdk.ValAddress) error
- func (k Keeper) CheckAndCleanObserverDelegator(ctx sdk.Context, valAddress sdk.ValAddress, delAddress sdk.AccAddress) error
- func (k Keeper) CheckIfFinalizingVote(ctx sdk.Context, ballot types.Ballot) (types.Ballot, bool)
- func (k Keeper) CheckIfTssPubkeyHasBeenGenerated(ctx sdk.Context, tssPubkey string) (types.TSS, bool)
- func (k Keeper) CheckObserverSelfDelegation(ctx sdk.Context, accAddress string) error
- func (k Keeper) CheckUpdateReason(ctx sdk.Context, msg *types.MsgUpdateObserver) (bool, error)
- func (k Keeper) CleanObservers(ctx sdk.Context, valAddress sdk.ValAddress) error
- func (k Keeper) CleanSlashedValidator(ctx sdk.Context, valAddress sdk.ValAddress, fraction sdk.Dec) error
- func (k Keeper) Codec() codec.BinaryCodec
- func (k Keeper) CrosschainFlags(c context.Context, req *types.QueryGetCrosschainFlagsRequest) (*types.QueryGetCrosschainFlagsResponse, error)
- func (k Keeper) DisableInboundOnly(ctx sdk.Context)
- func (k Keeper) FindBallot(ctx sdk.Context, index string, chain chains.Chain, ...) (ballot types.Ballot, isNew bool, err error)
- func (k Keeper) GetAllBallots(ctx sdk.Context) (voters []*types.Ballot)
- func (k Keeper) GetAllBlame(ctx sdk.Context) (BlameRecords []types.Blame)
- func (k Keeper) GetAllBlamePaginated(ctx sdk.Context, pagination *query.PageRequest) (blameRecords []types.Blame, pageRes *query.PageResponse, err error)
- func (k Keeper) GetAllBlameRecords(goCtx context.Context, request *types.QueryAllBlameRecordsRequest) (*types.QueryAllBlameRecordsResponse, error)
- func (k Keeper) GetAllChainNonces(ctx sdk.Context) (list []types.ChainNonces)
- func (k Keeper) GetAllNodeAccount(ctx sdk.Context) (list []types.NodeAccount)
- func (k Keeper) GetAllNonceToCctx(ctx sdk.Context) (list []types.NonceToCctx)
- func (k Keeper) GetAllPendingNonces(ctx sdk.Context) (list []types.PendingNonces, err error)
- func (k Keeper) GetAllPendingNoncesPaginated(ctx sdk.Context, pagination *query.PageRequest) (list []types.PendingNonces, pageRes *query.PageResponse, err error)
- func (k Keeper) GetAllTSS(ctx sdk.Context) (list []types.TSS)
- func (k Keeper) GetAllTSSPaginated(ctx sdk.Context, pagination *query.PageRequest) (list []types.TSS, pageRes *query.PageResponse, err error)
- func (k Keeper) GetAllTssFundMigrators(ctx sdk.Context) (fms []types.TssFundMigratorInfo)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAuthorityKeeper() types.AuthorityKeeper
- func (k Keeper) GetBallot(ctx sdk.Context, index string) (val types.Ballot, found bool)
- func (k Keeper) GetBallotList(ctx sdk.Context, height int64) (val types.BallotListForHeight, found bool)
- func (k Keeper) GetBlame(ctx sdk.Context, index string) (val types.Blame, found bool)
- func (k Keeper) GetBlamesByChainAndNonce(ctx sdk.Context, chainID int64, nonce int64) (BlameRecords []*types.Blame, found bool)
- func (k Keeper) GetChainNonces(ctx sdk.Context, index string) (val types.ChainNonces, found bool)
- func (k Keeper) GetChainParams(goCtx context.Context, req *types.QueryGetChainParamsRequest) (*types.QueryGetChainParamsResponse, error)
- func (k Keeper) GetChainParamsByChainID(ctx sdk.Context, chainID int64) (*types.ChainParams, bool)
- func (k Keeper) GetChainParamsForChain(goCtx context.Context, req *types.QueryGetChainParamsForChainRequest) (*types.QueryGetChainParamsForChainResponse, error)
- func (k Keeper) GetChainParamsList(ctx sdk.Context) (val types.ChainParamsList, found bool)
- func (k Keeper) GetCrosschainFlags(ctx sdk.Context) (val types.CrosschainFlags, found bool)
- func (k Keeper) GetFundMigrator(ctx sdk.Context, chainID int64) (val types.TssFundMigratorInfo, found bool)
- func (k Keeper) GetHistoricalTssByFinalizedHeight(ctx sdk.Context, finalizedZetaHeight int64) (types.TSS, bool)
- func (k Keeper) GetKeygen(ctx sdk.Context) (val types.Keygen, found bool)
- func (k Keeper) GetLastObserverCount(ctx sdk.Context) (val types.LastObserverCount, found bool)
- func (k Keeper) GetLightclientKeeper() types.LightclientKeeper
- func (k Keeper) GetMaturedBallots(ctx sdk.Context, maturityBlocks int64) (val types.BallotListForHeight, found bool)
- func (k Keeper) GetNodeAccount(ctx sdk.Context, index string) (val types.NodeAccount, found bool)
- func (k Keeper) GetNonceToCctx(ctx sdk.Context, tss string, chainID int64, nonce int64) (val types.NonceToCctx, found bool)
- func (k Keeper) GetObserverSet(ctx sdk.Context) (val types.ObserverSet, found bool)
- func (k Keeper) GetPendingNonces(ctx sdk.Context, tss string, chainID int64) (val types.PendingNonces, found bool)
- func (k Keeper) GetPreviousTSS(ctx sdk.Context) (val types.TSS, found bool)
- func (k Keeper) GetSlashingKeeper() types.SlashingKeeper
- func (k Keeper) GetStakingKeeper() types.StakingKeeper
- func (k Keeper) GetSupportedChainFromChainID(ctx sdk.Context, chainID int64) (chains.Chain, bool)
- func (k Keeper) GetSupportedChains(ctx sdk.Context) []chains.Chain
- func (k Keeper) GetSupportedForeignChains(ctx sdk.Context) []chains.Chain
- func (k Keeper) GetTSS(ctx sdk.Context) (val types.TSS, found bool)
- func (k Keeper) GetTssAddress(goCtx context.Context, req *types.QueryGetTssAddressRequest) (*types.QueryGetTssAddressResponse, error)
- func (k Keeper) GetTssAddressByFinalizedHeight(goCtx context.Context, req *types.QueryGetTssAddressByFinalizedHeightRequest) (*types.QueryGetTssAddressByFinalizedHeightResponse, error)
- func (k Keeper) HasVoted(goCtx context.Context, req *types.QueryHasVotedRequest) (*types.QueryHasVotedResponse, error)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) IsAddressPartOfObserverSet(ctx sdk.Context, address string) bool
- func (k Keeper) IsInboundEnabled(ctx sdk.Context) (found bool)
- func (k Keeper) IsNonTombstonedObserver(ctx sdk.Context, address string) bool
- func (k Keeper) IsOperatorTombstoned(ctx sdk.Context, creator string) (bool, error)
- func (k Keeper) IsOutboundEnabled(ctx sdk.Context) (found bool)
- func (k Keeper) IsValidator(ctx sdk.Context, creator string) error
- func (k Keeper) Keygen(c context.Context, _ *types.QueryGetKeygenRequest) (*types.QueryGetKeygenResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NodeAccount(c context.Context, req *types.QueryGetNodeAccountRequest) (*types.QueryGetNodeAccountResponse, error)
- func (k Keeper) NodeAccountAll(c context.Context, req *types.QueryAllNodeAccountRequest) (*types.QueryAllNodeAccountResponse, error)
- func (k Keeper) ObserverSet(goCtx context.Context, req *types.QueryObserverSet) (*types.QueryObserverSetResponse, error)
- func (k Keeper) PendingNoncesAll(c context.Context, req *types.QueryAllPendingNoncesRequest) (*types.QueryAllPendingNoncesResponse, error)
- func (k Keeper) PendingNoncesByChain(c context.Context, req *types.QueryPendingNoncesByChainRequest) (*types.QueryPendingNoncesByChainResponse, error)
- func (k Keeper) RemoveAllExistingMigrators(ctx sdk.Context)
- func (k Keeper) RemoveChainNonces(ctx sdk.Context, index string)
- func (k Keeper) RemoveCrosschainFlags(ctx sdk.Context)
- func (k Keeper) RemoveFromPendingNonces(ctx sdk.Context, tssPubkey string, chainID int64, nonce int64)
- func (k Keeper) RemoveKeygen(ctx sdk.Context)
- func (k Keeper) RemoveNodeAccount(ctx sdk.Context, index string)
- func (k Keeper) RemoveNonceToCctx(ctx sdk.Context, nonceToCctx types.NonceToCctx)
- func (k Keeper) RemoveObserverFromSet(ctx sdk.Context, address string)
- func (k Keeper) RemovePendingNonces(ctx sdk.Context, pendingNonces types.PendingNonces)
- func (k Keeper) RemoveTSS(ctx sdk.Context)
- func (k Keeper) SetBallot(ctx sdk.Context, ballot *types.Ballot)
- func (k Keeper) SetBallotList(ctx sdk.Context, ballotlist *types.BallotListForHeight)
- func (k Keeper) SetBlame(ctx sdk.Context, blame types.Blame)
- func (k Keeper) SetChainNonces(ctx sdk.Context, chainNonces types.ChainNonces)
- func (k Keeper) SetChainParamsList(ctx sdk.Context, chainParams types.ChainParamsList)
- func (k Keeper) SetCrosschainFlags(ctx sdk.Context, crosschainFlags types.CrosschainFlags)
- func (k Keeper) SetFundMigrator(ctx sdk.Context, fm types.TssFundMigratorInfo)
- func (k Keeper) SetKeygen(ctx sdk.Context, keygen types.Keygen)
- func (k Keeper) SetLastObserverCount(ctx sdk.Context, lbc *types.LastObserverCount)
- func (k Keeper) SetNodeAccount(ctx sdk.Context, nodeAccount types.NodeAccount)
- func (k Keeper) SetNonceToCctx(ctx sdk.Context, nonceToCctx types.NonceToCctx)
- func (k Keeper) SetObserverSet(ctx sdk.Context, om types.ObserverSet)
- func (k Keeper) SetPendingNonces(ctx sdk.Context, pendingNonces types.PendingNonces)
- func (k Keeper) SetTSS(ctx sdk.Context, tss types.TSS)
- func (k Keeper) SetTSSHistory(ctx sdk.Context, tss types.TSS)
- func (k Keeper) SetTssAndUpdateNonce(ctx sdk.Context, tss types.TSS)
- func (k Keeper) ShowObserverCount(goCtx context.Context, req *types.QueryShowObserverCountRequest) (*types.QueryShowObserverCountResponse, error)
- func (k Keeper) StoreKey() storetypes.StoreKey
- func (k Keeper) SupportedChains(goCtx context.Context, _ *types.QuerySupportedChains) (*types.QuerySupportedChainsResponse, error)
- func (k Keeper) TSS(c context.Context, req *types.QueryGetTSSRequest) (*types.QueryGetTSSResponse, error)
- func (k Keeper) TssFundsMigratorInfo(goCtx context.Context, req *types.QueryTssFundsMigratorInfoRequest) (*types.QueryTssFundsMigratorInfoResponse, error)
- func (k Keeper) TssFundsMigratorInfoAll(goCtx context.Context, request *types.QueryTssFundsMigratorInfoAllRequest) (*types.QueryTssFundsMigratorInfoAllResponse, error)
- func (k Keeper) TssHistory(c context.Context, _ *types.QueryTssHistoryRequest) (*types.QueryTssHistoryResponse, error)
- func (k Keeper) UpdateObserverAddress(ctx sdk.Context, oldObserverAddress, newObserverAddress string) error
- func (k Keeper) VoteOnBallot(ctx sdk.Context, chain chains.Chain, ballotIndex string, ...) (ballot types.Ballot, isFinalized bool, isNew bool, err error)
- func (k Keeper) VoteOnInboundBallot(ctx sdk.Context, senderChainID int64, receiverChainID int64, ...) (isFinalized bool, isNew bool, err error)
- func (k Keeper) VoteOnOutboundBallot(ctx sdk.Context, ballotIndex string, outTxChainID int64, ...) (isFinalized bool, isNew bool, ballot observertypes.Ballot, ...)
- type Migrator
- func (m Migrator) Migrate1to2(_ sdk.Context) error
- func (m Migrator) Migrate2to3(_ sdk.Context) error
- func (m Migrator) Migrate3to4(_ sdk.Context) error
- func (m Migrator) Migrate4to5(_ sdk.Context) error
- func (m Migrator) Migrate5to6(_ sdk.Context) error
- func (m Migrator) Migrate6to7(_ sdk.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitEventAddObserver ¶
func EmitEventBallotCreated ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func UpdateObserverList ¶
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (Hooks) AfterDelegationModified ¶
func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Hooks) AfterUnbondingInitiated ¶
func (Hooks) AfterValidatorBeginUnbonding ¶
func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error
func (Hooks) AfterValidatorBonded ¶
func (h Hooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error
func (Hooks) AfterValidatorCreated ¶
func (Hooks) AfterValidatorRemoved ¶
func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error
func (Hooks) BeforeDelegationCreated ¶
func (h Hooks) BeforeDelegationCreated(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
func (Hooks) BeforeDelegationRemoved ¶
func (h Hooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
func (Hooks) BeforeDelegationSharesModified ¶
func (h Hooks) BeforeDelegationSharesModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error
func (Hooks) BeforeValidatorModified ¶
func (Hooks) BeforeValidatorSlashed ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, stakingKeeper types.StakingKeeper, slashinKeeper types.SlashingKeeper, authorityKeeper types.AuthorityKeeper, lightclientKeeper types.LightclientKeeper, authority string, ) *Keeper
func (Keeper) AddBallotToList ¶
AddBallotToList adds a ballot to the list of ballots for a given height.
func (Keeper) AddVoteToBallot ¶
func (Keeper) AppendTss ¶
AppendTss appends a tss to the TSSHistoryKey store and update the current TSS to the latest one
func (Keeper) BallotByIdentifier ¶
func (k Keeper) BallotByIdentifier( goCtx context.Context, req *types.QueryBallotByIdentifierRequest, ) (*types.QueryBallotByIdentifierResponse, error)
func (Keeper) BlameByIdentifier ¶
func (k Keeper) BlameByIdentifier( goCtx context.Context, request *types.QueryBlameByIdentifierRequest, ) (*types.QueryBlameByIdentifierResponse, error)
func (Keeper) BlamesByChainAndNonce ¶
func (k Keeper) BlamesByChainAndNonce( goCtx context.Context, request *types.QueryBlameByChainAndNonceRequest, ) (*types.QueryBlameByChainAndNonceResponse, error)
func (Keeper) ChainNonces ¶
func (k Keeper) ChainNonces( c context.Context, req *types.QueryGetChainNoncesRequest, ) (*types.QueryGetChainNoncesResponse, error)
func (Keeper) ChainNoncesAll ¶
func (k Keeper) ChainNoncesAll( c context.Context, req *types.QueryAllChainNoncesRequest, ) (*types.QueryAllChainNoncesResponse, error)
func (Keeper) CheckAndCleanObserver ¶
CheckAndCleanObserver checks if the observer self-delegation is sufficient, if not it removes the observer from the set
func (Keeper) CheckAndCleanObserverDelegator ¶
func (k Keeper) CheckAndCleanObserverDelegator( ctx sdk.Context, valAddress sdk.ValAddress, delAddress sdk.AccAddress, ) error
CheckAndCleanObserverDelegator first checks if the delegation is self delegation, if it is, then it checks if the total delegation is sufficient after the delegation is removed, if not it removes the observer from the set
func (Keeper) CheckIfFinalizingVote ¶
CheckIfFinalizingVote checks if the ballot is finalized in this block and if it is, it sets the ballot in the store This function with only return true if the ballot moves for pending to success or failed status with this vote. If the ballot is already finalized in the previous vote , it will return false
func (Keeper) CheckIfTssPubkeyHasBeenGenerated ¶
func (Keeper) CheckObserverSelfDelegation ¶
func (Keeper) CheckUpdateReason ¶
func (Keeper) CleanObservers ¶
CleanObservers cleans a observer Mapper without checking delegation amount
func (Keeper) CleanSlashedValidator ¶
func (Keeper) Codec ¶
func (k Keeper) Codec() codec.BinaryCodec
func (Keeper) CrosschainFlags ¶
func (k Keeper) CrosschainFlags( c context.Context, req *types.QueryGetCrosschainFlagsRequest, ) (*types.QueryGetCrosschainFlagsResponse, error)
func (Keeper) DisableInboundOnly ¶
func (Keeper) FindBallot ¶
func (k Keeper) FindBallot( ctx sdk.Context, index string, chain chains.Chain, observationType types.ObservationType, ) (ballot types.Ballot, isNew bool, err error)
FindBallot finds the ballot for the given index If the ballot is not found, it creates a new ballot and returns it
func (Keeper) GetAllBallots ¶
func (Keeper) GetAllBlame ¶
func (Keeper) GetAllBlamePaginated ¶
func (k Keeper) GetAllBlamePaginated( ctx sdk.Context, pagination *query.PageRequest, ) (blameRecords []types.Blame, pageRes *query.PageResponse, err error)
func (Keeper) GetAllBlameRecords ¶
func (k Keeper) GetAllBlameRecords( goCtx context.Context, request *types.QueryAllBlameRecordsRequest, ) (*types.QueryAllBlameRecordsResponse, error)
func (Keeper) GetAllChainNonces ¶
func (k Keeper) GetAllChainNonces(ctx sdk.Context) (list []types.ChainNonces)
GetAllChainNonces returns all chainNonces
func (Keeper) GetAllNodeAccount ¶
func (k Keeper) GetAllNodeAccount(ctx sdk.Context) (list []types.NodeAccount)
GetAllNodeAccount returns all nodeAccount
func (Keeper) GetAllNonceToCctx ¶
func (k Keeper) GetAllNonceToCctx(ctx sdk.Context) (list []types.NonceToCctx)
func (Keeper) GetAllPendingNonces ¶
func (Keeper) GetAllPendingNoncesPaginated ¶
func (k Keeper) GetAllPendingNoncesPaginated( ctx sdk.Context, pagination *query.PageRequest, ) (list []types.PendingNonces, pageRes *query.PageResponse, err error)
func (Keeper) GetAllTSSPaginated ¶
func (k Keeper) GetAllTSSPaginated( ctx sdk.Context, pagination *query.PageRequest, ) (list []types.TSS, pageRes *query.PageResponse, err error)
func (Keeper) GetAllTssFundMigrators ¶
func (k Keeper) GetAllTssFundMigrators(ctx sdk.Context) (fms []types.TssFundMigratorInfo)
func (Keeper) GetAuthority ¶
func (Keeper) GetAuthorityKeeper ¶
func (k Keeper) GetAuthorityKeeper() types.AuthorityKeeper
func (Keeper) GetBallotList ¶
func (Keeper) GetBlamesByChainAndNonce ¶
func (Keeper) GetChainNonces ¶
GetChainNonces returns a chainNonces from its index
func (Keeper) GetChainParams ¶
func (k Keeper) GetChainParams( goCtx context.Context, req *types.QueryGetChainParamsRequest, ) (*types.QueryGetChainParamsResponse, error)
func (Keeper) GetChainParamsByChainID ¶
func (Keeper) GetChainParamsForChain ¶
func (k Keeper) GetChainParamsForChain( goCtx context.Context, req *types.QueryGetChainParamsForChainRequest, ) (*types.QueryGetChainParamsForChainResponse, error)
func (Keeper) GetChainParamsList ¶
func (Keeper) GetCrosschainFlags ¶
GetCrosschainFlags returns the crosschain flags
func (Keeper) GetFundMigrator ¶
func (Keeper) GetHistoricalTssByFinalizedHeight ¶
func (k Keeper) GetHistoricalTssByFinalizedHeight(ctx sdk.Context, finalizedZetaHeight int64) (types.TSS, bool)
GetHistoricalTssByFinalizedHeight Returns the TSS address the specified finalized zeta height Finalized zeta height is the zeta block height at which the voting for the generation of a new TSS is finalized
func (Keeper) GetLastObserverCount ¶
func (Keeper) GetLightclientKeeper ¶
func (k Keeper) GetLightclientKeeper() types.LightclientKeeper
func (Keeper) GetMaturedBallots ¶
func (Keeper) GetNodeAccount ¶
GetNodeAccount returns a nodeAccount from its index
func (Keeper) GetNonceToCctx ¶
func (Keeper) GetObserverSet ¶
func (Keeper) GetPendingNonces ¶
func (Keeper) GetPreviousTSS ¶
GetPreviousTSS returns the previous tss information
func (Keeper) GetSlashingKeeper ¶
func (k Keeper) GetSlashingKeeper() types.SlashingKeeper
func (Keeper) GetStakingKeeper ¶
func (k Keeper) GetStakingKeeper() types.StakingKeeper
func (Keeper) GetSupportedChainFromChainID ¶
GetSupportedChainFromChainID returns the chain from the chain id it returns nil if the chain doesn't exist or is not supported
func (Keeper) GetSupportedChains ¶
GetSupportedChains returns the list of supported chains
func (Keeper) GetSupportedForeignChains ¶
GetSupportedForeignChains returns the list of supported foreign chains
func (Keeper) GetTssAddress ¶
func (k Keeper) GetTssAddress( goCtx context.Context, req *types.QueryGetTssAddressRequest, ) (*types.QueryGetTssAddressResponse, error)
func (Keeper) GetTssAddressByFinalizedHeight ¶
func (k Keeper) GetTssAddressByFinalizedHeight( goCtx context.Context, req *types.QueryGetTssAddressByFinalizedHeightRequest, ) (*types.QueryGetTssAddressByFinalizedHeightResponse, error)
func (Keeper) HasVoted ¶
func (k Keeper) HasVoted(goCtx context.Context, req *types.QueryHasVotedRequest) (*types.QueryHasVotedResponse, error)
func (Keeper) IsAddressPartOfObserverSet ¶
func (Keeper) IsNonTombstonedObserver ¶
IsNonTombstonedObserver checks whether a signer is authorized to sign This function checks if the signer is present in the observer set and also checks if the signer is not tombstoned
func (Keeper) IsOperatorTombstoned ¶
func (Keeper) Keygen ¶
func (k Keeper) Keygen(c context.Context, _ *types.QueryGetKeygenRequest) (*types.QueryGetKeygenResponse, error)
func (Keeper) NodeAccount ¶
func (k Keeper) NodeAccount( c context.Context, req *types.QueryGetNodeAccountRequest, ) (*types.QueryGetNodeAccountResponse, error)
func (Keeper) NodeAccountAll ¶
func (k Keeper) NodeAccountAll( c context.Context, req *types.QueryAllNodeAccountRequest, ) (*types.QueryAllNodeAccountResponse, error)
func (Keeper) ObserverSet ¶
func (k Keeper) ObserverSet( goCtx context.Context, req *types.QueryObserverSet, ) (*types.QueryObserverSetResponse, error)
func (Keeper) PendingNoncesAll ¶
func (k Keeper) PendingNoncesAll( c context.Context, req *types.QueryAllPendingNoncesRequest, ) (*types.QueryAllPendingNoncesResponse, error)
func (Keeper) PendingNoncesByChain ¶
func (k Keeper) PendingNoncesByChain( c context.Context, req *types.QueryPendingNoncesByChainRequest, ) (*types.QueryPendingNoncesByChainResponse, error)
func (Keeper) RemoveAllExistingMigrators ¶
func (Keeper) RemoveChainNonces ¶
RemoveChainNonces removes a chainNonces from the store
func (Keeper) RemoveCrosschainFlags ¶
RemoveCrosschainFlags removes crosschain flags from the store
func (Keeper) RemoveFromPendingNonces ¶
func (Keeper) RemoveKeygen ¶
RemoveKeygen removes keygen from the store
func (Keeper) RemoveNodeAccount ¶
RemoveNodeAccount removes a nodeAccount from the store
func (Keeper) RemoveNonceToCctx ¶
func (k Keeper) RemoveNonceToCctx(ctx sdk.Context, nonceToCctx types.NonceToCctx)
func (Keeper) RemoveObserverFromSet ¶
func (Keeper) RemovePendingNonces ¶
func (k Keeper) RemovePendingNonces(ctx sdk.Context, pendingNonces types.PendingNonces)
func (Keeper) SetBallotList ¶
func (k Keeper) SetBallotList(ctx sdk.Context, ballotlist *types.BallotListForHeight)
func (Keeper) SetChainNonces ¶
func (k Keeper) SetChainNonces(ctx sdk.Context, chainNonces types.ChainNonces)
SetChainNonces set a specific chainNonces in the store from its index
func (Keeper) SetChainParamsList ¶
func (k Keeper) SetChainParamsList(ctx sdk.Context, chainParams types.ChainParamsList)
func (Keeper) SetCrosschainFlags ¶
func (k Keeper) SetCrosschainFlags(ctx sdk.Context, crosschainFlags types.CrosschainFlags)
SetCrosschainFlags set the crosschain flags in the store
func (Keeper) SetFundMigrator ¶
func (k Keeper) SetFundMigrator(ctx sdk.Context, fm types.TssFundMigratorInfo)
func (Keeper) SetLastObserverCount ¶
func (k Keeper) SetLastObserverCount(ctx sdk.Context, lbc *types.LastObserverCount)
func (Keeper) SetNodeAccount ¶
func (k Keeper) SetNodeAccount(ctx sdk.Context, nodeAccount types.NodeAccount)
SetNodeAccount set a specific nodeAccount in the store from its index
func (Keeper) SetNonceToCctx ¶
func (k Keeper) SetNonceToCctx(ctx sdk.Context, nonceToCctx types.NonceToCctx)
func (Keeper) SetObserverSet ¶
func (k Keeper) SetObserverSet(ctx sdk.Context, om types.ObserverSet)
func (Keeper) SetPendingNonces ¶
func (k Keeper) SetPendingNonces(ctx sdk.Context, pendingNonces types.PendingNonces)
func (Keeper) SetTSSHistory ¶
SetTSSHistory Sets a new TSS into the TSS history store
func (Keeper) SetTssAndUpdateNonce ¶
func (Keeper) ShowObserverCount ¶
func (k Keeper) ShowObserverCount( goCtx context.Context, req *types.QueryShowObserverCountRequest, ) (*types.QueryShowObserverCountResponse, error)
func (Keeper) StoreKey ¶
func (k Keeper) StoreKey() storetypes.StoreKey
func (Keeper) SupportedChains ¶
func (k Keeper) SupportedChains( goCtx context.Context, _ *types.QuerySupportedChains, ) (*types.QuerySupportedChainsResponse, error)
func (Keeper) TSS ¶
func (k Keeper) TSS(c context.Context, req *types.QueryGetTSSRequest) (*types.QueryGetTSSResponse, error)
TSS returns the tss address for the current tss only
func (Keeper) TssFundsMigratorInfo ¶
func (k Keeper) TssFundsMigratorInfo( goCtx context.Context, req *types.QueryTssFundsMigratorInfoRequest, ) (*types.QueryTssFundsMigratorInfoResponse, error)
TssFundsMigratorInfo queries a tss fund migrator info
func (Keeper) TssFundsMigratorInfoAll ¶
func (k Keeper) TssFundsMigratorInfoAll( goCtx context.Context, request *types.QueryTssFundsMigratorInfoAllRequest, ) (*types.QueryTssFundsMigratorInfoAllResponse, error)
TssFundsMigratorInfoAll queries all tss fund migrator info for all chains
func (Keeper) TssHistory ¶
func (k Keeper) TssHistory(c context.Context, _ *types.QueryTssHistoryRequest) (*types.QueryTssHistoryResponse, error)
TssHistory Query historical list of TSS information
func (Keeper) UpdateObserverAddress ¶
func (Keeper) VoteOnBallot ¶
func (k Keeper) VoteOnBallot( ctx sdk.Context, chain chains.Chain, ballotIndex string, observationType types.ObservationType, voter string, voteType types.VoteType, ) ( ballot types.Ballot, isFinalized bool, isNew bool, err error)
VoteOnBallot finds a ballot or creates a new one if not found, and casts a vote on it. Then proceed to check if the vote has been finalized. This function holds generic logic for all types of votes.
func (Keeper) VoteOnInboundBallot ¶
func (k Keeper) VoteOnInboundBallot( ctx sdk.Context, senderChainID int64, receiverChainID int64, coinType coin.CoinType, voter string, ballotIndex string, inboundHash string, ) (isFinalized bool, isNew bool, err error)
VoteOnInboundBallot casts a vote on an inbound transaction observed on a connected chain. If this is the first vote, a new ballot is created. When a threshold of votes is reached, the ballot is finalized.
func (Keeper) VoteOnOutboundBallot ¶
func (k Keeper) VoteOnOutboundBallot( ctx sdk.Context, ballotIndex string, outTxChainID int64, receiveStatus chains.ReceiveStatus, voter string, ) (isFinalized bool, isNew bool, ballot observertypes.Ballot, observationChainName string, err error)
VoteOnOutboundBallot casts a vote on an outbound transaction observed on a connected chain (after it has been broadcasted to and finalized on a connected chain). If this is the first vote, a new ballot is created. When a threshold of votes is reached, the ballot is finalized. returns if the vote is finalized, if the ballot is new, the ballot status and the name of the observation chain
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates the store from consensus version 1 to 2
func (Migrator) Migrate2to3 ¶
Migrate2to3 migrates the store from consensus version 2 to 3
Source Files ¶
- ballot.go
- blame.go
- chain_nonces.go
- chain_params.go
- crosschain_flags.go
- events.go
- grpc_query.go
- grpc_query_ballot.go
- grpc_query_blame.go
- grpc_query_chain_params.go
- grpc_query_crosschain_flags.go
- grpc_query_keygen.go
- grpc_query_node_account.go
- grpc_query_nonces.go
- grpc_query_observer.go
- grpc_query_supported_chain.go
- grpc_query_tss.go
- grpc_query_tss_funds_migrator_info.go
- hooks.go
- keeper.go
- keygen.go
- last_observer_count.go
- migrator.go
- msg_server.go
- msg_server_add_observer.go
- msg_server_disable_cctx_flags.go
- msg_server_enable_cctx_flags.go
- msg_server_remove_chain_params.go
- msg_server_reset_chain_nonces.go
- msg_server_update_chain_params.go
- msg_server_update_gas_price_increase_flags.go
- msg_server_update_keygen.go
- msg_server_update_observer.go
- msg_server_vote_blame.go
- msg_server_vote_block_header.go
- msg_server_vote_tss.go
- node_account.go
- nonce_to_cctx.go
- observer_set.go
- pending_nonces.go
- tss.go
- tss_funds_migrator.go
- vote_inbound.go
- vote_outbound.go
- voting.go