coinutil

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MulDec

func MulDec(coins sdk.Coins, num osmomath.Dec) sdk.Coins

MulDec multiplies the coins by the given decimal Does not mutate the input coins and returns new coins.

func MulDecMut

func MulDecMut(coins sdk.Coins, num osmomath.Dec)

MulDecMut multiplies the coins by the given decimal Mutates the input coins

func MulInt

func MulInt(coins sdk.Coins, num osmomath.Int) sdk.Coins

MulInt multiplies the coins by the given integer Does not mutate the input coins and returns new coins.

func MulIntMut

func MulIntMut(coins sdk.Coins, num osmomath.Int)

MulIntMut multiplies the coins by the given integer Mutates the input coins

func MulRaw

func MulRaw(coins sdk.Coins, num int64) sdk.Coins

MulRaw multiplies the coins by the given integer Does not mutate the input coins and returns new coins.

func MulRawMut

func MulRawMut(coins sdk.Coins, num int64) sdk.Coins

MulRawMut multiplies the coins by the given integer Mutates the input coins

func QuoDec

func QuoDec(coins sdk.Coins, num osmomath.Dec) sdk.Coins

QuoDec divides the coins by the given integer Does not mutate the input coins and returns new coins.

func QuoDecMut

func QuoDecMut(coins sdk.Coins, num osmomath.Dec)

QuoIntMut divides the coins by the given decimal Mutates the input coins

func QuoInt

func QuoInt(coins sdk.Coins, num osmomath.Int) sdk.Coins

QuoInt divides the coins by the given integer Does not mutate the input coins and returns new coins.

func QuoIntMut

func QuoIntMut(coins sdk.Coins, num osmomath.Int)

QuoIntMut divides the coins by the given integer Mutates the input coins

func QuoRaw

func QuoRaw(coins sdk.Coins, num int64) sdk.Coins

QuoRaw divides the coins by the given integer Does not mutate the input coins and returns new coins.

func QuoRawMut

func QuoRawMut(coins sdk.Coins, num int64)

QuoRawMut divides the coins by the given integer Mutates the input coins

Types

This section is empty.

Jump to

Keyboard shortcuts

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