package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateValidatorFromNewMsg creates validator from NewValidator message.
MarshalValidator marshals the validator object.
NewComputed ..
NewDelegation creates a new delegation object.
NewEIP155Signer creates a EIP155Signer given chainID.
NewEmptyStats ..
NewStakingTransaction produces a new staking transaction record.
RLPDecodeStakeMsg ..
Sender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
SetDifference ..
Sign signs the stake using the given signer and private key.
UnmarshalValidator unmarshal binary into Validator object.
UpdateDescription returns a new Description object with d1 as the base and the fields that's not empty in d2 updated accordingly.
UpdateValidatorFromEditMsg updates validator from EditValidator message.
VerifyBLSKey checks if the public BLS key matches the BLS signature.
VerifyBLSKeys checks if the public BLS key at index i of pubKeys matches the BLS key signature at index i of pubKeysSigs.
# Constants
Define validator staking related const.
Define validator staking related const.
DirectiveCollectRewards ...
DirectiveCreateValidator ...
DirectiveDelegate ...
DirectiveEditValidator ...
DirectiveUndelegate ...
LockPeriodInEpoch is the number of epochs a undelegated token needs to be before it's released to the delegator's balance.
LockPeriodInEpochV2 there is no extended locking time besides the current epoch time.
MaxBLSPerValidator ..
Define validator staking related const.
Define validator staking related const.
Define validator staking related const.
Define validator staking related const.
Define validator staking related const.
Define validator staking related const.
Define validator staking related const.
# Variables
ErrExcessiveBLSKeys ..
ErrInvalidSelfDelegation ..
ErrInvalidSig is a bad signature.
ErrInvalidStakingKind given when caller gives bad staking message kind.
# Structs
AccumulatedOverLifetime ..
APREntry ..
CollectRewards - type for collecting token rewards.
No description provided by the author
No description provided by the author
Computed represents current epoch availability measures, mostly for RPC.
CreateValidator - type for creating a new validator.
CurrentEpochPerformance represents validator performance in the context of whatever current epoch is.
Delegate - type for delegating to a validator.
Delegation represents the bond with tokens held by an account.
DelegationIndex stored the index of a delegation in the validator's delegation list.
Description - some possible IRL connections.
EditValidator - type for edit existing validator.
EIP155Signer implements Signer using the EIP155 rules.
EpochSigningEntry ..
Migration Msg - type for switching delegation from one user to next.
StakingTransaction is a record captuing all staking operations.
Undelegate - type for removing delegation responsibility.
Undelegation represents one undelegation entry.
Validator - data fields for a validator.
ValidatorRPCEnhanced contains extra information for RPC consumer.
ValidatorSnapshot contains validator snapshot and the corresponding epoch.
ValidatorStats to record validator's performance and history records.
ValidatorWrapper contains validator, its delegation information.
VoteWithCurrentEpochEarning ..
# Interfaces
Signer encapsulates transaction signature handling.
StakeMsg defines the interface of Stake Message.
ValidatorSnapshotReader ..
# Type aliases
DelegationIndexes is a slice of DelegationIndex.
Delegations ..
Directive says what kind of payload follows.
StakeMsgFulfiller is signature of callback intended to produce the StakeMsg.
StakingTransactions is a stake slice type for basic sorting.
Undelegations ..