server

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: GPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegatorBaseInfo added in v0.12.0

type DelegatorBaseInfo struct {
	DelegatorAddr   string `json:"delegator_addr"`
	WithdrawAddress string `json:"withdraw_address"`
	RewardAddress   string `json:"reward_address"`
	OperatorAddress string `json:"operator_address"`
}

type Server

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

func NewServer

func NewServer(store Store, cl rpcclient.Client, listenAddress string, enableUnsafeCORS bool) (*Server, error)

func (*Server) GetAccounts

func (s *Server) GetAccounts(req *getAccountsRequest, r *http.Request) (resp any, err error)

GetAccounts returns all the existing accounts.

func (*Server) GetAllValidatorOutstandingRewards

func (s *Server) GetAllValidatorOutstandingRewards(req *getAllValidatorOutstandingRewardsRequest, r *http.Request) (resp any, err error)

GetAllValidatorOutstandingRewards queries rewards of all validators.

func (*Server) GetAppliedPlan added in v0.10.0

func (s *Server) GetAppliedPlan(r *http.Request) (resp any, err error)

GetAppliedPlan queries a previously applied upgrade plan by its name.

func (*Server) GetAuthParams added in v0.10.0

func (s *Server) GetAuthParams(r *http.Request) (resp any, err error)

GetAuthParams queries all parameters of auth module.

func (*Server) GetAuthority added in v0.10.0

func (s *Server) GetAuthority(r *http.Request) (resp any, err error)

GetAuthority returns the account with authority to conduct upgrades.

func (*Server) GetBalancesByAddress

func (s *Server) GetBalancesByAddress(req *getBalancesByAddressRequest, r *http.Request) (resp any, err error)

GetBalancesByAddress queries the balance of all coins for a single account.

func (*Server) GetBalancesByAddressDenom

func (s *Server) GetBalancesByAddressDenom(req *getBalancesByAddressDenomRequest, r *http.Request) (resp any, err error)

GetBalancesByAddressDenom queries the balance of a single coin for a single account.

func (*Server) GetBankParams added in v0.10.0

func (s *Server) GetBankParams(r *http.Request) (resp any, err error)

GetBankParams queries the parameters of x/bank module.

func (*Server) GetBech32Prefix added in v0.10.0

func (s *Server) GetBech32Prefix(r *http.Request) (resp any, err error)

GetBech32Prefix queries bech32Prefix.

func (*Server) GetComebftBlockEvents

func (s *Server) GetComebftBlockEvents(req *getComebftBlockEventsRequest, r *http.Request) (resp any, err error)

func (*Server) GetCurrentPlan added in v0.10.0

func (s *Server) GetCurrentPlan(r *http.Request) (resp any, err error)

GetCurrentPlan queries the current upgrade plan.

func (*Server) GetDelegationByValidatorAddressDelegatorAddress

func (s *Server) GetDelegationByValidatorAddressDelegatorAddress(r *http.Request) (resp any, err error)

GetDelegationByValidatorAddressDelegatorAddress queries delegate info for given validator delegator pair.

func (*Server) GetDelegationsByDelegatorAddress

func (s *Server) GetDelegationsByDelegatorAddress(req *getDelegationsByDelegatorAddressRequest, r *http.Request) (resp any, err error)

GetDelegationsByDelegatorAddress queries all delegations of a given delegator address.

func (*Server) GetDelegatorByDelegatorAddress added in v0.12.0

func (s *Server) GetDelegatorByDelegatorAddress(r *http.Request) (resp any, err error)

GetDelegatorByDelegatorAddress queries delegator info for given delegator address.

func (*Server) GetDelegatorRewardsByDelegatorAddress

func (s *Server) GetDelegatorRewardsByDelegatorAddress(r *http.Request) (resp any, err error)

GetDelegatorRewardsByDelegatorAddress queries the total rewards accrued by each validator.

func (*Server) GetDelegatorRewardsByDelegatorAddressValidatorAddress

func (s *Server) GetDelegatorRewardsByDelegatorAddressValidatorAddress(r *http.Request) (resp any, err error)

GetDelegatorRewardsByDelegatorAddressValidatorAddress queries the total rewards accrued by a delegation.

