validator

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrimaryNetworkValidatorParams

type PrimaryNetworkValidatorParams struct {
	// NodeID is the unique identifier of the node to be added as a validator on the Primary Network.
	NodeID ids.NodeID

	// Duration is how long the node will be staking the Primary Network
	// Duration has to be greater than or equal to minimum duration for the specified network
	// (Testnet / Mainnet)
	Duration time.Duration

	// StakeAmount is the amount of Odyssey tokens (DIONE) to stake in this validator, which is
	// denominated in nDIONE. StakeAmount has to be greater than or equal to minimum stake required
	// for the specified network
	StakeAmount uint64

	// DelegationFee is the percent fee this validator will charge when others delegate stake to it
	// When DelegationFee is not set, the minimum delegation fee for the specified network will be set
	// For more information on delegation fee, please head to https://docs.dione.network/nodes/validate/node-validator#delegation-fee-rate
	DelegationFee uint32
}

type SubnetValidatorParams

type SubnetValidatorParams struct {
	// NodeID is the unique identifier of the node to be added as a validator on the specified Subnet.
	NodeID ids.NodeID
	// Duration is how long the node will be staking the Subnet
	// Duration has to be less than or equal to the duration that the node will be validating the Primary
	// Network
	Duration time.Duration
	// Weight is the validator's weight when sampling validators.
	// Weight for subnet validators is set to 20 by default
	Weight uint64
}

Jump to

Keyboard shortcuts

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