Documentation ¶
Index ¶
- Variables
- func ExecuteExec(ctx context.Context, chain *cosmos.CosmosChain, cmd []string, i interface{}, ...)
- func ExecuteQuery(ctx context.Context, chain *cosmos.CosmosChain, cmd []string, i interface{}, ...)
- func ExecuteTransaction(ctx context.Context, chain *cosmos.CosmosChain, cmd []string) (sdk.TxResponse, error)
- func GetPOAConsensusPower(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, ...) int64
- func GetPOAParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) poa.Params
- func GetPOAPending(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) []poa.Validator
- func POACreatePendingValidator(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POARemove(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POARemovePending(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POASetPower(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POAUpdateParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POAUpdateStakingParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func SubmitGovernanceProposalForValidatorChanges(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) string
- func TxCommandBuilder(ctx context.Context, chain *cosmos.CosmosChain, cmd []string, fromUser string, ...) []string
- func TxCommandBuilderNode(ctx context.Context, node *cosmos.ChainNode, cmd []string, fromUser string, ...) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VotingPeriod = "15s" MaxDepositPeriod = "10s" Denom = "usnr" Name = "sonr" ChainID = "chainid-1" Binary = "sonrd" Bech32 = "idx" NumberVals = 1 NumberFullNodes = 0 GenesisFundsAmount = sdkmath.NewInt(1000_000000) // 1k tokens ChainImage = ibc.NewDockerImage("sonr", "local", "1025:1025") DefaultGenesis = []cosmos.GenesisKV{ cosmos.NewGenesisKV("app_state.gov.params.voting_period", VotingPeriod), cosmos.NewGenesisKV("app_state.gov.params.max_deposit_period", MaxDepositPeriod), cosmos.NewGenesisKV("app_state.gov.params.min_deposit.0.denom", Denom), cosmos.NewGenesisKV("app_state.gov.params.min_deposit.0.amount", "1"), cosmos.NewGenesisKV("app_state.poa.params.admins", []string{"idx10d07y265gmmuvt4z0w9aw880jnsr700j9kqcfa", "idx1hj5fveer5cjtn4wd6wstzugjfdxzl0xpecp0nd"}), cosmos.NewGenesisKV("app_state.globalfee.params.minimum_gas_prices", sdk.DecCoins{sdk.NewDecCoinFromDec(Denom, sdkmath.LegacyMustNewDecFromStr("0.0"))}), cosmos.NewGenesisKV("app_state.tokenfactory.params.denom_creation_fee", nil), cosmos.NewGenesisKV("app_state.tokenfactory.params.denom_creation_gas_consume", 1), } DefaultChainConfig = ibc.ChainConfig{ Images: []ibc.DockerImage{ ChainImage, }, GasAdjustment: 1.5, ModifyGenesis: cosmos.ModifyGenesis(DefaultGenesis), EncodingConfig: func() *moduletestutil.TestEncodingConfig { cfg := cosmos.DefaultEncoding() wasm.RegisterInterfaces(cfg.InterfaceRegistry) tokenfactory.RegisterInterfaces(cfg.InterfaceRegistry) globalfee.RegisterInterfaces(cfg.InterfaceRegistry) poa.RegisterInterfaces(cfg.InterfaceRegistry) return &cfg }(), Type: "cosmos", Name: Name, ChainID: ChainID, Bin: Binary, Bech32Prefix: Bech32, Denom: Denom, CoinType: "118", GasPrices: "0" + Denom, TrustingPeriod: "336h", } DefaultChainSpec = interchaintest.ChainSpec{ Name: Name, ChainName: Name, Version: ChainImage.Version, ChainConfig: DefaultChainConfig, NumValidators: &NumberVals, NumFullNodes: &NumberFullNodes, } // cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr - test_node.sh AccMnemonic = "" /* 148-byte string literal not displayed */ Acc1Mnemonic = "" /* 160-byte string literal not displayed */ RelayerRepo = "ghcr.io/cosmos/relayer" RelayerVersion = "main" )
Functions ¶
func ExecuteExec ¶
func ExecuteQuery ¶
func ExecuteQuery(ctx context.Context, chain *cosmos.CosmosChain, cmd []string, i interface{}, extraFlags ...string)
Other Helpers
func ExecuteTransaction ¶
func ExecuteTransaction(ctx context.Context, chain *cosmos.CosmosChain, cmd []string) (sdk.TxResponse, error)
Executes a command from CommandBuilder
func GetPOAConsensusPower ¶
func GetPOAParams ¶
func GetPOAPending ¶
func POARemovePending ¶
func POASetPower ¶
func POAUpdateParams ¶
func POAUpdateStakingParams ¶
func POAUpdateStakingParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, sp stakingtypes.Params) (sdk.TxResponse, error)
func TxCommandBuilder ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.