Documentation
¶
Index ¶
- func ExecGroupProposal(ctx context.Context, chain *cosmos.CosmosChain, config *ibc.ChainConfig, ...) (string, error)
- 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 ManifestBurnTokens(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, keyName string, ...) (sdk.TxResponse, error)
- func ManifestStakeholderPayout(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, ...) (sdk.TxResponse, error)
- func POASetPower(ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, ...) (sdk.TxResponse, error)
- func POAUpdateParams(ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, admins string, ...) (sdk.TxResponse, error)
- func SubmitGroupProposal(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, ...) (string, error)
- 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
- func VoteGroupProposal(ctx context.Context, chain *cosmos.CosmosChain, config *ibc.ChainConfig, ...) (string, error)
- type BlockData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecGroupProposal ¶
func ExecGroupProposal(ctx context.Context, chain *cosmos.CosmosChain, config *ibc.ChainConfig, accAddr, proposalId string) (string, error)
func ExecuteExec ¶
func ExecuteQuery ¶
func ExecuteTransaction ¶
func ExecuteTransaction(ctx context.Context, chain *cosmos.CosmosChain, cmd []string) (sdk.TxResponse, error)
Executes a command from CommandBuilder
func ManifestBurnTokens ¶
func ManifestStakeholderPayout ¶
func ManifestStakeholderPayout(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, poaAdmin ibc.Wallet, payouts []manifesttypes.PayoutPair, flags ...string) (sdk.TxResponse, error)
func POASetPower ¶
func POAUpdateParams ¶
func SubmitGroupProposal ¶
func SubmitGroupProposal(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, config *ibc.ChainConfig, keyName string, prop *group.MsgSubmitProposal) (string, error)
SubmitGroupProposal submits a group proposal to the chain. TODO: This function should be part of `interchaintest` See https://github.com/strangelove-ventures/interchaintest/issues/1138
func TxCommandBuilder ¶
func TxCommandBuilderNode ¶
func VoteGroupProposal ¶
func VoteGroupProposal(ctx context.Context, chain *cosmos.CosmosChain, config *ibc.ChainConfig, proposalId, accAddr, vote, metadata string) (string, error)
VoteGroupProposal votes on a group proposal on the chain. TODO: This function should be part of `interchaintest` See https://github.com/strangelove-ventures/interchaintest/issues/1138
Types ¶
type BlockData ¶
type BlockData struct { Header struct { Version struct { Block string `json:"block"` App string `json:"app"` } `json:"version"` ChainID string `json:"chain_id"` Height string `json:"height"` Time string `json:"time"` LastBlockID struct { Hash string `json:"hash"` PartSetHeader struct { Total int `json:"total"` Hash string `json:"hash"` } `json:"part_set_header"` } `json:"last_block_id"` LastCommitHash string `json:"last_commit_hash"` DataHash string `json:"data_hash"` ValidatorsHash string `json:"validators_hash"` NextValidatorsHash string `json:"next_validators_hash"` ConsensusHash string `json:"consensus_hash"` AppHash string `json:"app_hash"` LastResultsHash string `json:"last_results_hash"` EvidenceHash string `json:"evidence_hash"` ProposerAddress string `json:"proposer_address"` } `json:"header"` Data struct { Txs []string `json:"txs"` } `json:"data"` Evidence struct { Evidence []any `json:"evidence"` } `json:"evidence"` LastCommit struct { Height string `json:"height"` Round int `json:"round"` BlockID struct { Hash string `json:"hash"` PartSetHeader struct { Total int `json:"total"` Hash string `json:"hash"` } `json:"part_set_header"` } `json:"block_id"` Signatures []struct { BlockIDFlag string `json:"block_id_flag"` ValidatorAddress string `json:"validator_address"` Timestamp string `json:"timestamp"` Signature string `json:"signature"` } `json:"signatures"` } `json:"last_commit"` }
SDK v50, not sure what the sdk.(type) is
func GetBlockData ¶
Click to show internal directories.
Click to hide internal directories.