common_vm

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyDelimiter = []byte(":")
	VMKey        = []byte("vm")
)

Functions

func MakePathKey

func MakePathKey(path vm_grpc.VMAccessPath) []byte

Make path for storage from VMAccessPath.

Types

type VMStorage

type VMStorage interface {
	GetOracleAccessPath(assetCode string) *vm_grpc.VMAccessPath
	SetValue(ctx sdk.Context, accessPath *vm_grpc.VMAccessPath, value []byte)
	GetValue(ctx sdk.Context, accessPath *vm_grpc.VMAccessPath) []byte
	DelValue(ctx sdk.Context, accessPath *vm_grpc.VMAccessPath)
}

Interface for other keepers to get/set data.

Jump to

Keyboard shortcuts

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