stdlibs

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

README

The subdirectories here core standard packages provided for Gno smart contracts. They are also made available for files tests.

The files in this directory are adapters for native Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NativeStore

func NativeStore(pkgPath string, name gno.Name) func(*gno.Machine)

NativeStore is used by the GnoVM to determine if the given function, specified by its pkgPath and name, has a native implementation; and if so retrieve it.

Types

type ExecContext

type ExecContext = libsstd.ExecContext

func GetContext

func GetContext(m *gno.Machine) ExecContext

type NativeFunc

type NativeFunc struct {
	// contains filtered or unexported fields
}

NativeFunc represents a function in the standard library which has a native (go-based) implementation, commonly referred to as a "native binding".

func FindNative

func FindNative(pkgPath string, name gno.Name) *NativeFunc

FindNative returns the NativeFunc associated with the given pkgPath+name combination. If there is none, FindNative returns nil.

func (*NativeFunc) HasMachineParam

func (n *NativeFunc) HasMachineParam() bool

HasMachineParam returns whether the given native binding has a machine parameter. This means that the Go version of this function expects a *gno.Machine as its first parameter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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