Versions in this module Expand all Collapse all v1 v1.19.0 Jun 25, 2022 v1.18.0 Jun 25, 2022 v1.17.0 Jun 24, 2022 v1.16.0 Jun 24, 2022 v1.15.0 Jun 23, 2022 v1.14.0 Jun 23, 2022 v1.12.0 Jun 23, 2022 v1.10.0 Jun 23, 2022 v1.9.0 Jun 23, 2022 v1.8.0 Jun 23, 2022 v1.7.0 Jun 23, 2022 v1.6.0 Jun 20, 2022 v1.4.0 Jun 20, 2022 v1.3.0 Jun 20, 2022 v1.2.1 Jun 19, 2022 v1.2.0 Jun 20, 2022 v1.1.1 Jun 19, 2022 v1.1.1-rc Jun 20, 2022 v1.0.0 Jun 19, 2022 Changes in this version + const BatchSize + const CodecVersion + const MaxValidatorWeightFactor + const MinConnectedStake + var Codec codec.Manager + var GenesisCodec codec.Manager + 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 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 interface + AddDelegator func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + AddSubnetValidator func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + AddValidator func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + AwaitTxDecided func(ctx context.Context, txID ids.ID, includeReason bool, freq time.Duration) (*GetTxStatusResponse, error) + CreateAddress func(ctx context.Context, user api.UserPass) (string, error) + CreateBlockchain func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + CreateSubnet func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + ExportDJTX func(ctx context.Context, user api.UserPass, from []string, changeAddr string, ...) (ids.ID, error) + ExportKey func(ctx context.Context, user api.UserPass, address string) (string, error) + GetAtomicUTXOs func(ctx context.Context, addrs []string, sourceChain string, limit uint32, ...) ([][]byte, api.Index, error) + GetBalance func(ctx context.Context, addrs []string) (*GetBalanceResponse, error) + GetBlock func(ctx context.Context, blockID ids.ID) ([]byte, error) + GetBlockchainStatus func(ctx context.Context, blockchainID string) (status.BlockchainStatus, error) + GetBlockchains func(ctx context.Context) ([]APIBlockchain, error) + GetCurrentSupply func(ctx context.Context) (uint64, error) + GetCurrentValidators func(ctx context.Context, subnetID ids.ID, nodeIDs []ids.ShortID) ([]interface{}, error) + GetHeight func(ctx context.Context) (uint64, error) + GetMaxStakeAmount func(ctx context.Context, subnetID ids.ID, nodeID string, startTime uint64, ...) (uint64, error) + GetMinStake func(ctx context.Context) (uint64, uint64, error) + GetPendingValidators func(ctx context.Context, subnetID ids.ID, nodeIDs []ids.ShortID) ([]interface{}, []interface{}, error) + GetRewardUTXOs func(context.Context, *api.GetTxArgs) ([][]byte, error) + GetStake func(ctx context.Context, addrs []string) (*GetStakeReply, error) + GetStakingAssetID func(context.Context, ids.ID) (ids.ID, error) + GetSubnets func(context.Context, []ids.ID) ([]APISubnet, error) + GetTimestamp func(ctx context.Context) (time.Time, error) + GetTotalStake func(ctx context.Context) (uint64, error) + GetTx func(ctx context.Context, txID ids.ID) ([]byte, error) + GetTxStatus func(ctx context.Context, txID ids.ID, includeReason bool) (*GetTxStatusResponse, error) + GetUTXOs func(ctx context.Context, addrs []string, limit uint32, ...) ([][]byte, api.Index, error) + GetValidatorsAt func(ctx context.Context, subnetID ids.ID, height uint64) (map[string]uint64, error) + ImportDJTX func(ctx context.Context, user api.UserPass, from []string, ...) (ids.ID, error) + ImportKey func(ctx context.Context, user api.UserPass, address string) (string, error) + IssueTx func(ctx context.Context, tx []byte) (ids.ID, error) + ListAddresses func(ctx context.Context, user api.UserPass) ([]string, error) + SampleValidators func(ctx context.Context, subnetID ids.ID, sampleSize uint16) ([]string, error) + ValidatedBy func(ctx context.Context, blockchainID ids.ID) (ids.ID, error) + Validates func(ctx context.Context, subnetID ids.ID) ([]ids.ID, error) + func NewClient(uri string) Client + 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 + ApricotPhase5Time 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 + RewardConfig reward.Config + StakingEnabled bool + TxFee uint64 + UptimeLockedCalculator uptime.LockedCalculator + 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 GetBalanceRequest struct + Address *string + Addresses []string + 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 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.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) + func NewInternalState(vm *VM, db database.Database, genesis []byte) (InternalState, error) + func NewMeteredInternalState(vm *VM, db database.Database, genesis []byte, metrics prometheus.Registerer) (InternalState, error) + type Mempool interface + Add func(tx *Tx) error + AddDecisionTx func(tx *Tx) + AddProposalTx func(tx *Tx) + Get func(txID ids.ID) *Tx + Has func(txID ids.ID) bool + HasDecisionTxs func() bool + HasProposalTx func() bool + MarkDropped func(txID ids.ID) + PopDecisionTxs func(numTxs int) []*Tx + PopProposalTx func() *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 MockInternalState struct + func NewMockInternalState(ctrl *gomock.Controller) *MockInternalState + func (m *MockInternalState) Abort() + func (m *MockInternalState) AddBlock(block Block) + func (m *MockInternalState) AddChain(createChainTx *Tx) + func (m *MockInternalState) AddCurrentStaker(tx *Tx, potentialReward uint64) + func (m *MockInternalState) AddPendingStaker(tx *Tx) + func (m *MockInternalState) AddRewardUTXO(txID ids.ID, utxo *djtx.UTXO) + func (m *MockInternalState) AddSubnet(createSubnetTx *Tx) + func (m *MockInternalState) AddTx(tx *Tx, status status.Status) + func (m *MockInternalState) AddUTXO(utxo *djtx.UTXO) + func (m *MockInternalState) Close() error + func (m *MockInternalState) Commit() error + func (m *MockInternalState) CommitBatch() (database.Batch, error) + func (m *MockInternalState) CurrentStakerChainState() currentStakerChainState + func (m *MockInternalState) DeleteCurrentStaker(tx *Tx) + func (m *MockInternalState) DeletePendingStaker(tx *Tx) + func (m *MockInternalState) DeleteUTXO(utxoID ids.ID) + func (m *MockInternalState) EXPECT() *MockInternalStateMockRecorder + func (m *MockInternalState) GetBlock(blockID ids.ID) (Block, error) + func (m *MockInternalState) GetChains(subnetID ids.ID) ([]*Tx, error) + func (m *MockInternalState) GetCurrentSupply() uint64 + func (m *MockInternalState) GetLastAccepted() ids.ID + func (m *MockInternalState) GetRewardUTXOs(txID ids.ID) ([]*djtx.UTXO, error) + func (m *MockInternalState) GetStartTime(nodeID ids.ShortID) (time.Time, error) + func (m *MockInternalState) GetSubnets() ([]*Tx, error) + func (m *MockInternalState) GetTimestamp() time.Time + func (m *MockInternalState) GetTx(txID ids.ID) (*Tx, status.Status, error) + func (m *MockInternalState) GetUTXO(utxoID ids.ID) (*djtx.UTXO, error) + func (m *MockInternalState) GetUptime(nodeID ids.ShortID) (time.Duration, time.Time, error) + func (m *MockInternalState) GetValidatorWeightDiffs(height uint64, subnetID ids.ID) (map[ids.ShortID]*ValidatorWeightDiff, error) + func (m *MockInternalState) PendingStakerChainState() pendingStakerChainState + func (m *MockInternalState) SetCurrentStakerChainState(arg0 currentStakerChainState) + func (m *MockInternalState) SetCurrentSupply(arg0 uint64) + func (m *MockInternalState) SetHeight(height uint64) + func (m *MockInternalState) SetLastAccepted(arg0 ids.ID) + func (m *MockInternalState) SetPendingStakerChainState(arg0 pendingStakerChainState) + func (m *MockInternalState) SetTimestamp(arg0 time.Time) + func (m *MockInternalState) SetUptime(nodeID ids.ShortID, upDuration time.Duration, lastUpdated time.Time) error + func (m *MockInternalState) UTXOIDs(addr []byte, previous ids.ID, limit int) ([]ids.ID, error) + type MockInternalStateMockRecorder struct + func (mr *MockInternalStateMockRecorder) Abort() *gomock.Call + func (mr *MockInternalStateMockRecorder) AddBlock(block interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddChain(createChainTx interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddCurrentStaker(tx, potentialReward interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddPendingStaker(tx interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddRewardUTXO(txID, utxo interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddSubnet(createSubnetTx interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddTx(tx, status interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) AddUTXO(utxo interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) Close() *gomock.Call + func (mr *MockInternalStateMockRecorder) Commit() *gomock.Call + func (mr *MockInternalStateMockRecorder) CommitBatch() *gomock.Call + func (mr *MockInternalStateMockRecorder) CurrentStakerChainState() *gomock.Call + func (mr *MockInternalStateMockRecorder) DeleteCurrentStaker(tx interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) DeletePendingStaker(tx interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) DeleteUTXO(utxoID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetBlock(blockID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetChains(subnetID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetCurrentSupply() *gomock.Call + func (mr *MockInternalStateMockRecorder) GetLastAccepted() *gomock.Call + func (mr *MockInternalStateMockRecorder) GetRewardUTXOs(txID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetStartTime(nodeID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetSubnets() *gomock.Call + func (mr *MockInternalStateMockRecorder) GetTimestamp() *gomock.Call + func (mr *MockInternalStateMockRecorder) GetTx(txID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetUTXO(utxoID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetUptime(nodeID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) GetValidatorWeightDiffs(height, subnetID interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) PendingStakerChainState() *gomock.Call + func (mr *MockInternalStateMockRecorder) SetCurrentStakerChainState(arg0 interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetCurrentSupply(arg0 interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetHeight(height interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetLastAccepted(arg0 interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetPendingStakerChainState(arg0 interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetTimestamp(arg0 interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) SetUptime(nodeID, upDuration, lastUpdated interface{}) *gomock.Call + func (mr *MockInternalStateMockRecorder) UTXOIDs(addr, previous, limit interface{}) *gomock.Call + 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.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.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 *GetBalanceRequest, response *GetBalanceResponse) error + func (service *Service) GetBlock(_ *http.Request, args *api.GetBlockArgs, response *api.GetBlockResponse) 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.GetTxReply) 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 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) Accept() error + 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 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 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, error) + 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, error) + 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, error) + 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, error) + 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 + AtomicAccept func(ctx *snow.Context, batch database.Batch) error + AtomicExecute func(vm *VM, parentState MutableState, stx *Tx) (VersionedState, error) + type UnsignedCreateChainTx struct + ChainName string + FxIDs []ids.ID + GenesisData []byte + SubnetAuth verify.Verifiable + SubnetID ids.ID + VMID ids.ID + func (tx *UnsignedCreateChainTx) AtomicOperations() (ids.ID, *atomic.Requests, error) + func (tx *UnsignedCreateChainTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, error) + func (tx *UnsignedCreateChainTx) InputUTXOs() ids.Set + 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) AtomicOperations() (ids.ID, *atomic.Requests, error) + func (tx *UnsignedCreateSubnetTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, error) + func (tx *UnsignedCreateSubnetTx) InitCtx(ctx *snow.Context) + func (tx *UnsignedCreateSubnetTx) InputUTXOs() ids.Set + func (tx *UnsignedCreateSubnetTx) SemanticVerify(vm *VM, parentState MutableState, stx *Tx) error + func (tx *UnsignedCreateSubnetTx) SyntacticVerify(ctx *snow.Context) error + type UnsignedDecisionTx interface + AtomicOperations func() (ids.ID, *atomic.Requests, error) + Execute func(vm *VM, vs VersionedState, stx *Tx) (onAcceptFunc func() error, err error) + InputUTXOs func() ids.Set + type UnsignedExportTx struct + DestinationChain ids.ID + ExportedOutputs []*djtx.TransferableOutput + func (tx *UnsignedExportTx) AtomicAccept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedExportTx) AtomicExecute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, error) + func (tx *UnsignedExportTx) AtomicOperations() (ids.ID, *atomic.Requests, error) + func (tx *UnsignedExportTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, error) + 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) AtomicAccept(ctx *snow.Context, batch database.Batch) error + func (tx *UnsignedImportTx) AtomicExecute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, error) + func (tx *UnsignedImportTx) AtomicOperations() (ids.ID, *atomic.Requests, error) + func (tx *UnsignedImportTx) Execute(vm *VM, vs VersionedState, stx *Tx) (func() error, error) + 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, err error) + InitiallyPrefersCommit func(vm *VM) bool + type UnsignedRewardValidatorTx struct + TxID ids.ID + func (tx *UnsignedRewardValidatorTx) Execute(vm *VM, parentState MutableState, stx *Tx) (VersionedState, VersionedState, error) + 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) BuildBlock() (snowman.Block, error) + func (vm *VM) Clock() *mockable.Clock + func (vm *VM) CodecRegistry() codec.Registry + func (vm *VM) Connected(vdrID ids.ShortID, _ version.Application) 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) ParseBlock(b []byte) (snowman.Block, error) + func (vm *VM) Preferred() (Block, error) + func (vm *VM) SetPreference(blkID ids.ID) error + func (vm *VM) SetState(state snow.State) 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)