forked from TrueCloudLab/neoneo-go
54a886a7fe
* Added docs folder with first draft of the runtime and smart contract API * Draft of the runtime/neo smart contract api * Added more API documentation. * Added the last API documentation for the NEO runtime and interop functions. Imported from CityOfZion/neo-storm (bc7749ee08f2f48b87f13400e5917ee28e854d86).
29 lines
866 B
Go
29 lines
866 B
Go
package engine
|
|
|
|
import "github.com/CityOfZion/neo-storm/interop/transaction"
|
|
|
|
// Package engine provides function signatures that can be used inside
|
|
// smart contracts that are written in the neo-storm framework.
|
|
|
|
// 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
|
|
}
|
|
|
|
// GetEntryScriptHash returns the script hash of the contract that started the
|
|
// execution from the start.
|
|
func GetEntryScriptHash() []byte {
|
|
return nil
|
|
}
|