Documentation
¶
Overview ¶
Package neogointernal contains definitions of compiler intrinsics. It's not intended to be used directly by smart contracts.
Index ¶
- func CallWithToken(scriptHash string, method string, flags int, args ...any) any
- func CallWithTokenNoRet(scriptHash string, method string, flags int, args ...any)
- func Opcode0NoReturn(op string)
- func Opcode1(op string, arg any) any
- func Opcode1NoReturn(op string, arg any)
- func Opcode2(op string, arg1, arg2 any) any
- func Opcode2NoReturn(op string, arg1, arg2 any)
- func Opcode3(op string, arg1, arg2, arg3 any) any
- func Syscall0(name string) any
- func Syscall0NoReturn(name string)
- func Syscall1(name string, arg any) any
- func Syscall1NoReturn(name string, arg any)
- func Syscall2(name string, arg1, arg2 any) any
- func Syscall2NoReturn(name string, arg1, arg2 any)
- func Syscall3(name string, arg1, arg2, arg3 any) any
- func Syscall3NoReturn(name string, arg1, arg2, arg3 any)
- func Syscall4(name string, arg1, arg2, arg3, arg4 any) any
- func Syscall4NoReturn(name string, arg1, arg2, arg3, arg4 any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallWithToken ¶
CallWithToken performs contract call using CALLT instruction. It only works for static script hashes and methods, requiring additional metadata compared to ordinary contract.Call. It's more efficient though.
func CallWithTokenNoRet ¶
CallWithTokenNoRet is a version of CallWithToken that does not return anything.
func Opcode0NoReturn ¶
func Opcode0NoReturn(op string)
Opcode0NoReturn emits opcode without arguments.
func Opcode1NoReturn ¶
Opcode1NoReturn emits opcode with 1 argument and no return value.
func Opcode2NoReturn ¶
Opcode2NoReturn emits opcode with 2 arguments and no return value.
func Syscall0NoReturn ¶
func Syscall0NoReturn(name string)
Syscall0NoReturn performs syscall with 0 arguments.
func Syscall1NoReturn ¶
Syscall1NoReturn performs syscall with 1 arguments.
func Syscall2NoReturn ¶
Syscall2NoReturn performs syscall with 2 arguments.
func Syscall3NoReturn ¶
Syscall3NoReturn performs syscall with 3 arguments.
func Syscall4NoReturn ¶
Syscall4NoReturn performs syscall with 4 arguments.
Types ¶
This section is empty.