ault-sdk-ts 0.11.0 → 0.12.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/README.md +104 -23
- package/dist/client.d.ts +2 -0
- package/dist/core/address.d.ts +1 -1
- package/dist/core/clob-gas.d.ts +4 -0
- package/dist/core/clob-msgs.d.ts +14 -6
- package/dist/core/clob-responses.d.ts +4 -1
- package/dist/core/conditional-msgs.d.ts +98 -0
- package/dist/core/manifest-types.d.ts +22 -2
- package/dist/core/margin-account.d.ts +8 -0
- package/dist/core/network.d.ts +21 -11
- package/dist/core/perpetual-msgs.d.ts +8 -0
- package/dist/core/vault-gas.d.ts +3 -1
- package/dist/core/vault-msgs.d.ts +46 -28
- package/dist/eip712/msg.generated.d.ts +19 -8
- package/dist/eip712/types.d.ts +5 -0
- package/dist/high-level/types.d.ts +172 -32
- package/dist/high-level-client.d.ts +1 -1
- package/dist/index.cjs +22007 -18578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21855 -18453
- package/dist/index.js.map +1 -1
- package/dist/proto/gen/ault/authority/v1/tx.d.ts +12 -0
- package/dist/proto/gen/ault/clob/v1/conditional.d.ts +60 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +13 -0
- package/dist/proto/gen/ault/clob/v1/group.d.ts +71 -0
- package/dist/proto/gen/ault/clob/v1/params.d.ts +5 -0
- package/dist/proto/gen/ault/clob/v1/query.d.ts +16 -0
- package/dist/proto/gen/ault/clob/v1/twap.d.ts +8 -4
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +90 -1
- package/dist/proto/gen/ault/lending/v1/params.d.ts +2 -0
- package/dist/proto/gen/ault/lending/v1/tx.d.ts +1 -0
- package/dist/proto/gen/ault/margin/v1/genesis.d.ts +10 -48
- package/dist/proto/gen/ault/margin/v1/margin.d.ts +14 -64
- package/dist/proto/gen/ault/margin/v1/query.d.ts +4 -46
- package/dist/proto/gen/ault/margin/v1/tx.d.ts +11 -29
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +4 -2
- package/dist/proto/gen/ault/oracle/v1/oracle.d.ts +5 -7
- package/dist/proto/gen/ault/oracle/v1/tx.d.ts +1 -1
- package/dist/proto/gen/ault/perpetual/v1/params.d.ts +6 -0
- package/dist/proto/gen/ault/perpetual/v1/perpetual.d.ts +10 -7
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +2 -0
- package/dist/proto/gen/ault/spot/v1/params.d.ts +25 -0
- package/dist/proto/gen/ault/spot/v1/query.d.ts +29 -0
- package/dist/proto/gen/ault/spot/v1/tx.d.ts +30 -0
- package/dist/proto/gen/ault/vault/v1/genesis.d.ts +22 -12
- package/dist/proto/gen/ault/vault/v1/query.d.ts +4 -18
- package/dist/proto/gen/ault/vault/v1/tx.d.ts +25 -5
- package/dist/proto/gen/ault/vault/v1/vault.d.ts +29 -57
- package/dist/rest/clob.d.ts +35 -3
- package/dist/rest/dex-types.generated.d.ts +548 -81
- package/dist/rest/dex.d.ts +3 -1
- package/dist/rest/dex.generated.d.ts +670 -123
- package/dist/rest/margin.d.ts +1 -5
- package/dist/rest/spot.d.ts +11 -0
- package/package.json +1 -1
package/dist/rest/margin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RestContext } from "./context";
|
|
2
2
|
import { MarketId } from "../utils/opaque-id";
|
|
3
3
|
import type { PaginationParams } from "./types";
|
|
4
|
-
import { QueryEnabledMarketsResponse, QueryMarginAccountResponse, QueryMarginOrdersResponse, QueryParamsResponse
|
|
4
|
+
import { QueryEnabledMarketsResponse, QueryMarginAccountResponse, QueryMarginOrdersResponse, QueryParamsResponse } from "../proto/gen/ault/margin/v1/query";
|
|
5
5
|
/** A market id as raw bytes, a `MarketId`, or a base64 string (grpc-gateway form). */
|
|
6
6
|
export type MarginQueryMarketId = Uint8Array | MarketId | string;
|
|
7
7
|
/**
|
|
@@ -25,9 +25,5 @@ export interface MarginApi {
|
|
|
25
25
|
getMarginOrders: (account: string, params?: {
|
|
26
26
|
pagination?: PaginationParams;
|
|
27
27
|
}) => Promise<QueryMarginOrdersResponse>;
|
|
28
|
-
/** Fill proceeds waiting to be credited back; empty in normal operation. */
|
|
29
|
-
getPendingSettlements: (params?: {
|
|
30
|
-
pagination?: PaginationParams;
|
|
31
|
-
}) => Promise<QueryPendingSettlementsResponse>;
|
|
32
28
|
}
|
|
33
29
|
export declare function createMarginApi(context: RestContext): MarginApi;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RestContext } from "./context";
|
|
2
|
+
import { QueryParamsResponse } from "../proto/gen/ault/spot/v1/query";
|
|
3
|
+
/**
|
|
4
|
+
* Chain-side `x/spot` queries (v3.0.0-rc.3). `params.minOrderQuoteAmount` is
|
|
5
|
+
* the smallest spot order, in raw quote units; a spot TWAP needs ten times it.
|
|
6
|
+
* It replaces the deprecated x/clob param of the same name.
|
|
7
|
+
*/
|
|
8
|
+
export interface SpotApi {
|
|
9
|
+
getParams: () => Promise<QueryParamsResponse>;
|
|
10
|
+
}
|
|
11
|
+
export declare function createSpotApi(context: RestContext): SpotApi;
|