mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-02 15:44:41 +00:00
parent
d8db85ef55
commit
ae3f15523c
7 changed files with 165 additions and 260 deletions
|
@ -4,19 +4,26 @@ import (
|
|||
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||
)
|
||||
|
||||
// Main is that famous Main() function, you know.
|
||||
func Main() bool {
|
||||
// NotifyScriptContainer sends runtime notification with script container hash
|
||||
func NotifyScriptContainer() {
|
||||
tx := runtime.GetScriptContainer()
|
||||
runtime.Notify("Tx", tx.Hash)
|
||||
}
|
||||
|
||||
// NotifyCallingScriptHash sends runtime notification with calling script hash
|
||||
func NotifyCallingScriptHash() {
|
||||
callingScriptHash := runtime.GetCallingScriptHash()
|
||||
runtime.Notify("Calling", callingScriptHash)
|
||||
}
|
||||
|
||||
// NotifyExecutingScriptHash sends runtime notification about executing script hash
|
||||
func NotifyExecutingScriptHash() {
|
||||
execScriptHash := runtime.GetExecutingScriptHash()
|
||||
runtime.Notify("Executing", execScriptHash)
|
||||
}
|
||||
|
||||
// NotifyEntryScriptHash sends notification about entry script hash
|
||||
func NotifyEntryScriptHash() {
|
||||
entryScriptHash := runtime.GetEntryScriptHash()
|
||||
runtime.Notify("Entry", entryScriptHash)
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue