Documentation ¶
Index ¶
- Variables
- func ConvertToFraction(num interface{}) string
- func MigrateFlags(hdl func(ctx *cli.Context, cfg *define.Config) error) func(*cli.Context) error
- func ToMapF(val *big.Float) *big.Float
- func ToMapI(val *big.Int) *big.Float
- type Account
- func (a *Account) CreateAccount(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetAccountMetadataURL(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetAccountName(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetAccountNonvotingLockedGold(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetAccountTotalLockedGold(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetActiveVotesForValidatorByAccount(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetPendingVotesForValidatorByAccount(_ *cli.Context, cfg *define.Config) error
- func (a *Account) GetValidatorsVotedForByAccount(_ *cli.Context, cfg *define.Config) error
- func (a *Account) SetAccountMetadataURL(_ *cli.Context, cfg *define.Config) error
- func (a *Account) SetAccountName(_ *cli.Context, cfg *define.Config) error
- func (a *Account) SignerToAccount(_ *cli.Context, cfg *define.Config) error
- type Proof
- type Tool
- type Validator
- func (v *Validator) AuthorizeValidatorSigner(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) AuthorizeValidatorSignerBySignature(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) DeregisterValidator(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) GenerateSignerProof(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) LockedMAP(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) MakeBLSProofOfPossessionFromsigner(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) MakeECDSASignatureFromSigner(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) QuicklyRegisterValidator(ctx *cli.Context, cfg *define.Config) error
- func (v *Validator) RegisterValidator(ctx *cli.Context, cfg *define.Config) error
- func (v *Validator) RegisterValidatorByProof(_ *cli.Context, cfg *define.Config) error
- func (v *Validator) RevertRegisterValidator(_ *cli.Context, cfg *define.Config) error
- type Voter
- func (v *Voter) Activate(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetActiveVotesForValidator(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetIndex(target common.Address, list []common.Address) (*big.Int, error)
- func (v *Voter) GetPendingInfoForValidator(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetPendingVotersForValidator(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetRegisteredValidatorSigners(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetRewardInfo(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetTotalVotesForEligibleValidators(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) GetValidator(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) LockedMAP(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) QuicklyVote(ctx *cli.Context, cfg *define.Config) error
- func (v *Voter) RelockMAP(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) RevokeActive(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) RevokePending(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) UnlockedMAP(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) Vote(_ *cli.Context, cfg *define.Config) error
- func (v *Voter) Withdraw(_ *cli.Context, cfg *define.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountSet []cli.Command ValidatorSet []cli.Command VoterSet []cli.Command ToolSet []cli.Command )
Functions ¶
func ConvertToFraction ¶
func ConvertToFraction(num interface{}) string
func MigrateFlags ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount() *Account
func (*Account) CreateAccount ¶
func (*Account) GetAccountMetadataURL ¶
func (*Account) GetAccountName ¶
func (*Account) GetAccountNonvotingLockedGold ¶
func (*Account) GetAccountTotalLockedGold ¶
func (*Account) GetActiveVotesForValidatorByAccount ¶
func (*Account) GetPendingVotesForValidatorByAccount ¶
func (*Account) GetValidatorsVotedForByAccount ¶
func (*Account) SetAccountMetadataURL ¶
func (*Account) SetAccountName ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator() *Validator
func (*Validator) AuthorizeValidatorSigner ¶
AuthorizeValidatorSigner note:account function before become to be a validator signer sign account need signer private
func (*Validator) AuthorizeValidatorSignerBySignature ¶
func (*Validator) DeregisterValidator ¶
func (*Validator) GenerateSignerProof ¶
func (*Validator) MakeBLSProofOfPossessionFromsigner ¶
func (*Validator) MakeECDSASignatureFromSigner ¶
func (*Validator) QuicklyRegisterValidator ¶
func (*Validator) RegisterValidator ¶
func (*Validator) RegisterValidatorByProof ¶
type Voter ¶
type Voter struct {
// contains filtered or unexported fields
}
func (*Voter) GetActiveVotesForValidator ¶
func (*Voter) GetPendingInfoForValidator ¶
func (*Voter) GetPendingVotersForValidator ¶
func (*Voter) GetRegisteredValidatorSigners ¶
func (*Voter) GetRewardInfo ¶
func (*Voter) GetTotalVotesForEligibleValidators ¶
func (*Voter) RevokePending ¶
Click to show internal directories.
Click to hide internal directories.