types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

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

	// common grpc
	CommonValidatorGrpcQueryPath   = "cosmos.staking.v1beta1.Query.Validators"
	CommonValidatorGrpcQueryOption = `{"status":"BOND_STATUS_BONDED"}`

	// injective paths
	// InjectiveOchestratorQueryPath = "/peggy/v1/query_delegate_keys_by_validator"
	// InjectiveEventNonceQueryPath  = "/peggy/v1/oracle/event/{orchestrator_address}"
	InjectiveOchestratorQueryPath = "injective.peggy.v1.Query.GetDelegateKeyByValidator"
	InjectiveEventNonceQueryPath  = "injective.peggy.v1.Query.LastEventByAddr"

	// gravity-bridge paths
	// GravityBridgeOrchestarorQueryPath = "/gravity/v1beta/query_delegate_keys_by_validator"
	// GravityBridgeEventNonceQueryPath  = "/gravity/v1beta/oracle/eventnonce/{orchestrator_address}"
	GravityBridgeOrchestarorQueryPath = "gravity.v1.Query.GetDelegateKeyByValidator"
	GravityBridgeEventNonceQueryPath  = "gravity.v1.Query.LastEventNonceByAddr"

	// sommelier paths
	SommelierOrchestratorQueryPath = "gravity.v1.Query.DelegateKeysByValidator"
	SommelierEventNonceQueryPath   = "gravity.v1.Query.LastSubmittedEthereumEvent"
)

Variables

View Source
var (
	SupportedChains = []string{"injective", "gravity-bridge", "sommelier"}
)

Functions

This section is empty.

Types

type CommonEventNonceStatus

type CommonEventNonceStatus struct {
	HeighestNonce float64 `json:"heighest_nonce"`
	Validators    []ValidatorStatus
}

common

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 GravityBridgeEventNonceQueryResponse

type GravityBridgeEventNonceQueryResponse struct {
	EventNonce string `json:"event_nonce"`
}

type GravityBridgeOrchestratorQueryResponse

type GravityBridgeOrchestratorQueryResponse struct {
	EthAddress          string `json:"eth_address"`
	OrchestratorAddress string `json:"orchestrator_address"`
}

gravity-bridge

type InjectiveEventNonceQueryResponse

type InjectiveEventNonceQueryResponse struct {
	LastClaimEvent struct {
		EthereumEventNonce  string `json:"ethereum_event_nonce"`
		EthereumEventHeight string `json:"ethereum_event_height"`
	} `json:"last_claim_event"`
}

type InjectiveOrchestratorQueryResponse

type InjectiveOrchestratorQueryResponse struct {
	EthAddress          string `json:"eth_address"`
	OrchestratorAddress string `json:"orchestrator_address"`
}

injective

type OnomyEventNonceQueryResponse

type OnomyEventNonceQueryResponse struct {
	EventNonce string `json:"event_nonce"`
}

type OnomyOrchestratorQueryResponse

type OnomyOrchestratorQueryResponse struct {
	EthAddress          string `json:"eth_address"`
	OrchestratorAddress string `json:"orchestrator_address"`
}

onomy

type SommelierOrchestratorQueryResponse

type SommelierOrchestratorQueryResponse struct {
	EthAddress          string `json:"eth_address"`
	OrchestratorAddress string `json:"orchestrator_address"`
}

sommelier

type UmeeEventNonceQueryResponse

type UmeeEventNonceQueryResponse struct {
	EventNonce string `json:"event_nonce"`
}

type UmeeOrchestratorQueryResponse

type UmeeOrchestratorQueryResponse struct {
	EthAddress          string `json:"eth_address"`
	OrchestratorAddress string `json:"orchestrator_address"`
}

umee

type ValidatorStatus

type ValidatorStatus struct {
	Moniker                  string  `json:"moniker"`
	ValidatorOperatorAddress string  `json:"validator_operator_address"`
	OrchestratorAddress      string  `json:"orchestrator_addreess"`
	EventNonce               float64 `json:"event_nonce"`
}

Jump to

Keyboard shortcuts

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