Documentation
¶
Index ¶
- Constants
- Variables
- func SyscallAbortImpl(_ sbf.VM, _ int) (r0 uint64, cuOut int, err error)
- func SyscallLog64Impl(vm sbf.VM, r1, r2, r3, r4, r5 uint64, cuIn int) (r0 uint64, cuOut int, err error)
- func SyscallLogCUsImpl(vm sbf.VM, cuIn int) (r0 uint64, cuOut int, err error)
- func SyscallLogImpl(vm sbf.VM, ptr, strlen uint64, cuIn int) (r0 uint64, cuOut int, err error)
- func SyscallLogPubkeyImpl(vm sbf.VM, pubkeyAddr uint64, cuIn int) (r0 uint64, cuOut int, err error)
- func Syscalls() sbf.SyscallRegistry
- type AccountParam
- type Execution
- type LogRecorder
- type Logger
- type Params
- type TxContext
Constants ¶
View Source
const (
CUSyscallBaseCost = 100
)
View Source
const ReallocAlign = 8
ReallocAlign is the byte amount by which the data following a realloc is aligned.
View Source
const ReallocSpace = 1024 * 10
ReallocSpace is the allowed length by which an account is allowed to grow.
Variables ¶
View Source
var SyscallAbort = sbf.SyscallFunc0(SyscallAbortImpl)
View Source
var SyscallLog = sbf.SyscallFunc2(SyscallLogImpl)
View Source
var SyscallLog64 = sbf.SyscallFunc5(SyscallLog64Impl)
View Source
var SyscallLogCUs = sbf.SyscallFunc0(SyscallLogCUsImpl)
View Source
var SyscallLogPubkey = sbf.SyscallFunc1(SyscallLogPubkeyImpl)
Functions ¶
func SyscallLog64Impl ¶
func SyscallLogCUsImpl ¶
func SyscallLogImpl ¶
func SyscallLogPubkeyImpl ¶
func Syscalls ¶
func Syscalls() sbf.SyscallRegistry
Syscalls creates a registry of all Sealevel syscalls.
Types ¶
type AccountParam ¶
type AccountParam struct { IsDuplicate bool DuplicateIndex uint8 // must not be 0xFF IsSigner bool IsWritable bool IsExecutable bool Key solana.PublicKey Owner solana.PublicKey Lamports uint64 Data []byte Padding int // ignored, written by serializer RentEpoch uint64 }
AccountParam is an account input to a program execution.
type LogRecorder ¶
type LogRecorder struct {
Logs []string
}
func (*LogRecorder) Log ¶
func (r *LogRecorder) Log(s string)
Click to show internal directories.
Click to hide internal directories.