compat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPatchToIBCKeeper

func ApplyPatchToIBCKeeper(k ibckeeper.Keeper, cdc codec.BinaryMarshaler, key sdk.StoreKey, seqMgr commitment.SequenceManager) *ibckeeper.Keeper

ApplyPatchToIBCKeeper applies patches to ibc keeper

func NewSimpleIterator

func NewSimpleIterator(items []iterItem) *simpleIterator

func ReverseIterator

func ReverseIterator(itr dbm.Iterator) dbm.Iterator

Types

type BatchDB

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

func (*BatchDB) Close

func (db *BatchDB) Close() error

func (*BatchDB) Delete

func (db *BatchDB) Delete(key []byte) error

func (*BatchDB) Set

func (db *BatchDB) Set(key, value []byte) error

func (*BatchDB) Write

func (db *BatchDB) Write() error

func (*BatchDB) WriteSync

func (db *BatchDB) WriteSync() error

type DB

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

func NewDB

func NewDB(stub shim.ChaincodeStubInterface) *DB

func (*DB) Close

func (db *DB) Close() error

func (*DB) Delete

func (db *DB) Delete(key []byte) error

func (*DB) DeleteSync

func (db *DB) DeleteSync(key []byte) error

func (*DB) Get

func (db *DB) Get(key []byte) ([]byte, error)

func (*DB) Has

func (db *DB) Has(key []byte) (bool, error)

func (*DB) Iterator

func (db *DB) Iterator(start, end []byte) (dbm.Iterator, error)

func (*DB) NewBatch

func (db *DB) NewBatch() dbm.Batch

func (*DB) Print

func (db *DB) Print() error

func (*DB) ReverseIterator

func (db *DB) ReverseIterator(start, end []byte) (dbm.Iterator, error)

func (*DB) Set

func (db *DB) Set(key, value []byte) error

func (*DB) SetSync

func (db *DB) SetSync(key, value []byte) error

func (*DB) Stats

func (db *DB) Stats() map[string]string

type Iterator

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

func NewIterator

func NewIterator(start, end []byte, qi shim.StateQueryIteratorInterface) *Iterator

func (*Iterator) Close

func (iter *Iterator) Close() error

func (*Iterator) Domain

func (iter *Iterator) Domain() ([]byte, []byte)

func (*Iterator) Error

func (iter *Iterator) Error() error

func (*Iterator) Key

func (iter *Iterator) Key() []byte

func (*Iterator) Next

func (iter *Iterator) Next()

func (*Iterator) Valid

func (iter *Iterator) Valid() bool

func (*Iterator) Value

func (iter *Iterator) Value() []byte

Jump to

Keyboard shortcuts

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