vm_context

package
v0.0.7-alphanet Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountVmContext

type AccountVmContext interface {
	api.PillarReader
	store.Account
	MomentumStore() store.Momentum

	GetFrontierMomentum() (*nom.Momentum, error)
	GetGenesisMomentum() *nom.Momentum

	Save()
	Reset()
	Done()

	AddBalance(ts *types.ZenonTokenStandard, amount *big.Int)
	SubBalance(ts *types.ZenonTokenStandard, amount *big.Int)

	IsAcceleratorSporkEnforced() bool
	IsHtlcSporkEnforced() bool
	IsBridgeAndLiquiditySporkEnforced() bool
}

func NewAccountContext

func NewAccountContext(momentumStore store.Momentum, accountBlock store.Account, pillarReader api.PillarReader) AccountVmContext

func NewGenesisAccountContext

func NewGenesisAccountContext(address types.Address) AccountVmContext

type MomentumVMContext

type MomentumVMContext interface {
	store.Momentum
}

func NewGenesisMomentumVMContext

func NewGenesisMomentumVMContext() MomentumVMContext

func NewMomentumVMContext

func NewMomentumVMContext(store store.Momentum) MomentumVMContext

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL