Documentation ¶
Index ¶
- func AppCall(w *io.BinWriter, scriptHash util.Uint160, operation string, ...)
- func AppCallNoArgs(w *io.BinWriter, scriptHash util.Uint160, operation string, ...)
- func Array(w *io.BinWriter, es ...any)
- func BigInt(w *io.BinWriter, n *big.Int)
- func Bool(w *io.BinWriter, ok bool)
- func Bytes(w *io.BinWriter, b []byte)
- func Call(w *io.BinWriter, op opcode.Opcode, label uint16)
- func CheckSig(w *io.BinWriter, key []byte)
- func Convertible(w *io.BinWriter, c stackitem.Convertible)
- func Instruction(w *io.BinWriter, op opcode.Opcode, b []byte)
- func Int(w *io.BinWriter, i int64)
- func Jmp(w *io.BinWriter, op opcode.Opcode, label uint16)
- func Opcodes(w *io.BinWriter, ops ...opcode.Opcode)
- func StackItem(w *io.BinWriter, si stackitem.Item)
- func String(w *io.BinWriter, s string)
- func Syscall(w *io.BinWriter, api string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppCall ¶
func AppCall(w *io.BinWriter, scriptHash util.Uint160, operation string, f callflag.CallFlag, args ...any)
AppCall emits SYSCALL with System.Contract.Call parameter for given contract, operation, call flag and arguments.
func AppCallNoArgs ¶ added in v0.93.0
AppCallNoArgs emits a call to the provided contract.
func Array ¶ added in v0.75.0
Array emits an array of elements to the given buffer. It accepts elements of the following types:
- int8, int16, int32, int64, int
- uint8, uint16, uint32, uint64, uint
- *big.Int
- string, []byte
- util.Uint160, *util.Uint160, util.Uint256, *util.Uint256
- bool
- stackitem.Convertible, stackitem.Item
- nil
- []any
func CheckSig ¶ added in v0.99.0
CheckSig emits a single-key verification script using given []bytes as a key. It does not check for key correctness, so you can get an invalid script if the data passed is not really a public key.
func Convertible ¶ added in v0.102.0
func Convertible(w *io.BinWriter, c stackitem.Convertible)
Convertible converts provided stackitem.Convertible to the stackitem.Item and emits the item to the given buffer.
func Instruction ¶
Instruction emits a VM Instruction with data to the given buffer.
func Opcodes ¶ added in v0.92.0
Opcodes emits a single VM Instruction without arguments to the given buffer.
Types ¶
This section is empty.