params

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(m *gno.Machine, key string) (bool, bool)

func GetBytes

func GetBytes(m *gno.Machine, key string) ([]byte, bool)

func GetInt64

func GetInt64(m *gno.Machine, key string) (int64, bool)

func GetString

func GetString(m *gno.Machine, key string) (string, bool)

GetString reads a realm-local param previously written with SetString.

The bool reports whether anything is stored at the key, NOT whether it holds the type being asked for. Reading at the wrong type panics or converts, and never reports false. The same applies to every GetXxx below; see the doc on params.gno for what each mismatch does.

func GetStrings

func GetStrings(m *gno.Machine, key string) ([]string, bool)

func GetUint64

func GetUint64(m *gno.Machine, key string) (uint64, bool)

func SetBool

func SetBool(m *gno.Machine, key string, val bool)

func SetBytes

func SetBytes(m *gno.Machine, key string, val []byte)

func SetInt64

func SetInt64(m *gno.Machine, key string, val int64)

func SetString

func SetString(m *gno.Machine, key, val string)

func SetStrings

func SetStrings(m *gno.Machine, key string, val []string)

func SetUint64

func SetUint64(m *gno.Machine, key string, val uint64)

func UpdateParamStrings

func UpdateParamStrings(m *gno.Machine, key string, val []string, add bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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