offchain

package
v3.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Offchain

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

Offchain exposes methods for retrieval of off-chain data

func NewOffchain

func NewOffchain(c client.Client) *Offchain

NewOffchain creates a new Offchain struct

func (*Offchain) LocalStorageGet

func (c *Offchain) LocalStorageGet(kind StorageKind, key []byte) (*types.StorageDataRaw, error)

LocalStorageGet retrieves the stored data

func (*Offchain) LocalStorageSet

func (c *Offchain) LocalStorageSet(kind StorageKind, key []byte, value []byte) error

LocalStorageSet saves the data

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