neoneo-go/pkg/interop/engine/engine.go

17 lines
567 B
Go
Raw Normal View History

2020-05-18 09:01:00 +00:00
/*
Package engine allows to make contract calls.
2020-05-18 09:01:00 +00:00
It's roughly similar in function to ExecutionEngine class in the Neo .net
framework.
*/
package engine
import "github.com/nspcc-dev/neo-go/pkg/interop"
2020-05-18 09:01:00 +00:00
// AppCall executes previously deployed blockchain contract with specified hash
// (160 bit in BE form represented as 20-byte slice) using provided arguments.
// It returns whatever this contract returns. This function uses
2020-05-18 09:01:00 +00:00
// `System.Contract.Call` syscall.
func AppCall(scriptHash interop.Hash160, method string, args ...interface{}) interface{} {
return nil
}