Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AllTypeMessages is a list of all messages and types that are used in the app. // This list comes from the app's `InterfaceRegistry`. AllTypeMessages = map[string]struct{}{}/* 259 elements not displayed */ // DisallowMsgs are messages that cannot be externally submitted. DisallowMsgs = lib.MergeAllMapsMustHaveDistinctKeys( AppInjectedMsgSamples, InternalMsgSamplesAll, NestedMsgSamples, UnsupportedMsgSamples, ) // AllowMsgs are messages that can be externally submitted. AllowMsgs = NormalMsgs )
View Source
var ( // InternalMsgSamplesAll are msgs that are used only used internally. InternalMsgSamplesAll = lib.MergeAllMapsMustHaveDistinctKeys(InternalMsgSamplesGovAuth) // InternalMsgSamplesGovAuth are msgs that are used only used internally. // GovAuth means that these messages must originate from the gov module and // signed by gov module account. // InternalMsgSamplesAll are msgs that are used only used internally. InternalMsgSamplesGovAuth = lib.MergeAllMapsMustHaveDistinctKeys( InternalMsgSamplesDefault, InternalMsgSamplesKlyraCustom, ) // CosmosSDK default modules InternalMsgSamplesDefault = map[string]sdk.Msg{ "/cosmos.auth.v1beta1.MsgUpdateParams": &auth.MsgUpdateParams{}, "/cosmos.bank.v1beta1.MsgSetSendEnabled": &bank.MsgSetSendEnabled{}, "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse": nil, "/cosmos.bank.v1beta1.MsgUpdateParams": &bank.MsgUpdateParams{}, "/cosmos.bank.v1beta1.MsgUpdateParamsResponse": nil, "/cosmos.consensus.v1.MsgUpdateParams": &consensus.MsgUpdateParams{}, "/cosmos.consensus.v1.MsgUpdateParamsResponse": nil, "/cosmos.crisis.v1beta1.MsgUpdateParams": &crisis.MsgUpdateParams{}, "/cosmos.crisis.v1beta1.MsgUpdateParamsResponse": nil, "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend": &distribution.MsgCommunityPoolSpend{}, "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse": nil, "/cosmos.distribution.v1beta1.MsgUpdateParams": &distribution.MsgUpdateParams{}, "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse": nil, "/cosmos.gov.v1.MsgExecLegacyContent": &gov.MsgExecLegacyContent{}, "/cosmos.gov.v1.MsgExecLegacyContentResponse": nil, "/cosmos.gov.v1.MsgUpdateParams": &gov.MsgUpdateParams{}, "/cosmos.gov.v1.MsgUpdateParamsResponse": nil, "/cosmos.slashing.v1beta1.MsgUpdateParams": &slashing.MsgUpdateParams{}, "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse": nil, "/cosmos.staking.v1beta1.MsgUpdateParams": &staking.MsgUpdateParams{}, "/cosmos.staking.v1beta1.MsgUpdateParamsResponse": nil, "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": &upgrade.MsgCancelUpgrade{}, "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse": nil, "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": &upgrade.MsgSoftwareUpgrade{}, "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse": nil, "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams": &icahosttypes.MsgUpdateParams{}, "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse": nil, "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe": &icahosttypes.MsgModuleQuerySafe{}, "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse": nil, "/ibc.applications.transfer.v1.MsgUpdateParams": &ibctransfer.MsgUpdateParams{}, "/ibc.applications.transfer.v1.MsgUpdateParamsResponse": nil, "/ibc.core.client.v1.MsgUpdateParams": &ibcclient.MsgUpdateParams{}, "/ibc.core.client.v1.MsgUpdateParamsResponse": nil, "/ibc.core.connection.v1.MsgUpdateParams": &ibcconn.MsgUpdateParams{}, "/ibc.core.connection.v1.MsgUpdateParamsResponse": nil, } // Custom modules InternalMsgSamplesKlyraCustom = map[string]sdk.Msg{ "/klyraprotocol.blocktime.MsgUpdateDowntimeParams": &blocktime.MsgUpdateDowntimeParams{}, "/klyraprotocol.blocktime.MsgUpdateDowntimeParamsResponse": nil, "/klyraprotocol.clob.MsgCreateClobPair": &clob.MsgCreateClobPair{}, "/klyraprotocol.clob.MsgCreateClobPairResponse": nil, "/klyraprotocol.clob.MsgUpdateBlockRateLimitConfiguration": &clob.MsgUpdateBlockRateLimitConfiguration{}, "/klyraprotocol.clob.MsgUpdateBlockRateLimitConfigurationResponse": nil, "/klyraprotocol.clob.MsgUpdateClobPair": &clob.MsgUpdateClobPair{}, "/klyraprotocol.clob.MsgUpdateClobPairResponse": nil, "/klyraprotocol.clob.MsgUpdateEquityTierLimitConfiguration": &clob.MsgUpdateEquityTierLimitConfiguration{}, "/klyraprotocol.clob.MsgUpdateEquityTierLimitConfigurationResponse": nil, "/klyraprotocol.clob.MsgUpdateLiquidationsConfig": &clob.MsgUpdateLiquidationsConfig{}, "/klyraprotocol.clob.MsgUpdateLiquidationsConfigResponse": nil, "/klyraprotocol.delaymsg.MsgDelayMessage": &delaymsg.MsgDelayMessage{}, "/klyraprotocol.delaymsg.MsgDelayMessageResponse": nil, "/klyraprotocol.feetiers.MsgUpdatePerpetualFeeParams": &feetiers.MsgUpdatePerpetualFeeParams{}, "/klyraprotocol.feetiers.MsgUpdatePerpetualFeeParamsResponse": nil, "/klyraprotocol.govplus.MsgSlashValidator": &govplus.MsgSlashValidator{}, "/klyraprotocol.govplus.MsgSlashValidatorResponse": nil, "/klyraprotocol.perpetuals.MsgCreatePerpetual": &perpetuals.MsgCreatePerpetual{}, "/klyraprotocol.perpetuals.MsgCreatePerpetualResponse": nil, "/klyraprotocol.perpetuals.MsgSetLiquidityTier": &perpetuals.MsgSetLiquidityTier{}, "/klyraprotocol.perpetuals.MsgSetLiquidityTierResponse": nil, "/klyraprotocol.perpetuals.MsgUpdateParams": &perpetuals.MsgUpdateParams{}, "/klyraprotocol.perpetuals.MsgUpdateParamsResponse": nil, "/klyraprotocol.perpetuals.MsgUpdatePerpetualParams": &perpetuals.MsgUpdatePerpetualParams{}, "/klyraprotocol.perpetuals.MsgUpdatePerpetualParamsResponse": nil, "/klyraprotocol.prices.MsgCreateOracleMarket": &prices.MsgCreateOracleMarket{}, "/klyraprotocol.prices.MsgCreateOracleMarketResponse": nil, "/klyraprotocol.prices.MsgUpdateMarketParam": &prices.MsgUpdateMarketParam{}, "/klyraprotocol.prices.MsgUpdateMarketParamResponse": nil, "/klyraprotocol.ratelimit.MsgSetLimitParams": &ratelimit.MsgSetLimitParams{}, "/klyraprotocol.ratelimit.MsgSetLimitParamsResponse": nil, "/klyraprotocol.sending.MsgSendFromModuleToAccount": &sending.MsgSendFromModuleToAccount{}, "/klyraprotocol.sending.MsgSendFromModuleToAccountResponse": nil, "/klyraprotocol.stats.MsgUpdateParams": &stats.MsgUpdateParams{}, "/klyraprotocol.stats.MsgUpdateParamsResponse": nil, } )
View Source
var ( // NormalMsgs are messages that can be submitted by external users. NormalMsgs = lib.MergeAllMapsMustHaveDistinctKeys(NormalMsgsDefault, NormalMsgsKlyraCustom) // Default modules NormalMsgsDefault = map[string]sdk.Msg{}/* 156 elements not displayed */ // Custom modules NormalMsgsKlyraCustom = map[string]sdk.Msg{ "/klyraprotocol.clob.MsgBatchCancel": &clob.MsgBatchCancel{}, "/klyraprotocol.clob.MsgBatchCancelResponse": nil, "/klyraprotocol.clob.MsgCancelOrder": &clob.MsgCancelOrder{}, "/klyraprotocol.clob.MsgCancelOrderResponse": nil, "/klyraprotocol.clob.MsgPlaceOrder": &clob.MsgPlaceOrder{}, "/klyraprotocol.clob.MsgPlaceOrderResponse": nil, "/klyraprotocol.sending.MsgCreateTransfer": &sending.MsgCreateTransfer{}, "/klyraprotocol.sending.MsgCreateTransferResponse": nil, "/klyraprotocol.sending.MsgDepositToSubaccount": &sending.MsgDepositToSubaccount{}, "/klyraprotocol.sending.MsgDepositToSubaccountResponse": nil, "/klyraprotocol.sending.MsgWithdrawFromSubaccount": &sending.MsgWithdrawFromSubaccount{}, "/klyraprotocol.sending.MsgWithdrawFromSubaccountResponse": nil, "/klyraprotocol.subaccounts.MsgClaimYieldForSubaccount": &subaccounts.MsgClaimYieldForSubaccount{}, "/klyraprotocol.subaccounts.MsgClaimYieldForSubaccountResponse": nil, } )
View Source
var ( // AppInjectedMsgSamples are msgs that are injected into the block by the proposing validator. // These messages are reserved for proposing validator's use only. AppInjectedMsgSamples = map[string]sdk.Msg{ "/klyraprotocol.clob.MsgProposedOperations": &clobtypes.MsgProposedOperations{ OperationsQueue: make([]clobtypes.OperationRaw, 0), }, "/klyraprotocol.clob.MsgProposedOperationsResponse": nil, "/klyraprotocol.perpetuals.MsgAddPremiumVotes": &perptypes.MsgAddPremiumVotes{ Votes: []perptypes.FundingPremium{ {PerpetualId: 0, PremiumPpm: 1_000}, }, }, "/klyraprotocol.perpetuals.MsgAddPremiumVotesResponse": nil, } )
View Source
var ( // NestedMsgSamples are msgs that have can include other arbitrary messages inside. NestedMsgSamples = map[string]sdk.Msg{ "/cosmos.authz.v1beta1.MsgExec": &authz.MsgExec{}, "/cosmos.authz.v1beta1.MsgExecResponse": nil, "/cosmos.gov.v1.MsgSubmitProposal": &gov.MsgSubmitProposal{}, "/cosmos.gov.v1.MsgSubmitProposalResponse": nil, } )
View Source
var ( // UnregisteredMsgs are msgs that should not be registered with the app. UnregisteredMsgs = map[string]struct{}{ "/cosmos.authz.v1.MsgExec": {}, "/cosmos.authz.v1.MsgExecResponse": {}, "/cosmos.group.v1.MsgSubmitProposal": {}, "/cosmos.group.v1.MsgSubmitProposalResponse": {}, "/cosmos.group.v1beta1.MsgSubmitProposal": {}, "/cosmos.group.v1beta1.MsgSubmitProposalResponse": {}, } )
View Source
var ( // UnsupportedMsgSamples are msgs that are registered with the app, but are not supported. UnsupportedMsgSamples = map[string]sdk.Msg{ "/cosmos.gov.v1.MsgCancelProposal": &gov.MsgCancelProposal{}, "/cosmos.gov.v1.MsgCancelProposalResponse": nil, "/cosmos.gov.v1beta1.MsgSubmitProposal": &govbeta.MsgSubmitProposal{}, "/cosmos.gov.v1beta1.MsgSubmitProposalResponse": nil, "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount": &icacontrollertypes. MsgRegisterInterchainAccount{}, "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse": nil, "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx": &icacontrollertypes. MsgSendTx{}, "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse": nil, "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams": &icacontrollertypes. MsgUpdateParams{}, "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse": nil, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.