@0xmonaco/core 1.0.73 → 1.0.74
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/api/buildercodes/api.d.ts +3 -3
- package/dist/api/buildercodes/api.js +3 -3
- package/dist/api/delegated-agents/api.js +1 -0
- package/dist/api/margin-accounts/api.d.ts +5 -1
- package/dist/api/margin-accounts/api.js +33 -1
- package/dist/api/perp/routes.d.ts +4 -0
- package/dist/api/perp/routes.js +4 -0
- package/dist/api/pitpass/api.d.ts +12 -4
- package/dist/api/pitpass/api.js +29 -4
- package/dist/api/portfolio/api.d.ts +2 -2
- package/dist/api/portfolio/api.js +11 -2
- package/dist/api/websocket/websocket.js +2 -2
- package/dist/coverage.d.ts +5 -0
- package/dist/coverage.js +5 -0
- package/package.json +3 -3
|
@@ -36,9 +36,9 @@ export declare class BuildercodesAPIImpl extends BaseAPI implements Buildercodes
|
|
|
36
36
|
listBuilderFeeChanges(params?: ListBuilderFeeChangesParams): Promise<ListBuilderFeeChangesResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* List this frontend's per-trade BuilderCodes credits, newest first. Each
|
|
39
|
-
* credit carries its payout `kind
|
|
40
|
-
* `BUILDER_FEE`
|
|
41
|
-
*
|
|
39
|
+
* credit carries its payout `kind`: `REVENUE_SHARE` for Monaco revenue share
|
|
40
|
+
* or `BUILDER_FEE` for builder fees charged to takers. Pass `kind` to filter
|
|
41
|
+
* the list; `total` then counts only that category.
|
|
42
42
|
*
|
|
43
43
|
* The server scopes every query to the authenticated application; neither
|
|
44
44
|
* the application id nor payout wallet can be supplied by the caller.
|
|
@@ -128,9 +128,9 @@ export class BuildercodesAPIImpl extends BaseAPI {
|
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* List this frontend's per-trade BuilderCodes credits, newest first. Each
|
|
131
|
-
* credit carries its payout `kind
|
|
132
|
-
* `BUILDER_FEE`
|
|
133
|
-
*
|
|
131
|
+
* credit carries its payout `kind`: `REVENUE_SHARE` for Monaco revenue share
|
|
132
|
+
* or `BUILDER_FEE` for builder fees charged to takers. Pass `kind` to filter
|
|
133
|
+
* the list; `total` then counts only that category.
|
|
134
134
|
*
|
|
135
135
|
* The server scopes every query to the authenticated application; neither
|
|
136
136
|
* the application id nor payout wallet can be supplied by the caller.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type { GetAvailableCollateralParams, GetAvailableCollateralResponse, GetMarginAccountMovementsParams, GetMarginAccountMovementsResponse, GetMarginAccountSummaryParams, ListMarginAccountsParams, ListMarginAccountsResponse, MarginAccountSummary, MarginAccountsAPI, SimulateOrderRiskRequest, SimulateOrderRiskResponse, SimulateRiskBucketOrderRiskRequest, TransferCollateralFromParentMarginAccountRequest, TransferCollateralRequest, TransferCollateralResponse, TransferCollateralToParentMarginAccountRequest, TransferCollateralToRiskBucketRequest } from "@0xmonaco/types";
|
|
1
|
+
import type { CloseMarginSubAccountResponse, CreateMarginSubAccountRequest, CreateMarginSubAccountResponse, GetAvailableCollateralParams, GetAvailableCollateralResponse, GetMarginAccountMovementsParams, GetMarginAccountMovementsResponse, GetMarginAccountSummaryParams, ListMarginAccountsParams, ListMarginAccountsResponse, MarginAccountPnl, MarginAccountSummary, MarginAccountsAPI, SimulateOrderRiskRequest, SimulateOrderRiskResponse, SimulateRiskBucketOrderRiskRequest, TransferCollateralFromParentMarginAccountRequest, TransferCollateralRequest, TransferCollateralResponse, TransferCollateralToParentMarginAccountRequest, TransferCollateralToRiskBucketRequest, TransferMarginCollateralRequest, TransferMarginCollateralResponse } from "@0xmonaco/types";
|
|
2
2
|
import { BaseAPI } from "../base";
|
|
3
3
|
export declare class MarginAccountsAPIImpl extends BaseAPI implements MarginAccountsAPI {
|
|
4
|
+
createMarginSubAccount(request: CreateMarginSubAccountRequest): Promise<CreateMarginSubAccountResponse>;
|
|
5
|
+
closeMarginSubAccount(marginAccountId: string): Promise<CloseMarginSubAccountResponse>;
|
|
6
|
+
getMarginAccountPnl(marginAccountId: string): Promise<MarginAccountPnl>;
|
|
7
|
+
transferMarginCollateral(request: TransferMarginCollateralRequest): Promise<TransferMarginCollateralResponse>;
|
|
4
8
|
listMarginAccounts(params?: ListMarginAccountsParams): Promise<ListMarginAccountsResponse>;
|
|
5
9
|
getMarginAccountSummary(marginAccountId: string, params?: GetMarginAccountSummaryParams): Promise<MarginAccountSummary>;
|
|
6
10
|
getParentMarginAccountSummary(params?: GetMarginAccountSummaryParams): Promise<MarginAccountSummary>;
|
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
import { GetAvailableCollateralSchema, GetMarginAccountMovementsSchema, GetMarginAccountSummarySchema, GetParentMarginAccountMovementsSchema, GetParentMarginAccountSummarySchema, ListMarginAccountsSchema, SimulateOrderRiskSchema, SimulateParentMarginOrderRiskSchema, SimulateRiskBucketOrderRiskSchema, TransferCollateralFromParentMarginAccountSchema, TransferCollateralSchema, TransferCollateralToParentMarginAccountSchema, TransferCollateralToRiskBucketSchema, validate, } from "@0xmonaco/types";
|
|
1
|
+
import { CloseMarginSubAccountSchema, CreateMarginSubAccountSchema, GetAvailableCollateralSchema, GetMarginAccountMovementsSchema, GetMarginAccountPnlSchema, GetMarginAccountSummarySchema, GetParentMarginAccountMovementsSchema, GetParentMarginAccountSummarySchema, ListMarginAccountsSchema, SimulateOrderRiskSchema, SimulateParentMarginOrderRiskSchema, SimulateRiskBucketOrderRiskSchema, TransferCollateralFromParentMarginAccountSchema, TransferCollateralSchema, TransferCollateralToParentMarginAccountSchema, TransferCollateralToRiskBucketSchema, TransferMarginCollateralSchema, validate, } from "@0xmonaco/types";
|
|
2
2
|
import { BaseAPI } from "../base";
|
|
3
3
|
import { perpRoutes } from "../perp";
|
|
4
4
|
export class MarginAccountsAPIImpl extends BaseAPI {
|
|
5
|
+
async createMarginSubAccount(request) {
|
|
6
|
+
validate(CreateMarginSubAccountSchema, { request });
|
|
7
|
+
return await this.makeAuthenticatedRequest(perpRoutes.marginAccounts.createSubAccount(), {
|
|
8
|
+
method: "POST",
|
|
9
|
+
body: JSON.stringify({ subaccountKey: request.subaccountKey, label: request.label }),
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async closeMarginSubAccount(marginAccountId) {
|
|
13
|
+
validate(CloseMarginSubAccountSchema, { marginAccountId });
|
|
14
|
+
return await this.makeAuthenticatedRequest(perpRoutes.marginAccounts.closeSubAccount(marginAccountId), {
|
|
15
|
+
method: "POST",
|
|
16
|
+
body: JSON.stringify({}),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
async getMarginAccountPnl(marginAccountId) {
|
|
20
|
+
validate(GetMarginAccountPnlSchema, { marginAccountId });
|
|
21
|
+
return await this.makeAuthenticatedRequest(perpRoutes.marginAccounts.pnl(marginAccountId));
|
|
22
|
+
}
|
|
23
|
+
async transferMarginCollateral(request) {
|
|
24
|
+
validate(TransferMarginCollateralSchema, { request });
|
|
25
|
+
return await this.makeAuthenticatedRequest(perpRoutes.marginAccounts.transferCollateral(), {
|
|
26
|
+
method: "POST",
|
|
27
|
+
body: JSON.stringify({
|
|
28
|
+
asset: request.asset,
|
|
29
|
+
amount: request.amount,
|
|
30
|
+
from: request.from,
|
|
31
|
+
to: request.to,
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
5
35
|
async listMarginAccounts(params) {
|
|
6
36
|
if (params) {
|
|
7
37
|
validate(ListMarginAccountsSchema, params);
|
|
@@ -69,6 +99,7 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
69
99
|
tradingPairId: request.tradingPairId,
|
|
70
100
|
strategyKey: request.strategyKey,
|
|
71
101
|
marginMode: request.marginMode,
|
|
102
|
+
marginAccountId: request.marginAccountId,
|
|
72
103
|
// No selectedTradingPairIds: cross scope is derived from trading, and
|
|
73
104
|
// the server ignores the deprecated field. Not sending it keeps a
|
|
74
105
|
// pre-upgrade caller's stale list from reaching the wire at all.
|
|
@@ -152,6 +183,7 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
152
183
|
tradingPairId: request.tradingPairId,
|
|
153
184
|
strategyKey: request.strategyKey,
|
|
154
185
|
marginMode: request.marginMode,
|
|
186
|
+
marginAccountId: request.marginAccountId,
|
|
155
187
|
// No selectedTradingPairIds: cross scope is derived from trading, and
|
|
156
188
|
// the server ignores the deprecated field. Not sending it keeps a
|
|
157
189
|
// pre-upgrade caller's stale list from reaching the wire at all.
|
|
@@ -230,6 +230,10 @@ export declare const perpRoutes: {
|
|
|
230
230
|
readonly simulateParentMarginOrderRisk: () => string;
|
|
231
231
|
readonly simulateOrderRisk: (marginAccountId: string) => string;
|
|
232
232
|
readonly simulateRiskBucketOrderRisk: () => string;
|
|
233
|
+
readonly createSubAccount: () => string;
|
|
234
|
+
readonly closeSubAccount: (marginAccountId: string) => string;
|
|
235
|
+
readonly pnl: (marginAccountId: string) => string;
|
|
236
|
+
readonly transferCollateral: () => string;
|
|
233
237
|
};
|
|
234
238
|
readonly streams: {
|
|
235
239
|
readonly orderbook: () => string;
|
package/dist/api/perp/routes.js
CHANGED
|
@@ -119,6 +119,10 @@ export const perpRoutes = {
|
|
|
119
119
|
simulateParentMarginOrderRisk: () => `${API_V1}/margin/parent-margin-account/simulate-order-risk`,
|
|
120
120
|
simulateOrderRisk: (marginAccountId) => `${API_V1}/margin/accounts/${encodeSegment(marginAccountId)}/simulate-order-risk`,
|
|
121
121
|
simulateRiskBucketOrderRisk: () => `${API_V1}/margin/risk-buckets/simulate-order-risk`,
|
|
122
|
+
createSubAccount: () => `${API_V1}/margin/sub-accounts`,
|
|
123
|
+
closeSubAccount: (marginAccountId) => `${API_V1}/margin/sub-accounts/${encodeSegment(marginAccountId)}/close`,
|
|
124
|
+
pnl: (marginAccountId) => `${API_V1}/margin/accounts/${encodeSegment(marginAccountId)}/pnl`,
|
|
125
|
+
transferCollateral: () => `${API_V1}/margin/collateral/transfer`,
|
|
122
126
|
},
|
|
123
127
|
streams: {
|
|
124
128
|
orderbook: () => `${API_V1}/streaming/orderbook`,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* console.log(`Rewards remaining: ${result.rewardsBalance}`);
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
import type { GetMyReferralDownlineResponse, GetMyReferralPositionResponse, GetRewardsBalanceResponse, PitpassAPI, TraderCodeAvailabilityResponse, TraderCodeInfoResponse, TraderCodeResponse, TransferRewardsParams, TransferRewardsResponse } from "@0xmonaco/types";
|
|
36
|
+
import type { GetMyReferralDownlineResponse, GetMyReferralPositionResponse, GetMyReferralTreeParams, GetMyReferralTreeResponse, GetRewardsBalanceResponse, PitpassAPI, TraderCodeAvailabilityResponse, TraderCodeInfoResponse, TraderCodeResponse, TransferRewardsParams, TransferRewardsResponse } from "@0xmonaco/types";
|
|
37
37
|
import { BaseAPI } from "../base";
|
|
38
38
|
export declare class PitpassAPIImpl extends BaseAPI implements PitpassAPI {
|
|
39
39
|
/**
|
|
@@ -77,9 +77,10 @@ export declare class PitpassAPIImpl extends BaseAPI implements PitpassAPI {
|
|
|
77
77
|
*/
|
|
78
78
|
transferRewards(params: TransferRewardsParams): Promise<TransferRewardsResponse>;
|
|
79
79
|
/**
|
|
80
|
-
* Read the caller's own referral position: their L1
|
|
81
|
-
* and recent rewards. Self-scoped — no id is sent,
|
|
82
|
-
* your own chain. `referrer` is ""
|
|
80
|
+
* Read the caller's own referral position: their upline (L1, L2, L3), their
|
|
81
|
+
* L1 referrer, total earned, and recent rewards. Self-scoped — no id is sent,
|
|
82
|
+
* so it can only ever return your own chain. `referrer` is "" and `upline` is
|
|
83
|
+
* empty when you were not referred.
|
|
83
84
|
*/
|
|
84
85
|
getMyReferralPosition(): Promise<GetMyReferralPositionResponse>;
|
|
85
86
|
/**
|
|
@@ -88,4 +89,11 @@ export declare class PitpassAPIImpl extends BaseAPI implements PitpassAPI {
|
|
|
88
89
|
* per-level earnings summary. Self-scoped, read-only.
|
|
89
90
|
*/
|
|
90
91
|
getMyReferralDownline(): Promise<GetMyReferralDownlineResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Read one level of the caller's own referral tree: the wallets `parent`
|
|
94
|
+
* directly referred (the caller when omitted), a page at a time, newest
|
|
95
|
+
* first. `parent` must be the caller or one of their own L1/L2 referees;
|
|
96
|
+
* any other wallet is a 404.
|
|
97
|
+
*/
|
|
98
|
+
getMyReferralTree(params?: GetMyReferralTreeParams): Promise<GetMyReferralTreeResponse>;
|
|
91
99
|
}
|
package/dist/api/pitpass/api.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* console.log(`Rewards remaining: ${result.rewardsBalance}`);
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
import { SetTraderCodeParamsSchema, TransferRewardsParamsSchema, validate } from "@0xmonaco/types";
|
|
36
|
+
import { GetMyReferralTreeParamsSchema, SetTraderCodeParamsSchema, TransferRewardsParamsSchema, validate } from "@0xmonaco/types";
|
|
37
37
|
import { BaseAPI } from "../base";
|
|
38
38
|
export class PitpassAPIImpl extends BaseAPI {
|
|
39
39
|
/**
|
|
@@ -109,9 +109,10 @@ export class PitpassAPIImpl extends BaseAPI {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Read the caller's own referral position: their L1
|
|
113
|
-
* and recent rewards. Self-scoped — no id is sent,
|
|
114
|
-
* your own chain. `referrer` is ""
|
|
112
|
+
* Read the caller's own referral position: their upline (L1, L2, L3), their
|
|
113
|
+
* L1 referrer, total earned, and recent rewards. Self-scoped — no id is sent,
|
|
114
|
+
* so it can only ever return your own chain. `referrer` is "" and `upline` is
|
|
115
|
+
* empty when you were not referred.
|
|
115
116
|
*/
|
|
116
117
|
async getMyReferralPosition() {
|
|
117
118
|
return await this.makeAuthenticatedRequest("/api/v1/pitpass/referrals/me", {
|
|
@@ -128,4 +129,28 @@ export class PitpassAPIImpl extends BaseAPI {
|
|
|
128
129
|
method: "GET",
|
|
129
130
|
});
|
|
130
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Read one level of the caller's own referral tree: the wallets `parent`
|
|
134
|
+
* directly referred (the caller when omitted), a page at a time, newest
|
|
135
|
+
* first. `parent` must be the caller or one of their own L1/L2 referees;
|
|
136
|
+
* any other wallet is a 404.
|
|
137
|
+
*/
|
|
138
|
+
async getMyReferralTree(params) {
|
|
139
|
+
if (params) {
|
|
140
|
+
validate(GetMyReferralTreeParamsSchema, params);
|
|
141
|
+
}
|
|
142
|
+
const searchParams = new URLSearchParams();
|
|
143
|
+
if (params?.parent !== undefined) {
|
|
144
|
+
searchParams.append("parent", params.parent);
|
|
145
|
+
}
|
|
146
|
+
if (params?.pageSize !== undefined) {
|
|
147
|
+
searchParams.append("pageSize", params.pageSize.toString());
|
|
148
|
+
}
|
|
149
|
+
if (params?.pageToken !== undefined) {
|
|
150
|
+
searchParams.append("pageToken", params.pageToken);
|
|
151
|
+
}
|
|
152
|
+
const query = searchParams.toString();
|
|
153
|
+
const path = query ? `/api/v1/pitpass/referrals/me/tree?${query}` : "/api/v1/pitpass/referrals/me/tree";
|
|
154
|
+
return await this.makeAuthenticatedRequest(path, { method: "GET" });
|
|
155
|
+
}
|
|
131
156
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PortfolioAPI, PortfolioAssets, PortfolioMargin, PortfolioPerformance, PortfolioPeriodParams, PortfolioRealizedPnl, PortfolioSummary } from "@0xmonaco/types";
|
|
1
|
+
import type { PortfolioAPI, PortfolioAssets, PortfolioMargin, PortfolioMarginParams, PortfolioPerformance, PortfolioPeriodParams, PortfolioRealizedPnl, PortfolioSummary } from "@0xmonaco/types";
|
|
2
2
|
import { BaseAPI } from "../base";
|
|
3
3
|
export declare class PortfolioAPIImpl extends BaseAPI implements PortfolioAPI {
|
|
4
4
|
getSummary(params?: PortfolioPeriodParams): Promise<PortfolioSummary>;
|
|
5
5
|
getPerformance(params?: PortfolioPeriodParams): Promise<PortfolioPerformance>;
|
|
6
6
|
getRealizedPnl(params?: PortfolioPeriodParams): Promise<PortfolioRealizedPnl>;
|
|
7
7
|
getAssets(params?: PortfolioPeriodParams): Promise<PortfolioAssets>;
|
|
8
|
-
getMargin(): Promise<PortfolioMargin>;
|
|
8
|
+
getMargin(params?: PortfolioMarginParams): Promise<PortfolioMargin>;
|
|
9
9
|
}
|
|
@@ -19,7 +19,16 @@ export class PortfolioAPIImpl extends BaseAPI {
|
|
|
19
19
|
async getAssets(params) {
|
|
20
20
|
return await this.makeAuthenticatedRequest(withPeriod(`${BASE_PATH}/assets`, params));
|
|
21
21
|
}
|
|
22
|
-
async getMargin() {
|
|
23
|
-
|
|
22
|
+
async getMargin(params) {
|
|
23
|
+
const query = new URLSearchParams();
|
|
24
|
+
if (params?.marginAccountId) {
|
|
25
|
+
query.set("marginAccountId", params.marginAccountId);
|
|
26
|
+
}
|
|
27
|
+
if (params?.includeAccounts !== undefined) {
|
|
28
|
+
query.set("includeAccounts", String(params.includeAccounts));
|
|
29
|
+
}
|
|
30
|
+
const search = query.toString();
|
|
31
|
+
const suffix = search ? `?${search}` : "";
|
|
32
|
+
return await this.makeAuthenticatedRequest(`${BASE_PATH}/margin${suffix}`);
|
|
24
33
|
}
|
|
25
34
|
}
|
|
@@ -284,7 +284,7 @@ function parseLiquidationEventData(raw) {
|
|
|
284
284
|
positionId: readOptionalString(data, "positionId"),
|
|
285
285
|
tradingPairId: readOptionalString(data, "tradingPairId"),
|
|
286
286
|
status: readString(data, "status"),
|
|
287
|
-
|
|
287
|
+
riskBucketState: readString(data, "riskBucketState"),
|
|
288
288
|
liquidationPrice: readOptionalString(data, "liquidationPrice"),
|
|
289
289
|
markPrice: readOptionalString(data, "markPrice"),
|
|
290
290
|
estimatedShortfall: readString(data, "estimatedShortfall"),
|
|
@@ -299,7 +299,7 @@ function parseLiquidationEvent(rawData) {
|
|
|
299
299
|
return {
|
|
300
300
|
// event_type is the event-class discriminator, validated strictly so a
|
|
301
301
|
// mis-routed frame is rejected rather than parsed as a liquidation. The
|
|
302
|
-
// free-form value fields in the payload (status/
|
|
302
|
+
// free-form value fields in the payload (status/riskBucketState) stay lenient
|
|
303
303
|
// so an unexpected *value* never drops a risk-critical alert.
|
|
304
304
|
eventType: readEnum(rawData, "event_type", ["liquidation_alert"]),
|
|
305
305
|
userId: readString(rawData, "user_id"),
|
package/dist/coverage.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const COVERED: {
|
|
|
62
62
|
get_rewards_balance: string;
|
|
63
63
|
get_my_referral_position: string;
|
|
64
64
|
get_my_referral_downline: string;
|
|
65
|
+
get_my_referral_tree: string;
|
|
65
66
|
get_self_trade_prevention_default: string;
|
|
66
67
|
get_trader_code_info: string;
|
|
67
68
|
set_self_trade_prevention_default: string;
|
|
@@ -132,6 +133,10 @@ export declare const COVERED: {
|
|
|
132
133
|
transfer_collateral_to_margin_account: string;
|
|
133
134
|
transfer_collateral_to_parent_margin_account: string;
|
|
134
135
|
transfer_collateral_to_risk_bucket: string;
|
|
136
|
+
create_sub_account: string;
|
|
137
|
+
close_sub_account: string;
|
|
138
|
+
get_margin_account_pnl: string;
|
|
139
|
+
transfer_collateral: string;
|
|
135
140
|
claim_buildercode_rewards: string;
|
|
136
141
|
set_builder_fee: string;
|
|
137
142
|
transfer_rewards: string;
|
package/dist/coverage.js
CHANGED
|
@@ -62,6 +62,7 @@ export const COVERED = {
|
|
|
62
62
|
get_rewards_balance: "pitpass.getRewardsBalance",
|
|
63
63
|
get_my_referral_position: "pitpass.getMyReferralPosition",
|
|
64
64
|
get_my_referral_downline: "pitpass.getMyReferralDownline",
|
|
65
|
+
get_my_referral_tree: "pitpass.getMyReferralTree",
|
|
65
66
|
get_self_trade_prevention_default: "profile.getSelfTradePreventionDefault",
|
|
66
67
|
get_trader_code_info: "pitpass.getTraderCodeInfo",
|
|
67
68
|
set_self_trade_prevention_default: "profile.setSelfTradePreventionDefault",
|
|
@@ -132,6 +133,10 @@ export const COVERED = {
|
|
|
132
133
|
transfer_collateral_to_margin_account: "transferCollateralToMarginAccount",
|
|
133
134
|
transfer_collateral_to_parent_margin_account: "transferCollateralToParentMarginAccount",
|
|
134
135
|
transfer_collateral_to_risk_bucket: "transferCollateralToRiskBucket",
|
|
136
|
+
create_sub_account: "createMarginSubAccount",
|
|
137
|
+
close_sub_account: "closeMarginSubAccount",
|
|
138
|
+
get_margin_account_pnl: "getMarginAccountPnl",
|
|
139
|
+
transfer_collateral: "transferMarginCollateral",
|
|
135
140
|
claim_buildercode_rewards: "buildercodes.claimBuildercodeRewards",
|
|
136
141
|
set_builder_fee: "buildercodes.setBuilderFee",
|
|
137
142
|
transfer_rewards: "pitpass.transferRewards",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"viem": "^2.45.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@0xmonaco/contracts": "1.0.
|
|
23
|
-
"@0xmonaco/types": "1.0.
|
|
22
|
+
"@0xmonaco/contracts": "1.0.74",
|
|
23
|
+
"@0xmonaco/types": "1.0.74",
|
|
24
24
|
"@noble/curves": "^1.9.1",
|
|
25
25
|
"@noble/hashes": "^2.4.0",
|
|
26
26
|
"http-status-codes": "^2.3.0"
|