types

package
v0.0.0-...-f03262a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllianceDelegations

type AllianceDelegations struct {
	AllianceDelegations []types.Delegation `json:"delegations"`
}

type AllianceRedelegate

type AllianceRedelegate struct {
	Redelegations []types.Redelegation `json:"redelegations"`
}

type MsgAllianceDelegations

type MsgAllianceDelegations struct {
	AllianceDelegations AllianceDelegations `json:"alliance_delegate"`
}

func NewMsgAllianceDelegations

func NewMsgAllianceDelegations(dedelegations []types.Delegation) MsgAllianceDelegations

type MsgAllianceRedelegate

type MsgAllianceRedelegate struct {
	AllianceRedelegate AllianceRedelegate `json:"alliance_redelegate"`
}

func NewMsgAllianceRedelegate

func NewMsgAllianceRedelegate(redelegations []types.Redelegation) MsgAllianceRedelegate

type MsgRebalanceEmissions

type MsgRebalanceEmissions struct {
	RebalanceEmissions struct{} `json:"rebalance_emissions"`
}

type MsgUpdateChainsInfo

type MsgUpdateChainsInfo struct {
	UpdateChainsInfo UpdateChainsInfo `json:"update_chains_info"`
}

func NewMsgUpdateChainsInfo

func NewMsgUpdateChainsInfo(data types.AllianceProtocolRes) MsgUpdateChainsInfo

type MsgUpdateRewards

type MsgUpdateRewards struct {
	UpdateRewards struct{} `json:"update_rewards"`
}

type PriceByPair

type PriceByPair struct {
	Base      string // Unified coin name, e.g., XBT is converted to BTC
	Quote     string // Unified coin name, e.g., XBT is converted to BTC
	Price     float64
	Timestamp uint64
}

PriceByPair represents the USD price of a coin at a timestamp.

type PriceOfCoin

type PriceOfCoin struct {
	Denom     string  `json:"denom"` // Unified denom name, e.g., XBT is converted to BTC
	Price     float64 `json:"price"`
	Timestamp uint64  `json:"-"`
}

PriceOfCoin represents the USD price of a coin at a timestamp.

type PriceResponse

type PriceResponse struct {
	Timestamp string      `json:"created_at"` // RFC3339
	Price     PriceOfCoin `json:"prices,omitempty"`
}

PriceResponse represents the JSON response for a specific price

type PricesResponse

type PricesResponse struct {
	Timestamp string        `json:"created_at"` // RFC3339
	Prices    []PriceOfCoin `json:"prices,omitempty"`
}

PricesResponse represents the JSON response of all prices.

type UpdateChainsInfo

type UpdateChainsInfo struct {
	ChainsInfo types.AllianceProtocolRes `json:"chains_info"`
}

Jump to

Keyboard shortcuts

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