@reyaxyz/api-sdk 0.157.0 → 0.159.0
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/dist/clients/api-client.js +0 -60
- package/dist/clients/api-client.js.map +1 -1
- package/dist/clients/modules/account/index.js +33 -94
- package/dist/clients/modules/account/index.js.map +1 -1
- package/dist/clients/modules/account/types.js.map +1 -1
- package/dist/clients/modules/auth/types.js.map +1 -1
- package/dist/clients/modules/conditional-orders/types.js.map +1 -1
- package/dist/clients/modules/deposit-existing-MA.simulation/types.js.map +1 -1
- package/dist/clients/modules/edit-collateral.simulation/types.js.map +1 -1
- package/dist/clients/modules/markets/index.js +0 -15
- package/dist/clients/modules/markets/index.js.map +1 -1
- package/dist/clients/modules/owner/index.js +0 -36
- package/dist/clients/modules/owner/index.js.map +1 -1
- package/dist/clients/modules/transfer-MA-Pool.simulation/types.js.map +1 -1
- package/dist/clients/modules/transfer-margin-between-MAs.simulation/types.js.map +1 -1
- package/dist/clients/modules/withdraw-MA.simulation/types.js.map +1 -1
- package/dist/clients/types.js +0 -3
- package/dist/clients/types.js.map +1 -1
- package/dist/types/clients/api-client.d.ts +0 -42
- package/dist/types/clients/api-client.d.ts.map +1 -1
- package/dist/types/clients/modules/account/index.d.ts +2 -10
- package/dist/types/clients/modules/account/index.d.ts.map +1 -1
- package/dist/types/clients/modules/account/types.d.ts +24 -24
- package/dist/types/clients/modules/account/types.d.ts.map +1 -1
- package/dist/types/clients/modules/auth/types.d.ts +1 -2
- package/dist/types/clients/modules/auth/types.d.ts.map +1 -1
- package/dist/types/clients/modules/conditional-orders/types.d.ts +3 -3
- package/dist/types/clients/modules/conditional-orders/types.d.ts.map +1 -1
- package/dist/types/clients/modules/deposit-existing-MA.simulation/types.d.ts +3 -3
- package/dist/types/clients/modules/deposit-existing-MA.simulation/types.d.ts.map +1 -1
- package/dist/types/clients/modules/edit-collateral.simulation/types.d.ts +4 -4
- package/dist/types/clients/modules/edit-collateral.simulation/types.d.ts.map +1 -1
- package/dist/types/clients/modules/markets/index.d.ts +1 -2
- package/dist/types/clients/modules/markets/index.d.ts.map +1 -1
- package/dist/types/clients/modules/owner/index.d.ts +1 -5
- package/dist/types/clients/modules/owner/index.d.ts.map +1 -1
- package/dist/types/clients/modules/transfer-MA-Pool.simulation/types.d.ts +3 -3
- package/dist/types/clients/modules/transfer-MA-Pool.simulation/types.d.ts.map +1 -1
- package/dist/types/clients/modules/transfer-margin-between-MAs.simulation/types.d.ts +7 -7
- package/dist/types/clients/modules/transfer-margin-between-MAs.simulation/types.d.ts.map +1 -1
- package/dist/types/clients/modules/withdraw-MA.simulation/types.d.ts +3 -3
- package/dist/types/clients/modules/withdraw-MA.simulation/types.d.ts.map +1 -1
- package/dist/types/clients/socket-client.d.ts +1 -1
- package/dist/types/clients/types.d.ts +1 -4
- package/dist/types/clients/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/clients/api-client.ts +0 -58
- package/src/clients/modules/account/index.ts +34 -90
- package/src/clients/modules/account/types.ts +25 -24
- package/src/clients/modules/auth/types.ts +1 -2
- package/src/clients/modules/conditional-orders/types.ts +3 -3
- package/src/clients/modules/deposit-existing-MA.simulation/types.ts +3 -3
- package/src/clients/modules/edit-collateral.simulation/types.ts +4 -4
- package/src/clients/modules/markets/index.ts +1 -12
- package/src/clients/modules/owner/index.ts +0 -36
- package/src/clients/modules/transfer-MA-Pool.simulation/types.ts +3 -3
- package/src/clients/modules/transfer-margin-between-MAs.simulation/types.ts +7 -7
- package/src/clients/modules/withdraw-MA.simulation/types.ts +3 -3
- package/src/clients/types.ts +1 -4
- package/dist/clients/modules/isolated-order.simulation/index.js +0 -302
- package/dist/clients/modules/isolated-order.simulation/index.js.map +0 -1
- package/dist/clients/modules/isolated-order.simulation/types.js +0 -3
- package/dist/clients/modules/isolated-order.simulation/types.js.map +0 -1
- package/dist/clients/modules/rage-trade/index.js +0 -99
- package/dist/clients/modules/rage-trade/index.js.map +0 -1
- package/dist/clients/modules/rage-trade/types.js +0 -3
- package/dist/clients/modules/rage-trade/types.js.map +0 -1
- package/dist/clients/modules/trade.simulation/index.js +0 -331
- package/dist/clients/modules/trade.simulation/index.js.map +0 -1
- package/dist/clients/modules/trade.simulation/types.js +0 -3
- package/dist/clients/modules/trade.simulation/types.js.map +0 -1
- package/dist/clients/modules/trade.simulation/utils.js +0 -35
- package/dist/clients/modules/trade.simulation/utils.js.map +0 -1
- package/dist/types/clients/modules/isolated-order.simulation/index.d.ts +0 -24
- package/dist/types/clients/modules/isolated-order.simulation/index.d.ts.map +0 -1
- package/dist/types/clients/modules/isolated-order.simulation/types.d.ts +0 -44
- package/dist/types/clients/modules/isolated-order.simulation/types.d.ts.map +0 -1
- package/dist/types/clients/modules/rage-trade/index.d.ts +0 -9
- package/dist/types/clients/modules/rage-trade/index.d.ts.map +0 -1
- package/dist/types/clients/modules/rage-trade/types.d.ts +0 -80
- package/dist/types/clients/modules/rage-trade/types.d.ts.map +0 -1
- package/dist/types/clients/modules/trade.simulation/index.d.ts +0 -22
- package/dist/types/clients/modules/trade.simulation/index.d.ts.map +0 -1
- package/dist/types/clients/modules/trade.simulation/types.d.ts +0 -85
- package/dist/types/clients/modules/trade.simulation/types.d.ts.map +0 -1
- package/dist/types/clients/modules/trade.simulation/utils.d.ts +0 -8
- package/dist/types/clients/modules/trade.simulation/utils.d.ts.map +0 -1
- package/src/clients/modules/isolated-order.simulation/index.ts +0 -490
- package/src/clients/modules/isolated-order.simulation/types.ts +0 -55
- package/src/clients/modules/rage-trade/index.ts +0 -38
- package/src/clients/modules/rage-trade/types.ts +0 -91
- package/src/clients/modules/trade.simulation/index.ts +0 -534
- package/src/clients/modules/trade.simulation/types.ts +0 -98
- package/src/clients/modules/trade.simulation/utils.ts +0 -52
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,0CAA6C;AAE7C;IAAyC,+BAAU;IAAnD;;IA4BA,CAAC;IA3BO,sCAAgB,GAAtB,UACE,MAA8B;;;;gBAExB,GAAG,GAAG,qBAAc,MAAM,CAAC,YAAY,cAAW,CAAC;gBACzD,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAC;;;KACtB;IAEK,2DAAqC,GAA3C,UACE,MAAmD;;;;gBAE7C,GAAG,GAAG,qBAAc,MAAM,CAAC,YAAY,oDAAiD,CAAC;gBAC/F,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAC;;;KACtB;IAEK,2DAAqC,GAA3C,UACE,MAAmD;;;;gBAE7C,GAAG,GAAG,+DAA+D,CAAC;gBAC5E,sBAAO,IAAI,CAAC,GAAG,CACb,GAAG,EACH,EAAE,EACF;wBACE,OAAO,EAAE,MAAM,CAAC,YAAY;wBAC5B,WAAW,EAAE,MAAM,CAAC,WAAW;qBAChC,CACF,EAAC;;;KACH;IACH,kBAAC;AAAD,CAAC,AA5BD,CAAyC,mBAAU,GA4BlD","sourcesContent":["import {\n GetOwnerLastSeenNotificationTimestampParams,\n GetOwnerLastSeenNotificationTimestampResult,\n GetOwnerMetadataParams,\n GetOwnerMetadataResult,\n SetOwnerLastSeenNotificationTimestampParams,\n SetOwnerLastSeenNotificationTimestampResult,\n} from './types';\nimport { RestClient } from '@reyaxyz/common';\n\nexport default class OwnerClient extends RestClient {\n async getOwnerMetadata(\n params: GetOwnerMetadataParams,\n ): Promise<GetOwnerMetadataResult> {\n const uri = `/api/owner/${params.ownerAddress}/metadata`;\n return this.get(uri);\n }\n\n async getOwnerLastSeenNotificationTimestamp(\n params: GetOwnerLastSeenNotificationTimestampParams,\n ): Promise<GetOwnerLastSeenNotificationTimestampResult> {\n const uri = `/api/owner/${params.ownerAddress}/last-seen-notification-timestamp/auto-exchange`;\n return this.get(uri);\n }\n\n async setOwnerLastSeenNotificationTimestamp(\n params: SetOwnerLastSeenNotificationTimestampParams,\n ): Promise<SetOwnerLastSeenNotificationTimestampResult> {\n const uri = `/api/owner/set-last-seen-notification-timestamp/auto-exchange`;\n return this.put(\n uri,\n {},\n {\n address: params.ownerAddress,\n timestampMs: params.timestampMs,\n },\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/transfer-MA-Pool.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/transfer-MA-Pool.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import { MarginRatioHealth, TokenEntity } from '@reyaxyz/common';\nimport { EditCollateralSimulationLoadDataParams } from '../edit-collateral.simulation/types';\n\nexport type TransferMAPoolSimulationLoadDataParams =\n EditCollateralSimulationLoadDataParams;\n\nexport type TransferMAPoolSimulationSimulateParams = {\n amount: number;\n tokenAddress: TokenEntity['address'];\n};\n\nexport type SimulateTransferMAPoolEntity = {\n marginRatio: number;\n marginRatioHealth: MarginRatioHealth;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/transfer-margin-between-MAs.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/transfer-margin-between-MAs.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import { MarginRatioHealth, TokenEntity } from '@reyaxyz/common';\n\nexport type TransferMarginBetweenMAsSimulationLoadDataParams = {\n fromMarginAccountId: number;\n toMarginAccountId: number;\n};\n\nexport type TransferMarginBetweenMAsSimulationSimulateParams = {\n amount: number;\n tokenAddress: TokenEntity['address'];\n};\n\nexport type SimulateTransferMarginBetweenMAsEntity = {\n fromMarginRatio: number;\n fromMarginRatioHealth: MarginRatioHealth;\n toMarginRatio: number;\n toMarginRatioHealth: MarginRatioHealth;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/withdraw-MA.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/withdraw-MA.simulation/types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n MarginRatioHealth,\n MoneyInOutChainId,\n TokenEntity,\n} from '@reyaxyz/common';\nimport { EditCollateralSimulationLoadDataParams } from '../edit-collateral.simulation/types';\nimport { SocketWithdrawFees } from '@reyaxyz/common';\n\nexport type WithdrawMASimulationLoadDataParams =\n EditCollateralSimulationLoadDataParams;\n\nexport type WithdrawMASimulationSimulateParams = {\n moneyInOutChainId: MoneyInOutChainId;\n amount: number;\n tokenAddress: TokenEntity['address'];\n};\n\nexport type SimulateWithdrawMAEntity = {\n socketWithdrawFees: SocketWithdrawFees;\n bridgeTimeInMS: number;\n marginRatio: number;\n marginRatioHealth: MarginRatioHealth;\n};\n"]}
|
package/dist/clients/types.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./modules/conditional-orders/types"), exports);
|
|
|
31
31
|
__exportStar(require("./modules/lp/types"), exports);
|
|
32
32
|
__exportStar(require("./modules/markets/types"), exports);
|
|
33
33
|
__exportStar(require("./modules/tokens/types"), exports);
|
|
34
|
-
__exportStar(require("./modules/trade.simulation/types"), exports);
|
|
35
34
|
__exportStar(require("./modules/owner/types"), exports);
|
|
36
35
|
__exportStar(require("./modules/deposit-existing-MA.simulation/types"), exports);
|
|
37
36
|
__exportStar(require("./modules/deposit-new-MA.simulation/types"), exports);
|
|
@@ -44,6 +43,4 @@ __exportStar(require("./modules/transfer-MA-Pool.simulation/types"), exports);
|
|
|
44
43
|
__exportStar(require("./modules/funding-rate/types"), exports);
|
|
45
44
|
__exportStar(require("./modules/depth-chart.simulation/types"), exports);
|
|
46
45
|
__exportStar(require("./modules/deposit-passive-pool.simulation/types"), exports);
|
|
47
|
-
__exportStar(require("./modules/isolated-order.simulation/types"), exports);
|
|
48
|
-
__exportStar(require("./modules/rage-trade/types"), exports);
|
|
49
46
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,0CA4ByB;AA1BvB,2GAAA,iBAAiB,OAAA;AAYjB,qGAAA,WAAW,OAAA;AACX,2GAAA,iBAAiB,OAAA;AACjB,8GAAA,oBAAoB,OAAA;AACpB,yHAAA,+BAA+B,OAAA;AAE/B,oIAAA,0CAA0C,OAAA;AAG1C,6HAAA,mCAAmC,OAAA;AAEnC,uHAAA,6BAA6B,OAAA;AAG7B,8GAAA,oBAAoB,OAAA;AAEtB,0DAAwC;AACxC,qEAAmD;AACnD,qDAAmC;AACnC,0DAAwC;AACxC,yDAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,0CA4ByB;AA1BvB,2GAAA,iBAAiB,OAAA;AAYjB,qGAAA,WAAW,OAAA;AACX,2GAAA,iBAAiB,OAAA;AACjB,8GAAA,oBAAoB,OAAA;AACpB,yHAAA,+BAA+B,OAAA;AAE/B,oIAAA,0CAA0C,OAAA;AAG1C,6HAAA,mCAAmC,OAAA;AAEnC,uHAAA,6BAA6B,OAAA;AAG7B,8GAAA,oBAAoB,OAAA;AAEtB,0DAAwC;AACxC,qEAAmD;AACnD,qDAAmC;AACnC,0DAAwC;AACxC,yDAAuC;AACvC,wDAAsC;AACtC,iFAA+D;AAC/D,4EAA0D;AAC1D,kFAAgE;AAChE,6EAA2D;AAC3D,yEAAuD;AACvD,mFAAiE;AACjE,yFAAuE;AACvE,8EAA4D;AAC5D,+DAA6C;AAC7C,yEAAuD;AACvD,kFAAgE","sourcesContent":["// reexporting what we want to share with integrators\nexport {\n Candle,\n CandlesResolution,\n MarketEntity,\n LpTransactionHistoryEntity,\n TradingHistoryEntity,\n OrderHistoryEntity,\n PositionEntity,\n TransactionHistoryType,\n MarginAccountTransactionHistoryType,\n MarginAccountTransactionHistoryEntity,\n StrippedMarginAccountEntity,\n LpPositionEntity,\n LpPoolEntity,\n ReyaChainId,\n MoneyInOutChainId,\n LpBalanceGranularity,\n MarginAccountBalanceGranularity,\n GetMarginAccountBalanceChartDataResult,\n MarginAccountCollateralsBalanceGranularity,\n GetMarginAccountCollateralsBalanceChartDataResult,\n GetAllMarginAccountsBalanceChartDataResult,\n AllMarginAccountsBalanceGranularity,\n GetFundingRateChartDataResult,\n FundingRateHistoryGranularity,\n MoneyInOutConfigurationPerTokenName,\n UnifiedConditionalOrderType,\n ConditionalOrderType,\n} from '@reyaxyz/common';\nexport * from './modules/account/types';\nexport * from './modules/conditional-orders/types';\nexport * from './modules/lp/types';\nexport * from './modules/markets/types';\nexport * from './modules/tokens/types';\nexport * from './modules/owner/types';\nexport * from './modules/deposit-existing-MA.simulation/types';\nexport * from './modules/deposit-new-MA.simulation/types';\nexport * from './modules/deposit-passive-pool.simulation/types';\nexport * from './modules/edit-collateral.simulation/types';\nexport * from './modules/withdraw-MA.simulation/types';\nexport * from './modules/withdraw-passive-pool.simulation/types';\nexport * from './modules/transfer-margin-between-MAs.simulation/types';\nexport * from './modules/transfer-MA-Pool.simulation/types';\nexport * from './modules/funding-rate/types';\nexport * from './modules/depth-chart.simulation/types';\nexport * from './modules/deposit-passive-pool.simulation/types';\n"]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ServiceConfig, ReyaChainId } from '@reyaxyz/common';
|
|
2
2
|
import MarketsClient from './modules/markets';
|
|
3
3
|
import AccountClient from './modules/account';
|
|
4
|
-
import TradeSimulationClient from './modules/trade.simulation';
|
|
5
4
|
import LpClient from './modules/lp';
|
|
6
5
|
import TokensClient from './modules/tokens';
|
|
7
6
|
import OwnerClient from './modules/owner';
|
|
@@ -15,11 +14,9 @@ import TransferMarginBetweenMAsSimulationClient from './modules/transfer-margin-
|
|
|
15
14
|
import TransferMAPoolSimulationClient from './modules/transfer-MA-Pool.simulation';
|
|
16
15
|
import DepthChartSimulationClient from './modules/depth-chart.simulation';
|
|
17
16
|
import FundingRateClient from './modules/funding-rate';
|
|
18
|
-
import IsolatedOrderSimulationClient from './modules/isolated-order.simulation';
|
|
19
17
|
import ConditionalOrdersClient from './modules/conditional-orders';
|
|
20
18
|
import ReferralClient from './modules/referral';
|
|
21
19
|
import AuthClient from './modules/auth';
|
|
22
|
-
import RageTradeClient from './modules/rage-trade';
|
|
23
20
|
/**
|
|
24
21
|
* @description Client for API
|
|
25
22
|
*/
|
|
@@ -29,7 +26,6 @@ export declare class ApiClient {
|
|
|
29
26
|
private readonly _markets;
|
|
30
27
|
private readonly _account;
|
|
31
28
|
private readonly _lp;
|
|
32
|
-
private readonly _tradeSimulation;
|
|
33
29
|
private readonly _fundingRateHistory;
|
|
34
30
|
private readonly _editCollateralSimulation;
|
|
35
31
|
private readonly _depositExistingMASimulation;
|
|
@@ -40,12 +36,10 @@ export declare class ApiClient {
|
|
|
40
36
|
private readonly _transferMarginBetweenMAsSimulation;
|
|
41
37
|
private readonly _transferMAPoolSimulation;
|
|
42
38
|
private readonly _depthSimulation;
|
|
43
|
-
private readonly _isolatedOrderSimulation;
|
|
44
39
|
private readonly _tokens;
|
|
45
40
|
private readonly _owner;
|
|
46
41
|
private readonly _conditionalOrders;
|
|
47
42
|
private readonly _referral;
|
|
48
|
-
private readonly _rageTrade;
|
|
49
43
|
private readonly _auth;
|
|
50
44
|
private constructor();
|
|
51
45
|
static configure(environment: ServiceConfig['environment']): void;
|
|
@@ -67,34 +61,6 @@ export declare class ApiClient {
|
|
|
67
61
|
* @memberof ApiClient
|
|
68
62
|
*/
|
|
69
63
|
static get account(): AccountClient;
|
|
70
|
-
/**
|
|
71
|
-
* Provides access to the TradeSimulationClient instance.
|
|
72
|
-
* This getter allows for interacting with trade simulation functionalities.
|
|
73
|
-
* It ensures a singleton pattern by fetching the instance from the ApiClient's
|
|
74
|
-
* private `_tradeSimulation` property, ensuring that trade simulation operations
|
|
75
|
-
* use a consistent client configuration and state.
|
|
76
|
-
*
|
|
77
|
-
* @returns {TradeSimulationClient} An instance of TradeSimulationClient for trade simulation operations.
|
|
78
|
-
* @memberof ApiClient
|
|
79
|
-
* @example
|
|
80
|
-
* // Access the trade simulation client from the ApiClient
|
|
81
|
-
* const tradeSimulationClient = ApiClient.tradeSimulation;
|
|
82
|
-
*/
|
|
83
|
-
static get tradeSimulation(): TradeSimulationClient;
|
|
84
|
-
/**
|
|
85
|
-
* Provides access to the IsolatedOrderSimulationClient instance.
|
|
86
|
-
* This getter allows for interacting with isolatedTrade simulation functionalities.
|
|
87
|
-
* It ensures a singleton pattern by fetching the instance from the ApiClient's
|
|
88
|
-
* private `_isolatedTradeSimulation` property, ensuring that isolatedTrade simulation operations
|
|
89
|
-
* use a consistent client configuration and state.
|
|
90
|
-
*
|
|
91
|
-
* @returns {IsolatedOrderSimulationClient} An instance of IsolatedOrderSimulationClient for isolatedTrade simulation operations.
|
|
92
|
-
* @memberof ApiClient
|
|
93
|
-
* @example
|
|
94
|
-
* // Access the isolatedTrade simulation client from the ApiClient
|
|
95
|
-
* const isolatedTradeSimulationClient = ApiClient.isolatedTradeSimulation;
|
|
96
|
-
*/
|
|
97
|
-
static get isolatedSimulation(): IsolatedOrderSimulationClient;
|
|
98
64
|
static get fundingRateHistory(): FundingRateClient;
|
|
99
65
|
/**
|
|
100
66
|
* Retrieves the DepthChartSimulationClient instance used for depth simulation.
|
|
@@ -265,14 +231,6 @@ export declare class ApiClient {
|
|
|
265
231
|
* @returns {ReferralClient} The ReferralClient instance currently held by the ApiClient.
|
|
266
232
|
*/
|
|
267
233
|
static get referral(): ReferralClient;
|
|
268
|
-
/**
|
|
269
|
-
* Gets the current instance of the RageTradeClient from the ApiClient.
|
|
270
|
-
*
|
|
271
|
-
* This static getter allows access to the RageTradeClient instance managed within the ApiClient's singleton instance. It is a convenience method for retrieving the RageTradeClient directly, bypassing the need to manually access the internal `_rageTrade` property of the ApiClient instance.
|
|
272
|
-
*
|
|
273
|
-
* @returns {RageTradeClient} The RageTradeClient instance currently held by the ApiClient.
|
|
274
|
-
*/
|
|
275
|
-
static get rageTrade(): RageTradeClient;
|
|
276
234
|
/**
|
|
277
235
|
* Gets the current instance of the AuthClient from the ApiClient.
|
|
278
236
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"/","sources":["clients/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"api-client.d.ts","sourceRoot":"/","sources":["clients/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,8BAA8B,MAAM,sCAAsC,CAAC;AAClF,OAAO,iCAAiC,MAAM,0CAA0C,CAAC;AACzF,OAAO,4BAA4B,MAAM,qCAAqC,CAAC;AAC/E,OAAO,kCAAkC,MAAM,2CAA2C,CAAC;AAC3F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H,WAAkB,QAAQ,IAAI,cAAc,CAE3C;IAED;;;;;;OAMG;IACH,WAAkB,IAAI,IAAI,UAAU,CAEnC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetMarginAccountParams, GetMarginAccountResult, GetMarginAccountsParams, GetMarginAccountsResult, GetMarginAccountTransactionHistoryParams, GetMarginAccountTransactionHistoryResult,
|
|
2
|
-
import { EditCollateralSimulationState,
|
|
1
|
+
import { GetMarginAccountParams, GetMarginAccountResult, GetMarginAccountsParams, GetMarginAccountsResult, GetMarginAccountTransactionHistoryParams, GetMarginAccountTransactionHistoryResult, GetMaxWithdrawBalanceForAccountParams, GetMaxWithdrawBalanceForAccountResult, EditMarginAccountParams, CloseMarginAccountParams, GetEditCollateralSimulationInitialDataParams, EditMarginAccountResult, CloseMarginAccountResult, GetMarginAccountOrderHistoryPaginatedParams, GetMarginAccountOrderHistoryPaginatedResult, GetLiquidationHistoryForOwnerAddressResult, GetLiquidationHistoryForOwnerAddressParams, GetAccountFeeRebatesHistoryParams, GetAccountFeeRebatesHistoryResult, GetAutoExchangeHistoryForOwnerAddressResult, GetAutoExchangeHistoryForOwnerAddressParams, UpdateLeverageForAccountAndMarketParams, UpdateLeverageForAccountAndMarketResult } from './types';
|
|
2
|
+
import { EditCollateralSimulationState, RestClient } from '@reyaxyz/common';
|
|
3
3
|
export default class AccountClient extends RestClient {
|
|
4
4
|
/**
|
|
5
5
|
* Asynchronously retrieves a list of margin accounts associated with a specific address.
|
|
@@ -26,21 +26,13 @@ export default class AccountClient extends RestClient {
|
|
|
26
26
|
* @memberof account
|
|
27
27
|
*/
|
|
28
28
|
getMarginAccount(params: GetMarginAccountParams): Promise<GetMarginAccountResult>;
|
|
29
|
-
getPositionsForMarginAccount(params: GetPositionsForMarginAccountParams): Promise<GetPositionsForMarginAccountResult>;
|
|
30
29
|
getMarginAccountOrderHistoryPaginated(params: GetMarginAccountOrderHistoryPaginatedParams): Promise<GetMarginAccountOrderHistoryPaginatedResult>;
|
|
31
30
|
getLiquidationHistoryForOwnerAddress(params: GetLiquidationHistoryForOwnerAddressParams): Promise<GetLiquidationHistoryForOwnerAddressResult>;
|
|
32
31
|
getAutoExchangeHistoryForOwnerAddress(params: GetAutoExchangeHistoryForOwnerAddressParams): Promise<GetAutoExchangeHistoryForOwnerAddressResult>;
|
|
33
|
-
getMaxOrderSizeAvailable(params: GetMaxOrderSizeAvailableParams): Promise<GetMaxOrderSizeAvailableResult>;
|
|
34
|
-
getIsolatedOrderMaxSizeAvailable(params: GetIsolatedOrderMaxSizeAvailableParams): Promise<GetIsolatedOrderMaxSizeAvailableResult>;
|
|
35
|
-
getTransactionSimulationInitialData(params: GetTransactionSimulationInitialDataParams): Promise<TradeSimulationState>;
|
|
36
32
|
getEditCollateralSimulationInitialData(params: GetEditCollateralSimulationInitialDataParams): Promise<EditCollateralSimulationState>;
|
|
37
33
|
getMarginAccountTransactionHistory(params: GetMarginAccountTransactionHistoryParams): Promise<GetMarginAccountTransactionHistoryResult>;
|
|
38
34
|
getAccountFeeRebatesHistory(params: GetAccountFeeRebatesHistoryParams): Promise<GetAccountFeeRebatesHistoryResult>;
|
|
39
35
|
getMaxWithdrawBalanceForAccount(params: GetMaxWithdrawBalanceForAccountParams): Promise<GetMaxWithdrawBalanceForAccountResult>;
|
|
40
|
-
getMarginAccountBalanceChartData(params: GetMarginAccountBalanceChartDataParams): Promise<GetMarginAccountBalanceChartDataResult>;
|
|
41
|
-
getMarginAccountCollateralsBalanceChartData(params: GetMarginAccountCollateralsBalanceChartDataParams): Promise<GetMarginAccountCollateralsBalanceChartDataResult>;
|
|
42
|
-
getAllMarginAccountsBalanceChart(params: GetAllMarginAccountsBalanceChartDataParams): Promise<GetAllMarginAccountsBalanceChartDataResult>;
|
|
43
|
-
getAllMarginAccountsSummary(params: GetAllMarginAccountsSummaryParams): Promise<GetAllMarginAccountsSummaryResult>;
|
|
44
36
|
editMarginAccount(params: EditMarginAccountParams): Promise<EditMarginAccountResult>;
|
|
45
37
|
closeMarginAccount(params: CloseMarginAccountParams): Promise<CloseMarginAccountResult>;
|
|
46
38
|
updateLeverageForAccountAndMarket(params: UpdateLeverageForAccountAndMarketParams): Promise<UpdateLeverageForAccountAndMarketResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wCAAwC,EACxC,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wCAAwC,EACxC,wCAAwC,EACxC,qCAAqC,EACrC,qCAAqC,EACrC,uBAAuB,EACvB,wBAAwB,EACxB,4CAA4C,EAC5C,uBAAuB,EACvB,wBAAwB,EACxB,2CAA2C,EAC3C,2CAA2C,EAC3C,0CAA0C,EAC1C,0CAA0C,EAC1C,iCAAiC,EACjC,iCAAiC,EACjC,2CAA2C,EAC3C,2CAA2C,EAC3C,uCAAuC,EACvC,uCAAuC,EACxC,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,6BAA6B,EAC7B,UAAU,EAEX,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;SAWK;IAEC,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IA2BnC;;;;;;;;;;OAUG;IAEG,gBAAgB,CACpB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IASjD,oCAAoC,CACxC,MAAM,EAAE,0CAA0C,GACjD,OAAO,CAAC,0CAA0C,CAAC;IAOhD,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IAOjD,sCAAsC,CAC1C,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAAC,6BAA6B,CAAC;IAKnC,kCAAkC,CACtC,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,wCAAwC,CAAC;IAO9C,2BAA2B,CAC/B,MAAM,EAAE,iCAAiC,GACxC,OAAO,CAAC,iCAAiC,CAAC;IAOvC,+BAA+B,CACnC,MAAM,EAAE,qCAAqC,GAC5C,OAAO,CAAC,qCAAqC,CAAC;IAQ3C,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IAe7B,kBAAkB,CACtB,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAW9B,iCAAiC,CACrC,MAAM,EAAE,uCAAuC,GAC9C,OAAO,CAAC,uCAAuC,CAAC;CAcpD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarginAccountTransactionHistoryEntity, MarketEntity, PositionEntity, OrderHistoryEntity, MarginRatioHealth, StrippedMarginAccountEntity } from '@reyaxyz/common';
|
|
2
2
|
import { MarginAccountBalanceGranularity, MarginAccountCollateralsBalanceGranularity, AllMarginAccountsBalanceGranularity, ReferralFeeTransactionHistoryEntity, AutoExchangeEvent } from '@reyaxyz/common';
|
|
3
3
|
import { Address } from '@reyaxyz/common';
|
|
4
4
|
export type GetMarginAccountsParams = {
|
|
@@ -7,22 +7,22 @@ export type GetMarginAccountsParams = {
|
|
|
7
7
|
};
|
|
8
8
|
export type GetMarginAccountParams = {
|
|
9
9
|
address: string;
|
|
10
|
-
marginAccountId:
|
|
10
|
+
marginAccountId: number;
|
|
11
11
|
};
|
|
12
12
|
export type GetPositionsForMarginAccountParams = {
|
|
13
13
|
address: string;
|
|
14
|
-
marginAccountId:
|
|
14
|
+
marginAccountId: number;
|
|
15
15
|
limit?: number;
|
|
16
16
|
};
|
|
17
|
-
export type GetMarginAccountsResult =
|
|
18
|
-
export type GetMarginAccountResult =
|
|
17
|
+
export type GetMarginAccountsResult = StrippedMarginAccountEntity[];
|
|
18
|
+
export type GetMarginAccountResult = StrippedMarginAccountEntity;
|
|
19
19
|
export type GetMarginAccountTransactionHistoryParams = {
|
|
20
|
-
marginAccountId:
|
|
20
|
+
marginAccountId: number;
|
|
21
21
|
limit?: number;
|
|
22
22
|
};
|
|
23
23
|
export type GetMarginAccountTransactionHistoryResult = MarginAccountTransactionHistoryEntity[];
|
|
24
24
|
export type GetAccountFeeRebatesHistoryParams = {
|
|
25
|
-
marginAccountId:
|
|
25
|
+
marginAccountId: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
};
|
|
28
28
|
export type GetAccountFeeRebatesHistoryResult = {
|
|
@@ -30,7 +30,7 @@ export type GetAccountFeeRebatesHistoryResult = {
|
|
|
30
30
|
};
|
|
31
31
|
export type GetMaxOrderSizeAvailableParams = {
|
|
32
32
|
marketId: MarketEntity['id'];
|
|
33
|
-
marginAccountId:
|
|
33
|
+
marginAccountId: number;
|
|
34
34
|
direction: 'long' | 'short';
|
|
35
35
|
};
|
|
36
36
|
export type GetMaxOrderSizeAvailableResult = {
|
|
@@ -38,7 +38,7 @@ export type GetMaxOrderSizeAvailableResult = {
|
|
|
38
38
|
maxAmountSize: number;
|
|
39
39
|
};
|
|
40
40
|
export type GetMaxWithdrawBalanceForAccountParams = {
|
|
41
|
-
marginAccountId:
|
|
41
|
+
marginAccountId: number;
|
|
42
42
|
tokenAddress: string;
|
|
43
43
|
};
|
|
44
44
|
export type GetMaxWithdrawBalanceForAccountResult = number;
|
|
@@ -48,12 +48,12 @@ export type GetPositionsForMarginAccountResult = {
|
|
|
48
48
|
};
|
|
49
49
|
export type GetMarginAccountOrderHistoryParams = {
|
|
50
50
|
address: string;
|
|
51
|
-
marginAccountId:
|
|
51
|
+
marginAccountId: number;
|
|
52
52
|
limit?: number;
|
|
53
53
|
};
|
|
54
54
|
export type GetMarginAccountOrderHistoryPaginatedParams = {
|
|
55
55
|
address: string;
|
|
56
|
-
marginAccountId:
|
|
56
|
+
marginAccountId: number;
|
|
57
57
|
page: number;
|
|
58
58
|
perPage: number;
|
|
59
59
|
type?: 'order' | 'liquidation';
|
|
@@ -80,10 +80,10 @@ export type LiquidationHistoryEntity = {
|
|
|
80
80
|
timestamp: number;
|
|
81
81
|
baseUnderlyingToken: string;
|
|
82
82
|
marginAccount: {
|
|
83
|
-
id:
|
|
84
|
-
name:
|
|
85
|
-
marginRatioPercentage:
|
|
86
|
-
marginRatioHealth:
|
|
83
|
+
id: number;
|
|
84
|
+
name: string;
|
|
85
|
+
marginRatioPercentage: number;
|
|
86
|
+
marginRatioHealth: MarginRatioHealth;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
export type GetAutoExchangeHistoryForOwnerAddressParams = GetLiquidationHistoryForOwnerAddressParams;
|
|
@@ -92,20 +92,20 @@ export type GetAutoExchangeHistoryForOwnerAddressResult = {
|
|
|
92
92
|
};
|
|
93
93
|
export type GetTransactionSimulationInitialDataParams = {
|
|
94
94
|
marketId: MarketEntity['id'];
|
|
95
|
-
marginAccountId:
|
|
95
|
+
marginAccountId: number;
|
|
96
96
|
};
|
|
97
97
|
export type GetEditCollateralSimulationInitialDataParams = {
|
|
98
|
-
marginAccountId:
|
|
98
|
+
marginAccountId: number;
|
|
99
99
|
};
|
|
100
100
|
export type GetMarginAccountBalanceChartDataParams = {
|
|
101
|
-
marginAccountId:
|
|
101
|
+
marginAccountId: number;
|
|
102
102
|
filters: {
|
|
103
103
|
timeframeMs: number;
|
|
104
104
|
granularity: MarginAccountBalanceGranularity;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
export type GetMarginAccountCollateralsBalanceChartDataParams = {
|
|
108
|
-
marginAccountId:
|
|
108
|
+
marginAccountId: number;
|
|
109
109
|
filters: {
|
|
110
110
|
timeframeMs: number;
|
|
111
111
|
granularity: MarginAccountCollateralsBalanceGranularity;
|
|
@@ -119,14 +119,14 @@ export type GetAllMarginAccountsBalanceChartDataParams = {
|
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
export type EditMarginAccountParams = {
|
|
122
|
-
id:
|
|
123
|
-
name:
|
|
122
|
+
id: number;
|
|
123
|
+
name: string;
|
|
124
124
|
};
|
|
125
125
|
export type EditMarginAccountResult = {
|
|
126
126
|
success: boolean;
|
|
127
127
|
};
|
|
128
128
|
export type CloseMarginAccountParams = {
|
|
129
|
-
id:
|
|
129
|
+
id: number;
|
|
130
130
|
};
|
|
131
131
|
export type CloseMarginAccountResult = {
|
|
132
132
|
success: boolean;
|
|
@@ -142,7 +142,7 @@ export type GetAllMarginAccountsSummaryResult = {
|
|
|
142
142
|
};
|
|
143
143
|
export type GetIsolatedOrderMaxSizeAvailableParams = {
|
|
144
144
|
marketId: MarketEntity['id'];
|
|
145
|
-
marginAccountId:
|
|
145
|
+
marginAccountId: number;
|
|
146
146
|
direction: 'long' | 'short';
|
|
147
147
|
};
|
|
148
148
|
export type GetIsolatedOrderMaxSizeAvailableResult = {
|
|
@@ -150,7 +150,7 @@ export type GetIsolatedOrderMaxSizeAvailableResult = {
|
|
|
150
150
|
maxAmountSize: number;
|
|
151
151
|
};
|
|
152
152
|
export type UpdateLeverageForAccountAndMarketParams = {
|
|
153
|
-
accountId:
|
|
153
|
+
accountId: number;
|
|
154
154
|
marketId: MarketEntity['id'];
|
|
155
155
|
leverage: number;
|
|
156
156
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/account/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/account/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACrC,YAA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,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,4BAA4B,EAAE,MAAM,CAAC;IACrC,2BAA2B,EAAE,MAAM,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { JsonRpcSigner, Signer } from 'ethers';
|
|
2
|
-
import { MarginAccountEntity } from '@reyaxyz/common';
|
|
3
2
|
import { RegistrationResponseJSON } from '@simplewebauthn/types';
|
|
4
3
|
export type RegisterParams = {
|
|
5
4
|
signer: Signer | JsonRpcSigner;
|
|
6
|
-
marginAccountId:
|
|
5
|
+
marginAccountId: number;
|
|
7
6
|
attestationResponse: RegistrationResponseJSON;
|
|
8
7
|
};
|
|
9
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,wBAAwB,CAAC;CAC/C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConditionalOrder, UnifiedConditionalOrderType, ConditionalOrderType } from '@reyaxyz/common';
|
|
2
2
|
import { Signer, JsonRpcSigner } from 'ethers';
|
|
3
|
-
import {
|
|
3
|
+
import { MarketEntity, Address } from '@reyaxyz/common';
|
|
4
4
|
export type CancelConditionalOrderParams = {
|
|
5
5
|
signer: Signer | JsonRpcSigner;
|
|
6
6
|
orderId: string;
|
|
@@ -22,7 +22,7 @@ export type OrderSupportingParams = {
|
|
|
22
22
|
};
|
|
23
23
|
export type RegisterConditionalOrderParams = {
|
|
24
24
|
signer: Signer | JsonRpcSigner;
|
|
25
|
-
marginAccountId:
|
|
25
|
+
marginAccountId: number;
|
|
26
26
|
triggerPrice: number;
|
|
27
27
|
orderType: ConditionalOrderType;
|
|
28
28
|
marketId: number;
|
|
@@ -49,7 +49,7 @@ export type AlreadyGaveTradePermissionToWalletResult = {
|
|
|
49
49
|
};
|
|
50
50
|
export type GetConditionalOrdersHistoryForMarginAccountParams = {
|
|
51
51
|
address: string;
|
|
52
|
-
marginAccountId:
|
|
52
|
+
marginAccountId: number;
|
|
53
53
|
limit?: number;
|
|
54
54
|
};
|
|
55
55
|
export type GetConditionalOrdersHistoryForWalletAddressParams = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/conditional-orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/conditional-orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,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AAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iDAAiD,GAC3D,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarginRatioHealth, MoneyInOutChainId, SocketDepositFees, TokenEntity } from '@reyaxyz/common';
|
|
2
2
|
import { EditCollateralSimulationLoadDataParams } from '../edit-collateral.simulation/types';
|
|
3
3
|
export type DepositExistingMASimulationLoadDataParams = EditCollateralSimulationLoadDataParams;
|
|
4
4
|
export type DepositExistingMASimulationSimulateParams = {
|
|
@@ -9,7 +9,7 @@ export type DepositExistingMASimulationSimulateParams = {
|
|
|
9
9
|
export type SimulateDepositExistingMAEntity = {
|
|
10
10
|
socketDepositFees: SocketDepositFees;
|
|
11
11
|
bridgeTimeInMS: number;
|
|
12
|
-
marginRatio:
|
|
13
|
-
marginRatioHealth:
|
|
12
|
+
marginRatio: number;
|
|
13
|
+
marginRatioHealth: MarginRatioHealth;
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/deposit-existing-MA.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/deposit-existing-MA.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sCAAsC,EAAE,MAAM,qCAAqC,CAAC;AAE7F,MAAM,MAAM,yCAAyC,GACnD,sCAAsC,CAAC;AAEzC,MAAM,MAAM,yCAAyC,GAAG;IACtD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarginRatioHealth, TokenEntity } from '@reyaxyz/common';
|
|
2
2
|
export type EditCollateralSimulationLoadDataParams = {
|
|
3
|
-
marginAccountId:
|
|
3
|
+
marginAccountId: number;
|
|
4
4
|
};
|
|
5
5
|
export type EditCollateralSimulationSimulateParams = {
|
|
6
6
|
signedAmount: number;
|
|
7
7
|
tokenAddress: TokenEntity['address'];
|
|
8
8
|
};
|
|
9
9
|
export type SimulateEditCollateralEntity = {
|
|
10
|
-
marginRatio:
|
|
11
|
-
marginRatioHealth:
|
|
10
|
+
marginRatio: number;
|
|
11
|
+
marginRatioHealth: MarginRatioHealth;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/edit-collateral.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/edit-collateral.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,MAAM,sCAAsC,GAAG;IACnD,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCandlesParams, GetFundingRateChartDataParams, GetMarketParams, GetMarketResult, GetMarketsResult, GetMarketTradingHistoryParams,
|
|
1
|
+
import { GetCandlesParams, GetFundingRateChartDataParams, GetMarketParams, GetMarketResult, GetMarketsResult, GetMarketTradingHistoryParams, GetTradingHistoryResult, MarketCandlesResponse } from './types';
|
|
2
2
|
import { GetFundingRateChartDataResult, RestClient } from '@reyaxyz/common';
|
|
3
3
|
export default class MarketsClient extends RestClient {
|
|
4
4
|
/**
|
|
@@ -20,7 +20,6 @@ export default class MarketsClient extends RestClient {
|
|
|
20
20
|
*/
|
|
21
21
|
getMarkets(): Promise<GetMarketsResult>;
|
|
22
22
|
getMarket(params: GetMarketParams): Promise<GetMarketResult>;
|
|
23
|
-
getPoolPrice(params: GetMarketParams): Promise<GetPoolPriceResult>;
|
|
24
23
|
/**
|
|
25
24
|
* Retrieves candlestick data for a specified market.
|
|
26
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/markets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,6BAA6B,EAC7B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/markets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,6BAA6B,EAC7B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,6BAA6B,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE5E,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;;;;;;OAgBG;IAEG,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAKvC,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAKlE;;;;;;;;;;;;OAYG;IAEG,gBAAgB,CACpB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,qBAAqB,CAAC;IAU3B,uBAAuB,CAC3B,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,uBAAuB,CAAC;IAQ7B,uBAAuB,CAC3B,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC;CAO1C"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetOwnerLastSeenNotificationTimestampParams, GetOwnerLastSeenNotificationTimestampResult, GetOwnerMetadataParams, GetOwnerMetadataResult, SetOwnerLastSeenNotificationTimestampParams, SetOwnerLastSeenNotificationTimestampResult } from './types';
|
|
2
2
|
import { RestClient } from '@reyaxyz/common';
|
|
3
3
|
export default class OwnerClient extends RestClient {
|
|
4
4
|
getOwnerMetadata(params: GetOwnerMetadataParams): Promise<GetOwnerMetadataResult>;
|
|
5
|
-
getAccountOwnerMetadata(params: GetAccountOwnerMetadataParams): Promise<GetAccountOwnerMetadataResult>;
|
|
6
|
-
getOwnerConfigurationSettings(params: GetOwnerConfigurationSettingsParams): Promise<GetOwnerConfigurationSettingsResult>;
|
|
7
|
-
addFavoriteMarket(params: AddFavoriteMarketParams): Promise<AddFavoriteMarketResult>;
|
|
8
|
-
removeFavoriteMarket(params: RemoveFavoriteMarketParams): Promise<RemoveFavoriteMarketResult>;
|
|
9
5
|
getOwnerLastSeenNotificationTimestamp(params: GetOwnerLastSeenNotificationTimestampParams): Promise<GetOwnerLastSeenNotificationTimestampResult>;
|
|
10
6
|
setOwnerLastSeenNotificationTimestamp(params: SetOwnerLastSeenNotificationTimestampParams): Promise<SetOwnerLastSeenNotificationTimestampResult>;
|
|
11
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,2CAA2C,EAC3C,sBAAsB,EACtB,sBAAsB,EACtB,2CAA2C,EAC3C,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IAC3C,gBAAgB,CACpB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAK5B,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IAKjD,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;CAWxD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarginRatioHealth, TokenEntity } from '@reyaxyz/common';
|
|
2
2
|
import { EditCollateralSimulationLoadDataParams } from '../edit-collateral.simulation/types';
|
|
3
3
|
export type TransferMAPoolSimulationLoadDataParams = EditCollateralSimulationLoadDataParams;
|
|
4
4
|
export type TransferMAPoolSimulationSimulateParams = {
|
|
@@ -6,7 +6,7 @@ export type TransferMAPoolSimulationSimulateParams = {
|
|
|
6
6
|
tokenAddress: TokenEntity['address'];
|
|
7
7
|
};
|
|
8
8
|
export type SimulateTransferMAPoolEntity = {
|
|
9
|
-
marginRatio:
|
|
10
|
-
marginRatioHealth:
|
|
9
|
+
marginRatio: number;
|
|
10
|
+
marginRatioHealth: MarginRatioHealth;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/transfer-MA-Pool.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/transfer-MA-Pool.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,sCAAsC,EAAE,MAAM,qCAAqC,CAAC;AAE7F,MAAM,MAAM,sCAAsC,GAChD,sCAAsC,CAAC;AAEzC,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarginRatioHealth, TokenEntity } from '@reyaxyz/common';
|
|
2
2
|
export type TransferMarginBetweenMAsSimulationLoadDataParams = {
|
|
3
|
-
fromMarginAccountId:
|
|
4
|
-
toMarginAccountId:
|
|
3
|
+
fromMarginAccountId: number;
|
|
4
|
+
toMarginAccountId: number;
|
|
5
5
|
};
|
|
6
6
|
export type TransferMarginBetweenMAsSimulationSimulateParams = {
|
|
7
7
|
amount: number;
|
|
8
8
|
tokenAddress: TokenEntity['address'];
|
|
9
9
|
};
|
|
10
10
|
export type SimulateTransferMarginBetweenMAsEntity = {
|
|
11
|
-
fromMarginRatio:
|
|
12
|
-
fromMarginRatioHealth:
|
|
13
|
-
toMarginRatio:
|
|
14
|
-
toMarginRatioHealth:
|
|
11
|
+
fromMarginRatio: number;
|
|
12
|
+
fromMarginRatioHealth: MarginRatioHealth;
|
|
13
|
+
toMarginRatio: number;
|
|
14
|
+
toMarginRatioHealth: MarginRatioHealth;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/transfer-margin-between-MAs.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/transfer-margin-between-MAs.simulation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,MAAM,gDAAgD,GAAG;IAC7D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gDAAgD,GAAG;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,iBAAiB,CAAC;CACxC,CAAC"}
|