func (*Server) GetDelegatorUnbondingDelegation added in v0.10.0

func (s *Server) GetDelegatorUnbondingDelegation(r *http.Request) (resp any, err error)

GetDelegatorUnbondingDelegation queries unbonding info for given validator delegator pair.

func (*Server) GetDelegatorWithdrawAddressByDelegatorAddress

func (s *Server) GetDelegatorWithdrawAddressByDelegatorAddress(r *http.Request) (resp any, err error)

GetDelegatorWithdrawAddressByDelegatorAddress queries withdraw address of a delegator.

func (*Server) GetDenomOwners added in v0.10.0

func (s *Server) GetDenomOwners(req *getDenomOwnersRequest, r *http.Request) (resp any, err error)

GetDenomOwners queries for all account addresses that own a particular token denomination.

func (*Server) GetDenomOwnersByQuery added in v0.10.0

func (s *Server) GetDenomOwnersByQuery(req *getDenomOwnersByQueryRequest, r *http.Request) (resp any, err error)

GetDenomOwnersByQuery queries for all account addresses that own a particular token denomination.

func (*Server) GetDistributionParams added in v0.10.0

func (s *Server) GetDistributionParams(r *http.Request) (resp any, err error)

GetDistributionParams queries params of the distribution module.

func (*Server) GetDistributionValidatorByValidatorAddress

func (s *Server) GetDistributionValidatorByValidatorAddress(r *http.Request) (resp any, err error)

GetDistributionValidatorByValidatorAddress queries validator commission and self-delegation rewards for validator.

func (*Server) GetDistributionValidatorsByDelegatorAddress

func (s *Server) GetDistributionValidatorsByDelegatorAddress(r *http.Request) (resp any, err error)

GetDistributionValidatorsByDelegatorAddress queries the validators of a delegator.

func (*Server) GetEvmStakingParams added in v0.10.0

func (s *Server) GetEvmStakingParams(r *http.Request) (resp any, err error)

GetEvmStakingParams queries the parameters of evmstaking module.

func (*Server) GetHistoricalInfoByHeight added in v0.10.0

func (s *Server) GetHistoricalInfoByHeight(r *http.Request) (resp any, err error)

GetHistoricalInfoByHeight queries the historical info for given height.

func (*Server) GetMintParams added in v0.12.0

func (s *Server) GetMintParams(r *http.Request) (resp any, err error)

GetMintParams queries params of the mint module.

func (*Server) GetPeriodDelegationByDelegatorAddressAndID added in v0.12.0

func (s *Server) GetPeriodDelegationByDelegatorAddressAndID(r *http.Request) (resp any, err error)

GetPeriodDelegationByDelegatorAddressAndID queries period delegation info for given validator delegator pair and period delegation id.

func (*Server) GetPeriodDelegationsByDelegatorAddress added in v0.12.0

func (s *Server) GetPeriodDelegationsByDelegatorAddress(r *http.Request) (resp any, err error)

GetPeriodDelegationsByDelegatorAddress queries period delegations info for given validator delegator pair.

func (*Server) GetRedelegationsByDelegatorAddress

func (s *Server) GetRedelegationsByDelegatorAddress(req *getRedelegationsByDelegatorAddressRequest, r *http.Request) (resp any, err error)

GetRedelegationsByDelegatorAddress queries redelegations of given address.

func (*Server) GetSigningInfo added in v0.10.0

func (s *Server) GetSigningInfo(r *http.Request) (resp any, err error)

GetSigningInfo queries the signing info of given cons address.

func (*Server) GetSigningInfos added in v0.10.0

func (s *Server) GetSigningInfos(req *getSigningInfosRequest, r *http.Request) (resp any, err error)

GetSigningInfos queries signing info of all validators.

func (*Server) GetSlashingParams added in v0.10.0

func (s *Server) GetSlashingParams(r *http.Request) (resp any, err error)

GetSlashingParams queries the parameters of slashing module.

func (*Server) GetStakingParams added in v0.10.0

func (s *Server) GetStakingParams(r *http.Request) (resp any, err error)

GetStakingParams queries the staking parameters.

