Documentation ¶
Index ¶
- Variables
- type ScriptEngineOutput
- func (o *ScriptEngineOutput) AddEvent(address meter.Address, topics []meter.Bytes32, data []byte)
- func (o *ScriptEngineOutput) AddTransfer(sender, recipient meter.Address, amount *big.Int, token byte)
- func (o *ScriptEngineOutput) BatchAddEvents(events []*tx.Event)
- func (o *ScriptEngineOutput) BatchAddTransfers(transfers []*tx.Transfer)
- func (o *ScriptEngineOutput) GetData() []byte
- func (o *ScriptEngineOutput) GetEvents() tx.Events
- func (o *ScriptEngineOutput) GetTransfers() tx.Transfers
- func (o *ScriptEngineOutput) SetData(d []byte)
- type ScriptEnv
- func (env *ScriptEnv) AddEvent(address meter.Address, topics []meter.Bytes32, data []byte)
- func (env *ScriptEnv) AddTransfer(sender, recipient meter.Address, amount *big.Int, token byte)
- func (env *ScriptEnv) GetEvents() tx.Events
- func (env *ScriptEnv) GetOutput() *ScriptEngineOutput
- func (env *ScriptEnv) GetReturnData() []byte
- func (env *ScriptEnv) GetState() *state.State
- func (env *ScriptEnv) GetToAddr() *meter.Address
- func (env *ScriptEnv) GetTransfers() tx.Transfers
- func (env *ScriptEnv) GetTxCtx() *xenv.TransactionContext
- func (env *ScriptEnv) SetReturnData(data []byte)
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) AddTransfer ¶
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 (*ScriptEnv) AddTransfer ¶
func (*ScriptEnv) GetOutput ¶
func (env *ScriptEnv) GetOutput() *ScriptEngineOutput
func (*ScriptEnv) GetReturnData ¶
func (*ScriptEnv) GetTransfers ¶
func (*ScriptEnv) GetTxCtx ¶
func (env *ScriptEnv) GetTxCtx() *xenv.TransactionContext
func (*ScriptEnv) SetReturnData ¶
Click to show internal directories.
Click to hide internal directories.