package
0.0.0-20240514161515-056d7ba45610
Repository: https://github.com/skip-mev/chaintestutil.git
Documentation: pkg.go.dev
# Functions
AccAddress returns a sample account address.
Address returns a sample string account address.
AlphaString returns a random string with lowercase alpha char of length n.
Bool returns randomly true or false.
Bytes returns a random array of bytes.
Codec returns a codec with preregistered interfaces.
Coin returns a sample coin structure.
Coins returns a sample coins structure.
CoinsWithRange returns a sample coins structure where the amount is a random number between provided min and max values.
CoinsWithRangeAmount returns a sample coins structure where the amount is a random number between provided min and max values with a set of given denoms.
CoinWithRange returns a sample coin structure where the amount is a random number between provided min and max values with a random denom.
CoinWithRangeAmount returns a sample coin structure where the amount is a random number between provided min and max values with a given denom.
ConsAddress returns a sample consensus address.
Delegation returns staking delegation with the given address.
Duration returns a sample time.Duration between a second and 21 days.
DurationFromRange returns a sample time.Duration between the min and max values provided.
Int returns a sample sdkmath.Int.
No description provided by the author
NonAlphaString returns a random string with non alpha char of length n.
OperatorAddress returns a sample string validator operator address.
PubKey returns a sample account PubKey.
Rand returns a sample Rand object for randomness.
String returns a random string of length n.
Time returns a sample time.
Uint64 returns a random uint64.
ValAddress returns a sample validator operator address.
Validator returns a sample staking validator.
ZeroTime returns time.Time that represents 0.
# Type aliases
ExtraRegistries is a function passed to sample.InterfaceRegistry() where any added interface registries can be registered.