ledgerapi

package
v0.0.0-...-efa194f Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeKey

func MakeKey(keyParts ...string) string

func SplitKey

func SplitKey(key string) []string

Types

type StateInterface

type StateInterface interface {
	GetSplitKey() []string
	Serialize() ([]byte, error)
}

type StateList

type StateList struct {
	Ctx         contractapi.TransactionContextInterface
	Name        string
	Deserialize func([]byte, StateInterface) error
}

func (*StateList) AddState

func (sl *StateList) AddState(stateInterface StateInterface) error

func (*StateList) GetState

func (sl *StateList) GetState(key string, stateInterface StateInterface) error

func (*StateList) UpdateState

func (sl *StateList) UpdateState(stateInterface StateInterface) error

type StateListInterface

type StateListInterface interface {
	AddState(StateInterface) error
	GetState(string, StateInterface) error
	UpdateState(StateInterface) error
}

Jump to

Keyboard shortcuts

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