utils

package
v0.0.0-...-a08de0b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: CC0-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CadanceConvertString

func CadanceConvertString(val cadence.Value) (string, error)

func CadenceConvertStringArray

func CadenceConvertStringArray(value cadence.Value) ([]string, error)

func CadenceConvertUint32

func CadenceConvertUint32(value cadence.Value) (uint32, error)

func CadenceConvertUint64

func CadenceConvertUint64(value cadence.Value) (uint64, error)

func CadenceConvertUint8

func CadenceConvertUint8(value cadence.Value) (uint8, error)

func CheckRewardPaidEvent

func CheckRewardPaidEvent(flowClient client.Proxy) (bool, error)

func SplitDelegatorNodeInfo

func SplitDelegatorNodeInfo(inputarr []types.DelegatorNodeInfo, paramsNumber int) [][]types.DelegatorNodeInfo

func TestAuthProxyTestSuite

func TestAuthProxyTestSuite(t *testing.T)

func TestDbProxyTestSuite

func TestDbProxyTestSuite(t *testing.T)

func WatchMethod

func WatchMethod(method func() error)

WatchMethod allows to watch for a method that returns an error. It executes the given method in a goroutine, logging any error that might raise.

Types

type DbProxyTestSuite

type DbProxyTestSuite struct {
	ProxyTestSuite
	Database *database.Db
}

func (*DbProxyTestSuite) SetupTest

func (suite *DbProxyTestSuite) SetupTest()

type ProxyTestSuite

type ProxyTestSuite struct {
	suite.Suite

	Proxy *client.Proxy
}

func (*ProxyTestSuite) SetupTest

func (suite *ProxyTestSuite) SetupTest()

Jump to

Keyboard shortcuts

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