@0xmonaco/core 1.0.72 → 1.0.73-develop.af0f5d0

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.
@@ -19,7 +19,7 @@
19
19
  * console.log(`Now tradeable: ${result.tradingBalance}`);
20
20
  * ```
21
21
  */
22
- import type { BuildercodesAPI, ClaimBuildercodeRewardsParams, ClaimBuildercodeRewardsResponse, GetBuildercodePayoutSummaryResponse, GetBuildercodeRewardsBalanceResponse, GetBuildercodesConfigResponse, ListBuildercodePayoutsParams, ListBuildercodePayoutsResponse } from "@0xmonaco/types";
22
+ import type { BuildercodesAPI, ClaimBuildercodeRewardsParams, ClaimBuildercodeRewardsResponse, GetBuildercodePayoutSummaryResponse, GetBuildercodeRewardsBalanceResponse, GetBuildercodesConfigResponse, ListBuildercodePayoutsParams, ListBuildercodePayoutsResponse, ListBuilderFeeChangesParams, ListBuilderFeeChangesResponse, SetBuilderFeeParams, SetBuilderFeeResponse } from "@0xmonaco/types";
23
23
  import { BaseAPI } from "../base";
24
24
  export declare class BuildercodesAPIImpl extends BaseAPI implements BuildercodesAPI {
25
25
  /**
@@ -30,11 +30,15 @@ export declare class BuildercodesAPIImpl extends BaseAPI implements Buildercodes
30
30
  * application's configured payout address.
31
31
  */
32
32
  getConfig(): Promise<GetBuildercodesConfigResponse>;
33
+ /** Set this frontend's builder fee. */
34
+ setBuilderFee(params: SetBuilderFeeParams): Promise<SetBuilderFeeResponse>;
35
+ /** List this frontend's builder-fee audit log, newest first. */
36
+ listBuilderFeeChanges(params?: ListBuilderFeeChangesParams): Promise<ListBuilderFeeChangesResponse>;
33
37
  /**
34
38
  * List this frontend's per-trade BuilderCodes credits, newest first. Each
35
- * credit carries its payout `kind`: `REVENUE_SHARE` (your share of Monaco's
36
- * fee) or `BUILDER_FEE` (your builder fee). Pass `kind` to list one stream;
37
- * `total` then counts only that stream.
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.
38
42
  *
39
43
  * The server scopes every query to the authenticated application; neither
40
44
  * the application id nor payout wallet can be supplied by the caller.
@@ -19,7 +19,7 @@
19
19
  * console.log(`Now tradeable: ${result.tradingBalance}`);
20
20
  * ```
21
21
  */
22
- import { ClaimBuildercodeRewardsParamsSchema, ListBuildercodePayoutsParamsSchema, validate } from "@0xmonaco/types";
22
+ import { ClaimBuildercodeRewardsParamsSchema, ListBuildercodePayoutsParamsSchema, ListBuilderFeeChangesParamsSchema, SetBuilderFeeParamsSchema, validate, } from "@0xmonaco/types";
23
23
  import { APIError } from "../../errors";
24
24
  import { BaseAPI } from "../base";
