offchain

package
v5.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Offchain

type Offchain interface {
	LocalStorageGet(kind StorageKind, key []byte) (*types.StorageDataRaw, error)
	LocalStorageSet(kind StorageKind, key []byte, value []byte) error
}

func NewOffchain

func NewOffchain(c client.Client) Offchain

NewOffchain creates a new offchain struct

type StorageKind

type StorageKind string

StorageKind ...

const (
	// Persistent storage
	Persistent StorageKind = "PERSISTENT"
	// Local storage
	Local StorageKind = "LOCAL"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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