UNPKG

hm-aftermath-ts-sdk

Version:
34 lines 3.85 kB
import { PerpetualsAccountObject, PerpetualsPosition, DepositedCollateralEvent, WithdrewCollateralEvent, CreatedAccountEvent, CanceledOrderEvent, PostedOrderEvent, FilledTakerOrderEvent, FilledMakerOrderEvent, PerpetualsOrderInfo, SettledFundingEvent, UpdatedSpreadTwapEvent, UpdatedPremiumTwapEvent, LiquidatedEvent, PerpetualsMarketData, PostedOrderReceiptEvent, PerpetualsRawAccountCap, AllocatedCollateralEvent, DeallocatedCollateralEvent, PerpetualsMarketId } from "../perpetualsTypes"; import { CoinSymbol, CoinType } from "../../coin/coinTypes"; import { CanceledOrderEventOnChain, CreatedAccountEventOnChain, DepositedCollateralEventOnChain, PostedOrderEventOnChain, WithdrewCollateralEventOnChain, FilledMakerOrderEventOnChain, FilledTakerOrderEventOnChain, LiquidatedEventOnChain, SettledFundingEventOnChain, UpdatedPremiumTwapEventOnChain, UpdatedSpreadTwapEventOnChain, PostedOrderReceiptEventOnChain, AllocatedCollateralEventOnChain, DeallocatedCollateralEventOnChain, PerpetualsAccountPositionsIndexerResponse, PerpetualsPositionIndexerResponse, PerpetualsMarketDataIndexerResponse } from "../perpetualsCastingTypes"; import { ObjectDigest, ObjectVersion } from "../../../types"; export declare class PerpetualsApiCasting { static rawAccountCapFromRaw(data: any, collateralCoinType: CoinType, version: ObjectVersion, digest: ObjectDigest): PerpetualsRawAccountCap; static positionFromIndexerReponse: (inputs: { position: PerpetualsPositionIndexerResponse; collateralCoinType: CoinType; marketId: PerpetualsMarketId; leverage: number; }) => PerpetualsPosition; static accountObjectFromIndexerResponse: (response: PerpetualsAccountPositionsIndexerResponse, collateralCoinType: CoinType) => PerpetualsAccountObject; static marketDataFromIndexerResponse(data: PerpetualsMarketDataIndexerResponse, collateralCoinType: CoinType, baseAssetSymbol: CoinSymbol): PerpetualsMarketData; private static marketParamsFromIndexerResponse; private static marketStateFromIndexerResponse; static orderbookPriceFromBytes: (bytes: number[]) => number; static orderInfoFromRaw: (data: any) => PerpetualsOrderInfo; static withdrewCollateralEventFromOnChain: (eventOnChain: WithdrewCollateralEventOnChain) => WithdrewCollateralEvent; static depositedCollateralEventFromOnChain: (eventOnChain: DepositedCollateralEventOnChain) => DepositedCollateralEvent; static settledFundingEventFromOnChain: (eventOnChain: SettledFundingEventOnChain) => SettledFundingEvent; static allocatedCollateralEventFromOnChain: (eventOnChain: AllocatedCollateralEventOnChain) => AllocatedCollateralEvent; static deallocatedCollateralEventFromOnChain: (eventOnChain: DeallocatedCollateralEventOnChain) => DeallocatedCollateralEvent; static liquidatedEventFromOnChain: (eventOnChain: LiquidatedEventOnChain) => LiquidatedEvent; static createdAccountEventFromOnChain: (eventOnChain: CreatedAccountEventOnChain) => CreatedAccountEvent; static canceledOrderEventFromOnChain: (eventOnChain: CanceledOrderEventOnChain) => CanceledOrderEvent; static postedOrderEventFromOnChain: (eventOnChain: PostedOrderEventOnChain) => PostedOrderEvent; static filledMakerOrderEventFromOnChain: (eventOnChain: FilledMakerOrderEventOnChain) => FilledMakerOrderEvent; static filledTakerOrderEventFromOnChain: (eventOnChain: FilledTakerOrderEventOnChain) => FilledTakerOrderEvent; static postedOrderReceiptEventFromOnChain: (eventOnChain: PostedOrderReceiptEventOnChain) => PostedOrderReceiptEvent; static updatedPremiumTwapEventFromOnChain: (eventOnChain: UpdatedPremiumTwapEventOnChain) => UpdatedPremiumTwapEvent; static updatedSpreadTwapEventFromOnChain: (eventOnChain: UpdatedSpreadTwapEventOnChain) => UpdatedSpreadTwapEvent; } //# sourceMappingURL=perpetualsApiCasting.d.ts.map