# Functions
AbiEncode encodes the provided types (e.g., string, uint256, int32) and corresponding values into a hex-string for EVM.
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
CreateEvmSignature signs the byte data with the given private key per EVM convention, so that smart contracts can check the signature.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreatePerpetualManagerInstance creates an instance of the Perpetual Contract.
No description provided by the author
estimateGasLimit estimates the gaslimit.
No description provided by the author
No description provided by the author
No description provided by the author
GetPerpetualStaticInfoIdxFromId returns the idx of the perpetual within StaticExchangeInfo, given the perpetual id (e.g., 10001).
GetPerpetualStaticInfoIdxFromSymbol returns the idx of the perpetual within StaticExchangeInfo, given the perpetual symbol (e.g., MATIC-USD-USDC).
GetPoolStaticInfoIdxFromSymbol returns exchangeInfo.Pools[j] for the given symbol.
No description provided by the author
No description provided by the author
NewOrder creates a new order allowing for minimal specification (function accepts nil for pointers).
NewWallet constructs a new wallet.
No description provided by the author
No description provided by the author
RawAddCollateral adds (amountCC>0) or removes (amountCC<0) collateral to/from the margin account of the given perpetual.
No description provided by the author
RawCancelOrder cancels the existing order with the given id from the provided wallet.
No description provided by the author
No description provided by the author
RawExecuteOrders executes order; opts not optional here.
FetchPricesForPerpetual queries the REST-endpoints/onchain oracles and calculates S2,S3 index prices, also returns the price-feed-data required for blockchain submission and information whether the market is closed or not.
No description provided by the author
No description provided by the author
Not compatible with zkevm deployment.
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
RawPostOrder posts an order to the correct limit order book.
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
RawQueryPerpetualPriceTuple queries prices for different trade amounts for the given perpetual.
QueryPerpetualState collects PerpetualState by calling the off-chain prices and blockchain queries.
No description provided by the author
RawQueryPoolStates gathers the pool states of all pools by querying the blockchain in chunks of 10 pools.
No description provided by the author
No description provided by the author
No description provided by the author
RecoverPaymentSignatureAddr recovers the address that created the signature of PaySummary data for the given chainId and multiPayContract address.
STUSDToUSDC fetches the onchain conversion rate for STUSD-USDC on Arbitrum.
Triangulate finds the shortest triangulation path for symbol (e.g.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
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
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
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
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
# Structs
No description provided by the author
Type provided to query payment signature from broker.
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
overrides for order execution.
No description provided by the author
No description provided by the author
No description provided by the author
struct to be submitted by front-end provider to get broker signature.
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
Sdk is the read-write type.
No description provided by the author
SdkRO is the read-only type.
StaticExchangeInfo is the main information with which many functions can operate on the exchange It can be stored into a JSON file (info.Store) and loaded from a JSON file (info.Load).
No description provided by the author
No description provided by the author
# Type aliases
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