@0xmonaco/core 1.1.5 → 1.1.7
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/analytics/api.d.ts +40 -0
- package/dist/api/analytics/api.js +107 -0
- package/dist/api/analytics/index.d.ts +1 -0
- package/dist/api/analytics/index.js +1 -0
- package/dist/api/applications/api.d.ts +5 -5
- package/dist/api/applications/api.js +5 -5
- package/dist/api/buildercodes/api.d.ts +18 -11
- package/dist/api/buildercodes/api.js +31 -15
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/orderbook/api.d.ts +4 -1
- package/dist/api/orderbook/api.js +2 -0
- package/dist/api/perp/routes.d.ts +59 -0
- package/dist/api/perp/routes.js +18 -0
- package/dist/api/trades/api.d.ts +2 -0
- package/dist/api/trades/api.js +2 -0
- package/dist/api/trading/api.d.ts +6 -2
- package/dist/api/trading/api.js +10 -6
- package/dist/api/websocket/local-book.d.ts +112 -0
- package/dist/api/websocket/local-book.js +423 -0
- package/dist/api/websocket/websocket.js +632 -39
- package/dist/coverage.d.ts +16 -0
- package/dist/coverage.js +16 -0
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +4 -0
- package/package.json +3 -3
package/dist/coverage.d.ts
CHANGED
|
@@ -68,6 +68,22 @@ export declare const COVERED: {
|
|
|
68
68
|
get_fee_schedule: string;
|
|
69
69
|
get_pulse: string;
|
|
70
70
|
get_region_status: string;
|
|
71
|
+
get_protocol_totals: string;
|
|
72
|
+
get_protocol_series: string;
|
|
73
|
+
list_market_volumes: string;
|
|
74
|
+
get_treasury_net_fees: string;
|
|
75
|
+
list_builders: string;
|
|
76
|
+
get_builder: string;
|
|
77
|
+
get_builder_totals: string;
|
|
78
|
+
get_builder_series: string;
|
|
79
|
+
list_builder_leaderboard: string;
|
|
80
|
+
list_wallet_leaderboard: string;
|
|
81
|
+
get_wallet_summary: string;
|
|
82
|
+
list_wallet_liquidations: string;
|
|
83
|
+
list_token_custody: string;
|
|
84
|
+
get_token_custody: string;
|
|
85
|
+
list_vault_deposits: string;
|
|
86
|
+
list_vault_withdrawals: string;
|
|
71
87
|
list_managed_market_assignments: string;
|
|
72
88
|
claim_managed_market_lease: string;
|
|
73
89
|
refresh_managed_market_quotes: string;
|
package/dist/coverage.js
CHANGED
|
@@ -68,6 +68,22 @@ export const COVERED = {
|
|
|
68
68
|
get_fee_schedule: "getFeeSchedule",
|
|
69
69
|
get_pulse: "pulse.getPulse",
|
|
70
70
|
get_region_status: "compliance.getRegionStatus",
|
|
71
|
+
get_protocol_totals: "analytics.getProtocolTotals",
|
|
72
|
+
get_protocol_series: "analytics.getProtocolSeries",
|
|
73
|
+
list_market_volumes: "analytics.listMarketVolumes",
|
|
74
|
+
get_treasury_net_fees: "analytics.getTreasuryNetFees",
|
|
75
|
+
list_builders: "analytics.listBuilders",
|
|
76
|
+
get_builder: "analytics.getBuilder",
|
|
77
|
+
get_builder_totals: "analytics.getBuilderTotals",
|
|
78
|
+
get_builder_series: "analytics.getBuilderSeries",
|
|
79
|
+
list_builder_leaderboard: "analytics.listBuilderLeaderboard",
|
|
80
|
+
list_wallet_leaderboard: "analytics.listWalletLeaderboard",
|
|
81
|
+
get_wallet_summary: "analytics.getWalletSummary",
|
|
82
|
+
list_wallet_liquidations: "analytics.listWalletLiquidations",
|
|
83
|
+
list_token_custody: "analytics.listTokenCustody",
|
|
84
|
+
get_token_custody: "analytics.getTokenCustody",
|
|
85
|
+
list_vault_deposits: "analytics.listVaultDeposits",
|
|
86
|
+
list_vault_withdrawals: "analytics.listVaultWithdrawals",
|
|
71
87
|
list_managed_market_assignments: "managedMarkets.listAssignments",
|
|
72
88
|
claim_managed_market_lease: "managedMarkets.claimLease",
|
|
73
89
|
refresh_managed_market_quotes: "managedMarkets.refreshQuotes",
|
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, RfqAPI, SDKConfig, SubAccountsAPI, SweeperAPI, TraderCodesAPI, TradingAPI, VaultAPI, WithdrawalsAPI } from "@0xmonaco/types";
|
|
1
|
+
import type { AnalyticsAPI, ApplicationsAPI, AuthAPI, AuthState, BuildercodesAPI, ComplianceAPI, CopyTradingAPI, DelegatedAgentsAPI, FaucetAPI, FeesAPI, ManagedMarketsAPI, MarginAccountsAPI, MarketAPI, MonacoSDK, Network, PortfolioAPI, PositionsAPI, ProfileAPI, PulseAPI, RfqAPI, 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 {
|
|
@@ -24,6 +24,7 @@ export declare class MonacoSDKImpl implements MonacoSDK {
|
|
|
24
24
|
profile: ProfileAPI;
|
|
25
25
|
pulse: PulseAPI;
|
|
26
26
|
compliance: ComplianceAPI;
|
|
27
|
+
analytics: AnalyticsAPI;
|
|
27
28
|
orderbook: OrderbookAPIImpl;
|
|
28
29
|
trades: TradesAPIImpl;
|
|
29
30
|
ws: MonacoWebSocket;
|
package/dist/sdk.js
CHANGED
|
@@ -2,6 +2,7 @@ import { StatusCodes } from "http-status-codes";
|
|
|
2
2
|
import { createPublicClient, http } from "viem";
|
|
3
3
|
import { sei, seiTestnet } from "viem/chains";
|
|
4
4
|
import { ApplicationsAPIImpl, createMonacoWebSocket, OrderbookAPIImpl, TradesAPIImpl } from "./api";
|
|
5
|
+
import { AnalyticsAPIImpl } from "./api/analytics";
|
|
5
6
|
import { AuthAPIImpl } from "./api/auth";
|
|
6
7
|
import { BuildercodesAPIImpl } from "./api/buildercodes";
|
|
7
8
|
import { ComplianceAPIImpl } from "./api/compliance";
|
|
@@ -66,6 +67,7 @@ export class MonacoSDKImpl {
|
|
|
66
67
|
profile;
|
|
67
68
|
pulse;
|
|
68
69
|
compliance;
|
|
70
|
+
analytics;
|
|
69
71
|
orderbook;
|
|
70
72
|
trades;
|
|
71
73
|
ws;
|
|
@@ -100,6 +102,7 @@ export class MonacoSDKImpl {
|
|
|
100
102
|
this.managedMarkets.setSessionKeypair(credentials);
|
|
101
103
|
this.pulse.setSessionKeypair(credentials);
|
|
102
104
|
this.compliance.setSessionKeypair(credentials);
|
|
105
|
+
this.analytics.setSessionKeypair(credentials);
|
|
103
106
|
this.profile.setSessionKeypair(credentials);
|
|
104
107
|
this.orderbook.setSessionKeypair(credentials);
|
|
105
108
|
this.trades.setSessionKeypair(credentials);
|
|
@@ -171,6 +174,7 @@ export class MonacoSDKImpl {
|
|
|
171
174
|
this.managedMarkets = configureSigning(new ManagedMarketsAPIImpl(apiUrl));
|
|
172
175
|
this.pulse = configureSigning(new PulseAPIImpl(apiUrl));
|
|
173
176
|
this.compliance = configureSigning(new ComplianceAPIImpl(apiUrl));
|
|
177
|
+
this.analytics = configureSigning(new AnalyticsAPIImpl(apiUrl));
|
|
174
178
|
this.auth = configureSigning(new AuthAPIImpl(this.walletClient, this.chain, apiUrl));
|
|
175
179
|
this.delegatedAgents = configureSigning(new DelegatedAgentsAPIImpl(apiUrl));
|
|
176
180
|
this.fees = configureSigning(new FeesAPIImpl(apiUrl));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
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.1.
|
|
23
|
-
"@0xmonaco/types": "1.1.
|
|
22
|
+
"@0xmonaco/contracts": "1.1.7",
|
|
23
|
+
"@0xmonaco/types": "1.1.7",
|
|
24
24
|
"@noble/curves": "^2.4.0",
|
|
25
25
|
"@noble/hashes": "^2.4.0",
|
|
26
26
|
"http-status-codes": "^2.3.0"
|