package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev
# Functions
DecodeAcknowledgeBridgesTx returns a new `AcknowledgeBridgesTx` after validating the following: - decodes the given tx bytes - checks the msg is of expected type
If error occurs during any of the checks, returns error.
DecodeAddPremiumVotesTx returns a new `AddPremiumVotesTx` after validating the following: - decodes the given tx bytes - checks the num of msgs in the tx matches expectations - checks the msg is of expected type
If error occurs during any of the checks, returns error.
DecodeOtherMsgsTx returns a new `OtherMsgsTx` after validating the following: - decodes the given tx bytes - checks the num of msgs in the tx is not 0 - checks the msgs do not contain "app-injected msgs" or "internal msgs" or "unsupported msgs" - checks the msgs do not contain "nested msgs" that fail `ValidateNestedMsg` - checks the msgs do not contain top-level msgs that are not allowed in OtherTxs
If error occurs during any of the checks, returns error.
DecodeProcessProposalTxs returns a new `processProposalTxs`.
DecodeProposedOperationsTx returns a new `ProposedOperationsTx` after validating the following: - decodes the given tx bytes - checks the num of msgs in the tx matches expectations - checks the msg is of expected type
If error occurs during any of the checks, returns error.
DecodeAddPremiumVotesTx returns a new `UpdateMarketPricesTx` after validating the following: - decodes the given tx bytes - checks the num of msgs in the tx matches expectations - checks the msg is of expected type
If error occurs during any of the checks, returns error.
FullNodeProcessProposalHandler is the `ProcessProposal` implementation for full-nodes.
No description provided by the author
No description provided by the author
No description provided by the author
IsDisallowClobOrderMsgInOtherTxs returns true if the given msg type is not allowed to be in a proposed block as part of OtherTxs.
No description provided by the author
NewDefaultUpdateMarketPriceTxDecoder returns a new DefaultUpdateMarketPriceTxDecoder.
NewSlinkyMarketPriceDecoder returns a new SlinkyMarketPriceDecoder.
No description provided by the author
ProcessProposalHandler is responsible for ensuring that the list of txs in the proposed block are valid.
# Variables
1 - 99: Default.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AcknowledgeBridgesTx represents `MsgAcknowledgeBridge`s tx that can be validated.
AddPremiumVotesTx represents `MsgAddPremiumVotes` tx that can be validated.
DefaultUpdateMarketPriceTxDecoder is the default implementation of the MarketPriceDecoder interface.
OtherMsgsTx represents tx msgs in the "other" category that can be validated.
ProcessProposalTxs is used as an intermediary struct to validate a proposed list of txs for `ProcessProposal`.
ProposedOperationsTx represents `MsgProposedOperations` tx that can be validated.
SlinkyMarketPriceDecoder wraps an existing MarketPriceDecoder with logic to verify that the MarketPriceUpdateTx was indeed derived from vote-extensions injected into the block.
UpdateMarketPricesTx represents `MsgUpdateMarketPrices` tx that can be validated.
# Interfaces
MultiMsgsTx represents a tx with multiple msgs.
ProcessBridgeKeeper defines the expected bridge keeper used for `ProcessProposal`.
ProcessClobKeeper defines the expected clob keeper used for `ProcessProposal`.
ProcessPerpetualKeeper defines the expected perpetual keeper used for `ProcessProposal`.
ProcessPricesKeeper defines the expected Prices keeper used for `ProcessProposal`.
ProcessStakingKeeper defines the expected staking keeper used for `ProcessProposal`.
SingleMsgTx represents a tx with a single msg.
MarketPriceDecoder is an interface for decoding market price transactions, This interface is responsible for distinguishing between logic for unmarshalling MarketPriceUpdates, between MarketPriceUpdates determined by the proposer's price-cache, and from VoteExtensions.