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/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 {
|
2020-06-16 08:54:48 +00:00
|
|
|
tx := runtime.GetScriptContainer()
|
2020-06-29 08:25:32 +00:00
|
|
|
runtime.Notify("Tx", tx.Hash)
|
2018-08-22 07:51:35 +00:00
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
2020-06-29 08:25:32 +00:00
|
|
|
runtime.Notify("Calling", callingScriptHash)
|
2018-08-22 07:51:35 +00:00
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
2020-06-29 08:25:32 +00:00
|
|
|
runtime.Notify("Executing", execScriptHash)
|
2018-08-22 07:51:35 +00:00
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
2020-06-29 08:25:32 +00:00
|
|
|
runtime.Notify("Entry", entryScriptHash)
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
return true
|
|
|
|
}
|