Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEqualFractionalBalances ¶
func GenerateEqualFractionalBalances( t *testing.T, count int, ) types.FractionalBalances
GenerateEqualFractionalBalances generates count number of FractionalBalances with randomly generated amounts such that the sum of all amounts is a multiple of types.CONVERSION_FACTOR. If a remainder is desired, any single FractionalBalance can be removed from the returned slice and used as the remainder.
func GenerateEqualFractionalBalancesWithRemainder ¶
func GenerateEqualFractionalBalancesWithRemainder( t *testing.T, count int, ) (types.FractionalBalances, sdkmath.Int)
GenerateEqualFractionalBalancesWithRemainder generates count number of FractionalBalances with randomly generated amounts as well as a non-zero remainder. 0 == (sum(FractionalBalances) + remainder) % conversionFactor Where remainder > 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.