@n1xyz/nord-ts 0.7.0 → 0.7.1
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/actions.d.ts +1 -2
- package/dist/client/NordAdmin.d.ts +36 -0
- package/dist/gen/nord_pb.d.ts +898 -2
- package/dist/gen/openapi.d.ts +660 -326
- package/dist/index.browser.js +18611 -12822
- package/dist/index.common.js +14805 -8646
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/actions.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Decimal from "decimal.js";
|
|
2
2
|
import * as proto from "./gen/nord_pb";
|
|
3
|
-
import * as core from "./gen/core_pb";
|
|
4
3
|
import { paths } from "./gen/openapi";
|
|
5
4
|
import { Client } from "openapi-fetch";
|
|
6
5
|
import { type Duration, FillMode, PlacementRequest, Side, TriggerKind } from "./types";
|
|
@@ -15,7 +14,7 @@ export declare function expectReceiptKind<K extends ReceiptKind["case"]>(receipt
|
|
|
15
14
|
kind: ExtractReceiptKind<K>;
|
|
16
15
|
};
|
|
17
16
|
export declare function buildLimits(marketPriceDecimals: number, marketSizeDecimals: number, limitPrice?: Decimal.Value, limitBaseSize?: Decimal.Value, limitQuoteSize?: Decimal.Value): proto.OrderLimit | undefined;
|
|
18
|
-
export declare function toProtoU128(value: BigIntValue):
|
|
17
|
+
export declare function toProtoU128(value: BigIntValue): proto.U128;
|
|
19
18
|
export declare function createAction(currentTimestamp: bigint, nonce: number, kind: proto.Action["kind"]): proto.Action;
|
|
20
19
|
export declare function sendAction(client: Client<paths>, makeSignedMessage: (message: Uint8Array) => Promise<Uint8Array>, action: proto.Action): Promise<proto.Receipt>;
|
|
21
20
|
export declare function prepareAction(action: proto.Action, makeSignedMessage: (message: Uint8Array) => Promise<Uint8Array>): Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -113,6 +113,42 @@ export declare class NordAdmin {
|
|
|
113
113
|
}>): Promise<{
|
|
114
114
|
actionId: bigint;
|
|
115
115
|
} & proto.Receipt_InsertMarketResult>;
|
|
116
|
+
createRfqMarket({ sizeDecimals, priceDecimals, imfBps, cmfBps, mmfBps, viewSymbol, oracleSymbol, }: Readonly<{
|
|
117
|
+
sizeDecimals: number;
|
|
118
|
+
priceDecimals: number;
|
|
119
|
+
imfBps: number;
|
|
120
|
+
cmfBps: number;
|
|
121
|
+
mmfBps: number;
|
|
122
|
+
viewSymbol: string;
|
|
123
|
+
oracleSymbol: string;
|
|
124
|
+
}>): Promise<{
|
|
125
|
+
actionId: bigint;
|
|
126
|
+
} & proto.Receipt_InsertMarketResult>;
|
|
127
|
+
setMarketModeClobTradingOnly({ marketId, }: Readonly<{
|
|
128
|
+
marketId: number;
|
|
129
|
+
}>): Promise<{
|
|
130
|
+
actionId: bigint;
|
|
131
|
+
} & proto.Receipt_MarketModeUpdated>;
|
|
132
|
+
setMarketModeRfq({ marketId, }: Readonly<{
|
|
133
|
+
marketId: number;
|
|
134
|
+
}>): Promise<{
|
|
135
|
+
actionId: bigint;
|
|
136
|
+
} & proto.Receipt_MarketModeUpdated>;
|
|
137
|
+
setMarketModeClobPostOnly({ marketId, }: Readonly<{
|
|
138
|
+
marketId: number;
|
|
139
|
+
}>): Promise<{
|
|
140
|
+
actionId: bigint;
|
|
141
|
+
} & proto.Receipt_MarketModeUpdated>;
|
|
142
|
+
setMarketModeClob({ marketId, }: Readonly<{
|
|
143
|
+
marketId: number;
|
|
144
|
+
}>): Promise<{
|
|
145
|
+
actionId: bigint;
|
|
146
|
+
} & proto.Receipt_MarketModeUpdated>;
|
|
147
|
+
setRfqMakers({ accountIds, }: Readonly<{
|
|
148
|
+
accountIds: readonly number[];
|
|
149
|
+
}>): Promise<{
|
|
150
|
+
actionId: bigint;
|
|
151
|
+
} & proto.RfqMakersSet>;
|
|
116
152
|
/**
|
|
117
153
|
* Update the Pyth guardian set used for verifying Wormhole messages.
|
|
118
154
|
*
|