Versions in this module Expand all Collapse all v1 v1.7.2 Jul 4, 2023 v1.7.1 Jun 26, 2023 Changes in this version + const BatchSize + const CodecVersion + 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) + 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) Accept() error + 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) InitCtx(ctx *snow.Context) + func (tx *BaseTx) InputIDs() ids.Set + func (tx *BaseTx) SyntacticVerify(ctx *snow.Context) error + type Block interface + type BlockchainStatus uint32 + const Created + const Preferred + const Syncing + const Validating + func (s *BlockchainStatus) UnmarshalJSON(b []byte) error + func (s BlockchainStatus) MarshalJSON() ([]byte, error) + func (s BlockchainStatus) String() string + func (s BlockchainStatus) Valid() error + type BuildGenesisArgs struct + Chains []APIChain + DjtxAssetID ids.ID + 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) ExportDJTX(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) (BlockchainStatus, error) + func (c *Client) GetBlockchains() ([]APIBlockchain, error) + func (c *Client) GetCurrentSupply() (uint64, error) + func (c *Client) GetCurrentValidators(subnetID ids.ID, nodeIDs []ids.ShortID) ([]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, nodeIDs []ids.ShortID) ([]interface{}, []interface{}, error) + func (c *Client) GetRewardUTXOs(args *api.GetTxArgs) ([][]byte, error) + func (c *Client) GetStake(addrs []string) (*GetStakeReply, error) + func (c *Client) GetStakingAssetID(subnetID ids.ID) (ids.ID, error) + func (c *Client) GetSubnets(ids []ids.ID) ([]APISubnet, error) + func (c *Client) GetTimestamp() (time.Time, 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) GetValidatorsAt(subnetID ids.ID, height uint64) (map[string]uint64, error) + func (c *Client) ImportDJTX(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) Accept() error + 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() ids.ID + func (b *CommonBlock) Reject() error + func (b *CommonBlock) Status() choices.Status + func (b *CommonBlock) Timestamp() time.Time + 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 ExportDJTXArgs struct + Amount json.Uint64 + To string + type ExportKeyArgs struct + Address string + type ExportKeyReply struct + PrivateKey string + type Factory struct + AddStakerTxFee uint64 + ApricotPhase3Time time.Time + ApricotPhase4Time time.Time + Chains chains.Manager + CreateAssetTxFee uint64 + CreateBlockchainTxFee uint64 + CreateSubnetTxFee 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 []*djtx.UTXOID + Unlocked json.Uint64 + type GetBlockchainStatusArgs struct + BlockchainID string + type GetBlockchainStatusReply struct + Status BlockchainStatus + 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 GetTimestampReply struct + Timestamp time.Time + 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 GetValidatorsAtArgs struct + Height json.Uint64 + SubnetID ids.ID + type GetValidatorsAtReply struct + Validators map[string]uint64 + type ImportDJTXArgs 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 + GetValidatorWeightDiffs func(height uint64, subnetID ids.ID) (map[ids.ShortID]*ValidatorWeightDiff, error) + SetCurrentStakerChainState func(currentStakerChainState) + SetHeight func(height uint64) + SetLastAccepted func(ids.ID) + 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 interface + Add func(tx *Tx) error + AddAtomicTx func(tx *Tx) + AddDecisionTx func(tx *Tx) + AddProposalTx func(tx *Tx) + Get func(txID ids.ID) *Tx + Has func(txID ids.ID) bool + HasAtomicTx func() bool + HasDecisionTxs func() bool + HasProposalTx func() bool + MarkDropped func(txID ids.ID) + PopAtomicTx func() *Tx + PopDecisionTxs func(numTxs int) []*Tx + PopProposalTx func() *Tx + RemoveAtomicTx func(tx *Tx) + RemoveDecisionTxs func(txs []*Tx) + RemoveProposalTx func(tx *Tx) + WasDropped func(txID ids.ID) bool + func NewMempool(namespace string, registerer prometheus.Registerer) (Mempool, error) + type MutableState interface + AddChain func(createChainTx *Tx) + AddRewardUTXO func(txID ids.ID, utxo *djtx.UTXO) + AddSubnet func(createSubnetTx *Tx) + AddTx func(tx *Tx, status Status) + GetChains func(subnetID ids.ID) ([]*Tx, error) + GetCurrentSupply func() uint64 + GetRewardUTXOs func(txID ids.ID) ([]*djtx.UTXO, error) + GetSubnets func() ([]*Tx, error) + GetTimestamp func() time.Time + GetTx func(txID ids.ID) (*Tx, Status, error) + SetCurrentSupply func(uint64) + SetTimestamp func(time.Time) + type Owned interface + Owners func() interface{} + type Owner 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) ExportDJTX(_ *http.Request, args *ExportDJTXArgs, 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) GetTimestamp(_ *http.Request, args *struct{}, reply *GetTimestampReply) 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) GetValidatorsAt(_ *http.Request, args *GetValidatorsAtArgs, reply *GetValidatorsAtReply) error + func (service *Service) ImportDJTX(_ *http.Request, args *ImportDJTXArgs, 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 Dropped + const Processing + const Unknown + 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 TimedTxHeap interface + Timestamp func() time.Time + func NewTxHeapByStartTime() TimedTxHeap + type Tx struct + Creds []verify.Verifiable + func (tx *Tx) Sign(c codec.Manager, signers [][]*crypto.PrivateKeySECP256K1R) error + type TxError interface + Temporary func() bool + Unwrap func() error + type TxHeap interface + Add func(tx *Tx) + Get func(txID ids.ID) *Tx + Len func() int + Peek func() *Tx + Remove func(txID ids.ID) *Tx + RemoveTop func() *Tx + func NewTxHeapByAge() TxHeap + func NewTxHeapWithMetrics(txHeap TxHeap, namespace string, registerer prometheus.Registerer) (TxHeap, error) + type UTXOAdder interface + AddUTXO func(utxo *djtx.UTXO) + type UTXODeleter interface + DeleteUTXO func(utxoID ids.ID) + type UTXOGetter interface + GetUTXO func(utxoID ids.ID) (*djtx.UTXO, error) + type UTXOState interface + type UnsignedAddDelegatorTx struct + RewardsOwner Owner + Stake []*djtx.TransferableOutput + Validator Validator + func (tx *UnsignedAddDelegatorTx) EndTime() time.Time + func (tx *UnsignedAddDelegatorTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddDelegatorTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedAddDelegatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddDelegatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedAddDelegatorTx) StartTime() time.Time + func (tx *UnsignedAddDelegatorTx) SyntacticVerify(ctx *snow.Context) error + func (tx *UnsignedAddDelegatorTx) Weight() uint64 + type UnsignedAddSubnetValidatorTx struct + SubnetAuth verify.Verifiable + Validator SubnetValidator + func (tx *UnsignedAddSubnetValidatorTx) EndTime() time.Time + func (tx *UnsignedAddSubnetValidatorTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddSubnetValidatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddSubnetValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedAddSubnetValidatorTx) StartTime() time.Time + func (tx *UnsignedAddSubnetValidatorTx) SyntacticVerify(ctx *snow.Context) error + func (tx *UnsignedAddSubnetValidatorTx) Weight() uint64 + type UnsignedAddValidatorTx struct + RewardsOwner Owner + Shares uint32 + Stake []*djtx.TransferableOutput + Validator Validator + func (tx *UnsignedAddValidatorTx) EndTime() time.Time + func (tx *UnsignedAddValidatorTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAddValidatorTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedAddValidatorTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAddValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedAddValidatorTx) StartTime() time.Time + func (tx *UnsignedAddValidatorTx) SyntacticVerify(ctx *snow.Context) error + func (tx *UnsignedAddValidatorTx) Weight() uint64 + type UnsignedAdvanceTimeTx struct + Time uint64 + func (tx *UnsignedAdvanceTimeTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedAdvanceTimeTx) InitCtx(*snow.Context) + func (tx *UnsignedAdvanceTimeTx) InitiallyPrefersCommit(vm *VM) bool + func (tx *UnsignedAdvanceTimeTx) InputIDs() ids.Set + func (tx *UnsignedAdvanceTimeTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedAdvanceTimeTx) SyntacticVerify(*snow.Context) error + func (tx *UnsignedAdvanceTimeTx) Timestamp() time.Time + type UnsignedAtomicTx interface + Accept func(ctx *snow.Context, batch database.Batch) error + Execute func(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + InputUTXOs func() ids.Set + type UnsignedCreateChainTx struct + ChainName string + FxIDs []ids.ID + GenesisData []byte + SubnetAuth verify.Verifiable + SubnetID ids.ID + VMID ids.ID + func (tx *UnsignedCreateChainTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, TxError) + func (tx *UnsignedCreateChainTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedCreateChainTx) SyntacticVerify(ctx *snow.Context) error + type UnsignedCreateSubnetTx struct + Owner Owner + func (tx *UnsignedCreateSubnetTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, TxError) + func (tx *UnsignedCreateSubnetTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedCreateSubnetTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedCreateSubnetTx) SyntacticVerify(ctx *snow.Context) error + type UnsignedDecisionTx interface + Execute func(vm *VM, vs VersionedState, stx *Tx) (onAcceptFunc func() error, err TxError) + type UnsignedExportTx struct + DestinationChain ids.ID + ExportedOutputs []*djtx.TransferableOutput + func (tx *UnsignedExportTx) Accept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedExportTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + func (tx *UnsignedExportTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedExportTx) InputUTXOs() ids.Set + func (tx *UnsignedExportTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedExportTx) SyntacticVerify(ctx *snow.Context) error + type UnsignedImportTx struct + ImportedInputs []*djtx.TransferableInput + SourceChain ids.ID + func (tx *UnsignedImportTx) Accept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedImportTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, TxError) + func (tx *UnsignedImportTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedImportTx) InputIDs() ids.Set + func (tx *UnsignedImportTx) InputUTXOs() ids.Set + func (tx *UnsignedImportTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedImportTx) SyntacticVerify(ctx *snow.Context) error + type UnsignedProposalTx interface + Execute func(vm *VM, state MutableState, stx *Tx) (onCommitState VersionedState, onAbortState VersionedState, ...) + InitiallyPrefersCommit func(vm *VM) bool + type UnsignedRewardValidatorTx struct + TxID ids.ID + func (tx *UnsignedRewardValidatorTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, func() error, func() error, TxError) + func (tx *UnsignedRewardValidatorTx) InitCtx(*snow.Context) + func (tx *UnsignedRewardValidatorTx) InitiallyPrefersCommit(*VM) bool + func (tx *UnsignedRewardValidatorTx) InputIDs() ids.Set + func (tx *UnsignedRewardValidatorTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedRewardValidatorTx) SyntacticVerify(*snow.Context) error + type UnsignedTx interface + Bytes func() []byte + ID func() ids.ID + Initialize func(unsignedBytes, signedBytes []byte) + InputIDs func() ids.Set + SemanticVerify func(vm *VM, parentState MutableState, stx *Tx) error + SyntacticVerify func(ctx *snow.Context) error + UnsignedBytes func() []byte + type VM struct + func (m *VM) AcceptBlock(b snowman.Block) error + func (m *VM) AcceptTx(tx *Tx) error + func (n VM) AppGossip(nodeID ids.ShortID, msgBytes []byte) error + func (n VM) AppRequest(nodeID ids.ShortID, requestID uint32, deadline time.Time, msgBytes []byte) error + func (n VM) AppRequestFailed(nodeID ids.ShortID, requestID uint32) error + func (n VM) AppResponse(nodeID ids.ShortID, requestID uint32, msgBytes []byte) error + func (n VM) GossipTx(tx *Tx) error + func (vm *VM) Bootstrapped() error + func (vm *VM) Bootstrapping() error + func (vm *VM) BuildBlock() (snowman.Block, error) + func (vm *VM) Clock() *mockable.Clock + 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) GetCurrentHeight() (uint64, error) + func (vm *VM) GetValidatorSet(height uint64, subnetID ids.ID) (map[ids.ShortID]uint64, 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) SetPreference(blkID ids.ID) error + func (vm *VM) Shutdown() error + func (vm *VM) Version() (string, 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 ValidatorState interface + CurrentStakerChainState func() currentStakerChainState + PendingStakerChainState func() pendingStakerChainState + type ValidatorWeightDiff struct + Amount uint64 + Decrease bool + type VersionedState interface + Apply func(InternalState) + SetBase func(MutableState) v1.6.4-rc.3 Jun 26, 2023 v1.6.4-rc.2 Jun 26, 2023