@nadohq/engine-client 0.26.0 → 0.28.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.
Files changed (115) hide show
  1. package/README.md +0 -8
  2. package/dist/{EngineBaseClient-D2EP8jO1.d.ts → EngineBaseClient-TSSMP2CP.d.ts} +2 -2
  3. package/dist/{EngineBaseClient-D2EP8jO1.d.ts.map → EngineBaseClient-TSSMP2CP.d.ts.map} +1 -1
  4. package/dist/{EngineBaseClient-DPDPCMh5.d.cts → EngineBaseClient-iMKgPJD5.d.cts} +2 -2
  5. package/dist/{EngineBaseClient-DPDPCMh5.d.cts.map → EngineBaseClient-iMKgPJD5.d.cts.map} +1 -1
  6. package/dist/EngineBaseClient.d.cts +1 -1
  7. package/dist/EngineBaseClient.d.ts +1 -1
  8. package/dist/EngineClient.d.cts +4 -4
  9. package/dist/EngineClient.d.ts +4 -4
  10. package/dist/{EngineEdgeQueryClient-C-8zQ6dt.d.cts → EngineEdgeQueryClient-CdITc0f9.d.cts} +2 -2
  11. package/dist/{EngineEdgeQueryClient-C-8zQ6dt.d.cts.map → EngineEdgeQueryClient-CdITc0f9.d.cts.map} +1 -1
  12. package/dist/{EngineEdgeQueryClient-BDawowh4.d.ts → EngineEdgeQueryClient-DDO69X3M.d.ts} +2 -2
  13. package/dist/{EngineEdgeQueryClient-BDawowh4.d.ts.map → EngineEdgeQueryClient-DDO69X3M.d.ts.map} +1 -1
  14. package/dist/EngineEdgeQueryClient.d.cts +1 -1
  15. package/dist/EngineEdgeQueryClient.d.ts +1 -1
  16. package/dist/{EngineExecuteBuilder-COgp6mm0.d.ts → EngineExecuteBuilder-BxmeHvue.d.ts} +4 -4
  17. package/dist/{EngineExecuteBuilder-COgp6mm0.d.ts.map → EngineExecuteBuilder-BxmeHvue.d.ts.map} +1 -1
  18. package/dist/{EngineExecuteBuilder-CEpfsCAM.d.cts → EngineExecuteBuilder-C8DZXfEE.d.cts} +4 -4
  19. package/dist/{EngineExecuteBuilder-CEpfsCAM.d.cts.map → EngineExecuteBuilder-C8DZXfEE.d.cts.map} +1 -1
  20. package/dist/EngineExecuteBuilder.cjs.map +1 -1
  21. package/dist/EngineExecuteBuilder.d.cts +1 -1
  22. package/dist/EngineExecuteBuilder.d.ts +1 -1
  23. package/dist/EngineExecuteBuilder.js.map +1 -1
  24. package/dist/{EngineExecuteClient-BMF1ADts.d.ts → EngineExecuteClient-BgPbR6A9.d.ts} +4 -4
  25. package/dist/{EngineExecuteClient-BMF1ADts.d.ts.map → EngineExecuteClient-BgPbR6A9.d.ts.map} +1 -1
  26. package/dist/{EngineExecuteClient-Bfx7jxVQ.d.cts → EngineExecuteClient-Cm-DpHa_.d.cts} +4 -4
  27. package/dist/{EngineExecuteClient-Bfx7jxVQ.d.cts.map → EngineExecuteClient-Cm-DpHa_.d.cts.map} +1 -1
  28. package/dist/EngineExecuteClient.d.cts +1 -1
  29. package/dist/EngineExecuteClient.d.ts +1 -1
  30. package/dist/{EngineQueryClient-C-z8EIEe.d.cts → EngineQueryClient-DZ4yx4rP.d.cts} +2 -2
  31. package/dist/{EngineQueryClient-C-z8EIEe.d.cts.map → EngineQueryClient-DZ4yx4rP.d.cts.map} +1 -1
  32. package/dist/{EngineQueryClient-B06uRjXi.d.ts → EngineQueryClient-m9Z1A-fK.d.ts} +2 -2
  33. package/dist/{EngineQueryClient-B06uRjXi.d.ts.map → EngineQueryClient-m9Z1A-fK.d.ts.map} +1 -1
  34. package/dist/EngineQueryClient.d.cts +1 -1
  35. package/dist/EngineQueryClient.d.ts +1 -1
  36. package/dist/EngineServerFailureError-D8dYqmll.d.ts +28 -0
  37. package/dist/EngineServerFailureError-D8dYqmll.d.ts.map +1 -0
  38. package/dist/EngineServerFailureError-DPhoja6y.d.cts +28 -0
  39. package/dist/EngineServerFailureError-DPhoja6y.d.cts.map +1 -0
  40. package/dist/{EngineWebClient-Deniyato.d.ts → EngineWebClient-DjFeRd5S.d.ts} +2 -2
  41. package/dist/{EngineWebClient-Deniyato.d.ts.map → EngineWebClient-DjFeRd5S.d.ts.map} +1 -1
  42. package/dist/{EngineWebClient-BMC0tOM1.d.cts → EngineWebClient-OSMrINW_.d.cts} +2 -2
  43. package/dist/{EngineWebClient-BMC0tOM1.d.cts.map → EngineWebClient-OSMrINW_.d.cts.map} +1 -1
  44. package/dist/EngineWebClient.d.cts +1 -1
  45. package/dist/EngineWebClient.d.ts +1 -1
  46. package/dist/{clientExecuteTypes-DnK1APG8.d.cts → clientExecuteTypes-BABishPC.d.cts} +5 -8
  47. package/dist/clientExecuteTypes-BABishPC.d.cts.map +1 -0
  48. package/dist/{clientExecuteTypes-DaYvvt6b.d.ts → clientExecuteTypes-C6Ih6CGp.d.ts} +5 -8
  49. package/dist/clientExecuteTypes-C6Ih6CGp.d.ts.map +1 -0
  50. package/dist/engineErrorCodes-CBw912Mo.d.cts +155 -0
  51. package/dist/engineErrorCodes-CBw912Mo.d.cts.map +1 -0
  52. package/dist/engineErrorCodes-CuZ-6EpA.d.ts +155 -0
  53. package/dist/engineErrorCodes-CuZ-6EpA.d.ts.map +1 -0
  54. package/dist/index.cjs +2 -0
  55. package/dist/index.d.cts +8 -7
  56. package/dist/index.d.ts +8 -7
  57. package/dist/index.js +2 -1
  58. package/dist/{queryDataMappers-kC-SPiHX.d.cts → queryDataMappers--KLbh07P.d.cts} +2 -2
  59. package/dist/{queryDataMappers-kC-SPiHX.d.cts.map → queryDataMappers--KLbh07P.d.cts.map} +1 -1
  60. package/dist/{queryDataMappers-CyUgQn0_.d.ts → queryDataMappers-Dl8wV2Ij.d.ts} +2 -2
  61. package/dist/{queryDataMappers-CyUgQn0_.d.ts.map → queryDataMappers-Dl8wV2Ij.d.ts.map} +1 -1
  62. package/dist/{serverEdgeQueryTypes-DbSUWFzo.d.ts → serverEdgeQueryTypes-BuczDdyY.d.ts} +1 -1
  63. package/dist/{serverEdgeQueryTypes-DbSUWFzo.d.ts.map → serverEdgeQueryTypes-BuczDdyY.d.ts.map} +1 -1
  64. package/dist/{serverEdgeQueryTypes-BpMlbsCD.d.cts → serverEdgeQueryTypes-t88tK0Id.d.cts} +1 -1
  65. package/dist/{serverEdgeQueryTypes-BpMlbsCD.d.cts.map → serverEdgeQueryTypes-t88tK0Id.d.cts.map} +1 -1
  66. package/dist/{serverSubscriptionEventTypes-CQFY_NIZ.d.cts → serverSubscriptionEventTypes-BmKXVao3.d.cts} +1 -1
  67. package/dist/{serverSubscriptionEventTypes-CQFY_NIZ.d.cts.map → serverSubscriptionEventTypes-BmKXVao3.d.cts.map} +1 -1
  68. package/dist/{serverSubscriptionEventTypes-C5GFcEZc.d.ts → serverSubscriptionEventTypes-DwlZ1QXQ.d.ts} +1 -1
  69. package/dist/{serverSubscriptionEventTypes-C5GFcEZc.d.ts.map → serverSubscriptionEventTypes-DwlZ1QXQ.d.ts.map} +1 -1
  70. package/dist/{serverSubscriptionTypes-BA92bWic.d.cts → serverSubscriptionTypes-D_Os3P_c.d.cts} +1 -1
  71. package/dist/{serverSubscriptionTypes-BA92bWic.d.cts.map → serverSubscriptionTypes-D_Os3P_c.d.cts.map} +1 -1
  72. package/dist/{serverSubscriptionTypes-CEis5IgT.d.ts → serverSubscriptionTypes-DqxSae6z.d.ts} +1 -1
  73. package/dist/{serverSubscriptionTypes-CEis5IgT.d.ts.map → serverSubscriptionTypes-DqxSae6z.d.ts.map} +1 -1
  74. package/dist/types/EngineServerFailureError.cjs +9 -0
  75. package/dist/types/EngineServerFailureError.cjs.map +1 -1
  76. package/dist/types/EngineServerFailureError.d.cts +1 -1
  77. package/dist/types/EngineServerFailureError.d.ts +1 -1
  78. package/dist/types/EngineServerFailureError.js +9 -0
  79. package/dist/types/EngineServerFailureError.js.map +1 -1
  80. package/dist/types/clientExecuteTypes.d.cts +2 -2
  81. package/dist/types/clientExecuteTypes.d.ts +2 -2
  82. package/dist/types/engineErrorCodes.cjs +262 -0
  83. package/dist/types/engineErrorCodes.cjs.map +1 -0
  84. package/dist/types/engineErrorCodes.d.cts +2 -0
  85. package/dist/types/engineErrorCodes.d.ts +2 -0
  86. package/dist/types/engineErrorCodes.js +261 -0
  87. package/dist/types/engineErrorCodes.js.map +1 -0
  88. package/dist/types/index.cjs +2 -0
  89. package/dist/types/index.d.cts +7 -6
  90. package/dist/types/index.d.ts +7 -6
  91. package/dist/types/index.js +2 -1
  92. package/dist/types/serverEdgeQueryTypes.d.cts +1 -1
  93. package/dist/types/serverEdgeQueryTypes.d.ts +1 -1
  94. package/dist/types/serverSubscriptionEventTypes.d.cts +1 -1
  95. package/dist/types/serverSubscriptionEventTypes.d.ts +1 -1
  96. package/dist/types/serverSubscriptionTypes.d.cts +1 -1
  97. package/dist/types/serverSubscriptionTypes.d.ts +1 -1
  98. package/dist/utils/index.d.cts +1 -1
  99. package/dist/utils/index.d.ts +1 -1
  100. package/dist/utils/queryDataMappers.d.cts +1 -1
  101. package/dist/utils/queryDataMappers.d.ts +1 -1
  102. package/package.json +3 -3
  103. package/src/EngineExecuteBuilder.ts +3 -2
  104. package/src/types/EngineServerFailureError.ts +28 -5
  105. package/src/types/clientExecuteTypes.ts +4 -7
  106. package/src/types/engineErrorCodes.ts +269 -0
  107. package/src/types/index.ts +1 -0
  108. package/dist/EngineServerFailureError-BltJiOUa.d.ts +0 -11
  109. package/dist/EngineServerFailureError-BltJiOUa.d.ts.map +0 -1
  110. package/dist/EngineServerFailureError-Glp9zh5i.d.cts +0 -11
  111. package/dist/EngineServerFailureError-Glp9zh5i.d.cts.map +0 -1
  112. package/dist/clientExecuteTypes-DaYvvt6b.d.ts.map +0 -1
  113. package/dist/clientExecuteTypes-DnK1APG8.d.cts.map +0 -1
  114. /package/dist/{index-D6CnpA_r.d.cts → index-CHmsNSsb.d.ts} +0 -0
  115. /package/dist/{index-DhI2LvVQ.d.ts → index-_wQ5ClJU.d.cts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EngineServerFailureError-DPhoja6y.d.cts","names":[],"sources":["../src/types/src/types/EngineServerFailureError.ts"],"mappings":";;;;KAGK,uBAAA,GACD,gCAAA,GACA,gCAAgC;;AAJkC;;;;AAIlC;cAQvB,wBAAA,SAAiC,KAAA;EAAA,SAcvB,YAAA,EAAc,uBAAA;;;;WAV1B,SAAA;EAJmC;;;;;EAAA,SAUnC,WAAA,EACL,gCAAA;cAGiB,YAAA,EAAc,uBAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { S as GetEngineIpBlockStatusResponse, rt as GetEngineTimeResponse, v as GetEngineCountryCodeResponse } from "./clientQueryTypes-BaYOTnpm.js";
2
- import { t as EngineBaseClient } from "./EngineBaseClient-D2EP8jO1.js";
2
+ import { t as EngineBaseClient } from "./EngineBaseClient-TSSMP2CP.js";
3
3
 
4
4
  //#region src/EngineWebClient.d.ts
5
5
  /**
@@ -32,4 +32,4 @@ declare class EngineWebClient extends EngineBaseClient {
32
32
  }
33
33
  //#endregion
34
34
  export { EngineWebClient as t };
35
- //# sourceMappingURL=EngineWebClient-Deniyato.d.ts.map
35
+ //# sourceMappingURL=EngineWebClient-DjFeRd5S.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EngineWebClient-Deniyato.d.ts","names":[],"sources":["../src/src/EngineWebClient.ts"],"mappings":";;;;;;;AAcA;cAAa,eAAA,SAAwB,gBAAA;;;;EAI7B,gBAAA,CAAA,GAAoB,OAAA,CAAQ,8BAAA;EA8BV;;;;;;;EAAlB,cAAA,CAAA,GAAkB,OAAA,CAAQ,4BAAA;EA9B1B;;;;;EA6CA,yBAAA,CAAA,GAA6B,OAAA;EAA7B;;;EAqBA,OAAA,CAAA,GAAW,OAAA,CAAQ,qBAAA;AAAA"}
1
+ {"version":3,"file":"EngineWebClient-DjFeRd5S.d.ts","names":[],"sources":["../src/src/EngineWebClient.ts"],"mappings":";;;;;;;AAcA;cAAa,eAAA,SAAwB,gBAAA;;;;EAI7B,gBAAA,CAAA,GAAoB,OAAA,CAAQ,8BAAA;EA8BV;;;;;;;EAAlB,cAAA,CAAA,GAAkB,OAAA,CAAQ,4BAAA;EA9B1B;;;;;EA6CA,yBAAA,CAAA,GAA6B,OAAA;EAA7B;;;EAqBA,OAAA,CAAA,GAAW,OAAA,CAAQ,qBAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { S as GetEngineIpBlockStatusResponse, rt as GetEngineTimeResponse, v as GetEngineCountryCodeResponse } from "./clientQueryTypes-BTKfuoGI.cjs";
2
- import { t as EngineBaseClient } from "./EngineBaseClient-DPDPCMh5.cjs";
2
+ import { t as EngineBaseClient } from "./EngineBaseClient-iMKgPJD5.cjs";
3
3
 
4
4
  //#region src/EngineWebClient.d.ts
5
5
  /**
@@ -32,4 +32,4 @@ declare class EngineWebClient extends EngineBaseClient {
32
32
  }
33
33
  //#endregion
34
34
  export { EngineWebClient as t };
35
- //# sourceMappingURL=EngineWebClient-BMC0tOM1.d.cts.map
35
+ //# sourceMappingURL=EngineWebClient-OSMrINW_.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EngineWebClient-BMC0tOM1.d.cts","names":[],"sources":["../src/src/EngineWebClient.ts"],"mappings":";;;;;;;AAcA;cAAa,eAAA,SAAwB,gBAAA;;;;EAI7B,gBAAA,CAAA,GAAoB,OAAA,CAAQ,8BAAA;EA8BV;;;;;;;EAAlB,cAAA,CAAA,GAAkB,OAAA,CAAQ,4BAAA;EA9B1B;;;;;EA6CA,yBAAA,CAAA,GAA6B,OAAA;EAA7B;;;EAqBA,OAAA,CAAA,GAAW,OAAA,CAAQ,qBAAA;AAAA"}
1
+ {"version":3,"file":"EngineWebClient-OSMrINW_.d.cts","names":[],"sources":["../src/src/EngineWebClient.ts"],"mappings":";;;;;;;AAcA;cAAa,eAAA,SAAwB,gBAAA;;;;EAI7B,gBAAA,CAAA,GAAoB,OAAA,CAAQ,8BAAA;EA8BV;;;;;;;EAAlB,cAAA,CAAA,GAAkB,OAAA,CAAQ,4BAAA;EA9B1B;;;;;EA6CA,yBAAA,CAAA,GAA6B,OAAA;EAA7B;;;EAqBA,OAAA,CAAA,GAAW,OAAA,CAAQ,qBAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- import { t as EngineWebClient } from "./EngineWebClient-BMC0tOM1.cjs";
1
+ import { t as EngineWebClient } from "./EngineWebClient-OSMrINW_.cjs";
2
2
  export { EngineWebClient };
@@ -1,2 +1,2 @@
1
- import { t as EngineWebClient } from "./EngineWebClient-Deniyato.js";
1
+ import { t as EngineWebClient } from "./EngineWebClient-DjFeRd5S.js";
2
2
  export { EngineWebClient };
@@ -1,5 +1,5 @@
1
1
  import { l as EngineServerExecuteSuccessResult } from "./serverExecuteTypes-WltMT-zz.cjs";
2
- import { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params } from "@nadohq/shared";
2
+ import { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params, SignatureParams } from "@nadohq/shared";
3
3
  import BigNumber from "bignumber.js";
4
4
 
5
5
  //#region src/types/clientExecuteTypes.d.ts
@@ -7,10 +7,7 @@ import BigNumber from "bignumber.js";
7
7
  * Either verifying address or signature must be provided;
8
8
  * If signature is not provided, the verifying address with the engine signer will be used to sign.
9
9
  */
10
- type SignatureParams = {
11
- verifyingAddr: string;
12
- chainId: number;
13
- } | {
10
+ type SignatureParamsOrSignature = SignatureParams | {
14
11
  signature: string;
15
12
  };
16
13
  type WithoutNonce<T extends {
@@ -22,7 +19,7 @@ type WithSpotLeverage<T> = T & {
22
19
  type WithSignature<T> = T & {
23
20
  signature: string;
24
21
  };
25
- type WithBaseEngineExecuteParams<T> = SignatureParams & Omit<T, 'nonce'> & {
22
+ type WithBaseEngineExecuteParams<T> = SignatureParamsOrSignature & Omit<T, 'nonce'> & {
26
23
  nonce?: string;
27
24
  };
28
25
  type EngineOrderParams = WithoutNonce<EIP712OrderParams>;
@@ -89,5 +86,5 @@ type EnginePlaceOrderResult = EngineServerExecuteSuccessResult<'place_order'> &
89
86
  orderParams: EIP712OrderParams;
90
87
  };
91
88
  //#endregion
92
- export { WithBaseEngineExecuteParams as _, EngineExecuteRequestParamsByType as a, EngineMintNlpParams as c, EnginePlaceOrderResult as d, EnginePlaceOrdersParams as f, SignatureParams as g, EngineWithdrawCollateralV2Params as h, EngineCancelProductOrdersParams as i, EngineOrderParams as l, EngineWithdrawCollateralParams as m, EngineCancelAndPlaceParams as n, EngineLinkSignerParams as o, EngineTransferQuoteParams as p, EngineCancelOrdersParams as r, EngineLiquidateSubaccountParams as s, EngineBurnNlpParams as t, EnginePlaceOrderParams as u, WithSignature as v };
93
- //# sourceMappingURL=clientExecuteTypes-DnK1APG8.d.cts.map
89
+ export { WithBaseEngineExecuteParams as _, EngineExecuteRequestParamsByType as a, EngineMintNlpParams as c, EnginePlaceOrderResult as d, EnginePlaceOrdersParams as f, SignatureParamsOrSignature as g, EngineWithdrawCollateralV2Params as h, EngineCancelProductOrdersParams as i, EngineOrderParams as l, EngineWithdrawCollateralParams as m, EngineCancelAndPlaceParams as n, EngineLinkSignerParams as o, EngineTransferQuoteParams as p, EngineCancelOrdersParams as r, EngineLiquidateSubaccountParams as s, EngineBurnNlpParams as t, EnginePlaceOrderParams as u, WithSignature as v };
90
+ //# sourceMappingURL=clientExecuteTypes-BABishPC.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientExecuteTypes-BABishPC.d.cts","names":[],"sources":["../src/types/src/types/clientExecuteTypes.ts"],"mappings":";;;;;;;AAoBA;;KAAY,0BAAA,GACR,eAAe;EAEb,SAAS;AAAA;AAAA,KAGV,YAAA;EAAyB,KAAA;AAAA,KAAoB,IAAI,CAAC,CAAA;AAAA,KAElD,gBAAA,MAAsB,CAAC;EAC1B,YAAA;AAAA;AAAA,KAGU,aAAA,MAAmB,CAAC;EAC9B,SAAA;AAAA;AAAA,KAIU,2BAAA,MAAiC,0BAAA,GAC3C,IAAA,CAAK,CAAA;EACH,KAAA;AAAA;AAAA,KAGQ,iBAAA,GAAoB,YAAY,CAAC,iBAAA;AAAA,KAEjC,sBAAA,GAAyB,2BAA2B;EAC9D,EAAA;EACA,SAAA;EACA,KAAA,EAAO,iBAAA;EAEP,YAAA;EAEA,YAAA;AAAA;AAAA,KAGU,+BAAA,GACV,2BAA2B,CAAC,+BAAA;AAAA,KAElB,8BAAA,GAAiC,2BAAA,CAC3C,gBAAA,CAAiB,8BAAA;AAAA,KAGP,gCAAA,GAAmC,2BAAA,CAC7C,gBAAA,CAAiB,gCAAA;AAAA,KAGP,wBAAA,GACV,2BAAA,CAA4B,wBAAA;EAlCC;;;AACpB;AAIX;EAmCI,sBAAA,GAAyB,SAAA;AAAA;AAAA,UAGZ,0BAAA;EACf,YAAA,EAAc,wBAAA;EACd,UAAA,EAAY,sBAAA;EAvCR;;;;EA4CJ,sBAAA,GAAyB,SAAA;EA5CpB;;;AACE;EAgDP,qBAAA;AAAA;AAAA,KAGU,+BAAA,GACV,2BAA2B,CAAC,+BAAA;AAAA,KAElB,sBAAA,GACV,2BAA2B,CAAC,sBAAA;AAAA,KAElB,yBAAA,GACV,2BAA2B,CAAC,yBAAA;AAAA,KAElB,mBAAA,GAAsB,2BAAA,CAChC,gBAAA,CAAiB,mBAAA;AAAA,KAGP,mBAAA,GACV,2BAA2B,CAAC,mBAAA;AAAA,KAElB,uBAAA;EACV,MAAA,EAAQ,sBAAsB;EA/DK;;;;EAoEnC,aAAA;AAAA;AAAA,UAGe,gCAAA;EACf,QAAA,EAAU,mBAAA;EACV,gBAAA,EAAkB,0BAAA;EAClB,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;EACvB,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,sBAAA;EACb,YAAA,EAAc,uBAAA;EACd,cAAA,EAAgB,yBAAA;EAChB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,sBAAA,GACV,gCAAA;EACE,WAAA,EAAa,iBAAiB;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { l as EngineServerExecuteSuccessResult } from "./serverExecuteTypes-C8uIe8Kz.js";
2
- import { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params } from "@nadohq/shared";
2
+ import { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, EIP712WithdrawCollateralV2Params, SignatureParams } from "@nadohq/shared";
3
3
  import BigNumber from "bignumber.js";
4
4
 
5
5
  //#region src/types/clientExecuteTypes.d.ts
@@ -7,10 +7,7 @@ import BigNumber from "bignumber.js";
7
7
  * Either verifying address or signature must be provided;
8
8
  * If signature is not provided, the verifying address with the engine signer will be used to sign.
9
9
  */
10
- type SignatureParams = {
11
- verifyingAddr: string;
12
- chainId: number;
13
- } | {
10
+ type SignatureParamsOrSignature = SignatureParams | {
14
11
  signature: string;
15
12
  };
16
13
  type WithoutNonce<T extends {
@@ -22,7 +19,7 @@ type WithSpotLeverage<T> = T & {
22
19
  type WithSignature<T> = T & {
23
20
  signature: string;
24
21
  };
25
- type WithBaseEngineExecuteParams<T> = SignatureParams & Omit<T, 'nonce'> & {
22
+ type WithBaseEngineExecuteParams<T> = SignatureParamsOrSignature & Omit<T, 'nonce'> & {
26
23
  nonce?: string;
27
24
  };
28
25
  type EngineOrderParams = WithoutNonce<EIP712OrderParams>;
@@ -89,5 +86,5 @@ type EnginePlaceOrderResult = EngineServerExecuteSuccessResult<'place_order'> &
89
86
  orderParams: EIP712OrderParams;
90
87
  };
91
88
  //#endregion
92
- export { WithBaseEngineExecuteParams as _, EngineExecuteRequestParamsByType as a, EngineMintNlpParams as c, EnginePlaceOrderResult as d, EnginePlaceOrdersParams as f, SignatureParams as g, EngineWithdrawCollateralV2Params as h, EngineCancelProductOrdersParams as i, EngineOrderParams as l, EngineWithdrawCollateralParams as m, EngineCancelAndPlaceParams as n, EngineLinkSignerParams as o, EngineTransferQuoteParams as p, EngineCancelOrdersParams as r, EngineLiquidateSubaccountParams as s, EngineBurnNlpParams as t, EnginePlaceOrderParams as u, WithSignature as v };
93
- //# sourceMappingURL=clientExecuteTypes-DaYvvt6b.d.ts.map
89
+ export { WithBaseEngineExecuteParams as _, EngineExecuteRequestParamsByType as a, EngineMintNlpParams as c, EnginePlaceOrderResult as d, EnginePlaceOrdersParams as f, SignatureParamsOrSignature as g, EngineWithdrawCollateralV2Params as h, EngineCancelProductOrdersParams as i, EngineOrderParams as l, EngineWithdrawCollateralParams as m, EngineCancelAndPlaceParams as n, EngineLinkSignerParams as o, EngineTransferQuoteParams as p, EngineCancelOrdersParams as r, EngineLiquidateSubaccountParams as s, EngineBurnNlpParams as t, EnginePlaceOrderParams as u, WithSignature as v };
90
+ //# sourceMappingURL=clientExecuteTypes-C6Ih6CGp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientExecuteTypes-C6Ih6CGp.d.ts","names":[],"sources":["../src/types/src/types/clientExecuteTypes.ts"],"mappings":";;;;;;;AAoBA;;KAAY,0BAAA,GACR,eAAe;EAEb,SAAS;AAAA;AAAA,KAGV,YAAA;EAAyB,KAAA;AAAA,KAAoB,IAAI,CAAC,CAAA;AAAA,KAElD,gBAAA,MAAsB,CAAC;EAC1B,YAAA;AAAA;AAAA,KAGU,aAAA,MAAmB,CAAC;EAC9B,SAAA;AAAA;AAAA,KAIU,2BAAA,MAAiC,0BAAA,GAC3C,IAAA,CAAK,CAAA;EACH,KAAA;AAAA;AAAA,KAGQ,iBAAA,GAAoB,YAAY,CAAC,iBAAA;AAAA,KAEjC,sBAAA,GAAyB,2BAA2B;EAC9D,EAAA;EACA,SAAA;EACA,KAAA,EAAO,iBAAA;EAEP,YAAA;EAEA,YAAA;AAAA;AAAA,KAGU,+BAAA,GACV,2BAA2B,CAAC,+BAAA;AAAA,KAElB,8BAAA,GAAiC,2BAAA,CAC3C,gBAAA,CAAiB,8BAAA;AAAA,KAGP,gCAAA,GAAmC,2BAAA,CAC7C,gBAAA,CAAiB,gCAAA;AAAA,KAGP,wBAAA,GACV,2BAAA,CAA4B,wBAAA;EAlCC;;;AACpB;AAIX;EAmCI,sBAAA,GAAyB,SAAA;AAAA;AAAA,UAGZ,0BAAA;EACf,YAAA,EAAc,wBAAA;EACd,UAAA,EAAY,sBAAA;EAvCR;;;;EA4CJ,sBAAA,GAAyB,SAAA;EA5CpB;;;AACE;EAgDP,qBAAA;AAAA;AAAA,KAGU,+BAAA,GACV,2BAA2B,CAAC,+BAAA;AAAA,KAElB,sBAAA,GACV,2BAA2B,CAAC,sBAAA;AAAA,KAElB,yBAAA,GACV,2BAA2B,CAAC,yBAAA;AAAA,KAElB,mBAAA,GAAsB,2BAAA,CAChC,gBAAA,CAAiB,mBAAA;AAAA,KAGP,mBAAA,GACV,2BAA2B,CAAC,mBAAA;AAAA,KAElB,uBAAA;EACV,MAAA,EAAQ,sBAAsB;EA/DK;;;;EAoEnC,aAAA;AAAA;AAAA,UAGe,gCAAA;EACf,QAAA,EAAU,mBAAA;EACV,gBAAA,EAAkB,0BAAA;EAClB,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;EACvB,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,sBAAA;EACb,YAAA,EAAc,uBAAA;EACd,cAAA,EAAgB,yBAAA;EAChB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,sBAAA,GACV,gCAAA;EACE,WAAA,EAAa,iBAAiB;AAAA"}
@@ -0,0 +1,155 @@
1
+ //#region src/types/engineErrorCodes.d.ts
2
+ /**
3
+ * Numeric error codes returned by the engine service API. Codes shared across all Nado backend
4
+ * services (see {@link NADO_ERROR_CODES}) are inlined via spread; engine-specific codes are in
5
+ * the 2xxx range and come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`).
6
+ *
7
+ * These codes are returned in the `error_code` field of both `/query` and `/execute` failure
8
+ * responses — see {@link EngineServerQueryFailureResponse} and
9
+ * {@link EngineServerExecuteFailureResult}. The trigger service reuses the same 2xxx codes via
10
+ * {@link TRIGGER_ERROR_CODES}.
11
+ */
12
+ declare const ENGINE_ERROR_CODES: {
13
+ /** Order price not divisible by the market's price increment. */readonly INVALID_PRICE_INCREMENT: 2000; /** Order amount not divisible by the market's size increment. */
14
+ readonly INVALID_AMOUNT_INCREMENT: 2001; /** Order amount is zero. */
15
+ readonly ZERO_AMOUNT: 2002; /** Order amount is below the market's minimum size. */
16
+ readonly ORDER_AMOUNT_TOO_SMALL: 2003; /** Order has already expired. */
17
+ readonly ORDER_EXPIRED: 2004; /** Maximum open orders limit reached for the market. */
18
+ readonly MAX_ORDERS_LIMIT_REACHED: 2005; /** Order would lower account health below the required threshold. */
19
+ readonly UNHEALTHY_ORDER: 2006; /** Order price is outside the allowed oracle price deviation range. */
20
+ readonly ORACLE_PRICE_DIFFERENCE: 2007; /** Post-only order would cross the book. */
21
+ readonly POST_ONLY_ORDER_CROSSES_BOOK: 2008; /** Order type is not supported. */
22
+ readonly ORDER_TYPE_NOT_SUPPORTED: 2009; /** Taker health checks failed at match time. */
23
+ readonly INVALID_TAKER: 2010; /** Request received after its `recv_time`. */
24
+ readonly LATE_RECV_EXECUTION: 2011; /** Request received more than 100s before its `recv_time`. */
25
+ readonly EARLY_RECV_EXECUTION: 2012; /** An order with the same digest already exists. */
26
+ readonly DIGEST_ALREADY_EXISTS: 2013; /** Cancellation request targets an order from a different subaccount. */
27
+ readonly UNAUTHORIZED_SUBACCOUNT_CANCELLATION: 2014; /** Market for the given product/ticker ID was not found. */
28
+ readonly MARKET_NOT_FOUND: 2015; /** Invalid product ID. */
29
+ readonly INVALID_PRODUCT_ID: 2016; /** Spot execute without leverage would exceed the borrow limit. */
30
+ readonly SPOT_EXECUTE_EXCEEDS_BORROW_LIMIT: 2017; /** Product ID must refer to a spot market. */
31
+ readonly INVALID_SPOT_PRODUCT_ID: 2018; /** Spot leverage flag applied to a non-spot product. */
32
+ readonly INAPPROPRIATE_SPOT_LEVERAGE: 2019; /** Order with the given digest was not found. */
33
+ readonly ORDER_NOT_FOUND: 2020; /** Address risk too high. */
34
+ readonly ADDRESS_RISK_TOO_HIGH: 2021; /** Invalid nonce. */
35
+ readonly INVALID_NONCE: 2022; /** Address risk screening is still pending. */
36
+ readonly ADDRESS_SCREENING_PENDING: 2023; /** Address has no prior deposits. */
37
+ readonly NO_PRIOR_DEPOSIT: 2024; /** Single-signature session requires a minimum account value. */
38
+ readonly SINGLE_SIGNATURE_INSUFFICIENT_ACCOUNT_VALUE: 2025; /** Attempted to link the same signer address twice. */
39
+ readonly DUPLICATE_SIGNER_LINKING: 2026; /** Signature is the wrong length. */
40
+ readonly SIGNATURE_LENGTH: 2027; /** Signer address cannot be zero. */
41
+ readonly INVALID_SIGNER_ZERO: 2029; /** Linked signer update rate limit exceeded. */
42
+ readonly LINKED_SIGNER_UPDATE_LIMIT_EXCEEDED: 2030; /** Fill-or-kill order could not be fully filled. */
43
+ readonly FILL_OR_KILL_NOT_FILLED: 2031; /** No sender field in the signed payload. */
44
+ readonly SENDER_MISSING_IN_PAYLOAD: 2032; /** No nonce field in the signed payload. */
45
+ readonly NONCE_MISSING_IN_PAYLOAD: 2033; /** Invalid signature `v` value. */
46
+ readonly INVALID_SIGNATURE_V: 2034; /** Generic signature verification error. */
47
+ readonly SIGNATURE_ERROR: 2035; /** Subaccount health is too low for the operation. */
48
+ readonly SUBACCOUNT_HEALTH_TOO_LOW: 2036; /** Attempted to burn more LP tokens than owned. */
49
+ readonly EXCESSIVE_LP_TOKEN_BURN: 2037; /** Invalid execute message format. */
50
+ readonly INVALID_EXECUTE_MESSAGE: 2038; /** digests and product_ids arrays have mismatched lengths. */
51
+ readonly MISMATCHED_DIGESTS_AND_PRODUCT_IDS_LENGTH: 2039; /** Invalid boolean value in the request. */
52
+ readonly INVALID_BOOL: 2040; /** Rebate execute subaccounts/amounts arrays have mismatched lengths. */
53
+ readonly REBATE_EXECUTE_FORMATTING: 2041; /** Account is not eligible for liquidation. */
54
+ readonly NOT_LIQUIDATABLE: 2042; /** Liquidator's health is too low. */
55
+ readonly LIQUIDATOR_HEALTH_TOO_LOW: 2043; /** Liquidation amount exceeds the available amount. */
56
+ readonly LIQUIDATION_AMOUNT_TOO_MUCH: 2044; /** Invalid liquidation parameters. */
57
+ readonly INVALID_LIQUIDATION_PARAMETERS: 2045; /** Perp liquidation amount not divisible by size increment. */
58
+ readonly PERP_LIQUIDATION_SIZE_INCREMENT_MISMATCH: 2046; /** Liquidation amount is too small, too large, or has a sign mismatch. */
59
+ readonly INVALID_LIQUIDATION_AMOUNT: 2047; /** Cannot liquidate liabilities before perps. */
60
+ readonly LIABILITIES_BEFORE_PERPS_LIQUIDATION_ATTEMPT: 2048; /** ERC20 transfer failed on-chain. */
61
+ readonly TRANSFER_FAILED: 2049; /** Action is not authorized for the sender. */
62
+ readonly UNAUTHORIZED_ACTION: 2050; /** Subaccount is not eligible for finalization. */
63
+ readonly NOT_FINALIZABLE_SUBACCOUNT: 2051; /** Maker subaccount is invalid or failed the risk check. */
64
+ readonly INVALID_MAKER: 2052; /** Internal matching error: orders cannot be matched. */
65
+ readonly ORDERS_CANNOT_BE_MATCHED: 2053; /** Slippage exceeds the allowed maximum. */
66
+ readonly SLIPPAGE_TOO_HIGH: 2054; /** Price must be greater than zero. */
67
+ readonly INVALID_PRICE: 2055; /** Immediate-or-cancel order does not cross the book. */
68
+ readonly IMMEDIATE_OR_CANCEL_DOES_NOT_CROSS: 2056; /** Maximum trigger orders limit reached for the subaccount. */
69
+ readonly MAX_TRIGGER_ORDERS_LIMIT_REACHED: 2057; /** Trigger order with the given digest was not found. */
70
+ readonly TRIGGER_ORDER_NOT_FOUND: 2058; /** Submitted order is not a trigger order. */
71
+ readonly NOT_TRIGGER_ORDER: 2059; /** product_ids contains invalid or duplicate products. */
72
+ readonly INVALID_PRODUCT_IDS: 2060; /** product_type must be 'spot' or 'perp'. */
73
+ readonly INVALID_PRODUCT_TYPE: 2061; /** product_ids is empty. */
74
+ readonly MISSING_PRODUCT_IDS: 2062; /** Invalid query response. */
75
+ readonly INVALID_QUERY_RESPONSE: 2063; /** Reduce-only order would increase the position. */
76
+ readonly REDUCE_ONLY_INCREASES_POSITION: 2064; /** Bits 15-64 of the order appendix must be unset. */
77
+ readonly INVALID_APPENDIX_BITS: 2065; /** Cancel-and-place request has mismatched sender/signer between cancel and place. */
78
+ readonly CANCEL_AND_PLACE_DIFFERENT_SENDER_OR_SIGNER: 2066; /** Only taker orders can be reduce-only. */
79
+ readonly REDUCE_ONLY_NOT_TAKER: 2067; /** Invalid timestamp in spot/perp tick. */
80
+ readonly INVALID_TIME: 2068; /** Trading is blocked for this market. */
81
+ readonly MARKET_TRADING_BLOCKED: 2069; /** Market has reached its maximum open interest. */
82
+ readonly MARKET_MAX_OPEN_INTEREST: 2070; /** Product is at maximum utilization. */
83
+ readonly MAX_UTILIZATION: 2071; /** Order batch exceeds the maximum batch size. */
84
+ readonly ORDER_BATCH_EXCEED_LIMIT: 2072; /** Self-match (matching against own order) is not allowed. */
85
+ readonly SELF_MATCH_NOT_ALLOWED: 2073; /** Product IDs in the request do not match. */
86
+ readonly MISMATCHED_PRODUCT_IDS: 2074; /** Transfer quote amount is below the 5 USDT0 minimum. */
87
+ readonly TRANSFER_QUOTE_AMOUNT_TOO_SMALL: 2077; /** New recipient limit for transfer quotes exceeded; wait 24h. */
88
+ readonly TRANSFER_QUOTE_NEW_RECIPIENT_LIMIT_EXCEEDED: 2078; /** Self-transfer quote is not allowed. */
89
+ readonly SELF_TRANSFER_QUOTE_NOT_ALLOWED: 2079; /** WebSocket requires `permessage-deflate` compression header. */
90
+ readonly WEBSOCKET_COMPRESSION_REQUIRED: 2080; /** Isolated subaccount cannot place orders. */
91
+ readonly ISOLATED_SUBACCOUNT_CANNOT_PLACE_ORDER: 2081; /** Invalid product ID for an isolated subaccount. */
92
+ readonly ISOLATED_SUBACCOUNT_INVALID_PRODUCT: 2082; /** Isolated orders cannot be placed on spot markets. */
93
+ readonly INVALID_ISOLATED_SPOT_ORDER: 2083; /** Isolated margin must be non-negative. */
94
+ readonly INVALID_ISOLATED_MARGIN: 2086; /** Failed to create an isolated subaccount. */
95
+ readonly FAILED_TO_CREATE_ISOLATED_SUBACCOUNT: 2087; /** Cannot link a signer to an isolated subaccount. */
96
+ readonly INVALID_LINK_SIGNER_SENDER: 2089; /** NLP mint amount is below the 1 USDT0 minimum. */
97
+ readonly MINT_NLP_AMOUNT_TOO_SMALL: 2090; /** Order amount is too large. */
98
+ readonly AMOUNT_TOO_LARGE: 2091; /** N_ACCOUNT health is too low. */
99
+ readonly N_ACCOUNT_HEALTH_TOO_LOW: 2092; /** Cannot execute on a non-canonical chain. */
100
+ readonly NOT_CANONICAL_CHAIN: 2093; /** Order notional (amount * price) is below the minimum size. */
101
+ readonly ORDER_SIZE_TOO_SMALL: 2094; /** Order version in the appendix does not match the expected version. */
102
+ readonly INVALID_ORDER_VERSION: 2095; /** Not enough unlocked NLP to perform the operation. */
103
+ readonly UNLOCKED_NLP_INSUFFICIENT: 2096; /** Invalid trigger order appendix. */
104
+ readonly INVALID_TRIGGER_ORDER: 2097; /** Invalid TWAP order configuration. */
105
+ readonly INVALID_TWAP: 2098; /** TWAP order must be immediate-or-cancel. */
106
+ readonly INVALID_TWAP_ORDER_TYPE: 2099; /** TWAP number of times is out of range. */
107
+ readonly INVALID_TWAP_TIMES: 2100; /** TWAP amount is not divisible by the number of times. */
108
+ readonly INVALID_TWAP_AMOUNT_DISTRIBUTION: 2101; /** TWAP expiration exceeds the 25-hour maximum. */
109
+ readonly INVALID_TWAP_EXPIRATION: 2102; /** TWAP interval is out of range. */
110
+ readonly INVALID_TWAP_INTERVAL: 2103; /** TWAP total duration exceeds 86400 seconds. */
111
+ readonly INVALID_TWAP_TOTAL_DURATION: 2104; /** TWAP expiration is before the minimum required time. */
112
+ readonly INVALID_TWAP_EXPIRATION_TIMING: 2105; /** TWAP random configuration flags are mismatched. */
113
+ readonly INVALID_TWAP_RANDOM_CONFIGURATION: 2106; /** TWAP amount is zero or has a sign mismatch. */
114
+ readonly INVALID_TWAP_AMOUNT: 2107; /** TWAP individual amounts do not sum to the order amount. */
115
+ readonly INVALID_TWAP_AMOUNTS_SUM: 2108; /** TWAP trigger_amount configuration is mismatched. */
116
+ readonly INVALID_TWAP_TRIGGER_AMOUNT_CONFIGURATION: 2109; /** TWAP orders cannot be isolated. */
117
+ readonly INVALID_TWAP_ISOLATED: 2110; /** Cannot place more than 50 orders in a single batch. */
118
+ readonly MAX_ORDER_LIMIT_EXCEEDED: 2111; /** NLP pool accounts cannot place isolated orders. */
119
+ readonly NLP_POOL_ACCOUNTS_CANNOT_PLACE_ISOLATED_ORDER: 2112; /** NLP pool accounts cannot place trigger orders. */
120
+ readonly NLP_POOL_ACCOUNTS_CANNOT_PLACE_TRIGGER_ORDER: 2113; /** Batch orders must have the same sender. */
121
+ readonly BATCH_SENDER_MISMATCH: 2114; /** Liquidation was frontrun by an NLP account. */
122
+ readonly LIQUIDATION_FRONTRUN_BY_NLP: 2115; /** NLP burn amount is less than or equal to the burning fee. */
123
+ readonly BURN_NLP_AMOUNT_TOO_SMALL: 2116; /** Market is in post-only mode. */
124
+ readonly MARKET_POST_ONLY_MODE: 2117; /** Invalid builder ID or builder fee. */
125
+ readonly INVALID_BUILDER: 2118; /** Market is in reduce-only mode. */
126
+ readonly MARKET_REDUCE_ONLY_MODE: 2119; /** Cancel-and-place: place was aborted because the cancel was partially filled. */
127
+ readonly CANCEL_AND_PLACE_ORDER_FILLED: 2120; /** Cancel-and-place: place was aborted because the cancel failed. */
128
+ readonly CANCEL_AND_PLACE_CANCEL_FAILED: 2121; /** Market is in isolated-only mode. */
129
+ readonly MARKET_ISOLATED_ONLY_MODE: 2122; /** `required_unfilled_amount` is only valid for single-order cancellations. */
130
+ readonly REQUIRED_AMOUNT_MULTIPLE_CANCEL_ORDERS: 2123; /** Cancel order amount does not match the order's amount. */
131
+ readonly CANCEL_ORDER_AMOUNT_MISMATCH: 2124; /** Maximum of 10 isolated positions reached. */
132
+ readonly ISOLATED_SUBACCOUNT_LIMIT_REACHED: 2125; /** No eligible trigger found for the dependency digest. */
133
+ readonly NO_ELIGIBLE_TRIGGER: 2126;
134
+ readonly RATE_LIMIT: 1000;
135
+ readonly BLACKLISTED_ADDRESS: 1001;
136
+ readonly BLOCKED_LOCATION: 1002;
137
+ readonly BLOCKED_SUBDIVISION: 1003;
138
+ readonly MAINTENANCE: 1004;
139
+ readonly GATEWAY_INVALID_REQUEST: 1005;
140
+ readonly SERVICE_UNAVAILABLE: 1006;
141
+ readonly INVALID_SIGNER: 2028;
142
+ readonly PERP_TICK_FORMATTING: 4000;
143
+ readonly NOT_IMPLEMENTED: 4001;
144
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002;
145
+ readonly EVM_REVERT: 4003;
146
+ readonly WITHDRAW_RISK: 4004;
147
+ readonly INTERNAL_ERROR: 5000;
148
+ };
149
+ /**
150
+ * Union of all known engine service API error codes.
151
+ */
152
+ type EngineErrorCode = (typeof ENGINE_ERROR_CODES)[keyof typeof ENGINE_ERROR_CODES];
153
+ //#endregion
154
+ export { EngineErrorCode as n, ENGINE_ERROR_CODES as t };
155
+ //# sourceMappingURL=engineErrorCodes-CBw912Mo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engineErrorCodes-CBw912Mo.d.cts","names":[],"sources":["../src/types/src/types/engineErrorCodes.ts"],"mappings":";;AAYA;;;;;;;;;cAAa,kBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA+Pc;EAAA,sCACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -0,0 +1,155 @@
1
+ //#region src/types/engineErrorCodes.d.ts
2
+ /**
3
+ * Numeric error codes returned by the engine service API. Codes shared across all Nado backend
4
+ * services (see {@link NADO_ERROR_CODES}) are inlined via spread; engine-specific codes are in
5
+ * the 2xxx range and come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`).
6
+ *
7
+ * These codes are returned in the `error_code` field of both `/query` and `/execute` failure
8
+ * responses — see {@link EngineServerQueryFailureResponse} and
9
+ * {@link EngineServerExecuteFailureResult}. The trigger service reuses the same 2xxx codes via
10
+ * {@link TRIGGER_ERROR_CODES}.
11
+ */
12
+ declare const ENGINE_ERROR_CODES: {
13
+ /** Order price not divisible by the market's price increment. */readonly INVALID_PRICE_INCREMENT: 2000; /** Order amount not divisible by the market's size increment. */
14
+ readonly INVALID_AMOUNT_INCREMENT: 2001; /** Order amount is zero. */
15
+ readonly ZERO_AMOUNT: 2002; /** Order amount is below the market's minimum size. */
16
+ readonly ORDER_AMOUNT_TOO_SMALL: 2003; /** Order has already expired. */
17
+ readonly ORDER_EXPIRED: 2004; /** Maximum open orders limit reached for the market. */
18
+ readonly MAX_ORDERS_LIMIT_REACHED: 2005; /** Order would lower account health below the required threshold. */
19
+ readonly UNHEALTHY_ORDER: 2006; /** Order price is outside the allowed oracle price deviation range. */
20
+ readonly ORACLE_PRICE_DIFFERENCE: 2007; /** Post-only order would cross the book. */
21
+ readonly POST_ONLY_ORDER_CROSSES_BOOK: 2008; /** Order type is not supported. */
22
+ readonly ORDER_TYPE_NOT_SUPPORTED: 2009; /** Taker health checks failed at match time. */
23
+ readonly INVALID_TAKER: 2010; /** Request received after its `recv_time`. */
24
+ readonly LATE_RECV_EXECUTION: 2011; /** Request received more than 100s before its `recv_time`. */
25
+ readonly EARLY_RECV_EXECUTION: 2012; /** An order with the same digest already exists. */
26
+ readonly DIGEST_ALREADY_EXISTS: 2013; /** Cancellation request targets an order from a different subaccount. */
27
+ readonly UNAUTHORIZED_SUBACCOUNT_CANCELLATION: 2014; /** Market for the given product/ticker ID was not found. */
28
+ readonly MARKET_NOT_FOUND: 2015; /** Invalid product ID. */
29
+ readonly INVALID_PRODUCT_ID: 2016; /** Spot execute without leverage would exceed the borrow limit. */
30
+ readonly SPOT_EXECUTE_EXCEEDS_BORROW_LIMIT: 2017; /** Product ID must refer to a spot market. */
31
+ readonly INVALID_SPOT_PRODUCT_ID: 2018; /** Spot leverage flag applied to a non-spot product. */
32
+ readonly INAPPROPRIATE_SPOT_LEVERAGE: 2019; /** Order with the given digest was not found. */
33
+ readonly ORDER_NOT_FOUND: 2020; /** Address risk too high. */
34
+ readonly ADDRESS_RISK_TOO_HIGH: 2021; /** Invalid nonce. */
35
+ readonly INVALID_NONCE: 2022; /** Address risk screening is still pending. */
36
+ readonly ADDRESS_SCREENING_PENDING: 2023; /** Address has no prior deposits. */
37
+ readonly NO_PRIOR_DEPOSIT: 2024; /** Single-signature session requires a minimum account value. */
38
+ readonly SINGLE_SIGNATURE_INSUFFICIENT_ACCOUNT_VALUE: 2025; /** Attempted to link the same signer address twice. */
39
+ readonly DUPLICATE_SIGNER_LINKING: 2026; /** Signature is the wrong length. */
40
+ readonly SIGNATURE_LENGTH: 2027; /** Signer address cannot be zero. */
41
+ readonly INVALID_SIGNER_ZERO: 2029; /** Linked signer update rate limit exceeded. */
42
+ readonly LINKED_SIGNER_UPDATE_LIMIT_EXCEEDED: 2030; /** Fill-or-kill order could not be fully filled. */
43
+ readonly FILL_OR_KILL_NOT_FILLED: 2031; /** No sender field in the signed payload. */
44
+ readonly SENDER_MISSING_IN_PAYLOAD: 2032; /** No nonce field in the signed payload. */
45
+ readonly NONCE_MISSING_IN_PAYLOAD: 2033; /** Invalid signature `v` value. */
46
+ readonly INVALID_SIGNATURE_V: 2034; /** Generic signature verification error. */
47
+ readonly SIGNATURE_ERROR: 2035; /** Subaccount health is too low for the operation. */
48
+ readonly SUBACCOUNT_HEALTH_TOO_LOW: 2036; /** Attempted to burn more LP tokens than owned. */
49
+ readonly EXCESSIVE_LP_TOKEN_BURN: 2037; /** Invalid execute message format. */
50
+ readonly INVALID_EXECUTE_MESSAGE: 2038; /** digests and product_ids arrays have mismatched lengths. */
51
+ readonly MISMATCHED_DIGESTS_AND_PRODUCT_IDS_LENGTH: 2039; /** Invalid boolean value in the request. */
52
+ readonly INVALID_BOOL: 2040; /** Rebate execute subaccounts/amounts arrays have mismatched lengths. */
53
+ readonly REBATE_EXECUTE_FORMATTING: 2041; /** Account is not eligible for liquidation. */
54
+ readonly NOT_LIQUIDATABLE: 2042; /** Liquidator's health is too low. */
55
+ readonly LIQUIDATOR_HEALTH_TOO_LOW: 2043; /** Liquidation amount exceeds the available amount. */
56
+ readonly LIQUIDATION_AMOUNT_TOO_MUCH: 2044; /** Invalid liquidation parameters. */
57
+ readonly INVALID_LIQUIDATION_PARAMETERS: 2045; /** Perp liquidation amount not divisible by size increment. */
58
+ readonly PERP_LIQUIDATION_SIZE_INCREMENT_MISMATCH: 2046; /** Liquidation amount is too small, too large, or has a sign mismatch. */
59
+ readonly INVALID_LIQUIDATION_AMOUNT: 2047; /** Cannot liquidate liabilities before perps. */
60
+ readonly LIABILITIES_BEFORE_PERPS_LIQUIDATION_ATTEMPT: 2048; /** ERC20 transfer failed on-chain. */
61
+ readonly TRANSFER_FAILED: 2049; /** Action is not authorized for the sender. */
62
+ readonly UNAUTHORIZED_ACTION: 2050; /** Subaccount is not eligible for finalization. */
63
+ readonly NOT_FINALIZABLE_SUBACCOUNT: 2051; /** Maker subaccount is invalid or failed the risk check. */
64
+ readonly INVALID_MAKER: 2052; /** Internal matching error: orders cannot be matched. */
65
+ readonly ORDERS_CANNOT_BE_MATCHED: 2053; /** Slippage exceeds the allowed maximum. */
66
+ readonly SLIPPAGE_TOO_HIGH: 2054; /** Price must be greater than zero. */
67
+ readonly INVALID_PRICE: 2055; /** Immediate-or-cancel order does not cross the book. */
68
+ readonly IMMEDIATE_OR_CANCEL_DOES_NOT_CROSS: 2056; /** Maximum trigger orders limit reached for the subaccount. */
69
+ readonly MAX_TRIGGER_ORDERS_LIMIT_REACHED: 2057; /** Trigger order with the given digest was not found. */
70
+ readonly TRIGGER_ORDER_NOT_FOUND: 2058; /** Submitted order is not a trigger order. */
71
+ readonly NOT_TRIGGER_ORDER: 2059; /** product_ids contains invalid or duplicate products. */
72
+ readonly INVALID_PRODUCT_IDS: 2060; /** product_type must be 'spot' or 'perp'. */
73
+ readonly INVALID_PRODUCT_TYPE: 2061; /** product_ids is empty. */
74
+ readonly MISSING_PRODUCT_IDS: 2062; /** Invalid query response. */
75
+ readonly INVALID_QUERY_RESPONSE: 2063; /** Reduce-only order would increase the position. */
76
+ readonly REDUCE_ONLY_INCREASES_POSITION: 2064; /** Bits 15-64 of the order appendix must be unset. */
77
+ readonly INVALID_APPENDIX_BITS: 2065; /** Cancel-and-place request has mismatched sender/signer between cancel and place. */
78
+ readonly CANCEL_AND_PLACE_DIFFERENT_SENDER_OR_SIGNER: 2066; /** Only taker orders can be reduce-only. */
79
+ readonly REDUCE_ONLY_NOT_TAKER: 2067; /** Invalid timestamp in spot/perp tick. */
80
+ readonly INVALID_TIME: 2068; /** Trading is blocked for this market. */
81
+ readonly MARKET_TRADING_BLOCKED: 2069; /** Market has reached its maximum open interest. */
82
+ readonly MARKET_MAX_OPEN_INTEREST: 2070; /** Product is at maximum utilization. */
83
+ readonly MAX_UTILIZATION: 2071; /** Order batch exceeds the maximum batch size. */
84
+ readonly ORDER_BATCH_EXCEED_LIMIT: 2072; /** Self-match (matching against own order) is not allowed. */
85
+ readonly SELF_MATCH_NOT_ALLOWED: 2073; /** Product IDs in the request do not match. */
86
+ readonly MISMATCHED_PRODUCT_IDS: 2074; /** Transfer quote amount is below the 5 USDT0 minimum. */
87
+ readonly TRANSFER_QUOTE_AMOUNT_TOO_SMALL: 2077; /** New recipient limit for transfer quotes exceeded; wait 24h. */
88
+ readonly TRANSFER_QUOTE_NEW_RECIPIENT_LIMIT_EXCEEDED: 2078; /** Self-transfer quote is not allowed. */
89
+ readonly SELF_TRANSFER_QUOTE_NOT_ALLOWED: 2079; /** WebSocket requires `permessage-deflate` compression header. */
90
+ readonly WEBSOCKET_COMPRESSION_REQUIRED: 2080; /** Isolated subaccount cannot place orders. */
91
+ readonly ISOLATED_SUBACCOUNT_CANNOT_PLACE_ORDER: 2081; /** Invalid product ID for an isolated subaccount. */
92
+ readonly ISOLATED_SUBACCOUNT_INVALID_PRODUCT: 2082; /** Isolated orders cannot be placed on spot markets. */
93
+ readonly INVALID_ISOLATED_SPOT_ORDER: 2083; /** Isolated margin must be non-negative. */
94
+ readonly INVALID_ISOLATED_MARGIN: 2086; /** Failed to create an isolated subaccount. */
95
+ readonly FAILED_TO_CREATE_ISOLATED_SUBACCOUNT: 2087; /** Cannot link a signer to an isolated subaccount. */
96
+ readonly INVALID_LINK_SIGNER_SENDER: 2089; /** NLP mint amount is below the 1 USDT0 minimum. */
97
+ readonly MINT_NLP_AMOUNT_TOO_SMALL: 2090; /** Order amount is too large. */
98
+ readonly AMOUNT_TOO_LARGE: 2091; /** N_ACCOUNT health is too low. */
99
+ readonly N_ACCOUNT_HEALTH_TOO_LOW: 2092; /** Cannot execute on a non-canonical chain. */
100
+ readonly NOT_CANONICAL_CHAIN: 2093; /** Order notional (amount * price) is below the minimum size. */
101
+ readonly ORDER_SIZE_TOO_SMALL: 2094; /** Order version in the appendix does not match the expected version. */
102
+ readonly INVALID_ORDER_VERSION: 2095; /** Not enough unlocked NLP to perform the operation. */
103
+ readonly UNLOCKED_NLP_INSUFFICIENT: 2096; /** Invalid trigger order appendix. */
104
+ readonly INVALID_TRIGGER_ORDER: 2097; /** Invalid TWAP order configuration. */
105
+ readonly INVALID_TWAP: 2098; /** TWAP order must be immediate-or-cancel. */
106
+ readonly INVALID_TWAP_ORDER_TYPE: 2099; /** TWAP number of times is out of range. */
107
+ readonly INVALID_TWAP_TIMES: 2100; /** TWAP amount is not divisible by the number of times. */
108
+ readonly INVALID_TWAP_AMOUNT_DISTRIBUTION: 2101; /** TWAP expiration exceeds the 25-hour maximum. */
109
+ readonly INVALID_TWAP_EXPIRATION: 2102; /** TWAP interval is out of range. */
110
+ readonly INVALID_TWAP_INTERVAL: 2103; /** TWAP total duration exceeds 86400 seconds. */
111
+ readonly INVALID_TWAP_TOTAL_DURATION: 2104; /** TWAP expiration is before the minimum required time. */
112
+ readonly INVALID_TWAP_EXPIRATION_TIMING: 2105; /** TWAP random configuration flags are mismatched. */
113
+ readonly INVALID_TWAP_RANDOM_CONFIGURATION: 2106; /** TWAP amount is zero or has a sign mismatch. */
114
+ readonly INVALID_TWAP_AMOUNT: 2107; /** TWAP individual amounts do not sum to the order amount. */
115
+ readonly INVALID_TWAP_AMOUNTS_SUM: 2108; /** TWAP trigger_amount configuration is mismatched. */
116
+ readonly INVALID_TWAP_TRIGGER_AMOUNT_CONFIGURATION: 2109; /** TWAP orders cannot be isolated. */
117
+ readonly INVALID_TWAP_ISOLATED: 2110; /** Cannot place more than 50 orders in a single batch. */
118
+ readonly MAX_ORDER_LIMIT_EXCEEDED: 2111; /** NLP pool accounts cannot place isolated orders. */
119
+ readonly NLP_POOL_ACCOUNTS_CANNOT_PLACE_ISOLATED_ORDER: 2112; /** NLP pool accounts cannot place trigger orders. */
120
+ readonly NLP_POOL_ACCOUNTS_CANNOT_PLACE_TRIGGER_ORDER: 2113; /** Batch orders must have the same sender. */
121
+ readonly BATCH_SENDER_MISMATCH: 2114; /** Liquidation was frontrun by an NLP account. */
122
+ readonly LIQUIDATION_FRONTRUN_BY_NLP: 2115; /** NLP burn amount is less than or equal to the burning fee. */
123
+ readonly BURN_NLP_AMOUNT_TOO_SMALL: 2116; /** Market is in post-only mode. */
124
+ readonly MARKET_POST_ONLY_MODE: 2117; /** Invalid builder ID or builder fee. */
125
+ readonly INVALID_BUILDER: 2118; /** Market is in reduce-only mode. */
126
+ readonly MARKET_REDUCE_ONLY_MODE: 2119; /** Cancel-and-place: place was aborted because the cancel was partially filled. */
127
+ readonly CANCEL_AND_PLACE_ORDER_FILLED: 2120; /** Cancel-and-place: place was aborted because the cancel failed. */
128
+ readonly CANCEL_AND_PLACE_CANCEL_FAILED: 2121; /** Market is in isolated-only mode. */
129
+ readonly MARKET_ISOLATED_ONLY_MODE: 2122; /** `required_unfilled_amount` is only valid for single-order cancellations. */
130
+ readonly REQUIRED_AMOUNT_MULTIPLE_CANCEL_ORDERS: 2123; /** Cancel order amount does not match the order's amount. */
131
+ readonly CANCEL_ORDER_AMOUNT_MISMATCH: 2124; /** Maximum of 10 isolated positions reached. */
132
+ readonly ISOLATED_SUBACCOUNT_LIMIT_REACHED: 2125; /** No eligible trigger found for the dependency digest. */
133
+ readonly NO_ELIGIBLE_TRIGGER: 2126;
134
+ readonly RATE_LIMIT: 1000;
135
+ readonly BLACKLISTED_ADDRESS: 1001;
136
+ readonly BLOCKED_LOCATION: 1002;
137
+ readonly BLOCKED_SUBDIVISION: 1003;
138
+ readonly MAINTENANCE: 1004;
139
+ readonly GATEWAY_INVALID_REQUEST: 1005;
140
+ readonly SERVICE_UNAVAILABLE: 1006;
141
+ readonly INVALID_SIGNER: 2028;
142
+ readonly PERP_TICK_FORMATTING: 4000;
143
+ readonly NOT_IMPLEMENTED: 4001;
144
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002;
145
+ readonly EVM_REVERT: 4003;
146
+ readonly WITHDRAW_RISK: 4004;
147
+ readonly INTERNAL_ERROR: 5000;
148
+ };
149
+ /**
150
+ * Union of all known engine service API error codes.
151
+ */
152
+ type EngineErrorCode = (typeof ENGINE_ERROR_CODES)[keyof typeof ENGINE_ERROR_CODES];
153
+ //#endregion
154
+ export { EngineErrorCode as n, ENGINE_ERROR_CODES as t };
155
+ //# sourceMappingURL=engineErrorCodes-CuZ-6EpA.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engineErrorCodes-CuZ-6EpA.d.ts","names":[],"sources":["../src/types/src/types/engineErrorCodes.ts"],"mappings":";;AAYA;;;;;;;;;cAAa,kBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA+Pc;EAAA,sCACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
package/dist/index.cjs CHANGED
@@ -3,10 +3,12 @@ const require_types_EngineServerFailureError = require("./types/EngineServerFail
3
3
  const require_utils_queryDataMappers = require("./utils/queryDataMappers.cjs");
4
4
  const require_EngineClient = require("./EngineClient.cjs");
5
5
  const require_endpoints = require("./endpoints.cjs");
6
+ const require_types_engineErrorCodes = require("./types/engineErrorCodes.cjs");
6
7
  const require_types_serverQueryTypes = require("./types/serverQueryTypes.cjs");
7
8
  require("./types/index.cjs");
8
9
  require("./utils/index.cjs");
9
10
  exports.ENGINE_CLIENT_ENDPOINTS = require_endpoints.ENGINE_CLIENT_ENDPOINTS;
11
+ exports.ENGINE_ERROR_CODES = require_types_engineErrorCodes.ENGINE_ERROR_CODES;
10
12
  exports.ENGINE_SERVER_STATUS_VALUES = require_types_serverQueryTypes.ENGINE_SERVER_STATUS_VALUES;
11
13
  exports.ENGINE_WS_CLIENT_ENDPOINTS = require_endpoints.ENGINE_WS_CLIENT_ENDPOINTS;
12
14
  exports.ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS = require_endpoints.ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,14 @@
1
1
  import { a as EngineServerOrder, c as EngineServerPerpProduct, d as EngineServerRisk, f as EngineServerSpotBalance, g as EngineServerSpotState, h as EngineServerSpotProduct, i as EngineServerNlpLockedBalance, l as EngineServerPerpState, m as EngineServerSpotConfig, n as EngineServerHealthBreakdown, o as EngineServerPerpBalance, p as EngineServerSpotBalanceData, r as EngineServerNlpBalance, s as EngineServerPerpBalanceData, t as EngineServerBookInfo, u as EngineServerProductType } from "./serverQueryModelTypes-85xnbU-a.cjs";
2
2
  import { $ as EngineServerSubaccountOrdersQueryParams, A as EngineServerNlpLockedBalancesQueryParams, B as EngineServerQueryFailureResponse, C as EngineServerMaxBurnNlpResponse, D as EngineServerMaxOrderSizeResponse, E as EngineServerMaxOrderSizeQueryParams, F as EngineServerNoncesResponse, G as EngineServerQueryResponseByType, H as EngineServerQueryRequestByType, I as EngineServerOrderResponse, J as EngineServerSubaccountFeeRatesParams, K as EngineServerQuerySuccessResponse, L as EngineServerOrdersQueryParams, M as EngineServerNlpPool, N as EngineServerNlpPoolInfoResponse, O as EngineServerMaxWithdrawableQueryParams, P as EngineServerNoncesParams, Q as EngineServerSubaccountOrders, R as EngineServerPriceTickLiquidity, S as EngineServerMaxBurnNlpQueryParams, T as EngineServerMaxMintNlpResponse, U as EngineServerQueryRequestType, V as EngineServerQueryRequest, W as EngineServerQueryResponse, X as EngineServerSubaccountInfoResponse, Y as EngineServerSubaccountInfoQueryParams, Z as EngineServerSubaccountInfoState, _ as EngineServerMarketPrice, a as EngineServerEdgeAllProductsResponse, at as EngineServerValidateOrderQueryParams, b as EngineServerMarketPricesQueryParams, c as EngineServerHealthGroupsResponse, d as EngineServerIsolatedPositionsQueryParams, et as EngineServerSubaccountOrdersResponse, f as EngineServerIsolatedPositionsResponse, g as EngineServerMarketLiquidityResponse, h as EngineServerMarketLiquidityQueryParams, i as EngineServerContractsResponse, it as EngineServerTimeResponse, j as EngineServerNlpLockedBalancesResponse, k as EngineServerMaxWithdrawableResponse, l as EngineServerIpBlockResponse, m as EngineServerLinkedSignerResponse, n as EngineInsuranceResponse, nt as EngineServerSymbolsQueryParams, o as EngineServerFeeRatesResponse, ot as EngineServerValidateOrderResponse, p as EngineServerLinkedSignerParams, q as EngineServerStatusResponse, r as EngineServerAllProductsResponse, rt as EngineServerSymbolsResponse, s as EngineServerGetOrderQueryParams, t as ENGINE_SERVER_STATUS_VALUES, tt as EngineServerSymbol, u as EngineServerIsolatedPosition, v as EngineServerMarketPriceQueryParams, w as EngineServerMaxMintNlpQueryParams, x as EngineServerMarketPricesResponse, y as EngineServerMarketPriceResponse, z as EngineServerProductOrdersResponse } from "./serverQueryTypes-Dva9R2tV.cjs";
3
3
  import { a as EngineServerExecuteRequestByType, c as EngineServerExecuteResult, d as EngineServerPlaceOrderResponse, f as EngineServerPlaceOrdersResponse, i as EngineServerExecutePlaceOrderPayload, l as EngineServerExecuteSuccessResult, m as EngineServiceCancelAndPlaceParams, n as EngineServerCancelOrdersResponse, o as EngineServerExecuteRequestType, p as EngineServerUpdateDependencyResponse, r as EngineServerExecuteFailureResult, s as EngineServerExecuteResponseDataByType, t as EngineServerCancelOrdersParams, u as EngineServerPlaceOrderParams } from "./serverExecuteTypes-WltMT-zz.cjs";
4
- import { _ as WithBaseEngineExecuteParams, a as EngineExecuteRequestParamsByType, c as EngineMintNlpParams, d as EnginePlaceOrderResult, f as EnginePlaceOrdersParams, g as SignatureParams, h as EngineWithdrawCollateralV2Params, i as EngineCancelProductOrdersParams, l as EngineOrderParams, m as EngineWithdrawCollateralParams, n as EngineCancelAndPlaceParams, o as EngineLinkSignerParams, p as EngineTransferQuoteParams, r as EngineCancelOrdersParams, s as EngineLiquidateSubaccountParams, t as EngineBurnNlpParams, u as EnginePlaceOrderParams, v as WithSignature } from "./clientExecuteTypes-DnK1APG8.cjs";
4
+ import { _ as WithBaseEngineExecuteParams, a as EngineExecuteRequestParamsByType, c as EngineMintNlpParams, d as EnginePlaceOrderResult, f as EnginePlaceOrdersParams, g as SignatureParamsOrSignature, h as EngineWithdrawCollateralV2Params, i as EngineCancelProductOrdersParams, l as EngineOrderParams, m as EngineWithdrawCollateralParams, n as EngineCancelAndPlaceParams, o as EngineLinkSignerParams, p as EngineTransferQuoteParams, r as EngineCancelOrdersParams, s as EngineLiquidateSubaccountParams, t as EngineBurnNlpParams, u as EnginePlaceOrderParams, v as WithSignature } from "./clientExecuteTypes-BABishPC.cjs";
5
5
  import { $ as GetEngineSubaccountProductOrdersResponse, A as GetEngineMarketPriceResponse, B as GetEngineMaxWithdrawableResponse, C as GetEngineIsolatedPositionsParams, D as GetEngineMarketLiquidityParams, E as GetEngineLinkedSignerResponse, F as GetEngineMaxMintNlpAmountParams, G as GetEngineNoncesResponse, H as GetEngineNlpLockedBalancesResponse, I as GetEngineMaxMintNlpAmountResponse, J as GetEngineSubaccountFeeRatesParams, K as GetEngineOrderParams, L as GetEngineMaxOrderSizeParams, M as GetEngineMarketPricesResponse, N as GetEngineMaxBurnNlpAmountParams, O as GetEngineMarketLiquidityResponse, P as GetEngineMaxBurnNlpAmountResponse, Q as GetEngineSubaccountProductOrdersParams, R as GetEngineMaxOrderSizeResponse, S as GetEngineIpBlockStatusResponse, T as GetEngineLinkedSignerParams, U as GetEngineNlpPoolInfoResponse, V as GetEngineNlpLockedBalancesParams, W as GetEngineNoncesParams, X as GetEngineSubaccountOrdersParams, Y as GetEngineSubaccountFeeRatesResponse, Z as GetEngineSubaccountOrdersResponse, _ as GetEngineContractsResponse, a as EngineNlpLockedBalance, at as SubaccountIsolatedPosition, b as GetEngineHealthGroupsResponse, c as EnginePingResponse, ct as SubaccountSummaryState, d as EngineSymbol, dt as ValidateEngineOrderResponse, et as GetEngineSubaccountSummaryParams, f as EngineSymbolsResponse, ft as ValidateSignedEngineOrderParams, g as GetEngineCachedMarketPricesParams, h as GetEngineCachedBboHistoryResponse, i as EngineNlpBalance, it as NlpPool, j as GetEngineMarketPricesParams, k as GetEngineMarketPriceParams, l as EnginePriceTickLiquidity, lt as SubaccountTx, m as GetEngineCachedBboHistoryParams, n as EngineCachedTimeParams, nt as GetEngineSymbolsParams, o as EngineOrder, ot as SubaccountOrderFeeRates, p as GetEngineAllMarketsResponse, q as GetEngineOrderResponse, r as EngineMarketPrice, rt as GetEngineTimeResponse, s as EnginePingParams, st as SubaccountProductDeltaTx, t as EngineBboHistorySample, tt as GetEngineSubaccountSummaryResponse, u as EngineSubaccountOrders, ut as ValidateEngineOrderParams, v as GetEngineCountryCodeResponse, w as GetEngineIsolatedPositionsResponse, x as GetEngineInsuranceResponse, y as GetEngineEstimatedSubaccountSummaryParams, z as GetEngineMaxWithdrawableParams } from "./clientQueryTypes-BTKfuoGI.cjs";
6
- import { t as EngineServerFailureError } from "./EngineServerFailureError-Glp9zh5i.cjs";
7
- import { a as EngineServerCachedQueryRequestByType, c as EngineServerCachedQueryResponseByType, d as EngineServerEdgeControlRequestByType, f as EngineServerEdgeControlRequestType, g as EngineServerTimeQueryParams, h as EngineServerPingResponse, i as EngineServerCachedQueryRequest, l as EngineServerCachedQuerySuccessResponse, m as EngineServerPingQueryParams, n as EngineServerCachedBboHistoryResponse, o as EngineServerCachedQueryRequestType, p as EngineServerEdgeControlResponseByType, r as EngineServerCachedBboHistorySample, s as EngineServerCachedQueryResponse, t as EngineServerCachedBboHistoryQueryParams, u as EngineServerControlTimeResponse } from "./serverEdgeQueryTypes-BpMlbsCD.cjs";
8
- import { _ as PositionChangeReason, a as EngineServerSubscriptionBookDepthEvent, c as EngineServerSubscriptionFillEvent, d as EngineServerSubscriptionLatestCandlestickEvent, f as EngineServerSubscriptionLiquidationEvent, g as OrderUpdateReason, h as EngineServerSubscriptionTradeEvent, i as EngineServerSubscriptionBestBidOfferEvent, l as EngineServerSubscriptionFundingPaymentEvent, m as EngineServerSubscriptionPositionChangeEvent, n as EngineServerSubscriptionAllBboEvent, o as EngineServerSubscriptionEvent, p as EngineServerSubscriptionOrderUpdateEvent, r as EngineServerSubscriptionBaseEvent, s as EngineServerSubscriptionEventType, t as EngineServerAllBboEntry, u as EngineServerSubscriptionFundingRateEvent } from "./serverSubscriptionEventTypes-CQFY_NIZ.cjs";
9
- import { _ as EngineServerSubscriptionStream, a as EngineServerFundingPaymentStreamParams, b as EngineServerSubscriptionTimeResponse, c as EngineServerLiquidationStreamParams, d as EngineServerPositionChangeStreamParams, f as EngineServerSubscriptionParams, g as EngineServerSubscriptionRequestType, h as EngineServerSubscriptionRequestByType, i as EngineServerFillStreamParams, l as EngineServerOrderUpdateStreamParams, m as EngineServerSubscriptionRequest, n as EngineServerBestBidOfferStreamParams, o as EngineServerFundingRateStreamParams, p as EngineServerSubscriptionPingResponse, r as EngineServerBookDepthStreamParams, s as EngineServerLatestCandlestickStreamParams, t as EngineServerAllBboStreamParams, u as EngineServerPingParams, v as EngineServerSubscriptionStreamParamsByType, x as EngineServerTradeStreamParams, y as EngineServerSubscriptionStreamParamsType } from "./serverSubscriptionTypes-BA92bWic.cjs";
6
+ import { n as EngineErrorCode, t as ENGINE_ERROR_CODES } from "./engineErrorCodes-CBw912Mo.cjs";
7
+ import { t as EngineServerFailureError } from "./EngineServerFailureError-DPhoja6y.cjs";
8
+ import { a as EngineServerCachedQueryRequestByType, c as EngineServerCachedQueryResponseByType, d as EngineServerEdgeControlRequestByType, f as EngineServerEdgeControlRequestType, g as EngineServerTimeQueryParams, h as EngineServerPingResponse, i as EngineServerCachedQueryRequest, l as EngineServerCachedQuerySuccessResponse, m as EngineServerPingQueryParams, n as EngineServerCachedBboHistoryResponse, o as EngineServerCachedQueryRequestType, p as EngineServerEdgeControlResponseByType, r as EngineServerCachedBboHistorySample, s as EngineServerCachedQueryResponse, t as EngineServerCachedBboHistoryQueryParams, u as EngineServerControlTimeResponse } from "./serverEdgeQueryTypes-t88tK0Id.cjs";
9
+ import { _ as PositionChangeReason, a as EngineServerSubscriptionBookDepthEvent, c as EngineServerSubscriptionFillEvent, d as EngineServerSubscriptionLatestCandlestickEvent, f as EngineServerSubscriptionLiquidationEvent, g as OrderUpdateReason, h as EngineServerSubscriptionTradeEvent, i as EngineServerSubscriptionBestBidOfferEvent, l as EngineServerSubscriptionFundingPaymentEvent, m as EngineServerSubscriptionPositionChangeEvent, n as EngineServerSubscriptionAllBboEvent, o as EngineServerSubscriptionEvent, p as EngineServerSubscriptionOrderUpdateEvent, r as EngineServerSubscriptionBaseEvent, s as EngineServerSubscriptionEventType, t as EngineServerAllBboEntry, u as EngineServerSubscriptionFundingRateEvent } from "./serverSubscriptionEventTypes-BmKXVao3.cjs";
10
+ import { _ as EngineServerSubscriptionStream, a as EngineServerFundingPaymentStreamParams, b as EngineServerSubscriptionTimeResponse, c as EngineServerLiquidationStreamParams, d as EngineServerPositionChangeStreamParams, f as EngineServerSubscriptionParams, g as EngineServerSubscriptionRequestType, h as EngineServerSubscriptionRequestByType, i as EngineServerFillStreamParams, l as EngineServerOrderUpdateStreamParams, m as EngineServerSubscriptionRequest, n as EngineServerBestBidOfferStreamParams, o as EngineServerFundingRateStreamParams, p as EngineServerSubscriptionPingResponse, r as EngineServerBookDepthStreamParams, s as EngineServerLatestCandlestickStreamParams, t as EngineServerAllBboStreamParams, u as EngineServerPingParams, v as EngineServerSubscriptionStreamParamsByType, x as EngineServerTradeStreamParams, y as EngineServerSubscriptionStreamParamsType } from "./serverSubscriptionTypes-D_Os3P_c.cjs";
10
11
  import { EngineClient } from "./EngineClient.cjs";
11
12
  import { ENGINE_CLIENT_ENDPOINTS, ENGINE_WS_CLIENT_ENDPOINTS, ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS } from "./endpoints.cjs";
12
- import { a as mapEngineServerNlpLockedBalances, c as mapEngineServerPerpProduct, d as mapEngineServerSymbols, f as mapEngineServerTickLiquidity, i as mapEngineServerIsolatedPositions, l as mapEngineServerSpotProduct, n as mapEngineMarketPrice, o as mapEngineServerNlpPoolInfo, p as mapSubaccountSummary, r as mapEngineServerBalanceHealthContributions, s as mapEngineServerOrder, t as mapEngineBboHistory, u as mapEngineServerSymbol } from "./queryDataMappers-kC-SPiHX.cjs";
13
- export { ENGINE_CLIENT_ENDPOINTS, ENGINE_SERVER_STATUS_VALUES, ENGINE_WS_CLIENT_ENDPOINTS, ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS, EngineBboHistorySample, EngineBurnNlpParams, EngineCachedTimeParams, EngineCancelAndPlaceParams, EngineCancelOrdersParams, EngineCancelProductOrdersParams, EngineClient, EngineExecuteRequestParamsByType, EngineInsuranceResponse, EngineLinkSignerParams, EngineLiquidateSubaccountParams, EngineMarketPrice, EngineMintNlpParams, EngineNlpBalance, EngineNlpLockedBalance, EngineOrder, EngineOrderParams, EnginePingParams, EnginePingResponse, EnginePlaceOrderParams, EnginePlaceOrderResult, EnginePlaceOrdersParams, EnginePriceTickLiquidity, EngineServerAllBboEntry, EngineServerAllBboStreamParams, EngineServerAllProductsResponse, EngineServerBestBidOfferStreamParams, EngineServerBookDepthStreamParams, EngineServerBookInfo, EngineServerCachedBboHistoryQueryParams, EngineServerCachedBboHistoryResponse, EngineServerCachedBboHistorySample, EngineServerCachedQueryRequest, EngineServerCachedQueryRequestByType, EngineServerCachedQueryRequestType, EngineServerCachedQueryResponse, EngineServerCachedQueryResponseByType, EngineServerCachedQuerySuccessResponse, EngineServerCancelOrdersParams, EngineServerCancelOrdersResponse, EngineServerContractsResponse, EngineServerControlTimeResponse, EngineServerEdgeAllProductsResponse, EngineServerEdgeControlRequestByType, EngineServerEdgeControlRequestType, EngineServerEdgeControlResponseByType, EngineServerExecuteFailureResult, EngineServerExecutePlaceOrderPayload, EngineServerExecuteRequestByType, EngineServerExecuteRequestType, EngineServerExecuteResponseDataByType, EngineServerExecuteResult, EngineServerExecuteSuccessResult, EngineServerFailureError, EngineServerFeeRatesResponse, EngineServerFillStreamParams, EngineServerFundingPaymentStreamParams, EngineServerFundingRateStreamParams, EngineServerGetOrderQueryParams, EngineServerHealthBreakdown, EngineServerHealthGroupsResponse, EngineServerIpBlockResponse, EngineServerIsolatedPosition, EngineServerIsolatedPositionsQueryParams, EngineServerIsolatedPositionsResponse, EngineServerLatestCandlestickStreamParams, EngineServerLinkedSignerParams, EngineServerLinkedSignerResponse, EngineServerLiquidationStreamParams, EngineServerMarketLiquidityQueryParams, EngineServerMarketLiquidityResponse, EngineServerMarketPrice, EngineServerMarketPriceQueryParams, EngineServerMarketPriceResponse, EngineServerMarketPricesQueryParams, EngineServerMarketPricesResponse, EngineServerMaxBurnNlpQueryParams, EngineServerMaxBurnNlpResponse, EngineServerMaxMintNlpQueryParams, EngineServerMaxMintNlpResponse, EngineServerMaxOrderSizeQueryParams, EngineServerMaxOrderSizeResponse, EngineServerMaxWithdrawableQueryParams, EngineServerMaxWithdrawableResponse, EngineServerNlpBalance, EngineServerNlpLockedBalance, EngineServerNlpLockedBalancesQueryParams, EngineServerNlpLockedBalancesResponse, EngineServerNlpPool, EngineServerNlpPoolInfoResponse, EngineServerNoncesParams, EngineServerNoncesResponse, EngineServerOrder, EngineServerOrderResponse, EngineServerOrderUpdateStreamParams, EngineServerOrdersQueryParams, EngineServerPerpBalance, EngineServerPerpBalanceData, EngineServerPerpProduct, EngineServerPerpState, EngineServerPingParams, EngineServerPingQueryParams, EngineServerPingResponse, EngineServerPlaceOrderParams, EngineServerPlaceOrderResponse, EngineServerPlaceOrdersResponse, EngineServerPositionChangeStreamParams, EngineServerPriceTickLiquidity, EngineServerProductOrdersResponse, EngineServerProductType, EngineServerQueryFailureResponse, EngineServerQueryRequest, EngineServerQueryRequestByType, EngineServerQueryRequestType, EngineServerQueryResponse, EngineServerQueryResponseByType, EngineServerQuerySuccessResponse, EngineServerRisk, EngineServerSpotBalance, EngineServerSpotBalanceData, EngineServerSpotConfig, EngineServerSpotProduct, EngineServerSpotState, EngineServerStatusResponse, EngineServerSubaccountFeeRatesParams, EngineServerSubaccountInfoQueryParams, EngineServerSubaccountInfoResponse, EngineServerSubaccountInfoState, EngineServerSubaccountOrders, EngineServerSubaccountOrdersQueryParams, EngineServerSubaccountOrdersResponse, EngineServerSubscriptionAllBboEvent, EngineServerSubscriptionBaseEvent, EngineServerSubscriptionBestBidOfferEvent, EngineServerSubscriptionBookDepthEvent, EngineServerSubscriptionEvent, EngineServerSubscriptionEventType, EngineServerSubscriptionFillEvent, EngineServerSubscriptionFundingPaymentEvent, EngineServerSubscriptionFundingRateEvent, EngineServerSubscriptionLatestCandlestickEvent, EngineServerSubscriptionLiquidationEvent, EngineServerSubscriptionOrderUpdateEvent, EngineServerSubscriptionParams, EngineServerSubscriptionPingResponse, EngineServerSubscriptionPositionChangeEvent, EngineServerSubscriptionRequest, EngineServerSubscriptionRequestByType, EngineServerSubscriptionRequestType, EngineServerSubscriptionStream, EngineServerSubscriptionStreamParamsByType, EngineServerSubscriptionStreamParamsType, EngineServerSubscriptionTimeResponse, EngineServerSubscriptionTradeEvent, EngineServerSymbol, EngineServerSymbolsQueryParams, EngineServerSymbolsResponse, EngineServerTimeQueryParams, EngineServerTimeResponse, EngineServerTradeStreamParams, EngineServerUpdateDependencyResponse, EngineServerValidateOrderQueryParams, EngineServerValidateOrderResponse, EngineServiceCancelAndPlaceParams, EngineSubaccountOrders, EngineSymbol, EngineSymbolsResponse, EngineTransferQuoteParams, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params, GetEngineAllMarketsResponse, GetEngineCachedBboHistoryParams, GetEngineCachedBboHistoryResponse, GetEngineCachedMarketPricesParams, GetEngineContractsResponse, GetEngineCountryCodeResponse, GetEngineEstimatedSubaccountSummaryParams, GetEngineHealthGroupsResponse, GetEngineInsuranceResponse, GetEngineIpBlockStatusResponse, GetEngineIsolatedPositionsParams, GetEngineIsolatedPositionsResponse, GetEngineLinkedSignerParams, GetEngineLinkedSignerResponse, GetEngineMarketLiquidityParams, GetEngineMarketLiquidityResponse, GetEngineMarketPriceParams, GetEngineMarketPriceResponse, GetEngineMarketPricesParams, GetEngineMarketPricesResponse, GetEngineMaxBurnNlpAmountParams, GetEngineMaxBurnNlpAmountResponse, GetEngineMaxMintNlpAmountParams, GetEngineMaxMintNlpAmountResponse, GetEngineMaxOrderSizeParams, GetEngineMaxOrderSizeResponse, GetEngineMaxWithdrawableParams, GetEngineMaxWithdrawableResponse, GetEngineNlpLockedBalancesParams, GetEngineNlpLockedBalancesResponse, GetEngineNlpPoolInfoResponse, GetEngineNoncesParams, GetEngineNoncesResponse, GetEngineOrderParams, GetEngineOrderResponse, GetEngineSubaccountFeeRatesParams, GetEngineSubaccountFeeRatesResponse, GetEngineSubaccountOrdersParams, GetEngineSubaccountOrdersResponse, GetEngineSubaccountProductOrdersParams, GetEngineSubaccountProductOrdersResponse, GetEngineSubaccountSummaryParams, GetEngineSubaccountSummaryResponse, GetEngineSymbolsParams, GetEngineTimeResponse, NlpPool, OrderUpdateReason, PositionChangeReason, SignatureParams, SubaccountIsolatedPosition, SubaccountOrderFeeRates, SubaccountProductDeltaTx, SubaccountSummaryState, SubaccountTx, ValidateEngineOrderParams, ValidateEngineOrderResponse, ValidateSignedEngineOrderParams, WithBaseEngineExecuteParams, WithSignature, mapEngineBboHistory, mapEngineMarketPrice, mapEngineServerBalanceHealthContributions, mapEngineServerIsolatedPositions, mapEngineServerNlpLockedBalances, mapEngineServerNlpPoolInfo, mapEngineServerOrder, mapEngineServerPerpProduct, mapEngineServerSpotProduct, mapEngineServerSymbol, mapEngineServerSymbols, mapEngineServerTickLiquidity, mapSubaccountSummary };
13
+ import { a as mapEngineServerNlpLockedBalances, c as mapEngineServerPerpProduct, d as mapEngineServerSymbols, f as mapEngineServerTickLiquidity, i as mapEngineServerIsolatedPositions, l as mapEngineServerSpotProduct, n as mapEngineMarketPrice, o as mapEngineServerNlpPoolInfo, p as mapSubaccountSummary, r as mapEngineServerBalanceHealthContributions, s as mapEngineServerOrder, t as mapEngineBboHistory, u as mapEngineServerSymbol } from "./queryDataMappers--KLbh07P.cjs";
14
+ export { ENGINE_CLIENT_ENDPOINTS, ENGINE_ERROR_CODES, ENGINE_SERVER_STATUS_VALUES, ENGINE_WS_CLIENT_ENDPOINTS, ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS, EngineBboHistorySample, EngineBurnNlpParams, EngineCachedTimeParams, EngineCancelAndPlaceParams, EngineCancelOrdersParams, EngineCancelProductOrdersParams, EngineClient, EngineErrorCode, EngineExecuteRequestParamsByType, EngineInsuranceResponse, EngineLinkSignerParams, EngineLiquidateSubaccountParams, EngineMarketPrice, EngineMintNlpParams, EngineNlpBalance, EngineNlpLockedBalance, EngineOrder, EngineOrderParams, EnginePingParams, EnginePingResponse, EnginePlaceOrderParams, EnginePlaceOrderResult, EnginePlaceOrdersParams, EnginePriceTickLiquidity, EngineServerAllBboEntry, EngineServerAllBboStreamParams, EngineServerAllProductsResponse, EngineServerBestBidOfferStreamParams, EngineServerBookDepthStreamParams, EngineServerBookInfo, EngineServerCachedBboHistoryQueryParams, EngineServerCachedBboHistoryResponse, EngineServerCachedBboHistorySample, EngineServerCachedQueryRequest, EngineServerCachedQueryRequestByType, EngineServerCachedQueryRequestType, EngineServerCachedQueryResponse, EngineServerCachedQueryResponseByType, EngineServerCachedQuerySuccessResponse, EngineServerCancelOrdersParams, EngineServerCancelOrdersResponse, EngineServerContractsResponse, EngineServerControlTimeResponse, EngineServerEdgeAllProductsResponse, EngineServerEdgeControlRequestByType, EngineServerEdgeControlRequestType, EngineServerEdgeControlResponseByType, EngineServerExecuteFailureResult, EngineServerExecutePlaceOrderPayload, EngineServerExecuteRequestByType, EngineServerExecuteRequestType, EngineServerExecuteResponseDataByType, EngineServerExecuteResult, EngineServerExecuteSuccessResult, EngineServerFailureError, EngineServerFeeRatesResponse, EngineServerFillStreamParams, EngineServerFundingPaymentStreamParams, EngineServerFundingRateStreamParams, EngineServerGetOrderQueryParams, EngineServerHealthBreakdown, EngineServerHealthGroupsResponse, EngineServerIpBlockResponse, EngineServerIsolatedPosition, EngineServerIsolatedPositionsQueryParams, EngineServerIsolatedPositionsResponse, EngineServerLatestCandlestickStreamParams, EngineServerLinkedSignerParams, EngineServerLinkedSignerResponse, EngineServerLiquidationStreamParams, EngineServerMarketLiquidityQueryParams, EngineServerMarketLiquidityResponse, EngineServerMarketPrice, EngineServerMarketPriceQueryParams, EngineServerMarketPriceResponse, EngineServerMarketPricesQueryParams, EngineServerMarketPricesResponse, EngineServerMaxBurnNlpQueryParams, EngineServerMaxBurnNlpResponse, EngineServerMaxMintNlpQueryParams, EngineServerMaxMintNlpResponse, EngineServerMaxOrderSizeQueryParams, EngineServerMaxOrderSizeResponse, EngineServerMaxWithdrawableQueryParams, EngineServerMaxWithdrawableResponse, EngineServerNlpBalance, EngineServerNlpLockedBalance, EngineServerNlpLockedBalancesQueryParams, EngineServerNlpLockedBalancesResponse, EngineServerNlpPool, EngineServerNlpPoolInfoResponse, EngineServerNoncesParams, EngineServerNoncesResponse, EngineServerOrder, EngineServerOrderResponse, EngineServerOrderUpdateStreamParams, EngineServerOrdersQueryParams, EngineServerPerpBalance, EngineServerPerpBalanceData, EngineServerPerpProduct, EngineServerPerpState, EngineServerPingParams, EngineServerPingQueryParams, EngineServerPingResponse, EngineServerPlaceOrderParams, EngineServerPlaceOrderResponse, EngineServerPlaceOrdersResponse, EngineServerPositionChangeStreamParams, EngineServerPriceTickLiquidity, EngineServerProductOrdersResponse, EngineServerProductType, EngineServerQueryFailureResponse, EngineServerQueryRequest, EngineServerQueryRequestByType, EngineServerQueryRequestType, EngineServerQueryResponse, EngineServerQueryResponseByType, EngineServerQuerySuccessResponse, EngineServerRisk, EngineServerSpotBalance, EngineServerSpotBalanceData, EngineServerSpotConfig, EngineServerSpotProduct, EngineServerSpotState, EngineServerStatusResponse, EngineServerSubaccountFeeRatesParams, EngineServerSubaccountInfoQueryParams, EngineServerSubaccountInfoResponse, EngineServerSubaccountInfoState, EngineServerSubaccountOrders, EngineServerSubaccountOrdersQueryParams, EngineServerSubaccountOrdersResponse, EngineServerSubscriptionAllBboEvent, EngineServerSubscriptionBaseEvent, EngineServerSubscriptionBestBidOfferEvent, EngineServerSubscriptionBookDepthEvent, EngineServerSubscriptionEvent, EngineServerSubscriptionEventType, EngineServerSubscriptionFillEvent, EngineServerSubscriptionFundingPaymentEvent, EngineServerSubscriptionFundingRateEvent, EngineServerSubscriptionLatestCandlestickEvent, EngineServerSubscriptionLiquidationEvent, EngineServerSubscriptionOrderUpdateEvent, EngineServerSubscriptionParams, EngineServerSubscriptionPingResponse, EngineServerSubscriptionPositionChangeEvent, EngineServerSubscriptionRequest, EngineServerSubscriptionRequestByType, EngineServerSubscriptionRequestType, EngineServerSubscriptionStream, EngineServerSubscriptionStreamParamsByType, EngineServerSubscriptionStreamParamsType, EngineServerSubscriptionTimeResponse, EngineServerSubscriptionTradeEvent, EngineServerSymbol, EngineServerSymbolsQueryParams, EngineServerSymbolsResponse, EngineServerTimeQueryParams, EngineServerTimeResponse, EngineServerTradeStreamParams, EngineServerUpdateDependencyResponse, EngineServerValidateOrderQueryParams, EngineServerValidateOrderResponse, EngineServiceCancelAndPlaceParams, EngineSubaccountOrders, EngineSymbol, EngineSymbolsResponse, EngineTransferQuoteParams, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params, GetEngineAllMarketsResponse, GetEngineCachedBboHistoryParams, GetEngineCachedBboHistoryResponse, GetEngineCachedMarketPricesParams, GetEngineContractsResponse, GetEngineCountryCodeResponse, GetEngineEstimatedSubaccountSummaryParams, GetEngineHealthGroupsResponse, GetEngineInsuranceResponse, GetEngineIpBlockStatusResponse, GetEngineIsolatedPositionsParams, GetEngineIsolatedPositionsResponse, GetEngineLinkedSignerParams, GetEngineLinkedSignerResponse, GetEngineMarketLiquidityParams, GetEngineMarketLiquidityResponse, GetEngineMarketPriceParams, GetEngineMarketPriceResponse, GetEngineMarketPricesParams, GetEngineMarketPricesResponse, GetEngineMaxBurnNlpAmountParams, GetEngineMaxBurnNlpAmountResponse, GetEngineMaxMintNlpAmountParams, GetEngineMaxMintNlpAmountResponse, GetEngineMaxOrderSizeParams, GetEngineMaxOrderSizeResponse, GetEngineMaxWithdrawableParams, GetEngineMaxWithdrawableResponse, GetEngineNlpLockedBalancesParams, GetEngineNlpLockedBalancesResponse, GetEngineNlpPoolInfoResponse, GetEngineNoncesParams, GetEngineNoncesResponse, GetEngineOrderParams, GetEngineOrderResponse, GetEngineSubaccountFeeRatesParams, GetEngineSubaccountFeeRatesResponse, GetEngineSubaccountOrdersParams, GetEngineSubaccountOrdersResponse, GetEngineSubaccountProductOrdersParams, GetEngineSubaccountProductOrdersResponse, GetEngineSubaccountSummaryParams, GetEngineSubaccountSummaryResponse, GetEngineSymbolsParams, GetEngineTimeResponse, NlpPool, OrderUpdateReason, PositionChangeReason, SignatureParamsOrSignature, SubaccountIsolatedPosition, SubaccountOrderFeeRates, SubaccountProductDeltaTx, SubaccountSummaryState, SubaccountTx, ValidateEngineOrderParams, ValidateEngineOrderResponse, ValidateSignedEngineOrderParams, WithBaseEngineExecuteParams, WithSignature, mapEngineBboHistory, mapEngineMarketPrice, mapEngineServerBalanceHealthContributions, mapEngineServerIsolatedPositions, mapEngineServerNlpLockedBalances, mapEngineServerNlpPoolInfo, mapEngineServerOrder, mapEngineServerPerpProduct, mapEngineServerSpotProduct, mapEngineServerSymbol, mapEngineServerSymbols, mapEngineServerTickLiquidity, mapSubaccountSummary };