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{}{}/* 314 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, InternalMsgSamplesDydxCustom, ) // 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.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 InternalMsgSamplesDydxCustom = map[string]sdk.Msg{ "/dydxprotocol.affiliates.MsgUpdateAffiliateTiers": &affiliates.MsgUpdateAffiliateTiers{}, "/dydxprotocol.affiliates.MsgUpdateAffiliateTiersResponse": nil, "/dydxprotocol.affiliates.MsgUpdateAffiliateWhitelist": &affiliates.MsgUpdateAffiliateWhitelist{}, "/dydxprotocol.affiliates.MsgUpdateAffiliateWhitelistResponse": nil, "/dydxprotocol.accountplus.MsgSetActiveState": &accountplus.MsgSetActiveState{}, "/dydxprotocol.accountplus.MsgSetActiveStateResponse": nil, "/dydxprotocol.blocktime.MsgUpdateDowntimeParams": &blocktime.MsgUpdateDowntimeParams{}, "/dydxprotocol.blocktime.MsgUpdateDowntimeParamsResponse": nil, "/dydxprotocol.blocktime.MsgUpdateSynchronyParams": &blocktime.MsgUpdateSynchronyParams{}, "/dydxprotocol.blocktime.MsgUpdateSynchronyParamsResponse": nil, "/dydxprotocol.bridge.MsgCompleteBridge": &bridge.MsgCompleteBridge{}, "/dydxprotocol.bridge.MsgCompleteBridgeResponse": nil, "/dydxprotocol.bridge.MsgUpdateEventParams": &bridge.MsgUpdateEventParams{}, "/dydxprotocol.bridge.MsgUpdateEventParamsResponse": nil, "/dydxprotocol.bridge.MsgUpdateProposeParams": &bridge.MsgUpdateProposeParams{}, "/dydxprotocol.bridge.MsgUpdateProposeParamsResponse": nil, "/dydxprotocol.bridge.MsgUpdateSafetyParams": &bridge.MsgUpdateSafetyParams{}, "/dydxprotocol.bridge.MsgUpdateSafetyParamsResponse": nil, "/dydxprotocol.clob.MsgCreateClobPair": &clob.MsgCreateClobPair{}, "/dydxprotocol.clob.MsgCreateClobPairResponse": nil, "/dydxprotocol.clob.MsgUpdateBlockRateLimitConfiguration": &clob.MsgUpdateBlockRateLimitConfiguration{}, "/dydxprotocol.clob.MsgUpdateBlockRateLimitConfigurationResponse": nil, "/dydxprotocol.clob.MsgUpdateClobPair": &clob.MsgUpdateClobPair{}, "/dydxprotocol.clob.MsgUpdateClobPairResponse": nil, "/dydxprotocol.clob.MsgUpdateEquityTierLimitConfiguration": &clob.MsgUpdateEquityTierLimitConfiguration{}, "/dydxprotocol.clob.MsgUpdateEquityTierLimitConfigurationResponse": nil, "/dydxprotocol.clob.MsgUpdateLiquidationsConfig": &clob.MsgUpdateLiquidationsConfig{}, "/dydxprotocol.clob.MsgUpdateLiquidationsConfigResponse": nil, "/dydxprotocol.delaymsg.MsgDelayMessage": &delaymsg.MsgDelayMessage{}, "/dydxprotocol.delaymsg.MsgDelayMessageResponse": nil, "/dydxprotocol.feetiers.MsgUpdatePerpetualFeeParams": &feetiers.MsgUpdatePerpetualFeeParams{}, "/dydxprotocol.feetiers.MsgUpdatePerpetualFeeParamsResponse": nil, "/dydxprotocol.govplus.MsgSlashValidator": &govplus.MsgSlashValidator{}, "/dydxprotocol.govplus.MsgSlashValidatorResponse": nil, "/dydxprotocol.listing.MsgSetMarketsHardCap": &listing.MsgSetMarketsHardCap{}, "/dydxprotocol.listing.MsgSetMarketsHardCapResponse": nil, "/dydxprotocol.listing.MsgSetListingVaultDepositParams": &listing.MsgSetListingVaultDepositParams{}, "/dydxprotocol.listing.MsgSetListingVaultDepositParamsResponse": nil, "/dydxprotocol.listing.MsgUpgradeIsolatedPerpetualToCross": &listing.MsgUpgradeIsolatedPerpetualToCross{}, "/dydxprotocol.listing.MsgUpgradeIsolatedPerpetualToCrossResponse": nil, "/dydxprotocol.perpetuals.MsgCreatePerpetual": &perpetuals.MsgCreatePerpetual{}, "/dydxprotocol.perpetuals.MsgCreatePerpetualResponse": nil, "/dydxprotocol.perpetuals.MsgSetLiquidityTier": &perpetuals.MsgSetLiquidityTier{}, "/dydxprotocol.perpetuals.MsgSetLiquidityTierResponse": nil, "/dydxprotocol.perpetuals.MsgUpdateParams": &perpetuals.MsgUpdateParams{}, "/dydxprotocol.perpetuals.MsgUpdateParamsResponse": nil, "/dydxprotocol.perpetuals.MsgUpdatePerpetualParams": &perpetuals.MsgUpdatePerpetualParams{}, "/dydxprotocol.perpetuals.MsgUpdatePerpetualParamsResponse": nil, "/dydxprotocol.prices.MsgCreateOracleMarket": &prices.MsgCreateOracleMarket{}, "/dydxprotocol.prices.MsgCreateOracleMarketResponse": nil, "/dydxprotocol.prices.MsgUpdateMarketParam": &prices.MsgUpdateMarketParam{}, "/dydxprotocol.prices.MsgUpdateMarketParamResponse": nil, "/dydxprotocol.ratelimit.MsgSetLimitParams": &ratelimit.MsgSetLimitParams{}, "/dydxprotocol.ratelimit.MsgSetLimitParamsResponse": nil, "/dydxprotocol.revshare.MsgSetMarketMapperRevShareDetailsForMarket": &revshare.MsgSetMarketMapperRevShareDetailsForMarket{}, "/dydxprotocol.revshare.MsgSetMarketMapperRevShareDetailsForMarketResponse": nil, "/dydxprotocol.revshare.MsgSetMarketMapperRevenueShare": &revshare.MsgSetMarketMapperRevenueShare{}, "/dydxprotocol.revshare.MsgSetMarketMapperRevenueShareResponse": nil, "/dydxprotocol.revshare.MsgUpdateUnconditionalRevShareConfig": &revshare.MsgUpdateUnconditionalRevShareConfig{}, "/dydxprotocol.revshare.MsgUpdateUnconditionalRevShareConfigResponse": nil, "/dydxprotocol.rewards.MsgUpdateParams": &rewards.MsgUpdateParams{}, "/dydxprotocol.rewards.MsgUpdateParamsResponse": nil, "/dydxprotocol.sending.MsgSendFromModuleToAccount": &sending.MsgSendFromModuleToAccount{}, "/dydxprotocol.sending.MsgSendFromModuleToAccountResponse": nil, "/dydxprotocol.stats.MsgUpdateParams": &stats.MsgUpdateParams{}, "/dydxprotocol.stats.MsgUpdateParamsResponse": nil, "/dydxprotocol.vault.MsgUnlockShares": &vault.MsgUnlockShares{}, "/dydxprotocol.vault.MsgUnlockSharesResponse": nil, "/dydxprotocol.vault.MsgUpdateDefaultQuotingParams": &vault.MsgUpdateDefaultQuotingParams{}, "/dydxprotocol.vault.MsgUpdateDefaultQuotingParamsResponse": nil, "/dydxprotocol.vault.MsgUpdateOperatorParams": &vault.MsgUpdateOperatorParams{}, "/dydxprotocol.vault.MsgUpdateOperatorParamsResponse": nil, "/dydxprotocol.vest.MsgSetVestEntry": &vest.MsgSetVestEntry{}, "/dydxprotocol.vest.MsgSetVestEntryResponse": nil, "/dydxprotocol.vest.MsgDeleteVestEntry": &vest.MsgDeleteVestEntry{}, "/dydxprotocol.vest.MsgDeleteVestEntryResponse": nil, } )
View Source
var ( // NormalMsgs are messages that can be submitted by external users. NormalMsgs = lib.MergeAllMapsMustHaveDistinctKeys(NormalMsgsDefault, NormalMsgsDydxCustom, NormalMsgsSlinky) // Default modules NormalMsgsDefault = map[string]sdk.Msg{}/* 138 elements not displayed */ // Custom modules NormalMsgsDydxCustom = map[string]sdk.Msg{ "/dydxprotocol.affiliates.MsgRegisterAffiliate": &affiliates.MsgRegisterAffiliate{}, "/dydxprotocol.affiliates.MsgRegisterAffiliateResponse": nil, "/dydxprotocol.accountplus.MsgAddAuthenticator": &accountplus.MsgAddAuthenticator{}, "/dydxprotocol.accountplus.MsgAddAuthenticatorResponse": nil, "/dydxprotocol.accountplus.MsgRemoveAuthenticator": &accountplus.MsgRemoveAuthenticator{}, "/dydxprotocol.accountplus.MsgRemoveAuthenticatorResponse": nil, "/dydxprotocol.accountplus.TxExtension": nil, "/dydxprotocol.clob.MsgBatchCancel": &clob.MsgBatchCancel{}, "/dydxprotocol.clob.MsgBatchCancelResponse": nil, "/dydxprotocol.clob.MsgCancelOrder": &clob.MsgCancelOrder{}, "/dydxprotocol.clob.MsgCancelOrderResponse": nil, "/dydxprotocol.clob.MsgPlaceOrder": &clob.MsgPlaceOrder{}, "/dydxprotocol.clob.MsgPlaceOrderResponse": nil, "/dydxprotocol.listing.MsgCreateMarketPermissionless": &listing.MsgCreateMarketPermissionless{}, "/dydxprotocol.listing.MsgCreateMarketPermissionlessResponse": nil, "/dydxprotocol.sending.MsgCreateTransfer": &sending.MsgCreateTransfer{}, "/dydxprotocol.sending.MsgCreateTransferResponse": nil, "/dydxprotocol.sending.MsgDepositToSubaccount": &sending.MsgDepositToSubaccount{}, "/dydxprotocol.sending.MsgDepositToSubaccountResponse": nil, "/dydxprotocol.sending.MsgWithdrawFromSubaccount": &sending.MsgWithdrawFromSubaccount{}, "/dydxprotocol.sending.MsgWithdrawFromSubaccountResponse": nil, "/dydxprotocol.vault.MsgAllocateToVault": &vault.MsgAllocateToVault{}, "/dydxprotocol.vault.MsgAllocateToVaultResponse": nil, "/dydxprotocol.vault.MsgDepositToMegavault": &vault.MsgDepositToMegavault{}, "/dydxprotocol.vault.MsgDepositToMegavaultResponse": nil, "/dydxprotocol.vault.MsgRetrieveFromVault": &vault.MsgRetrieveFromVault{}, "/dydxprotocol.vault.MsgRetrieveFromVaultResponse": nil, "/dydxprotocol.vault.MsgSetVaultParams": &vault.MsgSetVaultParams{}, "/dydxprotocol.vault.MsgSetVaultParamsResponse": nil, "/dydxprotocol.vault.MsgWithdrawFromMegavault": &vault.MsgWithdrawFromMegavault{}, "/dydxprotocol.vault.MsgWithdrawFromMegavaultResponse": nil, } NormalMsgsSlinky = map[string]sdk.Msg{ "/slinky.marketmap.v1.MsgCreateMarkets": &marketmapmoduletypes.MsgCreateMarkets{}, "/slinky.marketmap.v1.MsgCreateMarketsResponse": nil, "/slinky.marketmap.v1.MsgParams": &marketmapmoduletypes.MsgParams{}, "/slinky.marketmap.v1.MsgParamsResponse": nil, "/slinky.marketmap.v1.MsgRemoveMarkets": &marketmapmoduletypes.MsgRemoveMarkets{}, "/slinky.marketmap.v1.MsgRemoveMarketsResponse": nil, "/slinky.marketmap.v1.MsgRemoveMarketAuthorities": &marketmapmoduletypes.MsgRemoveMarketAuthorities{}, "/slinky.marketmap.v1.MsgRemoveMarketAuthoritiesResponse": nil, "/slinky.marketmap.v1.MsgUpdateMarkets": &marketmapmoduletypes.MsgUpdateMarkets{}, "/slinky.marketmap.v1.MsgUpdateMarketsResponse": nil, "/slinky.marketmap.v1.MsgUpsertMarkets": &marketmapmoduletypes.MsgUpsertMarkets{}, "/slinky.marketmap.v1.MsgUpsertMarketsResponse": 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{ "/dydxprotocol.bridge.MsgAcknowledgeBridges": &bridgetypes.MsgAcknowledgeBridges{ Events: []bridgetypes.BridgeEvent{ { Id: 0, Coin: sdk.NewCoin( "bridge-token", sdkmath.NewIntFromUint64(1234), ), Address: constants.Alice_Num0.Owner, }, }, }, "/dydxprotocol.bridge.MsgAcknowledgeBridgesResponse": nil, "/dydxprotocol.clob.MsgProposedOperations": &clobtypes.MsgProposedOperations{ OperationsQueue: make([]clobtypes.OperationRaw, 0), }, "/dydxprotocol.clob.MsgProposedOperationsResponse": nil, "/dydxprotocol.perpetuals.MsgAddPremiumVotes": &perptypes.MsgAddPremiumVotes{ Votes: []perptypes.FundingPremium{ {PerpetualId: 0, PremiumPpm: 1_000}, }, }, "/dydxprotocol.perpetuals.MsgAddPremiumVotesResponse": nil, "/dydxprotocol.prices.MsgUpdateMarketPrices": &pricestypes.MsgUpdateMarketPrices{ MarketPriceUpdates: []*pricestypes.MsgUpdateMarketPrices_MarketPrice{ pricestypes.NewMarketPriceUpdate(constants.MarketId0, 123_000), }, }, "/dydxprotocol.prices.MsgUpdateMarketPricesResponse": 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, "/dydxprotocol.vault.MsgSetVaultQuotingParams": &vaulttypes.MsgSetVaultQuotingParams{}, "/dydxprotocol.vault.MsgUpdateParams": &vaulttypes.MsgUpdateParams{}, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.