sdkutils

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtherFromWei

func EtherFromWei(amtWei *big.Int) *big.Float

func MakeOneDecimalAllChainsMap

func MakeOneDecimalAllChainsMap(decimals uint8) chainid.Uint8Map

func MakeOneDecimalForChainsMap

func MakeOneDecimalForChainsMap(decimals uint8, chains ...chainid.ChainID) chainid.Uint8Map

func MarshalRaw

func MarshalRaw(raw interface{}) []byte

func NewCallOptsFromContext

func NewCallOptsFromContext(ctx context.Context) (opts *bind.CallOpts)

func NewCallOptsFromContextTimeout

func NewCallOptsFromContextTimeout(ctx context.Context, timeout time.Duration) (*bind.CallOpts, context.CancelFunc)

func NewCallOptsWithTimeoutCtx

func NewCallOptsWithTimeoutCtx(timeout time.Duration) (context.Context, context.CancelFunc, *bind.CallOpts)

func Stringify

func Stringify(data interface{}) string

Stringify returns the best possible string representation of data. If the passed data implements fmt.Stringer, then the result of data.String() is returned. Otherwise, the result of whatever fmt.Sprintf spits out is returned.

func WeiFromEther

func WeiFromEther(amtEther *big.Float) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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