Versions in this module Expand all Collapse all v0 v0.0.15 Dec 13, 2023 Changes in this version + const Name + const PublicEndpoint + var ErrCorruption = errors.New("corruption detected") + var ErrInputIsNil = errors.New("input is nil") + var ErrInvalidEmptyTx = errors.New("invalid empty transaction") + var ErrNoPendingTx = errors.New("no pending tx") + var ErrTypedDataIsNil = errors.New("typed data is nil") + type BalanceArgs struct + Address common.Address + type BalanceReply struct + Balance uint64 + type BlockBuilder interface + Build func() + Gossip func() + HandleGenerateBlock func() + type ClaimedArgs struct + Space string + type ClaimedReply struct + Claimed bool + type Config struct + ActivityCacheSize int + BuildInterval time.Duration + CompactInterval time.Duration + FullPruneInterval time.Duration + GossipInterval time.Duration + MempoolSize int + PruneInterval time.Duration + PruneLimit int + RegossipInterval time.Duration + func (c *Config) SetDefaults() + type GenesisReply struct + Genesis *chain.Genesis + type HasTxArgs struct + TxID ids.ID + type HasTxReply struct + Accepted bool + type InfoArgs struct + Space string + type InfoReply struct + Info *chain.SpaceInfo + Values []*chain.KeyValueMeta + type IssueRawTxArgs struct + Tx []byte + type IssueRawTxReply struct + TxID ids.ID + type IssueTxArgs struct + Signature hexutil.Bytes + TypedData *tdata.TypedData + type IssueTxReply struct + TxID ids.ID + type LastAcceptedReply struct + BlockID ids.ID + Height uint64 + type ManualBuilder struct + func (b *ManualBuilder) Build() + func (b *ManualBuilder) Gossip() + func (b *ManualBuilder) HandleGenerateBlock() + func (b *ManualBuilder) NotifyBuild() + type NetworkReply struct + ChainID ids.ID + NetworkID uint32 + SubnetID ids.ID + type OwnedArgs struct + Address common.Address + type OwnedReply struct + Spaces []string + type PingReply struct + Success bool + type PublicService struct + func (svc *PublicService) Balance(_ *http.Request, args *BalanceArgs, reply *BalanceReply) error + func (svc *PublicService) Claimed(_ *http.Request, args *ClaimedArgs, reply *ClaimedReply) error + func (svc *PublicService) Genesis(_ *http.Request, _ *struct{}, reply *GenesisReply) (err error) + func (svc *PublicService) HasTx(_ *http.Request, args *HasTxArgs, reply *HasTxReply) error + func (svc *PublicService) Info(_ *http.Request, args *InfoArgs, reply *InfoReply) error + func (svc *PublicService) IssueRawTx(_ *http.Request, args *IssueRawTxArgs, reply *IssueRawTxReply) error + func (svc *PublicService) IssueTx(_ *http.Request, args *IssueTxArgs, reply *IssueTxReply) error + func (svc *PublicService) LastAccepted(_ *http.Request, _ *struct{}, reply *LastAcceptedReply) error + func (svc *PublicService) Network(_ *http.Request, _ *struct{}, reply *NetworkReply) (err error) + func (svc *PublicService) Owned(_ *http.Request, args *OwnedArgs, reply *OwnedReply) error + func (svc *PublicService) Ping(_ *http.Request, _ *struct{}, reply *PingReply) (err error) + func (svc *PublicService) RecentActivity(_ *http.Request, _ *struct{}, reply *RecentActivityReply) error + func (svc *PublicService) Resolve(_ *http.Request, args *ResolveArgs, reply *ResolveReply) error + func (svc *PublicService) SuggestedFee(_ *http.Request, args *SuggestedFeeArgs, reply *SuggestedFeeReply) error + func (svc *PublicService) SuggestedRawFee(_ *http.Request, _ *struct{}, reply *SuggestedRawFeeReply) error + type PushNetwork struct + func (n *PushNetwork) GossipNewTxs(newTxs []*chain.Transaction) error + func (n *PushNetwork) RegossipTxs() error + type RecentActivityReply struct + Activity []*chain.Activity + type ResolveArgs struct + Path string + type ResolveReply struct + Exists bool + Value []byte + ValueMeta *chain.ValueMeta + type SuggestedFeeArgs struct + Input *chain.Input + type SuggestedFeeReply struct + TotalCost uint64 + TypedData *tdata.TypedData + type SuggestedRawFeeReply struct + Cost uint64 + Price uint64 + type TimeBuilder struct + func (b *TimeBuilder) Build() + func (b *TimeBuilder) Gossip() + func (b *TimeBuilder) HandleGenerateBlock() + type VM struct + AirdropData []byte + func (vm *VM) Accepted(b *chain.StatelessBlock) + func (vm *VM) AppGossip(ctx context.Context, nodeID ids.NodeID, msg []byte) error + func (vm *VM) AppRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, ...) error + func (vm *VM) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32) error + func (vm *VM) AppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error + func (vm *VM) BuildBlock(ctx context.Context) (snowman.Block, error) + func (vm *VM) Connected(ctx context.Context, id ids.NodeID, nodeVersion *luxdversion.Application) error + func (vm *VM) CreateHandlers(ctx context.Context) (map[string]*common.HTTPHandler, error) + func (vm *VM) CreateStaticHandlers(ctx context.Context) (map[string]*common.HTTPHandler, error) + func (vm *VM) CrossChainAppRequest(ctx context.Context, chainID ids.ID, requestID uint32, deadline time.Time, ...) error + func (vm *VM) CrossChainAppRequestFailed(ctx context.Context, chainID ids.ID, requestID uint32) error + func (vm *VM) CrossChainAppResponse(ctx context.Context, chainID ids.ID, requestID uint32, response []byte) error + func (vm *VM) Disconnected(ctx context.Context, id ids.NodeID) error + func (vm *VM) ExecutionContext(currTime int64, lastBlock *chain.StatelessBlock) (*chain.Context, error) + func (vm *VM) Genesis() *chain.Genesis + func (vm *VM) GetBlock(ctx context.Context, id ids.ID) (snowman.Block, error) + func (vm *VM) GetStatelessBlock(blkID ids.ID) (*chain.StatelessBlock, error) + func (vm *VM) HealthCheck(ctx context.Context) (interface{}, error) + func (vm *VM) Initialize(ctx context.Context, chainCtx *snow.Context, dbManager manager.Manager, ...) error + func (vm *VM) IsBootstrapped() bool + func (vm *VM) LastAccepted(ctx context.Context) (ids.ID, error) + func (vm *VM) Mempool() chain.Mempool + func (vm *VM) Network() *PushNetwork + func (vm *VM) NewManualBuilder() *ManualBuilder + func (vm *VM) NewPushNetwork() *PushNetwork + func (vm *VM) NewTimeBuilder() *TimeBuilder + func (vm *VM) ParseBlock(ctx context.Context, source []byte) (snowman.Block, error) + func (vm *VM) Rejected(b *chain.StatelessBlock) + func (vm *VM) SetBlockBuilder(b func() BlockBuilder) + func (vm *VM) SetPreference(ctx context.Context, id ids.ID) error + func (vm *VM) SetState(ctx context.Context, state snow.State) error + func (vm *VM) Shutdown(ctx context.Context) error + func (vm *VM) State() database.Database + func (vm *VM) Submit(txs ...*chain.Transaction) (errs []error) + func (vm *VM) SuggestedFee() (uint64, uint64, error) + func (vm *VM) ValidBlockID(blockID ids.ID) (bool, error) + func (vm *VM) Verified(b *chain.StatelessBlock) + func (vm *VM) Version(ctx context.Context) (string, error)