Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + func SeralizeObject(m StorageObject) ([]byte, error) + func WrapObject(v interface{}) wrappingObject + type ChaincodeRuntime struct + Core CoreInterface + Storage StateMap + Tx TransactionInterface + func NewRuntime(root string, stub shim.ChaincodeStubInterface, cfg *Config) *ChaincodeRuntime + func (r *ChaincodeRuntime) Stub() shim.ChaincodeStubInterface + func (r *ChaincodeRuntime) SubRuntime(node string) *ChaincodeRuntime + type Config struct + ReadOnly bool + func NewConfig() *Config + func (c *Config) SetReadOnly(flag bool) + type CoreInterface interface + GetRawStub func() interface{} + SetEvent func(name string, payload []byte) error + type ExtendedObject struct + Ext interface{} + func (ExtendedObject) Error() string + type StateMap interface + Delete func(string) error + Get func(string, StorageObject) error + GetRaw func(string) ([]byte, error) + Set func(string, StorageObject) error + SetRaw func(string, []byte) error + StoragePath func() string + SubMap func(string) StateMap + func NewShimMap(root string, stub shim.ChaincodeStubInterface, readOnly bool) StateMap + type StateMap_Legacy interface + Get func(string, p.Message) error + GetRaw func(string) ([]byte, error) + Set func(string, p.Message) error + SetRaw func(string, []byte) error + StoragePath func() string + SubMap func(string) StateMap_Legacy + func NewShimMapLegacy(root string, stub shim.ChaincodeStubInterface, readOnly bool) StateMap_Legacy + type StorageObject interface + GetObject func() interface{} + Load func(interface{}) error + Save func() interface{} + type TransactionInterface interface + GetArgs func() [][]byte + GetStringArgs func() []string + GetTxID func() string + GetTxTime func() (time.Time, error)