@gmx-io/sdk 2.1.2 → 2.2.1
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/build/cjs/src/abis/TransitStation.js +2222 -0
- package/build/cjs/src/abis/index.js +2 -0
- package/build/cjs/src/clients/v2/index.js +54 -27
- package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +32 -0
- package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +272 -0
- package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +60 -0
- package/build/cjs/src/configs/chains.js +9 -1
- package/build/cjs/src/configs/markets.js +28 -0
- package/build/cjs/src/configs/tokens.js +9 -0
- package/build/cjs/src/utils/__tests__/numbers.spec.js +79 -0
- package/build/cjs/src/utils/errors/transactionsErrors.js +1 -0
- package/build/cjs/src/utils/numbers/index.js +1 -0
- package/build/cjs/src/utils/numbers/parts.js +48 -0
- package/build/cjs/src/utils/numbers/utils.js +67 -26
- package/build/cjs/src/utils/orderTransactions/utils.js +55 -1
- package/build/cjs/src/utils/paxos/__tests__/api.spec.js +128 -0
- package/build/cjs/src/utils/paxos/api.js +129 -0
- package/build/cjs/src/utils/paxos/types.js +2 -0
- package/build/cjs/src/utils/usdgBoostApr/api.js +7 -0
- package/build/cjs/src/utils/usdgBoostApr/types.js +2 -0
- package/build/cjs/src/utils/whitelists/api.js +9 -0
- package/build/cjs/src/utils/whitelists/types.js +2 -0
- package/build/esm/src/abis/TransitStation.js +2220 -0
- package/build/esm/src/abis/index.js +2 -0
- package/build/esm/src/clients/v2/index.js +27 -0
- package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +32 -0
- package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +272 -0
- package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +60 -0
- package/build/esm/src/configs/chains.js +7 -0
- package/build/esm/src/configs/markets.js +28 -0
- package/build/esm/src/configs/tokens.js +9 -0
- package/build/esm/src/utils/__tests__/numbers.spec.js +80 -1
- package/build/esm/src/utils/errors/transactionsErrors.js +1 -0
- package/build/esm/src/utils/numbers/index.js +1 -0
- package/build/esm/src/utils/numbers/parts.js +41 -0
- package/build/esm/src/utils/numbers/utils.js +57 -24
- package/build/esm/src/utils/orderTransactions/utils.js +53 -1
- package/build/esm/src/utils/paxos/__tests__/api.spec.js +126 -0
- package/build/esm/src/utils/paxos/api.js +120 -0
- package/build/esm/src/utils/paxos/types.js +1 -0
- package/build/esm/src/utils/usdgBoostApr/api.js +3 -0
- package/build/esm/src/utils/usdgBoostApr/types.js +1 -0
- package/build/esm/src/utils/whitelists/api.js +5 -0
- package/build/esm/src/utils/whitelists/types.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types/src/abis/TransitStation.d.ts +1710 -0
- package/build/types/src/abis/index.d.ts +1709 -0
- package/build/types/src/clients/v2/index.d.ts +20 -0
- package/build/types/src/codegen/prebuilt/index.d.ts +364 -0
- package/build/types/src/configs/chains.d.ts +1 -0
- package/build/types/src/utils/errors/transactionsErrors.d.ts +1 -0
- package/build/types/src/utils/numbers/index.d.ts +1 -0
- package/build/types/src/utils/numbers/parts.d.ts +12 -0
- package/build/types/src/utils/numbers/utils.d.ts +25 -9
- package/build/types/src/utils/orderTransactions/utils.d.ts +7 -0
- package/build/types/src/utils/paxos/__tests__/api.spec.d.ts +1 -0
- package/build/types/src/utils/paxos/api.d.ts +24 -0
- package/build/types/src/utils/paxos/types.d.ts +139 -0
- package/build/types/src/utils/trade/types.d.ts +2 -0
- package/build/types/src/utils/usdgBoostApr/api.d.ts +5 -0
- package/build/types/src/utils/usdgBoostApr/types.d.ts +19 -0
- package/build/types/src/utils/whitelists/api.d.ts +7 -0
- package/build/types/src/utils/whitelists/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { GetTradingCapacityParams, MarketTickerWithCapacity, MarketWithTiers, Tr
|
|
|
9
9
|
import { buildCrossChainWithdrawBridgeOutParams, type BridgeOutParams, type BuildTxnResult, type SameChainDepositRequest, type SameChainWithdrawRequest } from "../../utils/multichain";
|
|
10
10
|
import { isPrepareOrderError, parsePrepareOrderError } from "../../utils/orderTransactions/api";
|
|
11
11
|
import type { PrepareOrderError, PrepareOrderErrorCode, PrepareOrderFieldValidationErrors, PrepareOrderRequest, PrepareOrderResponse, OrderValidationWarning, SubmitOrderRequest, SubmitOrderResponse, PrepareEditOrderRequest, PrepareCancelOrderRequest, PrepareCollateralRequest, OrderStatusRequest, OrderStatusResponse } from "../../utils/orderTransactions/api";
|
|
12
|
+
import type { TransitAuthorizationParams, TransitAuthorizationResponse, TransitFeeTierResponse, TransitOrder, TransitOrdersParams, TransitOrdersResponse, TransitQuote, TransitQuoteParams, TransitRoute, TransitRoutesParams } from "../../utils/paxos/types";
|
|
12
13
|
import { PerformanceAnnualized, PerformanceParams, PerformanceSnapshots } from "../../utils/performance/types";
|
|
13
14
|
import type { OhlcvParams } from "../../utils/prices/types";
|
|
14
15
|
import { MarketRates, RatesParams } from "../../utils/rates/types";
|
|
@@ -17,6 +18,8 @@ import { StakingPowerResponse } from "../../utils/staking/types";
|
|
|
17
18
|
import type { SubaccountStatusRequest, SubaccountStatusResponse, SubaccountApprovalPrepareRequest, SubaccountApprovalPrepareResponse } from "../../utils/subaccount/api";
|
|
18
19
|
import type { SdkSubaccountApproval, SdkSubaccountStatus } from "../../utils/subaccount/types";
|
|
19
20
|
import type { FetchTradesParams, SearchTradesParams, TradesListResponse } from "../../utils/trades/types";
|
|
21
|
+
import type { UsdgBoostAprResponse } from "../../utils/usdgBoostApr/types";
|
|
22
|
+
import type { AccountWhitelists } from "../../utils/whitelists/types";
|
|
20
23
|
import { GmPoolsYieldPnlParams, GmPoolsYieldPnlResponse, GmUserEarningsParams, GmUserEarningsResponse } from "../../utils/yield/types";
|
|
21
24
|
export type { ApyEntry, ApyParams, ApyResponse } from "../../utils/apy/types";
|
|
22
25
|
export type { GmPoolYieldPnlComponents, GmPoolYieldPnlEntry, GmPoolYieldPnlWindow, GmPoolsYieldPnlParams, GmPoolsYieldPnlResponse, GmUserEarningEntry, GmUserEarningsParams, GmUserEarningsResponse, GmUserEarningsWindow, } from "../../utils/yield/types";
|
|
@@ -30,6 +33,9 @@ export { fetchApiProtocolStatsSources, fetchApiProtocolStatsSummary, fetchApiPro
|
|
|
30
33
|
export type { ProtocolStatsCompleteness, ProtocolStatsFilterParams, ProtocolStatsMeta, ProtocolStatsMetricSet, ProtocolStatsNetwork, ProtocolStatsSourceHealth, ProtocolStatsSourceStatus, ProtocolStatsSummaryResponse, ProtocolStatsTimeseriesGroupBy, ProtocolStatsTimeseriesMetric, ProtocolStatsTimeseriesParams, ProtocolStatsTimeseriesResponse, ProtocolStatsVersion, } from "../../utils/stats/types";
|
|
31
34
|
export type { FetchJitLiquidityInfoParams, GlvShiftParam, JitLiquidityApiVersion, JitLiquidityData, JitLiquidityInfo, JitLiquidityMap, } from "../../utils/jitLiquidity/types";
|
|
32
35
|
export type { StakingPowerResponse } from "../../utils/staking/types";
|
|
36
|
+
export type { UsdgBoostAprResponse, UsdgGlvBoostApr, UsdgPoolBoostApr } from "../../utils/usdgBoostApr/types";
|
|
37
|
+
export type { AccountWhitelists } from "../../utils/whitelists/types";
|
|
38
|
+
export type { TransitAuthorizationMethod, TransitAuthorizationParams, TransitAuthorizationResponse, TransitFeeTier, TransitFeeTierResponse, TransitOrder, TransitOrderExecution, TransitOrderStatus, TransitOrdersParams, TransitOrdersResponse, TransitPermitData, TransitQuote, TransitQuoteParams, TransitQuoteTransaction, TransitResponseFormat, TransitRoute, TransitRoutesParams, TransitTokenMetadata, } from "../../utils/paxos/types";
|
|
33
39
|
export type { ApiTradeAction, FetchTradesParams, MarketDirectionFilter, OrderEventCombination, SearchTradesParams, TradeDirection, TradeEventName, TradesListResponse, } from "../../utils/trades/types";
|
|
34
40
|
export type { PrepareOrderError, PrepareOrderErrorCode, PrepareOrderFieldValidationErrors, PrepareOrderRequest, PrepareOrderResponse, OrderValidationWarning, SubmitOrderRequest, SubmitOrderResponse, PrepareEditOrderRequest, PrepareCancelOrderRequest, PrepareCollateralRequest, OrderStatusRequest, OrderStatusResponse, };
|
|
35
41
|
export { isPrepareOrderError, parsePrepareOrderError };
|
|
@@ -94,6 +100,20 @@ export declare class GmxApiSdk {
|
|
|
94
100
|
fetchStakingPower(params: {
|
|
95
101
|
address: string;
|
|
96
102
|
}): Promise<StakingPowerResponse>;
|
|
103
|
+
fetchTransitRoutes(params?: TransitRoutesParams): Promise<TransitRoute[]>;
|
|
104
|
+
fetchTransitFeeTier(params: {
|
|
105
|
+
userAddress: string;
|
|
106
|
+
}): Promise<TransitFeeTierResponse>;
|
|
107
|
+
fetchTransitAuthorization(params: TransitAuthorizationParams): Promise<TransitAuthorizationResponse>;
|
|
108
|
+
fetchTransitQuote(params: TransitQuoteParams): Promise<TransitQuote>;
|
|
109
|
+
fetchTransitOrder(params: {
|
|
110
|
+
orderId: string;
|
|
111
|
+
}): Promise<TransitOrder>;
|
|
112
|
+
fetchTransitOrders(params: TransitOrdersParams): Promise<TransitOrdersResponse>;
|
|
113
|
+
fetchWhitelists(params: {
|
|
114
|
+
address: string;
|
|
115
|
+
}): Promise<AccountWhitelists>;
|
|
116
|
+
fetchUsdgBoostApr(): Promise<UsdgBoostAprResponse>;
|
|
97
117
|
fetchWalletBalances(params: {
|
|
98
118
|
address: string;
|
|
99
119
|
}): Promise<WalletBalance[]>;
|
|
@@ -1892,6 +1892,66 @@ export declare const HASHED_MARKET_VALUES_KEYS: {
|
|
|
1892
1892
|
shortInterestInTokensUsingLongToken: string;
|
|
1893
1893
|
shortInterestInTokensUsingShortToken: string;
|
|
1894
1894
|
};
|
|
1895
|
+
"0xe57B97F2f83F39E74Ec83f3e039FD370884784fF": {
|
|
1896
|
+
longPoolAmount: string;
|
|
1897
|
+
shortPoolAmount: string;
|
|
1898
|
+
positionImpactPoolAmount: string;
|
|
1899
|
+
swapImpactPoolAmountLong: string;
|
|
1900
|
+
swapImpactPoolAmountShort: string;
|
|
1901
|
+
longInterestUsingLongToken: string;
|
|
1902
|
+
longInterestUsingShortToken: string;
|
|
1903
|
+
shortInterestUsingLongToken: string;
|
|
1904
|
+
shortInterestUsingShortToken: string;
|
|
1905
|
+
longInterestInTokensUsingLongToken: string;
|
|
1906
|
+
longInterestInTokensUsingShortToken: string;
|
|
1907
|
+
shortInterestInTokensUsingLongToken: string;
|
|
1908
|
+
shortInterestInTokensUsingShortToken: string;
|
|
1909
|
+
};
|
|
1910
|
+
"0x6f095F58e9Eb2c583A1828202712c03962491d7e": {
|
|
1911
|
+
longPoolAmount: string;
|
|
1912
|
+
shortPoolAmount: string;
|
|
1913
|
+
positionImpactPoolAmount: string;
|
|
1914
|
+
swapImpactPoolAmountLong: string;
|
|
1915
|
+
swapImpactPoolAmountShort: string;
|
|
1916
|
+
longInterestUsingLongToken: string;
|
|
1917
|
+
longInterestUsingShortToken: string;
|
|
1918
|
+
shortInterestUsingLongToken: string;
|
|
1919
|
+
shortInterestUsingShortToken: string;
|
|
1920
|
+
longInterestInTokensUsingLongToken: string;
|
|
1921
|
+
longInterestInTokensUsingShortToken: string;
|
|
1922
|
+
shortInterestInTokensUsingLongToken: string;
|
|
1923
|
+
shortInterestInTokensUsingShortToken: string;
|
|
1924
|
+
};
|
|
1925
|
+
"0xfF63B0f938772e2b4fFD1A1b340Afe49616c95f2": {
|
|
1926
|
+
longPoolAmount: string;
|
|
1927
|
+
shortPoolAmount: string;
|
|
1928
|
+
positionImpactPoolAmount: string;
|
|
1929
|
+
swapImpactPoolAmountLong: string;
|
|
1930
|
+
swapImpactPoolAmountShort: string;
|
|
1931
|
+
longInterestUsingLongToken: string;
|
|
1932
|
+
longInterestUsingShortToken: string;
|
|
1933
|
+
shortInterestUsingLongToken: string;
|
|
1934
|
+
shortInterestUsingShortToken: string;
|
|
1935
|
+
longInterestInTokensUsingLongToken: string;
|
|
1936
|
+
longInterestInTokensUsingShortToken: string;
|
|
1937
|
+
shortInterestInTokensUsingLongToken: string;
|
|
1938
|
+
shortInterestInTokensUsingShortToken: string;
|
|
1939
|
+
};
|
|
1940
|
+
"0x408E8e83d4b8Ac4BDefFDF896B49268A5FE5Ef44": {
|
|
1941
|
+
longPoolAmount: string;
|
|
1942
|
+
shortPoolAmount: string;
|
|
1943
|
+
positionImpactPoolAmount: string;
|
|
1944
|
+
swapImpactPoolAmountLong: string;
|
|
1945
|
+
swapImpactPoolAmountShort: string;
|
|
1946
|
+
longInterestUsingLongToken: string;
|
|
1947
|
+
longInterestUsingShortToken: string;
|
|
1948
|
+
shortInterestUsingLongToken: string;
|
|
1949
|
+
shortInterestUsingShortToken: string;
|
|
1950
|
+
longInterestInTokensUsingLongToken: string;
|
|
1951
|
+
longInterestInTokensUsingShortToken: string;
|
|
1952
|
+
shortInterestInTokensUsingLongToken: string;
|
|
1953
|
+
shortInterestInTokensUsingShortToken: string;
|
|
1954
|
+
};
|
|
1895
1955
|
};
|
|
1896
1956
|
"43113": {
|
|
1897
1957
|
"0xD996ff47A1F763E1e55415BC4437c59292D1F415": {
|
|
@@ -11177,6 +11237,278 @@ export declare const HASHED_MARKET_CONFIG_KEYS: {
|
|
|
11177
11237
|
virtualLongTokenId: string;
|
|
11178
11238
|
virtualShortTokenId: string;
|
|
11179
11239
|
};
|
|
11240
|
+
"0xe57B97F2f83F39E74Ec83f3e039FD370884784fF": {
|
|
11241
|
+
isDisabled: string;
|
|
11242
|
+
maxLongPoolAmount: string;
|
|
11243
|
+
maxShortPoolAmount: string;
|
|
11244
|
+
maxLongPoolUsdForDeposit: string;
|
|
11245
|
+
maxShortPoolUsdForDeposit: string;
|
|
11246
|
+
reserveFactorLong: string;
|
|
11247
|
+
reserveFactorShort: string;
|
|
11248
|
+
openInterestReserveFactorLong: string;
|
|
11249
|
+
openInterestReserveFactorShort: string;
|
|
11250
|
+
maxOpenInterestLong: string;
|
|
11251
|
+
maxOpenInterestShort: string;
|
|
11252
|
+
maxCollateralSumLongTokenLong: string;
|
|
11253
|
+
maxCollateralSumLongTokenShort: string;
|
|
11254
|
+
maxCollateralSumShortTokenLong: string;
|
|
11255
|
+
maxCollateralSumShortTokenShort: string;
|
|
11256
|
+
minPositionImpactPoolAmount: string;
|
|
11257
|
+
positionImpactPoolDistributionRate: string;
|
|
11258
|
+
borrowingFactorLong: string;
|
|
11259
|
+
borrowingFactorShort: string;
|
|
11260
|
+
borrowingExponentFactorLong: string;
|
|
11261
|
+
borrowingExponentFactorShort: string;
|
|
11262
|
+
fundingFactor: string;
|
|
11263
|
+
fundingExponentFactor: string;
|
|
11264
|
+
fundingIncreaseFactorPerSecond: string;
|
|
11265
|
+
minFundingIncreaseRatePerSecond: string;
|
|
11266
|
+
fundingDecreaseFactorPerSecond: string;
|
|
11267
|
+
thresholdForStableFunding: string;
|
|
11268
|
+
thresholdForDecreaseFunding: string;
|
|
11269
|
+
minFundingFactorPerSecondLong: string;
|
|
11270
|
+
minFundingFactorPerSecondShort: string;
|
|
11271
|
+
maxFundingFactorPerSecondLong: string;
|
|
11272
|
+
maxFundingFactorPerSecondShort: string;
|
|
11273
|
+
maxPnlFactorForTradersLong: string;
|
|
11274
|
+
maxPnlFactorForTradersShort: string;
|
|
11275
|
+
maxPnlFactorForDepositsLong: string;
|
|
11276
|
+
maxPnlFactorForDepositsShort: string;
|
|
11277
|
+
maxPnlFactorForWithdrawalsLong: string;
|
|
11278
|
+
maxPnlFactorForWithdrawalsShort: string;
|
|
11279
|
+
positionFeeFactorForBalanceWasImproved: string;
|
|
11280
|
+
positionFeeFactorForBalanceWasNotImproved: string;
|
|
11281
|
+
positionImpactFactorPositive: string;
|
|
11282
|
+
positionImpactFactorNegative: string;
|
|
11283
|
+
maxPositionImpactFactorPositive: string;
|
|
11284
|
+
maxPositionImpactFactorNegative: string;
|
|
11285
|
+
maxPositionImpactFactorForLiquidations: string;
|
|
11286
|
+
maxLendableImpactFactor: string;
|
|
11287
|
+
maxLendableImpactFactorForWithdrawals: string;
|
|
11288
|
+
maxLendableImpactUsd: string;
|
|
11289
|
+
lentPositionImpactPoolAmount: string;
|
|
11290
|
+
minCollateralFactor: string;
|
|
11291
|
+
minCollateralFactorForLiquidation: string;
|
|
11292
|
+
minCollateralFactorForOpenInterestLong: string;
|
|
11293
|
+
minCollateralFactorForOpenInterestShort: string;
|
|
11294
|
+
positionImpactExponentFactorPositive: string;
|
|
11295
|
+
positionImpactExponentFactorNegative: string;
|
|
11296
|
+
swapFeeFactorForBalanceWasImproved: string;
|
|
11297
|
+
swapFeeFactorForBalanceWasNotImproved: string;
|
|
11298
|
+
atomicSwapFeeFactor: string;
|
|
11299
|
+
swapImpactFactorPositive: string;
|
|
11300
|
+
swapImpactFactorNegative: string;
|
|
11301
|
+
swapImpactExponentFactor: string;
|
|
11302
|
+
withdrawalFeeFactorBalanceWasImproved: string;
|
|
11303
|
+
withdrawalFeeFactorBalanceWasNotImproved: string;
|
|
11304
|
+
virtualMarketId: string;
|
|
11305
|
+
virtualLongTokenId: string;
|
|
11306
|
+
virtualShortTokenId: string;
|
|
11307
|
+
};
|
|
11308
|
+
"0x6f095F58e9Eb2c583A1828202712c03962491d7e": {
|
|
11309
|
+
isDisabled: string;
|
|
11310
|
+
maxLongPoolAmount: string;
|
|
11311
|
+
maxShortPoolAmount: string;
|
|
11312
|
+
maxLongPoolUsdForDeposit: string;
|
|
11313
|
+
maxShortPoolUsdForDeposit: string;
|
|
11314
|
+
reserveFactorLong: string;
|
|
11315
|
+
reserveFactorShort: string;
|
|
11316
|
+
openInterestReserveFactorLong: string;
|
|
11317
|
+
openInterestReserveFactorShort: string;
|
|
11318
|
+
maxOpenInterestLong: string;
|
|
11319
|
+
maxOpenInterestShort: string;
|
|
11320
|
+
maxCollateralSumLongTokenLong: string;
|
|
11321
|
+
maxCollateralSumLongTokenShort: string;
|
|
11322
|
+
maxCollateralSumShortTokenLong: string;
|
|
11323
|
+
maxCollateralSumShortTokenShort: string;
|
|
11324
|
+
minPositionImpactPoolAmount: string;
|
|
11325
|
+
positionImpactPoolDistributionRate: string;
|
|
11326
|
+
borrowingFactorLong: string;
|
|
11327
|
+
borrowingFactorShort: string;
|
|
11328
|
+
borrowingExponentFactorLong: string;
|
|
11329
|
+
borrowingExponentFactorShort: string;
|
|
11330
|
+
fundingFactor: string;
|
|
11331
|
+
fundingExponentFactor: string;
|
|
11332
|
+
fundingIncreaseFactorPerSecond: string;
|
|
11333
|
+
minFundingIncreaseRatePerSecond: string;
|
|
11334
|
+
fundingDecreaseFactorPerSecond: string;
|
|
11335
|
+
thresholdForStableFunding: string;
|
|
11336
|
+
thresholdForDecreaseFunding: string;
|
|
11337
|
+
minFundingFactorPerSecondLong: string;
|
|
11338
|
+
minFundingFactorPerSecondShort: string;
|
|
11339
|
+
maxFundingFactorPerSecondLong: string;
|
|
11340
|
+
maxFundingFactorPerSecondShort: string;
|
|
11341
|
+
maxPnlFactorForTradersLong: string;
|
|
11342
|
+
maxPnlFactorForTradersShort: string;
|
|
11343
|
+
maxPnlFactorForDepositsLong: string;
|
|
11344
|
+
maxPnlFactorForDepositsShort: string;
|
|
11345
|
+
maxPnlFactorForWithdrawalsLong: string;
|
|
11346
|
+
maxPnlFactorForWithdrawalsShort: string;
|
|
11347
|
+
positionFeeFactorForBalanceWasImproved: string;
|
|
11348
|
+
positionFeeFactorForBalanceWasNotImproved: string;
|
|
11349
|
+
positionImpactFactorPositive: string;
|
|
11350
|
+
positionImpactFactorNegative: string;
|
|
11351
|
+
maxPositionImpactFactorPositive: string;
|
|
11352
|
+
maxPositionImpactFactorNegative: string;
|
|
11353
|
+
maxPositionImpactFactorForLiquidations: string;
|
|
11354
|
+
maxLendableImpactFactor: string;
|
|
11355
|
+
maxLendableImpactFactorForWithdrawals: string;
|
|
11356
|
+
maxLendableImpactUsd: string;
|
|
11357
|
+
lentPositionImpactPoolAmount: string;
|
|
11358
|
+
minCollateralFactor: string;
|
|
11359
|
+
minCollateralFactorForLiquidation: string;
|
|
11360
|
+
minCollateralFactorForOpenInterestLong: string;
|
|
11361
|
+
minCollateralFactorForOpenInterestShort: string;
|
|
11362
|
+
positionImpactExponentFactorPositive: string;
|
|
11363
|
+
positionImpactExponentFactorNegative: string;
|
|
11364
|
+
swapFeeFactorForBalanceWasImproved: string;
|
|
11365
|
+
swapFeeFactorForBalanceWasNotImproved: string;
|
|
11366
|
+
atomicSwapFeeFactor: string;
|
|
11367
|
+
swapImpactFactorPositive: string;
|
|
11368
|
+
swapImpactFactorNegative: string;
|
|
11369
|
+
swapImpactExponentFactor: string;
|
|
11370
|
+
withdrawalFeeFactorBalanceWasImproved: string;
|
|
11371
|
+
withdrawalFeeFactorBalanceWasNotImproved: string;
|
|
11372
|
+
virtualMarketId: string;
|
|
11373
|
+
virtualLongTokenId: string;
|
|
11374
|
+
virtualShortTokenId: string;
|
|
11375
|
+
};
|
|
11376
|
+
"0xfF63B0f938772e2b4fFD1A1b340Afe49616c95f2": {
|
|
11377
|
+
isDisabled: string;
|
|
11378
|
+
maxLongPoolAmount: string;
|
|
11379
|
+
maxShortPoolAmount: string;
|
|
11380
|
+
maxLongPoolUsdForDeposit: string;
|
|
11381
|
+
maxShortPoolUsdForDeposit: string;
|
|
11382
|
+
reserveFactorLong: string;
|
|
11383
|
+
reserveFactorShort: string;
|
|
11384
|
+
openInterestReserveFactorLong: string;
|
|
11385
|
+
openInterestReserveFactorShort: string;
|
|
11386
|
+
maxOpenInterestLong: string;
|
|
11387
|
+
maxOpenInterestShort: string;
|
|
11388
|
+
maxCollateralSumLongTokenLong: string;
|
|
11389
|
+
maxCollateralSumLongTokenShort: string;
|
|
11390
|
+
maxCollateralSumShortTokenLong: string;
|
|
11391
|
+
maxCollateralSumShortTokenShort: string;
|
|
11392
|
+
minPositionImpactPoolAmount: string;
|
|
11393
|
+
positionImpactPoolDistributionRate: string;
|
|
11394
|
+
borrowingFactorLong: string;
|
|
11395
|
+
borrowingFactorShort: string;
|
|
11396
|
+
borrowingExponentFactorLong: string;
|
|
11397
|
+
borrowingExponentFactorShort: string;
|
|
11398
|
+
fundingFactor: string;
|
|
11399
|
+
fundingExponentFactor: string;
|
|
11400
|
+
fundingIncreaseFactorPerSecond: string;
|
|
11401
|
+
minFundingIncreaseRatePerSecond: string;
|
|
11402
|
+
fundingDecreaseFactorPerSecond: string;
|
|
11403
|
+
thresholdForStableFunding: string;
|
|
11404
|
+
thresholdForDecreaseFunding: string;
|
|
11405
|
+
minFundingFactorPerSecondLong: string;
|
|
11406
|
+
minFundingFactorPerSecondShort: string;
|
|
11407
|
+
maxFundingFactorPerSecondLong: string;
|
|
11408
|
+
maxFundingFactorPerSecondShort: string;
|
|
11409
|
+
maxPnlFactorForTradersLong: string;
|
|
11410
|
+
maxPnlFactorForTradersShort: string;
|
|
11411
|
+
maxPnlFactorForDepositsLong: string;
|
|
11412
|
+
maxPnlFactorForDepositsShort: string;
|
|
11413
|
+
maxPnlFactorForWithdrawalsLong: string;
|
|
11414
|
+
maxPnlFactorForWithdrawalsShort: string;
|
|
11415
|
+
positionFeeFactorForBalanceWasImproved: string;
|
|
11416
|
+
positionFeeFactorForBalanceWasNotImproved: string;
|
|
11417
|
+
positionImpactFactorPositive: string;
|
|
11418
|
+
positionImpactFactorNegative: string;
|
|
11419
|
+
maxPositionImpactFactorPositive: string;
|
|
11420
|
+
maxPositionImpactFactorNegative: string;
|
|
11421
|
+
maxPositionImpactFactorForLiquidations: string;
|
|
11422
|
+
maxLendableImpactFactor: string;
|
|
11423
|
+
maxLendableImpactFactorForWithdrawals: string;
|
|
11424
|
+
maxLendableImpactUsd: string;
|
|
11425
|
+
lentPositionImpactPoolAmount: string;
|
|
11426
|
+
minCollateralFactor: string;
|
|
11427
|
+
minCollateralFactorForLiquidation: string;
|
|
11428
|
+
minCollateralFactorForOpenInterestLong: string;
|
|
11429
|
+
minCollateralFactorForOpenInterestShort: string;
|
|
11430
|
+
positionImpactExponentFactorPositive: string;
|
|
11431
|
+
positionImpactExponentFactorNegative: string;
|
|
11432
|
+
swapFeeFactorForBalanceWasImproved: string;
|
|
11433
|
+
swapFeeFactorForBalanceWasNotImproved: string;
|
|
11434
|
+
atomicSwapFeeFactor: string;
|
|
11435
|
+
swapImpactFactorPositive: string;
|
|
11436
|
+
swapImpactFactorNegative: string;
|
|
11437
|
+
swapImpactExponentFactor: string;
|
|
11438
|
+
withdrawalFeeFactorBalanceWasImproved: string;
|
|
11439
|
+
withdrawalFeeFactorBalanceWasNotImproved: string;
|
|
11440
|
+
virtualMarketId: string;
|
|
11441
|
+
virtualLongTokenId: string;
|
|
11442
|
+
virtualShortTokenId: string;
|
|
11443
|
+
};
|
|
11444
|
+
"0x408E8e83d4b8Ac4BDefFDF896B49268A5FE5Ef44": {
|
|
11445
|
+
isDisabled: string;
|
|
11446
|
+
maxLongPoolAmount: string;
|
|
11447
|
+
maxShortPoolAmount: string;
|
|
11448
|
+
maxLongPoolUsdForDeposit: string;
|
|
11449
|
+
maxShortPoolUsdForDeposit: string;
|
|
11450
|
+
reserveFactorLong: string;
|
|
11451
|
+
reserveFactorShort: string;
|
|
11452
|
+
openInterestReserveFactorLong: string;
|
|
11453
|
+
openInterestReserveFactorShort: string;
|
|
11454
|
+
maxOpenInterestLong: string;
|
|
11455
|
+
maxOpenInterestShort: string;
|
|
11456
|
+
maxCollateralSumLongTokenLong: string;
|
|
11457
|
+
maxCollateralSumLongTokenShort: string;
|
|
11458
|
+
maxCollateralSumShortTokenLong: string;
|
|
11459
|
+
maxCollateralSumShortTokenShort: string;
|
|
11460
|
+
minPositionImpactPoolAmount: string;
|
|
11461
|
+
positionImpactPoolDistributionRate: string;
|
|
11462
|
+
borrowingFactorLong: string;
|
|
11463
|
+
borrowingFactorShort: string;
|
|
11464
|
+
borrowingExponentFactorLong: string;
|
|
11465
|
+
borrowingExponentFactorShort: string;
|
|
11466
|
+
fundingFactor: string;
|
|
11467
|
+
fundingExponentFactor: string;
|
|
11468
|
+
fundingIncreaseFactorPerSecond: string;
|
|
11469
|
+
minFundingIncreaseRatePerSecond: string;
|
|
11470
|
+
fundingDecreaseFactorPerSecond: string;
|
|
11471
|
+
thresholdForStableFunding: string;
|
|
11472
|
+
thresholdForDecreaseFunding: string;
|
|
11473
|
+
minFundingFactorPerSecondLong: string;
|
|
11474
|
+
minFundingFactorPerSecondShort: string;
|
|
11475
|
+
maxFundingFactorPerSecondLong: string;
|
|
11476
|
+
maxFundingFactorPerSecondShort: string;
|
|
11477
|
+
maxPnlFactorForTradersLong: string;
|
|
11478
|
+
maxPnlFactorForTradersShort: string;
|
|
11479
|
+
maxPnlFactorForDepositsLong: string;
|
|
11480
|
+
maxPnlFactorForDepositsShort: string;
|
|
11481
|
+
maxPnlFactorForWithdrawalsLong: string;
|
|
11482
|
+
maxPnlFactorForWithdrawalsShort: string;
|
|
11483
|
+
positionFeeFactorForBalanceWasImproved: string;
|
|
11484
|
+
positionFeeFactorForBalanceWasNotImproved: string;
|
|
11485
|
+
positionImpactFactorPositive: string;
|
|
11486
|
+
positionImpactFactorNegative: string;
|
|
11487
|
+
maxPositionImpactFactorPositive: string;
|
|
11488
|
+
maxPositionImpactFactorNegative: string;
|
|
11489
|
+
maxPositionImpactFactorForLiquidations: string;
|
|
11490
|
+
maxLendableImpactFactor: string;
|
|
11491
|
+
maxLendableImpactFactorForWithdrawals: string;
|
|
11492
|
+
maxLendableImpactUsd: string;
|
|
11493
|
+
lentPositionImpactPoolAmount: string;
|
|
11494
|
+
minCollateralFactor: string;
|
|
11495
|
+
minCollateralFactorForLiquidation: string;
|
|
11496
|
+
minCollateralFactorForOpenInterestLong: string;
|
|
11497
|
+
minCollateralFactorForOpenInterestShort: string;
|
|
11498
|
+
positionImpactExponentFactorPositive: string;
|
|
11499
|
+
positionImpactExponentFactorNegative: string;
|
|
11500
|
+
swapFeeFactorForBalanceWasImproved: string;
|
|
11501
|
+
swapFeeFactorForBalanceWasNotImproved: string;
|
|
11502
|
+
atomicSwapFeeFactor: string;
|
|
11503
|
+
swapImpactFactorPositive: string;
|
|
11504
|
+
swapImpactFactorNegative: string;
|
|
11505
|
+
swapImpactExponentFactor: string;
|
|
11506
|
+
withdrawalFeeFactorBalanceWasImproved: string;
|
|
11507
|
+
withdrawalFeeFactorBalanceWasNotImproved: string;
|
|
11508
|
+
virtualMarketId: string;
|
|
11509
|
+
virtualLongTokenId: string;
|
|
11510
|
+
virtualShortTokenId: string;
|
|
11511
|
+
};
|
|
11180
11512
|
};
|
|
11181
11513
|
"43113": {
|
|
11182
11514
|
"0xD996ff47A1F763E1e55415BC4437c59292D1F415": {
|
|
@@ -15393,6 +15725,38 @@ export declare const HASHED_KINK_MODEL_MARKET_RATES_KEYS: {
|
|
|
15393
15725
|
aboveOptimalUsageBorrowingFactorLong: string;
|
|
15394
15726
|
aboveOptimalUsageBorrowingFactorShort: string;
|
|
15395
15727
|
};
|
|
15728
|
+
"0xe57B97F2f83F39E74Ec83f3e039FD370884784fF": {
|
|
15729
|
+
optimalUsageFactorLong: string;
|
|
15730
|
+
optimalUsageFactorShort: string;
|
|
15731
|
+
baseBorrowingFactorLong: string;
|
|
15732
|
+
baseBorrowingFactorShort: string;
|
|
15733
|
+
aboveOptimalUsageBorrowingFactorLong: string;
|
|
15734
|
+
aboveOptimalUsageBorrowingFactorShort: string;
|
|
15735
|
+
};
|
|
15736
|
+
"0x6f095F58e9Eb2c583A1828202712c03962491d7e": {
|
|
15737
|
+
optimalUsageFactorLong: string;
|
|
15738
|
+
optimalUsageFactorShort: string;
|
|
15739
|
+
baseBorrowingFactorLong: string;
|
|
15740
|
+
baseBorrowingFactorShort: string;
|
|
15741
|
+
aboveOptimalUsageBorrowingFactorLong: string;
|
|
15742
|
+
aboveOptimalUsageBorrowingFactorShort: string;
|
|
15743
|
+
};
|
|
15744
|
+
"0xfF63B0f938772e2b4fFD1A1b340Afe49616c95f2": {
|
|
15745
|
+
optimalUsageFactorLong: string;
|
|
15746
|
+
optimalUsageFactorShort: string;
|
|
15747
|
+
baseBorrowingFactorLong: string;
|
|
15748
|
+
baseBorrowingFactorShort: string;
|
|
15749
|
+
aboveOptimalUsageBorrowingFactorLong: string;
|
|
15750
|
+
aboveOptimalUsageBorrowingFactorShort: string;
|
|
15751
|
+
};
|
|
15752
|
+
"0x408E8e83d4b8Ac4BDefFDF896B49268A5FE5Ef44": {
|
|
15753
|
+
optimalUsageFactorLong: string;
|
|
15754
|
+
optimalUsageFactorShort: string;
|
|
15755
|
+
baseBorrowingFactorLong: string;
|
|
15756
|
+
baseBorrowingFactorShort: string;
|
|
15757
|
+
aboveOptimalUsageBorrowingFactorLong: string;
|
|
15758
|
+
aboveOptimalUsageBorrowingFactorShort: string;
|
|
15759
|
+
};
|
|
15396
15760
|
};
|
|
15397
15761
|
"43113": {
|
|
15398
15762
|
"0xD996ff47A1F763E1e55415BC4437c59292D1F415": {
|
|
@@ -206,6 +206,7 @@ export declare function isContractsChain(chainId: number, dev?: boolean): chainI
|
|
|
206
206
|
export declare function isTestnetChain(chainId: number): boolean;
|
|
207
207
|
export declare function getMaxFeePerGas(chainId: ContractsChainId): bigint | undefined;
|
|
208
208
|
export declare function getGasPricePremium(chainId: ContractsChainId): bigint | undefined;
|
|
209
|
+
export declare function getExecutionFeePriorityFeeAllowance(chainId: ContractsChainId): bigint;
|
|
209
210
|
export declare function getMaxPriorityFeePerGas(chainId: ContractsChainId): 1500000000n | 500000n;
|
|
210
211
|
export declare function getMinExecutionFeeUsd(chainId: ContractsChainId): undefined;
|
|
211
212
|
export declare function getResidualGasUsdConfig(chainId: ContractsChainId): {
|
|
@@ -14,6 +14,7 @@ export declare enum CustomErrorName {
|
|
|
14
14
|
DisabledMarket = "DisabledMarket",
|
|
15
15
|
EndOfOracleSimulation = "EndOfOracleSimulation",
|
|
16
16
|
ExternalCallFailed = "ExternalCallFailed",
|
|
17
|
+
InsufficientBridgeOutputAmount = "InsufficientBridgeOutputAmount",
|
|
17
18
|
InsufficientCollateralAmount = "InsufficientCollateralAmount",
|
|
18
19
|
InsufficientCollateralUsd = "InsufficientCollateralUsd",
|
|
19
20
|
InsufficientExecutionGas = "InsufficientExecutionGas",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type NumberPartKind = "text" | "currency" | "multiplier";
|
|
2
|
+
export type NumberPart = {
|
|
3
|
+
kind: NumberPartKind;
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
export type NumberPartInput = string | NumberPart | NumberPart[] | undefined;
|
|
7
|
+
export declare const USD_SYMBOL = "$\u200A";
|
|
8
|
+
export declare const USD_PART: NumberPart;
|
|
9
|
+
export declare function multiplierPart(text: string): NumberPart;
|
|
10
|
+
export declare function numberParts(...inputs: NumberPartInput[]): NumberPart[];
|
|
11
|
+
export declare function joinNumberParts(parts: NumberPart[]): string;
|
|
12
|
+
export declare function isNumberParts(value: unknown): value is NumberPart[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NumberPart } from "./parts";
|
|
1
2
|
export type Numeric = number | bigint;
|
|
2
3
|
export type BigNumberish = string | Numeric;
|
|
3
4
|
export declare const USD_DECIMALS = 30;
|
|
@@ -37,7 +38,7 @@ export declare function numberToBigint(value: number, decimals: number): bigint;
|
|
|
37
38
|
export declare const trimZeroDecimals: (amount: string) => string;
|
|
38
39
|
export declare function bigintToNumber(value: bigint, decimals: number): number;
|
|
39
40
|
export declare function adjustForDecimals(amount: bigint, divDecimals: number, mulDecimals: number): bigint;
|
|
40
|
-
export
|
|
41
|
+
export type FormatUsdOptions = {
|
|
41
42
|
fallbackToZero?: boolean;
|
|
42
43
|
displayDecimals?: number;
|
|
43
44
|
maxThreshold?: string | null;
|
|
@@ -45,15 +46,22 @@ export declare function formatUsd(usd?: bigint, opts?: {
|
|
|
45
46
|
displayPlus?: boolean;
|
|
46
47
|
visualMultiplier?: number;
|
|
47
48
|
roundMode?: "round" | "floor";
|
|
48
|
-
}
|
|
49
|
+
};
|
|
50
|
+
export declare function formatUsdParts(usd?: bigint, opts?: FormatUsdOptions): NumberPart[] | undefined;
|
|
51
|
+
export declare function formatUsd(usd?: bigint, opts?: FormatUsdOptions): string | undefined;
|
|
52
|
+
export declare function formatBigUsdParts(amount: bigint, opts?: {
|
|
53
|
+
displayDecimals?: number;
|
|
54
|
+
}): NumberPart[];
|
|
49
55
|
export declare function formatBigUsd(amount: bigint, opts?: {
|
|
50
56
|
displayDecimals?: number;
|
|
51
|
-
}): string
|
|
52
|
-
export
|
|
57
|
+
}): string;
|
|
58
|
+
export type FormatDeltaUsdOptions = {
|
|
53
59
|
fallbackToZero?: boolean;
|
|
54
60
|
showPlusForZero?: boolean;
|
|
55
61
|
hidePercentage?: boolean;
|
|
56
|
-
}
|
|
62
|
+
};
|
|
63
|
+
export declare function formatDeltaUsdParts(deltaUsd?: bigint, percentage?: bigint, opts?: FormatDeltaUsdOptions): NumberPart[] | undefined;
|
|
64
|
+
export declare function formatDeltaUsd(deltaUsd?: bigint, percentage?: bigint, opts?: FormatDeltaUsdOptions): string | undefined;
|
|
57
65
|
export declare function formatPercentage(percentage?: bigint, opts?: {
|
|
58
66
|
fallbackToZero?: boolean;
|
|
59
67
|
signed?: boolean;
|
|
@@ -72,12 +80,14 @@ export declare function formatTokenAmount(amount?: bigint, tokenDecimals?: numbe
|
|
|
72
80
|
displayPlus?: boolean;
|
|
73
81
|
isStable?: boolean;
|
|
74
82
|
}): string | undefined;
|
|
75
|
-
export
|
|
83
|
+
export type FormatTokenAmountWithUsdOptions = {
|
|
76
84
|
fallbackToZero?: boolean;
|
|
77
85
|
displayDecimals?: number;
|
|
78
86
|
displayPlus?: boolean;
|
|
79
87
|
isStable?: boolean;
|
|
80
|
-
}
|
|
88
|
+
};
|
|
89
|
+
export declare function formatTokenAmountWithUsdParts(tokenAmount?: bigint, usdAmount?: bigint, tokenSymbol?: string, tokenDecimals?: number, opts?: FormatTokenAmountWithUsdOptions): NumberPart[] | undefined;
|
|
90
|
+
export declare function formatTokenAmountWithUsd(tokenAmount?: bigint, usdAmount?: bigint, tokenSymbol?: string, tokenDecimals?: number, opts?: FormatTokenAmountWithUsdOptions): string | undefined;
|
|
81
91
|
/**
|
|
82
92
|
*
|
|
83
93
|
* @param opts.signed - Default `true`. whether to display a `+` or `-` sign for all non-zero values.
|
|
@@ -86,9 +96,12 @@ export declare function formatRatePercentage(rate?: bigint, opts?: {
|
|
|
86
96
|
displayDecimals?: number;
|
|
87
97
|
signed?: boolean;
|
|
88
98
|
}): string;
|
|
89
|
-
export declare function
|
|
99
|
+
export declare function formatUsdPriceParts(price?: bigint, opts?: FormatUsdOptions): NumberPart[] | undefined;
|
|
100
|
+
export declare function formatUsdPrice(price?: bigint, opts?: FormatUsdOptions): string | undefined;
|
|
90
101
|
export declare function formatPercentageDisplay(percentage: number, hideThreshold?: number): string;
|
|
102
|
+
export declare function formatNumberHumanParts(n: number, showDollar?: boolean, displayDecimals?: number): NumberPart[];
|
|
91
103
|
export declare function formatNumberHuman(n: number, showDollar?: boolean, displayDecimals?: number): string;
|
|
104
|
+
export declare function formatAmountHumanParts(amount: BigNumberish | undefined, tokenDecimals: number, showDollar?: boolean, displayDecimals?: number): NumberPart[];
|
|
92
105
|
export declare function formatAmountHuman(amount: BigNumberish | undefined, tokenDecimals: number, showDollar?: boolean, displayDecimals?: number): string;
|
|
93
106
|
export declare function formatBalanceAmount(amount: bigint, tokenDecimals: number, tokenSymbol?: string, { showZero, toExponential, isStable, signed, }?: {
|
|
94
107
|
showZero?: boolean;
|
|
@@ -97,7 +110,10 @@ export declare function formatBalanceAmount(amount: bigint, tokenDecimals: numbe
|
|
|
97
110
|
signed?: boolean;
|
|
98
111
|
}): string;
|
|
99
112
|
export declare function formatFactor(factor: bigint): string;
|
|
100
|
-
export declare function
|
|
113
|
+
export declare function numberWithCommasParts(x: BigNumberish, { showDollar }?: {
|
|
114
|
+
showDollar?: boolean;
|
|
115
|
+
}): NumberPart[];
|
|
116
|
+
export declare function numberWithCommas(x: BigNumberish, opts?: {
|
|
101
117
|
showDollar?: boolean;
|
|
102
118
|
}): string;
|
|
103
119
|
export declare const formatAmount: (amount: BigNumberish | undefined, tokenDecimals: number, displayDecimals?: number, useCommas?: boolean, defaultValue?: string, visualMultiplier?: number) => string;
|
|
@@ -70,6 +70,11 @@ export type UpdateOrderParams = {
|
|
|
70
70
|
autoCancel: boolean;
|
|
71
71
|
validFromTime: bigint;
|
|
72
72
|
executionFeeTopUp: bigint;
|
|
73
|
+
executionGasLimit?: bigint;
|
|
74
|
+
};
|
|
75
|
+
export type ExecutionFeeEstimate = {
|
|
76
|
+
executionFee: bigint;
|
|
77
|
+
gasLimit: bigint;
|
|
73
78
|
};
|
|
74
79
|
export type UpdateOrderPayload = {
|
|
75
80
|
orderKey: string;
|
|
@@ -169,6 +174,8 @@ export declare function getBatchTotalExecutionFee({ batchParams, tokensData, cha
|
|
|
169
174
|
chainId: number;
|
|
170
175
|
allowEmptyBatch?: boolean;
|
|
171
176
|
}): ExecutionFee | undefined;
|
|
177
|
+
export declare function getBatchExecutionFeeEstimates(batchParams: BatchOrderTxnParams): ExecutionFeeEstimate[];
|
|
178
|
+
export declare function getExpressBatchOrderParams(chainId: ContractsChainId, batchParams: BatchOrderTxnParams): BatchOrderTxnParams;
|
|
172
179
|
export declare function getBatchTotalPayCollateralAmount(batchParams: BatchOrderTxnParams): {
|
|
173
180
|
[tokenAddress: string]: bigint;
|
|
174
181
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IHttp } from "../http/types";
|
|
2
|
+
import type { TransitAuthorizationParams, TransitAuthorizationResponse, TransitFeeTierResponse, TransitOrder, TransitOrdersParams, TransitOrdersResponse, TransitQuote, TransitQuoteParams, TransitRoute, TransitRoutesParams } from "./types";
|
|
3
|
+
export declare function fetchApiTransitRoutes(ctx: {
|
|
4
|
+
api: IHttp;
|
|
5
|
+
}, params?: TransitRoutesParams): Promise<TransitRoute[]>;
|
|
6
|
+
export declare function fetchApiTransitFeeTier(ctx: {
|
|
7
|
+
api: IHttp;
|
|
8
|
+
}, params: {
|
|
9
|
+
userAddress: string;
|
|
10
|
+
}): Promise<TransitFeeTierResponse>;
|
|
11
|
+
export declare function fetchApiTransitAuthorization(ctx: {
|
|
12
|
+
api: IHttp;
|
|
13
|
+
}, params: TransitAuthorizationParams): Promise<TransitAuthorizationResponse>;
|
|
14
|
+
export declare function fetchApiTransitQuote(ctx: {
|
|
15
|
+
api: IHttp;
|
|
16
|
+
}, params: TransitQuoteParams): Promise<TransitQuote>;
|
|
17
|
+
export declare function fetchApiTransitOrder(ctx: {
|
|
18
|
+
api: IHttp;
|
|
19
|
+
}, params: {
|
|
20
|
+
orderId: string;
|
|
21
|
+
}): Promise<TransitOrder>;
|
|
22
|
+
export declare function fetchApiTransitOrders(ctx: {
|
|
23
|
+
api: IHttp;
|
|
24
|
+
}, params: TransitOrdersParams): Promise<TransitOrdersResponse>;
|