offchain

package
v1.4.559 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-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"
)

Jump to

Keyboard shortcuts

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