a1e3655560
neo-storm has developed more wrappers for syscall APIs, so they can and should be used as a drop-in replacement for pkg/vm/api. Moving it out of vm, as it's not exactly related to the VM itself.
17 lines
402 B
Go
17 lines
402 B
Go
package input
|
|
|
|
// Package input provides function signatures that can be used inside
|
|
// smart contracts that are written in the neo-go framework.
|
|
|
|
// Input stubs the input of a NEO transaction.
|
|
type Input struct{}
|
|
|
|
// GetHash returns the hash of the given input.
|
|
func GetHash(in Input) []byte {
|
|
return nil
|
|
}
|
|
|
|
// GetIndex returns the index of the given input.
|
|
func GetIndex(in Input) int {
|
|
return 0
|
|
}
|