types

package
v1.2.0-fix2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScriptEngine = &scriptEngineContract{mustLoadContract("ScriptEngineEvent")}
)

Builtin contracts binding.

Functions

This section is empty.

Types

type ScriptEngineOutput

type ScriptEngineOutput struct {
	// contains filtered or unexported fields
}

func NewScriptEngineOutput

func NewScriptEngineOutput(data []byte) *ScriptEngineOutput

func (*ScriptEngineOutput) AddEvent

func (o *ScriptEngineOutput) AddEvent(address meter.Address, topics []meter.Bytes32, data []byte)

func (*ScriptEngineOutput) AddTransfer

func (o *ScriptEngineOutput) AddTransfer(sender, recipient meter.Address, amount *big.Int, token byte)

func (*ScriptEngineOutput) BatchAddEvents

func (o *ScriptEngineOutput) BatchAddEvents(events []*tx.Event)

func (*ScriptEngineOutput) BatchAddTransfers

func (o *ScriptEngineOutput) BatchAddTransfers(transfers []*tx.Transfer)

func (*ScriptEngineOutput) GetData

func (o *ScriptEngineOutput) GetData() []byte

func (*ScriptEngineOutput) GetEvents

func (o *ScriptEngineOutput) GetEvents() tx.Events

func (*ScriptEngineOutput) GetTransfers

func (o *ScriptEngineOutput) GetTransfers() tx.Transfers

func (*ScriptEngineOutput) SetData

func (o *ScriptEngineOutput) SetData(d []byte)

type ScriptEnv

type ScriptEnv struct {
	// contains filtered or unexported fields
}

func NewScriptEnv

func NewScriptEnv(state *state.State, txCtx *xenv.TransactionContext, to *meter.Address) *ScriptEnv

func (*ScriptEnv) AddEvent

func (env *ScriptEnv) AddEvent(address meter.Address, topics []meter.Bytes32, data []byte)

func (*ScriptEnv) AddTransfer

func (env *ScriptEnv) AddTransfer(sender, recipient meter.Address, amount *big.Int, token byte)

func (*ScriptEnv) GetEvents

func (env *ScriptEnv) GetEvents() tx.Events

func (*ScriptEnv) GetOutput

func (env *ScriptEnv) GetOutput() *ScriptEngineOutput

func (*ScriptEnv) GetReturnData

func (env *ScriptEnv) GetReturnData() []byte

func (*ScriptEnv) GetState

func (env *ScriptEnv) GetState() *state.State

func (*ScriptEnv) GetToAddr

func (env *ScriptEnv) GetToAddr() *meter.Address

func (*ScriptEnv) GetTransfers

func (env *ScriptEnv) GetTransfers() tx.Transfers

func (*ScriptEnv) GetTxCtx

func (env *ScriptEnv) GetTxCtx() *xenv.TransactionContext

func (*ScriptEnv) SetReturnData

func (env *ScriptEnv) SetReturnData(data []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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