@n1xyz/nord-ts 0.3.2 → 0.3.4
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.js +184 -0
- package/dist/client/Nord.d.ts +9 -15
- package/dist/client/Nord.js +759 -0
- package/dist/client/NordAdmin.js +362 -0
- package/dist/client/NordUser.d.ts +3 -1
- package/dist/client/NordUser.js +752 -0
- package/dist/const.js +27 -0
- package/dist/error.js +51 -0
- package/dist/gen/nord_pb.d.ts +132 -114
- package/dist/gen/nord_pb.js +1068 -0
- package/dist/gen/openapi.d.ts +345 -72
- package/dist/gen/openapi.js +5 -0
- package/dist/index.browser.js +61342 -80207
- package/dist/index.common.js +59722 -87597
- package/dist/index.js +10 -0
- package/dist/nord/api/actions.d.ts +128 -0
- package/dist/nord/api/actions.js +396 -0
- package/dist/nord/api/core.d.ts +16 -0
- package/dist/nord/api/core.js +81 -0
- package/dist/nord/api/metrics.d.ts +67 -0
- package/dist/nord/api/metrics.js +229 -0
- package/dist/nord/api/triggers.d.ts +7 -0
- package/dist/nord/api/triggers.js +38 -0
- package/dist/nord/client/Nord.d.ts +387 -0
- package/dist/nord/client/Nord.js +747 -0
- package/dist/nord/client/NordAdmin.d.ts +226 -0
- package/dist/nord/client/NordAdmin.js +410 -0
- package/dist/nord/client/NordClient.d.ts +16 -0
- package/dist/nord/client/NordClient.js +28 -0
- package/dist/nord/client/NordUser.d.ts +379 -0
- package/dist/nord/client/NordUser.js +787 -0
- package/dist/nord/index.d.ts +8 -0
- package/dist/nord/index.js +34 -0
- package/dist/nord/models/Subscriber.d.ts +37 -0
- package/dist/nord/models/Subscriber.js +25 -0
- package/dist/nord/utils/NordError.d.ts +35 -0
- package/dist/nord/utils/NordError.js +49 -0
- package/dist/types.d.ts +15 -6
- package/dist/types.js +92 -0
- package/dist/utils.js +193 -0
- package/dist/websocket/NordWebSocketClient.d.ts +1 -0
- package/dist/websocket/NordWebSocketClient.js +242 -0
- package/dist/websocket/Subscriber.d.ts +7 -1
- package/dist/websocket/Subscriber.js +24 -0
- package/dist/websocket/events.d.ts +2 -1
- package/dist/websocket/events.js +1 -0
- package/dist/websocket/index.d.ts +1 -1
- package/dist/websocket/index.js +80 -0
- package/package.json +2 -2
package/dist/const.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const WEBSERVER_PORT = "80";
|
|
2
|
+
export const DEBUG_KEYS = [
|
|
3
|
+
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
|
|
4
|
+
"0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d",
|
|
5
|
+
"0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a",
|
|
6
|
+
"0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6",
|
|
7
|
+
"0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a",
|
|
8
|
+
"0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba",
|
|
9
|
+
"0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e",
|
|
10
|
+
"0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356",
|
|
11
|
+
"0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97",
|
|
12
|
+
"0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6",
|
|
13
|
+
];
|
|
14
|
+
export const DEV_URL = "http://localhost";
|
|
15
|
+
export const WEBSERVER_DEV_URL = DEV_URL + ":" + WEBSERVER_PORT;
|
|
16
|
+
export const DEV_TOKEN_INFOS = [
|
|
17
|
+
{
|
|
18
|
+
address: "0x9a9f2ccfde556a7e9ff0848998aa4a0cfd8863ae",
|
|
19
|
+
precision: 6,
|
|
20
|
+
tokenId: 0,
|
|
21
|
+
name: "usdc",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
export const DEFAULT_FUNDING_AMOUNTS = {
|
|
25
|
+
SOL: ["0.2", 0],
|
|
26
|
+
"0x9a9f2ccfde556a7e9ff0848998aa4a0cfd8863ae": ["10000", 6],
|
|
27
|
+
};
|
package/dist/error.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom error class for Nord-related errors
|
|
3
|
+
*/
|
|
4
|
+
export class NordError extends Error {
|
|
5
|
+
/** The original error that caused this error */
|
|
6
|
+
cause;
|
|
7
|
+
/** HTTP status code (if applicable) */
|
|
8
|
+
statusCode;
|
|
9
|
+
/** Additional error details */
|
|
10
|
+
details;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new NordError
|
|
13
|
+
*
|
|
14
|
+
* @param message - Error message
|
|
15
|
+
* @param options - Error options
|
|
16
|
+
*/
|
|
17
|
+
constructor(message, options = {}) {
|
|
18
|
+
super(message);
|
|
19
|
+
this.name = "NordError";
|
|
20
|
+
this.cause = options.cause;
|
|
21
|
+
this.statusCode = options.statusCode;
|
|
22
|
+
this.details = options.details;
|
|
23
|
+
// Capture stack trace
|
|
24
|
+
if (Error.captureStackTrace) {
|
|
25
|
+
Error.captureStackTrace(this, NordError);
|
|
26
|
+
}
|
|
27
|
+
// Handle nested errors
|
|
28
|
+
if (this.cause instanceof Error) {
|
|
29
|
+
this.stack =
|
|
30
|
+
this.stack + "\nCaused by: " + (this.cause.stack || this.cause.message);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Convert the error to a string representation
|
|
35
|
+
*
|
|
36
|
+
* @returns String representation of the error
|
|
37
|
+
*/
|
|
38
|
+
toString() {
|
|
39
|
+
let result = `${this.name}: ${this.message}`;
|
|
40
|
+
if (this.statusCode) {
|
|
41
|
+
result += ` \nstatus: ${this.statusCode}`;
|
|
42
|
+
}
|
|
43
|
+
if (this.details && Object.keys(this.details).length > 0) {
|
|
44
|
+
result += ` \ndetails: ${JSON.stringify(this.details, null, 2)}`;
|
|
45
|
+
}
|
|
46
|
+
if (this.cause) {
|
|
47
|
+
result += ` \ncause: ${this.cause.toString()}`;
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
}
|
package/dist/gen/nord_pb.d.ts
CHANGED
|
@@ -424,6 +424,93 @@ export declare const TriggerKeySchema: GenMessage<TriggerKey, {
|
|
|
424
424
|
jsonType: TriggerKeyJson;
|
|
425
425
|
}>;
|
|
426
426
|
/**
|
|
427
|
+
* @generated from message nord.AtomicSubactionKind
|
|
428
|
+
*/
|
|
429
|
+
export type AtomicSubactionKind = Message<"nord.AtomicSubactionKind"> & {
|
|
430
|
+
/**
|
|
431
|
+
* @generated from oneof nord.AtomicSubactionKind.inner
|
|
432
|
+
*/
|
|
433
|
+
inner: {
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
436
|
+
*/
|
|
437
|
+
value: TradeOrPlace;
|
|
438
|
+
case: "tradeOrPlace";
|
|
439
|
+
} | {
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
442
|
+
*/
|
|
443
|
+
value: CancelOrder;
|
|
444
|
+
case: "cancelOrder";
|
|
445
|
+
} | {
|
|
446
|
+
case: undefined;
|
|
447
|
+
value?: undefined;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* @generated from message nord.AtomicSubactionKind
|
|
452
|
+
*/
|
|
453
|
+
export type AtomicSubactionKindJson = {
|
|
454
|
+
/**
|
|
455
|
+
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
456
|
+
*/
|
|
457
|
+
tradeOrPlace?: TradeOrPlaceJson;
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
460
|
+
*/
|
|
461
|
+
cancelOrder?: CancelOrderJson;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Describes the message nord.AtomicSubactionKind.
|
|
465
|
+
* Use `create(AtomicSubactionKindSchema)` to create a new message.
|
|
466
|
+
*/
|
|
467
|
+
export declare const AtomicSubactionKindSchema: GenMessage<AtomicSubactionKind, {
|
|
468
|
+
jsonType: AtomicSubactionKindJson;
|
|
469
|
+
}>;
|
|
470
|
+
/**
|
|
471
|
+
* @generated from message nord.Atomic
|
|
472
|
+
*/
|
|
473
|
+
export type Atomic = Message<"nord.Atomic"> & {
|
|
474
|
+
/**
|
|
475
|
+
* @generated from field: uint64 session_id = 1;
|
|
476
|
+
*/
|
|
477
|
+
sessionId: bigint;
|
|
478
|
+
/**
|
|
479
|
+
* @generated from field: optional uint32 account_id = 2;
|
|
480
|
+
*/
|
|
481
|
+
accountId?: number;
|
|
482
|
+
/**
|
|
483
|
+
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
484
|
+
*/
|
|
485
|
+
actions: AtomicSubactionKind[];
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* @generated from message nord.Atomic
|
|
489
|
+
*/
|
|
490
|
+
export type AtomicJson = {
|
|
491
|
+
/**
|
|
492
|
+
* @generated from field: uint64 session_id = 1;
|
|
493
|
+
*/
|
|
494
|
+
sessionId?: string;
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: optional uint32 account_id = 2;
|
|
497
|
+
*/
|
|
498
|
+
accountId?: number;
|
|
499
|
+
/**
|
|
500
|
+
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
501
|
+
*/
|
|
502
|
+
actions?: AtomicSubactionKindJson[];
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Describes the message nord.Atomic.
|
|
506
|
+
* Use `create(AtomicSchema)` to create a new message.
|
|
507
|
+
*/
|
|
508
|
+
export declare const AtomicSchema: GenMessage<Atomic, {
|
|
509
|
+
jsonType: AtomicJson;
|
|
510
|
+
}>;
|
|
511
|
+
/**
|
|
512
|
+
* An action executed by the engine. This is the main message that is sent to the server.
|
|
513
|
+
*
|
|
427
514
|
* @generated from message nord.Action
|
|
428
515
|
*/
|
|
429
516
|
export type Action = Message<"nord.Action"> & {
|
|
@@ -605,6 +692,8 @@ export type Action = Message<"nord.Action"> & {
|
|
|
605
692
|
};
|
|
606
693
|
};
|
|
607
694
|
/**
|
|
695
|
+
* An action executed by the engine. This is the main message that is sent to the server.
|
|
696
|
+
*
|
|
608
697
|
* @generated from message nord.Action
|
|
609
698
|
*/
|
|
610
699
|
export type ActionJson = {
|
|
@@ -740,19 +829,20 @@ export declare const ActionSchema: GenMessage<Action, {
|
|
|
740
829
|
*/
|
|
741
830
|
export type Action_CreateSession = Message<"nord.Action.CreateSession"> & {
|
|
742
831
|
/**
|
|
743
|
-
* User's
|
|
744
|
-
* user must be previously registered with that key
|
|
832
|
+
* User's Ed25519 registration key, i.e. the wallet address. Must be 32 bytes.
|
|
745
833
|
*
|
|
746
834
|
* @generated from field: bytes user_pubkey = 1;
|
|
747
835
|
*/
|
|
748
836
|
userPubkey: Uint8Array;
|
|
749
837
|
/**
|
|
750
|
-
*
|
|
838
|
+
* The session's public key. Must be 32 bytes.
|
|
751
839
|
*
|
|
752
|
-
* @generated from field: bytes
|
|
840
|
+
* @generated from field: bytes session_pubkey = 2;
|
|
753
841
|
*/
|
|
754
|
-
|
|
842
|
+
sessionPubkey: Uint8Array;
|
|
755
843
|
/**
|
|
844
|
+
* Expiry time of the session, in unix timestamp. Relative to the engine's time.
|
|
845
|
+
*
|
|
756
846
|
* @generated from field: int64 expiry_timestamp = 3;
|
|
757
847
|
*/
|
|
758
848
|
expiryTimestamp: bigint;
|
|
@@ -762,19 +852,20 @@ export type Action_CreateSession = Message<"nord.Action.CreateSession"> & {
|
|
|
762
852
|
*/
|
|
763
853
|
export type Action_CreateSessionJson = {
|
|
764
854
|
/**
|
|
765
|
-
* User's
|
|
766
|
-
* user must be previously registered with that key
|
|
855
|
+
* User's Ed25519 registration key, i.e. the wallet address. Must be 32 bytes.
|
|
767
856
|
*
|
|
768
857
|
* @generated from field: bytes user_pubkey = 1;
|
|
769
858
|
*/
|
|
770
859
|
userPubkey?: string;
|
|
771
860
|
/**
|
|
772
|
-
*
|
|
861
|
+
* The session's public key. Must be 32 bytes.
|
|
773
862
|
*
|
|
774
|
-
* @generated from field: bytes
|
|
863
|
+
* @generated from field: bytes session_pubkey = 2;
|
|
775
864
|
*/
|
|
776
|
-
|
|
865
|
+
sessionPubkey?: string;
|
|
777
866
|
/**
|
|
867
|
+
* Expiry time of the session, in unix timestamp. Relative to the engine's time.
|
|
868
|
+
*
|
|
778
869
|
* @generated from field: int64 expiry_timestamp = 3;
|
|
779
870
|
*/
|
|
780
871
|
expiryTimestamp?: string;
|
|
@@ -1377,6 +1468,10 @@ export type Action_Withdraw = Message<"nord.Action.Withdraw"> & {
|
|
|
1377
1468
|
* @generated from field: uint64 amount = 3;
|
|
1378
1469
|
*/
|
|
1379
1470
|
amount: bigint;
|
|
1471
|
+
/**
|
|
1472
|
+
* @generated from field: optional bytes dest_pubkey = 4;
|
|
1473
|
+
*/
|
|
1474
|
+
destPubkey?: Uint8Array;
|
|
1380
1475
|
};
|
|
1381
1476
|
/**
|
|
1382
1477
|
* todo(n1): when gate will be here, remove or replace internals with message
|
|
@@ -1398,6 +1493,10 @@ export type Action_WithdrawJson = {
|
|
|
1398
1493
|
* @generated from field: uint64 amount = 3;
|
|
1399
1494
|
*/
|
|
1400
1495
|
amount?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* @generated from field: optional bytes dest_pubkey = 4;
|
|
1498
|
+
*/
|
|
1499
|
+
destPubkey?: string;
|
|
1401
1500
|
};
|
|
1402
1501
|
/**
|
|
1403
1502
|
* Describes the message nord.Action.Withdraw.
|
|
@@ -2144,7 +2243,6 @@ export type Action_TakePosition = Message<"nord.Action.TakePosition"> & {
|
|
|
2144
2243
|
* If set, then it is take action.
|
|
2145
2244
|
* If price not so good as in field, take will fail.
|
|
2146
2245
|
*
|
|
2147
|
-
*
|
|
2148
2246
|
* If not set,
|
|
2149
2247
|
* will do fill-or-kill order as per liquidation trade rule.
|
|
2150
2248
|
*
|
|
@@ -2181,7 +2279,6 @@ export type Action_TakePositionJson = {
|
|
|
2181
2279
|
* If set, then it is take action.
|
|
2182
2280
|
* If price not so good as in field, take will fail.
|
|
2183
2281
|
*
|
|
2184
|
-
*
|
|
2185
2282
|
* If not set,
|
|
2186
2283
|
* will do fill-or-kill order as per liquidation trade rule.
|
|
2187
2284
|
*
|
|
@@ -2197,91 +2294,9 @@ export declare const Action_TakePositionSchema: GenMessage<Action_TakePosition,
|
|
|
2197
2294
|
jsonType: Action_TakePositionJson;
|
|
2198
2295
|
}>;
|
|
2199
2296
|
/**
|
|
2200
|
-
*
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
/**
|
|
2204
|
-
* @generated from oneof nord.AtomicSubactionKind.inner
|
|
2205
|
-
*/
|
|
2206
|
-
inner: {
|
|
2207
|
-
/**
|
|
2208
|
-
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
2209
|
-
*/
|
|
2210
|
-
value: TradeOrPlace;
|
|
2211
|
-
case: "tradeOrPlace";
|
|
2212
|
-
} | {
|
|
2213
|
-
/**
|
|
2214
|
-
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
2215
|
-
*/
|
|
2216
|
-
value: CancelOrder;
|
|
2217
|
-
case: "cancelOrder";
|
|
2218
|
-
} | {
|
|
2219
|
-
case: undefined;
|
|
2220
|
-
value?: undefined;
|
|
2221
|
-
};
|
|
2222
|
-
};
|
|
2223
|
-
/**
|
|
2224
|
-
* @generated from message nord.AtomicSubactionKind
|
|
2225
|
-
*/
|
|
2226
|
-
export type AtomicSubactionKindJson = {
|
|
2227
|
-
/**
|
|
2228
|
-
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
2229
|
-
*/
|
|
2230
|
-
tradeOrPlace?: TradeOrPlaceJson;
|
|
2231
|
-
/**
|
|
2232
|
-
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
2233
|
-
*/
|
|
2234
|
-
cancelOrder?: CancelOrderJson;
|
|
2235
|
-
};
|
|
2236
|
-
/**
|
|
2237
|
-
* Describes the message nord.AtomicSubactionKind.
|
|
2238
|
-
* Use `create(AtomicSubactionKindSchema)` to create a new message.
|
|
2239
|
-
*/
|
|
2240
|
-
export declare const AtomicSubactionKindSchema: GenMessage<AtomicSubactionKind, {
|
|
2241
|
-
jsonType: AtomicSubactionKindJson;
|
|
2242
|
-
}>;
|
|
2243
|
-
/**
|
|
2244
|
-
* @generated from message nord.Atomic
|
|
2245
|
-
*/
|
|
2246
|
-
export type Atomic = Message<"nord.Atomic"> & {
|
|
2247
|
-
/**
|
|
2248
|
-
* @generated from field: uint64 session_id = 1;
|
|
2249
|
-
*/
|
|
2250
|
-
sessionId: bigint;
|
|
2251
|
-
/**
|
|
2252
|
-
* @generated from field: optional uint32 account_id = 2;
|
|
2253
|
-
*/
|
|
2254
|
-
accountId?: number;
|
|
2255
|
-
/**
|
|
2256
|
-
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
2257
|
-
*/
|
|
2258
|
-
actions: AtomicSubactionKind[];
|
|
2259
|
-
};
|
|
2260
|
-
/**
|
|
2261
|
-
* @generated from message nord.Atomic
|
|
2262
|
-
*/
|
|
2263
|
-
export type AtomicJson = {
|
|
2264
|
-
/**
|
|
2265
|
-
* @generated from field: uint64 session_id = 1;
|
|
2266
|
-
*/
|
|
2267
|
-
sessionId?: string;
|
|
2268
|
-
/**
|
|
2269
|
-
* @generated from field: optional uint32 account_id = 2;
|
|
2270
|
-
*/
|
|
2271
|
-
accountId?: number;
|
|
2272
|
-
/**
|
|
2273
|
-
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
2274
|
-
*/
|
|
2275
|
-
actions?: AtomicSubactionKindJson[];
|
|
2276
|
-
};
|
|
2277
|
-
/**
|
|
2278
|
-
* Describes the message nord.Atomic.
|
|
2279
|
-
* Use `create(AtomicSchema)` to create a new message.
|
|
2280
|
-
*/
|
|
2281
|
-
export declare const AtomicSchema: GenMessage<Atomic, {
|
|
2282
|
-
jsonType: AtomicJson;
|
|
2283
|
-
}>;
|
|
2284
|
-
/**
|
|
2297
|
+
* The response of an action from the engine. Most actions have a corresponding receipt kind,
|
|
2298
|
+
* which you can deduce from the naming.
|
|
2299
|
+
*
|
|
2285
2300
|
* @generated from message nord.Receipt
|
|
2286
2301
|
*/
|
|
2287
2302
|
export type Receipt = Message<"nord.Receipt"> & {
|
|
@@ -2452,6 +2467,9 @@ export type Receipt = Message<"nord.Receipt"> & {
|
|
|
2452
2467
|
};
|
|
2453
2468
|
};
|
|
2454
2469
|
/**
|
|
2470
|
+
* The response of an action from the engine. Most actions have a corresponding receipt kind,
|
|
2471
|
+
* which you can deduce from the naming.
|
|
2472
|
+
*
|
|
2455
2473
|
* @generated from message nord.Receipt
|
|
2456
2474
|
*/
|
|
2457
2475
|
export type ReceiptJson = {
|
|
@@ -3793,6 +3811,23 @@ export type MarketTypeJson = "SPOT" | "PERPETUALS";
|
|
|
3793
3811
|
* Describes the enum nord.MarketType.
|
|
3794
3812
|
*/
|
|
3795
3813
|
export declare const MarketTypeSchema: GenEnum<MarketType, MarketTypeJson>;
|
|
3814
|
+
/**
|
|
3815
|
+
* @generated from enum nord.SpecialAccount
|
|
3816
|
+
*/
|
|
3817
|
+
export declare enum SpecialAccount {
|
|
3818
|
+
/**
|
|
3819
|
+
* @generated from enum value: FeeVault = 0;
|
|
3820
|
+
*/
|
|
3821
|
+
FeeVault = 0
|
|
3822
|
+
}
|
|
3823
|
+
/**
|
|
3824
|
+
* @generated from enum nord.SpecialAccount
|
|
3825
|
+
*/
|
|
3826
|
+
export type SpecialAccountJson = "FeeVault";
|
|
3827
|
+
/**
|
|
3828
|
+
* Describes the enum nord.SpecialAccount.
|
|
3829
|
+
*/
|
|
3830
|
+
export declare const SpecialAccountSchema: GenEnum<SpecialAccount, SpecialAccountJson>;
|
|
3796
3831
|
/**
|
|
3797
3832
|
* Error codes returned by the engine.
|
|
3798
3833
|
* Some errors has 5bit prefix about error source and 3 bit suffix specifier.
|
|
@@ -4428,20 +4463,3 @@ export type ErrorJson = "DUPLICATE" | "DECODE_FAILURE" | "INVALID_SIGNATURE" | "
|
|
|
4428
4463
|
* Describes the enum nord.Error.
|
|
4429
4464
|
*/
|
|
4430
4465
|
export declare const ErrorSchema: GenEnum<Error, ErrorJson>;
|
|
4431
|
-
/**
|
|
4432
|
-
* @generated from enum nord.SpecialAccount
|
|
4433
|
-
*/
|
|
4434
|
-
export declare enum SpecialAccount {
|
|
4435
|
-
/**
|
|
4436
|
-
* @generated from enum value: FeeVault = 0;
|
|
4437
|
-
*/
|
|
4438
|
-
FeeVault = 0
|
|
4439
|
-
}
|
|
4440
|
-
/**
|
|
4441
|
-
* @generated from enum nord.SpecialAccount
|
|
4442
|
-
*/
|
|
4443
|
-
export type SpecialAccountJson = "FeeVault";
|
|
4444
|
-
/**
|
|
4445
|
-
* Describes the enum nord.SpecialAccount.
|
|
4446
|
-
*/
|
|
4447
|
-
export declare const SpecialAccountSchema: GenEnum<SpecialAccount, SpecialAccountJson>;
|