types

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alliance

type Alliance struct {
	Denom string `json:"denom"`
}

type AllianceQuery

type AllianceQuery struct {
	Alliance          *Alliance          `json:"alliance"`
	Delegation        *Delegation        `json:"delegation"`
	DelegationRewards *DelegationRewards `json:"delegation_rewards"`
}

type AllianceResponse

type AllianceResponse struct {
	Denom                string            `json:"denom"`
	RewardWeight         string            `json:"reward_weight"`
	TakeRate             string            `json:"take_rate"`
	TotalTokens          string            `json:"total_tokens"`
	TotalValidatorShares string            `json:"total_validator_shares"`
	RewardStartTime      uint64            `json:"reward_start_time"`
	RewardChangeRate     string            `json:"reward_change_rate"`
	LastRewardChangeTime uint64            `json:"last_reward_change_time"`
	RewardWeightRange    RewardWeightRange `json:"reward_weight_range"`
	IsInitialized        bool              `json:"is_initialized"`
}

type Coin

type Coin struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Delegation

type Delegation struct {
	Denom     string `json:"denom"`
	Delegator string `json:"delegator"`
	Validator string `json:"validator"`
}

type DelegationResponse

type DelegationResponse struct {
	Delegator string `json:"delegator"`
	Validator string `json:"validator"`
	Denom     string `json:"denom"`
	Amount    Coin   `json:"amount"`
}

type DelegationRewards

type DelegationRewards struct {
	Denom     string `json:"denom"`
	Delegator string `json:"delegator"`
	Validator string `json:"validator"`
}

type DelegationRewardsResponse

type DelegationRewardsResponse struct {
	Rewards []Coin `json:"rewards"`
}

type RewardWeightRange

type RewardWeightRange struct {
	Min string `json:"min"`
	Max string `json:"max"`
}

Jump to

Keyboard shortcuts

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