Documentation
¶
Index ¶
- func AppCall(w *io.BinWriter, scriptHash util.Uint160, tailCall bool)
- func AppCallWithOperation(w *io.BinWriter, scriptHash util.Uint160, operation string)
- func AppCallWithOperationAndArgs(w *io.BinWriter, scriptHash util.Uint160, operation string, ...)
- func AppCallWithOperationAndData(w *io.BinWriter, scriptHash util.Uint160, operation string, data []byte)
- func Array(w *io.BinWriter, es ...interface{})
- func Bool(w *io.BinWriter, ok bool)
- func Bytes(w *io.BinWriter, b []byte)
- func BytesToInt(data []byte) *big.Int
- func Call(w *io.BinWriter, op opcode.Opcode, label uint16)
- func Instruction(w *io.BinWriter, op opcode.Opcode, b []byte)
- func Int(w *io.BinWriter, i int64)
- func IntToBytes(n *big.Int) []byte
- func Jmp(w *io.BinWriter, op opcode.Opcode, label uint16)
- func Opcode(w *io.BinWriter, op opcode.Opcode)
- 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 ¶
AppCall emits an appcall, if tailCall is true, tailCall opcode will be emitted instead.
func AppCallWithOperation ¶
AppCallWithOperation emits an appcall with the given operation.
func AppCallWithOperationAndArgs ¶ added in v0.75.0
func AppCallWithOperationAndArgs(w *io.BinWriter, scriptHash util.Uint160, operation string, args ...interface{})
AppCallWithOperationAndArgs emits an APPCALL with the given operation and arguments.
func AppCallWithOperationAndData ¶
func AppCallWithOperationAndData(w *io.BinWriter, scriptHash util.Uint160, operation string, data []byte)
AppCallWithOperationAndData emits an appcall with the given operation and data.
func BytesToInt ¶
BytesToInt converts data in little-endian format to an integer.
func Instruction ¶
Instruction emits a VM Instruction with data to the given buffer.
func IntToBytes ¶
IntToBytes converts integer to a slice in little-endian format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.