2018-02-25 12:26:56 +00:00
|
|
|
package runtime
|
|
|
|
|
2018-03-02 15:49:10 +00:00
|
|
|
import "github.com/CityOfZion/neo-go/pkg/vm/smartcontract/types"
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// CheckWitness verifies if the invoker is the owner of the contract.
|
2018-02-27 09:04:24 +00:00
|
|
|
func CheckWitness(hash []byte) bool {
|
|
|
|
return true
|
|
|
|
}
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// GetCurrentBlock returns the current block.
|
2018-02-27 09:04:24 +00:00
|
|
|
func GetCurrentBlock() types.Block { return types.Block{} }
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// GetTime returns the timestamp of the most recent block.
|
2018-02-27 09:04:24 +00:00
|
|
|
func GetTime() int {
|
|
|
|
return 0
|
|
|
|
}
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// Notify an event to the VM.
|
2018-02-27 09:04:24 +00:00
|
|
|
func Notify(arg interface{}) int {
|
|
|
|
return 0
|
|
|
|
}
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// Log intructs the VM to log the given message.
|
2018-02-27 09:04:24 +00:00
|
|
|
func Log(message string) int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Application returns the application trigger type.
|
|
|
|
func Application() byte {
|
|
|
|
return 0x10
|
|
|
|
}
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// Verification returns the verification trigger type.
|
|
|
|
func Verification() byte {
|
|
|
|
return 0x00
|
|
|
|
}
|
|
|
|
|
2018-02-27 09:04:24 +00:00
|
|
|
// GetTrigger return the current trigger type. The return in this function
|
|
|
|
// doesn't really mather, this is just an interop placeholder.
|
|
|
|
func GetTrigger() interface{} {
|
|
|
|
return 0
|
2018-02-25 12:26:56 +00:00
|
|
|
}
|