Documentation ¶
Index ¶
- func New() *vm.VM
- type Controller
- func (c *Controller) Accepted(ctx context.Context, blk *chain.StatelessBlock) error
- func (c *Controller) Genesis() *genesis.Genesis
- func (c *Controller) GetAssetFromState(ctx context.Context, asset ids.ID) (bool, []byte, uint64, crypto.PublicKey, bool, error)
- func (c *Controller) GetBalanceFromState(ctx context.Context, pk crypto.PublicKey, asset ids.ID) (uint64, error)
- func (c *Controller) GetLoanFromState(ctx context.Context, asset ids.ID, destination ids.ID) (uint64, error)
- func (c *Controller) GetTransaction(ctx context.Context, txID ids.ID) (bool, int64, bool, uint64, error)
- func (c *Controller) Initialize(inner *vm.VM, snowCtx *snow.Context, gatherer ametrics.MultiGatherer, ...) (vm.Config, vm.Genesis, builder.Builder, gossiper.Gossiper, database.Database, ...)
- func (c *Controller) Logger() logging.Logger
- func (c *Controller) Orders(pair string, limit int) []*orderbook.Order
- func (*Controller) Rejected(context.Context, *chain.StatelessBlock) error
- func (c *Controller) Rules(t int64) chain.Rules
- func (*Controller) Shutdown(context.Context) error
- func (c *Controller) StateManager() chain.StateManager
- func (c *Controller) Tracer() trace.Tracer
- type StateManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Accepted ¶
func (c *Controller) Accepted(ctx context.Context, blk *chain.StatelessBlock) error
func (*Controller) Genesis ¶
func (c *Controller) Genesis() *genesis.Genesis
func (*Controller) GetAssetFromState ¶
func (*Controller) GetBalanceFromState ¶
func (*Controller) GetLoanFromState ¶
func (*Controller) GetTransaction ¶
func (*Controller) Initialize ¶
func (c *Controller) Initialize( inner *vm.VM, snowCtx *snow.Context, gatherer ametrics.MultiGatherer, genesisBytes []byte, upgradeBytes []byte, configBytes []byte, ) ( vm.Config, vm.Genesis, builder.Builder, gossiper.Gossiper, database.Database, database.Database, vm.Handlers, chain.ActionRegistry, chain.AuthRegistry, error, )
func (*Controller) Logger ¶
func (c *Controller) Logger() logging.Logger
func (*Controller) Rejected ¶
func (*Controller) Rejected(context.Context, *chain.StatelessBlock) error
func (*Controller) StateManager ¶
func (c *Controller) StateManager() chain.StateManager
func (*Controller) Tracer ¶
func (c *Controller) Tracer() trace.Tracer
type StateManager ¶
type StateManager struct{}
func (*StateManager) HeightKey ¶
func (*StateManager) HeightKey() []byte
func (*StateManager) IncomingWarpKey ¶
func (*StateManager) OutgoingWarpKey ¶
func (*StateManager) OutgoingWarpKey(txID ids.ID) []byte
Click to show internal directories.
Click to hide internal directories.