2019-09-03 15:00:10 +00:00
|
|
|
package enginecontract
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
import (
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/engine"
|
|
|
|
"github.com/nspcc-dev/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
|
|
|
|
}
|