2018-02-25 12:26:56 +00:00
|
|
|
package runtime
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
// 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-04-10 09:45:31 +00:00
|
|
|
func Log(message string) {}
|
2018-02-27 09:04:24 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
}
|
2018-08-19 18:47:10 +00:00
|
|
|
|
|
|
|
// Serialize serializes and item into a bytearray.
|
|
|
|
func Serialize(item interface{}) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deserializes an item from a bytearray.
|
|
|
|
func Deserialize(b []byte) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|