25
25
  /**
@@ -102,11 +102,35 @@ export class BuildercodesAPIImpl extends BaseAPI {
102
102
  method: "GET",
103
103
  });
104
104
  }
105
+ /** Set this frontend's builder fee. */
106
+ async setBuilderFee(params) {
107
+ const validated = validate(SetBuilderFeeParamsSchema, params);
108
+ return this.makeAuthenticatedRequest("/api/v1/buildercodes/builder-fee", {
109
+ method: "PUT",
110
+ body: JSON.stringify({ bps: validated.bps }),
111
+ });
112
+ }
113
+ /** List this frontend's builder-fee audit log, newest first. */
114
+ async listBuilderFeeChanges(params) {
115
+ if (params) {
116
+ validate(ListBuilderFeeChangesParamsSchema, params);
117
+ }
118
+ const searchParams = new URLSearchParams();
119
+ if (params?.pageSize !== undefined) {
120
+ searchParams.append("pageSize", params.pageSize.toString());
121
+ }
122
+ if (params?.pageToken !== undefined) {
123
+ searchParams.append("pageToken", params.pageToken);
124
+ }
125
+ const query = searchParams.toString();
126
+ const path = query ? `/api/v1/buildercodes/builder-fee/changes?${query}` : "/api/v1/buildercodes/builder-fee/changes";
127
+ return this.makeAuthenticatedRequest(path, { method: "GET" });
128
+ }
105
129
  /**
106
130
  * List this frontend's per-trade BuilderCodes credits, newest first. Each
107
- * credit carries its payout `kind`: `REVENUE_SHARE` (your share of Monaco's
108
- * fee) or `BUILDER_FEE` (your builder fee). Pass `kind` to list one stream;
109
- * `total` then counts only that stream.
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.
110
134
  *
111
135
  * The server scopes every query to the authenticated application; neither
112
136
  * the application id nor payout wallet can be supplied by the caller.
@@ -16,6 +16,7 @@ export class DelegatedAgentsAPIImpl extends BaseAPI {
16
16
  maxLeverage: request.maxLeverage,
17
17
  maxOrderNotional: request.maxOrderNotional,
18
18
  maxOpenOrders: request.maxOpenOrders,
19
+ ipAllowlist: request.ipAllowlist,
19
20
  }),
20
21
  });
21
22
  }
@@ -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;
@@ -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 referrer, total earned,
81
- * and recent rewards. Self-scoped — no id is sent, so it can only ever return
82
- * your own chain. `referrer` is "" when you were not referred.
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
  }
@@ -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 referrer, total earned,
113
- * and recent rewards. Self-scoped — no id is sent, so it can only ever return
114
- * your own chain. `referrer` is "" when you were not referred.
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
- return await this.makeAuthenticatedRequest(`${BASE_PATH}/margin`);
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
- accountState: readString(data, "accountState"),
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/accountState) stay lenient
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"),
@@ -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;
@@ -105,6 +106,7 @@ export declare const COVERED: {
105
106
  list_application_orders: string;
106
107
  list_application_users: string;
107
108
  list_buildercode_payouts: string;
109
+ list_builder_fee_changes: string;
108
110
  list_conditional_orders: string;
109
111
  list_delegated_agent_owners: string;
110
112
  list_delegated_agents: string;
@@ -131,7 +133,12 @@ export declare const COVERED: {
131
133
  transfer_collateral_to_margin_account: string;
132
134
  transfer_collateral_to_parent_margin_account: string;
133
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;
134
140
  claim_buildercode_rewards: string;
141
+ set_builder_fee: string;
135
142
  transfer_rewards: string;
136
143
  update_sub_account_limit: string;
137
144
  upsert_delegated_agent: 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",
@@ -105,6 +106,7 @@ export const COVERED = {
105
106
  list_application_orders: "listApplicationOrders",
106
107
  list_application_users: "listApplicationUsers",
107
108
  list_buildercode_payouts: "buildercodes.listPayouts",
109
+ list_builder_fee_changes: "buildercodes.listBuilderFeeChanges",
108
110
  list_conditional_orders: "listConditionalOrders",
109
111
  list_delegated_agent_owners: "listDelegatedOwners",
110
112
  list_delegated_agents: "listDelegatedAgents",
@@ -131,7 +133,12 @@ export const COVERED = {
131
133
  transfer_collateral_to_margin_account: "transferCollateralToMarginAccount",
132
134
  transfer_collateral_to_parent_margin_account: "transferCollateralToParentMarginAccount",
133
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",
134
140
  claim_buildercode_rewards: "buildercodes.claimBuildercodeRewards",
141
+ set_builder_fee: "buildercodes.setBuilderFee",
135
142
  transfer_rewards: "pitpass.transferRewards",
136
143
  update_sub_account_limit: "subAccounts.updateLimit",
137
144
  upsert_delegated_agent: "upsertDelegatedAgent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "1.0.72",
3
+ "version": "1.0.73-develop.af0f5d0",
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.72",
23
- "@0xmonaco/types": "1.0.72",
22
+ "@0xmonaco/contracts": "1.0.73-develop.af0f5d0",
23
+ "@0xmonaco/types": "1.0.73-develop.af0f5d0",
24
24
  "@noble/curves": "^1.9.1",
25
25
  "@noble/hashes": "^2.4.0",
26
26
  "http-status-codes": "^2.3.0"