util

package
v1.2.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EncodingConfig params.EncodingConfig
	Cdc            codec.Codec
)

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

func Eventually

func Eventually(condition func() bool, waitFor time.Duration, tick time.Duration) error

Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. copied and modified this function from testify assertion package

func NewProposalJSON

func NewProposalJSON(messages []sdk.Msg) (string, error)

func WriteFile

func WriteFile(path string, body []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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