utils

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChainIDToPrefix = map[string]string{
	"osmosis-1":   "osmo",
	"neutron-1":   "neutron",
	"cosmoshub-4": "cosmos",
}

Functions

func CheckGas

func CheckGas(ctx context.Context, l *zap.Logger, b banktypes.QueryClient, account, denom string) error

func Contains

func Contains(slice []string, str string) bool

Contains checks if a slice contains a specific string.

func CreateEventChannel

func CreateEventChannel(ctx context.Context, l *zap.Logger, ws *rpchttp.HTTP, wsQuery string) <-chan coretypes.ResultEvent

func GetBalance

func GetBalance(ctx context.Context, client bank.QueryClient, user, denom string) (*bank.QueryBalanceResponse, error)

func MinBigInt

func MinBigInt(x, y *big.Int) *big.Int

func MinInt

func MinInt(x, y sdkmath.Int) sdkmath.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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