types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ABCIEndpoint     = "http://localhost:26657/abci_info?"
	KaonEndpoint     = "https://api-eu-1.kaon.kyve.network/kyve/query/v1beta1/pool/"
	KorelliaEndpoint = "https://api.korellia.kyve.network/kyve/query/v1beta1/pool/"
	MainnetEndpoint  = "https://api-eu-1.kyve.network/kyve/query/v1beta1/pool/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChainId             string
	BinaryPath          string
	AddrBookPath        string
	PoolId              int
	Seeds               string
	StateRequests       bool
	Interval            int
	HeightDifferenceMax int
	HeightDifferenceMin int
}

type HeightResponse

type HeightResponse struct {
	Result struct {
		Response struct {
			LastBlockHeight string `json:"last_block_height"`
		} `json:"response"`
	} `json:"result"`
}

type PoolSettingsType

type PoolSettingsType struct {
	MaxBundleSize  int
	UploadInterval int
}

type ProcessType

type ProcessType struct {
	Id        int
	GhostMode bool
}

type SettingsResponse

type SettingsResponse struct {
	Pool struct {
		Data struct {
			CurrentKey     string `json:"current_key"`
			UploadInterval string `json:"upload_interval"`
			MaxBundleSize  string `json:"max_bundle_size"`
		} `json:"data"`
	} `json:"pool"`
}

type SettingsType

type SettingsType struct {
	MaxDifference int
	Seeds         string
	Interval      int
	KeepEvery     int
	KeepRecent    int
}

Jump to

Keyboard shortcuts

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