neogointernal

package
v0.0.0-...-5566e35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package neogointernal contains definitions of compiler intrinsics. It's not intended to be used directly by smart contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallWithToken

func CallWithToken(scriptHash string, method string, flags int, args ...any) any

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

func CallWithTokenNoRet(scriptHash string, method string, flags int, args ...any)

CallWithTokenNoRet is a version of CallWithToken that does not return anything.

func Opcode0NoReturn

func Opcode0NoReturn(op string)

Opcode0NoReturn emits opcode without arguments.

func Opcode1

func Opcode1(op string, arg any) any

Opcode1 emits opcode with 1 argument.

func Opcode1NoReturn

func Opcode1NoReturn(op string, arg any)

Opcode1NoReturn emits opcode with 1 argument and no return value.

func Opcode2

func Opcode2(op string, arg1, arg2 any) any

Opcode2 emits opcode with 2 arguments.

func Opcode2NoReturn

func Opcode2NoReturn(op string, arg1, arg2 any)

Opcode2NoReturn emits opcode with 2 arguments and no return value.

func Opcode3

func Opcode3(op string, arg1, arg2, arg3 any) any

Opcode3 emits opcode with 3 arguments.

func Syscall0

func Syscall0(name string) any

Syscall0 performs syscall with 0 arguments.

func Syscall0NoReturn

func Syscall0NoReturn(name string)

Syscall0NoReturn performs syscall with 0 arguments.

func Syscall1

func Syscall1(name string, arg any) any

Syscall1 performs syscall with 1 arguments.

func Syscall1NoReturn

func Syscall1NoReturn(name string, arg any)

Syscall1NoReturn performs syscall with 1 arguments.

func Syscall2

func Syscall2(name string, arg1, arg2 any) any

Syscall2 performs syscall with 2 arguments.

func Syscall2NoReturn

func Syscall2NoReturn(name string, arg1, arg2 any)

Syscall2NoReturn performs syscall with 2 arguments.

func Syscall3

func Syscall3(name string, arg1, arg2, arg3 any) any

Syscall3 performs syscall with 3 arguments.

func Syscall3NoReturn

func Syscall3NoReturn(name string, arg1, arg2, arg3 any)

Syscall3NoReturn performs syscall with 3 arguments.

func Syscall4

func Syscall4(name string, arg1, arg2, arg3, arg4 any) any

Syscall4 performs syscall with 4 arguments.

func Syscall4NoReturn

func Syscall4NoReturn(name string, arg1, arg2, arg3, arg4 any)

Syscall4NoReturn performs syscall with 4 arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL