2019-09-03 15:00:10 +00:00
|
|
|
package enginecontract
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
import (
|
2019-08-15 16:41:51 +00:00
|
|
|
"github.com/CityOfZion/neo-go/pkg/interop/engine"
|
|
|
|
"github.com/CityOfZion/neo-go/pkg/interop/runtime"
|
2018-08-22 07:51:35 +00:00
|
|
|
)
|
|
|
|
|
2019-09-03 14:51:37 +00:00
|
|
|
// Main is that famous Main() function, you know.
|
2018-08-22 07:51:35 +00:00
|
|
|
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
|
|
|
|
}
|