Documentation ¶
Index ¶
Constants ¶
View Source
const ( Environment = "environment" EnvironmentDevelopment = "development" EnvironmentProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveScores ¶ added in v0.6.20
type Distributor ¶ added in v0.6.1
type Distributor struct { // The number of demotions that triggers a slashing. MaxDemotionCount int `yaml:"max_demotion_count" default:"4"` // The number of nodes required to meet the criteria during distribution. QualifiedNodeCount int `yaml:"qualified_node_count" default:"3"` // The number of verification activities selected during the second verification. VerificationCount int `yaml:"verification_count" default:"3"` ToleranceSeconds int `yaml:"tolerance_seconds" default:"1200"` }
type File ¶
type File struct { Environment string `yaml:"environment" validate:"required" default:"development"` Database *Database `yaml:"database"` Redis *Redis `yaml:"redis"` RSS3Chain *RSS3Chain `yaml:"rss3_chain"` Settler *Settler `yaml:"settler"` Distributor *Distributor `yaml:"distributor"` Rewards *Rewards `yaml:"rewards"` ActiveScores *ActiveScores `yaml:"active_scores"` GeoIP *GeoIP `yaml:"geo_ip"` RPC *RPC `yaml:"rpc"` Telemetry *Telemetry `json:"telemetry"` }
type RPC ¶
type RPC struct {
RPCNetwork *RPCNetwork `yaml:"network"`
}
type RPCEndpoint ¶
type RPCNetwork ¶
type RPCNetwork struct { Ethereum *RPCEndpoint `yaml:"ethereum"` Crossbell *RPCEndpoint `yaml:"crossbell"` Polygon *RPCEndpoint `yaml:"polygon"` Farcaster *RPCEndpoint `yaml:"farcaster"` }
type Redis ¶
type Redis struct {
URI string `mapstructure:"uri" validate:"required" default:"redis://localhost:6379/0"`
}
type Rewards ¶ added in v0.6.18
type Rewards struct {
OperationRewards float64 `yaml:"operation_rewards" validate:"required"`
}
type Settler ¶
type Settler struct { PrivateKey string `yaml:"private_key"` WalletAddress string `yaml:"wallet_address"` SignerEndpoint string `yaml:"signer_endpoint"` // EpochIntervalInHours EpochIntervalInHours int `yaml:"epoch_interval_in_hours" default:"18"` GasLimit uint64 `yaml:"gas_limit" default:"2500000"` // BatchSize is the number of Nodes to process in each batch. // This is to prevent the contract call from running out of gas. BatchSize int `yaml:"batch_size" default:"200"` ProductionStartEpoch int `yaml:"production_start_epoch" default:"227"` GracePeriodEpochs int `yaml:"grace_period_epochs" default:"28"` }
Click to show internal directories.
Click to hide internal directories.