func (*Server) GetStakingPool

func (s *Server) GetStakingPool(r *http.Request) (resp any, err error)

GetStakingPool queries the staking pool info.

func (*Server) GetSupply added in v0.10.0

func (s *Server) GetSupply(req *getSupplyRequest, r *http.Request) (resp any, err error)

GetSupply queries the total supply of all coins.

func (*Server) GetSupplyByDenom

func (s *Server) GetSupplyByDenom(req *getSupplyByDenomRequest, r *http.Request) (resp any, err error)

GetSupplyByDenom queries the supply of a single coin.

func (*Server) GetUnbondingDelegationsByDelegatorAddress

func (s *Server) GetUnbondingDelegationsByDelegatorAddress(req *getUnbondingDelegationsByDelegatorAddressRequest, r *http.Request) (resp any, err error)

GetUnbondingDelegationsByDelegatorAddress queries all unbonding delegations of a given delegator address.

func (*Server) GetValidatorByValidatorAddress

func (s *Server) GetValidatorByValidatorAddress(r *http.Request) (resp any, err error)

GetValidatorByValidatorAddress queries validator info for given validator address.

func (*Server) GetValidatorCommissionByValidatorAddress

func (s *Server) GetValidatorCommissionByValidatorAddress(r *http.Request) (resp any, err error)

GetValidatorCommissionByValidatorAddress queries accumulated commission for a validator.

func (*Server) GetValidatorDelegationsByValidatorAddress

func (s *Server) GetValidatorDelegationsByValidatorAddress(req *getValidatorDelegationsByValidatorAddressRequest, r *http.Request) (resp any, err error)

GetValidatorDelegationsByValidatorAddress queries delegate info for given validator.

func (*Server) GetValidatorOutstandingRewardsByValidatorAddress

func (s *Server) GetValidatorOutstandingRewardsByValidatorAddress(r *http.Request) (resp any, err error)

GetValidatorOutstandingRewardsByValidatorAddress queries rewards of a validator address.

func (*Server) GetValidatorSlashesByValidatorAddress

func (s *Server) GetValidatorSlashesByValidatorAddress(req *getValidatorSlashesByValidatorAddressRequest, r *http.Request) (resp any, err error)

GetValidatorSlashesByValidatorAddress queries slash events of a validator.

func (*Server) GetValidatorUnbondingDelegations added in v0.10.0

func (s *Server) GetValidatorUnbondingDelegations(req *getValidatorUnbondingDelegationsRequest, r *http.Request) (resp any, err error)

GetValidatorUnbondingDelegations queries unbonding delegations of a validator.

func (*Server) GetValidators

func (s *Server) GetValidators(req *getValidatorsRequest, r *http.Request) (resp any, err error)

GetValidators queries all validators that match the given status.

func (*Server) GetValidatorsByDelegatorAddress

func (s *Server) GetValidatorsByDelegatorAddress(req *getValidatorsByDelegatorAddressRequest, r *http.Request) (resp any, err error)

GetValidatorsByDelegatorAddress queries all validators info for given delegator address.

func (*Server) GetValidatorsByDelegatorAddressValidatorAddress

func (s *Server) GetValidatorsByDelegatorAddressValidatorAddress(r *http.Request) (resp any, err error)

GetValidatorsByDelegatorAddressValidatorAddress queries validator info for given delegator validator pair.

func (*Server) ModuleVersions

func (s *Server) ModuleVersions(req *getModuleVersionsRequest, r *http.Request) (resp any, err error)

ModuleVersions queries the list of module versions from state.

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

type Store

type Store interface {
	CreateQueryContext(height int64, prove bool) (sdk.Context, error)
	GetEvmStakingKeeper() *evmstakingkeeper.Keeper
	GetStakingKeeper() *stakingkeeper.Keeper
	GetSlashingKeeper() slashingkeeper.Keeper
	GetAccountKeeper() authkeeper.AccountKeeper
	GetBankKeeper() bankkeeper.Keeper
	GetDistrKeeper() distrkeeper.Keeper
	GetUpgradeKeeper() *upgradekeeper.Keeper
	GetMintKeeper() mintkeeper.Keeper
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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