@n1xyz/nord-ts 0.3.3 → 0.3.4-alpha.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 +3 -1
- package/dist/client/Nord.d.ts +13 -23
- package/dist/client/NordAdmin.d.ts +8 -0
- package/dist/client/NordUser.d.ts +11 -2
- package/dist/gen/nord_pb.d.ts +335 -105
- package/dist/gen/openapi.d.ts +288 -197
- package/dist/index.browser.js +64990 -83973
- package/dist/index.common.js +60126 -86733
- package/dist/types.d.ts +8 -10
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/gen/nord_pb.d.ts
CHANGED
|
@@ -424,6 +424,94 @@ 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
|
|
513
|
+
* the server.
|
|
514
|
+
*
|
|
427
515
|
* @generated from message nord.Action
|
|
428
516
|
*/
|
|
429
517
|
export type Action = Message<"nord.Action"> & {
|
|
@@ -599,12 +687,27 @@ export type Action = Message<"nord.Action"> & {
|
|
|
599
687
|
*/
|
|
600
688
|
value: Action_UpdateAcl;
|
|
601
689
|
case: "updateAcl";
|
|
690
|
+
} | {
|
|
691
|
+
/**
|
|
692
|
+
* @generated from field: nord.Action.FeeVaultTransfer fee_vault_transfer = 42;
|
|
693
|
+
*/
|
|
694
|
+
value: Action_FeeVaultTransfer;
|
|
695
|
+
case: "feeVaultTransfer";
|
|
696
|
+
} | {
|
|
697
|
+
/**
|
|
698
|
+
* @generated from field: nord.Action.CancelOrderByClientId cancel_order_by_client_id = 44;
|
|
699
|
+
*/
|
|
700
|
+
value: Action_CancelOrderByClientId;
|
|
701
|
+
case: "cancelOrderByClientId";
|
|
602
702
|
} | {
|
|
603
703
|
case: undefined;
|
|
604
704
|
value?: undefined;
|
|
605
705
|
};
|
|
606
706
|
};
|
|
607
707
|
/**
|
|
708
|
+
* An action executed by the engine. This is the main message that is sent to
|
|
709
|
+
* the server.
|
|
710
|
+
*
|
|
608
711
|
* @generated from message nord.Action
|
|
609
712
|
*/
|
|
610
713
|
export type ActionJson = {
|
|
@@ -727,6 +830,14 @@ export type ActionJson = {
|
|
|
727
830
|
* @generated from field: nord.Action.UpdateAcl update_acl = 41;
|
|
728
831
|
*/
|
|
729
832
|
updateAcl?: Action_UpdateAclJson;
|
|
833
|
+
/**
|
|
834
|
+
* @generated from field: nord.Action.FeeVaultTransfer fee_vault_transfer = 42;
|
|
835
|
+
*/
|
|
836
|
+
feeVaultTransfer?: Action_FeeVaultTransferJson;
|
|
837
|
+
/**
|
|
838
|
+
* @generated from field: nord.Action.CancelOrderByClientId cancel_order_by_client_id = 44;
|
|
839
|
+
*/
|
|
840
|
+
cancelOrderByClientId?: Action_CancelOrderByClientIdJson;
|
|
730
841
|
};
|
|
731
842
|
/**
|
|
732
843
|
* Describes the message nord.Action.
|
|
@@ -740,44 +851,64 @@ export declare const ActionSchema: GenMessage<Action, {
|
|
|
740
851
|
*/
|
|
741
852
|
export type Action_CreateSession = Message<"nord.Action.CreateSession"> & {
|
|
742
853
|
/**
|
|
743
|
-
* User's
|
|
744
|
-
*
|
|
854
|
+
* User's Ed25519 registration key, i.e. the wallet address. Must be 32
|
|
855
|
+
* bytes.
|
|
745
856
|
*
|
|
746
857
|
* @generated from field: bytes user_pubkey = 1;
|
|
747
858
|
*/
|
|
748
859
|
userPubkey: Uint8Array;
|
|
749
860
|
/**
|
|
750
|
-
*
|
|
861
|
+
* The session's public key. Must be 32 bytes.
|
|
751
862
|
*
|
|
752
|
-
* @generated from field: bytes
|
|
863
|
+
* @generated from field: bytes session_pubkey = 2;
|
|
753
864
|
*/
|
|
754
|
-
|
|
865
|
+
sessionPubkey: Uint8Array;
|
|
755
866
|
/**
|
|
867
|
+
* Expiry time of the session, in unix timestamp. Relative to the engine's
|
|
868
|
+
* time.
|
|
869
|
+
*
|
|
756
870
|
* @generated from field: int64 expiry_timestamp = 3;
|
|
757
871
|
*/
|
|
758
872
|
expiryTimestamp: bigint;
|
|
873
|
+
/**
|
|
874
|
+
* Alternatively frame the message as a Solana transaction.
|
|
875
|
+
* Defaults to hex if unset, to stay compatible with existing payloads.
|
|
876
|
+
*
|
|
877
|
+
* @generated from field: optional nord.Action.UserSignatureFraming signature_framing = 4;
|
|
878
|
+
*/
|
|
879
|
+
signatureFraming?: Action_UserSignatureFraming;
|
|
759
880
|
};
|
|
760
881
|
/**
|
|
761
882
|
* @generated from message nord.Action.CreateSession
|
|
762
883
|
*/
|
|
763
884
|
export type Action_CreateSessionJson = {
|
|
764
885
|
/**
|
|
765
|
-
* User's
|
|
766
|
-
*
|
|
886
|
+
* User's Ed25519 registration key, i.e. the wallet address. Must be 32
|
|
887
|
+
* bytes.
|
|
767
888
|
*
|
|
768
889
|
* @generated from field: bytes user_pubkey = 1;
|
|
769
890
|
*/
|
|
770
891
|
userPubkey?: string;
|
|
771
892
|
/**
|
|
772
|
-
*
|
|
893
|
+
* The session's public key. Must be 32 bytes.
|
|
773
894
|
*
|
|
774
|
-
* @generated from field: bytes
|
|
895
|
+
* @generated from field: bytes session_pubkey = 2;
|
|
775
896
|
*/
|
|
776
|
-
|
|
897
|
+
sessionPubkey?: string;
|
|
777
898
|
/**
|
|
899
|
+
* Expiry time of the session, in unix timestamp. Relative to the engine's
|
|
900
|
+
* time.
|
|
901
|
+
*
|
|
778
902
|
* @generated from field: int64 expiry_timestamp = 3;
|
|
779
903
|
*/
|
|
780
904
|
expiryTimestamp?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Alternatively frame the message as a Solana transaction.
|
|
907
|
+
* Defaults to hex if unset, to stay compatible with existing payloads.
|
|
908
|
+
*
|
|
909
|
+
* @generated from field: optional nord.Action.UserSignatureFraming signature_framing = 4;
|
|
910
|
+
*/
|
|
911
|
+
signatureFraming?: Action_UserSignatureFramingJson;
|
|
781
912
|
};
|
|
782
913
|
/**
|
|
783
914
|
* Describes the message nord.Action.CreateSession.
|
|
@@ -1282,6 +1413,47 @@ export type Action_CancelOrderByIdJson = {
|
|
|
1282
1413
|
export declare const Action_CancelOrderByIdSchema: GenMessage<Action_CancelOrderById, {
|
|
1283
1414
|
jsonType: Action_CancelOrderByIdJson;
|
|
1284
1415
|
}>;
|
|
1416
|
+
/**
|
|
1417
|
+
* @generated from message nord.Action.CancelOrderByClientId
|
|
1418
|
+
*/
|
|
1419
|
+
export type Action_CancelOrderByClientId = Message<"nord.Action.CancelOrderByClientId"> & {
|
|
1420
|
+
/**
|
|
1421
|
+
* @generated from field: uint64 session_id = 1;
|
|
1422
|
+
*/
|
|
1423
|
+
sessionId: bigint;
|
|
1424
|
+
/**
|
|
1425
|
+
* @generated from field: uint64 client_order_id = 2;
|
|
1426
|
+
*/
|
|
1427
|
+
clientOrderId: bigint;
|
|
1428
|
+
/**
|
|
1429
|
+
* @generated from field: optional uint32 sender_account_id = 3;
|
|
1430
|
+
*/
|
|
1431
|
+
senderAccountId?: number;
|
|
1432
|
+
};
|
|
1433
|
+
/**
|
|
1434
|
+
* @generated from message nord.Action.CancelOrderByClientId
|
|
1435
|
+
*/
|
|
1436
|
+
export type Action_CancelOrderByClientIdJson = {
|
|
1437
|
+
/**
|
|
1438
|
+
* @generated from field: uint64 session_id = 1;
|
|
1439
|
+
*/
|
|
1440
|
+
sessionId?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* @generated from field: uint64 client_order_id = 2;
|
|
1443
|
+
*/
|
|
1444
|
+
clientOrderId?: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* @generated from field: optional uint32 sender_account_id = 3;
|
|
1447
|
+
*/
|
|
1448
|
+
senderAccountId?: number;
|
|
1449
|
+
};
|
|
1450
|
+
/**
|
|
1451
|
+
* Describes the message nord.Action.CancelOrderByClientId.
|
|
1452
|
+
* Use `create(Action_CancelOrderByClientIdSchema)` to create a new message.
|
|
1453
|
+
*/
|
|
1454
|
+
export declare const Action_CancelOrderByClientIdSchema: GenMessage<Action_CancelOrderByClientId, {
|
|
1455
|
+
jsonType: Action_CancelOrderByClientIdJson;
|
|
1456
|
+
}>;
|
|
1285
1457
|
/**
|
|
1286
1458
|
* @generated from message nord.Action.Deposit
|
|
1287
1459
|
*/
|
|
@@ -1377,6 +1549,10 @@ export type Action_Withdraw = Message<"nord.Action.Withdraw"> & {
|
|
|
1377
1549
|
* @generated from field: uint64 amount = 3;
|
|
1378
1550
|
*/
|
|
1379
1551
|
amount: bigint;
|
|
1552
|
+
/**
|
|
1553
|
+
* @generated from field: optional bytes dest_pubkey = 4;
|
|
1554
|
+
*/
|
|
1555
|
+
destPubkey?: Uint8Array;
|
|
1380
1556
|
};
|
|
1381
1557
|
/**
|
|
1382
1558
|
* todo(n1): when gate will be here, remove or replace internals with message
|
|
@@ -1398,6 +1574,10 @@ export type Action_WithdrawJson = {
|
|
|
1398
1574
|
* @generated from field: uint64 amount = 3;
|
|
1399
1575
|
*/
|
|
1400
1576
|
amount?: string;
|
|
1577
|
+
/**
|
|
1578
|
+
* @generated from field: optional bytes dest_pubkey = 4;
|
|
1579
|
+
*/
|
|
1580
|
+
destPubkey?: string;
|
|
1401
1581
|
};
|
|
1402
1582
|
/**
|
|
1403
1583
|
* Describes the message nord.Action.Withdraw.
|
|
@@ -1746,6 +1926,55 @@ export type Action_TransferJson = {
|
|
|
1746
1926
|
export declare const Action_TransferSchema: GenMessage<Action_Transfer, {
|
|
1747
1927
|
jsonType: Action_TransferJson;
|
|
1748
1928
|
}>;
|
|
1929
|
+
/**
|
|
1930
|
+
* @generated from message nord.Action.FeeVaultTransfer
|
|
1931
|
+
*/
|
|
1932
|
+
export type Action_FeeVaultTransfer = Message<"nord.Action.FeeVaultTransfer"> & {
|
|
1933
|
+
/**
|
|
1934
|
+
* @generated from field: bytes acl_pubkey = 1;
|
|
1935
|
+
*/
|
|
1936
|
+
aclPubkey: Uint8Array;
|
|
1937
|
+
/**
|
|
1938
|
+
* @generated from field: uint32 recipient = 2;
|
|
1939
|
+
*/
|
|
1940
|
+
recipient: number;
|
|
1941
|
+
/**
|
|
1942
|
+
* @generated from field: uint32 token_id = 3;
|
|
1943
|
+
*/
|
|
1944
|
+
tokenId: number;
|
|
1945
|
+
/**
|
|
1946
|
+
* @generated from field: uint64 amount = 4;
|
|
1947
|
+
*/
|
|
1948
|
+
amount: bigint;
|
|
1949
|
+
};
|
|
1950
|
+
/**
|
|
1951
|
+
* @generated from message nord.Action.FeeVaultTransfer
|
|
1952
|
+
*/
|
|
1953
|
+
export type Action_FeeVaultTransferJson = {
|
|
1954
|
+
/**
|
|
1955
|
+
* @generated from field: bytes acl_pubkey = 1;
|
|
1956
|
+
*/
|
|
1957
|
+
aclPubkey?: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* @generated from field: uint32 recipient = 2;
|
|
1960
|
+
*/
|
|
1961
|
+
recipient?: number;
|
|
1962
|
+
/**
|
|
1963
|
+
* @generated from field: uint32 token_id = 3;
|
|
1964
|
+
*/
|
|
1965
|
+
tokenId?: number;
|
|
1966
|
+
/**
|
|
1967
|
+
* @generated from field: uint64 amount = 4;
|
|
1968
|
+
*/
|
|
1969
|
+
amount?: string;
|
|
1970
|
+
};
|
|
1971
|
+
/**
|
|
1972
|
+
* Describes the message nord.Action.FeeVaultTransfer.
|
|
1973
|
+
* Use `create(Action_FeeVaultTransferSchema)` to create a new message.
|
|
1974
|
+
*/
|
|
1975
|
+
export declare const Action_FeeVaultTransferSchema: GenMessage<Action_FeeVaultTransfer, {
|
|
1976
|
+
jsonType: Action_FeeVaultTransferJson;
|
|
1977
|
+
}>;
|
|
1749
1978
|
/**
|
|
1750
1979
|
* @generated from message nord.Action.TriggerPrices
|
|
1751
1980
|
*/
|
|
@@ -2144,7 +2373,6 @@ export type Action_TakePosition = Message<"nord.Action.TakePosition"> & {
|
|
|
2144
2373
|
* If set, then it is take action.
|
|
2145
2374
|
* If price not so good as in field, take will fail.
|
|
2146
2375
|
*
|
|
2147
|
-
*
|
|
2148
2376
|
* If not set,
|
|
2149
2377
|
* will do fill-or-kill order as per liquidation trade rule.
|
|
2150
2378
|
*
|
|
@@ -2181,7 +2409,6 @@ export type Action_TakePositionJson = {
|
|
|
2181
2409
|
* If set, then it is take action.
|
|
2182
2410
|
* If price not so good as in field, take will fail.
|
|
2183
2411
|
*
|
|
2184
|
-
*
|
|
2185
2412
|
* If not set,
|
|
2186
2413
|
* will do fill-or-kill order as per liquidation trade rule.
|
|
2187
2414
|
*
|
|
@@ -2197,91 +2424,30 @@ export declare const Action_TakePositionSchema: GenMessage<Action_TakePosition,
|
|
|
2197
2424
|
jsonType: Action_TakePositionJson;
|
|
2198
2425
|
}>;
|
|
2199
2426
|
/**
|
|
2200
|
-
* @generated from
|
|
2427
|
+
* @generated from enum nord.Action.UserSignatureFraming
|
|
2201
2428
|
*/
|
|
2202
|
-
export
|
|
2429
|
+
export declare enum Action_UserSignatureFraming {
|
|
2203
2430
|
/**
|
|
2204
|
-
* @generated from
|
|
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;
|
|
2431
|
+
* @generated from enum value: HEX = 0;
|
|
2229
2432
|
*/
|
|
2230
|
-
|
|
2433
|
+
HEX = 0,
|
|
2231
2434
|
/**
|
|
2232
|
-
* @generated from
|
|
2435
|
+
* @generated from enum value: SOLANA_TRANSACTION = 1;
|
|
2233
2436
|
*/
|
|
2234
|
-
|
|
2235
|
-
}
|
|
2437
|
+
SOLANA_TRANSACTION = 1
|
|
2438
|
+
}
|
|
2236
2439
|
/**
|
|
2237
|
-
*
|
|
2238
|
-
* Use `create(AtomicSubactionKindSchema)` to create a new message.
|
|
2440
|
+
* @generated from enum nord.Action.UserSignatureFraming
|
|
2239
2441
|
*/
|
|
2240
|
-
export
|
|
2241
|
-
jsonType: AtomicSubactionKindJson;
|
|
2242
|
-
}>;
|
|
2442
|
+
export type Action_UserSignatureFramingJson = "HEX" | "SOLANA_TRANSACTION";
|
|
2243
2443
|
/**
|
|
2244
|
-
*
|
|
2444
|
+
* Describes the enum nord.Action.UserSignatureFraming.
|
|
2245
2445
|
*/
|
|
2246
|
-
export
|
|
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
|
-
}>;
|
|
2446
|
+
export declare const Action_UserSignatureFramingSchema: GenEnum<Action_UserSignatureFraming, Action_UserSignatureFramingJson>;
|
|
2284
2447
|
/**
|
|
2448
|
+
* The response of an action from the engine. Most actions have a corresponding
|
|
2449
|
+
* receipt kind, which you can deduce from the naming.
|
|
2450
|
+
*
|
|
2285
2451
|
* @generated from message nord.Receipt
|
|
2286
2452
|
*/
|
|
2287
2453
|
export type Receipt = Message<"nord.Receipt"> & {
|
|
@@ -2446,12 +2612,21 @@ export type Receipt = Message<"nord.Receipt"> & {
|
|
|
2446
2612
|
*/
|
|
2447
2613
|
value: Receipt_AclUpdated;
|
|
2448
2614
|
case: "aclUpdated";
|
|
2615
|
+
} | {
|
|
2616
|
+
/**
|
|
2617
|
+
* @generated from field: nord.Receipt.FeeVaultTransferred fee_vault_transferred = 73;
|
|
2618
|
+
*/
|
|
2619
|
+
value: Receipt_FeeVaultTransferred;
|
|
2620
|
+
case: "feeVaultTransferred";
|
|
2449
2621
|
} | {
|
|
2450
2622
|
case: undefined;
|
|
2451
2623
|
value?: undefined;
|
|
2452
2624
|
};
|
|
2453
2625
|
};
|
|
2454
2626
|
/**
|
|
2627
|
+
* The response of an action from the engine. Most actions have a corresponding
|
|
2628
|
+
* receipt kind, which you can deduce from the naming.
|
|
2629
|
+
*
|
|
2455
2630
|
* @generated from message nord.Receipt
|
|
2456
2631
|
*/
|
|
2457
2632
|
export type ReceiptJson = {
|
|
@@ -2563,6 +2738,10 @@ export type ReceiptJson = {
|
|
|
2563
2738
|
* @generated from field: nord.Receipt.AclUpdated acl_updated = 72;
|
|
2564
2739
|
*/
|
|
2565
2740
|
aclUpdated?: Receipt_AclUpdatedJson;
|
|
2741
|
+
/**
|
|
2742
|
+
* @generated from field: nord.Receipt.FeeVaultTransferred fee_vault_transferred = 73;
|
|
2743
|
+
*/
|
|
2744
|
+
feeVaultTransferred?: Receipt_FeeVaultTransferredJson;
|
|
2566
2745
|
};
|
|
2567
2746
|
/**
|
|
2568
2747
|
* Describes the message nord.Receipt.
|
|
@@ -3421,6 +3600,47 @@ export type Receipt_TransferredJson = {
|
|
|
3421
3600
|
export declare const Receipt_TransferredSchema: GenMessage<Receipt_Transferred, {
|
|
3422
3601
|
jsonType: Receipt_TransferredJson;
|
|
3423
3602
|
}>;
|
|
3603
|
+
/**
|
|
3604
|
+
* @generated from message nord.Receipt.FeeVaultTransferred
|
|
3605
|
+
*/
|
|
3606
|
+
export type Receipt_FeeVaultTransferred = Message<"nord.Receipt.FeeVaultTransferred"> & {
|
|
3607
|
+
/**
|
|
3608
|
+
* @generated from field: uint32 recipient = 1;
|
|
3609
|
+
*/
|
|
3610
|
+
recipient: number;
|
|
3611
|
+
/**
|
|
3612
|
+
* @generated from field: uint32 token_id = 2;
|
|
3613
|
+
*/
|
|
3614
|
+
tokenId: number;
|
|
3615
|
+
/**
|
|
3616
|
+
* @generated from field: uint64 amount = 3;
|
|
3617
|
+
*/
|
|
3618
|
+
amount: bigint;
|
|
3619
|
+
};
|
|
3620
|
+
/**
|
|
3621
|
+
* @generated from message nord.Receipt.FeeVaultTransferred
|
|
3622
|
+
*/
|
|
3623
|
+
export type Receipt_FeeVaultTransferredJson = {
|
|
3624
|
+
/**
|
|
3625
|
+
* @generated from field: uint32 recipient = 1;
|
|
3626
|
+
*/
|
|
3627
|
+
recipient?: number;
|
|
3628
|
+
/**
|
|
3629
|
+
* @generated from field: uint32 token_id = 2;
|
|
3630
|
+
*/
|
|
3631
|
+
tokenId?: number;
|
|
3632
|
+
/**
|
|
3633
|
+
* @generated from field: uint64 amount = 3;
|
|
3634
|
+
*/
|
|
3635
|
+
amount?: string;
|
|
3636
|
+
};
|
|
3637
|
+
/**
|
|
3638
|
+
* Describes the message nord.Receipt.FeeVaultTransferred.
|
|
3639
|
+
* Use `create(Receipt_FeeVaultTransferredSchema)` to create a new message.
|
|
3640
|
+
*/
|
|
3641
|
+
export declare const Receipt_FeeVaultTransferredSchema: GenMessage<Receipt_FeeVaultTransferred, {
|
|
3642
|
+
jsonType: Receipt_FeeVaultTransferredJson;
|
|
3643
|
+
}>;
|
|
3424
3644
|
/**
|
|
3425
3645
|
* @generated from message nord.Receipt.TriggerAdded
|
|
3426
3646
|
*/
|
|
@@ -3793,6 +4013,23 @@ export type MarketTypeJson = "SPOT" | "PERPETUALS";
|
|
|
3793
4013
|
* Describes the enum nord.MarketType.
|
|
3794
4014
|
*/
|
|
3795
4015
|
export declare const MarketTypeSchema: GenEnum<MarketType, MarketTypeJson>;
|
|
4016
|
+
/**
|
|
4017
|
+
* @generated from enum nord.SpecialAccount
|
|
4018
|
+
*/
|
|
4019
|
+
export declare enum SpecialAccount {
|
|
4020
|
+
/**
|
|
4021
|
+
* @generated from enum value: FeeVault = 0;
|
|
4022
|
+
*/
|
|
4023
|
+
FeeVault = 0
|
|
4024
|
+
}
|
|
4025
|
+
/**
|
|
4026
|
+
* @generated from enum nord.SpecialAccount
|
|
4027
|
+
*/
|
|
4028
|
+
export type SpecialAccountJson = "FeeVault";
|
|
4029
|
+
/**
|
|
4030
|
+
* Describes the enum nord.SpecialAccount.
|
|
4031
|
+
*/
|
|
4032
|
+
export declare const SpecialAccountSchema: GenEnum<SpecialAccount, SpecialAccountJson>;
|
|
3796
4033
|
/**
|
|
3797
4034
|
* Error codes returned by the engine.
|
|
3798
4035
|
* Some errors has 5bit prefix about error source and 3 bit suffix specifier.
|
|
@@ -4003,6 +4240,12 @@ export declare enum Error {
|
|
|
4003
4240
|
* @generated from enum value: UNEXPECTED_TOKEN_ID = 127;
|
|
4004
4241
|
*/
|
|
4005
4242
|
UNEXPECTED_TOKEN_ID = 127,
|
|
4243
|
+
/**
|
|
4244
|
+
* Repeated order ID detected (duplicate OrderKey from client_order_id)
|
|
4245
|
+
*
|
|
4246
|
+
* @generated from enum value: REPEATED_ORDER_ID = 128;
|
|
4247
|
+
*/
|
|
4248
|
+
REPEATED_ORDER_ID = 128,
|
|
4006
4249
|
/**
|
|
4007
4250
|
* happens in some situation when token misses some relevant information
|
|
4008
4251
|
* needed for operation, for example index price
|
|
@@ -4408,6 +4651,10 @@ export declare enum Error {
|
|
|
4408
4651
|
* @generated from enum value: NOT_IMPLEMENTED = 500;
|
|
4409
4652
|
*/
|
|
4410
4653
|
NOT_IMPLEMENTED = 500,
|
|
4654
|
+
/**
|
|
4655
|
+
* @generated from enum value: ACTION_NOT_ALLOWED = 501;
|
|
4656
|
+
*/
|
|
4657
|
+
ACTION_NOT_ALLOWED = 501,
|
|
4411
4658
|
/**
|
|
4412
4659
|
* @generated from enum value: Dropped = 999;
|
|
4413
4660
|
*/
|
|
@@ -4423,25 +4670,8 @@ export declare enum Error {
|
|
|
4423
4670
|
*
|
|
4424
4671
|
* @generated from enum nord.Error
|
|
4425
4672
|
*/
|
|
4426
|
-
export type ErrorJson = "DUPLICATE" | "DECODE_FAILURE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC" | "ARITHMETIC_OVERFLOW" | "ARITHMETIC_UNDERFLOW" | "ARITHMETIC_DIVISION_BY_ZERO" | "KEY_ALREADY_REGISTERED" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "INVALID_ORDER_OWNER" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "UPDATE_PUBLISH_TIME_IN_PAST" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "TIER_FEE_OUT_OF_RANGE" | "TIER_ID_OUT_OF_RANGE" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "EXPIRY_TIMESTAMP_IN_PAST" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "POSITION_STATE_PERP" | "POSITION_STATE_ORDER_DELEGATION" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "ADMIN_ROLE_INSUFFICIENT" | "ADMIN_NOT_FOUND" | "UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED" | "SUPER_ADMIN_ALREADY_EXISTS" | "NOT_IMPLEMENTED" | "Dropped";
|
|
4673
|
+
export type ErrorJson = "DUPLICATE" | "DECODE_FAILURE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC" | "ARITHMETIC_OVERFLOW" | "ARITHMETIC_UNDERFLOW" | "ARITHMETIC_DIVISION_BY_ZERO" | "KEY_ALREADY_REGISTERED" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "INVALID_ORDER_OWNER" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "UPDATE_PUBLISH_TIME_IN_PAST" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "TIER_FEE_OUT_OF_RANGE" | "TIER_ID_OUT_OF_RANGE" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "REPEATED_ORDER_ID" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "EXPIRY_TIMESTAMP_IN_PAST" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "POSITION_STATE_PERP" | "POSITION_STATE_ORDER_DELEGATION" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "ADMIN_ROLE_INSUFFICIENT" | "ADMIN_NOT_FOUND" | "UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED" | "SUPER_ADMIN_ALREADY_EXISTS" | "NOT_IMPLEMENTED" | "ACTION_NOT_ALLOWED" | "Dropped";
|
|
4427
4674
|
/**
|
|
4428
4675
|
* Describes the enum nord.Error.
|
|
4429
4676
|
*/
|
|
4430
4677
|
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>;
|