{"modulePath":"github.com/ignite/modules","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sample\n\nPackage sample provides methods to initialize sample object of various types for test purposes\n\n## Functions\n\n```go\nfunc AccAddress(r *rand.Rand) sdk.AccAddress\n```\nAccAddress returns a sample account address\n\n```go\nfunc Address(r *rand.Rand) string\n```\nAddress returns a sample string account address\n\n```go\nfunc AlphaString(r *rand.Rand, n int) string\n```\nAlphaString returns a random string with lowercase alpha char of length n\n\n```go\nfunc Bool(r *rand.Rand) bool\n```\nBool returns randomly true or false\n\n```go\nfunc Bytes(r *rand.Rand, n int) []byte\n```\nBytes returns a random array of bytes\n\n```go\nfunc ClaimRecord(r *rand.Rand) claim.ClaimRecord\n```\n\n```go\nfunc Codec() codec.Codec\n```\nCodec returns a codec with preregistered interfaces\n\n```go\nfunc Coin(r *rand.Rand) sdk.Coin\n```\nCoin returns a sample coin structure\n\n```go\nfunc CoinWithRange(r *rand.Rand, min, max int64) sdk.Coin\n```\nCoinWithRange returns a sample coin structure where the amount is a random number between provided min and max values with a random denom\n\n```go\nfunc CoinWithRangeAmount(r *rand.Rand, denom string, min, max int64) sdk.Coin\n```\nCoinWithRangeAmount returns a sample coin structure where the amount is a random number between provided min and max values with a given denom\n\n```go\nfunc Coins(r *rand.Rand) sdk.Coins\n```\nCoins returns a sample coins structure\n\n```go\nfunc CoinsWithRange(r *rand.Rand, min, max int64) sdk.Coins\n```\nCoinsWithRange returns a sample coins structure where the amount is a random number between provided min and max values\n\n```go\nfunc CoinsWithRangeAmount(r *rand.Rand, denom1, denom2, denom3 string, min, max int64) sdk.Coins\n```\nCoinsWithRangeAmount returns a sample coins structure where the amount is a random number between provided min and max values with a set of given denoms\n\n```go\nfunc ConsAddress(r *rand.Rand) sdk.ConsAddress\n```\nConsAddress returns a sample consensus address\n\n```go\nfunc Delegation(t testing.TB, r *rand.Rand, addr string) stakingtypes.Delegation\n```\nDelegation returns staking delegation with the given address\n\n```go\nfunc Duration(r *rand.Rand) time.Duration\n```\nDuration returns a sample time.Duration between a second and 21 days\n\n```go\nfunc DurationFromRange(r *rand.Rand, min, max time.Duration) time.Duration\n```\nDurationFromRange returns a sample time.Duration between the min and max values provided\n\n```go\nfunc Fees(r *rand.Rand, spendableCoins sdk.Coins) (sdk.Coins, error)\n```\nFees returns a random fee by selecting a random amount of bond denomination from the account's available balance. If the user doesn't have enough funds for paying fees, it returns empty coins.\n\n```go\nfunc Int(r *rand.Rand) sdkmath.Int\n```\nInt returns a sample sdkmath.Int\n\n```go\nfunc IntN(r *rand.Rand, n int64) sdkmath.Int\n```\nIntN returns a sample sdkmath.Int in open range \\[0, n)\n\n```go\nfunc Mission(r *rand.Rand) claim.Mission\n```\n\n```go\nfunc OperatorAddress(r *rand.Rand) string\n```\nOperatorAddress returns a sample string validator operator address\n\n```go\nfunc PubKey(r *rand.Rand) crypto.PubKey\n```\nPubKey returns a sample account PubKey\n\n```go\nfunc Rand() *rand.Rand\n```\nRand returns a sample Rand object for randomness\n\n```go\nfunc SimAccounts() (accounts []simtypes.Account)\n```\nSimAccounts returns a sample array of account for simulation\n\n```go\nfunc String(r *rand.Rand, n int) string\n```\nString returns a random string of length n\n\n```go\nfunc Uint64(r *rand.Rand) uint64\n```\nUint64 returns a random uint64\n\n```go\nfunc ValAddress(r *rand.Rand) sdk.ValAddress\n```\nValAddress returns a sample validator operator address\n\n```go\nfunc Validator(t testing.TB, r *rand.Rand) stakingtypes.Validator\n```\nValidator returns a sample staking validator\n\n","path":"github.com/ignite/modules/testutil/sample","name":"sample","synopsis":"Package sample provides methods to initialize sample object of various types for test purposes","isRedistributable":true}
