package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NewAssetCreateEvent creates a AssetCreateEvent representing creation of an asset.
No description provided by the author
No description provided by the author
NewDeleveragingEvent creates a DeleveragingEvent representing a deleveraging where a liquidated subaccount's position is offset by another subaccount.
NewDepositEvent creates a DepositEvent representing a deposit of an asset from a sender wallet address to a recipient subaccount.
NewFundingRatesAndIndicesEvent creates a FundingEvent representing a list of new funding rates generated at the end of each `funding-tick` epoch and funding indices accordingly updated with `funding rate * price`.
NewLiquidationOrderFillEvent creates a new OrderFillEvent proto message given the maker and liquidation taker orders along with the fill and fee amounts.
NewLiquidityTierUpsertEvent creates a LiquidityTierUpsertEvent representing upsert of a liquidity tier.
No description provided by the author
NewMarketCreateEvent creates a MarketEvent representing a new market.
NewMarketModifyEvent creates a MarketEvent representing an update to a market.
NewMarketPriceUpdateEvent creates a MarketEvent representing an update in the priceWithExponent of a market.
NewOrderFillEvent creates a new OrderFillEvent proto message given the maker and taker orders along with the fill and fee amounts.
NewPerpetualMarketCreateEvent creates a PerpetualMarketCreateEvent representing creation of a perpetual market.
NewPremiumSamplesEvent creates a FundingEvent representing a list of new funding premium samples generated at the end of each `funding-sample` epoch.
NewRegisterAffiliateEventV1 creates a RegisterAffiliateEventV1 representing a referee being registered with an affiliate.
No description provided by the author
NewSubaccountUpdateEvent creates a SubaccountUpdateEvent representing a subaccount update containing its updated perpetual/asset positions.
NewTransferEvent creates a TransferEvent representing a transfer of an asset between a sender and recipient subaccount.
NewUpdateClobPairEvent creates a UpdateClobPairEventV1 representing an update of a clob pair.
NewUpdatePerpetualEventV1 creates a UpdatePerpetualEventV1 representing update of a perpetual.
NewUpsertVaultEvent creates a UpsertVaultEventV1 representing an create / update of a vault.
NewWithdrawEvent creates a WithdrawEvent representing a withdrawal of an asset from a sender subaccount to a recipient wallet address.
# Constants
No description provided by the author
No description provided by the author
Funding rate is the final funding rate combining all premium samples during a `funding-tick` epoch.
Premium sample is the combined value from all premium votes during a `funding-sample` epoch.
TODO(DEC-1513): Investigate whether premium vote values need to be sent to indexer.
Unspecified type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Indexer event versions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Cosmos event attribute values for the subtype attribute for different indexer events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
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
AddressTradingReward contains info on an instance of an address receiving a reward.
AssetCreateEventV1 message contains all the information about an new Asset on the dYdX chain.
DeleveragingEvent message contains all the information for a deleveraging on the dYdX chain.
FundingEvent message contains a list of per-market funding values.
FundingUpdate is used for funding update events and includes a funding value and an optional funding index that correspond to a perpetual market.
LiquidationOrder represents the liquidation taker order to be included in a liquidation order fill event.
LiquidityTierUpsertEventV1 message contains all the information to create/update a Liquidity Tier on the dYdX chain.
LiquidationEventV2 message contains all the information needed to update the liquidity tiers.
shared fields between MarketCreateEvent and MarketModifyEvent.
MarketCreateEvent message contains all the information about a new market on the dYdX chain.
MarketEvent message contains all the information about a market event on the dYdX chain.
No description provided by the author
No description provided by the author
No description provided by the author
MarketModifyEvent message contains all the information about a market update on the dYdX chain.
MarketPriceUpdateEvent message contains all the information about a price update on the dYdX chain.
OpenInterestUpdate contains a single open interest update for a perpetual Deprecated.
OpenInterestUpdateEventV1 is used for open interest update events Deprecated.
OrderFillEvent message contains all the information from an order match in the dYdX chain.
No description provided by the author
No description provided by the author
PerpetualMarketCreateEventV1 message contains all the information about a new Perpetual Market on the dYdX chain.
PerpetualMarketCreateEventV2 message contains all the information about a new Perpetual Market on the dYdX chain.
Event emitted when a referee is registered with an affiliate.
SourceOfFunds is the source of funds in a transfer event.
No description provided by the author
No description provided by the author
StatefulOrderEvent message contains information about a change to a stateful order.
No description provided by the author
A conditional order placement contains an order.
No description provided by the author
A conditional order trigger event contains an order id and is emitted when an order is triggered.
No description provided by the author
A long term order placement contains an order.
A long term order replacement contains an old order ID and the new order.
No description provided by the author
No description provided by the author
No description provided by the author
A stateful order placement contains an order.
A stateful order removal contains the id of an order that was already placed and is now removed and the reason for the removal.
SubaccountUpdateEvent message contains information about an update to a subaccount in the dYdX chain.
TradingRewardsEventV1 is communicates all trading rewards for all accounts that receive trade rewards in the block.
TransferEvent message contains all the information about a transfer, deposit-to-subaccount, or withdraw-from-subaccount on the dYdX chain.
UpdateClobPairEventV1 message contains all the information about an update to a clob pair on the dYdX chain.
UpdatePerpetualEventV1 message contains all the information about an update to a perpetual on the dYdX chain.
Event emitted when a vault is created / updated.
# Type aliases
Type is the type for funding values.