dataStore
This module is the SDK's public registry of GMX DataStore key constants and key-builder helpers.
What it exports
- Static hashed keys such as
MIN_COLLATERAL_USD_KEY,MAX_AUTO_CANCEL_ORDERS_KEY,MAX_COLLATERAL_SUM_KEY,MIN_FUNDING_INCREASE_RATE_PER_SECOND,USE_OPEN_INTEREST_IN_TOKENS_FOR_BALANCE,VIRTUAL_INVENTORY_FOR_POSITIONS_IN_TOKENS_KEY, andREQUEST_EXPIRATION_TIME_KEY - Dynamic key builders such as
positionImpactFactorKey,swapFeeFactorKey,poolAmountKey,maxCollateralSumKey,minFundingIncreaseRatePerSecondKey,virtualInventoryForPositionsInTokensKey,accountOrderListKey,uiFeeFactorKey,hashedPositionKey, andclaimTermsKey
import {
MAX_COLLATERAL_SUM_KEY,
MAX_AUTO_CANCEL_ORDERS_KEY,
maxCollateralSumKey,
minFundingFactorPerSecondKey,
minFundingIncreaseRatePerSecondKey,
positionImpactFactorKey,
poolAmountKey,
uiFeeFactorKey,
virtualInventoryForPositionsInTokensKey,
} from "@gmx-io/sdk/configs/dataStore";
Funding bounds are side-specific: minFundingFactorPerSecondKey(market, isLong) and maxFundingFactorPerSecondKey(market, isLong) include the position side in the derived key.
Use this module when you need to read or derive raw DataStore keys for multicalls or contract debugging. The entrypoint is large by design because it mirrors the on-chain key layout.