smartcontract

package
v0.0.0-...-640f24c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Time    uint32
	Height  uint32
	Tx      *ctypes.Transaction
	Table   interfaces.CodeTable
	DBCache scommon.StateStore
	Store   store.LedgerStore
}

type Engine

type Engine interface {
	StepInto()
}

type SmartContract

type SmartContract struct {
	Context       []*context.Context
	Config        *Config
	Engine        Engine
	Notifications []*event.NotifyEventInfo
}

func (*SmartContract) CallingContext

func (sc *SmartContract) CallingContext() *context.Context

get smart contract caller context

func (*SmartContract) CheckWitness

func (sc *SmartContract) CheckWitness(address common.Address) bool

func (*SmartContract) CurrentContext

func (sc *SmartContract) CurrentContext() *context.Context

get smart contract current context

func (*SmartContract) EntryContext

func (sc *SmartContract) EntryContext() *context.Context

get smart contract entry entrance context

func (*SmartContract) Execute

func (sc *SmartContract) Execute() error

func (*SmartContract) PopContext

func (sc *SmartContract) PopContext()

pop smart contract current context

func (*SmartContract) PushContext

func (sc *SmartContract) PushContext(context *context.Context)

put current context to smart contract

func (*SmartContract) PushNotifications

func (sc *SmartContract) PushNotifications(notifications []*event.NotifyEventInfo)

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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