package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateOrderPlaceMessage creates an off-chain update message for an order.
CreateOrderRemoveMessage creates an off-chain update message for an order being removed, with the order's status and the resulting removal status of the removed order.
CreateOrderRemoveMessageWithDefaultReason creates an off-chain update message for an order being removed with the resulting removal status of the removed order.
CreateOrderRemoveMessageWithReason creates an off-chain update message for an order being removed with a specific reason for the removal and the resulting removal status of the removed order.
CreateOrderReplaceMessage creates an off-chain update message for an order.
CreateOrderUpdateMessage creates an off-chain update message for an order being updated.
GetOrderIdHash gets the SHA256 hash of the `IndexerOrderId` mapped from an `OrderId`.
MustCreateOrderPlaceMessage invokes CreateOrderPlaceMessage and panics if creation was unsuccessful.
MustCreateOrderRemoveMessage invokes CreateOrderRemoveMessage and panics if creation was unsuccessful.
MustCreateOrderRemoveMessageWithReason invokes CreateOrderRemoveMessageWithReason and panics if creation was unsuccessful.
MustCreateOrderReplaceMessage invokes CreateOrderReplaceMessage and panics if creation was unsuccessful.
MustCreateOrderUpdateMessage invokes CreateOrderUpdateMessage and panics if creation was unsuccessful.
NewOrderPlaceMessage returns an `OffChainUpdate` struct populated with an `OrderPlace` struct as the `UpdateMessage` parameter, encoded as a byte slice.
NewOrderRemoveMessage returns an `OffChainUpdate` struct populated with an `OrderRemove` struct as the `UpdateMessage` parameter, encoded as a byte slice.
NewOrderReplaceMessage returns an `OffChainUpdate` struct populated with an `OrderReplace` struct as the `UpdateMessage` parameter, encoded as a byte slice.
NewOrderUpdateMessage returns an `OffChainUpdate` struct populated with an `OrderUpdate` struct as the `UpdateMessage` parameter, encoded as a byte slice.
ShouldSendOrderRemovalOnReplay returns a true/false for whether an order removal message should be sent given the error encountered while replaying an order.