apps

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBoxKey

func MakeBoxKey(appIdx uint64, name string) string

MakeBoxKey creates the key that a box named `name` under app `appIdx` should use.

func SplitBoxKey

func SplitBoxKey(key string) (uint64, string, error)

SplitBoxKey extracts an appid and box name from a string that was created by MakeBoxKey()

Types

type AppCallBytes

type AppCallBytes struct {
	Encoding string `codec:"encoding"`
	Value    string `codec:"value"`
}

AppCallBytes represents an encoding and a value of an app call argument.

func NewAppCallBytes

func NewAppCallBytes(arg string) (AppCallBytes, error)

NewAppCallBytes parses an argument of the form "encoding:value" to AppCallBytes.

func (AppCallBytes) Raw

func (arg AppCallBytes) Raw() (rawValue []byte, parseErr error)

Raw converts an AppCallBytes arg to a byte array.

Jump to

Keyboard shortcuts

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