types

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// common
	CommonValidatorQueryPath = "/cosmos/staking/v1beta1/validators?status=BOND_STATUS_BONDED&pagination.count_total=true&pagination.limit=500"

	// band paths
	BandYodaQueryPath = "/oracle/v1/validators/{validator_address}"
)

Variables

View Source
var (
	SupportedChains = []string{"band"}
)

Functions

This section is empty.

Types

type BandYodaResponse

type BandYodaResponse struct {
	Status struct {
		IsActive bool      `json:"is_active"`
		Since    time.Time `json:"since"`
	} `json:"status"`
}

band

type CommonValidatorsQueryResponse

type CommonValidatorsQueryResponse struct {
	Validators []struct {
		OperatorAddress string `json:"operator_address"`
		Description     struct {
			Moniker string `json:"moniker"`
		} `json:"description"`
	} `json:"validators"`
	Pagination struct {
		NextKey interface{} `json:"-"`
		Total   string      `json:"-"`
	} `json:"-"`
}

type CommonYodaStatus

type CommonYodaStatus struct {
	Validators []ValidatorStatus
}

common

type ValidatorStatus

type ValidatorStatus struct {
	Moniker                  string  `json:"moniker"`
	ValidatorOperatorAddress string  `json:"validator_operator_address"`
	IsActive                 float64 `json:"is_active"`
}

Jump to

Keyboard shortcuts

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