Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + const BatchSize + const Delta + const InflationRate + const MaximumStakingDuration + const MinimumStakeAmount + const MinimumStakingDuration + const NumberOfShares + var Codec codec.Codec + var DefaultSubnetID = ids.Empty + var ID = ids.NewID([32]byte{ ... }) + type APIAccount struct + Address ids.ShortID + Balance json.Uint64 + Nonce json.Uint64 + type APIBlockchain struct + ID ids.ID + Name string + SubnetID ids.ID + VMID ids.ID + type APIChain struct + FxIDs []ids.ID + GenesisData formatting.CB58 + Name string + SubnetID ids.ID + VMID ids.ID + type APIDefaultSubnetValidator struct + DelegationFeeRate json.Uint32 + Destination ids.ShortID + type APISubnet struct + ControlKeys []ids.ShortID + ID ids.ID + Threshold json.Uint16 + type APIValidator struct + EndTime json.Uint64 + ID ids.ShortID + StakeAmount *json.Uint64 + StartTime json.Uint64 + Weight *json.Uint64 + type Abort struct + func (a *Abort) Verify() error + type Account struct + Address ids.ShortID + Balance uint64 + Nonce uint64 + func (a Account) Add(amount uint64) (Account, error) + func (a Account) Bytes() []byte + func (a Account) Remove(amount, nonce uint64) (Account, error) + func (a Account) Verify() error + type AddDefaultSubnetDelegatorArgs struct + Destination ids.ShortID + PayerNonce json.Uint64 + type AddDefaultSubnetValidatorArgs struct + PayerNonce json.Uint64 + type AddNonDefaultSubnetValidatorArgs struct + PayerNonce json.Uint64 + SubnetID ids.ID + type AtomicBlock struct + Tx AtomicTx + func (ab *AtomicBlock) Accept() + func (ab *AtomicBlock) Verify() error + type AtomicTx interface + Accept func(database.Batch) error + ID func() ids.ID + InputUTXOs func() ids.Set + SemanticVerify func(database.Database) error + type Block interface + type BuildGenesisArgs struct + Accounts []APIAccount + Chains []APIChain + NetworkID json.Uint32 + Time json.Uint64 + Validators []APIDefaultSubnetValidator + type BuildGenesisReply struct + Bytes formatting.CB58 + type Commit struct + func (c *Commit) Verify() error + type CommonBlock struct + func (cb *CommonBlock) Parent() snowman.Block + func (cb *CommonBlock) Reject() + type CommonDecisionBlock struct + func (cdb *CommonDecisionBlock) Accept() + type CreateAccountArgs struct + Password string + PrivateKey string + Username string + type CreateAccountReply struct + Address ids.ShortID + type CreateBlockchainArgs struct + FxIDs []string + GenesisData formatting.CB58 + Name string + PayerNonce json.Uint64 + SubnetID ids.ID + VMID string + type CreateChainTx struct + ControlSigs [][crypto.SECP256K1RSigLen]byte + PayerAddress ids.ShortID + PayerSig [crypto.SECP256K1RSigLen]byte + func (tx *CreateChainTx) Bytes() []byte + func (tx *CreateChainTx) ID() ids.ID + func (tx *CreateChainTx) SemanticVerify(db database.Database) (func(), error) + func (tx *CreateChainTx) SyntacticVerify() error + type CreateSubnetArgs struct + PayerNonce json.Uint64 + type CreateSubnetTx struct + Sig [crypto.SECP256K1RSigLen]byte + func (tx *CreateSubnetTx) Bytes() []byte + func (tx *CreateSubnetTx) ID() ids.ID + func (tx *CreateSubnetTx) SemanticVerify(db database.Database) (func(), error) + func (tx *CreateSubnetTx) SyntacticVerify() error + type CreateSubnetTxList []*CreateSubnetTx + func (lst CreateSubnetTxList) Bytes() []byte + type CreateTxResponse struct + UnsignedTx formatting.CB58 + type DecisionTx interface + ID func() ids.ID + SemanticVerify func(database.Database) (onAccept func(), err error) + type DurationValidator struct + End uint64 + Start uint64 + func (v *DurationValidator) BoundedBy(startTime, endTime time.Time) bool + func (v *DurationValidator) Duration() time.Duration + func (v *DurationValidator) EndTime() time.Time + func (v *DurationValidator) StartTime() time.Time + type EventHeap struct + SortByStartTime bool + Txs []TimedTx + func (h *EventHeap) Add(tx TimedTx) + func (h *EventHeap) Bytes() []byte + func (h *EventHeap) Len() int + func (h *EventHeap) Less(i, j int) bool + func (h *EventHeap) Peek() TimedTx + func (h *EventHeap) Pop() interface{} + func (h *EventHeap) Push(x interface{}) + func (h *EventHeap) Remove() TimedTx + func (h *EventHeap) Swap(i, j int) + func (h *EventHeap) Timestamp() time.Time + type ExportAVAArgs struct + Amount json.Uint64 + PayerNonce json.Uint64 + To ids.ShortID + type ExportTx struct + Sig [crypto.SECP256K1RSigLen]byte + func (tx *ExportTx) Accept(batch database.Batch) error + func (tx *ExportTx) Bytes() []byte + func (tx *ExportTx) ID() ids.ID + func (tx *ExportTx) InputUTXOs() ids.Set + func (tx *ExportTx) Key() crypto.PublicKey + func (tx *ExportTx) SemanticVerify(db database.Database) error + func (tx *ExportTx) SyntacticVerify() error + type Factory struct + AVA ids.ID + AVM ids.ID + ChainManager chains.Manager + StakingEnabled bool + Validators validators.Manager + func (f *Factory) New() (interface{}, error) + type Genesis struct + Accounts []Account + Chains []*CreateChainTx + Timestamp uint64 + Validators *EventHeap + func (g *Genesis) Initialize() error + type GetAccountArgs struct + Address ids.ShortID + type GetAccountReply struct + Address ids.ShortID + Balance json.Uint64 + Nonce json.Uint64 + type GetBlockchainStatusArgs struct + BlockchainID string + type GetBlockchainStatusReply struct + Status Status + type GetBlockchainsResponse struct + Blockchains []APIBlockchain + type GetCurrentValidatorsArgs struct + SubnetID ids.ID + type GetCurrentValidatorsReply struct + Validators []APIValidator + type GetPendingValidatorsArgs struct + SubnetID ids.ID + type GetPendingValidatorsReply struct + Validators []APIValidator + type GetSubnetsArgs struct + IDs []ids.ID + type GetSubnetsResponse struct + Subnets []APISubnet + type ImportAVAArgs struct + Password string + PayerNonce json.Uint64 + To ids.ShortID + Username string + type ImportTx struct + Creds []verify.Verifiable + Sig [crypto.SECP256K1RSigLen]byte + func (tx *ImportTx) Accept(batch database.Batch) error + func (tx *ImportTx) Bytes() []byte + func (tx *ImportTx) ID() ids.ID + func (tx *ImportTx) InputUTXOs() ids.Set + func (tx *ImportTx) Key() crypto.PublicKey + func (tx *ImportTx) SemanticVerify(db database.Database) error + func (tx *ImportTx) SyntacticVerify() error + func (tx *ImportTx) UnsignedBytes() []byte + type IssueTxArgs struct + Tx formatting.CB58 + type IssueTxResponse struct + TxID ids.ID + type ListAccountsArgs struct + Password string + Username string + type ListAccountsReply struct + Accounts []APIAccount + type ProposalBlock struct + Tx ProposalTx + func (pb *ProposalBlock) Options() [2]snowman.Block + func (pb *ProposalBlock) Verify() error + type ProposalTx interface + InitiallyPrefersCommit func() bool + SemanticVerify func(database.Database) (onCommitDB *versiondb.Database, onAbortDB *versiondb.Database, ...) + type SampleValidatorsArgs struct + Size json.Uint16 + SubnetID ids.ID + type SampleValidatorsReply struct + Validators []ids.ShortID + type Service struct + func (service *Service) AddDefaultSubnetDelegator(_ *http.Request, args *AddDefaultSubnetDelegatorArgs, reply *CreateTxResponse) error + func (service *Service) AddDefaultSubnetValidator(_ *http.Request, args *AddDefaultSubnetValidatorArgs, reply *CreateTxResponse) error + func (service *Service) AddNonDefaultSubnetValidator(_ *http.Request, args *AddNonDefaultSubnetValidatorArgs, ...) error + func (service *Service) CreateAccount(_ *http.Request, args *CreateAccountArgs, reply *CreateAccountReply) error + func (service *Service) CreateBlockchain(_ *http.Request, args *CreateBlockchainArgs, response *CreateTxResponse) error + func (service *Service) CreateSubnet(_ *http.Request, args *CreateSubnetArgs, response *CreateTxResponse) error + func (service *Service) ExportAVA(_ *http.Request, args *ExportAVAArgs, response *CreateTxResponse) error + func (service *Service) GetAccount(_ *http.Request, args *GetAccountArgs, reply *GetAccountReply) error + func (service *Service) GetBlockchainStatus(_ *http.Request, args *GetBlockchainStatusArgs, ...) error + func (service *Service) GetBlockchains(_ *http.Request, args *struct{}, response *GetBlockchainsResponse) error + func (service *Service) GetCurrentValidators(_ *http.Request, args *GetCurrentValidatorsArgs, ...) error + func (service *Service) GetPendingValidators(_ *http.Request, args *GetPendingValidatorsArgs, ...) error + func (service *Service) GetSubnets(_ *http.Request, args *GetSubnetsArgs, response *GetSubnetsResponse) error + func (service *Service) ImportAVA(_ *http.Request, args *ImportAVAArgs, response *SignResponse) error + func (service *Service) IssueTx(_ *http.Request, args *IssueTxArgs, response *IssueTxResponse) error + func (service *Service) ListAccounts(_ *http.Request, args *ListAccountsArgs, reply *ListAccountsReply) error + func (service *Service) SampleValidators(_ *http.Request, args *SampleValidatorsArgs, reply *SampleValidatorsReply) error + func (service *Service) Sign(_ *http.Request, args *SignArgs, reply *SignResponse) error + func (service *Service) ValidatedBy(_ *http.Request, args *ValidatedByArgs, response *ValidatedByResponse) error + func (service *Service) Validates(_ *http.Request, args *ValidatesArgs, response *ValidatesResponse) error + type SignArgs struct + Password string + Signer ids.ShortID + Tx formatting.CB58 + Username string + type SignResponse struct + Tx formatting.CB58 + type StandardBlock struct + Txs []DecisionTx + func (sb *StandardBlock) Verify() error + type StaticService struct + func (*StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + type Status uint32 + const Created + const Preferred + const Unknown + const Validating + func (s *Status) UnmarshalJSON(b []byte) error + func (s Status) MarshalJSON() ([]byte, error) + func (s Status) String() string + func (s Status) Valid() error + type Subnet interface + ID func() ids.ID + Validators func() []validators.Validator + type SubnetValidator struct + Subnet ids.ID + func (v *SubnetValidator) SubnetID() ids.ID + type TimedTx interface + EndTime func() time.Time + ID func() ids.ID + StartTime func() time.Time + Vdr func() validators.Validator + type UnsignedAddDefaultSubnetDelegatorTx struct + Destination ids.ShortID + NetworkID uint32 + Nonce uint64 + type UnsignedAddDefaultSubnetValidatorTx struct + Destination ids.ShortID + NetworkID uint32 + Nonce uint64 + Shares uint32 + type UnsignedAddNonDefaultSubnetValidatorTx struct + NetworkID uint32 + Nonce uint64 + type UnsignedCreateChainTx struct + ChainName string + FxIDs []ids.ID + GenesisData []byte + NetworkID uint32 + Nonce uint64 + SubnetID ids.ID + VMID ids.ID + type UnsignedCreateSubnetTx struct + ControlKeys []ids.ShortID + NetworkID uint32 + Nonce uint64 + Threshold uint16 + type UnsignedExportTx struct + NetworkID uint32 + Nonce uint64 + Outs []*ava.TransferableOutput + type UnsignedImportTx struct + Account ids.ShortID + Ins []*ava.TransferableInput + NetworkID uint32 + Nonce uint64 + type VM struct + func (vm *VM) BuildBlock() (snowman.Block, error) + func (vm *VM) Clock() *timer.Clock + func (vm *VM) Codec() codec.Codec + func (vm *VM) CreateHandlers() map[string]*common.HTTPHandler + func (vm *VM) CreateStaticHandlers() map[string]*common.HTTPHandler + func (vm *VM) GetAtomicUTXOs(addrs ids.Set) ([]*ava.UTXO, error) + func (vm *VM) GetBlock(blkID ids.ID) (snowman.Block, error) + func (vm *VM) Initialize(ctx *snow.Context, db database.Database, genesisBytes []byte, ...) error + func (vm *VM) Logger() logging.Logger + func (vm *VM) ParseBlock(bytes []byte) (snowman.Block, error) + func (vm *VM) SetPreference(blkID ids.ID) + func (vm *VM) Shutdown() + type ValidatedByArgs struct + BlockchainID ids.ID + type ValidatedByResponse struct + SubnetID ids.ID + type ValidatesArgs struct + SubnetID ids.ID + type ValidatesResponse struct + BlockchainIDs []ids.ID + type Validator struct + NodeID ids.ShortID + Wght uint64 + func (v *Validator) ID() ids.ShortID + func (v *Validator) Vdr() validators.Validator + func (v *Validator) Weight() uint64