v039

package
v3.0.0-...-c5b601e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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 DataSource

type DataSource struct {
	Owner       string `json:"owner,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Filename    string `json:"filename,omitempty"`
}

DataSource represents data source information

type GenesisState

type GenesisState struct {
	Params        Params                  `json:"params"         yaml:"params"`
	DataSources   []DataSource            `json:"data_sources"   yaml:"data_sources"`
	OracleScripts []types.OracleScript    `json:"oracle_scripts" yaml:"oracle_scripts"`
	Reporters     []ReportersPerValidator `json:"reporters"      yaml:"reporters"`
}

type Params

type Params struct {
	MaxRawRequestCount      uint64 `json:"max_raw_request_count,omitempty"`
	MaxAskCount             uint64 `json:"max_ask_count,omitempty"`
	ExpirationBlockCount    uint64 `json:"expiration_block_count,omitempty"`
	BaseRequestGas          uint64 `json:"base_request_gas,omitempty"`
	PerValidatorRequestGas  uint64 `json:"per_validator_request_gas,omitempty"`
	SamplingTryCount        uint64 `json:"sampling_try_count,omitempty"`
	OracleRewardPercentage  uint64 `json:"oracle_reward_percentage,omitempty"`
	InactivePenaltyDuration uint64 `json:"inactive_penalty_duration,omitempty"`
}

Params represents parameters for oracle module

type ReportersPerValidator

type ReportersPerValidator struct {
	Validator string   `json:"validator,omitempty"`
	Reporters []string `json:"reporters,omitempty"`
}

Jump to

Keyboard shortcuts

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