types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 0 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"

	// axelar
	AxelarEvmChainsQueryPath        = "axelar/evm/v1beta1/chains?status=1"
	AxelarChainMaintainersQueryPath = "/axelar/nexus/v1beta1/chain_maintainers/{chain}"
)

Variables

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

Functions

This section is empty.

Types

type AxelarChainMaintainersResponse

type AxelarChainMaintainersResponse struct {
	Maintainers []string `json:"maintainers"`
}

type AxelarEvmChainsResponse

type AxelarEvmChainsResponse struct {
	Chains []string `json:"chains"`
}

type CommonAxelarNexus

type CommonAxelarNexus struct {
	ActiveEVMChains []string
	Validators      []ValidatorStatus
}

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 ValidatorStatus

type ValidatorStatus struct {
	Moniker                  string  `json:"moniker"`
	ValidatorOperatorAddress string  `json:"validator_operator_address"`
	Status                   float64 `json:"status"`
	EVMChainName             string  `json:"evm_chain_name"`
}

Jump to

Keyboard shortcuts

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