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