sample

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 38 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSample = errors.New("sample error")

Functions

func AccAddress

func AccAddress() string

AccAddress returns a sample account address in string

func AppGenesis

func AppGenesis(t *testing.T) *genutiltypes.AppGenesis

func AppState

func AppState(t *testing.T) map[string]json.RawMessage

func BallotList_pell

func BallotList_pell(n int, observerSet []string) []types.Ballot

func Ballot_pell

func Ballot_pell(t *testing.T, index string) *types.Ballot

func Bech32AccAddress

func Bech32AccAddress() sdk.AccAddress

Bech32AccAddress returns a sample account address

func BlameRecord_pell

func BlameRecord_pell(t *testing.T, index string) types.Blame

func BlameRecordsList_pell

func BlameRecordsList_pell(t *testing.T, n int) []types.Blame

func BlockHeader

func BlockHeader(blockHash []byte) proofs.BlockHeader

func Bytes

func Bytes() []byte

Bytes returns a sample byte array

func Chain

func Chain(chainID int64) *chains.Chain

func ChainNoncesList_pell

func ChainNoncesList_pell(t *testing.T, n int) []types.ChainNonces

func ChainNonces_pell

func ChainNonces_pell(t *testing.T, index string) types.ChainNonces

func ChainParamsList_pell

func ChainParamsList_pell() (cpl types.ChainParamsList)

func ChainParamsSupported_pell

func ChainParamsSupported_pell(chainID int64) *types.ChainParams

func ChainParams_pell

func ChainParams_pell(chainID int64) *types.ChainParams

func ChainState

func ChainState(chainID int64) lightclienttypes.ChainState

func Coins

func Coins() sdk.Coins

Coins returns a sample sdk.Coins

func CreateTempDir

func CreateTempDir(t *testing.T) string

create a temporary directory for testing

func CrosschainFlags_pell

func CrosschainFlags_pell() *types.CrosschainFlags

func CustomXmsgsInBlockRange

func CustomXmsgsInBlockRange(
	t *testing.T,
	lowBlock uint64,
	highBlock uint64,
	senderChainID int64,
	receiverChainID int64,
	status types.XmsgStatus,
) (cctxs []*types.Xmsg)

CustomXmsgsInBlockRange create 1 cctx per block in block range [lowBlock, highBlock] (inclusive)

func EthAddress

func EthAddress() ethcommon.Address

EthAddress returns a sample ethereum address

func EthTx

func EthTx(t *testing.T, chainID int64, to ethcommon.Address, nonce uint64) (*ethtypes.Transaction, []byte)

EthTx returns a sample ethereum transaction with the associated tx data bytes

func EthTxSigned

func EthTxSigned(
	t *testing.T,
	chainID int64,
	to ethcommon.Address,
	nonce uint64,
) (*ethtypes.Transaction, []byte, ethcommon.Address)

EthTxSigned returns a sample signed ethereum transaction with the address of the sender

func EventIndex

func EventIndex() uint64

func GasPrice_pell

func GasPrice_pell(t *testing.T, index string) *types.GasPrice

func GetValidPellSent_pell

func GetValidPellSent_pell(t *testing.T) (receipt ethtypes.Receipt)

func GetXmsgIndicesFromString_pell

func GetXmsgIndicesFromString_pell(index string) string

func Hash

func Hash() ethcommon.Hash

Hash returns a sample hash

func InTxHashToXmsg_pell

func InTxHashToXmsg_pell(t *testing.T, inTxHash string) types.InTxHashToXmsg

func InTxTracker_pell

func InTxTracker_pell(t *testing.T, index string) types.InTxTracker

func InboundPellTx_PellSend_pell

func InboundPellTx_PellSend_pell(r *rand.Rand) *types.InboundPellEvent

func InboundPellTx_StakerDelegated_pell

func InboundPellTx_StakerDelegated_pell(r *rand.Rand) *types.InboundPellEvent

func InboundPellTx_StakerDeposited_pell

func InboundPellTx_StakerDeposited_pell(r *rand.Rand) *types.InboundPellEvent

func InboundTxParamsValidChainID_pell

func InboundTxParamsValidChainID_pell(r *rand.Rand) *types.InboundTxParams

func InboundTxParams_pell

func InboundTxParams_pell(r *rand.Rand) *types.InboundTxParams

