Versions in this module Expand all Collapse all v1 v1.4.5 Jul 11, 2021 Changes in this version + const BatchSize + const MaxSubMinConsumptionRate + const MaxValidatorWeightFactor + const MinConsumptionRate + const PercentDenominator + const SupplyCap + var Codec codec.Manager + var GenesisCodec codec.Manager + var ID = ids.ID + func CanDelegate(current, pending []*UnsignedAddDelegatorTx, new *UnsignedAddDelegatorTx, ...) (bool, error) + func MaxStakeAmount(current, pending []*UnsignedAddDelegatorTx, startTime time.Time, ...) (uint64, error) + type APIBlockchain struct + ID ids.ID + Name string + SubnetID ids.ID + VMID ids.ID + type APIChain struct + FxIDs []ids.ID + GenesisData string + Name string + SubnetID ids.ID + VMID ids.ID + type APIOwner struct + Addresses []string + Locktime json.Uint64 + Threshold json.Uint32 + type APIPrimaryDelegator struct + PotentialReward *json.Uint64 + RewardOwner *APIOwner + type APIPrimaryValidator struct + Connected *bool + DelegationFee json.Float32 + Delegators []APIPrimaryDelegator + ExactDelegationFee *json.Uint32 + PotentialReward *json.Uint64 + RewardOwner *APIOwner + Staked []APIUTXO + Uptime *json.Float32 + type APIStaker struct + EndTime json.Uint64 + NodeID string + StakeAmount *json.Uint64 + StartTime json.Uint64 + TxID ids.ID + Weight *json.Uint64 + type APISubnet struct + ControlKeys []string + ID ids.ID + Threshold json.Uint32 + type APIUTXO struct + Address string + Amount json.Uint64 + Locktime json.Uint64 + Message string + type AbortBlock struct + func (a *AbortBlock) Verify() error + type AddDelegatorArgs struct + RewardAddress string + type AddSubnetValidatorArgs struct + SubnetID string + type AddValidatorArgs struct + DelegationFeeRate json.Float32 + RewardAddress string + type AtomicBlock struct + Tx Tx + func (ab *AtomicBlock) Accept() error + func (ab *AtomicBlock) Reject() error + func (ab *AtomicBlock) Verify() error + type BaseTx struct + func (tx *BaseTx) Verify(ctx *snow.Context, c codec.Manager) error + type Block interface + type BuildGenesisArgs struct + AvaxAssetID ids.ID + Chains []APIChain + Encoding formatting.Encoding + InitialSupply json.Uint64 + Message string + NetworkID json.Uint32 + Time json.Uint64 + UTXOs []APIUTXO + Validators []APIPrimaryValidator + type BuildGenesisReply struct + Bytes string + Encoding formatting.Encoding + type Client struct + func NewClient(uri string, requestTimeout time.Duration) *Client + func (c *Client) AddDelegator(user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + func (c *Client) AddSubnetValidator(user api.UserPass, from []string, changeAddr string, subnetID, nodeID string, ...) (ids.ID, error) + func (c *Client) AddValidator(user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + func (c *Client) CreateAddress(user api.UserPass) (string, error) + func (c *Client) CreateBlockchain(user api.UserPass, from []string, changeAddr string, subnetID ids.ID, ...) (ids.ID, error) + func (c *Client) CreateSubnet(user api.UserPass, from []string, changeAddr string, controlKeys []string, ...) (ids.ID, error) + func (c *Client) ExportAVAX(user api.UserPass, from []string, changeAddr string, to string, amount uint64) (ids.ID, error) + func (c *Client) ExportKey(user api.UserPass, address string) (string, error) + func (c *Client) GetAtomicUTXOs(addrs []string, sourceChain string, limit uint32, ...) ([][]byte, api.Index, error) + func (c *Client) GetBalance(address string) (*GetBalanceResponse, error) + func (c *Client) GetBlockchainStatus(blockchainID string) (Status, error) + func (c *Client) GetBlockchains() ([]APIBlockchain, error) + func (c *Client) GetCurrentSupply() (uint64, error) + func (c *Client) GetCurrentValidators(subnetID ids.ID) ([]interface{}, error) + func (c *Client) GetHeight() (uint64, error) + func (c *Client) GetMaxStakeAmount(subnetID ids.ID, nodeID string, startTime, endTime uint64) (uint64, error) + func (c *Client) GetMinStake() (uint64, uint64, error) + func (c *Client) GetPendingValidators(subnetID ids.ID) ([]interface{}, []interface{}, error) + func (c *Client) GetRewardUTXOs(args *api.GetTxArgs) ([][]byte, error) + func (c *Client) GetStake(addrs []string) (uint64, error) + func (c *Client) GetStakingAssetID(subnetID ids.ID) (ids.ID, error) + func (c *Client) GetSubnets(ids []ids.ID) ([]APISubnet, error) + func (c *Client) GetTotalStake() (uint64, error) + func (c *Client) GetTx(txID ids.ID) ([]byte, error) + func (c *Client) GetTxStatus(txID ids.ID, includeReason bool) (*GetTxStatusResponse, error) + func (c *Client) GetUTXOs(addrs []string, limit uint32, startAddress, startUTXOID string) ([][]byte, api.Index, error) + func (c *Client) ImportAVAX(user api.UserPass, from []string, changeAddr, to, sourceChain string) (ids.ID, error) + func (c *Client) ImportKey(user api.UserPass, privateKey string) (string, error) + func (c *Client) IssueTx(txBytes []byte) (ids.ID, error) + func (c *Client) ListAddresses(user api.UserPass) ([]string, error) + func (c *Client) SampleValidators(subnetID ids.ID, sampleSize uint16) ([]string, error) + func (c *Client) ValidatedBy(blockchainID ids.ID) (ids.ID, error) + func (c *Client) Validates(subnetID ids.ID) ([]ids.ID, error) + type CommitBlock struct + func (c *CommitBlock) Verify() error + type CommonBlock struct + Hght uint64 + PrntID ids.ID + func (b *CommonBlock) Accept() error + func (b *CommonBlock) Bytes() []byte + func (b *CommonBlock) Height() uint64 + func (b *CommonBlock) ID() ids.ID + func (b *CommonBlock) Parent() snowman.Block + func (b *CommonBlock) ParentID() ids.ID + func (b *CommonBlock) Reject() error + func (b *CommonBlock) Status() choices.Status + func (b *CommonBlock) Verify() error + type CommonDecisionBlock struct + func (cdb *CommonDecisionBlock) Reject() error + type CreateBlockchainArgs struct + Encoding formatting.Encoding + FxIDs []string + GenesisData string + Name string + SubnetID ids.ID + VMID string + type CreateSubnetArgs struct + type DoubleDecisionBlock struct + func (ddb *DoubleDecisionBlock) Accept() error + type EventHeap struct + SortByStartTime bool + Txs []*Tx + func (h *EventHeap) Add(tx *Tx) + func (h *EventHeap) Bytes() ([]byte, error) + func (h *EventHeap) Len() int + func (h *EventHeap) Less(i, j int) bool + func (h *EventHeap) Peek() *Tx + func (h *EventHeap) Pop() interface{} + func (h *EventHeap) Push(x interface{}) + func (h *EventHeap) Remove() *Tx + func (h *EventHeap) Swap(i, j int) + func (h *EventHeap) Timestamp() time.Time + type ExportAVAXArgs struct + Amount json.Uint64 + To string + type ExportKeyArgs struct + Address string + type ExportKeyReply struct + PrivateKey string + type Factory struct + AddStakerTxFee uint64 + Chains chains.Manager + CreationTxFee uint64 + MaxStakeDuration time.Duration + MaxValidatorStake uint64 + MinDelegationFee uint32 + MinDelegatorStake uint64 + MinStakeDuration time.Duration + MinValidatorStake uint64 + StakeMintingPeriod time.Duration + StakingEnabled bool + TxFee uint64 + UptimePercentage float64 + Validators validators.Manager + WhitelistedSubnets ids.Set + func (f *Factory) New(*snow.Context) (interface{}, error) + type Fx interface + Bootstrapped func() error + Bootstrapping func() error + CreateOutput func(amount uint64, controlGroup interface{}) (interface{}, error) + Initialize func(vm interface{}) error + VerifyPermission func(tx, in, cred, controlGroup interface{}) error + VerifyTransfer func(tx, in, cred, utxo interface{}) error + type Genesis struct + Chains []*Tx + InitialSupply uint64 + Message string + Timestamp uint64 + UTXOs []*GenesisUTXO + Validators []*Tx + func (g *Genesis) Initialize() error + type GenesisUTXO struct + Message []byte + type GetBalanceResponse struct + Balance json.Uint64 + LockedNotStakeable json.Uint64 + LockedStakeable json.Uint64 + UTXOIDs []*avax.UTXOID + Unlocked json.Uint64 + type GetBlockchainStatusArgs struct + BlockchainID string + type GetBlockchainStatusReply struct + Status Status + type GetBlockchainsResponse struct + Blockchains []APIBlockchain + type GetCurrentSupplyReply struct + Supply json.Uint64 + type GetCurrentValidatorsArgs struct + NodeIDs []string + SubnetID ids.ID + type GetCurrentValidatorsReply struct + Validators []interface{} + type GetHeightResponse struct + Height json.Uint64 + type GetMaxStakeAmountArgs struct + EndTime json.Uint64 + NodeID string + StartTime json.Uint64 + SubnetID ids.ID + type GetMaxStakeAmountReply struct + Amount json.Uint64 + type GetMinStakeReply struct + MinDelegatorStake json.Uint64 + MinValidatorStake json.Uint64 + type GetPendingValidatorsArgs struct + NodeIDs []string + SubnetID ids.ID + type GetPendingValidatorsReply struct + Delegators []interface{} + Validators []interface{} + type GetRewardUTXOsReply struct + Encoding formatting.Encoding + NumFetched json.Uint64 + UTXOs []string + type GetStakeArgs struct + Encoding formatting.Encoding + type GetStakeReply struct + Encoding formatting.Encoding + Outputs []string + Staked json.Uint64 + type GetStakingAssetIDArgs struct + SubnetID ids.ID + type GetStakingAssetIDResponse struct + AssetID ids.ID + type GetSubnetsArgs struct + IDs []ids.ID + type GetSubnetsResponse struct + Subnets []APISubnet + type GetTotalStakeReply struct + Stake json.Uint64 + type GetTxStatusArgs struct + IncludeReason bool + TxID ids.ID + type GetTxStatusResponse struct + Reason string + Status Status + type GetUTXOsArgs struct + Addresses []string + Encoding formatting.Encoding + Limit json.Uint32 + SourceChain string + StartIndex Index + type GetUTXOsResponse struct + Encoding formatting.Encoding + EndIndex Index + NumFetched json.Uint64 + UTXOs []string + type ImportAVAXArgs struct + SourceChain string + To string + type ImportKeyArgs struct + PrivateKey string + type Index struct + Address string + UTXO string + type InternalState interface + Abort func() + AddBlock func(block Block) + AddCurrentStaker func(tx *Tx, potentialReward uint64) + AddPendingStaker func(tx *Tx) + Close func() error + Commit func() error + CommitBatch func() (database.Batch, error) + DeleteCurrentStaker func(tx *Tx) + DeletePendingStaker func(tx *Tx) + GetBlock func(blockID ids.ID) (Block, error) + GetLastAccepted func() ids.ID + IsMigrated func() (bool, error) + SetCurrentStakerChainState func(currentStakerChainState) + SetLastAccepted func(ids.ID) + SetMigrated func() error + SetPendingStakerChainState func(pendingStakerChainState) + UTXOIDs func(addr []byte, start ids.ID, limit int) ([]ids.ID, error) + func NewInternalState(vm *VM, db database.Database, genesis []byte) (InternalState, error) + func NewMeteredInternalState(vm *VM, db database.Database, genesis []byte, namespace string, ...) (InternalState, error) + type Mempool struct + func (m *Mempool) BuildBlock() (snowman.Block, error) + func (m *Mempool) Initialize(vm *VM) + func (m *Mempool) IssueTx(tx *Tx) error + func (m *Mempool) ResetTimer() + func (m *Mempool) Shutdown() + type MutableState interface + AddChain func(createChainTx *Tx) + AddRewardUTXO func(txID ids.ID, utxo *avax.UTXO) + AddSubnet func(createSubnetTx *Tx) + AddTx func(tx *Tx, status Status) + CurrentStakerChainState func() currentStakerChainState + GetChains func(subnetID ids.ID) ([]*Tx, error) + GetCurrentSupply func() uint64 + GetRewardUTXOs func(txID ids.ID) ([]*avax.UTXO, error) + GetSubnets func() ([]*Tx, error) + GetTimestamp func() time.Time + GetTx func(txID ids.ID) (*Tx, Status, error) + PendingStakerChainState func() pendingStakerChainState + SetCurrentSupply func(uint64) + SetTimestamp func(time.Time) + type Owned interface + Owners func() interface{} + type ProposalBlock struct + Tx Tx + func (pb *ProposalBlock) Accept() error + func (pb *ProposalBlock) Options() ([2]snowman.Block, error) + func (pb *ProposalBlock) Reject() error + func (pb *ProposalBlock) Verify() error + type SampleValidatorsArgs struct + Size json.Uint16 + SubnetID ids.ID + type SampleValidatorsReply struct + Validators []string + type Service struct + func (service *Service) AddDelegator(_ *http.Request, args *AddDelegatorArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) AddSubnetValidator(_ *http.Request, args *AddSubnetValidatorArgs, ...) error + func (service *Service) AddValidator(_ *http.Request, args *AddValidatorArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) CreateAddress(_ *http.Request, args *api.UserPass, response *api.JSONAddress) error + func (service *Service) CreateBlockchain(_ *http.Request, args *CreateBlockchainArgs, response *api.JSONTxIDChangeAddr) error + func (service *Service) CreateSubnet(_ *http.Request, args *CreateSubnetArgs, response *api.JSONTxIDChangeAddr) error + func (service *Service) ExportAVAX(_ *http.Request, args *ExportAVAXArgs, response *api.JSONTxIDChangeAddr) error + func (service *Service) ExportKey(r *http.Request, args *ExportKeyArgs, reply *ExportKeyReply) error + func (service *Service) GetBalance(_ *http.Request, args *api.JSONAddress, response *GetBalanceResponse) error + func (service *Service) GetBlockchainStatus(_ *http.Request, args *GetBlockchainStatusArgs, ...) error + func (service *Service) GetBlockchains(_ *http.Request, args *struct{}, response *GetBlockchainsResponse) error + func (service *Service) GetCurrentSupply(_ *http.Request, _ *struct{}, reply *GetCurrentSupplyReply) error + func (service *Service) GetCurrentValidators(_ *http.Request, args *GetCurrentValidatorsArgs, ...) error + func (service *Service) GetHeight(r *http.Request, args *struct{}, response *GetHeightResponse) error + func (service *Service) GetMaxStakeAmount(_ *http.Request, args *GetMaxStakeAmountArgs, reply *GetMaxStakeAmountReply) error + func (service *Service) GetMinStake(_ *http.Request, _ *struct{}, reply *GetMinStakeReply) error + func (service *Service) GetPendingValidators(_ *http.Request, args *GetPendingValidatorsArgs, ...) error + func (service *Service) GetRewardUTXOs(_ *http.Request, args *api.GetTxArgs, reply *GetRewardUTXOsReply) error + func (service *Service) GetStake(_ *http.Request, args *GetStakeArgs, response *GetStakeReply) error + func (service *Service) GetStakingAssetID(_ *http.Request, args *GetStakingAssetIDArgs, ...) error + func (service *Service) GetSubnets(_ *http.Request, args *GetSubnetsArgs, response *GetSubnetsResponse) error + func (service *Service) GetTotalStake(_ *http.Request, _ *struct{}, reply *GetTotalStakeReply) error + func (service *Service) GetTx(_ *http.Request, args *api.GetTxArgs, response *api.FormattedTx) error + func (service *Service) GetTxStatus(_ *http.Request, args *GetTxStatusArgs, response *GetTxStatusResponse) error + func (service *Service) GetUTXOs(_ *http.Request, args *GetUTXOsArgs, response *GetUTXOsResponse) error + func (service *Service) ImportAVAX(_ *http.Request, args *ImportAVAXArgs, response *api.JSONTxIDChangeAddr) error + func (service *Service) ImportKey(r *http.Request, args *ImportKeyArgs, reply *api.JSONAddress) error + func (service *Service) IssueTx(_ *http.Request, args *api.FormattedTx, response *api.JSONTxID) error + func (service *Service) ListAddresses(_ *http.Request, args *api.UserPass, response *api.JSONAddresses) error + func (service *Service) SampleValidators(_ *http.Request, args *SampleValidatorsArgs, reply *SampleValidatorsReply) error + func (service *Service) ValidatedBy(_ *http.Request, args *ValidatedByArgs, response *ValidatedByResponse) error + func (service *Service) Validates(_ *http.Request, args *ValidatesArgs, response *ValidatesResponse) error + type SingleDecisionBlock struct + func (sdb *SingleDecisionBlock) Accept() error + type StakeableLockIn struct + Locktime uint64 + func (s *StakeableLockIn) Verify() error + type StakeableLockOut struct + Locktime uint64 + func (s *StakeableLockOut) Addresses() [][]byte + func (s *StakeableLockOut) Verify() error + type StandardBlock struct + Txs []*Tx + func (sb *StandardBlock) Reject() error + func (sb *StandardBlock) Verify() error + type StaticService struct + func (ss *StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + type Status uint32 + const Aborted + const Committed + const Created + const Dropped + const Preferred + const Processing + 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 + func (v *SubnetValidator) Verify() error + type TimedTx interface + Bytes func() []byte + EndTime func() time.Time + ID func() ids.ID + StartTime func() time.Time + Weight func() uint64 + type Tx struct + Creds []verify.Verifiable + func (tx *Tx) Sign(c codec.Manager, signers [][]*crypto.PrivateKeySECP256K1R) error + type TxError interface + Temporary func() bool + type UTXOAdder interface + AddUTXO func(utxo *avax.UTXO) + type UTXODeleter interface + DeleteUTXO func(utxoID ids.ID) + type UTXOGetter interface + GetUTXO func(utxoID ids.ID) (*avax.UTXO, error) + type UTXOState interface + type UnsignedAddDelegatorTx struct + RewardsOwner verify.Verifiable + Stake []*avax.TransferableOutput + Validator Validator + func (tx *UnsignedAddDelegatorTx) EndTime() time.Time + func (tx *UnsignedAddDelegatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddDelegatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddDelegatorTx) StartTime() time.Time + func (tx *UnsignedAddDelegatorTx) Verify(ctx *snow.Context, c codec.Manager, minDelegatorStake uint64, ...) error + func (tx *UnsignedAddDelegatorTx) Weight() uint64 + type UnsignedAddSubnetValidatorTx struct + SubnetAuth verify.Verifiable + Validator SubnetValidator + func (tx *UnsignedAddSubnetValidatorTx) EndTime() time.Time + func (tx *UnsignedAddSubnetValidatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddSubnetValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddSubnetValidatorTx) StartTime() time.Time + func (tx *UnsignedAddSubnetValidatorTx) Verify(ctx *snow.Context, c codec.Manager, feeAmount uint64, feeAssetID ids.ID, ...) error + func (tx *UnsignedAddSubnetValidatorTx) Weight() uint64 + type UnsignedAddValidatorTx struct + RewardsOwner verify.Verifiable + Shares uint32 + Stake []*avax.TransferableOutput + Validator Validator + func (tx *UnsignedAddValidatorTx) EndTime() time.Time + func (tx *UnsignedAddValidatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddValidatorTx) StartTime() time.Time + func (tx *UnsignedAddValidatorTx) Verify(ctx *snow.Context, c codec.Manager, minStake uint64, maxStake uint64, ...) error + func (tx *UnsignedAddValidatorTx) Weight() uint64 + type UnsignedAdvanceTimeTx struct + Time uint64 + func (tx *UnsignedAdvanceTimeTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAdvanceTimeTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAdvanceTimeTx) Timestamp() time.Time + type UnsignedAtomicTx interface + Accept func(ctx *snow.Context, batch database.Batch) error + InputUTXOs func() ids.Set + SemanticVerify func(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + type UnsignedCreateChainTx struct + ChainName string + FxIDs []ids.ID + GenesisData []byte + SubnetAuth verify.Verifiable + SubnetID ids.ID + VMID ids.ID + func (tx *UnsignedCreateChainTx) SemanticVerify(vm *VM, vs VersionedState, stx *Tx) (func() error, TxError) + func (tx *UnsignedCreateChainTx) Verify(ctx *snow.Context, c codec.Manager, feeAmount uint64, feeAssetID ids.ID) error + type UnsignedCreateSubnetTx struct + Owner verify.Verifiable + func (tx *UnsignedCreateSubnetTx) SemanticVerify(vm *VM, vs VersionedState, stx *Tx) (func() error, TxError) + func (tx *UnsignedCreateSubnetTx) Verify(ctx *snow.Context, c codec.Manager, feeAmount uint64, feeAssetID ids.ID) error + type UnsignedDecisionTx interface + SemanticVerify func(vm *VM, vs VersionedState, stx *Tx) (onAcceptFunc func() error, err TxError) + type UnsignedExportTx struct + DestinationChain ids.ID + ExportedOutputs []*avax.TransferableOutput + func (tx *UnsignedExportTx) Accept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedExportTx) InputUTXOs() ids.Set + func (tx *UnsignedExportTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + func (tx *UnsignedExportTx) Verify(avmID ids.ID, ctx *snow.Context, c codec.Manager, feeAmount uint64, ...) error + type UnsignedImportTx struct + ImportedInputs []*avax.TransferableInput + SourceChain ids.ID + func (tx *UnsignedImportTx) Accept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedImportTx) InputUTXOs() ids.Set + func (tx *UnsignedImportTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + func (tx *UnsignedImportTx) Verify(avmID ids.ID, ctx *snow.Context, c codec.Manager, feeAmount uint64, ...) error + type UnsignedProposalTx interface + InitiallyPrefersCommit func(vm *VM) bool + SemanticVerify func(vm *VM, state MutableState, stx *Tx) (onCommitState VersionedState, onAbortState VersionedState, ...) + type UnsignedRewardValidatorTx struct + TxID ids.ID + func (tx *UnsignedRewardValidatorTx) InitiallyPrefersCommit(*VM) bool + func (tx *UnsignedRewardValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + type UnsignedTx interface + Bytes func() []byte + ID func() ids.ID + Initialize func(unsignedBytes, signedBytes []byte) + UnsignedBytes func() []byte + type VM struct + func (m *VM) AcceptBlock(b snowman.Block) error + func (m *VM) AcceptTx(tx *Tx) error + func (vm *VM) Bootstrapped() error + func (vm *VM) Bootstrapping() error + func (vm *VM) BuildBlock() (snowman.Block, error) + func (vm *VM) Clock() *timer.Clock + func (vm *VM) Codec() codec.Manager + func (vm *VM) CodecRegistry() codec.Registry + func (vm *VM) Connected(vdrID ids.ShortID) error + func (vm *VM) CreateHandlers() (map[string]*common.HTTPHandler, error) + func (vm *VM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error) + func (vm *VM) Disconnected(vdrID ids.ShortID) error + func (vm *VM) GetBlock(blkID ids.ID) (snowman.Block, error) + func (vm *VM) HealthCheck() (interface{}, error) + func (vm *VM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, ...) error + func (vm *VM) LastAccepted() (ids.ID, error) + func (vm *VM) Logger() logging.Logger + func (vm *VM) NotifyBlockReady() + func (vm *VM) ParseBlock(b []byte) (snowman.Block, error) + func (vm *VM) Preferred() (Block, error) + func (vm *VM) PreferredHeight() (uint64, error) + func (vm *VM) SetPreference(blkID ids.ID) error + func (vm *VM) Shutdown() error + 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 + End uint64 + NodeID ids.ShortID + Start uint64 + Wght uint64 + func (v *Validator) BoundedBy(startTime, endTime time.Time) bool + func (v *Validator) Duration() time.Duration + func (v *Validator) EndTime() time.Time + func (v *Validator) ID() ids.ShortID + func (v *Validator) StartTime() time.Time + func (v *Validator) Verify() error + func (v *Validator) Weight() uint64 + type VersionedState interface + Apply func(InternalState) + SetBase func(MutableState)