@nadohq/client 0.51.1 → 0.53.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 (68) hide show
  1. package/dist/{BaseSpotAPI-DB2aTa9f.d.cts → BaseSpotAPI-DCsJiSaU.d.cts} +2 -2
  2. package/dist/{BaseSpotAPI-DB2aTa9f.d.cts.map → BaseSpotAPI-DCsJiSaU.d.cts.map} +1 -1
  3. package/dist/{BaseSpotAPI-Z0ute63E.d.ts → BaseSpotAPI-kj3rVPSC.d.ts} +2 -2
  4. package/dist/{BaseSpotAPI-Z0ute63E.d.ts.map → BaseSpotAPI-kj3rVPSC.d.ts.map} +1 -1
  5. package/dist/{SpotExecuteAPI-MoLjiUo5.d.cts → SpotExecuteAPI-CXbeLCsc.d.cts} +15 -4
  6. package/dist/SpotExecuteAPI-CXbeLCsc.d.cts.map +1 -0
  7. package/dist/{SpotExecuteAPI-CfeSttvT.d.ts → SpotExecuteAPI-D3-EOC-H.d.ts} +15 -4
  8. package/dist/SpotExecuteAPI-D3-EOC-H.d.ts.map +1 -0
  9. package/dist/SpotQueryAPI-BBLKIvGJ.d.ts +53 -0
  10. package/dist/SpotQueryAPI-BBLKIvGJ.d.ts.map +1 -0
  11. package/dist/SpotQueryAPI-GvWSoN94.d.cts +53 -0
  12. package/dist/SpotQueryAPI-GvWSoN94.d.cts.map +1 -0
  13. package/dist/{WebSocketExecuteAPI-BdLnMPvL.d.ts → WebSocketExecuteAPI-CL6VF4fV.d.ts} +3 -1
  14. package/dist/{WebSocketExecuteAPI-BdLnMPvL.d.ts.map → WebSocketExecuteAPI-CL6VF4fV.d.ts.map} +1 -1
  15. package/dist/{WebSocketExecuteAPI-BitD-ApX.d.cts → WebSocketExecuteAPI-CbW9fGz5.d.cts} +3 -1
  16. package/dist/{WebSocketExecuteAPI-BitD-ApX.d.cts.map → WebSocketExecuteAPI-CbW9fGz5.d.cts.map} +1 -1
  17. package/dist/apis/spot/BaseSpotAPI.d.cts +1 -1
  18. package/dist/apis/spot/BaseSpotAPI.d.ts +1 -1
  19. package/dist/apis/spot/SpotExecuteAPI.cjs +19 -1
  20. package/dist/apis/spot/SpotExecuteAPI.cjs.map +1 -1
  21. package/dist/apis/spot/SpotExecuteAPI.d.cts +1 -1
  22. package/dist/apis/spot/SpotExecuteAPI.d.ts +1 -1
  23. package/dist/apis/spot/SpotExecuteAPI.js +19 -1
  24. package/dist/apis/spot/SpotExecuteAPI.js.map +1 -1
  25. package/dist/apis/spot/SpotQueryAPI.cjs +9 -3
  26. package/dist/apis/spot/SpotQueryAPI.cjs.map +1 -1
  27. package/dist/apis/spot/SpotQueryAPI.d.cts +1 -1
  28. package/dist/apis/spot/SpotQueryAPI.d.ts +1 -1
  29. package/dist/apis/spot/SpotQueryAPI.js +9 -3
  30. package/dist/apis/spot/SpotQueryAPI.js.map +1 -1
  31. package/dist/apis/spot/index.d.cts +3 -3
  32. package/dist/apis/spot/index.d.ts +3 -3
  33. package/dist/apis/spot/types.d.cts +2 -2
  34. package/dist/apis/spot/types.d.ts +2 -2
  35. package/dist/apis/ws/WebSocketExecuteAPI.d.cts +1 -1
  36. package/dist/apis/ws/WebSocketExecuteAPI.d.ts +1 -1
  37. package/dist/apis/ws/index.d.cts +1 -1
  38. package/dist/apis/ws/index.d.ts +1 -1
  39. package/dist/client.d.cts +2 -2
  40. package/dist/client.d.ts +2 -2
  41. package/dist/{index-_JjlzC9X.d.cts → index-B44dQYOt.d.cts} +3 -3
  42. package/dist/index-B44dQYOt.d.cts.map +1 -0
  43. package/dist/{index-CZEGiJl9.d.ts → index-BvLzbcxb.d.ts} +2 -2
  44. package/dist/{index-CZEGiJl9.d.ts.map → index-BvLzbcxb.d.ts.map} +1 -1
  45. package/dist/{index-HyEE0yWQ.d.cts → index-D9w2TtoN.d.cts} +2 -2
  46. package/dist/{index-HyEE0yWQ.d.cts.map → index-D9w2TtoN.d.cts.map} +1 -1
  47. package/dist/{index-DdRpzv1r.d.ts → index-DlJeayLR.d.ts} +3 -3
  48. package/dist/index-DlJeayLR.d.ts.map +1 -0
  49. package/dist/index.d.cts +3 -3
  50. package/dist/index.d.ts +3 -3
  51. package/dist/{types-CObZ3UZ8.d.cts → types-Caq8UZ8J.d.cts} +5 -3
  52. package/dist/types-Caq8UZ8J.d.cts.map +1 -0
  53. package/dist/{types-ClaArDCu.d.ts → types-DXQWU3Dg.d.ts} +5 -3
  54. package/dist/types-DXQWU3Dg.d.ts.map +1 -0
  55. package/package.json +9 -9
  56. package/src/apis/spot/SpotExecuteAPI.ts +21 -1
  57. package/src/apis/spot/SpotQueryAPI.ts +43 -1
  58. package/src/apis/spot/types.ts +6 -0
  59. package/dist/SpotExecuteAPI-CfeSttvT.d.ts.map +0 -1
  60. package/dist/SpotExecuteAPI-MoLjiUo5.d.cts.map +0 -1
  61. package/dist/SpotQueryAPI-CoNofFJV.d.ts +0 -36
  62. package/dist/SpotQueryAPI-CoNofFJV.d.ts.map +0 -1
  63. package/dist/SpotQueryAPI-DZXIzKUn.d.cts +0 -36
  64. package/dist/SpotQueryAPI-DZXIzKUn.d.cts.map +0 -1
  65. package/dist/index-DdRpzv1r.d.ts.map +0 -1
  66. package/dist/index-_JjlzC9X.d.cts.map +0 -1
  67. package/dist/types-CObZ3UZ8.d.cts.map +0 -1
  68. package/dist/types-ClaArDCu.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNadoAPI } from "./base-BDnJj6M7.cjs";
2
- import { s as ProductIdOrTokenAddress } from "./types-CObZ3UZ8.cjs";
2
+ import { s as ProductIdOrTokenAddress } from "./types-Caq8UZ8J.cjs";
3
3
  import { ContractInstance, ERC20_ABI } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/BaseSpotAPI.d.ts
@@ -11,4 +11,4 @@ declare class BaseSpotAPI extends BaseNadoAPI {
11
11
  }
12
12
  //#endregion
13
13
  export { BaseSpotAPI as t };
