@0xmonaco/core 1.0.92 → 1.0.93

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.
@@ -27,5 +27,4 @@ export * from "./trades";
27
27
  export * from "./trading";
28
28
  export * from "./vault";
29
29
  export * from "./websocket";
30
- export * from "./whitelist";
31
30
  export * from "./withdrawals";
package/dist/api/index.js CHANGED
@@ -27,5 +27,4 @@ export * from "./trades";
27
27
  export * from "./trading";
28
28
  export * from "./vault";
29
29
  export * from "./websocket";
30
- export * from "./whitelist";
31
30
  export * from "./withdrawals";
@@ -198,9 +198,6 @@ export declare const perpRoutes: {
198
198
  pageToken?: string;
199
199
  }) => string;
200
200
  };
201
- readonly whitelist: {
202
- readonly submit: () => string;
203
- };
204
201
  readonly positions: {
205
202
  readonly list: (params?: {
206
203
  marginAccountId?: string;
@@ -98,9 +98,6 @@ export const perpRoutes = {
98
98
  deposits: (txHash) => `${API_V1}/sweeper/deposits/${encodeSegment(txHash)}`,
99
99
  listDeposits: (params) => withQuery(`${API_V1}/sweeper/deposits`, params),
100
100
  },
101
- whitelist: {
102
- submit: () => `${API_V1}/whitelist`,
103
- },
104
101
  positions: {
105
102
  list: (params) => withQuery(`${API_V1}/positions`, params),
106
103
  get: (positionId) => `${API_V1}/positions/${encodeSegment(positionId)}`,
@@ -136,7 +136,6 @@ export declare const COVERED: {
136
136
  simulate_fees: string;
137
137
  simulate_order_risk: string;
138
138
  simulate_parent_margin_order_risk: string;
139
- submit_whitelist: string;
140
139
  register_deposit_address: string;
141
140
  transfer_collateral_from_parent_margin_account: string;
142
141
  transfer_collateral_from_margin_account: string;
package/dist/coverage.js CHANGED
@@ -136,7 +136,6 @@ export const COVERED = {
136
136
  simulate_fees: "simulateFees",
137
137
  simulate_order_risk: "simulateOrderRisk",
138
138
  simulate_parent_margin_order_risk: "simulateParentMarginOrderRisk",
139
- submit_whitelist: "whitelist.submit",
140
139
  register_deposit_address: "sweeper.register",
141
140
  transfer_collateral_from_parent_margin_account: "transferCollateralFromParentMarginAccount",
142
141
  transfer_collateral_from_margin_account: "transferCollateralFromMarginAccount",
package/dist/sdk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ApplicationsAPI, AuthAPI, AuthState, BuildercodesAPI, ComplianceAPI, CopyTradingAPI, DelegatedAgentsAPI, FaucetAPI, FeesAPI, ManagedMarketsAPI, MarginAccountsAPI, MarketAPI, MonacoSDK, Network, PortfolioAPI, PositionsAPI, ProfileAPI, PulseAPI, SDKConfig, SubAccountsAPI, SweeperAPI, TraderCodesAPI, TradingAPI, VaultAPI, WhitelistAPI, WithdrawalsAPI } from "@0xmonaco/types";
1
+ import type { ApplicationsAPI, AuthAPI, AuthState, BuildercodesAPI, ComplianceAPI, CopyTradingAPI, DelegatedAgentsAPI, FaucetAPI, FeesAPI, ManagedMarketsAPI, MarginAccountsAPI, MarketAPI, MonacoSDK, Network, PortfolioAPI, PositionsAPI, ProfileAPI, PulseAPI, SDKConfig, SubAccountsAPI, SweeperAPI, TraderCodesAPI, TradingAPI, VaultAPI, WithdrawalsAPI } from "@0xmonaco/types";
2
2
  import { type Address, type PublicClient, type TransactionReceipt, type WalletClient } from "viem";
3
3
  import { type MonacoWebSocket, OrderbookAPIImpl, TradesAPIImpl } from "./api";
4
4
  export declare class MonacoSDKImpl implements MonacoSDK {
@@ -20,7 +20,6 @@ export declare class MonacoSDKImpl implements MonacoSDK {
20
20
  faucet: FaucetAPI;
21
21
  sweeper: SweeperAPI;
22
22
  managedMarkets: ManagedMarketsAPI;
23
- whitelist: WhitelistAPI;
24
23
  profile: ProfileAPI;
25
24
  pulse: PulseAPI;
26
25
  compliance: ComplianceAPI;
package/dist/sdk.js CHANGED
@@ -21,7 +21,6 @@ import { SweeperAPIImpl } from "./api/sweeper";
21
21
  import { TraderCodesAPIImpl } from "./api/tradercodes";
22
22
  import { TradingAPIImpl } from "./api/trading";
23
23
  import { VaultAPIImpl } from "./api/vault";
24
- import { WhitelistAPIImpl } from "./api/whitelist";
25
24
  import { WithdrawalsAPIImpl } from "./api/withdrawals";
26
25
  import { generateSessionKeypair, privateKeyHex, publicKeyHex } from "./crypto/session";
27
26
  import { APIError, InvalidConfigError, InvalidStateError } from "./errors";
@@ -62,7 +61,6 @@ export class MonacoSDKImpl {
62
61
  faucet;
63
62
  sweeper;
64
63
  managedMarkets;
65
- whitelist;
66
64
  profile;
67
65
  pulse;
68
66
  compliance;
@@ -97,7 +95,6 @@ export class MonacoSDKImpl {
97
95
  this.faucet.setSessionKeypair(credentials);
98
96
  this.sweeper.setSessionKeypair(credentials);
99
97
  this.managedMarkets.setSessionKeypair(credentials);
100
- this.whitelist.setSessionKeypair(credentials);
101
98
  this.pulse.setSessionKeypair(credentials);
102
99
  this.compliance.setSessionKeypair(credentials);
103
100
  this.profile.setSessionKeypair(credentials);
@@ -169,7 +166,6 @@ export class MonacoSDKImpl {
169
166
  this.faucet = configureSigning(new FaucetAPIImpl(apiUrl));
170
167
  this.sweeper = configureSigning(new SweeperAPIImpl(apiUrl));
171
168
  this.managedMarkets = configureSigning(new ManagedMarketsAPIImpl(apiUrl));
172
- this.whitelist = configureSigning(new WhitelistAPIImpl(apiUrl));
173
169
  this.pulse = configureSigning(new PulseAPIImpl(apiUrl));
174
170
  this.compliance = configureSigning(new ComplianceAPIImpl(apiUrl));
175
171
  this.auth = configureSigning(new AuthAPIImpl(this.walletClient, this.chain, apiUrl));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
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.92",
23
- "@0xmonaco/types": "1.0.92",
22
+ "@0xmonaco/contracts": "1.0.93",
23
+ "@0xmonaco/types": "1.0.93",
24
24
  "@noble/curves": "^1.9.1",
25
25
  "@noble/hashes": "^2.4.0",
26
26
  "http-status-codes": "^2.3.0"
@@ -1,13 +0,0 @@
1
- /**
2
- * Retained client for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */
5
- import type { SubmitWhitelistRequest, SubmitWhitelistResponse, WhitelistAPI } from "@0xmonaco/types";
6
- import { BaseAPI } from "../base";
7
- export declare class WhitelistAPIImpl extends BaseAPI implements WhitelistAPI {
8
- /**
9
- * @deprecated Public whitelist applications are closed. The server returns HTTP 403.
10
- * @param body - Legacy applicant details; the request shape is retained for compatibility.
11
- */
12
- submit(body: SubmitWhitelistRequest): Promise<SubmitWhitelistResponse>;
13
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Retained client for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */
5
- import { BaseAPI } from "../base";
6
- import { perpRoutes } from "../perp/routes";
7
- export class WhitelistAPIImpl extends BaseAPI {
8
- /**
9
- * @deprecated Public whitelist applications are closed. The server returns HTTP 403.
10
- * @param body - Legacy applicant details; the request shape is retained for compatibility.
11
- */
12
- async submit(body) {
13
- return await this.makePublicRequest(perpRoutes.whitelist.submit(), {
14
- method: "POST",
15
- body: JSON.stringify(body),
16
- });
17
- }
18
- }
@@ -1 +0,0 @@
1
- export { WhitelistAPIImpl } from "./api";
@@ -1 +0,0 @@
1
- export { WhitelistAPIImpl } from "./api";