2019-09-03 18:00:10 +03:00
|
|
|
package enginecontract
|
2018-08-22 09:51:35 +02:00
|
|
|
|
|
|
|
import (
|
2020-03-03 17:21:42 +03:00
|
|
|
"github.com/nspcc-dev/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 {
|
2020-06-16 11:54:48 +03:00
|
|
|
tx := runtime.GetScriptContainer()
|
2020-06-29 11:25:32 +03:00
|
|
|
runtime.Notify("Tx", tx.Hash)
|
2018-08-22 09:51:35 +02:00
|
|
|
|
2020-06-16 11:54:48 +03:00
|
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
2020-06-29 11:25:32 +03:00
|
|
|
runtime.Notify("Calling", callingScriptHash)
|
2018-08-22 09:51:35 +02:00
|
|
|
|
2020-06-16 11:54:48 +03:00
|
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
2020-06-29 11:25:32 +03:00
|
|
|
runtime.Notify("Executing", execScriptHash)
|
2018-08-22 09:51:35 +02:00
|
|
|
|
2020-06-16 11:54:48 +03:00
|
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
2020-06-29 11:25:32 +03:00
|
|
|
runtime.Notify("Entry", entryScriptHash)
|
2018-08-22 09:51:35 +02:00
|
|
|
|
|
|
|
return true
|
|
|
|
}
|