2018-08-22 07:51:35 +00:00
|
|
|
package engine
|
|
|
|
|
2019-08-15 16:41:51 +00:00
|
|
|
import "github.com/CityOfZion/neo-go/pkg/interop/transaction"
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
// Package engine provides function signatures that can be used inside
|
2019-08-15 16:41:51 +00:00
|
|
|
// smart contracts that are written in the neo-go framework.
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
// GetScriptContainer returns the transaction that is in the execution context.
|
|
|
|
func GetScriptContainer() transaction.Transaction {
|
|
|
|
return transaction.Transaction{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetExecutingScriptHash returns the script hash of the contract that is
|
|
|
|
// currently being executed.
|
|
|
|
func GetExecutingScriptHash() []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCallingScriptHash returns the script hash of the contract that started
|
|
|
|
// the execution of the current script.
|
|
|
|
func GetCallingScriptHash() []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-14 11:25:53 +00:00
|
|
|
// GetEntryScriptHash returns the script hash of the contract that started the
|
2018-08-22 07:51:35 +00:00
|
|
|
// execution from the start.
|
|
|
|
func GetEntryScriptHash() []byte {
|
|
|
|
return nil
|
|
|
|
}
|
2020-01-27 07:59:57 +00:00
|
|
|
|
|
|
|
// AppCall executes script with specified hash using provided arguments.
|
2020-02-10 07:51:29 +00:00
|
|
|
func AppCall(scriptHash []byte, args ...interface{}) interface{} {
|
2020-01-27 07:59:57 +00:00
|
|
|
return nil
|
|
|
|
}
|