func InboundVote_pell

func InboundVote_pell(from, to int64) types.MsgVoteOnObservedInboundTx

func Int64InRange

func Int64InRange(low, high int64) int64

Int64InRange returns a sample int64 in the given ranges

func IntInRange

func IntInRange(low, high int64) sdkmath.Int

func Keygen_pell

func Keygen_pell(t *testing.T) *types.Keygen

func LastBlockHeight_pell

func LastBlockHeight_pell(t *testing.T, index string) *types.LastBlockHeight

func LastObserverCount_pell

func LastObserverCount_pell(lastChangeHeight int64) *types.LastRelayerCount

func LegacyObserverMapperList_pell

func LegacyObserverMapperList_pell(t *testing.T, n int, index string) []*types.RelayerMapper

func LegacyObserverMapper_pell

func LegacyObserverMapper_pell(t *testing.T, index string, observerList []string) *types.RelayerMapper

func NodeAccount_pell

func NodeAccount_pell() *types.NodeAccount

func NonceToXmsgList_pell

func NonceToXmsgList_pell(t *testing.T, index string, count int) []types.NonceToXmsg

func NonceToXmsg_pell

func NonceToXmsg_pell(t *testing.T, seed string) types.NonceToXmsg

func ObserverSet_pell

func ObserverSet_pell(n int) types.RelayerSet

func OutTxTracker_pell

func OutTxTracker_pell(t *testing.T, index string) types.OutTxTracker

func OutboundTxParamsValidChainID_pell

func OutboundTxParamsValidChainID_pell(r *rand.Rand) *types.OutboundTxParams

func OutboundTxParams_pell

func OutboundTxParams_pell(r *rand.Rand) *types.OutboundTxParams

func PellIndex

func PellIndex(t *testing.T) string

func PendingNoncesList_pell

func PendingNoncesList_pell(t *testing.T, index string, count int) []types.PendingNonces

func Policies

func Policies() authoritytypes.Policies

func PrivKeyAddressPair

func PrivKeyAddressPair() (*ed25519.PrivKey, sdk.AccAddress)

PrivKeyAddressPair returns a private key, address pair

func Proof

Proof generates a proof and block header returns the proof, block header, block hash, tx index, chain id, and tx hash

func PubKey

func PubKey(r *rand.Rand) cryptotypes.PubKey

PubKey returns a sample account PubKey

func PubKeySet

func PubKeySet() *crypto.PubKeySet

func PubKeyString

func PubKeyString() string

PubKeyString returns a sample public key string

func Rand

func Rand() *rand.Rand

Rand returns a new random number generator

func RateLimiterFlags

func RateLimiterFlags() types.RateLimiterFlags

func RateLimiterFlags_pell

func RateLimiterFlags_pell() types.RateLimiterFlags

func Status_pell

func Status_pell(t *testing.T, index string) *types.Status

func String

func String() string

String returns a sample string

func StringRandom

func StringRandom(r *rand.Rand, length int) string

StringRandom returns a sample string with random alphanumeric characters

func SystemContract_pell

func SystemContract_pell() *types.SystemContract

func TssFundsMigrator_pell

func TssFundsMigrator_pell(chainID int64) types.TssFundMigratorInfo

func TssList_pell

func TssList_pell(n int) (tssList []types.TSS)

func Tss_pell

func Tss_pell() types.TSS

func Uint64InRange

func Uint64InRange(low, high uint64) uint64

Uint64InRange returns a sample uint64 in the given ranges

func UintInRange

func UintInRange(low, high uint64) sdkmath.Uint

func ValAddress

func ValAddress(r *rand.Rand) sdk.ValAddress

ValAddress returns a sample validator operator address

func Validator

func Validator(t testing.TB, r *rand.Rand) stakingtypes.Validator

Validator returns a sample staking validator

func VerificationFlags

func VerificationFlags() lightclienttypes.VerificationFlags

func VotesSuccessOnly_pell

func VotesSuccessOnly_pell(voteCount int) []types.VoteType

func WithdrawableEmissions

func WithdrawableEmissions(t *testing.T) types.WithdrawableEmissions

func Xmsg_pell

func Xmsg_pell(t *testing.T, index string) *types.Xmsg

Types

This section is empty.

Jump to

Keyboard shortcuts

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