Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NetworkInfo = &networkInfo
Functions ¶
func DefaultProvider ¶ added in v1.2.0
func DefaultProvider(cfg *configs.MainConfiguration) api.IChainAPI
Types ¶
type NetworkParams ¶ added in v1.2.0
type NetworkParams struct {
StartTime *big.Int `json:"start_time"`
StartBlock *big.Int `json:"start_block"`
CurrentCycle *big.Int `json:"current_cycle"`
CurrentBlock *big.Int `json:"current_block"`
ActiveValidatorLicenseCount uint64 `json:"active_validator_license_count"`
ActiveSentryLicenseCount uint64 `json:"active_sentry_license_count"`
Validators map[string]string `json:"-"`
Sentries map[string]uint64 `json:"-"`
Config *configs.MainConfiguration `json:"-"`
Synced bool `json:"synced"`
}
func (*NetworkParams) IsValidator ¶ added in v1.2.0
func (n *NetworkParams) IsValidator(key string) (bool, error)
func (*NetworkParams) IsValidatorOwner ¶ added in v1.2.0
func (n *NetworkParams) IsValidatorOwner(address string) (bool, error)
Click to show internal directories.
Click to hide internal directories.