mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-30 15:01:35 +00:00
0b33cf3193
* new mapping for interop api * Fixed interop API mapping + added missing apis * added engine apis Imported from CityOfZion/neo-storm (ec5e6c8e2b587704a1e071e83b633d2d3a235300).
22 lines
482 B
Go
22 lines
482 B
Go
package engine_contract
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-storm/interop/engine"
|
|
"github.com/CityOfZion/neo-storm/interop/runtime"
|
|
)
|
|
|
|
func Main() bool {
|
|
tx := engine.GetScriptContainer()
|
|
runtime.Notify(tx)
|
|
|
|
callingScriptHash := engine.GetCallingScriptHash()
|
|
runtime.Notify(callingScriptHash)
|
|
|
|
execScriptHash := engine.GetExecutingScriptHash()
|
|
runtime.Notify(execScriptHash)
|
|
|
|
entryScriptHash := engine.GetEntryScriptHash()
|
|
runtime.Notify(entryScriptHash)
|
|
|
|
return true
|
|
}
|