Documentation ¶
Index ¶
- func Create(cache Cache, wasm []byte) ([]byte, error)
- func GetCode(cache Cache, code_id []byte) ([]byte, error)
- func Handle(cache Cache, code_id []byte, env []byte, info []byte, msg []byte, ...) ([]byte, uint64, error)
- func Instantiate(cache Cache, code_id []byte, env []byte, info []byte, msg []byte, ...) ([]byte, uint64, error)
- func Migrate(cache Cache, code_id []byte, env []byte, info []byte, msg []byte, ...) ([]byte, uint64, error)
- func Query(cache Cache, code_id []byte, env []byte, msg []byte, gasMeter *GasMeter, ...) ([]byte, uint64, error)
- func ReleaseCache(cache Cache)
- type Cache
- type CanonicalizeAddress
- type DBState
- type Gas
- type GasMeter
- type GoAPI
- type HumanizeAddress
- type KVStore
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
func ReleaseCache ¶
func ReleaseCache(cache Cache)
Types ¶
type GasMeter ¶
type GasMeter interface {
GasConsumed() Gas
}
GasMeter is a copy of an interface declaration from cosmos-sdk https://github.com/cosmos/cosmos-sdk/blob/18890a225b46260a9adc587be6fa1cc2aff101cd/store/types/gas.go#L34
type GoAPI ¶
type GoAPI struct { HumanAddress HumanizeAddress CanonicalAddress CanonicalizeAddress }
type KVStore ¶
type KVStore interface { Get(key []byte) []byte Set(key, value []byte) Delete(key []byte) // Iterator over a domain of keys in ascending order. End is exclusive. // Start must be less than end, or the Iterator is invalid. // Iterator must be closed by caller. // To iterate over entire domain, use store.Iterator(nil, nil) Iterator(start, end []byte) dbm.Iterator // Iterator over a domain of keys in descending order. End is exclusive. // Start must be less than end, or the Iterator is invalid. // Iterator must be closed by caller. ReverseIterator(start, end []byte) dbm.Iterator }
KVStore copies a subset of types from cosmos-sdk We may wish to make this more generic sometime in the future, but not now https://github.com/cosmos/cosmos-sdk/blob/bef3689245bab591d7d169abd6bea52db97a70c7/store/types/store.go#L170
Click to show internal directories.
Click to hide internal directories.