utils

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeWasm

func DecodeWasm(oMsg interface{}, data []byte) []byte

func GetContractAddressFromInstantiate

func GetContractAddressFromInstantiate(result *types.BlockState, _ error) string

func GetWasmBytes

func GetWasmBytes(p string) (wasmBytes []byte)

func IsJSONKeyPresent

func IsJSONKeyPresent(data interface{}, key string) bool

HasKey is 1 level deep key finder. returns false if key is not found.

func IsZero

func IsZero(data interface{}) bool

func MsgRouteAndTypeToString

func MsgRouteAndTypeToString(route, t string) string

func MustPass

func MustPass(blockState *types.BlockState, e error) *types.BlockState

func MustUnmarshal

func MustUnmarshal(data []byte, target interface{})

MustUnmarshal panics if json unmarshal fails. Use with care.

Types

This section is empty.

Jump to

Keyboard shortcuts

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