utils

package
v0.0.0-...-bf46863 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorByteLimit = 50
View Source
const ZeroUserProvidedGas = 0

Variables

This section is empty.

Functions

func BytesToDec

func BytesToDec(bz []byte) sdk.Dec

func DecToBigEndian

func DecToBigEndian(d sdk.Dec) (res []byte)

func GetGasMeterForLimit

func GetGasMeterForLimit(limit uint64) sdk.GasMeter

func GetMemState

func GetMemState(ctx context.Context) *dexcache.MemState

func GetTruncatedErrors

func GetTruncatedErrors(err error) string

Types

type MemStateKeyType

type MemStateKeyType string
const DexMemStateContextKey MemStateKeyType = MemStateKeyType("dex-memstate")

Jump to

Keyboard shortcuts

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