neo-go/pkg/interop/neogointernal/opcode.go
Anna Shaleva 6b21ad9922 *: replace interface{} with any keyword
Everywhere including examples, external interop APIs, bindings generators
code and in other valuable places. A couple of `interface{}` usages are
intentionally left in the CHANGELOG.md, documentation and tests.
2023-04-04 13:22:42 +03:00

24 lines
520 B
Go

package neogointernal
// Opcode0NoReturn emits opcode without arguments.
func Opcode0NoReturn(op string) {
}
// Opcode1 emits opcode with 1 argument.
func Opcode1(op string, arg any) any {
return nil
}
// Opcode2 emits opcode with 2 arguments.
func Opcode2(op string, arg1, arg2 any) any {
return nil
}
// Opcode2NoReturn emits opcode with 2 arguments.
func Opcode2NoReturn(op string, arg1, arg2 any) {
}
// Opcode3 emits opcode with 3 arguments.
func Opcode3(op string, arg1, arg2, arg3 any) any {
return nil
}