sputnikvm

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	GetGasLimit() *big.Int
	GetGasPrice() *big.Int
	GetAmount() *big.Int
	GetData() []byte
	GetNonce() *big.Int
	GetTxHash() binary.HexBytes

	TimeStamp() uint64
	LastBlockNumber() *big.Int
	LastBlockHash() []byte

	ConvertLog(log sputnikvm.Log) evm.Log
	// contains filtered or unexported methods
}

type GallacticAdapter

type GallacticAdapter struct {
	BlockChain *blockchain.Blockchain
	Cache      *state.Cache
	Caller     *account.Account
	Callee     *account.Account
	GasLimit   uint64
	Amount     uint64
	Data       []byte
	Nonce      uint64
	TxHash     binary.HexBytes
}

func (*GallacticAdapter) ConvertLog added in v0.5.0

func (ga *GallacticAdapter) ConvertLog(log sputnikvm.Log) evm.Log

func (*GallacticAdapter) GetAmount

func (ga *GallacticAdapter) GetAmount() *big.Int

func (*GallacticAdapter) GetData

func (ga *GallacticAdapter) GetData() []byte

func (*GallacticAdapter) GetGasLimit

func (ga *GallacticAdapter) GetGasLimit() *big.Int

func (*GallacticAdapter) GetGasPrice added in v0.5.0

func (ga *GallacticAdapter) GetGasPrice() *big.Int

func (*GallacticAdapter) GetNonce

func (ga *GallacticAdapter) GetNonce() *big.Int

func (*GallacticAdapter) GetTxHash added in v0.7.0

func (ga *GallacticAdapter) GetTxHash() binary.HexBytes

func (*GallacticAdapter) LastBlockHash

func (ga *GallacticAdapter) LastBlockHash() []byte

func (*GallacticAdapter) LastBlockNumber

func (ga *GallacticAdapter) LastBlockNumber() *big.Int

func (*GallacticAdapter) TimeStamp

func (ga *GallacticAdapter) TimeStamp() uint64

type Output

type Output struct {
	Failed          bool
	UsedGas         uint64
	Output          []uint8
	Logs            []evm.Log
	ContractAddress *crypto.Address
}

func Execute

func Execute(adapter Adapter) Output

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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