unsafe

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Overview

Package unsafe quarantines the stack-walking and tx-origin primitives. See unsafe.gno for the security rationale.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X_getRealm

func X_getRealm(m *gno.Machine, height int) (address, pkgPath string)

func X_originCaller

func X_originCaller(m *gno.Machine) string

func X_originSend

func X_originSend(m *gno.Machine) (denoms []string, amounts []int64)

X_originSend is the native binding for the OriginSend envelope, a tx-origin primitive (see Class-2 in docs/resources/gno-security.md), so it sits with the other tx-origin natives rather than with the banker.

The expansion below repeats banker.ExpandCoins rather than calling it, so this package need not import the banker it is quarantined from. The two write one wire shape and have to stay in step.

Types

This section is empty.

Jump to

Keyboard shortcuts

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