14
- //# sourceMappingURL=BaseSpotAPI-DB2aTa9f.d.cts.map
14
+ //# sourceMappingURL=BaseSpotAPI-DCsJiSaU.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSpotAPI-DB2aTa9f.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
1
+ {"version":3,"file":"BaseSpotAPI-DCsJiSaU.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNadoAPI } from "./base-BlVA2LTB.js";
2
- import { s as ProductIdOrTokenAddress } from "./types-ClaArDCu.js";
2
+ import { s as ProductIdOrTokenAddress } from "./types-DXQWU3Dg.js";
3
3
  import { ContractInstance, ERC20_ABI } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/BaseSpotAPI.d.ts
@@ -11,4 +11,4 @@ declare class BaseSpotAPI extends BaseNadoAPI {
11
11
  }
12
12
  //#endregion
13
13
  export { BaseSpotAPI as t };
14
- //# sourceMappingURL=BaseSpotAPI-Z0ute63E.d.ts.map
14
+ //# sourceMappingURL=BaseSpotAPI-kj3rVPSC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSpotAPI-Z0ute63E.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
1
+ {"version":3,"file":"BaseSpotAPI-kj3rVPSC.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "./types-CObZ3UZ8.cjs";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-DB2aTa9f.cjs";
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "./types-Caq8UZ8J.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-DCsJiSaU.cjs";
3
3
  import { DepositCollateralParams } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/SpotExecuteAPI.d.ts
@@ -7,7 +7,10 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
7
7
  deposit(params: DepositCollateralParams): Promise<`0x${string}`>;
8
8
  withdraw(params: WithdrawCollateralParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"withdraw_collateral">>;
9
9
  /**
10
- * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.
10
+ * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,
11
+ * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it
12
+ * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use
13
+ * `getDynamicFeeQuote` for the current fee.
11
14
  *
12
15
  * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a
13
16
  * non-zero address, the transaction must be signed by the subaccount owner (linked signers are
@@ -23,10 +26,18 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
23
26
  * @param params
24
27
  */
25
28
  transferQuote(params: TransferQuoteParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote">>;
29
+ /**
30
+ * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at
31
+ * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the
32
+ * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.
33
+ *
34
+ * @param params
35
+ */
36
+ transferQuoteV2(params: TransferQuoteV2Params): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote_v2">>;
26
37
  mintNlp(params: MintNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"mint_nlp">>;
27
38
  burnNlp(params: BurnNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"burn_nlp">>;
28
39
  _mintMockERC20(params: MintMockERC20Params): Promise<`0x${string}`>;
29
40
  }
30
41
  //#endregion
31
42
  export { SpotExecuteAPI as t };
32
- //# sourceMappingURL=SpotExecuteAPI-MoLjiUo5.d.cts.map
43
+ //# sourceMappingURL=SpotExecuteAPI-CXbeLCsc.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotExecuteAPI-CXbeLCsc.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAqBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAcvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAfrB;;;;;;;;;;;;EAoCpB,UAAA,CAAW,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,gCAAA;EAS7C,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;EA6C/B;;;;;EAzBhB,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EAjEb;;;;;;;EAiF5B,eAAA,CAAgB,MAAA,EAAQ,qBAAA,GAAqB,OAAA,iCAAA,gCAAA;EAS7C,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "./types-ClaArDCu.js";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-Z0ute63E.js";
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "./types-DXQWU3Dg.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-kj3rVPSC.js";
3
3
  import { DepositCollateralParams } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/SpotExecuteAPI.d.ts
@@ -7,7 +7,10 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
7
7
  deposit(params: DepositCollateralParams): Promise<`0x${string}`>;
8
8
  withdraw(params: WithdrawCollateralParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"withdraw_collateral">>;
9
9
  /**
10
- * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.
10
+ * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,
11
+ * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it
12
+ * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use
13
+ * `getDynamicFeeQuote` for the current fee.
11
14
  *
12
15
  * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a
13
16
  * non-zero address, the transaction must be signed by the subaccount owner (linked signers are
@@ -23,10 +26,18 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
23
26
  * @param params
24
27
  */
25
28
  transferQuote(params: TransferQuoteParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote">>;
29
+ /**
30
+ * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at
31
+ * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the
32
+ * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.
33
+ *
34
+ * @param params
35
+ */
36
+ transferQuoteV2(params: TransferQuoteV2Params): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote_v2">>;
26
37
  mintNlp(params: MintNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"mint_nlp">>;
27
38
  burnNlp(params: BurnNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"burn_nlp">>;
28
39
  _mintMockERC20(params: MintMockERC20Params): Promise<`0x${string}`>;
29
40
  }
30
41
  //#endregion
31
42
  export { SpotExecuteAPI as t };
32
- //# sourceMappingURL=SpotExecuteAPI-CfeSttvT.d.ts.map
43
+ //# sourceMappingURL=SpotExecuteAPI-D3-EOC-H.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotExecuteAPI-D3-EOC-H.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAqBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAcvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAfrB;;;;;;;;;;;;EAoCpB,UAAA,CAAW,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,gCAAA;EAS7C,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;EA6C/B;;;;;EAzBhB,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EAjEb;;;;;;;EAiF5B,eAAA,CAAgB,MAAA,EAAQ,qBAAA,GAAqB,OAAA,iCAAA,gCAAA;EAS7C,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -0,0 +1,53 @@
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-DXQWU3Dg.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-kj3rVPSC.js";
3
+ import { GetEngineDynamicFeeQuoteParams, GetEngineDynamicFeeQuoteResponse, GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams, GetEngineMaxWithdrawableResponse, GetEngineMaxWithdrawableWithDynamicFeeResponse } from "@nadohq/engine-client";
4
+ import BigNumber from "bignumber.js";
5
+
6
+ //#region src/apis/spot/SpotQueryAPI.d.ts
7
+ declare class SpotQueryAPI extends BaseSpotAPI {
8
+ /**
9
+ * Gets the estimated max withdrawable amount for a product
10
+ * @param params
11
+ */
12
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<GetEngineMaxWithdrawableResponse>;
13
+ /**
14
+ * Gets the estimated max withdrawable amount for a product, with the current dynamic fee of
15
+ * Withdraw Collateral V2 reserved instead of the flat fee. The reserved fee is returned as
16
+ * `fee`.
17
+ * @param params
18
+ * @returns The max withdrawable with the current dynamic fee reserved, and the reserved fee.
19
+ */
20
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams, options: {
21
+ withDynamicFee: true;
22
+ }): Promise<GetEngineMaxWithdrawableWithDynamicFeeResponse>;
23
+ /**
24
+ * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced
25
+ * again at execution, so pass a `maxFeeX18` with some headroom when executing.
26
+ * @param params
27
+ * @returns The current required fee, the fee cap, and the V2 demand pressure.
28
+ */
29
+ getDynamicFeeQuote(params: GetEngineDynamicFeeQuoteParams): Promise<GetEngineDynamicFeeQuoteResponse>;
30
+ /**
31
+ * Queries engine to determine maximum quote amount for minting NLP.
32
+ *
33
+ * @param params
34
+ */
35
+ getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
36
+ /**
37
+ * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
38
+ */
39
+ getTokenWalletBalance({
40
+ address,
41
+ ...rest
42
+ }: GetTokenWalletBalanceParams): Promise<bigint>;
43
+ /**
44
+ * Helper to get current token allowance
45
+ */
46
+ getTokenAllowance({
47
+ address,
48
+ ...rest
49
+ }: GetTokenAllowanceParams): Promise<BigNumber>;
50
+ }
51
+ //#endregion
52
+ export { SpotQueryAPI as t };
53
+ //# sourceMappingURL=SpotQueryAPI-BBLKIvGJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotQueryAPI-BBLKIvGJ.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cAaa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EAAA;;;;;;;EAQL,kBAAA,CACJ,MAAA,EAAQ,8BAAA,EACR,OAAA;IAAW,cAAA;EAAA,IACV,OAAA,CAAQ,8CAAA;EAkCsD;;;;;;EAX3D,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EA8BkB;;;;;EArBvB,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EA9CvD;;;EAqDJ,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EA/C3B;;;EAuDA,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -0,0 +1,53 @@
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-Caq8UZ8J.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-DCsJiSaU.cjs";
3
+ import { GetEngineDynamicFeeQuoteParams, GetEngineDynamicFeeQuoteResponse, GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams, GetEngineMaxWithdrawableResponse, GetEngineMaxWithdrawableWithDynamicFeeResponse } from "@nadohq/engine-client";
4
+ import BigNumber from "bignumber.js";
5
+
6
+ //#region src/apis/spot/SpotQueryAPI.d.ts
7
+ declare class SpotQueryAPI extends BaseSpotAPI {
8
+ /**
9
+ * Gets the estimated max withdrawable amount for a product
10
+ * @param params
11
+ */
12
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<GetEngineMaxWithdrawableResponse>;
13
+ /**
14
+ * Gets the estimated max withdrawable amount for a product, with the current dynamic fee of
15
+ * Withdraw Collateral V2 reserved instead of the flat fee. The reserved fee is returned as
16
+ * `fee`.
17
+ * @param params
18
+ * @returns The max withdrawable with the current dynamic fee reserved, and the reserved fee.
19
+ */
20
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams, options: {
21
+ withDynamicFee: true;
22
+ }): Promise<GetEngineMaxWithdrawableWithDynamicFeeResponse>;
23
+ /**
24
+ * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced
25
+ * again at execution, so pass a `maxFeeX18` with some headroom when executing.
26
+ * @param params
27
+ * @returns The current required fee, the fee cap, and the V2 demand pressure.
28
+ */
29
+ getDynamicFeeQuote(params: GetEngineDynamicFeeQuoteParams): Promise<GetEngineDynamicFeeQuoteResponse>;
30
+ /**
31
+ * Queries engine to determine maximum quote amount for minting NLP.
32
+ *
33
+ * @param params
34
+ */
35
+ getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
36
+ /**
37
+ * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
38
+ */
39
+ getTokenWalletBalance({
40
+ address,
41
+ ...rest
42
+ }: GetTokenWalletBalanceParams): Promise<bigint>;
43
+ /**
44
+ * Helper to get current token allowance
45
+ */
46
+ getTokenAllowance({
47
+ address,
48
+ ...rest
49
+ }: GetTokenAllowanceParams): Promise<BigNumber>;
50
+ }
51
+ //#endregion
52
+ export { SpotQueryAPI as t };
53
+ //# sourceMappingURL=SpotQueryAPI-GvWSoN94.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotQueryAPI-GvWSoN94.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cAaa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EAAA;;;;;;;EAQL,kBAAA,CACJ,MAAA,EAAQ,8BAAA,EACR,OAAA;IAAW,cAAA;EAAA,IACV,OAAA,CAAQ,8CAAA;EAkCsD;;;;;;EAX3D,kBAAA,CACJ,MAAA,EAAQ,8BAAA,GACP,OAAA,CAAQ,gCAAA;EA8BkB;;;;;EArBvB,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EA9CvD;;;EAqDJ,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EA/C3B;;;EAuDA,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -29,6 +29,8 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
29
29
  */
30
30
  buildWithdrawCollateralV2Message(params: EngineExecuteRequestParamsByType['withdraw_collateral_v2']): Promise<import("@nadohq/shared").SignedTx<import("@nadohq/shared").EIP712WithdrawCollateralV2Values> & {
31
31
  spot_leverage: boolean | null;
32
+ } & {
33
+ max_fee_x18?: string;
32
34
  }>;
33
35
  /**
34
36
  * Builds ws message for the `place_order` execute action.
@@ -49,4 +51,4 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
49
51
  }
50
52
  //#endregion
51
53
  export { WebSocketExecuteAPI as t };
52
- //# sourceMappingURL=WebSocketExecuteAPI-BdLnMPvL.d.ts.map
54
+ //# sourceMappingURL=WebSocketExecuteAPI-CL6VF4fV.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketExecuteAPI-BdLnMPvL.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketExecuteAPI.ts"],"mappings":";;;;;;;AAWA;;cAAa,mBAAA,SAA4B,WAAA;EAO7B;;;;;EADJ,+BAAA,CACJ,MAAA,EAAQ,gCAAA,2BAAwD,OAAA,0BAAA,QAAA,0BAAA,+BAAA;EAwC9D;;;;;EA5BE,8BAAA,CACJ,MAAA,EAAQ,gCAAA,0BAAuD,OAAA,0BAAA,QAAA,0BAAA,8BAAA;;;EApB1B;;;;;EAgCjC,gCAAA,CACJ,MAAA,EAAQ,gCAAA,6BAA0D,OAAA,0BAAA,QAAA,0BAAA,gCAAA;;;EAb1D;;;;;EAyBV,sBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IACE,KAAA,EAAO,iBAAA;EAAA,qCAEV,oCAAA;EAjBD;;;;;EA6BF,wBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IAAsD,KAAA;EAAA,qCACvD,8BAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketExecuteAPI-CL6VF4fV.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketExecuteAPI.ts"],"mappings":";;;;;;;AAWA;;cAAa,mBAAA,SAA4B,WAAA;EAO7B;;;;;EADJ,+BAAA,CACJ,MAAA,EAAQ,gCAAA,2BAAwD,OAAA,0BAAA,QAAA,0BAAA,+BAAA;EAwC9D;;;;;EA5BE,8BAAA,CACJ,MAAA,EAAQ,gCAAA,0BAAuD,OAAA,0BAAA,QAAA,0BAAA,8BAAA;;;EApB1B;;;;;EAgCjC,gCAAA,CACJ,MAAA,EAAQ,gCAAA,6BAA0D,OAAA,0BAAA,QAAA,0BAAA,gCAAA;;;;;EAbH;;;;;EAyBjE,sBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IACE,KAAA,EAAO,iBAAA;EAAA,qCAEV,oCAAA;EAjBiE;;;;;EA6BpE,wBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IAAsD,KAAA;EAAA,qCACvD,8BAAA;AAAA"}
@@ -29,6 +29,8 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
29
29
  */
30
30
  buildWithdrawCollateralV2Message(params: EngineExecuteRequestParamsByType['withdraw_collateral_v2']): Promise<import("@nadohq/shared").SignedTx<import("@nadohq/shared").EIP712WithdrawCollateralV2Values> & {
31
31
  spot_leverage: boolean | null;
32
+ } & {
33
+ max_fee_x18?: string;
32
34
  }>;
33
35
  /**
34
36
  * Builds ws message for the `place_order` execute action.
@@ -49,4 +51,4 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
49
51
  }
50
52
  //#endregion
51
53
  export { WebSocketExecuteAPI as t };
52
- //# sourceMappingURL=WebSocketExecuteAPI-BitD-ApX.d.cts.map
54
+ //# sourceMappingURL=WebSocketExecuteAPI-CbW9fGz5.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketExecuteAPI-BitD-ApX.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketExecuteAPI.ts"],"mappings":";;;;;;;AAWA;;cAAa,mBAAA,SAA4B,WAAA;EAO7B;;;;;EADJ,+BAAA,CACJ,MAAA,EAAQ,gCAAA,2BAAwD,OAAA,0BAAA,QAAA,0BAAA,+BAAA;EAwC9D;;;;;EA5BE,8BAAA,CACJ,MAAA,EAAQ,gCAAA,0BAAuD,OAAA,0BAAA,QAAA,0BAAA,8BAAA;;;EApB1B;;;;;EAgCjC,gCAAA,CACJ,MAAA,EAAQ,gCAAA,6BAA0D,OAAA,0BAAA,QAAA,0BAAA,gCAAA;;;EAb1D;;;;;EAyBV,sBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IACE,KAAA,EAAO,iBAAA;EAAA,qCAEV,oCAAA;EAjBD;;;;;EA6BF,wBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IAAsD,KAAA;EAAA,qCACvD,8BAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketExecuteAPI-CbW9fGz5.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketExecuteAPI.ts"],"mappings":";;;;;;;AAWA;;cAAa,mBAAA,SAA4B,WAAA;EAO7B;;;;;EADJ,+BAAA,CACJ,MAAA,EAAQ,gCAAA,2BAAwD,OAAA,0BAAA,QAAA,0BAAA,+BAAA;EAwC9D;;;;;EA5BE,8BAAA,CACJ,MAAA,EAAQ,gCAAA,0BAAuD,OAAA,0BAAA,QAAA,0BAAA,8BAAA;;;EApB1B;;;;;EAgCjC,gCAAA,CACJ,MAAA,EAAQ,gCAAA,6BAA0D,OAAA,0BAAA,QAAA,0BAAA,gCAAA;;;;;EAbH;;;;;EAyBjE,sBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IACE,KAAA,EAAO,iBAAA;EAAA,qCAEV,oCAAA;EAjBiE;;;;;EA6BpE,wBAAA,CACE,MAAA,EAAQ,aAAA,CACN,gCAAA;IAAsD,KAAA;EAAA,qCACvD,8BAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- import { t as BaseSpotAPI } from "../../BaseSpotAPI-DB2aTa9f.cjs";
1
+ import { t as BaseSpotAPI } from "../../BaseSpotAPI-DCsJiSaU.cjs";
2
2
  export { BaseSpotAPI };
@@ -1,2 +1,2 @@
1
- import { t as BaseSpotAPI } from "../../BaseSpotAPI-Z0ute63E.js";
1
+ import { t as BaseSpotAPI } from "../../BaseSpotAPI-kj3rVPSC.js";
2
2
  export { BaseSpotAPI };
@@ -22,7 +22,10 @@ var SpotExecuteAPI = class extends require_apis_spot_BaseSpotAPI.BaseSpotAPI {
22
22
  });
23
23
  }
24
24
  /**
25
- * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.
25
+ * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,
26
+ * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it
27
+ * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use
28
+ * `getDynamicFeeQuote` for the current fee.
26
29
  *
27
30
  * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a
28
31
  * non-zero address, the transaction must be signed by the subaccount owner (linked signers are
@@ -60,6 +63,21 @@ var SpotExecuteAPI = class extends require_apis_spot_BaseSpotAPI.BaseSpotAPI {
60
63
  chainId: this.getWalletClientChainIdIfNeeded(params)
61
64
  });
62
65
  }
66
+ /**
67
+ * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at
68
+ * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the
69
+ * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.
70
+ *
71
+ * @param params
72
+ */
73
+ async transferQuoteV2(params) {
74
+ return this.context.engineClient.transferQuoteV2({
75
+ ...params,
76
+ subaccountOwner: this.getSubaccountOwnerIfNeeded(params),
77
+ verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),
78
+ chainId: this.getWalletClientChainIdIfNeeded(params)
79
+ });
80
+ }
63
81
  async mintNlp(params) {
64
82
  return this.context.engineClient.mintNlp({
65
83
  ...params,
@@ -1 +1 @@
1
- {"version":3,"file":"SpotExecuteAPI.cjs","names":["BaseSpotAPI","WalletNotProvidedError","MOCK_ERC20_ABI"],"sources":["../../../src/apis/spot/SpotExecuteAPI.ts"],"sourcesContent":["import {\n approveDepositAllowance,\n depositCollateral,\n DepositCollateralParams,\n isWriteableContract,\n MOCK_ERC20_ABI,\n toBigInt,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport {\n ApproveAllowanceParams,\n BurnNlpParams,\n MintMockERC20Params,\n MintNlpParams,\n TransferQuoteParams,\n WithdrawCollateralParams,\n WithdrawCollateralV2Params,\n} from './types';\n\nexport class SpotExecuteAPI extends BaseSpotAPI {\n async deposit(params: DepositCollateralParams) {\n if (!isWriteableContract(this.context.contracts.endpoint)) {\n throw new WalletNotProvidedError();\n }\n\n return depositCollateral({\n endpoint: this.context.contracts.endpoint,\n subaccountName: params.subaccountName,\n productId: params.productId,\n amount: params.amount,\n referralCode: params.referralCode,\n });\n }\n\n async withdraw(params: WithdrawCollateralParams) {\n return this.context.engineClient.withdrawCollateral({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n /**\n * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.\n *\n * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a\n * non-zero address, the transaction must be signed by the subaccount owner (linked signers are\n * not permitted).\n *\n * @param params\n */\n async withdrawV2(params: WithdrawCollateralV2Params) {\n return this.context.engineClient.withdrawCollateralV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async approveAllowance(params: ApproveAllowanceParams) {\n const tokenContract = await this.getTokenContractForProduct(params);\n if (!isWriteableContract(tokenContract)) {\n throw new Error(\n 'Token contract does not permit writes. Is a wallet client provided?',\n );\n }\n\n return approveDepositAllowance({\n amount: params.amount,\n endpoint: this.context.contracts.endpoint,\n tokenContract,\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet.\n *\n * @param params\n */\n async transferQuote(params: TransferQuoteParams) {\n return this.context.engineClient.transferQuote({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n async mintNlp(params: MintNlpParams) {\n return this.context.engineClient.mintNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async burnNlp(params: BurnNlpParams) {\n return this.context.engineClient.burnNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async _mintMockERC20(params: MintMockERC20Params) {\n if (!this.context.walletClient) {\n throw new WalletNotProvidedError();\n }\n\n const config = await this.context.contracts.spotEngine.read.getConfig([\n params.productId,\n ]);\n\n return this.context.walletClient.writeContract({\n abi: MOCK_ERC20_ABI,\n address: config.token,\n functionName: 'mint',\n args: [this.getWalletClientAddress(), toBigInt(params.amount)],\n });\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,iBAAb,cAAoCA,8BAAAA,YAAY;CAC9C,MAAM,QAAQ,QAAiC;EAC7C,IAAI,EAAA,GAAA,eAAA,qBAAqB,KAAK,QAAQ,UAAU,QAAQ,GACtD,MAAM,IAAIC,eAAAA,uBAAuB;EAGnC,QAAA,GAAA,eAAA,mBAAyB;GACvB,UAAU,KAAK,QAAQ,UAAU;GACjC,gBAAgB,OAAO;GACvB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,cAAc,OAAO;EACvB,CAAC;CACH;CAEA,MAAM,SAAS,QAAkC;EAC/C,OAAO,KAAK,QAAQ,aAAa,mBAAmB;GAClD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;;;;;;;;;;CAWA,MAAM,WAAW,QAAoC;EACnD,OAAO,KAAK,QAAQ,aAAa,qBAAqB;GACpD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,iBAAiB,QAAgC;EACrD,MAAM,gBAAgB,MAAM,KAAK,2BAA2B,MAAM;EAClE,IAAI,EAAA,GAAA,eAAA,qBAAqB,aAAa,GACpC,MAAM,IAAI,MACR,qEACF;EAGF,QAAA,GAAA,eAAA,yBAA+B;GAC7B,QAAQ,OAAO;GACf,UAAU,KAAK,QAAQ,UAAU;GACjC;EACF,CAAC;CACH;;;;;;CAOA,MAAM,cAAc,QAA6B;EAC/C,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,eAAe,QAA6B;EAChD,IAAI,CAAC,KAAK,QAAQ,cAChB,MAAM,IAAIA,eAAAA,uBAAuB;EAGnC,MAAM,SAAS,MAAM,KAAK,QAAQ,UAAU,WAAW,KAAK,UAAU,CACpE,OAAO,SACT,CAAC;EAED,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,KAAKC,eAAAA;GACL,SAAS,OAAO;GAChB,cAAc;GACd,MAAM,CAAC,KAAK,uBAAuB,IAAA,GAAA,eAAA,UAAY,OAAO,MAAM,CAAC;EAC/D,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"SpotExecuteAPI.cjs","names":["BaseSpotAPI","WalletNotProvidedError","MOCK_ERC20_ABI"],"sources":["../../../src/apis/spot/SpotExecuteAPI.ts"],"sourcesContent":["import {\n approveDepositAllowance,\n depositCollateral,\n DepositCollateralParams,\n isWriteableContract,\n MOCK_ERC20_ABI,\n toBigInt,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport {\n ApproveAllowanceParams,\n BurnNlpParams,\n MintMockERC20Params,\n MintNlpParams,\n TransferQuoteParams,\n TransferQuoteV2Params,\n WithdrawCollateralParams,\n WithdrawCollateralV2Params,\n} from './types';\n\nexport class SpotExecuteAPI extends BaseSpotAPI {\n async deposit(params: DepositCollateralParams) {\n if (!isWriteableContract(this.context.contracts.endpoint)) {\n throw new WalletNotProvidedError();\n }\n\n return depositCollateral({\n endpoint: this.context.contracts.endpoint,\n subaccountName: params.subaccountName,\n productId: params.productId,\n amount: params.amount,\n referralCode: params.referralCode,\n });\n }\n\n async withdraw(params: WithdrawCollateralParams) {\n return this.context.engineClient.withdrawCollateral({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n /**\n * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,\n * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it\n * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use\n * `getDynamicFeeQuote` for the current fee.\n *\n * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a\n * non-zero address, the transaction must be signed by the subaccount owner (linked signers are\n * not permitted).\n *\n * @param params\n */\n async withdrawV2(params: WithdrawCollateralV2Params) {\n return this.context.engineClient.withdrawCollateralV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async approveAllowance(params: ApproveAllowanceParams) {\n const tokenContract = await this.getTokenContractForProduct(params);\n if (!isWriteableContract(tokenContract)) {\n throw new Error(\n 'Token contract does not permit writes. Is a wallet client provided?',\n );\n }\n\n return approveDepositAllowance({\n amount: params.amount,\n endpoint: this.context.contracts.endpoint,\n tokenContract,\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet.\n *\n * @param params\n */\n async transferQuote(params: TransferQuoteParams) {\n return this.context.engineClient.transferQuote({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at\n * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the\n * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.\n *\n * @param params\n */\n async transferQuoteV2(params: TransferQuoteV2Params) {\n return this.context.engineClient.transferQuoteV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n async mintNlp(params: MintNlpParams) {\n return this.context.engineClient.mintNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async burnNlp(params: BurnNlpParams) {\n return this.context.engineClient.burnNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async _mintMockERC20(params: MintMockERC20Params) {\n if (!this.context.walletClient) {\n throw new WalletNotProvidedError();\n }\n\n const config = await this.context.contracts.spotEngine.read.getConfig([\n params.productId,\n ]);\n\n return this.context.walletClient.writeContract({\n abi: MOCK_ERC20_ABI,\n address: config.token,\n functionName: 'mint',\n args: [this.getWalletClientAddress(), toBigInt(params.amount)],\n });\n }\n}\n"],"mappings":";;;;AAqBA,IAAa,iBAAb,cAAoCA,8BAAAA,YAAY;CAC9C,MAAM,QAAQ,QAAiC;EAC7C,IAAI,EAAA,GAAA,eAAA,qBAAqB,KAAK,QAAQ,UAAU,QAAQ,GACtD,MAAM,IAAIC,eAAAA,uBAAuB;EAGnC,QAAA,GAAA,eAAA,mBAAyB;GACvB,UAAU,KAAK,QAAQ,UAAU;GACjC,gBAAgB,OAAO;GACvB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,cAAc,OAAO;EACvB,CAAC;CACH;CAEA,MAAM,SAAS,QAAkC;EAC/C,OAAO,KAAK,QAAQ,aAAa,mBAAmB;GAClD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;;;;;;;;;;;;;CAcA,MAAM,WAAW,QAAoC;EACnD,OAAO,KAAK,QAAQ,aAAa,qBAAqB;GACpD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,iBAAiB,QAAgC;EACrD,MAAM,gBAAgB,MAAM,KAAK,2BAA2B,MAAM;EAClE,IAAI,EAAA,GAAA,eAAA,qBAAqB,aAAa,GACpC,MAAM,IAAI,MACR,qEACF;EAGF,QAAA,GAAA,eAAA,yBAA+B;GAC7B,QAAQ,OAAO;GACf,UAAU,KAAK,QAAQ,UAAU;GACjC;EACF,CAAC;CACH;;;;;;CAOA,MAAM,cAAc,QAA6B;EAC/C,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;;;;;;;;CASA,MAAM,gBAAgB,QAA+B;EACnD,OAAO,KAAK,QAAQ,aAAa,gBAAgB;GAC/C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,eAAe,QAA6B;EAChD,IAAI,CAAC,KAAK,QAAQ,cAChB,MAAM,IAAIA,eAAAA,uBAAuB;EAGnC,MAAM,SAAS,MAAM,KAAK,QAAQ,UAAU,WAAW,KAAK,UAAU,CACpE,OAAO,SACT,CAAC;EAED,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,KAAKC,eAAAA;GACL,SAAS,OAAO;GAChB,cAAc;GACd,MAAM,CAAC,KAAK,uBAAuB,IAAA,GAAA,eAAA,UAAY,OAAO,MAAM,CAAC;EAC/D,CAAC;CACH;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as SpotExecuteAPI } from "../../SpotExecuteAPI-MoLjiUo5.cjs";
1
+ import { t as SpotExecuteAPI } from "../../SpotExecuteAPI-CXbeLCsc.cjs";
2
2
  export { SpotExecuteAPI };
@@ -1,2 +1,2 @@
1
- import { t as SpotExecuteAPI } from "../../SpotExecuteAPI-CfeSttvT.js";
1
+ import { t as SpotExecuteAPI } from "../../SpotExecuteAPI-D3-EOC-H.js";
2
2
  export { SpotExecuteAPI };
@@ -21,7 +21,10 @@ var SpotExecuteAPI = class extends BaseSpotAPI {
21
21
  });
22
22
  }
23
23
  /**
24
- * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.
24
+ * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,
25
+ * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it
26
+ * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use
27
+ * `getDynamicFeeQuote` for the current fee.
25
28
  *
26
29
  * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a
27
30
  * non-zero address, the transaction must be signed by the subaccount owner (linked signers are
@@ -59,6 +62,21 @@ var SpotExecuteAPI = class extends BaseSpotAPI {
59
62
  chainId: this.getWalletClientChainIdIfNeeded(params)
60
63
  });
61
64
  }
65
+ /**
66
+ * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at
67
+ * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the
68
+ * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.
69
+ *
70
+ * @param params
71
+ */
72
+ async transferQuoteV2(params) {
73
+ return this.context.engineClient.transferQuoteV2({
74
+ ...params,
75
+ subaccountOwner: this.getSubaccountOwnerIfNeeded(params),
76
+ verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),
77
+ chainId: this.getWalletClientChainIdIfNeeded(params)
78
+ });
79
+ }
62
80
  async mintNlp(params) {
63
81
  return this.context.engineClient.mintNlp({
64
82
  ...params,
@@ -1 +1 @@
1
- {"version":3,"file":"SpotExecuteAPI.js","names":[],"sources":["../../../src/apis/spot/SpotExecuteAPI.ts"],"sourcesContent":["import {\n approveDepositAllowance,\n depositCollateral,\n DepositCollateralParams,\n isWriteableContract,\n MOCK_ERC20_ABI,\n toBigInt,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport {\n ApproveAllowanceParams,\n BurnNlpParams,\n MintMockERC20Params,\n MintNlpParams,\n TransferQuoteParams,\n WithdrawCollateralParams,\n WithdrawCollateralV2Params,\n} from './types';\n\nexport class SpotExecuteAPI extends BaseSpotAPI {\n async deposit(params: DepositCollateralParams) {\n if (!isWriteableContract(this.context.contracts.endpoint)) {\n throw new WalletNotProvidedError();\n }\n\n return depositCollateral({\n endpoint: this.context.contracts.endpoint,\n subaccountName: params.subaccountName,\n productId: params.productId,\n amount: params.amount,\n referralCode: params.referralCode,\n });\n }\n\n async withdraw(params: WithdrawCollateralParams) {\n return this.context.engineClient.withdrawCollateral({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n /**\n * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.\n *\n * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a\n * non-zero address, the transaction must be signed by the subaccount owner (linked signers are\n * not permitted).\n *\n * @param params\n */\n async withdrawV2(params: WithdrawCollateralV2Params) {\n return this.context.engineClient.withdrawCollateralV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async approveAllowance(params: ApproveAllowanceParams) {\n const tokenContract = await this.getTokenContractForProduct(params);\n if (!isWriteableContract(tokenContract)) {\n throw new Error(\n 'Token contract does not permit writes. Is a wallet client provided?',\n );\n }\n\n return approveDepositAllowance({\n amount: params.amount,\n endpoint: this.context.contracts.endpoint,\n tokenContract,\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet.\n *\n * @param params\n */\n async transferQuote(params: TransferQuoteParams) {\n return this.context.engineClient.transferQuote({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n async mintNlp(params: MintNlpParams) {\n return this.context.engineClient.mintNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async burnNlp(params: BurnNlpParams) {\n return this.context.engineClient.burnNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async _mintMockERC20(params: MintMockERC20Params) {\n if (!this.context.walletClient) {\n throw new WalletNotProvidedError();\n }\n\n const config = await this.context.contracts.spotEngine.read.getConfig([\n params.productId,\n ]);\n\n return this.context.walletClient.writeContract({\n abi: MOCK_ERC20_ABI,\n address: config.token,\n functionName: 'mint',\n args: [this.getWalletClientAddress(), toBigInt(params.amount)],\n });\n }\n}\n"],"mappings":";;;AAoBA,IAAa,iBAAb,cAAoC,YAAY;CAC9C,MAAM,QAAQ,QAAiC;EAC7C,IAAI,CAAC,oBAAoB,KAAK,QAAQ,UAAU,QAAQ,GACtD,MAAM,IAAI,uBAAuB;EAGnC,OAAO,kBAAkB;GACvB,UAAU,KAAK,QAAQ,UAAU;GACjC,gBAAgB,OAAO;GACvB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,cAAc,OAAO;EACvB,CAAC;CACH;CAEA,MAAM,SAAS,QAAkC;EAC/C,OAAO,KAAK,QAAQ,aAAa,mBAAmB;GAClD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;;;;;;;;;;CAWA,MAAM,WAAW,QAAoC;EACnD,OAAO,KAAK,QAAQ,aAAa,qBAAqB;GACpD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,iBAAiB,QAAgC;EACrD,MAAM,gBAAgB,MAAM,KAAK,2BAA2B,MAAM;EAClE,IAAI,CAAC,oBAAoB,aAAa,GACpC,MAAM,IAAI,MACR,qEACF;EAGF,OAAO,wBAAwB;GAC7B,QAAQ,OAAO;GACf,UAAU,KAAK,QAAQ,UAAU;GACjC;EACF,CAAC;CACH;;;;;;CAOA,MAAM,cAAc,QAA6B;EAC/C,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,eAAe,QAA6B;EAChD,IAAI,CAAC,KAAK,QAAQ,cAChB,MAAM,IAAI,uBAAuB;EAGnC,MAAM,SAAS,MAAM,KAAK,QAAQ,UAAU,WAAW,KAAK,UAAU,CACpE,OAAO,SACT,CAAC;EAED,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,KAAK;GACL,SAAS,OAAO;GAChB,cAAc;GACd,MAAM,CAAC,KAAK,uBAAuB,GAAG,SAAS,OAAO,MAAM,CAAC;EAC/D,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"SpotExecuteAPI.js","names":[],"sources":["../../../src/apis/spot/SpotExecuteAPI.ts"],"sourcesContent":["import {\n approveDepositAllowance,\n depositCollateral,\n DepositCollateralParams,\n isWriteableContract,\n MOCK_ERC20_ABI,\n toBigInt,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport {\n ApproveAllowanceParams,\n BurnNlpParams,\n MintMockERC20Params,\n MintNlpParams,\n TransferQuoteParams,\n TransferQuoteV2Params,\n WithdrawCollateralParams,\n WithdrawCollateralV2Params,\n} from './types';\n\nexport class SpotExecuteAPI extends BaseSpotAPI {\n async deposit(params: DepositCollateralParams) {\n if (!isWriteableContract(this.context.contracts.endpoint)) {\n throw new WalletNotProvidedError();\n }\n\n return depositCollateral({\n endpoint: this.context.contracts.endpoint,\n subaccountName: params.subaccountName,\n productId: params.productId,\n amount: params.amount,\n referralCode: params.referralCode,\n });\n }\n\n async withdraw(params: WithdrawCollateralParams) {\n return this.context.engineClient.withdrawCollateral({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n /**\n * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,\n * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it\n * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use\n * `getDynamicFeeQuote` for the current fee.\n *\n * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a\n * non-zero address, the transaction must be signed by the subaccount owner (linked signers are\n * not permitted).\n *\n * @param params\n */\n async withdrawV2(params: WithdrawCollateralV2Params) {\n return this.context.engineClient.withdrawCollateralV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async approveAllowance(params: ApproveAllowanceParams) {\n const tokenContract = await this.getTokenContractForProduct(params);\n if (!isWriteableContract(tokenContract)) {\n throw new Error(\n 'Token contract does not permit writes. Is a wallet client provided?',\n );\n }\n\n return approveDepositAllowance({\n amount: params.amount,\n endpoint: this.context.contracts.endpoint,\n tokenContract,\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet.\n *\n * @param params\n */\n async transferQuote(params: TransferQuoteParams) {\n return this.context.engineClient.transferQuote({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n /**\n * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at\n * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the\n * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.\n *\n * @param params\n */\n async transferQuoteV2(params: TransferQuoteV2Params) {\n return this.context.engineClient.transferQuoteV2({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n });\n }\n\n async mintNlp(params: MintNlpParams) {\n return this.context.engineClient.mintNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async burnNlp(params: BurnNlpParams) {\n return this.context.engineClient.burnNlp({\n ...params,\n subaccountOwner: this.getSubaccountOwnerIfNeeded(params),\n chainId: this.getWalletClientChainIdIfNeeded(params),\n verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),\n });\n }\n\n async _mintMockERC20(params: MintMockERC20Params) {\n if (!this.context.walletClient) {\n throw new WalletNotProvidedError();\n }\n\n const config = await this.context.contracts.spotEngine.read.getConfig([\n params.productId,\n ]);\n\n return this.context.walletClient.writeContract({\n abi: MOCK_ERC20_ABI,\n address: config.token,\n functionName: 'mint',\n args: [this.getWalletClientAddress(), toBigInt(params.amount)],\n });\n }\n}\n"],"mappings":";;;AAqBA,IAAa,iBAAb,cAAoC,YAAY;CAC9C,MAAM,QAAQ,QAAiC;EAC7C,IAAI,CAAC,oBAAoB,KAAK,QAAQ,UAAU,QAAQ,GACtD,MAAM,IAAI,uBAAuB;EAGnC,OAAO,kBAAkB;GACvB,UAAU,KAAK,QAAQ,UAAU;GACjC,gBAAgB,OAAO;GACvB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,cAAc,OAAO;EACvB,CAAC;CACH;CAEA,MAAM,SAAS,QAAkC;EAC/C,OAAO,KAAK,QAAQ,aAAa,mBAAmB;GAClD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;;;;;;;;;;;;;CAcA,MAAM,WAAW,QAAoC;EACnD,OAAO,KAAK,QAAQ,aAAa,qBAAqB;GACpD,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,iBAAiB,QAAgC;EACrD,MAAM,gBAAgB,MAAM,KAAK,2BAA2B,MAAM;EAClE,IAAI,CAAC,oBAAoB,aAAa,GACpC,MAAM,IAAI,MACR,qEACF;EAGF,OAAO,wBAAwB;GAC7B,QAAQ,OAAO;GACf,UAAU,KAAK,QAAQ,UAAU;GACjC;EACF,CAAC;CACH;;;;;;CAOA,MAAM,cAAc,QAA6B;EAC/C,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;;;;;;;;CASA,MAAM,gBAAgB,QAA+B;EACnD,OAAO,KAAK,QAAQ,aAAa,gBAAgB;GAC/C,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;GAC/D,SAAS,KAAK,+BAA+B,MAAM;EACrD,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,QAAQ,QAAuB;EACnC,OAAO,KAAK,QAAQ,aAAa,QAAQ;GACvC,GAAG;GACH,iBAAiB,KAAK,2BAA2B,MAAM;GACvD,SAAS,KAAK,+BAA+B,MAAM;GACnD,eAAe,OAAO,iBAAiB,KAAK,mBAAmB;EACjE,CAAC;CACH;CAEA,MAAM,eAAe,QAA6B;EAChD,IAAI,CAAC,KAAK,QAAQ,cAChB,MAAM,IAAI,uBAAuB;EAGnC,MAAM,SAAS,MAAM,KAAK,QAAQ,UAAU,WAAW,KAAK,UAAU,CACpE,OAAO,SACT,CAAC;EAED,OAAO,KAAK,QAAQ,aAAa,cAAc;GAC7C,KAAK;GACL,SAAS,OAAO;GAChB,cAAc;GACd,MAAM,CAAC,KAAK,uBAAuB,GAAG,SAAS,OAAO,MAAM,CAAC;EAC/D,CAAC;CACH;AACF"}
@@ -3,12 +3,18 @@ const require_apis_spot_BaseSpotAPI = require("./BaseSpotAPI.cjs");
3
3
  let _nadohq_shared = require("@nadohq/shared");
4
4
  //#region src/apis/spot/SpotQueryAPI.ts
5
5
  var SpotQueryAPI = class extends require_apis_spot_BaseSpotAPI.BaseSpotAPI {
6
+ async getMaxWithdrawable(params, options) {
7
+ if (options?.withDynamicFee) return this.context.engineClient.getMaxWithdrawable(params, { withDynamicFee: true });
8
+ return this.context.engineClient.getMaxWithdrawable(params);
9
+ }
6
10
  /**
7
- * Gets the estimated max withdrawable amount for a product
11
+ * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced
12
+ * again at execution, so pass a `maxFeeX18` with some headroom when executing.
8
13
  * @param params
14
+ * @returns The current required fee, the fee cap, and the V2 demand pressure.
9
15
  */
10
- async getMaxWithdrawable(params) {
11
- return this.context.engineClient.getMaxWithdrawable(params);
16
+ async getDynamicFeeQuote(params) {
17
+ return this.context.engineClient.getDynamicFeeQuote(params);
12
18
  }
13
19
  /**
14
20
  * Queries engine to determine maximum quote amount for minting NLP.
@@ -1 +1 @@
1
- {"version":3,"file":"SpotQueryAPI.cjs","names":["BaseSpotAPI"],"sources":["../../../src/apis/spot/SpotQueryAPI.ts"],"sourcesContent":["import {\n GetEngineMaxMintNlpAmountParams,\n GetEngineMaxWithdrawableParams,\n} from '@nadohq/engine-client';\nimport { getValidatedAddress, toBigNumber } from '@nadohq/shared';\nimport BigNumber from 'bignumber.js';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport { GetTokenAllowanceParams, GetTokenWalletBalanceParams } from './types';\n\nexport class SpotQueryAPI extends BaseSpotAPI {\n /**\n * Gets the estimated max withdrawable amount for a product\n * @param params\n */\n async getMaxWithdrawable(params: GetEngineMaxWithdrawableParams) {\n return this.context.engineClient.getMaxWithdrawable(params);\n }\n\n /**\n * Queries engine to determine maximum quote amount for minting NLP.\n *\n * @param params\n */\n async getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams) {\n return this.context.engineClient.getMaxMintNlpAmount(params);\n }\n\n /**\n * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)\n */\n async getTokenWalletBalance({\n address,\n ...rest\n }: GetTokenWalletBalanceParams): Promise<bigint> {\n const token = await this.getTokenContractForProduct(rest);\n return token.read.balanceOf([getValidatedAddress(address)]);\n }\n\n /**\n * Helper to get current token allowance\n */\n async getTokenAllowance({\n address,\n ...rest\n }: GetTokenAllowanceParams): Promise<BigNumber> {\n const token = await this.getTokenContractForProduct(rest);\n return toBigNumber(\n await token.read.allowance([\n getValidatedAddress(address),\n this.getEndpointAddress(),\n ]),\n );\n }\n}\n"],"mappings":";;;;AASA,IAAa,eAAb,cAAkCA,8BAAAA,YAAY;;;;;CAK5C,MAAM,mBAAmB,QAAwC;EAC/D,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;CAOA,MAAM,oBAAoB,QAAyC;EACjE,OAAO,KAAK,QAAQ,aAAa,oBAAoB,MAAM;CAC7D;;;;CAKA,MAAM,sBAAsB,EAC1B,SACA,GAAG,QAC4C;EAE/C,QAAO,MADa,KAAK,2BAA2B,IAAI,GAC3C,KAAK,UAAU,EAAA,GAAA,eAAA,qBAAqB,OAAO,CAAC,CAAC;CAC5D;;;;CAKA,MAAM,kBAAkB,EACtB,SACA,GAAG,QAC2C;EAE9C,QAAA,GAAA,eAAA,aACE,OAAM,MAFY,KAAK,2BAA2B,IAAI,GAE1C,KAAK,UAAU,EAAA,GAAA,eAAA,qBACL,OAAO,GAC3B,KAAK,mBAAmB,CAC1B,CAAC,CACH;CACF;AACF"}
1
+ {"version":3,"file":"SpotQueryAPI.cjs","names":["BaseSpotAPI"],"sources":["../../../src/apis/spot/SpotQueryAPI.ts"],"sourcesContent":["import {\n GetEngineDynamicFeeQuoteParams,\n GetEngineDynamicFeeQuoteResponse,\n GetEngineMaxMintNlpAmountParams,\n GetEngineMaxWithdrawableParams,\n GetEngineMaxWithdrawableResponse,\n GetEngineMaxWithdrawableWithDynamicFeeResponse,\n} from '@nadohq/engine-client';\nimport { getValidatedAddress, toBigNumber } from '@nadohq/shared';\nimport BigNumber from 'bignumber.js';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport { GetTokenAllowanceParams, GetTokenWalletBalanceParams } from './types';\n\nexport class SpotQueryAPI extends BaseSpotAPI {\n /**\n * Gets the estimated max withdrawable amount for a product\n * @param params\n */\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n ): Promise<GetEngineMaxWithdrawableResponse>;\n /**\n * Gets the estimated max withdrawable amount for a product, with the current dynamic fee of\n * Withdraw Collateral V2 reserved instead of the flat fee. The reserved fee is returned as\n * `fee`.\n * @param params\n * @returns The max withdrawable with the current dynamic fee reserved, and the reserved fee.\n */\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n options: { withDynamicFee: true },\n ): Promise<GetEngineMaxWithdrawableWithDynamicFeeResponse>;\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n options?: { withDynamicFee?: boolean },\n ): Promise<\n | GetEngineMaxWithdrawableResponse\n | GetEngineMaxWithdrawableWithDynamicFeeResponse\n > {\n if (options?.withDynamicFee) {\n return this.context.engineClient.getMaxWithdrawable(params, {\n withDynamicFee: true,\n });\n }\n\n return this.context.engineClient.getMaxWithdrawable(params);\n }\n\n /**\n * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced\n * again at execution, so pass a `maxFeeX18` with some headroom when executing.\n * @param params\n * @returns The current required fee, the fee cap, and the V2 demand pressure.\n */\n async getDynamicFeeQuote(\n params: GetEngineDynamicFeeQuoteParams,\n ): Promise<GetEngineDynamicFeeQuoteResponse> {\n return this.context.engineClient.getDynamicFeeQuote(params);\n }\n\n /**\n * Queries engine to determine maximum quote amount for minting NLP.\n *\n * @param params\n */\n async getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams) {\n return this.context.engineClient.getMaxMintNlpAmount(params);\n }\n\n /**\n * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)\n */\n async getTokenWalletBalance({\n address,\n ...rest\n }: GetTokenWalletBalanceParams): Promise<bigint> {\n const token = await this.getTokenContractForProduct(rest);\n return token.read.balanceOf([getValidatedAddress(address)]);\n }\n\n /**\n * Helper to get current token allowance\n */\n async getTokenAllowance({\n address,\n ...rest\n }: GetTokenAllowanceParams): Promise<BigNumber> {\n const token = await this.getTokenContractForProduct(rest);\n return toBigNumber(\n await token.read.allowance([\n getValidatedAddress(address),\n this.getEndpointAddress(),\n ]),\n );\n }\n}\n"],"mappings":";;;;AAaA,IAAa,eAAb,cAAkCA,8BAAAA,YAAY;CAmB5C,MAAM,mBACJ,QACA,SAIA;EACA,IAAI,SAAS,gBACX,OAAO,KAAK,QAAQ,aAAa,mBAAmB,QAAQ,EAC1D,gBAAgB,KAClB,CAAC;EAGH,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;;CAQA,MAAM,mBACJ,QAC2C;EAC3C,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;CAOA,MAAM,oBAAoB,QAAyC;EACjE,OAAO,KAAK,QAAQ,aAAa,oBAAoB,MAAM;CAC7D;;;;CAKA,MAAM,sBAAsB,EAC1B,SACA,GAAG,QAC4C;EAE/C,QAAO,MADa,KAAK,2BAA2B,IAAI,GAC3C,KAAK,UAAU,EAAA,GAAA,eAAA,qBAAqB,OAAO,CAAC,CAAC;CAC5D;;;;CAKA,MAAM,kBAAkB,EACtB,SACA,GAAG,QAC2C;EAE9C,QAAA,GAAA,eAAA,aACE,OAAM,MAFY,KAAK,2BAA2B,IAAI,GAE1C,KAAK,UAAU,EAAA,GAAA,eAAA,qBACL,OAAO,GAC3B,KAAK,mBAAmB,CAC1B,CAAC,CACH;CACF;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as SpotQueryAPI } from "../../SpotQueryAPI-DZXIzKUn.cjs";
1
+ import { t as SpotQueryAPI } from "../../SpotQueryAPI-GvWSoN94.cjs";
2
2
  export { SpotQueryAPI };
@@ -1,2 +1,2 @@
1
- import { t as SpotQueryAPI } from "../../SpotQueryAPI-CoNofFJV.js";
1
+ import { t as SpotQueryAPI } from "../../SpotQueryAPI-BBLKIvGJ.js";
2
2
  export { SpotQueryAPI };
@@ -2,12 +2,18 @@ import { BaseSpotAPI } from "./BaseSpotAPI.js";
2
2
  import { getValidatedAddress, toBigNumber } from "@nadohq/shared";
3
3
  //#region src/apis/spot/SpotQueryAPI.ts
4
4
  var SpotQueryAPI = class extends BaseSpotAPI {
5
+ async getMaxWithdrawable(params, options) {
6
+ if (options?.withDynamicFee) return this.context.engineClient.getMaxWithdrawable(params, { withDynamicFee: true });
7
+ return this.context.engineClient.getMaxWithdrawable(params);
8
+ }
5
9
  /**
6
- * Gets the estimated max withdrawable amount for a product
10
+ * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced
11
+ * again at execution, so pass a `maxFeeX18` with some headroom when executing.
7
12
  * @param params
13
+ * @returns The current required fee, the fee cap, and the V2 demand pressure.
8
14
  */
9
- async getMaxWithdrawable(params) {
10
- return this.context.engineClient.getMaxWithdrawable(params);
15
+ async getDynamicFeeQuote(params) {
16
+ return this.context.engineClient.getDynamicFeeQuote(params);
11
17
  }
12
18
  /**
13
19
  * Queries engine to determine maximum quote amount for minting NLP.
@@ -1 +1 @@
1
- {"version":3,"file":"SpotQueryAPI.js","names":[],"sources":["../../../src/apis/spot/SpotQueryAPI.ts"],"sourcesContent":["import {\n GetEngineMaxMintNlpAmountParams,\n GetEngineMaxWithdrawableParams,\n} from '@nadohq/engine-client';\nimport { getValidatedAddress, toBigNumber } from '@nadohq/shared';\nimport BigNumber from 'bignumber.js';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport { GetTokenAllowanceParams, GetTokenWalletBalanceParams } from './types';\n\nexport class SpotQueryAPI extends BaseSpotAPI {\n /**\n * Gets the estimated max withdrawable amount for a product\n * @param params\n */\n async getMaxWithdrawable(params: GetEngineMaxWithdrawableParams) {\n return this.context.engineClient.getMaxWithdrawable(params);\n }\n\n /**\n * Queries engine to determine maximum quote amount for minting NLP.\n *\n * @param params\n */\n async getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams) {\n return this.context.engineClient.getMaxMintNlpAmount(params);\n }\n\n /**\n * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)\n */\n async getTokenWalletBalance({\n address,\n ...rest\n }: GetTokenWalletBalanceParams): Promise<bigint> {\n const token = await this.getTokenContractForProduct(rest);\n return token.read.balanceOf([getValidatedAddress(address)]);\n }\n\n /**\n * Helper to get current token allowance\n */\n async getTokenAllowance({\n address,\n ...rest\n }: GetTokenAllowanceParams): Promise<BigNumber> {\n const token = await this.getTokenContractForProduct(rest);\n return toBigNumber(\n await token.read.allowance([\n getValidatedAddress(address),\n this.getEndpointAddress(),\n ]),\n );\n }\n}\n"],"mappings":";;;AASA,IAAa,eAAb,cAAkC,YAAY;;;;;CAK5C,MAAM,mBAAmB,QAAwC;EAC/D,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;CAOA,MAAM,oBAAoB,QAAyC;EACjE,OAAO,KAAK,QAAQ,aAAa,oBAAoB,MAAM;CAC7D;;;;CAKA,MAAM,sBAAsB,EAC1B,SACA,GAAG,QAC4C;EAE/C,QAAO,MADa,KAAK,2BAA2B,IAAI,GAC3C,KAAK,UAAU,CAAC,oBAAoB,OAAO,CAAC,CAAC;CAC5D;;;;CAKA,MAAM,kBAAkB,EACtB,SACA,GAAG,QAC2C;EAE9C,OAAO,YACL,OAAM,MAFY,KAAK,2BAA2B,IAAI,GAE1C,KAAK,UAAU,CACzB,oBAAoB,OAAO,GAC3B,KAAK,mBAAmB,CAC1B,CAAC,CACH;CACF;AACF"}
1
+ {"version":3,"file":"SpotQueryAPI.js","names":[],"sources":["../../../src/apis/spot/SpotQueryAPI.ts"],"sourcesContent":["import {\n GetEngineDynamicFeeQuoteParams,\n GetEngineDynamicFeeQuoteResponse,\n GetEngineMaxMintNlpAmountParams,\n GetEngineMaxWithdrawableParams,\n GetEngineMaxWithdrawableResponse,\n GetEngineMaxWithdrawableWithDynamicFeeResponse,\n} from '@nadohq/engine-client';\nimport { getValidatedAddress, toBigNumber } from '@nadohq/shared';\nimport BigNumber from 'bignumber.js';\nimport { BaseSpotAPI } from './BaseSpotAPI';\nimport { GetTokenAllowanceParams, GetTokenWalletBalanceParams } from './types';\n\nexport class SpotQueryAPI extends BaseSpotAPI {\n /**\n * Gets the estimated max withdrawable amount for a product\n * @param params\n */\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n ): Promise<GetEngineMaxWithdrawableResponse>;\n /**\n * Gets the estimated max withdrawable amount for a product, with the current dynamic fee of\n * Withdraw Collateral V2 reserved instead of the flat fee. The reserved fee is returned as\n * `fee`.\n * @param params\n * @returns The max withdrawable with the current dynamic fee reserved, and the reserved fee.\n */\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n options: { withDynamicFee: true },\n ): Promise<GetEngineMaxWithdrawableWithDynamicFeeResponse>;\n async getMaxWithdrawable(\n params: GetEngineMaxWithdrawableParams,\n options?: { withDynamicFee?: boolean },\n ): Promise<\n | GetEngineMaxWithdrawableResponse\n | GetEngineMaxWithdrawableWithDynamicFeeResponse\n > {\n if (options?.withDynamicFee) {\n return this.context.engineClient.getMaxWithdrawable(params, {\n withDynamicFee: true,\n });\n }\n\n return this.context.engineClient.getMaxWithdrawable(params);\n }\n\n /**\n * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced\n * again at execution, so pass a `maxFeeX18` with some headroom when executing.\n * @param params\n * @returns The current required fee, the fee cap, and the V2 demand pressure.\n */\n async getDynamicFeeQuote(\n params: GetEngineDynamicFeeQuoteParams,\n ): Promise<GetEngineDynamicFeeQuoteResponse> {\n return this.context.engineClient.getDynamicFeeQuote(params);\n }\n\n /**\n * Queries engine to determine maximum quote amount for minting NLP.\n *\n * @param params\n */\n async getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams) {\n return this.context.engineClient.getMaxMintNlpAmount(params);\n }\n\n /**\n * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)\n */\n async getTokenWalletBalance({\n address,\n ...rest\n }: GetTokenWalletBalanceParams): Promise<bigint> {\n const token = await this.getTokenContractForProduct(rest);\n return token.read.balanceOf([getValidatedAddress(address)]);\n }\n\n /**\n * Helper to get current token allowance\n */\n async getTokenAllowance({\n address,\n ...rest\n }: GetTokenAllowanceParams): Promise<BigNumber> {\n const token = await this.getTokenContractForProduct(rest);\n return toBigNumber(\n await token.read.allowance([\n getValidatedAddress(address),\n this.getEndpointAddress(),\n ]),\n );\n }\n}\n"],"mappings":";;;AAaA,IAAa,eAAb,cAAkC,YAAY;CAmB5C,MAAM,mBACJ,QACA,SAIA;EACA,IAAI,SAAS,gBACX,OAAO,KAAK,QAAQ,aAAa,mBAAmB,QAAQ,EAC1D,gBAAgB,KAClB,CAAC;EAGH,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;;CAQA,MAAM,mBACJ,QAC2C;EAC3C,OAAO,KAAK,QAAQ,aAAa,mBAAmB,MAAM;CAC5D;;;;;;CAOA,MAAM,oBAAoB,QAAyC;EACjE,OAAO,KAAK,QAAQ,aAAa,oBAAoB,MAAM;CAC7D;;;;CAKA,MAAM,sBAAsB,EAC1B,SACA,GAAG,QAC4C;EAE/C,QAAO,MADa,KAAK,2BAA2B,IAAI,GAC3C,KAAK,UAAU,CAAC,oBAAoB,OAAO,CAAC,CAAC;CAC5D;;;;CAKA,MAAM,kBAAkB,EACtB,SACA,GAAG,QAC2C;EAE9C,OAAO,YACL,OAAM,MAFY,KAAK,2BAA2B,IAAI,GAE1C,KAAK,UAAU,CACzB,oBAAoB,OAAO,GAC3B,KAAK,mBAAmB,CAC1B,CAAC,CACH;CACF;AACF"}
@@ -1,3 +1,3 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "../../types-CObZ3UZ8.cjs";
2
- import { t as SpotAPI } from "../../index-_JjlzC9X.cjs";
3
- export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, SpotAPI, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params };
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "../../types-Caq8UZ8J.cjs";
2
+ import { t as SpotAPI } from "../../index-B44dQYOt.cjs";
3
+ export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, SpotAPI, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params };
@@ -1,3 +1,3 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "../../types-ClaArDCu.js";
2
- import { t as SpotAPI } from "../../index-DdRpzv1r.js";
3
- export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, SpotAPI, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params };
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "../../types-DXQWU3Dg.js";
2
+ import { t as SpotAPI } from "../../index-DlJeayLR.js";
3
+ export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, SpotAPI, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params };
@@ -1,2 +1,2 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "../../types-CObZ3UZ8.cjs";
2
- export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params };
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "../../types-Caq8UZ8J.cjs";
2
+ export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params };
@@ -1,2 +1,2 @@
1
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "../../types-ClaArDCu.js";
2
- export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params };
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "../../types-DXQWU3Dg.js";
2
+ export { ApproveAllowanceParams, BurnNlpParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, MintMockERC20Params, MintNlpParams, ProductIdOrTokenAddress, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params };
@@ -1,2 +1,2 @@
1
- import { t as WebSocketExecuteAPI } from "../../WebSocketExecuteAPI-BitD-ApX.cjs";
1
+ import { t as WebSocketExecuteAPI } from "../../WebSocketExecuteAPI-CbW9fGz5.cjs";
2
2
  export { WebSocketExecuteAPI };
@@ -1,2 +1,2 @@
1
- import { t as WebSocketExecuteAPI } from "../../WebSocketExecuteAPI-BdLnMPvL.js";
1
+ import { t as WebSocketExecuteAPI } from "../../WebSocketExecuteAPI-CL6VF4fV.js";
2
2
  export { WebSocketExecuteAPI };
@@ -1,2 +1,2 @@
1
- import { t as WebsocketAPI } from "../../index-HyEE0yWQ.cjs";
1
+ import { t as WebsocketAPI } from "../../index-D9w2TtoN.cjs";
2
2
  export { WebsocketAPI };
@@ -1,2 +1,2 @@
1
- import { t as WebsocketAPI } from "../../index-CZEGiJl9.js";
1
+ import { t as WebsocketAPI } from "../../index-BvLzbcxb.js";
2
2
  export { WebsocketAPI };
package/dist/client.d.cts CHANGED
@@ -2,9 +2,9 @@ import { r as NadoClientContext } from "./context-DnJSqTLC.cjs";
2
2
  import { t as MarketAPI } from "./index-CsAkM9rG.cjs";
3
3
  import { t as PerpAPI } from "./index-D7D-gJ5H.cjs";
4
4
  import { t as RewardsAPI } from "./index-CaHqV6zm.cjs";
5
- import { t as SpotAPI } from "./index-_JjlzC9X.cjs";
5
+ import { t as SpotAPI } from "./index-B44dQYOt.cjs";
6
6
  import { t as SubaccountAPI } from "./index-BKXL9EgP.cjs";
7
- import { t as WebsocketAPI } from "./index-HyEE0yWQ.cjs";
7
+ import { t as WebsocketAPI } from "./index-D9w2TtoN.cjs";
8
8
  import { WalletClientWithAccount } from "@nadohq/shared";
9
9
 
10
10
  //#region src/client.d.ts
package/dist/client.d.ts CHANGED
@@ -2,9 +2,9 @@ import { r as NadoClientContext } from "./context-DLwmlDFU.js";
2
2
  import { t as MarketAPI } from "./index-D4VVXjdj.js";
3
3
  import { t as PerpAPI } from "./index-DKuDOwSh.js";
4
4
  import { t as RewardsAPI } from "./index-BOjdI8Tw.js";
5
- import { t as SpotAPI } from "./index-DdRpzv1r.js";
5
+ import { t as SpotAPI } from "./index-DlJeayLR.js";
6
6
  import { t as SubaccountAPI } from "./index-_sKgQEvR.js";
7
- import { t as WebsocketAPI } from "./index-CZEGiJl9.js";
7
+ import { t as WebsocketAPI } from "./index-BvLzbcxb.js";
8
8
  import { WalletClientWithAccount } from "@nadohq/shared";
9
9
 
10
10
  //#region src/client.d.ts
@@ -1,5 +1,5 @@
1
- import { t as SpotExecuteAPI } from "./SpotExecuteAPI-MoLjiUo5.cjs";
2
- import { t as SpotQueryAPI } from "./SpotQueryAPI-DZXIzKUn.cjs";
1
+ import { t as SpotExecuteAPI } from "./SpotExecuteAPI-CXbeLCsc.cjs";
2
+ import { t as SpotQueryAPI } from "./SpotQueryAPI-GvWSoN94.cjs";
3
3
 
4
4
  //#region src/apis/spot/index.d.ts
5
5
  declare const SpotAPI_base: import("ts-mixer/dist/types/types").Class<any[], SpotExecuteAPI & SpotQueryAPI, typeof SpotExecuteAPI & typeof SpotQueryAPI>;
@@ -9,4 +9,4 @@ declare const SpotAPI_base: import("ts-mixer/dist/types/types").Class<any[], Spo
9
9
  declare class SpotAPI extends SpotAPI_base {}
10
10
  //#endregion
11
11
  export { SpotAPI as t };
12
- //# sourceMappingURL=index-_JjlzC9X.d.cts.map
12
+ //# sourceMappingURL=index-B44dQYOt.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B44dQYOt.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/index.ts"],"mappings":";;;;cAE8C,YAAA;;;AAAA;cAKjC,OAAA,SAAgB,YAAmC"}
@@ -1,6 +1,6 @@
1
1
  import { r as NadoClientContext } from "./context-DLwmlDFU.js";
2
2
  import { t as BaseNadoAPI } from "./base-BlVA2LTB.js";
3
- import { t as WebSocketExecuteAPI } from "./WebSocketExecuteAPI-BdLnMPvL.js";
3
+ import { t as WebSocketExecuteAPI } from "./WebSocketExecuteAPI-CL6VF4fV.js";
4
4
  import { t as WebSocketQueryAPI } from "./WebSocketQueryAPI-BtWQfICL.js";
5
5
  import { t as WebSocketSubscriptionAPI } from "./WebSocketSubscriptionAPI-Cu2ipVcu.js";
6
6
 
@@ -16,4 +16,4 @@ declare class WebsocketAPI extends BaseNadoAPI {
16
16
  }
17
17
  //#endregion
18
18
  export { WebsocketAPI as t };
19
- //# sourceMappingURL=index-CZEGiJl9.d.ts.map
19
+ //# sourceMappingURL=index-BvLzbcxb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CZEGiJl9.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/index.ts"],"mappings":";;;;;;;;;AASA;cAAa,YAAA,SAAqB,WAAA;EAAA,SACvB,KAAA,EAAO,iBAAA;EAAA,SACP,OAAA,EAAS,mBAAA;EAAA,SACT,YAAA,EAAc,wBAAA;cAEX,OAAA,EAAS,iBAAA;AAAA"}
1
+ {"version":3,"file":"index-BvLzbcxb.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/index.ts"],"mappings":";;;;;;;;;AASA;cAAa,YAAA,SAAqB,WAAA;EAAA,SACvB,KAAA,EAAO,iBAAA;EAAA,SACP,OAAA,EAAS,mBAAA;EAAA,SACT,YAAA,EAAc,wBAAA;cAEX,OAAA,EAAS,iBAAA;AAAA"}
@@ -1,6 +1,6 @@
1
1
  import { r as NadoClientContext } from "./context-DnJSqTLC.cjs";
2
2
  import { t as BaseNadoAPI } from "./base-BDnJj6M7.cjs";
3
- import { t as WebSocketExecuteAPI } from "./WebSocketExecuteAPI-BitD-ApX.cjs";
3
+ import { t as WebSocketExecuteAPI } from "./WebSocketExecuteAPI-CbW9fGz5.cjs";
4
4
  import { t as WebSocketQueryAPI } from "./WebSocketQueryAPI-DsrNh2dl.cjs";
5
5
  import { t as WebSocketSubscriptionAPI } from "./WebSocketSubscriptionAPI-p9Y7cqhk.cjs";
6
6
 
@@ -16,4 +16,4 @@ declare class WebsocketAPI extends BaseNadoAPI {
16
16
  }
17
17
  //#endregion
18
18
  export { WebsocketAPI as t };
19
- //# sourceMappingURL=index-HyEE0yWQ.d.cts.map
19
+ //# sourceMappingURL=index-D9w2TtoN.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-HyEE0yWQ.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/index.ts"],"mappings":";;;;;;;;;AASA;cAAa,YAAA,SAAqB,WAAA;EAAA,SACvB,KAAA,EAAO,iBAAA;EAAA,SACP,OAAA,EAAS,mBAAA;EAAA,SACT,YAAA,EAAc,wBAAA;cAEX,OAAA,EAAS,iBAAA;AAAA"}
1
+ {"version":3,"file":"index-D9w2TtoN.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/index.ts"],"mappings":";;;;;;;;;AASA;cAAa,YAAA,SAAqB,WAAA;EAAA,SACvB,KAAA,EAAO,iBAAA;EAAA,SACP,OAAA,EAAS,mBAAA;EAAA,SACT,YAAA,EAAc,wBAAA;cAEX,OAAA,EAAS,iBAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { t as SpotExecuteAPI } from "./SpotExecuteAPI-CfeSttvT.js";
2
- import { t as SpotQueryAPI } from "./SpotQueryAPI-CoNofFJV.js";
1
+ import { t as SpotExecuteAPI } from "./SpotExecuteAPI-D3-EOC-H.js";
2
+ import { t as SpotQueryAPI } from "./SpotQueryAPI-BBLKIvGJ.js";
3
3
 
4
4
  //#region src/apis/spot/index.d.ts
5
5
  declare const SpotAPI_base: import("ts-mixer/dist/types/types").Class<any[], SpotExecuteAPI & SpotQueryAPI, typeof SpotExecuteAPI & typeof SpotQueryAPI>;
@@ -9,4 +9,4 @@ declare const SpotAPI_base: import("ts-mixer/dist/types/types").Class<any[], Spo
9
9
  declare class SpotAPI extends SpotAPI_base {}
10
10
  //#endregion
11
11
  export { SpotAPI as t };
12
- //# sourceMappingURL=index-DdRpzv1r.d.ts.map
12
+ //# sourceMappingURL=index-DlJeayLR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DlJeayLR.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/index.ts"],"mappings":";;;;cAE8C,YAAA;;;AAAA;cAKjC,OAAA,SAAgB,YAAmC"}
package/dist/index.d.cts CHANGED
@@ -4,8 +4,8 @@ import { t as MarketAPI } from "./index-CsAkM9rG.cjs";
4
4
  import { t as PerpAPI } from "./index-D7D-gJ5H.cjs";
5
5
  import { n as GetClaimedAirdropAmountsParams, t as AirdropAddressParams } from "./types-xRxFR-cw.cjs";
6
6
  import { t as RewardsAPI } from "./index-CaHqV6zm.cjs";
7
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "./types-CObZ3UZ8.cjs";
8
- import { t as SpotAPI } from "./index-_JjlzC9X.cjs";
7
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "./types-Caq8UZ8J.cjs";
8
+ import { t as SpotAPI } from "./index-B44dQYOt.cjs";
9
9
  import { n as LinkSignerParams, r as LiquidateSubaccountParams, t as CreateStandardLinkedSignerResult } from "./types-BiFd3gnp.cjs";
10
10
  import { t as SubaccountAPI } from "./index-BKXL9EgP.cjs";
11
11
  import { NadoClient } from "./client.cjs";
@@ -17,4 +17,4 @@ export * from "@nadohq/mobile-client";
17
17
  export * from "@nadohq/nuanze-client";
18
18
  export * from "@nadohq/otc-client";
19
19
  export * from "@nadohq/trigger-client";
20
- export { AirdropAddressParams, ApproveAllowanceParams, BurnNlpParams, CancelAndPlaceOrderParams, CancelOrdersParams, CancelProductOrdersParams, CancelTriggerOrdersParams, CancelTriggerProductOrdersParams, CreateNadoClientContextAccountOpts, CreateNadoClientContextOpts, CreateStandardLinkedSignerResult, GetClaimedAirdropAmountsParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, GetTriggerOrdersParams, LinkSignerParams, LiquidateSubaccountParams, MarketAPI, MintMockERC20Params, MintNlpParams, NadoClient, NadoClientContext, PerpAPI, PlaceOrderParams, PlaceOrdersParams, PlaceTriggerOrderParams, PlaceTriggerOrdersParams, ProductIdOrTokenAddress, RewardsAPI, SpotAPI, SubaccountAPI, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params, createClientContext, createNadoClient };
20
+ export { AirdropAddressParams, ApproveAllowanceParams, BurnNlpParams, CancelAndPlaceOrderParams, CancelOrdersParams, CancelProductOrdersParams, CancelTriggerOrdersParams, CancelTriggerProductOrdersParams, CreateNadoClientContextAccountOpts, CreateNadoClientContextOpts, CreateStandardLinkedSignerResult, GetClaimedAirdropAmountsParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, GetTriggerOrdersParams, LinkSignerParams, LiquidateSubaccountParams, MarketAPI, MintMockERC20Params, MintNlpParams, NadoClient, NadoClientContext, PerpAPI, PlaceOrderParams, PlaceOrdersParams, PlaceTriggerOrderParams, PlaceTriggerOrdersParams, ProductIdOrTokenAddress, RewardsAPI, SpotAPI, SubaccountAPI, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params, createClientContext, createNadoClient };
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import { t as MarketAPI } from "./index-D4VVXjdj.js";
4
4
  import { t as PerpAPI } from "./index-DKuDOwSh.js";
5
5
  import { n as GetClaimedAirdropAmountsParams, t as AirdropAddressParams } from "./types-xRxFR-cw.js";
6
6
  import { t as RewardsAPI } from "./index-BOjdI8Tw.js";
7
- import { a as MintMockERC20Params, c as TransferQuoteParams, i as GetTokenWalletBalanceParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralV2Params } from "./types-ClaArDCu.js";
8
- import { t as SpotAPI } from "./index-DdRpzv1r.js";
7
+ import { a as MintMockERC20Params, c as TransferQuoteParams, d as WithdrawCollateralV2Params, i as GetTokenWalletBalanceParams, l as TransferQuoteV2Params, n as BurnNlpParams, o as MintNlpParams, r as GetTokenAllowanceParams, s as ProductIdOrTokenAddress, t as ApproveAllowanceParams, u as WithdrawCollateralParams } from "./types-DXQWU3Dg.js";
8
+ import { t as SpotAPI } from "./index-DlJeayLR.js";
9
9
  import { n as LinkSignerParams, r as LiquidateSubaccountParams, t as CreateStandardLinkedSignerResult } from "./types-Bp0NkxsQ.js";
10
10
  import { t as SubaccountAPI } from "./index-_sKgQEvR.js";
11
11
  import { NadoClient } from "./client.js";
@@ -17,4 +17,4 @@ export * from "@nadohq/mobile-client";
17
17
  export * from "@nadohq/nuanze-client";
18
18
  export * from "@nadohq/otc-client";
19
19
  export * from "@nadohq/trigger-client";
20
- export { AirdropAddressParams, ApproveAllowanceParams, BurnNlpParams, CancelAndPlaceOrderParams, CancelOrdersParams, CancelProductOrdersParams, CancelTriggerOrdersParams, CancelTriggerProductOrdersParams, CreateNadoClientContextAccountOpts, CreateNadoClientContextOpts, CreateStandardLinkedSignerResult, GetClaimedAirdropAmountsParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, GetTriggerOrdersParams, LinkSignerParams, LiquidateSubaccountParams, MarketAPI, MintMockERC20Params, MintNlpParams, NadoClient, NadoClientContext, PerpAPI, PlaceOrderParams, PlaceOrdersParams, PlaceTriggerOrderParams, PlaceTriggerOrdersParams, ProductIdOrTokenAddress, RewardsAPI, SpotAPI, SubaccountAPI, TransferQuoteParams, WithdrawCollateralParams, WithdrawCollateralV2Params, createClientContext, createNadoClient };
20
+ export { AirdropAddressParams, ApproveAllowanceParams, BurnNlpParams, CancelAndPlaceOrderParams, CancelOrdersParams, CancelProductOrdersParams, CancelTriggerOrdersParams, CancelTriggerProductOrdersParams, CreateNadoClientContextAccountOpts, CreateNadoClientContextOpts, CreateStandardLinkedSignerResult, GetClaimedAirdropAmountsParams, GetTokenAllowanceParams, GetTokenWalletBalanceParams, GetTriggerOrdersParams, LinkSignerParams, LiquidateSubaccountParams, MarketAPI, MintMockERC20Params, MintNlpParams, NadoClient, NadoClientContext, PerpAPI, PlaceOrderParams, PlaceOrdersParams, PlaceTriggerOrderParams, PlaceTriggerOrdersParams, ProductIdOrTokenAddress, RewardsAPI, SpotAPI, SubaccountAPI, TransferQuoteParams, TransferQuoteV2Params, WithdrawCollateralParams, WithdrawCollateralV2Params, createClientContext, createNadoClient };
@@ -1,6 +1,6 @@
1
1
  import { n as OptionalSubaccountOwner, t as OptionalSignatureParams } from "./types-C0Jvfdd8.cjs";
2
2
  import { BigNumberish } from "@nadohq/shared";
3
- import { EngineBurnNlpParams, EngineMintNlpParams, EngineTransferQuoteParams, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params } from "@nadohq/engine-client";
3
+ import { EngineBurnNlpParams, EngineMintNlpParams, EngineTransferQuoteParams, EngineTransferQuoteV2Params, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params } from "@nadohq/engine-client";
4
4
 
5
5
  //#region src/apis/spot/types.d.ts
6
6
  type ProductIdOrTokenAddress = {
@@ -19,6 +19,8 @@ type GetTokenAllowanceParams = TokenQueryParams;
19
19
  type WithdrawCollateralParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineWithdrawCollateralParams>>;
20
20
  type WithdrawCollateralV2Params = OptionalSignatureParams<OptionalSubaccountOwner<EngineWithdrawCollateralV2Params>>;
21
21
  type TransferQuoteParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineTransferQuoteParams>>;
22
+ /** Params for {@link SpotExecuteAPI.transferQuoteV2}: a quote transfer charged a dynamic fee. */
23
+ type TransferQuoteV2Params = OptionalSignatureParams<OptionalSubaccountOwner<EngineTransferQuoteV2Params>>;
22
24
  type MintNlpParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineMintNlpParams>>;
23
25
  type BurnNlpParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineBurnNlpParams>>;
24
26
  interface MintMockERC20Params {
@@ -26,5 +28,5 @@ interface MintMockERC20Params {
26
28
  amount: BigNumberish;
27
29
  }
28
30
  //#endregion
29
- export { MintMockERC20Params as a, TransferQuoteParams as c, GetTokenWalletBalanceParams as i, WithdrawCollateralParams as l, BurnNlpParams as n, MintNlpParams as o, GetTokenAllowanceParams as r, ProductIdOrTokenAddress as s, ApproveAllowanceParams as t, WithdrawCollateralV2Params as u };
30
- //# sourceMappingURL=types-CObZ3UZ8.d.cts.map
31
+ export { MintMockERC20Params as a, TransferQuoteParams as c, WithdrawCollateralV2Params as d, GetTokenWalletBalanceParams as i, TransferQuoteV2Params as l, BurnNlpParams as n, MintNlpParams as o, GetTokenAllowanceParams as r, ProductIdOrTokenAddress as s, ApproveAllowanceParams as t, WithdrawCollateralParams as u };
32
+ //# sourceMappingURL=types-Caq8UZ8J.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-Caq8UZ8J.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/types.ts"],"mappings":";;;;;KAWY,uBAAA;EAEN,SAAA;AAAA;EAGA,YAAY;AAAA;AAAA,KAGb,gBAAA;EACH,OAAA;AAAA,IACE,uBAAuB;AAAA,KAEf,sBAAA,GAAyB,uBAAA;EACnC,MAAA,EAAQ,YAAY;AAAA;AAAA,KAGV,2BAAA,GAA8B,gBAAgB;AAAA,KAE9C,uBAAA,GAA0B,gBAAgB;AAAA,KAE1C,wBAAA,GAA2B,uBAAA,CACrC,uBAAA,CAAwB,8BAAA;AAAA,KAGd,0BAAA,GAA6B,uBAAA,CACvC,uBAAA,CAAwB,gCAAA;AAAA,KAGd,mBAAA,GAAsB,uBAAA,CAChC,uBAAA,CAAwB,yBAAA;;KAId,qBAAA,GAAwB,uBAAA,CAClC,uBAAA,CAAwB,2BAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,UAGT,mBAAA;EACf,SAAA;EACA,MAAA,EAAQ,YAAY;AAAA"}
@@ -1,6 +1,6 @@
1
1
  import { n as OptionalSubaccountOwner, t as OptionalSignatureParams } from "./types-C0Jvfdd8.js";
2
2
  import { BigNumberish } from "@nadohq/shared";
3
- import { EngineBurnNlpParams, EngineMintNlpParams, EngineTransferQuoteParams, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params } from "@nadohq/engine-client";
3
+ import { EngineBurnNlpParams, EngineMintNlpParams, EngineTransferQuoteParams, EngineTransferQuoteV2Params, EngineWithdrawCollateralParams, EngineWithdrawCollateralV2Params } from "@nadohq/engine-client";
4
4
 
5
5
  //#region src/apis/spot/types.d.ts
6
6
  type ProductIdOrTokenAddress = {
@@ -19,6 +19,8 @@ type GetTokenAllowanceParams = TokenQueryParams;
19
19
  type WithdrawCollateralParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineWithdrawCollateralParams>>;
20
20
  type WithdrawCollateralV2Params = OptionalSignatureParams<OptionalSubaccountOwner<EngineWithdrawCollateralV2Params>>;
21
21
  type TransferQuoteParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineTransferQuoteParams>>;
22
+ /** Params for {@link SpotExecuteAPI.transferQuoteV2}: a quote transfer charged a dynamic fee. */
23
+ type TransferQuoteV2Params = OptionalSignatureParams<OptionalSubaccountOwner<EngineTransferQuoteV2Params>>;
22
24
  type MintNlpParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineMintNlpParams>>;
23
25
  type BurnNlpParams = OptionalSignatureParams<OptionalSubaccountOwner<EngineBurnNlpParams>>;
24
26
  interface MintMockERC20Params {
@@ -26,5 +28,5 @@ interface MintMockERC20Params {
26
28
  amount: BigNumberish;
27
29
  }
28
30
  //#endregion
29
- export { MintMockERC20Params as a, TransferQuoteParams as c, GetTokenWalletBalanceParams as i, WithdrawCollateralParams as l, BurnNlpParams as n, MintNlpParams as o, GetTokenAllowanceParams as r, ProductIdOrTokenAddress as s, ApproveAllowanceParams as t, WithdrawCollateralV2Params as u };
30
- //# sourceMappingURL=types-ClaArDCu.d.ts.map
31
+ export { MintMockERC20Params as a, TransferQuoteParams as c, WithdrawCollateralV2Params as d, GetTokenWalletBalanceParams as i, TransferQuoteV2Params as l, BurnNlpParams as n, MintNlpParams as o, GetTokenAllowanceParams as r, ProductIdOrTokenAddress as s, ApproveAllowanceParams as t, WithdrawCollateralParams as u };
32
+ //# sourceMappingURL=types-DXQWU3Dg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DXQWU3Dg.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/types.ts"],"mappings":";;;;;KAWY,uBAAA;EAEN,SAAA;AAAA;EAGA,YAAY;AAAA;AAAA,KAGb,gBAAA;EACH,OAAA;AAAA,IACE,uBAAuB;AAAA,KAEf,sBAAA,GAAyB,uBAAA;EACnC,MAAA,EAAQ,YAAY;AAAA;AAAA,KAGV,2BAAA,GAA8B,gBAAgB;AAAA,KAE9C,uBAAA,GAA0B,gBAAgB;AAAA,KAE1C,wBAAA,GAA2B,uBAAA,CACrC,uBAAA,CAAwB,8BAAA;AAAA,KAGd,0BAAA,GAA6B,uBAAA,CACvC,uBAAA,CAAwB,gCAAA;AAAA,KAGd,mBAAA,GAAsB,uBAAA,CAChC,uBAAA,CAAwB,yBAAA;;KAId,qBAAA,GAAwB,uBAAA,CAClC,uBAAA,CAAwB,2BAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,UAGT,mBAAA;EACf,SAAA;EACA,MAAA,EAAQ,YAAY;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/client",
3
- "version": "0.51.1",
3
+ "version": "0.53.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Nado SDK client — unified API for trading, market data, and collateral management on Nado",
@@ -41,13 +41,13 @@
41
41
  "module": "./dist/index.js",
42
42
  "types": "./dist/index.d.ts",
43
43
  "dependencies": {
44
- "@nadohq/engine-client": "^0.51.1",
45
- "@nadohq/indexer-client": "^0.51.1",
46
- "@nadohq/mobile-client": "^0.51.1",
47
- "@nadohq/nuanze-client": "^0.51.1",
48
- "@nadohq/otc-client": "^0.51.1",
49
- "@nadohq/shared": "^0.51.1",
50
- "@nadohq/trigger-client": "^0.51.1",
44
+ "@nadohq/engine-client": "^0.53.0",
45
+ "@nadohq/indexer-client": "^0.53.0",
46
+ "@nadohq/mobile-client": "^0.53.0",
47
+ "@nadohq/nuanze-client": "^0.53.0",
48
+ "@nadohq/otc-client": "^0.53.0",
49
+ "@nadohq/shared": "^0.53.0",
50
+ "@nadohq/trigger-client": "^0.53.0",
51
51
  "ts-mixer": "6.0.4"
52
52
  },
53
53
  "peerDependencies": {
@@ -58,5 +58,5 @@
58
58
  "bignumber.js": "11.1.1",
59
59
  "viem": "2.52.0"
60
60
  },
61
- "gitHead": "4c70e133783484fc9dc666faf1e233cf1dc030fd"
61
+ "gitHead": "94a4731d08230a234122e6d225b59208313d846f"
62
62
  }
@@ -14,6 +14,7 @@ import {
14
14
  MintMockERC20Params,
15
15
  MintNlpParams,
16
16
  TransferQuoteParams,
17
+ TransferQuoteV2Params,
17
18
  WithdrawCollateralParams,
18
19
  WithdrawCollateralV2Params,
19
20
  } from './types';
@@ -43,7 +44,10 @@ export class SpotExecuteAPI extends BaseSpotAPI {
43
44
  }
44
45
 
45
46
  /**
46
- * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute.
47
+ * Withdraws collateral to a custom recipient address via the `withdraw_collateral_v2` execute,
48
+ * charged a dynamic fee of at most the V1 withdrawal fee. The fee is priced at execution: if it
49
+ * exceeds the optional `maxFeeX18`, the request fails with `FEE_TOO_LOW` (2135). Use
50
+ * `getDynamicFeeQuote` for the current fee.
47
51
  *
48
52
  * When `sendTo` is the zero address, funds are sent to the subaccount owner. When `sendTo` is a
49
53
  * non-zero address, the transaction must be signed by the subaccount owner (linked signers are
@@ -89,6 +93,22 @@ export class SpotExecuteAPI extends BaseSpotAPI {
89
93
  });
90
94
  }
91
95
 
96
+ /**
97
+ * Transfers quote between subaccounts under the same wallet, charged a dynamic fee of at
98
+ * most the V1 transfer fee. The fee is priced at execution: if it exceeds `maxFeeX18`, the
99
+ * request fails with `FEE_TOO_LOW` (2135). Use `getDynamicFeeQuote` for the current fee.
100
+ *
101
+ * @param params
102
+ */
103
+ async transferQuoteV2(params: TransferQuoteV2Params) {
104
+ return this.context.engineClient.transferQuoteV2({
105
+ ...params,
106
+ subaccountOwner: this.getSubaccountOwnerIfNeeded(params),
107
+ verifyingAddr: params.verifyingAddr ?? this.getEndpointAddress(),
108
+ chainId: this.getWalletClientChainIdIfNeeded(params),
109
+ });
110
+ }
111
+
92
112
  async mintNlp(params: MintNlpParams) {
93
113
  return this.context.engineClient.mintNlp({
94
114
  ...params,
@@ -1,6 +1,10 @@
1
1
  import {
2
+ GetEngineDynamicFeeQuoteParams,
3
+ GetEngineDynamicFeeQuoteResponse,
2
4
  GetEngineMaxMintNlpAmountParams,
3
5
  GetEngineMaxWithdrawableParams,
6
+ GetEngineMaxWithdrawableResponse,
7
+ GetEngineMaxWithdrawableWithDynamicFeeResponse,
4
8
  } from '@nadohq/engine-client';
5
9
  import { getValidatedAddress, toBigNumber } from '@nadohq/shared';
6
10
  import BigNumber from 'bignumber.js';
@@ -12,10 +16,48 @@ export class SpotQueryAPI extends BaseSpotAPI {
12
16
  * Gets the estimated max withdrawable amount for a product
13
17
  * @param params
14
18
  */
15
- async getMaxWithdrawable(params: GetEngineMaxWithdrawableParams) {
19
+ async getMaxWithdrawable(
20
+ params: GetEngineMaxWithdrawableParams,
21
+ ): Promise<GetEngineMaxWithdrawableResponse>;
22
+ /**
23
+ * Gets the estimated max withdrawable amount for a product, with the current dynamic fee of
24
+ * Withdraw Collateral V2 reserved instead of the flat fee. The reserved fee is returned as
25
+ * `fee`.
26
+ * @param params
27
+ * @returns The max withdrawable with the current dynamic fee reserved, and the reserved fee.
28
+ */
29
+ async getMaxWithdrawable(
30
+ params: GetEngineMaxWithdrawableParams,
31
+ options: { withDynamicFee: true },
32
+ ): Promise<GetEngineMaxWithdrawableWithDynamicFeeResponse>;
33
+ async getMaxWithdrawable(
34
+ params: GetEngineMaxWithdrawableParams,
35
+ options?: { withDynamicFee?: boolean },
36
+ ): Promise<
37
+ | GetEngineMaxWithdrawableResponse
38
+ | GetEngineMaxWithdrawableWithDynamicFeeResponse
39
+ > {
40
+ if (options?.withDynamicFee) {
41
+ return this.context.engineClient.getMaxWithdrawable(params, {
42
+ withDynamicFee: true,
43
+ });
44
+ }
45
+
16
46
  return this.context.engineClient.getMaxWithdrawable(params);
17
47
  }
18
48
 
49
+ /**
50
+ * Gets the current dynamic fee for a V2 withdrawal or V2 quote transfer. The fee is priced
51
+ * again at execution, so pass a `maxFeeX18` with some headroom when executing.
52
+ * @param params
53
+ * @returns The current required fee, the fee cap, and the V2 demand pressure.
54
+ */
55
+ async getDynamicFeeQuote(
56
+ params: GetEngineDynamicFeeQuoteParams,
57
+ ): Promise<GetEngineDynamicFeeQuoteResponse> {
58
+ return this.context.engineClient.getDynamicFeeQuote(params);
59
+ }
60
+
19
61
  /**
20
62
  * Queries engine to determine maximum quote amount for minting NLP.
21
63
  *
@@ -2,6 +2,7 @@ import {
2
2
  EngineBurnNlpParams,
3
3
  EngineMintNlpParams,
4
4
  EngineTransferQuoteParams,
5
+ EngineTransferQuoteV2Params,
5
6
  EngineWithdrawCollateralParams,
6
7
  EngineWithdrawCollateralV2Params,
7
8
  } from '@nadohq/engine-client';
@@ -40,6 +41,11 @@ export type TransferQuoteParams = OptionalSignatureParams<
40
41
  OptionalSubaccountOwner<EngineTransferQuoteParams>
41
42
  >;
42
43
 
44
+ /** Params for {@link SpotExecuteAPI.transferQuoteV2}: a quote transfer charged a dynamic fee. */
45
+ export type TransferQuoteV2Params = OptionalSignatureParams<
46
+ OptionalSubaccountOwner<EngineTransferQuoteV2Params>
47
+ >;
48
+
43
49
  export type MintNlpParams = OptionalSignatureParams<
44
50
  OptionalSubaccountOwner<EngineMintNlpParams>
45
51
  >;
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpotExecuteAPI-CfeSttvT.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAoBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAcvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAfrB;;;;;;;;;EAiCpB,UAAA,CAAW,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,gCAAA;EAS7C,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;EAoBN;;;;;EAAzC,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EASzC,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpotExecuteAPI-MoLjiUo5.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAoBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAcvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAfrB;;;;;;;;;EAiCpB,UAAA,CAAW,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,gCAAA;EAS7C,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;EAoBN;;;;;EAAzC,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EASzC,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -1,36 +0,0 @@
1
- import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-ClaArDCu.js";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-Z0ute63E.js";
3
- import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
- import BigNumber from "bignumber.js";
5
-
6
- //#region src/apis/spot/SpotQueryAPI.d.ts
7
- declare class SpotQueryAPI extends BaseSpotAPI {
8
- /**
9
- * Gets the estimated max withdrawable amount for a product
10
- * @param params
11
- */
12
- getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<BigNumber>;
13
- /**
14
- * Queries engine to determine maximum quote amount for minting NLP.
15
- *
16
- * @param params
17
- */
18
- getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
19
- /**
20
- * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
21
- */
22
- getTokenWalletBalance({
23
- address,
24
- ...rest
25
- }: GetTokenWalletBalanceParams): Promise<bigint>;
26
- /**
27
- * Helper to get current token allowance
28
- */
29
- getTokenAllowance({
30
- address,
31
- ...rest
32
- }: GetTokenAllowanceParams): Promise<BigNumber>;
33
- }
34
- //#endregion
35
- export { SpotQueryAPI as t };
36
- //# sourceMappingURL=SpotQueryAPI-CoNofFJV.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpotQueryAPI-CoNofFJV.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cASa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,CAAA,SAAA;EAAA;;;;;EASzD,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EAU9D;;;EAHG,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EAWI;;;EAH/B,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -1,36 +0,0 @@
1
- import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-CObZ3UZ8.cjs";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-DB2aTa9f.cjs";
3
- import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
- import BigNumber from "bignumber.js";
5
-
6
- //#region src/apis/spot/SpotQueryAPI.d.ts
7
- declare class SpotQueryAPI extends BaseSpotAPI {
8
- /**
9
- * Gets the estimated max withdrawable amount for a product
10
- * @param params
11
- */
12
- getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<BigNumber>;
13
- /**
14
- * Queries engine to determine maximum quote amount for minting NLP.
15
- *
16
- * @param params
17
- */
18
- getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
19
- /**
20
- * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
21
- */
22
- getTokenWalletBalance({
23
- address,
24
- ...rest
25
- }: GetTokenWalletBalanceParams): Promise<bigint>;
26
- /**
27
- * Helper to get current token allowance
28
- */
29
- getTokenAllowance({
30
- address,
31
- ...rest
32
- }: GetTokenAllowanceParams): Promise<BigNumber>;
33
- }
34
- //#endregion
35
- export { SpotQueryAPI as t };
36
- //# sourceMappingURL=SpotQueryAPI-DZXIzKUn.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpotQueryAPI-DZXIzKUn.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cASa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,CAAA,SAAA;EAAA;;;;;EASzD,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EAU9D;;;EAHG,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EAWI;;;EAH/B,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DdRpzv1r.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/index.ts"],"mappings":";;;;cAE8C,YAAA;;;AAAA;cAKjC,OAAA,SAAgB,YAAmC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-_JjlzC9X.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/index.ts"],"mappings":";;;;cAE8C,YAAA;;;AAAA;cAKjC,OAAA,SAAgB,YAAmC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-CObZ3UZ8.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/types.ts"],"mappings":";;;;;KAUY,uBAAA;EAEN,SAAA;AAAA;EAGA,YAAY;AAAA;AAAA,KAGb,gBAAA;EACH,OAAA;AAAA,IACE,uBAAuB;AAAA,KAEf,sBAAA,GAAyB,uBAAA;EACnC,MAAA,EAAQ,YAAY;AAAA;AAAA,KAGV,2BAAA,GAA8B,gBAAgB;AAAA,KAE9C,uBAAA,GAA0B,gBAAgB;AAAA,KAE1C,wBAAA,GAA2B,uBAAA,CACrC,uBAAA,CAAwB,8BAAA;AAAA,KAGd,0BAAA,GAA6B,uBAAA,CACvC,uBAAA,CAAwB,gCAAA;AAAA,KAGd,mBAAA,GAAsB,uBAAA,CAChC,uBAAA,CAAwB,yBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,UAGT,mBAAA;EACf,SAAA;EACA,MAAA,EAAQ,YAAY;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-ClaArDCu.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/types.ts"],"mappings":";;;;;KAUY,uBAAA;EAEN,SAAA;AAAA;EAGA,YAAY;AAAA;AAAA,KAGb,gBAAA;EACH,OAAA;AAAA,IACE,uBAAuB;AAAA,KAEf,sBAAA,GAAyB,uBAAA;EACnC,MAAA,EAAQ,YAAY;AAAA;AAAA,KAGV,2BAAA,GAA8B,gBAAgB;AAAA,KAE9C,uBAAA,GAA0B,gBAAgB;AAAA,KAE1C,wBAAA,GAA2B,uBAAA,CACrC,uBAAA,CAAwB,8BAAA;AAAA,KAGd,0BAAA,GAA6B,uBAAA,CACvC,uBAAA,CAAwB,gCAAA;AAAA,KAGd,mBAAA,GAAsB,uBAAA,CAChC,uBAAA,CAAwB,yBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,KAGd,aAAA,GAAgB,uBAAA,CAC1B,uBAAA,CAAwB,mBAAA;AAAA,UAGT,mBAAA;EACf,SAAA;EACA,MAAA,EAAQ,YAAY;AAAA"}