@metamask-previews/perps-controller 12.2.0-preview-e68ab1498 → 13.0.0-preview-4b37525
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -6
- package/dist/PerpsController-method-action-types.cjs.map +1 -1
- package/dist/PerpsController-method-action-types.d.cts +26 -3
- package/dist/PerpsController-method-action-types.d.cts.map +1 -1
- package/dist/PerpsController-method-action-types.d.mts +26 -3
- package/dist/PerpsController-method-action-types.d.mts.map +1 -1
- package/dist/PerpsController-method-action-types.mjs.map +1 -1
- package/dist/PerpsController.cjs +392 -102
- package/dist/PerpsController.cjs.map +1 -1
- package/dist/PerpsController.d.cts +26 -7
- package/dist/PerpsController.d.cts.map +1 -1
- package/dist/PerpsController.d.mts +26 -7
- package/dist/PerpsController.d.mts.map +1 -1
- package/dist/PerpsController.mjs +392 -102
- package/dist/PerpsController.mjs.map +1 -1
- package/dist/constants/eventNames.cjs +1 -1
- package/dist/constants/eventNames.cjs.map +1 -1
- package/dist/constants/eventNames.d.cts +1 -1
- package/dist/constants/eventNames.d.mts +1 -1
- package/dist/constants/eventNames.mjs +1 -1
- package/dist/constants/eventNames.mjs.map +1 -1
- package/dist/constants/hyperLiquidConfig.cjs +14 -2
- package/dist/constants/hyperLiquidConfig.cjs.map +1 -1
- package/dist/constants/hyperLiquidConfig.d.cts +10 -0
- package/dist/constants/hyperLiquidConfig.d.cts.map +1 -1
- package/dist/constants/hyperLiquidConfig.d.mts +10 -0
- package/dist/constants/hyperLiquidConfig.d.mts.map +1 -1
- package/dist/constants/hyperLiquidConfig.mjs +12 -0
- package/dist/constants/hyperLiquidConfig.mjs.map +1 -1
- package/dist/constants/perpsConfig.cjs +3 -4
- package/dist/constants/perpsConfig.cjs.map +1 -1
- package/dist/constants/perpsConfig.d.cts +2 -4
- package/dist/constants/perpsConfig.d.cts.map +1 -1
- package/dist/constants/perpsConfig.d.mts +2 -4
- package/dist/constants/perpsConfig.d.mts.map +1 -1
- package/dist/constants/perpsConfig.mjs +3 -4
- package/dist/constants/perpsConfig.mjs.map +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/perpsErrorCodes.cjs +5 -1
- package/dist/perpsErrorCodes.cjs.map +1 -1
- package/dist/perpsErrorCodes.d.cts +4 -0
- package/dist/perpsErrorCodes.d.cts.map +1 -1
- package/dist/perpsErrorCodes.d.mts +4 -0
- package/dist/perpsErrorCodes.d.mts.map +1 -1
- package/dist/perpsErrorCodes.mjs +5 -1
- package/dist/perpsErrorCodes.mjs.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.cjs +104 -14
- package/dist/providers/AggregatedPerpsProvider.cjs.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.d.cts +34 -2
- package/dist/providers/AggregatedPerpsProvider.d.cts.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.d.mts +34 -2
- package/dist/providers/AggregatedPerpsProvider.d.mts.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.mjs +102 -13
- package/dist/providers/AggregatedPerpsProvider.mjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.cjs +2141 -637
- package/dist/providers/HyperLiquidProvider.cjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.cts +37 -17
- package/dist/providers/HyperLiquidProvider.d.cts.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.mts +37 -17
- package/dist/providers/HyperLiquidProvider.d.mts.map +1 -1
- package/dist/providers/HyperLiquidProvider.mjs +2146 -642
- package/dist/providers/HyperLiquidProvider.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +96 -3
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +96 -3
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/capabilitySymbols.cjs +25 -0
- package/dist/utils/capabilitySymbols.cjs.map +1 -0
- package/dist/utils/capabilitySymbols.d.cts +15 -0
- package/dist/utils/capabilitySymbols.d.cts.map +1 -0
- package/dist/utils/capabilitySymbols.d.mts +15 -0
- package/dist/utils/capabilitySymbols.d.mts.map +1 -0
- package/dist/utils/capabilitySymbols.mjs +21 -0
- package/dist/utils/capabilitySymbols.mjs.map +1 -0
- package/dist/utils/hyperLiquidAdapter.cjs +20 -1
- package/dist/utils/hyperLiquidAdapter.cjs.map +1 -1
- package/dist/utils/hyperLiquidAdapter.d.cts +1 -0
- package/dist/utils/hyperLiquidAdapter.d.cts.map +1 -1
- package/dist/utils/hyperLiquidAdapter.d.mts +1 -0
- package/dist/utils/hyperLiquidAdapter.d.mts.map +1 -1
- package/dist/utils/hyperLiquidAdapter.mjs +19 -0
- package/dist/utils/hyperLiquidAdapter.mjs.map +1 -1
- package/dist/utils/hyperLiquidValidation.cjs +1 -1
- package/dist/utils/hyperLiquidValidation.cjs.map +1 -1
- package/dist/utils/hyperLiquidValidation.d.cts +1 -1
- package/dist/utils/hyperLiquidValidation.d.mts +1 -1
- package/dist/utils/hyperLiquidValidation.mjs +1 -1
- package/dist/utils/hyperLiquidValidation.mjs.map +1 -1
- package/dist/utils/stringParseUtils.cjs +17 -1
- package/dist/utils/stringParseUtils.cjs.map +1 -1
- package/dist/utils/stringParseUtils.d.cts +8 -0
- package/dist/utils/stringParseUtils.d.cts.map +1 -1
- package/dist/utils/stringParseUtils.d.mts +8 -0
- package/dist/utils/stringParseUtils.d.mts.map +1 -1
- package/dist/utils/stringParseUtils.mjs +15 -0
- package/dist/utils/stringParseUtils.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,25 @@ import { CaipAccountId } from "@metamask/utils";
|
|
|
2
2
|
import type { ExchangeClient } from "@nktkas/hyperliquid";
|
|
3
3
|
import type { CandlePeriod } from "../constants/chartConfig.cjs";
|
|
4
4
|
import { WebSocketConnectionState } from "../services/HyperLiquidClientService.cjs";
|
|
5
|
-
import type { AccountState, AssetRoute, BatchCancelOrdersParams, CancelOrderParams, CancelOrderResult, CancelOrdersResult, ChaseOrder, CandleData, ClosePositionParams, ClosePositionsParams, ClosePositionsResult, DepositParams, DisconnectResult, EditOrderParams, FeeCalculationParams, FeeCalculationResult, Funding, GetAccountStateParams, GetAvailableDexsParams, GetFundingParams, GetHistoricalPortfolioParams, GetMarketsParams, GetOrderFillsParams, GetOrdersParams, GetOrFetchFillsParams, GetPositionsParams, GetSupportedPathsParams, GetUserDataSnapshotParams, HistoricalPortfolioResult, InitializeResult, PerpsPlatformDependencies, PerpsProvider, LiquidationPriceParams, LiveDataConfig, MaintenanceMarginParams, MarginResult, MarketInfo, Order, OrderFill, OrderParams, OrderResult, PerpsMarketData, Position, ReadyToTradeResult, SubscribeAccountParams, SubscribeCandlesParams, SubscribeOICapsParams, SubscribeOrderBookParams, SubscribeOrderFillsParams, SubscribeOrdersParams, SubscribePositionsParams, SubscribePricesParams, ToggleTestnetResult, TransferBetweenDexsParams, TransferBetweenDexsResult, UpdateMarginParams, UpdatePositionTPSLParams, UserHistoryItem, WithdrawParams, WithdrawResult, RawLedgerUpdate, PerpsReadOptions, PerpsUserDataSnapshot, PerpsFeeResolution } from "../types/index.cjs";
|
|
5
|
+
import type { AccountState, AssetRoute, BatchCancelOrdersParams, CancelOrderParams, CancelOrderResult, CancelOrdersResult, ChaseOrder, ChaseOrderMaxDistanceReached, CandleData, ClosePositionParams, ClosePositionsParams, ClosePositionsResult, DepositParams, DisconnectResult, EditOrderParams, FeeCalculationParams, FeeCalculationResult, Funding, GetAccountStateParams, GetAvailableDexsParams, GetFundingParams, GetHistoricalPortfolioParams, GetMarketsParams, GetOrderCapabilitiesParams, GetOrderFillsParams, GetOrdersParams, GetOrFetchFillsParams, GetPositionsParams, GetSupportedPathsParams, GetUserDataSnapshotParams, HistoricalPortfolioResult, InitializeResult, PerpsPlatformDependencies, PerpsProvider, LiquidationPriceParams, LiveDataConfig, MaintenanceMarginParams, MarginResult, MarketInfo, Order, OrderFill, OrderParams, OrderResult, PerpsMarketData, DirectProviderOrderCapabilities, Position, ReadyToTradeResult, SubscribeAccountParams, SubscribeCandlesParams, SubscribeOICapsParams, SubscribeOrderBookParams, SubscribeOrderFillsParams, SubscribeOrdersParams, SubscribePositionsParams, SubscribePricesParams, ToggleTestnetResult, TransferBetweenDexsParams, TransferBetweenDexsResult, TwapOrder, UpdateMarginParams, UpdatePositionTPSLParams, UserHistoryItem, WithdrawParams, WithdrawResult, RawLedgerUpdate, PerpsReadOptions, PerpsUserDataSnapshot, PerpsFeeResolution } from "../types/index.cjs";
|
|
6
6
|
import type { PerpsControllerMessengerBase } from "../types/messenger.cjs";
|
|
7
|
+
type ChaseOrderMaxDistanceReachedHandler = (event: ChaseOrderMaxDistanceReached) => void;
|
|
8
|
+
type HyperLiquidProviderOptions = {
|
|
9
|
+
isTestnet?: boolean;
|
|
10
|
+
hip3Enabled?: boolean;
|
|
11
|
+
allowlistMarkets?: string[];
|
|
12
|
+
blocklistMarkets?: string[];
|
|
13
|
+
priceDeviationLimit?: number;
|
|
14
|
+
useUnifiedAccount?: boolean;
|
|
15
|
+
platformDependencies: PerpsPlatformDependencies;
|
|
16
|
+
messenger: PerpsControllerMessengerBase;
|
|
17
|
+
initialAssetMapping?: [string, number][];
|
|
18
|
+
builderAddressTestnet?: string;
|
|
19
|
+
builderAddressMainnet?: string;
|
|
20
|
+
subscriptionBuilderAddressTestnet?: string;
|
|
21
|
+
subscriptionBuilderAddressMainnet?: string;
|
|
22
|
+
onChaseOrderMaxDistanceReached?: ChaseOrderMaxDistanceReachedHandler;
|
|
23
|
+
};
|
|
7
24
|
/**
|
|
8
25
|
* HyperLiquid provider implementation
|
|
9
26
|
*
|
|
@@ -17,22 +34,18 @@ import type { PerpsControllerMessengerBase } from "../types/messenger.cjs";
|
|
|
17
34
|
*/
|
|
18
35
|
export declare class HyperLiquidProvider implements PerpsProvider {
|
|
19
36
|
#private;
|
|
20
|
-
readonly protocolId
|
|
21
|
-
constructor(options:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
builderAddressMainnet?: string;
|
|
33
|
-
subscriptionBuilderAddressTestnet?: string;
|
|
34
|
-
subscriptionBuilderAddressMainnet?: string;
|
|
35
|
-
});
|
|
37
|
+
readonly protocolId: "hyperliquid";
|
|
38
|
+
constructor(options: HyperLiquidProviderOptions);
|
|
39
|
+
/**
|
|
40
|
+
* Return provider-owned strategy support for a routed market.
|
|
41
|
+
* HyperLiquid metadata has no per-market strategy flags. This provider
|
|
42
|
+
* advertises its implemented strategies uniformly after confirming the
|
|
43
|
+
* routed market exists.
|
|
44
|
+
*
|
|
45
|
+
* @param params - Required market route context.
|
|
46
|
+
* @returns Supported strategy order types.
|
|
47
|
+
*/
|
|
48
|
+
getOrderCapabilities(params: GetOrderCapabilitiesParams): Promise<DirectProviderOrderCapabilities>;
|
|
36
49
|
/**
|
|
37
50
|
* Get fills using WebSocket cache first, falling back to REST API
|
|
38
51
|
* OPTIMIZATION: Uses cached fills when available (0 API weight), only calls REST on cache miss
|
|
@@ -90,6 +103,12 @@ export declare class HyperLiquidProvider implements PerpsProvider {
|
|
|
90
103
|
* @returns A promise that resolves to the result.
|
|
91
104
|
*/
|
|
92
105
|
placeOrder(params: OrderParams, retryCount?: number): Promise<OrderResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Read native TWAP schedules and their slice fills from the venue.
|
|
108
|
+
*
|
|
109
|
+
* @returns Current and terminal TWAP lifecycle records, newest first.
|
|
110
|
+
*/
|
|
111
|
+
getTwapOrders(): Promise<TwapOrder[]>;
|
|
93
112
|
/**
|
|
94
113
|
* Return stable client-facing snapshots for every Chase session retained by
|
|
95
114
|
* this provider instance. A read may refresh the current child order's
|
|
@@ -602,4 +621,5 @@ export declare class HyperLiquidProvider implements PerpsProvider {
|
|
|
602
621
|
*/
|
|
603
622
|
getBlockExplorerUrl(address?: string): string;
|
|
604
623
|
}
|
|
624
|
+
export {};
|
|
605
625
|
//# sourceMappingURL=HyperLiquidProvider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HyperLiquidProvider.d.cts","sourceRoot":"","sources":["../../src/providers/HyperLiquidProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"HyperLiquidProvider.d.cts","sourceRoot":"","sources":["../../src/providers/HyperLiquidProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,wBAAwB;AAE1E,OAAO,KAAK,EACV,cAAc,EAGf,4BAA4B;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAoC;AAuChE,OAAO,EAEL,wBAAwB,EACzB,iDAAgD;AAoBjD,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,4BAA4B,EAE5B,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,4BAA4B,EAC5B,gBAAgB,EAChB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,+BAA+B,EAC/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ExchangeClient } from "@nktkas/hyperliquid";
|
|
3
3
|
import type { CandlePeriod } from "../constants/chartConfig.mjs";
|
|
4
4
|
import { WebSocketConnectionState } from "../services/HyperLiquidClientService.mjs";
|
|
5
|
-
import type { AccountState, AssetRoute, BatchCancelOrdersParams, CancelOrderParams, CancelOrderResult, CancelOrdersResult, ChaseOrder, CandleData, ClosePositionParams, ClosePositionsParams, ClosePositionsResult, DepositParams, DisconnectResult, EditOrderParams, FeeCalculationParams, FeeCalculationResult, Funding, GetAccountStateParams, GetAvailableDexsParams, GetFundingParams, GetHistoricalPortfolioParams, GetMarketsParams, GetOrderFillsParams, GetOrdersParams, GetOrFetchFillsParams, GetPositionsParams, GetSupportedPathsParams, GetUserDataSnapshotParams, HistoricalPortfolioResult, InitializeResult, PerpsPlatformDependencies, PerpsProvider, LiquidationPriceParams, LiveDataConfig, MaintenanceMarginParams, MarginResult, MarketInfo, Order, OrderFill, OrderParams, OrderResult, PerpsMarketData, Position, ReadyToTradeResult, SubscribeAccountParams, SubscribeCandlesParams, SubscribeOICapsParams, SubscribeOrderBookParams, SubscribeOrderFillsParams, SubscribeOrdersParams, SubscribePositionsParams, SubscribePricesParams, ToggleTestnetResult, TransferBetweenDexsParams, TransferBetweenDexsResult, UpdateMarginParams, UpdatePositionTPSLParams, UserHistoryItem, WithdrawParams, WithdrawResult, RawLedgerUpdate, PerpsReadOptions, PerpsUserDataSnapshot, PerpsFeeResolution } from "../types/index.mjs";
|
|
5
|
+
import type { AccountState, AssetRoute, BatchCancelOrdersParams, CancelOrderParams, CancelOrderResult, CancelOrdersResult, ChaseOrder, ChaseOrderMaxDistanceReached, CandleData, ClosePositionParams, ClosePositionsParams, ClosePositionsResult, DepositParams, DisconnectResult, EditOrderParams, FeeCalculationParams, FeeCalculationResult, Funding, GetAccountStateParams, GetAvailableDexsParams, GetFundingParams, GetHistoricalPortfolioParams, GetMarketsParams, GetOrderCapabilitiesParams, GetOrderFillsParams, GetOrdersParams, GetOrFetchFillsParams, GetPositionsParams, GetSupportedPathsParams, GetUserDataSnapshotParams, HistoricalPortfolioResult, InitializeResult, PerpsPlatformDependencies, PerpsProvider, LiquidationPriceParams, LiveDataConfig, MaintenanceMarginParams, MarginResult, MarketInfo, Order, OrderFill, OrderParams, OrderResult, PerpsMarketData, DirectProviderOrderCapabilities, Position, ReadyToTradeResult, SubscribeAccountParams, SubscribeCandlesParams, SubscribeOICapsParams, SubscribeOrderBookParams, SubscribeOrderFillsParams, SubscribeOrdersParams, SubscribePositionsParams, SubscribePricesParams, ToggleTestnetResult, TransferBetweenDexsParams, TransferBetweenDexsResult, TwapOrder, UpdateMarginParams, UpdatePositionTPSLParams, UserHistoryItem, WithdrawParams, WithdrawResult, RawLedgerUpdate, PerpsReadOptions, PerpsUserDataSnapshot, PerpsFeeResolution } from "../types/index.mjs";
|
|
6
6
|
import type { PerpsControllerMessengerBase } from "../types/messenger.mjs";
|
|
7
|
+
type ChaseOrderMaxDistanceReachedHandler = (event: ChaseOrderMaxDistanceReached) => void;
|
|
8
|
+
type HyperLiquidProviderOptions = {
|
|
9
|
+
isTestnet?: boolean;
|
|
10
|
+
hip3Enabled?: boolean;
|
|
11
|
+
allowlistMarkets?: string[];
|
|
12
|
+
blocklistMarkets?: string[];
|
|
13
|
+
priceDeviationLimit?: number;
|
|
14
|
+
useUnifiedAccount?: boolean;
|
|
15
|
+
platformDependencies: PerpsPlatformDependencies;
|
|
16
|
+
messenger: PerpsControllerMessengerBase;
|
|
17
|
+
initialAssetMapping?: [string, number][];
|
|
18
|
+
builderAddressTestnet?: string;
|
|
19
|
+
builderAddressMainnet?: string;
|
|
20
|
+
subscriptionBuilderAddressTestnet?: string;
|
|
21
|
+
subscriptionBuilderAddressMainnet?: string;
|
|
22
|
+
onChaseOrderMaxDistanceReached?: ChaseOrderMaxDistanceReachedHandler;
|
|
23
|
+
};
|
|
7
24
|
/**
|
|
8
25
|
* HyperLiquid provider implementation
|
|
9
26
|
*
|
|
@@ -17,22 +34,18 @@ import type { PerpsControllerMessengerBase } from "../types/messenger.mjs";
|
|
|
17
34
|
*/
|
|
18
35
|
export declare class HyperLiquidProvider implements PerpsProvider {
|
|
19
36
|
#private;
|
|
20
|
-
readonly protocolId
|
|
21
|
-
constructor(options:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
builderAddressMainnet?: string;
|
|
33
|
-
subscriptionBuilderAddressTestnet?: string;
|
|
34
|
-
subscriptionBuilderAddressMainnet?: string;
|
|
35
|
-
});
|
|
37
|
+
readonly protocolId: "hyperliquid";
|
|
38
|
+
constructor(options: HyperLiquidProviderOptions);
|
|
39
|
+
/**
|
|
40
|
+
* Return provider-owned strategy support for a routed market.
|
|
41
|
+
* HyperLiquid metadata has no per-market strategy flags. This provider
|
|
42
|
+
* advertises its implemented strategies uniformly after confirming the
|
|
43
|
+
* routed market exists.
|
|
44
|
+
*
|
|
45
|
+
* @param params - Required market route context.
|
|
46
|
+
* @returns Supported strategy order types.
|
|
47
|
+
*/
|
|
48
|
+
getOrderCapabilities(params: GetOrderCapabilitiesParams): Promise<DirectProviderOrderCapabilities>;
|
|
36
49
|
/**
|
|
37
50
|
* Get fills using WebSocket cache first, falling back to REST API
|
|
38
51
|
* OPTIMIZATION: Uses cached fills when available (0 API weight), only calls REST on cache miss
|
|
@@ -90,6 +103,12 @@ export declare class HyperLiquidProvider implements PerpsProvider {
|
|
|
90
103
|
* @returns A promise that resolves to the result.
|
|
91
104
|
*/
|
|
92
105
|
placeOrder(params: OrderParams, retryCount?: number): Promise<OrderResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Read native TWAP schedules and their slice fills from the venue.
|
|
108
|
+
*
|
|
109
|
+
* @returns Current and terminal TWAP lifecycle records, newest first.
|
|
110
|
+
*/
|
|
111
|
+
getTwapOrders(): Promise<TwapOrder[]>;
|
|
93
112
|
/**
|
|
94
113
|
* Return stable client-facing snapshots for every Chase session retained by
|
|
95
114
|
* this provider instance. A read may refresh the current child order's
|
|
@@ -602,4 +621,5 @@ export declare class HyperLiquidProvider implements PerpsProvider {
|
|
|
602
621
|
*/
|
|
603
622
|
getBlockExplorerUrl(address?: string): string;
|
|
604
623
|
}
|
|
624
|
+
export {};
|
|
605
625
|
//# sourceMappingURL=HyperLiquidProvider.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HyperLiquidProvider.d.mts","sourceRoot":"","sources":["../../src/providers/HyperLiquidProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"HyperLiquidProvider.d.mts","sourceRoot":"","sources":["../../src/providers/HyperLiquidProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,wBAAwB;AAE1E,OAAO,KAAK,EACV,cAAc,EAGf,4BAA4B;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAoC;AAuChE,OAAO,EAEL,wBAAwB,EACzB,iDAAgD;AAoBjD,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,4BAA4B,EAE5B,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,4BAA4B,EAC5B,gBAAgB,EAChB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,KAAK,EACL,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