neoneo-go/pkg/interop/neogointernal/opcode.go
Anna Shaleva 11bb733f1a interop: support ABORTMSG, ASSERT, ASSERTMSG opcodes
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2023-08-10 12:41:30 +03:00

28 lines
655 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
}
// Opcode1NoReturn emits opcode with 1 argument and no return value.
func Opcode1NoReturn(op string, arg any) {
}
// Opcode2 emits opcode with 2 arguments.
func Opcode2(op string, arg1, arg2 any) any {
return nil
}
// Opcode2NoReturn emits opcode with 2 arguments and no return value.
func Opcode2NoReturn(op string, arg1, arg2 any) {
}
// Opcode3 emits opcode with 3 arguments.
func Opcode3(op string, arg1, arg2, arg3 any) any {
return nil
}