msgs

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 32 Imported by: 0

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{}{}/* 220 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.
	InternalMsgSamplesGovAuth = 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,

		"/dydxprotocol.blocktime.MsgUpdateDowntimeParams":         &blocktime.MsgUpdateDowntimeParams{},
		"/dydxprotocol.blocktime.MsgUpdateDowntimeParamsResponse": 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.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.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.vest.MsgSetVestEntry":            &vest.MsgSetVestEntry{},
		"/dydxprotocol.vest.MsgSetVestEntryResponse":    nil,
		"/dydxprotocol.vest.MsgDeleteVestEntry":         &vest.MsgDeleteVestEntry{},
		"/dydxprotocol.vest.MsgDeleteVestEntryResponse": 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.blocktime.MsgIsDelayedBlock": &blocktimetypes.MsgIsDelayedBlock{
			DelayDuration: time.Second,
		},
		"/dydxprotocol.blocktime.MsgIsDelayedBlockResponse": nil,

		"/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.gov.v1.MsgSubmitProposal":         &gov.MsgSubmitProposal{},
		"/cosmos.gov.v1.MsgSubmitProposalResponse": nil,
	}
)
View Source
var (
	// NormalMsgs are messages that can be submitted by external users.
	NormalMsgs = map[string]sdk.Msg{}/* 135 elements not displayed */

)
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.authz.v1beta1.MsgExec":         {},
		"/cosmos.authz.v1beta1.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.v1beta1.MsgSubmitProposal":         &govbeta.MsgSubmitProposal{},
		"/cosmos.gov.v1beta1.MsgSubmitProposalResponse": nil,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL