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
StartBlock *big.Int
CurrentCycle *big.Int
CurrentBlock *big.Int
ActiveValidatorLicenseCount uint64
ActiveSentryLicenseCount uint64
Validators map[string]string
Sentries map[string]uint64
Config *configs.MainConfiguration
Synced bool
}
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.