Documentation
¶
Index ¶
- Constants
- Variables
- func ClientFromContext(ctx context.Context) (aclient.Client, error)
- func CmdCreateProviderAttributes() *cobra.Command
- func CmdDeleteProviderAttributes() *cobra.Command
- func DepositSources(flags *pflag.FlagSet) (deposit.Sources, error)
- func DetectBidDeposit(ctx context.Context, flags *pflag.FlagSet, cl aclient.QueryClient) (sdk.Coin, error)
- func DetectDeploymentDeposit(ctx context.Context, flags *pflag.FlagSet, cl aclient.QueryClient) (sdk.Coin, error)
- func DetectDeposit(ctx context.Context, flags *pflag.FlagSet, cl aclient.QueryClient, ...) (deposit.Deposit, error)
- func EventsCmd() *cobra.Command
- func GetAuditProviderCmd() *cobra.Command
- func GetAuditProvidersCmd() *cobra.Command
- func GetAuthMultiSignCmd() *cobra.Command
- func GetBMELedgerRecordsCmd() *cobra.Command
- func GetBMEParamsCmd() *cobra.Command
- func GetBMEStatusCmd() *cobra.Command
- func GetBMEVaultStateCmd() *cobra.Command
- func GetBroadcastCommand() *cobra.Command
- func GetClientContextFromCmd(cmd *cobra.Command) sdkclient.Context
- func GetClientQueryContext(cmd *cobra.Command) (sdkclient.Context, error)
- func GetClientTxContext(cmd *cobra.Command) (sdkclient.Context, error)
- func GetDecodeCommand() *cobra.Command
- func GetDeploymentGroupPauseCmd() *cobra.Command
- func GetDeploymentGroupStartCmd() *cobra.Command
- func GetEncodeCommand() *cobra.Command
- func GetOracleAggregatedPriceCmd() *cobra.Command
- func GetOraclePricesCmd() *cobra.Command
- func GetQueryAuditCmd() *cobra.Command
- func GetQueryAuthAccountAddressByIDCmd() *cobra.Command
- func GetQueryAuthAccountCmd() *cobra.Command
- func GetQueryAuthAccountsCmd() *cobra.Command
- func GetQueryAuthCmd() *cobra.Command
- func GetQueryAuthModuleAccountByNameCmd() *cobra.Command
- func GetQueryAuthModuleAccountsCmd() *cobra.Command
- func GetQueryAuthParamsCmd() *cobra.Command
- func GetQueryAuthTxCmd() *cobra.Command
- func GetQueryAuthTxsByEventsCmd() *cobra.Command
- func GetQueryAuthzCmd() *cobra.Command
- func GetQueryAuthzGranteeGrantsCmd() *cobra.Command
- func GetQueryAuthzGranterGrantsCmd() *cobra.Command
- func GetQueryAuthzGrantsCmd() *cobra.Command
- func GetQueryBMECmd() *cobra.Command
- func GetQueryBankBalancesCmd() *cobra.Command
- func GetQueryBankCmd() *cobra.Command
- func GetQueryBankDenomsMetadataCmd() *cobra.Command
- func GetQueryBankSendEnabledCmd() *cobra.Command
- func GetQueryBankSpendableBalancesCmd() *cobra.Command
- func GetQueryBankTotalSupplyCmd() *cobra.Command
- func GetQueryCertCertificatesCmd() *cobra.Command
- func GetQueryCertCmd() *cobra.Command
- func GetQueryContractCmd() *cobra.Command
- func GetQueryDeploymentCmds() *cobra.Command
- func GetQueryDeploymentGroupCmd() *cobra.Command
- func GetQueryDeploymentParamsCmd() *cobra.Command
- func GetQueryDistributionCmd() *cobra.Command
- func GetQueryDistributionCommunityPoolCmd() *cobra.Command
- func GetQueryDistributionDelegatorRewardsCmd() *cobra.Command
- func GetQueryDistributionParamsCmd() *cobra.Command
- func GetQueryDistributionValidatorCommissionCmd() *cobra.Command
- func GetQueryDistributionValidatorDistributionInfoCmd() *cobra.Command
- func GetQueryDistributionValidatorOutstandingRewardsCmd() *cobra.Command
- func GetQueryDistributionValidatorSlashesCmd() *cobra.Command
- func GetQueryEscrowAccountsCmd() *cobra.Command
- func GetQueryEscrowBlocksRemainingCmd() *cobra.Command
- func GetQueryEscrowCmd() *cobra.Command
- func GetQueryEscrowPaymentsCmd() *cobra.Command
- func GetQueryEvidenceCmd() *cobra.Command
- func GetQueryFeeGrantCmd() *cobra.Command
- func GetQueryFeeGrantsByGranteeCmd() *cobra.Command
- func GetQueryFeeGrantsByGranterCmd() *cobra.Command
- func GetQueryFeegrantCmd() *cobra.Command
- func GetQueryGovCmd() *cobra.Command
- func GetQueryGovDepositCmd() *cobra.Command
- func GetQueryGovDepositsCmd() *cobra.Command
- func GetQueryGovParamCmd() *cobra.Command
- func GetQueryGovProposalCmd() *cobra.Command
- func GetQueryGovProposalsCmd() *cobra.Command
- func GetQueryGovProposerCmd() *cobra.Command
- func GetQueryGovQueryParamsCmd() *cobra.Command
- func GetQueryGovTallyCmd() *cobra.Command
- func GetQueryGovVoteCmd() *cobra.Command
- func GetQueryGovVotesCmd() *cobra.Command
- func GetQueryMarketBidCmd() *cobra.Command
- func GetQueryMarketCmds() *cobra.Command
- func GetQueryMarketLeaseCmd() *cobra.Command
- func GetQueryMarketOrderCmd() *cobra.Command
- func GetQueryMarketParamsCmd() *cobra.Command
- func GetQueryMintAnnualProvisionsCmd() *cobra.Command
- func GetQueryMintCmd() *cobra.Command
- func GetQueryMintInflationCmd() *cobra.Command
- func GetQueryMintParamsCmd() *cobra.Command
- func GetQueryModuleNameToAddressCmd() *cobra.Command
- func GetQueryOracleCmd() *cobra.Command
- func GetQueryOracleParamsCmd() *cobra.Command
- func GetQueryParamsCmd() *cobra.Command
- func GetQueryParamsSubspaceCmd() *cobra.Command
- func GetQueryProviderCmd() *cobra.Command
- func GetQueryProviderCmds() *cobra.Command
- func GetQueryProvidersCmd() *cobra.Command
- func GetQuerySinkCmd() *cobra.Command
- func GetQuerySlashingCmd() *cobra.Command
- func GetQuerySlashingParamsCmd() *cobra.Command
- func GetQuerySlashingSigningInfoCmd() *cobra.Command
- func GetQuerySlashingSigningInfosCmd() *cobra.Command
- func GetQueryStakingCmd() *cobra.Command
- func GetQueryStakingDelegationCmd() *cobra.Command
- func GetQueryStakingDelegationsCmd() *cobra.Command
- func GetQueryStakingHistoricalInfoCmd() *cobra.Command
- func GetQueryStakingParamsCmd() *cobra.Command
- func GetQueryStakingPoolCmd() *cobra.Command
- func GetQueryStakingRedelegationCmd() *cobra.Command
- func GetQueryStakingRedelegationsCmd() *cobra.Command
- func GetQueryStakingUnbondingDelegationCmd() *cobra.Command
- func GetQueryStakingUnbondingDelegationsCmd() *cobra.Command
- func GetQueryStakingValidatorCmd() *cobra.Command
- func GetQueryStakingValidatorDelegationsCmd() *cobra.Command
- func GetQueryStakingValidatorRedelegationsCmd() *cobra.Command
- func GetQueryStakingValidatorUnbondingDelegationsCmd() *cobra.Command
- func GetQueryStakingValidatorsCmd() *cobra.Command
- func GetQueryUpgradeAppliedPlanCmd() *cobra.Command
- func GetQueryUpgradeCmd() *cobra.Command
- func GetQueryUpgradeCurrentPlanCmd() *cobra.Command
- func GetQueryUpgradeModuleVersionsCmd() *cobra.Command
- func GetQueryWasmBuildAddressCmd() *cobra.Command
- func GetQueryWasmCmd() *cobra.Command
- func GetQueryWasmCodeCmd() *cobra.Command
- func GetQueryWasmCodeInfoCmd() *cobra.Command
- func GetQueryWasmContractHistoryCmd() *cobra.Command
- func GetQueryWasmContractInfoCmd() *cobra.Command
- func GetQueryWasmContractStateAllCmd() *cobra.Command
- func GetQueryWasmContractStateCmd() *cobra.Command
- func GetQueryWasmContractStateRawCmd() *cobra.Command
- func GetQueryWasmContractStateSmartCmd() *cobra.Command
- func GetQueryWasmListCodeCmd() *cobra.Command
- func GetQueryWasmListContractByCodeCmd() *cobra.Command
- func GetQueryWasmListContractsByCreatorCmd() *cobra.Command
- func GetQueryWasmListPinnedCodeCmd() *cobra.Command
- func GetQueryWasmParamsCmd() *cobra.Command
- func GetRPCURIFromContext(ctx context.Context) string
- func GetSignBatchCommand() *cobra.Command
- func GetSignCommand() *cobra.Command
- func GetSinkAccountCmd() *cobra.Command
- func GetSinkDisputesCmd() *cobra.Command
- func GetSinkParamsCmd() *cobra.Command
- func GetSinkReportersCmd() *cobra.Command
- func GetSinkStateCmd() *cobra.Command
- func GetSinkTransferCmd() *cobra.Command
- func GetSinkTransfersCmd() *cobra.Command
- func GetTxAuditAttributesCmd() *cobra.Command
- func GetTxAuditCmd() *cobra.Command
- func GetTxAuthzCmd() *cobra.Command
- func GetTxAuthzExecAuthorizationCmd() *cobra.Command
- func GetTxAuthzGrantAuthorizationCmd() *cobra.Command
- func GetTxAuthzGrantContractAuthorizationCmd() *cobra.Command
- func GetTxAuthzGrantStoreCodeAuthorizationCmd() *cobra.Command
- func GetTxAuthzRevokeAuthorizationCmd() *cobra.Command
- func GetTxBMEBurnACTCmd() *cobra.Command
- func GetTxBMEBurnMintCmd() *cobra.Command
- func GetTxBMECmd() *cobra.Command
- func GetTxBMEMintACTCmd() *cobra.Command
- func GetTxBankCmd() *cobra.Command
- func GetTxBankMultiSendTxCmd() *cobra.Command
- func GetTxBankSendTxCmd() *cobra.Command
- func GetTxCertCmd() *cobra.Command
- func GetTxCertGenerateClientCmd() *cobra.Command
- func GetTxCertGenerateCmd() *cobra.Command
- func GetTxCertGenerateServerCmd() *cobra.Command
- func GetTxCertPublishClientCmd() *cobra.Command
- func GetTxCertPublishCmd() *cobra.Command
- func GetTxCertPublishServerCmd() *cobra.Command
- func GetTxCertRevokeCmd() *cobra.Command
- func GetTxCertRevokeServerCmd() *cobra.Command
- func GetTxCertsRevokeClientCmd() *cobra.Command
- func GetTxDeploymentCloseCmd() *cobra.Command
- func GetTxDeploymentCmds() *cobra.Command
- func GetTxDeploymentCreateCmd() *cobra.Command
- func GetTxDeploymentGroupCloseCmd() *cobra.Command
- func GetTxDeploymentGroupCmds() *cobra.Command
- func GetTxDeploymentUpdateCmd() *cobra.Command
- func GetTxDistributionDepositValidatorRewardsPoolCmd() *cobra.Command
- func GetTxDistributionFundCommunityPoolCmd() *cobra.Command
- func GetTxDistributionSetWithdrawAddrCmd() *cobra.Command
- func GetTxDistributionWithdrawAllRewardsCmd() *cobra.Command
- func GetTxDistributionWithdrawRewardsCmd() *cobra.Command
- func GetTxEscrowCmd() *cobra.Command
- func GetTxEscrowDeposit() *cobra.Command
- func GetTxFeegrantCmd() *cobra.Command
- func GetTxFeegrantGrantCmd() *cobra.Command
- func GetTxFeegrantRevokeCmd() *cobra.Command
- func GetTxGovCancelProposalCmd() *cobra.Command
- func GetTxGovCmd(legacyPropCmds []*cobra.Command) *cobra.Command
- func GetTxGovDepositCmd() *cobra.Command
- func GetTxGovDraftProposalCmd() *cobra.Command
- func GetTxGovSubmitLegacyProposalCmd() *cobra.Command
- func GetTxGovSubmitProposalCmd() *cobra.Command
- func GetTxGovVoteCmd() *cobra.Command
- func GetTxGovWasmProposalAddCodeUploadParamsAddresses() *cobra.Command
- func GetTxGovWasmProposalClearContractAdminCmd() *cobra.Command
- func GetTxGovWasmProposalExecuteContractCmd() *cobra.Command
- func GetTxGovWasmProposalInstantiateContract2Cmd() *cobra.Command
- func GetTxGovWasmProposalInstantiateContractCmd() *cobra.Command
- func GetTxGovWasmProposalMigrateContractCmd() *cobra.Command
- func GetTxGovWasmProposalPinCodesCmd() *cobra.Command
- func GetTxGovWasmProposalRemoveCodeUploadParamsAddresses() *cobra.Command
- func GetTxGovWasmProposalStoreAndInstantiateContractCmd() *cobra.Command
- func GetTxGovWasmProposalStoreAndMigrateContractCmd() *cobra.Command
- func GetTxGovWasmProposalStoreCodeCmd() *cobra.Command
- func GetTxGovWasmProposalSudoContractCmd() *cobra.Command
- func GetTxGovWasmProposalUnpinCodesCmd() *cobra.Command
- func GetTxGovWasmProposalUpdateContractAdminCmd() *cobra.Command
- func GetTxGovWasmProposalUpdateInstantiateConfigCmd() *cobra.Command
- func GetTxGovWeightedVoteCmd() *cobra.Command
- func GetTxMarketBidCloseCmd() *cobra.Command
- func GetTxMarketBidCmds() *cobra.Command
- func GetTxMarketBidCreateCmd() *cobra.Command
- func GetTxMarketCmds() *cobra.Command
- func GetTxMarketLeaseCloseCmd() *cobra.Command
- func GetTxMarketLeaseCmds() *cobra.Command
- func GetTxMarketLeaseCreateCmd() *cobra.Command
- func GetTxMarketLeaseWithdrawCmd() *cobra.Command
- func GetTxOracleCmd() *cobra.Command
- func GetTxOracleFeedPriceCmd() *cobra.Command
- func GetTxParamsSubmitParamChangeProposalCmd() *cobra.Command
- func GetTxProviderCmd() *cobra.Command
- func GetTxProviderCreateCmd() *cobra.Command
- func GetTxProviderUpdateCmd() *cobra.Command
- func GetTxSinkCmd() *cobra.Command
- func GetTxSinkDepositCmd() *cobra.Command
- func GetTxSinkFinalizeRefundCmd() *cobra.Command
- func GetTxSinkGuardianPauseCmd() *cobra.Command
- func GetTxSinkProposeParamsCmd() *cobra.Command
- func GetTxSinkProposeResolveCmd() *cobra.Command
- func GetTxSinkProposeVetoCmd() *cobra.Command
- func GetTxSinkProposeVoidCmd() *cobra.Command
- func GetTxSinkReportOutcomeCmd() *cobra.Command
- func GetTxSinkVetoVoidCmd() *cobra.Command
- func GetTxSlashingCmd() *cobra.Command
- func GetTxSlashingUnjailCmd() *cobra.Command
- func GetTxStakingCancelUnbondingDelegationCmd() *cobra.Command
- func GetTxStakingCmd() *cobra.Command
- func GetTxStakingCreateValidatorCmd() *cobra.Command
- func GetTxStakingDelegateCmd() *cobra.Command
- func GetTxStakingEditValidatorCmd() *cobra.Command
- func GetTxStakingRedelegateCmd() *cobra.Command
- func GetTxStakingUnbondCmd() *cobra.Command
- func GetTxUpgradeCmd() *cobra.Command
- func GetTxVestingCmd() *cobra.Command
- func GetTxVestingCreateAccountCmd() *cobra.Command
- func GetTxVestingCreatePeriodicAccountCmd() *cobra.Command
- func GetTxVestingCreatePermanentLockedAccountCmd() *cobra.Command
- func GetTxWasmClearContractAdminCmd() *cobra.Command
- func GetTxWasmCmd() *cobra.Command
- func GetTxWasmExecuteContractCmd() *cobra.Command
- func GetTxWasmInstantiateContract2Cmd() *cobra.Command
- func GetTxWasmInstantiateContractCmd() *cobra.Command
- func GetTxWasmMigrateContractCmd() *cobra.Command
- func GetTxWasmSetContractLabelCmd() *cobra.Command
- func GetTxWasmStoreCodeCmd() *cobra.Command
- func GetTxWasmUpdateContractAdminCmd() *cobra.Command
- func GetTxWasmUpdateInstantiateConfigCmd() *cobra.Command
- func GetValidateSignaturesCommand() *cobra.Command
- func LightClientFromContext(ctx context.Context) (aclient.LightClient, error)
- func MustAddressCodecFromContext(ctx context.Context) address.Codec
- func MustClientFromContext(ctx context.Context) aclient.Client
- func MustLightClientFromContext(ctx context.Context) aclient.LightClient
- func MustValidatorCodecFromContext(ctx context.Context) address.Codec
- func NewCmdSubmitCancelUpgradeProposal() *cobra.Command
- func NewCmdSubmitUpgradeProposal() *cobra.Command
- func ParseSigArgs(args []string) ([]string, error)
- func ParseStoreCodeGrants(args []string) ([]types.CodeGrant, error)
- func ParseWasmAccessConfig(raw string) (c types.AccessConfig, err error)
- func ParseWasmAccessConfigFlags(flags *flag.FlagSet) (*types.AccessConfig, error)
- func ParseWasmAccessConfigUpdates(args []string) ([]types.AccessConfigUpdate, error)
- func ParseWasmExecuteArgs(contractAddr, execMsg string, sender sdk.AccAddress, flags *flag.FlagSet) (types.MsgExecuteContract, error)
- func ParseWasmInstantiateArgs(rawCodeID, initMsg string, kr keyring.Keyring, sender string, ...) (*types.MsgInstantiateContract, error)
- func ParseWasmStoreCodeArgs(file, sender string, flags *flag.FlagSet) (types.MsgStoreCode, error)
- func ParseWasmVerificationFlags(gzippedWasm []byte, flags *flag.FlagSet) (string, string, []byte, error)
- func PrintJSON(ctx sdkclient.Context, v interface{}) error
- func Prompt[T any](data T, namePrefix string) (T, error)
- func PromptMetadata(skip bool) (types.ProposalMetadata, error)
- func QueryBlockCmd() *cobra.Command
- func QueryBlockResultsCmd() *cobra.Command
- func QueryBlocksCmd() *cobra.Command
- func QueryCmd() *cobra.Command
- func QueryPersistentPreRunE(cmd *cobra.Command, _ []string) error
- func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error)
- func ReadPersistentCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)
- func ReadQueryCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)
- func ReadTxCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet, diagnostics io.Writer) (sdkclient.Context, error)
- func ReadTxFromFile(ctx client.Context, filename string) (tx sdk.Tx, err error)
- func ResolveDefaultAccountAddress(cctx sdkclient.Context) (string, error)
- func RunForever(fn func(ctx context.Context) error) error
- func RunForeverWithContext(ctx context.Context, fn func(ctx context.Context) error) error
- func SetCmdClientContext(cmd *cobra.Command, cctx sdkclient.Context) error
- func SetCmdClientContextHandler(cctx sdkclient.Context, cmd *cobra.Command) (err error)
- func SignTx(txFactory tx.Factory, cctx client.Context, name string, ...) error
- func StatusCmd() *cobra.Command
- func TxCmd() *cobra.Command
- func TxPersistentPreRunE(cmd *cobra.Command, args []string) error
- func ValidateCmd(cmd *cobra.Command, args []string) error
- func ValidateTxInvocation(cmd *cobra.Command) error
- func WithActionLog(ctx context.Context, cl aclient.Client) aclient.Client
- type BatchScanner
- type ContextType
- type DefaultOwnerResolver
- type InputPeriod
- type ProposalMsg
- type ProviderConfig
- type VestingData
Constants ¶
const ( ClientContextKey = sdk.ContextKey("client.context") ServerContextKey = sdk.ContextKey("server.context") )
const ( ContextTypeClient = ContextType("context-client") ContextTypeQueryClient = ContextType("context-query-client") ContextTypeAddressCodec = ContextType("address-codec") ContextTypeValidatorCodec = ContextType("validator-codec") ContextTypeRPCURI = ContextType("rpc-uri") ContextTypeRPCClient = ContextType("rpc-client") ContextTypeDefaultOwnerResolver = ContextType("default-owner-resolver") )
const (
MaxMessagesPerTxDefault = 0
)
Variables ¶
var DefaultGovAuthority = sdk.AccAddress(address.Module("gov"))
DefaultGovAuthority is set to the gov module address. Extension point for chains to overwrite the default
var ErrContextValueNotSet = errors.New("context does not have value set")
var (
ErrDuplicatedAttribute = errors.New("provider: duplicated attribute")
)
Functions ¶
func DetectBidDeposit ¶
func DetectDeploymentDeposit ¶
func DetectDeposit ¶
func DetectDeposit(ctx context.Context, flags *pflag.FlagSet, cl aclient.QueryClient, querier func(ctx context.Context, flags *pflag.FlagSet, cl aclient.QueryClient) (sdk.Coin, error)) (deposit.Deposit, error)
DetectDeposit returns the deposit sources
func GetAuditProviderCmd ¶
func GetAuditProvidersCmd ¶
func GetAuthMultiSignCmd ¶
GetAuthMultiSignCmd returns the multi-sign command
func GetBMELedgerRecordsCmd ¶
GetBMELedgerRecordsCmd returns the command to query BME ledger records
func GetBMEParamsCmd ¶
GetBMEParamsCmd returns the command to query BME module parameters
func GetBMEStatusCmd ¶
GetBMEStatusCmd returns the command to query the BME circuit breaker status
func GetBMEVaultStateCmd ¶
GetBMEVaultStateCmd returns the command to query the BME vault state
func GetBroadcastCommand ¶
GetBroadcastCommand returns the tx broadcast command.
func GetClientContextFromCmd ¶
GetClientContextFromCmd returns a Context from a command or an empty Context if it has not been set.
func GetClientQueryContext ¶
GetClientQueryContext returns a Context from a command with fields set based on flags defined in AddQueryFlagsToCmd. An error is returned if any flag query fails.
- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value
func GetClientTxContext ¶
GetClientTxContext returns a Context from a command with fields set based on flags defined in AddTxFlagsToCmd. An error is returned if any flag query fails.
- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value
func GetDecodeCommand ¶
GetDecodeCommand returns the decode command to take serialized bytes and turn it into a JSON-encoded transaction.
func GetEncodeCommand ¶
GetEncodeCommand returns the encode command to take a JSONified transaction and turn it into Amino-serialized bytes
func GetOraclePricesCmd ¶
func GetQueryAuditCmd ¶
func GetQueryAuthAccountAddressByIDCmd ¶
GetQueryAuthAccountAddressByIDCmd returns a query account that will display the account address of a given account id.
func GetQueryAuthAccountCmd ¶
GetQueryAuthAccountCmd returns a query account that will display the state of the account at a given address.
func GetQueryAuthAccountsCmd ¶
GetQueryAuthAccountsCmd returns a query command that will display a list of accounts
func GetQueryAuthCmd ¶
GetQueryAuthCmd returns the transaction commands for this module
func GetQueryAuthModuleAccountByNameCmd ¶
GetQueryAuthModuleAccountByNameCmd returns a command to
func GetQueryAuthModuleAccountsCmd ¶
GetQueryAuthModuleAccountsCmd returns a list of all the existing module accounts with their account information and permissions
func GetQueryAuthParamsCmd ¶
GetQueryAuthParamsCmd returns the command handler for evidence parameter querying.
func GetQueryAuthTxCmd ¶
GetQueryAuthTxCmd implements the default command for a tx query.
func GetQueryAuthTxsByEventsCmd ¶
GetQueryAuthTxsByEventsCmd returns a command to search through transactions by events.
func GetQueryAuthzCmd ¶
GetQueryAuthzCmd returns the cli query commands for this module
func GetQueryAuthzGranteeGrantsCmd ¶
GetQueryAuthzGranteeGrantsCmd returns cmd to query for all grants for a grantee.
func GetQueryAuthzGranterGrantsCmd ¶
GetQueryAuthzGranterGrantsCmd returns cmd to query for all grants for a granter.
func GetQueryAuthzGrantsCmd ¶
GetQueryAuthzGrantsCmd implements the query authorization command.
func GetQueryBMECmd ¶
func GetQueryBankBalancesCmd ¶
func GetQueryBankCmd ¶
GetQueryBankCmd returns the parent command for all x/bank CLi query commands. The provided cctx should have, at a minimum, a verifier, Tendermint RPC client, and marshaler set.
func GetQueryBankDenomsMetadataCmd ¶
GetQueryBankDenomsMetadataCmd defines the cobra command to query client denomination metadata.
func GetQueryCertCertificatesCmd ¶
GetQueryCertCertificatesCmd returns the command to list certificates. Accepts optional positional [owner] [state] filters (SPEC §3.8): the first argument is an owner address (or a bare state keyword), the second a state keyword (valid|revoked).
func GetQueryCertCmd ¶
func GetQueryContractCmd ¶ added in v1.0.1
GetQueryContractCmd lists contracts or looks one up by address or label.
func GetQueryDeploymentCmds ¶
GetQueryDeploymentCmds returns the query commands for the deployment module. The command itself handles list/get (unified), with group and params as subcommands.
func GetQueryDeploymentGroupCmd ¶
GetQueryDeploymentGroupCmd returns the command to query deployment groups. Accepts an optional positional ID in the form owner[/dseq[/gseq]]. When gseq is provided, returns a single group. When only owner/dseq are given, fetches the deployment and shows all its groups. Without a dseq, shows the groups of one page of deployments (SPEC §3.8.5).
func GetQueryDistributionCmd ¶
GetQueryDistributionCmd returns the cli query commands for this module
func GetQueryDistributionCommunityPoolCmd ¶
GetQueryDistributionCommunityPoolCmd returns the command for fetching community pool info.
func GetQueryDistributionDelegatorRewardsCmd ¶
GetQueryDistributionDelegatorRewardsCmd implements the query delegator rewards command.
func GetQueryDistributionParamsCmd ¶
GetQueryDistributionParamsCmd implements the query params command.
func GetQueryDistributionValidatorCommissionCmd ¶
GetQueryDistributionValidatorCommissionCmd implements the query validator commission command.
func GetQueryDistributionValidatorDistributionInfoCmd ¶
GetQueryDistributionValidatorDistributionInfoCmd implements the query validator distribution info command.
func GetQueryDistributionValidatorOutstandingRewardsCmd ¶
GetQueryDistributionValidatorOutstandingRewardsCmd implements the query validator outstanding rewards command.
func GetQueryDistributionValidatorSlashesCmd ¶
GetQueryDistributionValidatorSlashesCmd implements the query validator slashes command.
func GetQueryEscrowCmd ¶
func GetQueryEvidenceCmd ¶
GetQueryEvidenceCmd returns the CLI command with all evidence module query commands mounted.
func GetQueryFeeGrantCmd ¶
GetQueryFeeGrantCmd returns cmd to query for a grant between granter and grantee.
func GetQueryFeeGrantsByGranteeCmd ¶
GetQueryFeeGrantsByGranteeCmd returns cmd to query for all grants for a grantee.
func GetQueryFeeGrantsByGranterCmd ¶
GetQueryFeeGrantsByGranterCmd returns cmd to query for all grants by a granter.
func GetQueryFeegrantCmd ¶
GetQueryFeegrantCmd returns the cli query commands for this module
func GetQueryGovCmd ¶
GetQueryGovCmd returns the cli query commands for this module
func GetQueryGovDepositCmd ¶
GetQueryGovDepositCmd implements the query proposal deposit command. Command to get a specific Deposit Information.
func GetQueryGovDepositsCmd ¶
GetQueryGovDepositsCmd implements the command to query for proposal deposits.
func GetQueryGovParamCmd ¶
GetQueryGovParamCmd implements the query param command.
func GetQueryGovProposalCmd ¶
GetQueryGovProposalCmd implements the query proposal command.
func GetQueryGovProposalsCmd ¶
GetQueryGovProposalsCmd implements a query proposals command. Command to Get Proposals Information.
func GetQueryGovProposerCmd ¶
GetQueryGovProposerCmd implements the query proposer command.
func GetQueryGovQueryParamsCmd ¶
GetQueryGovQueryParamsCmd implements the query params command.
nolint:staticcheck // this function contains deprecated commands that we need.
func GetQueryGovTallyCmd ¶
GetQueryGovTallyCmd implements the command to query for proposal tally result.
func GetQueryGovVoteCmd ¶
GetQueryGovVoteCmd implements the query proposal vote command. Command to Get a Vote Information.
func GetQueryGovVotesCmd ¶
GetQueryGovVotesCmd implements the command to query for proposal votes.
func GetQueryMarketBidCmd ¶
GetQueryMarketBidCmd returns the command to query bids. Accepts an optional positional ID in the form [owner/]dseq[/gseq[/oseq[/provider]]]. With --by provider: [provider/]dseq[/gseq[/oseq[/owner]]]. When all ID fields are present returns a single bid. When partially specified, returns a filtered list.
func GetQueryMarketCmds ¶
GetQueryMarketCmds returns the transaction commands for the market module
func GetQueryMarketLeaseCmd ¶
GetQueryMarketLeaseCmd returns the command to query leases. Accepts an optional positional ID in the form [owner/]dseq[/gseq[/oseq[/provider]]]. With --by provider: [provider/]dseq[/gseq[/oseq[/owner]]]. When all ID fields are present returns a single lease. When partially specified, returns a filtered list.
func GetQueryMarketOrderCmd ¶
GetQueryMarketOrderCmd returns the command to query orders. Accepts an optional positional ID in the form owner[/dseq[/gseq[/oseq]]]. When all ID fields are present returns a single order. When partially specified, returns a filtered list.
func GetQueryMarketParamsCmd ¶
func GetQueryMintAnnualProvisionsCmd ¶
GetQueryMintAnnualProvisionsCmd implements a command to return the current minting annual provisions value.
func GetQueryMintCmd ¶
GetQueryMintCmd returns the cli query commands for the minting module.
func GetQueryMintInflationCmd ¶
GetQueryMintInflationCmd implements a command to return the current minting inflation value.
func GetQueryMintParamsCmd ¶
GetQueryMintParamsCmd implements a command to return the current minting parameters.
func GetQueryOracleCmd ¶
func GetQueryOracleParamsCmd ¶
func GetQueryParamsCmd ¶
GetQueryParamsCmd returns a root CLI command handler for all x/params query commands.
func GetQueryParamsSubspaceCmd ¶
GetQueryParamsSubspaceCmd returns a CLI command handler for querying subspace parameters managed by the x/params module.
func GetQueryProviderCmd ¶
func GetQueryProviderCmds ¶
GetQueryProviderCmds returns the query commands for the provider module. Per the positional-primary convention (SPEC §3.8) the group itself is the query: a positional address returns that provider, no argument lists them all. `list` and `get` remain registered so existing scripts keep working.
func GetQueryProvidersCmd ¶
func GetQuerySinkCmd ¶ added in v1.1.0
GetQuerySinkCmd returns the query commands for the sink module
func GetQuerySlashingCmd ¶
GetQuerySlashingCmd returns the cli query commands for this module
func GetQuerySlashingParamsCmd ¶
GetQuerySlashingParamsCmd implements a command to fetch slashing parameters.
func GetQuerySlashingSigningInfoCmd ¶
GetQuerySlashingSigningInfoCmd implements the command to query signing info.
func GetQuerySlashingSigningInfosCmd ¶
GetQuerySlashingSigningInfosCmd implements the command to query signing infos.
func GetQueryStakingCmd ¶
GetQueryStakingCmd returns the cli query commands for this module
func GetQueryStakingDelegationCmd ¶
GetQueryStakingDelegationCmd the query delegation command.
func GetQueryStakingDelegationsCmd ¶
GetQueryStakingDelegationsCmd implements the command to query all the delegations made from one delegator.
func GetQueryStakingHistoricalInfoCmd ¶
GetQueryStakingHistoricalInfoCmd implements the historical info query command
func GetQueryStakingParamsCmd ¶
GetQueryStakingParamsCmd implements the params query command.
func GetQueryStakingPoolCmd ¶
GetQueryStakingPoolCmd implements the pool query command.
func GetQueryStakingRedelegationCmd ¶
GetQueryStakingRedelegationCmd implements the command to query a single redelegation record.
func GetQueryStakingRedelegationsCmd ¶
GetQueryStakingRedelegationsCmd implements the command to query all the redelegation records for a delegator.
func GetQueryStakingUnbondingDelegationCmd ¶
GetQueryStakingUnbondingDelegationCmd implements the command to query a single unbonding-delegation record.
func GetQueryStakingUnbondingDelegationsCmd ¶
GetQueryStakingUnbondingDelegationsCmd implements the command to query all the unbonding-delegation records for a delegator.
func GetQueryStakingValidatorCmd ¶
GetQueryStakingValidatorCmd implements the validator query command.
func GetQueryStakingValidatorDelegationsCmd ¶
GetQueryStakingValidatorDelegationsCmd implements the command to query all the delegations to a specific validator.
func GetQueryStakingValidatorRedelegationsCmd ¶
GetQueryStakingValidatorRedelegationsCmd implements the query all redelegatations from a validator command.
func GetQueryStakingValidatorUnbondingDelegationsCmd ¶
GetQueryStakingValidatorUnbondingDelegationsCmd implements the query all unbonding delegatations from a validator command.
func GetQueryStakingValidatorsCmd ¶
GetQueryStakingValidatorsCmd implements the query all validators command.
func GetQueryUpgradeAppliedPlanCmd ¶
GetQueryUpgradeAppliedPlanCmd returns information about the block at which a completed upgrade was applied.
func GetQueryUpgradeCmd ¶
GetQueryUpgradeCmd returns the parent command for all x/upgrade CLI query commands.
func GetQueryUpgradeCurrentPlanCmd ¶
GetQueryUpgradeCurrentPlanCmd returns the query upgrade plan command.
func GetQueryUpgradeModuleVersionsCmd ¶
GetModuleVersionsCmd returns the module version list from state
func GetQueryWasmBuildAddressCmd ¶
GetQueryWasmBuildAddressCmd build a contract address
func GetQueryWasmCmd ¶
func GetQueryWasmCodeCmd ¶
GetQueryWasmCodeCmd returns the bytecode for a given contract
func GetQueryWasmCodeInfoCmd ¶
GetQueryWasmCodeInfoCmd returns the code info for a given code id
func GetQueryWasmContractHistoryCmd ¶
GetQueryWasmContractHistoryCmd prints the code history for a given contract
func GetQueryWasmContractInfoCmd ¶
GetQueryWasmContractInfoCmd gets details about a given contract
func GetQueryWasmContractStateCmd ¶
GetQueryWasmContractStateCmd dumps full internal state of a given contract
func GetQueryWasmListCodeCmd ¶
GetQueryWasmListCodeCmd lists all wasm code uploaded
func GetQueryWasmListContractByCodeCmd ¶
GetQueryWasmListContractByCodeCmd lists all wasm code uploaded for given code id
func GetQueryWasmListContractsByCreatorCmd ¶
GetQueryWasmListContractsByCreatorCmd lists all contracts by creator
func GetQueryWasmListPinnedCodeCmd ¶
GetQueryWasmListPinnedCodeCmd lists all wasm code ids that are pinned
func GetQueryWasmParamsCmd ¶
GetQueryWasmParamsCmd implements a command to return the current wasm parameters.
func GetRPCURIFromContext ¶
func GetSignBatchCommand ¶
GetSignBatchCommand returns the transaction sign-batch command.
func GetSignCommand ¶
GetSignCommand returns the transaction sign command.
func GetSinkAccountCmd ¶ added in v1.1.0
GetSinkAccountCmd returns lifetime and native epoch deposit usage.
func GetSinkDisputesCmd ¶ added in v1.1.0
GetSinkDisputesCmd lists held transfers, including minted and refunded ones.
func GetSinkParamsCmd ¶ added in v1.1.0
GetSinkParamsCmd returns the module parameters
func GetSinkReportersCmd ¶ added in v1.1.0
GetSinkReportersCmd queries the current or retained reporter policies.
func GetSinkStateCmd ¶ added in v1.1.0
GetSinkStateCmd returns financial totals, native epoch usage and refund head.
func GetSinkTransferCmd ¶ added in v1.1.0
GetSinkTransferCmd returns a transfer's record, void order and settlement
func GetSinkTransfersCmd ¶ added in v1.1.0
GetSinkTransfersCmd lists transfers through native owner/status pagination.
func GetTxAuditAttributesCmd ¶
func GetTxAuditCmd ¶
GetTxAuditCmd returns the transaction commands for audit module
func GetTxAuthzCmd ¶
GetTxAuthzCmd returns the transaction commands for this module
func GetTxAuthzExecAuthorizationCmd ¶
GetTxAuthzExecAuthorizationCmd returns a CLI command handler for creating a MsgExec transaction.
func GetTxAuthzGrantAuthorizationCmd ¶
GetTxAuthzGrantAuthorizationCmd returns a CLI command handler for creating a MsgGrant transaction.
func GetTxAuthzRevokeAuthorizationCmd ¶
GetTxAuthzRevokeAuthorizationCmd returns a CLI command handler for creating a MsgRevoke transaction.
func GetTxBMEBurnACTCmd ¶
GetTxBMEBurnACTCmd returns the command to burn one token and mint another
func GetTxBMEBurnMintCmd ¶
GetTxBMEBurnMintCmd returns the command to burn one token and mint another
func GetTxBMECmd ¶
GetTxBMECmd returns the transaction commands for bme module
func GetTxBMEMintACTCmd ¶
GetTxBMEMintACTCmd returns the command to burn one token and mint another
func GetTxBankCmd ¶
GetTxBankCmd returns a root CLI command handler for all x/bank transaction commands.
func GetTxBankMultiSendTxCmd ¶
GetTxBankMultiSendTxCmd returns a CLI command handler for creating a MsgMultiSend transaction. For a better UX this command is limited to send funds from one account to two or more accounts.
func GetTxBankSendTxCmd ¶
GetTxBankSendTxCmd returns a CLI command handler for creating a MsgSend transaction.
func GetTxCertCmd ¶
func GetTxCertGenerateCmd ¶
func GetTxCertPublishCmd ¶
func GetTxCertRevokeCmd ¶
func GetTxDeploymentCloseCmd ¶
func GetTxDeploymentCmds ¶
GetTxDeploymentCmds returns the transaction commands for this module
func GetTxDistributionDepositValidatorRewardsPoolCmd ¶
GetTxDistributionDepositValidatorRewardsPoolCmd returns a CLI command handler for creating a MsgDepositValidatorRewardsPool transaction.
func GetTxDistributionFundCommunityPoolCmd ¶
GetTxDistributionFundCommunityPoolCmd returns a CLI command handler for creating a MsgFundCommunityPool transaction.
func GetTxDistributionSetWithdrawAddrCmd ¶
GetTxDistributionSetWithdrawAddrCmd returns a CLI command handler for creating a MsgSetWithdrawAddress transaction.
func GetTxDistributionWithdrawAllRewardsCmd ¶
GetTxDistributionWithdrawAllRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction.
func GetTxDistributionWithdrawRewardsCmd ¶
GetTxDistributionWithdrawRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction.
func GetTxEscrowCmd ¶
func GetTxEscrowDeposit ¶
func GetTxFeegrantCmd ¶
GetTxFeegrantCmd returns the transaction commands for this module
func GetTxFeegrantGrantCmd ¶
GetTxFeegrantGrantCmd returns a CLI command handler for creating a MsgGrantAllowance transaction.
func GetTxFeegrantRevokeCmd ¶
GetTxFeegrantRevokeCmd returns a CLI command handler for creating a MsgRevokeAllowance transaction.
func GetTxGovCancelProposalCmd ¶
GetTxGovCancelProposalCmd implements submitting a cancel proposal transaction command.
func GetTxGovCmd ¶
GetTxGovCmd returns the transaction commands for this module governance ModuleClient is slightly different from other ModuleClients in that it contains a slice of legacy "proposal" child commands. These commands are respective to the proposal type handlers that are implemented in other modules but are mounted under the governance CLI (eg. parameter change proposals).
func GetTxGovDepositCmd ¶
GetTxGovDepositCmd implements depositing tokens for an active proposal.
func GetTxGovDraftProposalCmd ¶
GetTxGovDraftProposalCmd let a user generate a draft proposal.
func GetTxGovSubmitLegacyProposalCmd ¶
GetTxGovSubmitLegacyProposalCmd implements submitting a proposal transaction command. Deprecated: please use GetTxGovSubmitProposalCmd instead.
func GetTxGovSubmitProposalCmd ¶
GetTxGovSubmitProposalCmd implements submitting a proposal transaction command.
func GetTxGovVoteCmd ¶
GetTxGovVoteCmd implements creating a new vote command.
func GetTxGovWeightedVoteCmd ¶
GetTxGovWeightedVoteCmd implements creating a new weighted vote command.
func GetTxMarketBidCloseCmd ¶
func GetTxMarketBidCmds ¶
func GetTxMarketBidCreateCmd ¶
func GetTxMarketCmds ¶
GetTxMarketCmds returns the transaction commands for market module
func GetTxMarketLeaseCmds ¶
func GetTxOracleCmd ¶
GetTxOracleCmd returns the transaction commands for oracle module
func GetTxOracleFeedPriceCmd ¶
func GetTxParamsSubmitParamChangeProposalCmd ¶
GetTxParamsSubmitParamChangeProposalCmd returns a CLI command handler for creating a parameter change proposal governance transaction.
func GetTxProviderCmd ¶
GetTxProviderCmd returns the transaction commands for provider module
func GetTxProviderCreateCmd ¶
func GetTxProviderUpdateCmd ¶
func GetTxSinkCmd ¶ added in v1.1.0
GetTxSinkCmd returns the transaction commands for the sink module
func GetTxSinkDepositCmd ¶ added in v1.1.0
GetTxSinkDepositCmd locks AKT for a Solana destination through MsgSink
func GetTxSinkFinalizeRefundCmd ¶ added in v1.1.0
GetTxSinkFinalizeRefundCmd pays an eligible refund to the original sender
func GetTxSinkGuardianPauseCmd ¶ added in v1.1.0
GetTxSinkGuardianPauseCmd disables deposits, refunds or both. The signer must be params.pause_guardian; only governance can enable either again.
func GetTxSinkProposeParamsCmd ¶ added in v1.1.0
GetTxSinkProposeParamsCmd submits a governance proposal replacing the sink parameters
func GetTxSinkProposeResolveCmd ¶ added in v1.1.0
GetTxSinkProposeResolveCmd submits a governance proposal that resolves a held or stalled transfer
func GetTxSinkProposeVetoCmd ¶ added in v1.1.0
GetTxSinkProposeVetoCmd submits a governance proposal that vetoes a void
func GetTxSinkProposeVoidCmd ¶ added in v1.1.0
GetTxSinkProposeVoidCmd submits a governance proposal that writes a void order for a transfer
func GetTxSinkReportOutcomeCmd ¶ added in v1.1.0
GetTxSinkReportOutcomeCmd reports a transfer's finalized Solana outcome as a reporter
func GetTxSinkVetoVoidCmd ¶ added in v1.1.0
GetTxSinkVetoVoidCmd holds a voided transfer before its refund
func GetTxSlashingCmd ¶
GetTxSlashingCmd returns a root CLI command handler for all x/slashing transaction commands.
func GetTxSlashingUnjailCmd ¶
GetTxSlashingUnjailCmd returns a CLI command handler for creating a MsgUnjail transaction.
func GetTxStakingCancelUnbondingDelegationCmd ¶
GetTxStakingCancelUnbondingDelegationCmd returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction.
func GetTxStakingCmd ¶
GetTxStakingCmd returns a root CLI command handler for all x/staking transaction commands.
func GetTxStakingCreateValidatorCmd ¶
GetTxStakingCreateValidatorCmd returns a CLI command handler for creating a MsgCreateValidator transaction.
func GetTxStakingDelegateCmd ¶
GetTxStakingDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction.
func GetTxStakingEditValidatorCmd ¶
GetTxStakingEditValidatorCmd returns a CLI command handler for creating a MsgEditValidator transaction.
func GetTxStakingRedelegateCmd ¶
GetTxStakingRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction.
func GetTxStakingUnbondCmd ¶
GetTxStakingUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction.
func GetTxUpgradeCmd ¶
GetTxUpgradeCmd returns the transaction commands for this module
func GetTxVestingCmd ¶
GetTxVestingCmd returns vesting module's transaction commands.
func GetTxVestingCreateAccountCmd ¶
GetTxVestingCreateAccountCmd returns a CLI command handler for creating a MsgCreateVestingAccount transaction.
func GetTxVestingCreatePeriodicAccountCmd ¶
GetTxVestingCreatePeriodicAccountCmd returns a CLI command handler for creating a MsgCreatePeriodicVestingAccountCmd transaction.
func GetTxVestingCreatePermanentLockedAccountCmd ¶
GetTxVestingCreatePermanentLockedAccountCmd returns a CLI command handler for creating a MsgCreatePermanentLockedAccount transaction.
func GetTxWasmClearContractAdminCmd ¶
GetTxWasmClearContractAdminCmd clears an admin for a contract
func GetTxWasmCmd ¶
GetTxWasmCmd returns the transaction commands for this module
func GetTxWasmExecuteContractCmd ¶
GetTxWasmExecuteContractCmd will execute a contract method using its address and JSON-encoded arguments.
func GetTxWasmInstantiateContract2Cmd ¶
GetTxWasmInstantiateContract2Cmd will instantiate a contract from previously uploaded code with predictable address generated
func GetTxWasmInstantiateContractCmd ¶
GetTxWasmInstantiateContractCmd will instantiate a contract from previously uploaded code.
func GetTxWasmMigrateContractCmd ¶
GetTxWasmMigrateContractCmd will migrate a contract to a new code version
func GetTxWasmSetContractLabelCmd ¶
GetTxWasmSetContractLabelCmd sets an new label for a contract
func GetTxWasmStoreCodeCmd ¶
GetTxWasmStoreCodeCmd will upload code to be reused.
func GetTxWasmUpdateContractAdminCmd ¶
GetTxWasmUpdateContractAdminCmd sets an new admin for a contract
func GetTxWasmUpdateInstantiateConfigCmd ¶
GetTxWasmUpdateInstantiateConfigCmd updates instantiate config for a smart contract.
func LightClientFromContext ¶
func LightClientFromContext(ctx context.Context) (aclient.LightClient, error)
func MustLightClientFromContext ¶
func MustLightClientFromContext(ctx context.Context) aclient.LightClient
func NewCmdSubmitCancelUpgradeProposal ¶
NewCmdSubmitCancelUpgradeProposal implements a command handler for submitting a software upgrade cancel proposal transaction.
func NewCmdSubmitUpgradeProposal ¶
NewCmdSubmitUpgradeProposal implements a command handler for submitting a software upgrade proposal transaction.
func ParseSigArgs ¶
ParseSigArgs parses comma-separated signatures from the CLI arguments.
func ParseWasmAccessConfig ¶
func ParseWasmAccessConfig(raw string) (c types.AccessConfig, err error)
func ParseWasmAccessConfigFlags ¶
func ParseWasmAccessConfigFlags(flags *flag.FlagSet) (*types.AccessConfig, error)
func ParseWasmAccessConfigUpdates ¶
func ParseWasmAccessConfigUpdates(args []string) ([]types.AccessConfigUpdate, error)
func ParseWasmExecuteArgs ¶
func ParseWasmExecuteArgs(contractAddr, execMsg string, sender sdk.AccAddress, flags *flag.FlagSet) (types.MsgExecuteContract, error)
func ParseWasmStoreCodeArgs ¶
ParseWasmStoreCodeArgs prepares MsgStoreCode object from flags with gzipped wasm byte code field
func Prompt ¶
Prompt prompts the user for all values of the given type. data is the struct to be filled namePrefix is the name to be displayed as "Enter <namePrefix> <field>"
func PromptMetadata ¶
func PromptMetadata(skip bool) (types.ProposalMetadata, error)
PromptMetadata prompts for proposal metadata or only title and summary if skip is true
func QueryBlockCmd ¶
QueryBlockCmd implements the default command for a Block query.
func QueryBlockResultsCmd ¶
QueryBlockResultsCmd implements the default command for a BlockResults query.
func QueryBlocksCmd ¶
QueryBlocksCmd returns a command to search through blocks by events.
func ReadPageRequest ¶
func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error)
ReadPageRequest reads and builds the necessary page request flags for pagination.
func ReadPersistentCommandFlags ¶
func ReadPersistentCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)
ReadPersistentCommandFlags returns a Context with fields set for "persistent" or common flags that do not necessarily change with context.
Note, the provided cctx may have field pre-populated. The following order of precedence occurs:
- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value
func ReadQueryCommandFlags ¶
func ReadQueryCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)
ReadQueryCommandFlags returns an updated Context with fields set based on flags defined in AddQueryFlagsToCmd. An error is returned if any flag query fails.
Note, the provided cctx may have field pre-populated. The following order of precedence occurs:
- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value
func ReadTxCommandFlags ¶
func ReadTxCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet, diagnostics io.Writer) (sdkclient.Context, error)
ReadTxCommandFlags returns an updated Context with fields set based on flags defined in AddTxFlagsToCmd. An error is returned if any flag query fails.
Note, the provided cctx may have field pre-populated. The following order of precedence occurs:
- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value
func ReadTxFromFile ¶
ReadTxFromFile Read and decode a StdTx from the given filename. Can pass "-" to read from stdin.
func ResolveDefaultAccountAddress ¶ added in v1.0.1
ResolveDefaultAccountAddress resolves the invoking context's default account address, using the same chain (bech32 --from, named keyring account, or transport default owner) that an omitted query owner resolves through. Exported for callers outside this package that need a best-effort address without duplicating the resolution order.
func RunForever ¶
RunForever runs a function in the background, forever. Returns error in case of failure.
func RunForeverWithContext ¶
func SetCmdClientContext ¶
SetCmdClientContext sets a command's Context value to the provided argument.
func SetCmdClientContextHandler ¶
SetCmdClientContextHandler is to be used in a command pre-hook execution to read flags that populate a Context and sets that to the command's Context.
func SignTx ¶
func SignTx(txFactory tx.Factory, cctx client.Context, name string, txBuilder client.TxBuilder, offline, overwriteSig bool) error
SignTx signs a transaction managed by the TxBuilder using a `name` key stored in Keybase. The new signature is appended to the TxBuilder when overwrite=false or overwritten otherwise. Don't perform online validation or lookups if offline is true.
func StatusCmd ¶ added in v1.1.0
StatusCmd queries the selected RPC without resolving a signing account.
func ValidateCmd ¶
ValidateCmd returns unknown command error or Help display if help flag set
func ValidateTxInvocation ¶ added in v0.0.3
ValidateTxInvocation checks the assembled command against the selected SDK client context. The root calls it before leaf hooks so dependency-owned tx commands and workflow dry-runs receive the same identity guard.
func WithActionLog ¶ added in v0.1.0
WithActionLog wraps a chain client so every broadcast is recorded in the action log carried by ctx (SPEC §5.6) and so a broadcast whose CheckTx result carries a non-zero code surfaces as an error (non-zero exit) instead of being silently printed as success. The wrapper is applied unconditionally; a missing logger only disables recording.
Types ¶
type BatchScanner ¶
BatchScanner provides a convenient interface for reading batch data such as a file of newline-delimited JSON encoded StdTx.
func NewBatchScanner ¶
func NewBatchScanner(cfg client.TxConfig, r io.Reader) *BatchScanner
NewBatchScanner returns a new BatchScanner to read newline-delimited StdTx transactions from r.
func ReadTxsFromInput ¶
func ReadTxsFromInput(txCfg client.TxConfig, filenames ...string) (scanner *BatchScanner, err error)
ReadTxsFromInput reads multiples txs from the given filename(s). Can pass "-" to read from stdin. Unlike ReadTxFromFile, this function does not decode the txs.
func (*BatchScanner) Scan ¶
func (bs *BatchScanner) Scan() bool
Scan advances the Scanner to the next line.
func (BatchScanner) Tx ¶
func (bs BatchScanner) Tx() sdk.Tx
Tx returns the most recent Tx unmarshalled by a call to Scan.
func (BatchScanner) UnmarshalErr ¶
func (bs BatchScanner) UnmarshalErr() error
UnmarshalErr returns the first unmarshalling error that was encountered by the scanner.
type ContextType ¶
type ContextType string
type DefaultOwnerResolver ¶ added in v0.1.0
DefaultOwnerResolver lazily supplies an account address for query filters when the active transport owns the wallet instead of a local keyring.
type InputPeriod ¶
type ProposalMsg ¶
type ProposalMsg struct {
// Msgs defines an array of sdk.Msgs proto-JSON-encoded as Anys.
Messages []json.RawMessage `json:"messages,omitempty"`
Metadata string `json:"metadata"`
Deposit string `json:"deposit"`
Title string `json:"title"`
Summary string `json:"summary"`
Expedited bool `json:"expedited"`
}
ProposalMsg defines the new Msg-based proposal.
type ProviderConfig ¶
type ProviderConfig struct {
Host string `json:"host" yaml:"host"`
Info types.Info `json:"info" yaml:"info"`
Attributes tattr.Attributes `json:"attributes" yaml:"attributes"`
}
ProviderConfig is the struct that stores provider config
func ReadProviderConfigPath ¶
func ReadProviderConfigPath(path string) (ProviderConfig, error)
ReadProviderConfigPath reads and parses file
func (ProviderConfig) GetAttributes ¶
func (c ProviderConfig) GetAttributes() tattr.Attributes
GetAttributes returns config attributes into key value pairs
type VestingData ¶
type VestingData struct {
StartTime int64 `json:"start_time"`
Periods []InputPeriod `json:"periods"`
}
Source Files
¶
- actionlog.go
- audit_query.go
- audit_tx.go
- auth_decode.go
- auth_encode.go
- auth_flags.go
- auth_multisign.go
- auth_query.go
- auth_tx.go
- authz_query.go
- authz_tx.go
- bank_query.go
- bank_tx.go
- block_query.go
- bme_query.go
- bme_tx.go
- broadcast.go
- cctx.go
- cert_query.go
- cert_tx.go
- context.go
- contract_query.go
- deployment_query.go
- deployment_tx.go
- distribution_query.go
- distribution_tx.go
- escrow_query.go
- escrow_tx.go
- events.go
- evidence_query.go
- feegrant_query.go
- feegrant_tx.go
- gov_query.go
- gov_tx.go
- init.go
- market_query.go
- market_tx.go
- mint_query.go
- module_query.go
- oracle_query.go
- oracle_tx.go
- params_query.go
- params_tx.go
- provider_query.go
- provider_tx.go
- query.go
- query_boundary.go
- query_response.go
- query_scope.go
- query_state.go
- query_vendored.go
- sink_parse.go
- sink_query.go
- sink_tx.go
- slashing_query.go
- slashing_tx.go
- staking_query.go
- staking_tx.go
- status.go
- tx.go
- tx_vendored.go
- upgrade_query.go
- upgrade_tx.go
- utils.go
- validate.go
- vesting_tx.go
- wasm_address.go
- wasm_parse.go
- wasm_query.go
- wasm_tx.go