@nadohq/client 0.32.0 → 0.34.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 (153) hide show
  1. package/dist/BaseRewardsAPI-C2Khs1h3.d.cts +17 -0
  2. package/dist/BaseRewardsAPI-C2Khs1h3.d.cts.map +1 -0
  3. package/dist/BaseRewardsAPI-DP_NdIBN.d.ts +17 -0
  4. package/dist/BaseRewardsAPI-DP_NdIBN.d.ts.map +1 -0
  5. package/dist/{BaseSpotAPI-Dn7FqHTu.d.ts → BaseSpotAPI-BtWEU9Iv.d.ts} +2 -2
  6. package/dist/{BaseSpotAPI-Dn7FqHTu.d.ts.map → BaseSpotAPI-BtWEU9Iv.d.ts.map} +1 -1
  7. package/dist/{BaseSpotAPI-DCR0Ukso.d.cts → BaseSpotAPI-_U-2E2i7.d.cts} +2 -2
  8. package/dist/{BaseSpotAPI-DCR0Ukso.d.cts.map → BaseSpotAPI-_U-2E2i7.d.cts.map} +1 -1
  9. package/dist/RewardsExecuteAPI-DtKFYDZO.d.cts +25 -0
  10. package/dist/RewardsExecuteAPI-DtKFYDZO.d.cts.map +1 -0
  11. package/dist/RewardsExecuteAPI-t-X-0bkJ.d.ts +25 -0
  12. package/dist/RewardsExecuteAPI-t-X-0bkJ.d.ts.map +1 -0
  13. package/dist/RewardsQueryAPI-C8b5XQKS.d.cts +33 -0
  14. package/dist/RewardsQueryAPI-C8b5XQKS.d.cts.map +1 -0
  15. package/dist/RewardsQueryAPI-CxIm-G-8.d.ts +33 -0
  16. package/dist/RewardsQueryAPI-CxIm-G-8.d.ts.map +1 -0
  17. package/dist/{SpotExecuteAPI-8dJfQcjP.d.ts → SpotExecuteAPI-2ux8AQKX.d.ts} +3 -3
  18. package/dist/{SpotExecuteAPI-8dJfQcjP.d.ts.map → SpotExecuteAPI-2ux8AQKX.d.ts.map} +1 -1
  19. package/dist/{SpotExecuteAPI-C1E_L4Ov.d.cts → SpotExecuteAPI-DGSIOaWW.d.cts} +3 -3
  20. package/dist/{SpotExecuteAPI-C1E_L4Ov.d.cts.map → SpotExecuteAPI-DGSIOaWW.d.cts.map} +1 -1
  21. package/dist/{SpotQueryAPI-By-EKjdC.d.ts → SpotQueryAPI-Bg6a2H-O.d.ts} +3 -3
  22. package/dist/{SpotQueryAPI-By-EKjdC.d.ts.map → SpotQueryAPI-Bg6a2H-O.d.ts.map} +1 -1
  23. package/dist/{SpotQueryAPI-C-646O43.d.cts → SpotQueryAPI-Bp6KNIrO.d.cts} +3 -3
  24. package/dist/{SpotQueryAPI-C-646O43.d.cts.map → SpotQueryAPI-Bp6KNIrO.d.cts.map} +1 -1
  25. package/dist/{SubaccountExecuteAPI-BXUYFvqZ.d.cts → SubaccountExecuteAPI-BNB-4uUP.d.cts} +2 -2
  26. package/dist/{SubaccountExecuteAPI-BXUYFvqZ.d.cts.map → SubaccountExecuteAPI-BNB-4uUP.d.cts.map} +1 -1
  27. package/dist/{SubaccountExecuteAPI-IV4EuQiO.d.ts → SubaccountExecuteAPI-Dho_tprr.d.ts} +2 -2
  28. package/dist/{SubaccountExecuteAPI-IV4EuQiO.d.ts.map → SubaccountExecuteAPI-Dho_tprr.d.ts.map} +1 -1
  29. package/dist/{SubaccountQueryAPI-DuPZIksw.d.cts → SubaccountQueryAPI-BV7h4nmZ.d.cts} +1 -1
  30. package/dist/{SubaccountQueryAPI-DuPZIksw.d.cts.map → SubaccountQueryAPI-BV7h4nmZ.d.cts.map} +1 -1
  31. package/dist/{SubaccountQueryAPI-De_FQ-Qa.d.ts → SubaccountQueryAPI-CAUa6ANv.d.ts} +1 -1
  32. package/dist/{SubaccountQueryAPI-De_FQ-Qa.d.ts.map → SubaccountQueryAPI-CAUa6ANv.d.ts.map} +1 -1
  33. package/dist/{WebSocketExecuteAPI-BbCjkskC.d.ts → WebSocketExecuteAPI-CpP_ILEk.d.ts} +1 -1
  34. package/dist/{WebSocketExecuteAPI-BbCjkskC.d.ts.map → WebSocketExecuteAPI-CpP_ILEk.d.ts.map} +1 -1
  35. package/dist/{WebSocketExecuteAPI-DZ_Xauk2.d.cts → WebSocketExecuteAPI-hJMLfP8d.d.cts} +1 -1
  36. package/dist/{WebSocketExecuteAPI-DZ_Xauk2.d.cts.map → WebSocketExecuteAPI-hJMLfP8d.d.cts.map} +1 -1
  37. package/dist/{WebSocketQueryAPI-hOXDojO7.d.ts → WebSocketQueryAPI-BsyrKGrK.d.ts} +1 -1
  38. package/dist/{WebSocketQueryAPI-hOXDojO7.d.ts.map → WebSocketQueryAPI-BsyrKGrK.d.ts.map} +1 -1
  39. package/dist/{WebSocketQueryAPI-D1i9ToSh.d.cts → WebSocketQueryAPI-zSF8NPwe.d.cts} +1 -1
  40. package/dist/{WebSocketQueryAPI-D1i9ToSh.d.cts.map → WebSocketQueryAPI-zSF8NPwe.d.cts.map} +1 -1
  41. package/dist/{WebSocketSubscriptionAPI-B9YYloIc.d.ts → WebSocketSubscriptionAPI-C-xipXc7.d.ts} +1 -1
  42. package/dist/{WebSocketSubscriptionAPI-B9YYloIc.d.ts.map → WebSocketSubscriptionAPI-C-xipXc7.d.ts.map} +1 -1
  43. package/dist/{WebSocketSubscriptionAPI-DgIMxfz5.d.cts → WebSocketSubscriptionAPI-DrAbLF80.d.cts} +1 -1
  44. package/dist/{WebSocketSubscriptionAPI-DgIMxfz5.d.cts.map → WebSocketSubscriptionAPI-DrAbLF80.d.cts.map} +1 -1
  45. package/dist/apis/rewards/BaseRewardsAPI.cjs +22 -0
  46. package/dist/apis/rewards/BaseRewardsAPI.cjs.map +1 -0
  47. package/dist/apis/rewards/BaseRewardsAPI.d.cts +2 -0
  48. package/dist/apis/rewards/BaseRewardsAPI.d.ts +2 -0
  49. package/dist/apis/rewards/BaseRewardsAPI.js +21 -0
  50. package/dist/apis/rewards/BaseRewardsAPI.js.map +1 -0
  51. package/dist/apis/rewards/RewardsExecuteAPI.cjs +49 -0
  52. package/dist/apis/rewards/RewardsExecuteAPI.cjs.map +1 -0
  53. package/dist/apis/rewards/RewardsExecuteAPI.d.cts +2 -0
  54. package/dist/apis/rewards/RewardsExecuteAPI.d.ts +2 -0
  55. package/dist/apis/rewards/RewardsExecuteAPI.js +48 -0
  56. package/dist/apis/rewards/RewardsExecuteAPI.js.map +1 -0
  57. package/dist/apis/rewards/RewardsQueryAPI.cjs +33 -0
  58. package/dist/apis/rewards/RewardsQueryAPI.cjs.map +1 -0
  59. package/dist/apis/rewards/RewardsQueryAPI.d.cts +2 -0
  60. package/dist/apis/rewards/RewardsQueryAPI.d.ts +2 -0
  61. package/dist/apis/rewards/RewardsQueryAPI.js +32 -0
  62. package/dist/apis/rewards/RewardsQueryAPI.js.map +1 -0
  63. package/dist/apis/rewards/index.cjs +14 -0
  64. package/dist/apis/rewards/index.cjs.map +1 -0
  65. package/dist/apis/rewards/index.d.cts +3 -0
  66. package/dist/apis/rewards/index.d.ts +3 -0
  67. package/dist/apis/rewards/index.js +13 -0
  68. package/dist/apis/rewards/index.js.map +1 -0
  69. package/dist/apis/rewards/types.cjs +0 -0
  70. package/dist/apis/rewards/types.d.cts +2 -0
  71. package/dist/apis/rewards/types.d.ts +2 -0
  72. package/dist/apis/rewards/types.js +1 -0
  73. package/dist/apis/spot/BaseSpotAPI.d.cts +1 -1
  74. package/dist/apis/spot/BaseSpotAPI.d.ts +1 -1
  75. package/dist/apis/spot/SpotExecuteAPI.cjs +1 -0
  76. package/dist/apis/spot/SpotExecuteAPI.cjs.map +1 -1
  77. package/dist/apis/spot/SpotExecuteAPI.d.cts +1 -1
  78. package/dist/apis/spot/SpotExecuteAPI.d.ts +1 -1
  79. package/dist/apis/spot/SpotExecuteAPI.js +1 -0
  80. package/dist/apis/spot/SpotExecuteAPI.js.map +1 -1
  81. package/dist/apis/spot/SpotQueryAPI.d.cts +1 -1
  82. package/dist/apis/spot/SpotQueryAPI.d.ts +1 -1
  83. package/dist/apis/spot/index.d.cts +2 -2
  84. package/dist/apis/spot/index.d.ts +2 -2
  85. package/dist/apis/spot/types.d.cts +1 -1
  86. package/dist/apis/spot/types.d.ts +1 -1
  87. package/dist/apis/subaccount/SubaccountExecuteAPI.d.cts +1 -1
  88. package/dist/apis/subaccount/SubaccountExecuteAPI.d.ts +1 -1
  89. package/dist/apis/subaccount/SubaccountQueryAPI.d.cts +1 -1
  90. package/dist/apis/subaccount/SubaccountQueryAPI.d.ts +1 -1
  91. package/dist/apis/subaccount/index.d.cts +2 -2
  92. package/dist/apis/subaccount/index.d.ts +2 -2
  93. package/dist/apis/subaccount/types.d.cts +1 -1
  94. package/dist/apis/subaccount/types.d.ts +1 -1
  95. package/dist/apis/ws/WebSocketExecuteAPI.d.cts +1 -1
  96. package/dist/apis/ws/WebSocketExecuteAPI.d.ts +1 -1
  97. package/dist/apis/ws/WebSocketQueryAPI.d.cts +1 -1
  98. package/dist/apis/ws/WebSocketQueryAPI.d.ts +1 -1
  99. package/dist/apis/ws/WebSocketSubscriptionAPI.d.cts +1 -1
  100. package/dist/apis/ws/WebSocketSubscriptionAPI.d.ts +1 -1
  101. package/dist/apis/ws/index.d.cts +1 -1
  102. package/dist/apis/ws/index.d.ts +1 -1
  103. package/dist/client.cjs +2 -0
  104. package/dist/client.cjs.map +1 -1
  105. package/dist/client.d.cts +5 -3
  106. package/dist/client.d.cts.map +1 -1
  107. package/dist/client.d.ts +5 -3
  108. package/dist/client.d.ts.map +1 -1
  109. package/dist/client.js +2 -0
  110. package/dist/client.js.map +1 -1
  111. package/dist/{index-Dj9Ub1PG.d.cts → index-9wuDqMV2.d.cts} +4 -4
  112. package/dist/{index-Dj9Ub1PG.d.cts.map → index-9wuDqMV2.d.cts.map} +1 -1
  113. package/dist/{index-B3HYm75y.d.cts → index-Bckt-gdC.d.cts} +4 -4
  114. package/dist/{index-B3HYm75y.d.cts.map → index-Bckt-gdC.d.cts.map} +1 -1
  115. package/dist/{index-B1Dxe-TH.d.ts → index-BqAOMCKi.d.ts} +4 -4
  116. package/dist/{index-B1Dxe-TH.d.ts.map → index-BqAOMCKi.d.ts.map} +1 -1
  117. package/dist/{index-DPNd9PR1.d.ts → index-C-qKYLCR.d.ts} +3 -3
  118. package/dist/index-C-qKYLCR.d.ts.map +1 -0
  119. package/dist/{index-DqQ5-VOh.d.cts → index-Cn7kpBkt.d.cts} +3 -3
  120. package/dist/index-Cn7kpBkt.d.cts.map +1 -0
  121. package/dist/index-DE9RaTAD.d.cts +13 -0
  122. package/dist/index-DE9RaTAD.d.cts.map +1 -0
  123. package/dist/index-Dq_AuvDb.d.ts +13 -0
  124. package/dist/index-Dq_AuvDb.d.ts.map +1 -0
  125. package/dist/{index-CEwXS1Ek.d.ts → index-EEn1f0QY.d.ts} +4 -4
  126. package/dist/{index-CEwXS1Ek.d.ts.map → index-EEn1f0QY.d.ts.map} +1 -1
  127. package/dist/index.cjs +2 -0
  128. package/dist/index.d.cts +7 -5
  129. package/dist/index.d.ts +7 -5
  130. package/dist/index.js +2 -1
  131. package/dist/{types-B6oFoDTo.d.ts → types-BDVasYAf.d.ts} +1 -1
  132. package/dist/{types-B6oFoDTo.d.ts.map → types-BDVasYAf.d.ts.map} +1 -1
  133. package/dist/types-BFMFRstW.d.cts +18 -0
  134. package/dist/types-BFMFRstW.d.cts.map +1 -0
  135. package/dist/{types-BWRdhQd_.d.cts → types-C0Wevcia.d.cts} +1 -1
  136. package/dist/{types-BWRdhQd_.d.cts.map → types-C0Wevcia.d.cts.map} +1 -1
  137. package/dist/{types-pRheTrJ1.d.cts → types-C3rE8vyS.d.cts} +1 -1
  138. package/dist/{types-pRheTrJ1.d.cts.map → types-C3rE8vyS.d.cts.map} +1 -1
  139. package/dist/types-CFgxXCy2.d.ts +18 -0
  140. package/dist/types-CFgxXCy2.d.ts.map +1 -0
  141. package/dist/{types-DnBjJCnd.d.ts → types-OZlzeknc.d.ts} +1 -1
  142. package/dist/{types-DnBjJCnd.d.ts.map → types-OZlzeknc.d.ts.map} +1 -1
  143. package/package.json +7 -7
  144. package/src/apis/rewards/BaseRewardsAPI.ts +20 -0
  145. package/src/apis/rewards/RewardsExecuteAPI.ts +77 -0
  146. package/src/apis/rewards/RewardsQueryAPI.ts +35 -0
  147. package/src/apis/rewards/index.ts +11 -0
  148. package/src/apis/rewards/types.ts +15 -0
  149. package/src/apis/spot/SpotExecuteAPI.ts +4 -0
  150. package/src/client.ts +3 -0
  151. package/src/index.ts +1 -0
  152. package/dist/index-DPNd9PR1.d.ts.map +0 -1
  153. package/dist/index-DqQ5-VOh.d.cts.map +0 -1
@@ -0,0 +1,17 @@
1
+ import { t as BaseNadoAPI } from "./base-GN5mZk1G.cjs";
2
+ import { t as AirdropAddressParams } from "./types-BFMFRstW.cjs";
3
+ import { AIRDROP_ABI, ContractInstance } from "@nadohq/shared";
4
+
5
+ //#region src/apis/rewards/BaseRewardsAPI.d.ts
6
+ declare class BaseRewardsAPI extends BaseNadoAPI {
7
+ /**
8
+ * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core
9
+ * Nado deployment; they are returned by the indexer alongside a claim proof.
10
+ */
11
+ protected getAirdropContract({
12
+ airdropAddress
13
+ }: AirdropAddressParams): ContractInstance<typeof AIRDROP_ABI>;
14
+ }
15
+ //#endregion
16
+ export { BaseRewardsAPI as t };
17
+ //# sourceMappingURL=BaseRewardsAPI-C2Khs1h3.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseRewardsAPI-C2Khs1h3.d.cts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/BaseRewardsAPI.ts"],"mappings":";;;;;cAKa,cAAA,SAAuB,WAAA;;AAApC;;;YAKY,kBAAA,CAAA;IACR;EAAA,GACC,oBAAA,GAAuB,gBAAA,QAAwB,WAAA;AAAA"}
@@ -0,0 +1,17 @@
1
+ import { t as BaseNadoAPI } from "./base-D11I3QiM.js";
2
+ import { t as AirdropAddressParams } from "./types-CFgxXCy2.js";
3
+ import { AIRDROP_ABI, ContractInstance } from "@nadohq/shared";
4
+
5
+ //#region src/apis/rewards/BaseRewardsAPI.d.ts
6
+ declare class BaseRewardsAPI extends BaseNadoAPI {
7
+ /**
8
+ * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core
9
+ * Nado deployment; they are returned by the indexer alongside a claim proof.
10
+ */
11
+ protected getAirdropContract({
12
+ airdropAddress
13
+ }: AirdropAddressParams): ContractInstance<typeof AIRDROP_ABI>;
14
+ }
15
+ //#endregion
16
+ export { BaseRewardsAPI as t };
17
+ //# sourceMappingURL=BaseRewardsAPI-DP_NdIBN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseRewardsAPI-DP_NdIBN.d.ts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/BaseRewardsAPI.ts"],"mappings":";;;;;cAKa,cAAA,SAAuB,WAAA;;AAApC;;;YAKY,kBAAA,CAAA;IACR;EAAA,GACC,oBAAA,GAAuB,gBAAA,QAAwB,WAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNadoAPI } from "./base-D11I3QiM.js";
2
- import { s as ProductIdOrTokenAddress } from "./types-DnBjJCnd.js";
2
+ import { s as ProductIdOrTokenAddress } from "./types-OZlzeknc.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-Dn7FqHTu.d.ts.map
14
+ //# sourceMappingURL=BaseSpotAPI-BtWEU9Iv.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSpotAPI-Dn7FqHTu.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-BtWEU9Iv.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
1
  import { t as BaseNadoAPI } from "./base-GN5mZk1G.cjs";
2
- import { s as ProductIdOrTokenAddress } from "./types-pRheTrJ1.cjs";
2
+ import { s as ProductIdOrTokenAddress } from "./types-C3rE8vyS.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-DCR0Ukso.d.cts.map
14
+ //# sourceMappingURL=BaseSpotAPI-_U-2E2i7.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSpotAPI-DCR0Ukso.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-_U-2E2i7.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"}
@@ -0,0 +1,25 @@
1
+ import { t as BaseRewardsAPI } from "./BaseRewardsAPI-C2Khs1h3.cjs";
2
+ import { Hash } from "viem";
3
+
4
+ //#region src/apis/rewards/RewardsExecuteAPI.d.ts
5
+ declare class RewardsExecuteAPI extends BaseRewardsAPI {
6
+ /**
7
+ * Claims every currently claimable cash incentives reward for the connected wallet in a single
8
+ * transaction, fetching the merkle proofs from the indexer itself.
9
+ *
10
+ * The Airdrop contract verifies proofs against `msg.sender`, so this can only ever claim for the
11
+ * connected wallet. Rewards that were already settled onchain are dropped before submitting,
12
+ * since the indexer keeps reporting them as claimable, as are rewards whose week the contract
13
+ * does not know about yet.
14
+ *
15
+ * @returns Hash of the submitted claim transaction.
16
+ * @throws `WalletNotProvidedError` when no wallet client is available to sign with.
17
+ * @throws When the indexer reports nothing claimable, or when no claimable reward is ready to
18
+ * claim onchain because each has either already been claimed or is not yet registered on the
19
+ * airdrop contract.
20
+ */
21
+ claimCashIncentives(): Promise<Hash>;
22
+ }
23
+ //#endregion
24
+ export { RewardsExecuteAPI as t };
25
+ //# sourceMappingURL=RewardsExecuteAPI-DtKFYDZO.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardsExecuteAPI-DtKFYDZO.d.cts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/RewardsExecuteAPI.ts"],"mappings":";;;;cAUa,iBAAA,SAA0B,cAAA;;AAAvC;;;;;;;;;;;;;AAgB2C;EAAnC,mBAAA,CAAA,GAAuB,OAAA,CAAQ,IAAA;AAAA"}
@@ -0,0 +1,25 @@
1
+ import { t as BaseRewardsAPI } from "./BaseRewardsAPI-DP_NdIBN.js";
2
+ import { Hash } from "viem";
3
+
4
+ //#region src/apis/rewards/RewardsExecuteAPI.d.ts
5
+ declare class RewardsExecuteAPI extends BaseRewardsAPI {
6
+ /**
7
+ * Claims every currently claimable cash incentives reward for the connected wallet in a single
8
+ * transaction, fetching the merkle proofs from the indexer itself.
9
+ *
10
+ * The Airdrop contract verifies proofs against `msg.sender`, so this can only ever claim for the
11
+ * connected wallet. Rewards that were already settled onchain are dropped before submitting,
12
+ * since the indexer keeps reporting them as claimable, as are rewards whose week the contract
13
+ * does not know about yet.
14
+ *
15
+ * @returns Hash of the submitted claim transaction.
16
+ * @throws `WalletNotProvidedError` when no wallet client is available to sign with.
17
+ * @throws When the indexer reports nothing claimable, or when no claimable reward is ready to
18
+ * claim onchain because each has either already been claimed or is not yet registered on the
19
+ * airdrop contract.
20
+ */
21
+ claimCashIncentives(): Promise<Hash>;
22
+ }
23
+ //#endregion
24
+ export { RewardsExecuteAPI as t };
25
+ //# sourceMappingURL=RewardsExecuteAPI-t-X-0bkJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardsExecuteAPI-t-X-0bkJ.d.ts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/RewardsExecuteAPI.ts"],"mappings":";;;;cAUa,iBAAA,SAA0B,cAAA;;AAAvC;;;;;;;;;;;;;AAgB2C;EAAnC,mBAAA,CAAA,GAAuB,OAAA,CAAQ,IAAA;AAAA"}
@@ -0,0 +1,33 @@
1
+ import { n as GetClaimedAirdropAmountsParams } from "./types-BFMFRstW.cjs";
2
+ import { t as BaseRewardsAPI } from "./BaseRewardsAPI-C2Khs1h3.cjs";
3
+ import { GetIndexerCashIncentivesParams } from "@nadohq/indexer-client";
4
+
5
+ //#region src/apis/rewards/RewardsQueryAPI.d.ts
6
+ declare class RewardsQueryAPI extends BaseRewardsAPI {
7
+ /**
8
+ * Gets cash incentives progress and claim state for a wallet. Each event's `wallet.claim` is
9
+ * tagged on `status`, and carries the merkle proof needed to claim onchain when that status is
10
+ * `claimable`.
11
+ *
12
+ * @param params
13
+ */
14
+ getCashIncentives(params: GetIndexerCashIncentivesParams): Promise<import("@nadohq/indexer-client").GetIndexerCashIncentivesResponse>;
15
+ /**
16
+ * Gets the cumulative amounts already claimed by a wallet from an airdrop contract, in raw token
17
+ * units, indexed directly by `week`.
18
+ *
19
+ * Weeks are 1-based, so index 0 is always zero and the array length is one greater than the
20
+ * number of reward events. A week is fully claimed when its entry equals the `totalAmount` of the
21
+ * corresponding claim proof; a smaller value means there is still an amount to claim, since
22
+ * entries are cumulative rather than per-transaction.
23
+ *
24
+ * @param params
25
+ */
26
+ getClaimedAirdropAmounts({
27
+ address,
28
+ ...rest
29
+ }: GetClaimedAirdropAmountsParams): Promise<readonly bigint[]>;
30
+ }
31
+ //#endregion
32
+ export { RewardsQueryAPI as t };
33
+ //# sourceMappingURL=RewardsQueryAPI-C8b5XQKS.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardsQueryAPI-C8b5XQKS.d.cts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/RewardsQueryAPI.ts"],"mappings":";;;;;cAIa,eAAA,SAAwB,cAAA;;AAArC;;;;;;EAQQ,iBAAA,CAAkB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,kCAAA,gCAAA;EAkB1B;;;;;;;;;;;EAH9B,wBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,8BAAA,GAAiC,OAAA;AAAA"}
@@ -0,0 +1,33 @@
1
+ import { n as GetClaimedAirdropAmountsParams } from "./types-CFgxXCy2.js";
2
+ import { t as BaseRewardsAPI } from "./BaseRewardsAPI-DP_NdIBN.js";
3
+ import { GetIndexerCashIncentivesParams } from "@nadohq/indexer-client";
4
+
5
+ //#region src/apis/rewards/RewardsQueryAPI.d.ts
6
+ declare class RewardsQueryAPI extends BaseRewardsAPI {
7
+ /**
8
+ * Gets cash incentives progress and claim state for a wallet. Each event's `wallet.claim` is
9
+ * tagged on `status`, and carries the merkle proof needed to claim onchain when that status is
10
+ * `claimable`.
11
+ *
12
+ * @param params
13
+ */
14
+ getCashIncentives(params: GetIndexerCashIncentivesParams): Promise<import("@nadohq/indexer-client").GetIndexerCashIncentivesResponse>;
15
+ /**
16
+ * Gets the cumulative amounts already claimed by a wallet from an airdrop contract, in raw token
17
+ * units, indexed directly by `week`.
18
+ *
19
+ * Weeks are 1-based, so index 0 is always zero and the array length is one greater than the
20
+ * number of reward events. A week is fully claimed when its entry equals the `totalAmount` of the
21
+ * corresponding claim proof; a smaller value means there is still an amount to claim, since
22
+ * entries are cumulative rather than per-transaction.
23
+ *
24
+ * @param params
25
+ */
26
+ getClaimedAirdropAmounts({
27
+ address,
28
+ ...rest
29
+ }: GetClaimedAirdropAmountsParams): Promise<readonly bigint[]>;
30
+ }
31
+ //#endregion
32
+ export { RewardsQueryAPI as t };
33
+ //# sourceMappingURL=RewardsQueryAPI-CxIm-G-8.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardsQueryAPI-CxIm-G-8.d.ts","names":[],"sources":["../src/apis/rewards/src/apis/rewards/RewardsQueryAPI.ts"],"mappings":";;;;;cAIa,eAAA,SAAwB,cAAA;;AAArC;;;;;;EAQQ,iBAAA,CAAkB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,kCAAA,gCAAA;EAkB1B;;;;;;;;;;;EAH9B,wBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,8BAAA,GAAiC,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-DnBjJCnd.js";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-Dn7FqHTu.js";
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-OZlzeknc.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-BtWEU9Iv.js";
3
3
  import { DepositCollateralParams } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/SpotExecuteAPI.d.ts
@@ -29,4 +29,4 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
29
29
  }
30
30
  //#endregion
31
31
  export { SpotExecuteAPI as t };
32
- //# sourceMappingURL=SpotExecuteAPI-8dJfQcjP.d.ts.map
32
+ //# sourceMappingURL=SpotExecuteAPI-2ux8AQKX.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpotExecuteAPI-8dJfQcjP.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;EAUvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAXrB;;;;;;;;;EA6BpB,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
+ {"version":3,"file":"SpotExecuteAPI-2ux8AQKX.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,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-pRheTrJ1.cjs";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-DCR0Ukso.cjs";
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-C3rE8vyS.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-_U-2E2i7.cjs";
3
3
  import { DepositCollateralParams } from "@nadohq/shared";
4
4
 
5
5
  //#region src/apis/spot/SpotExecuteAPI.d.ts
@@ -29,4 +29,4 @@ declare class SpotExecuteAPI extends BaseSpotAPI {
29
29
  }
30
30
  //#endregion
31
31
  export { SpotExecuteAPI as t };
32
- //# sourceMappingURL=SpotExecuteAPI-C1E_L4Ov.d.cts.map
32
+ //# sourceMappingURL=SpotExecuteAPI-DGSIOaWW.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpotExecuteAPI-C1E_L4Ov.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;EAUvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EAXrB;;;;;;;;;EA6BpB,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
+ {"version":3,"file":"SpotExecuteAPI-DGSIOaWW.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,5 +1,5 @@
1
- import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-DnBjJCnd.js";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-Dn7FqHTu.js";
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-OZlzeknc.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-BtWEU9Iv.js";
3
3
  import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
4
  import BigNumber from "bignumber.js";
5
5
 
@@ -33,4 +33,4 @@ declare class SpotQueryAPI extends BaseSpotAPI {
33
33
  }
34
34
  //#endregion
35
35
  export { SpotQueryAPI as t };
36
- //# sourceMappingURL=SpotQueryAPI-By-EKjdC.d.ts.map
36
+ //# sourceMappingURL=SpotQueryAPI-Bg6a2H-O.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpotQueryAPI-By-EKjdC.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
+ {"version":3,"file":"SpotQueryAPI-Bg6a2H-O.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,5 +1,5 @@
1
- import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-pRheTrJ1.cjs";
2
- import { t as BaseSpotAPI } from "./BaseSpotAPI-DCR0Ukso.cjs";
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-C3rE8vyS.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-_U-2E2i7.cjs";
3
3
  import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
4
  import BigNumber from "bignumber.js";
5
5
 
@@ -33,4 +33,4 @@ declare class SpotQueryAPI extends BaseSpotAPI {
33
33
  }
34
34
  //#endregion
35
35
  export { SpotQueryAPI as t };
36
- //# sourceMappingURL=SpotQueryAPI-C-646O43.d.cts.map
36
+ //# sourceMappingURL=SpotQueryAPI-Bp6KNIrO.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpotQueryAPI-C-646O43.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
+ {"version":3,"file":"SpotQueryAPI-Bp6KNIrO.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,5 +1,5 @@
1
1
  import { t as BaseNadoAPI } from "./base-GN5mZk1G.cjs";
2
- import { n as LinkSignerParams, r as LiquidateSubaccountParams } from "./types-BWRdhQd_.cjs";
2
+ import { n as LinkSignerParams, r as LiquidateSubaccountParams } from "./types-C0Wevcia.cjs";
3
3
 
4
4
  //#region src/apis/subaccount/SubaccountExecuteAPI.d.ts
5
5
  declare class SubaccountExecuteAPI extends BaseNadoAPI {
@@ -18,4 +18,4 @@ declare class SubaccountExecuteAPI extends BaseNadoAPI {
18
18
  }
19
19
  //#endregion
20
20
  export { SubaccountExecuteAPI as t };
21
- //# sourceMappingURL=SubaccountExecuteAPI-BXUYFvqZ.d.cts.map
21
+ //# sourceMappingURL=SubaccountExecuteAPI-BNB-4uUP.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubaccountExecuteAPI-BXUYFvqZ.d.cts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountExecuteAPI.ts"],"mappings":";;;;cAGa,oBAAA,SAA6B,WAAA;;AAA1C;;;;EAMQ,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,gCAAA;EAclC;;;;;EAAnB,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,gCAAA;AAAA"}
1
+ {"version":3,"file":"SubaccountExecuteAPI-BNB-4uUP.d.cts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountExecuteAPI.ts"],"mappings":";;;;cAGa,oBAAA,SAA6B,WAAA;;AAA1C;;;;EAMQ,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,gCAAA;EAclC;;;;;EAAnB,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,gCAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNadoAPI } from "./base-D11I3QiM.js";
2
- import { n as LinkSignerParams, r as LiquidateSubaccountParams } from "./types-B6oFoDTo.js";
2
+ import { n as LinkSignerParams, r as LiquidateSubaccountParams } from "./types-BDVasYAf.js";
3
3
 
4
4
  //#region src/apis/subaccount/SubaccountExecuteAPI.d.ts
5
5
  declare class SubaccountExecuteAPI extends BaseNadoAPI {
@@ -18,4 +18,4 @@ declare class SubaccountExecuteAPI extends BaseNadoAPI {
18
18
  }
19
19
  //#endregion
20
20
  export { SubaccountExecuteAPI as t };
21
- //# sourceMappingURL=SubaccountExecuteAPI-IV4EuQiO.d.ts.map
21
+ //# sourceMappingURL=SubaccountExecuteAPI-Dho_tprr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubaccountExecuteAPI-IV4EuQiO.d.ts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountExecuteAPI.ts"],"mappings":";;;;cAGa,oBAAA,SAA6B,WAAA;;AAA1C;;;;EAMQ,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,gCAAA;EAclC;;;;;EAAnB,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,gCAAA;AAAA"}
1
+ {"version":3,"file":"SubaccountExecuteAPI-Dho_tprr.d.ts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountExecuteAPI.ts"],"mappings":";;;;cAGa,oBAAA,SAA6B,WAAA;;AAA1C;;;;EAMQ,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,gCAAA;EAclC;;;;;EAAnB,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,gCAAA;AAAA"}
@@ -37,4 +37,4 @@ declare class SubaccountQueryAPI extends BaseNadoAPI {
37
37
  }
38
38
  //#endregion
39
39
  export { SubaccountQueryAPI as t };
40
- //# sourceMappingURL=SubaccountQueryAPI-DuPZIksw.d.cts.map
40
+ //# sourceMappingURL=SubaccountQueryAPI-BV7h4nmZ.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubaccountQueryAPI-DuPZIksw.d.cts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountQueryAPI.ts"],"mappings":";;;;;cAYa,kBAAA,SAA2B,WAAA;;AAAxC;;;EAKQ,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EAAA;;;;EAQ7D,mCAAA,CACJ,MAAA,EAAQ,yCAAA,GAAyC,OAAA,iCAAA,kCAAA;EAiBf;;;;EAR9B,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EA0BT;;;;EAlBpD,qBAAA,CAAsB,MAAA,EAAQ,iCAAA,GAAiC,OAAA,iCAAA,mCAAA;EA1B/D;;;;EAkCA,sCAAA,CACJ,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EA3BhC;;;;EAoCA,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;AAAA"}
1
+ {"version":3,"file":"SubaccountQueryAPI-BV7h4nmZ.d.cts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountQueryAPI.ts"],"mappings":";;;;;cAYa,kBAAA,SAA2B,WAAA;;AAAxC;;;EAKQ,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EAAA;;;;EAQ7D,mCAAA,CACJ,MAAA,EAAQ,yCAAA,GAAyC,OAAA,iCAAA,kCAAA;EAiBf;;;;EAR9B,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EA0BT;;;;EAlBpD,qBAAA,CAAsB,MAAA,EAAQ,iCAAA,GAAiC,OAAA,iCAAA,mCAAA;EA1B/D;;;;EAkCA,sCAAA,CACJ,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EA3BhC;;;;EAoCA,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;AAAA"}
@@ -37,4 +37,4 @@ declare class SubaccountQueryAPI extends BaseNadoAPI {
37
37
  }
38
38
  //#endregion
39
39
  export { SubaccountQueryAPI as t };
40
- //# sourceMappingURL=SubaccountQueryAPI-De_FQ-Qa.d.ts.map
40
+ //# sourceMappingURL=SubaccountQueryAPI-CAUa6ANv.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubaccountQueryAPI-De_FQ-Qa.d.ts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountQueryAPI.ts"],"mappings":";;;;;cAYa,kBAAA,SAA2B,WAAA;;AAAxC;;;EAKQ,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EAAA;;;;EAQ7D,mCAAA,CACJ,MAAA,EAAQ,yCAAA,GAAyC,OAAA,iCAAA,kCAAA;EAiBf;;;;EAR9B,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EA0BT;;;;EAlBpD,qBAAA,CAAsB,MAAA,EAAQ,iCAAA,GAAiC,OAAA,iCAAA,mCAAA;EA1B/D;;;;EAkCA,sCAAA,CACJ,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EA3BhC;;;;EAoCA,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;AAAA"}
1
+ {"version":3,"file":"SubaccountQueryAPI-CAUa6ANv.d.ts","names":[],"sources":["../src/apis/subaccount/src/apis/subaccount/SubaccountQueryAPI.ts"],"mappings":";;;;;cAYa,kBAAA,SAA2B,WAAA;;AAAxC;;;EAKQ,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EAAA;;;;EAQ7D,mCAAA,CACJ,MAAA,EAAQ,yCAAA,GAAyC,OAAA,iCAAA,kCAAA;EAiBf;;;;EAR9B,oBAAA,CAAqB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,iCAAA,kCAAA;EA0BT;;;;EAlBpD,qBAAA,CAAsB,MAAA,EAAQ,iCAAA,GAAiC,OAAA,iCAAA,mCAAA;EA1B/D;;;;EAkCA,sCAAA,CACJ,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EA3BhC;;;;EAoCA,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;AAAA"}
@@ -49,4 +49,4 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
49
49
  }
50
50
  //#endregion
51
51
  export { WebSocketExecuteAPI as t };
52
- //# sourceMappingURL=WebSocketExecuteAPI-BbCjkskC.d.ts.map
52
+ //# sourceMappingURL=WebSocketExecuteAPI-CpP_ILEk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketExecuteAPI-BbCjkskC.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-CpP_ILEk.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"}
@@ -49,4 +49,4 @@ declare class WebSocketExecuteAPI extends BaseNadoAPI {
49
49
  }
50
50
  //#endregion
51
51
  export { WebSocketExecuteAPI as t };
52
- //# sourceMappingURL=WebSocketExecuteAPI-DZ_Xauk2.d.cts.map
52
+ //# sourceMappingURL=WebSocketExecuteAPI-hJMLfP8d.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketExecuteAPI-DZ_Xauk2.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-hJMLfP8d.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"}
@@ -17,4 +17,4 @@ declare class WebSocketQueryAPI extends BaseNadoAPI {
17
17
  }
18
18
  //#endregion
19
19
  export { WebSocketQueryAPI as t };
20
- //# sourceMappingURL=WebSocketQueryAPI-hOXDojO7.d.ts.map
20
+ //# sourceMappingURL=WebSocketQueryAPI-BsyrKGrK.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketQueryAPI-hOXDojO7.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketQueryAPI.ts"],"mappings":";;;;;;AAWA;;cAAa,iBAAA,SAA0B,WAAA;EAOS;;;;;;EAAvC,iBAAA,sBAAuC,4BAAA,CAAA,CAC5C,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,8BAAA,CAA+B,YAAA,IACtC,wBAAA,CAAyB,YAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketQueryAPI-BsyrKGrK.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketQueryAPI.ts"],"mappings":";;;;;;AAWA;;cAAa,iBAAA,SAA0B,WAAA;EAOS;;;;;;EAAvC,iBAAA,sBAAuC,4BAAA,CAAA,CAC5C,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,8BAAA,CAA+B,YAAA,IACtC,wBAAA,CAAyB,YAAA;AAAA"}
@@ -17,4 +17,4 @@ declare class WebSocketQueryAPI extends BaseNadoAPI {
17
17
  }
18
18
  //#endregion
19
19
  export { WebSocketQueryAPI as t };
20
- //# sourceMappingURL=WebSocketQueryAPI-D1i9ToSh.d.cts.map
20
+ //# sourceMappingURL=WebSocketQueryAPI-zSF8NPwe.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketQueryAPI-D1i9ToSh.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketQueryAPI.ts"],"mappings":";;;;;;AAWA;;cAAa,iBAAA,SAA0B,WAAA;EAOS;;;;;;EAAvC,iBAAA,sBAAuC,4BAAA,CAAA,CAC5C,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,8BAAA,CAA+B,YAAA,IACtC,wBAAA,CAAyB,YAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketQueryAPI-zSF8NPwe.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketQueryAPI.ts"],"mappings":";;;;;;AAWA;;cAAa,iBAAA,SAA0B,WAAA;EAOS;;;;;;EAAvC,iBAAA,sBAAuC,4BAAA,CAAA,CAC5C,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,8BAAA,CAA+B,YAAA,IACtC,wBAAA,CAAyB,YAAA;AAAA"}
@@ -31,4 +31,4 @@ declare class WebSocketSubscriptionAPI extends BaseNadoAPI {
31
31
  }
32
32
  //#endregion
33
33
  export { WebSocketSubscriptionAPI as t };
34
- //# sourceMappingURL=WebSocketSubscriptionAPI-B9YYloIc.d.ts.map
34
+ //# sourceMappingURL=WebSocketSubscriptionAPI-C-xipXc7.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketSubscriptionAPI-B9YYloIc.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketSubscriptionAPI.ts"],"mappings":";;;;;;AAkBA;;;;;;cAAa,wBAAA,SAAiC,WAAA;EAcT;;;;;;;EAN5B,wBAAA,sBACgB,mCAAA,CAAA,CAErB,EAAA,UACA,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,qCAAA,CAAsC,YAAA,IAC7C,+BAAA,CAAgC,YAAA;EAdS;;;;;;EA4BrC,uBAAA,qBACe,wCAAA,CAAA,CAEpB,UAAA,EAAY,WAAA,EACZ,MAAA,EAAQ,0CAAA,CAA2C,WAAA;IAEnD,MAAA,EAAQ,8BAAA,CAA+B,WAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketSubscriptionAPI-C-xipXc7.d.ts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketSubscriptionAPI.ts"],"mappings":";;;;;;AAkBA;;;;;;cAAa,wBAAA,SAAiC,WAAA;EAcT;;;;;;;EAN5B,wBAAA,sBACgB,mCAAA,CAAA,CAErB,EAAA,UACA,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,qCAAA,CAAsC,YAAA,IAC7C,+BAAA,CAAgC,YAAA;EAdS;;;;;;EA4BrC,uBAAA,qBACe,wCAAA,CAAA,CAEpB,UAAA,EAAY,WAAA,EACZ,MAAA,EAAQ,0CAAA,CAA2C,WAAA;IAEnD,MAAA,EAAQ,8BAAA,CAA+B,WAAA;EAAA;AAAA"}
@@ -31,4 +31,4 @@ declare class WebSocketSubscriptionAPI extends BaseNadoAPI {
31
31
  }
32
32
  //#endregion
33
33
  export { WebSocketSubscriptionAPI as t };
34
- //# sourceMappingURL=WebSocketSubscriptionAPI-DgIMxfz5.d.cts.map
34
+ //# sourceMappingURL=WebSocketSubscriptionAPI-DrAbLF80.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocketSubscriptionAPI-DgIMxfz5.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketSubscriptionAPI.ts"],"mappings":";;;;;;AAkBA;;;;;;cAAa,wBAAA,SAAiC,WAAA;EAcT;;;;;;;EAN5B,wBAAA,sBACgB,mCAAA,CAAA,CAErB,EAAA,UACA,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,qCAAA,CAAsC,YAAA,IAC7C,+BAAA,CAAgC,YAAA;EAdS;;;;;;EA4BrC,uBAAA,qBACe,wCAAA,CAAA,CAEpB,UAAA,EAAY,WAAA,EACZ,MAAA,EAAQ,0CAAA,CAA2C,WAAA;IAEnD,MAAA,EAAQ,8BAAA,CAA+B,WAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"WebSocketSubscriptionAPI-DrAbLF80.d.cts","names":[],"sources":["../src/apis/ws/src/apis/ws/WebSocketSubscriptionAPI.ts"],"mappings":";;;;;;AAkBA;;;;;;cAAa,wBAAA,SAAiC,WAAA;EAcT;;;;;;;EAN5B,wBAAA,sBACgB,mCAAA,CAAA,CAErB,EAAA,UACA,WAAA,EAAa,YAAA,EACb,MAAA,EAAQ,qCAAA,CAAsC,YAAA,IAC7C,+BAAA,CAAgC,YAAA;EAdS;;;;;;EA4BrC,uBAAA,qBACe,wCAAA,CAAA,CAEpB,UAAA,EAAY,WAAA,EACZ,MAAA,EAAQ,0CAAA,CAA2C,WAAA;IAEnD,MAAA,EAAQ,8BAAA,CAA+B,WAAA;EAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_apis_base = require("../base.cjs");
3
+ let _nadohq_shared = require("@nadohq/shared");
4
+ let viem = require("viem");
5
+ //#region src/apis/rewards/BaseRewardsAPI.ts
6
+ var BaseRewardsAPI = class extends require_apis_base.BaseNadoAPI {
7
+ /**
8
+ * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core
9
+ * Nado deployment; they are returned by the indexer alongside a claim proof.
10
+ */
11
+ getAirdropContract({ airdropAddress }) {
12
+ return (0, viem.getContract)({
13
+ abi: _nadohq_shared.AIRDROP_ABI,
14
+ address: airdropAddress,
15
+ client: this.context.walletClient ?? this.context.publicClient
16
+ });
17
+ }
18
+ };
19
+ //#endregion
20
+ exports.BaseRewardsAPI = BaseRewardsAPI;
21
+
22
+ //# sourceMappingURL=BaseRewardsAPI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseRewardsAPI.cjs","names":["BaseNadoAPI","AIRDROP_ABI"],"sources":["../../../src/apis/rewards/BaseRewardsAPI.ts"],"sourcesContent":["import { AIRDROP_ABI, ContractInstance } from '@nadohq/shared';\nimport { getContract } from 'viem';\nimport { BaseNadoAPI } from '../base';\nimport { AirdropAddressParams } from './types';\n\nexport class BaseRewardsAPI extends BaseNadoAPI {\n /**\n * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core\n * Nado deployment; they are returned by the indexer alongside a claim proof.\n */\n protected getAirdropContract({\n airdropAddress,\n }: AirdropAddressParams): ContractInstance<typeof AIRDROP_ABI> {\n return getContract({\n abi: AIRDROP_ABI,\n address: airdropAddress,\n client: this.context.walletClient ?? this.context.publicClient,\n });\n }\n}\n"],"mappings":";;;;;AAKA,IAAa,iBAAb,cAAoCA,kBAAAA,YAAY;;;;;CAK9C,mBAA6B,EAC3B,kBAC6D;EAC7D,QAAA,GAAA,KAAA,aAAmB;GACjB,KAAKC,eAAAA;GACL,SAAS;GACT,QAAQ,KAAK,QAAQ,gBAAgB,KAAK,QAAQ;EACpD,CAAC;CACH;AACF"}
@@ -0,0 +1,2 @@
1
+ import { t as BaseRewardsAPI } from "../../BaseRewardsAPI-C2Khs1h3.cjs";
2
+ export { BaseRewardsAPI };
@@ -0,0 +1,2 @@
1
+ import { t as BaseRewardsAPI } from "../../BaseRewardsAPI-DP_NdIBN.js";
2
+ export { BaseRewardsAPI };
@@ -0,0 +1,21 @@
1
+ import { BaseNadoAPI } from "../base.js";
2
+ import { AIRDROP_ABI } from "@nadohq/shared";
3
+ import { getContract } from "viem";
4
+ //#region src/apis/rewards/BaseRewardsAPI.ts
5
+ var BaseRewardsAPI = class extends BaseNadoAPI {
6
+ /**
7
+ * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core
8
+ * Nado deployment; they are returned by the indexer alongside a claim proof.
9
+ */
10
+ getAirdropContract({ airdropAddress }) {
11
+ return getContract({
12
+ abi: AIRDROP_ABI,
13
+ address: airdropAddress,
14
+ client: this.context.walletClient ?? this.context.publicClient
15
+ });
16
+ }
17
+ };
18
+ //#endregion
19
+ export { BaseRewardsAPI };
20
+
21
+ //# sourceMappingURL=BaseRewardsAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseRewardsAPI.js","names":[],"sources":["../../../src/apis/rewards/BaseRewardsAPI.ts"],"sourcesContent":["import { AIRDROP_ABI, ContractInstance } from '@nadohq/shared';\nimport { getContract } from 'viem';\nimport { BaseNadoAPI } from '../base';\nimport { AirdropAddressParams } from './types';\n\nexport class BaseRewardsAPI extends BaseNadoAPI {\n /**\n * Builds a contract instance for an Airdrop contract. Airdrop addresses are not part of the core\n * Nado deployment; they are returned by the indexer alongside a claim proof.\n */\n protected getAirdropContract({\n airdropAddress,\n }: AirdropAddressParams): ContractInstance<typeof AIRDROP_ABI> {\n return getContract({\n abi: AIRDROP_ABI,\n address: airdropAddress,\n client: this.context.walletClient ?? this.context.publicClient,\n });\n }\n}\n"],"mappings":";;;;AAKA,IAAa,iBAAb,cAAoC,YAAY;;;;;CAK9C,mBAA6B,EAC3B,kBAC6D;EAC7D,OAAO,YAAY;GACjB,KAAK;GACL,SAAS;GACT,QAAQ,KAAK,QAAQ,gBAAgB,KAAK,QAAQ;EACpD,CAAC;CACH;AACF"}
@@ -0,0 +1,49 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_apis_rewards_BaseRewardsAPI = require("./BaseRewardsAPI.cjs");
3
+ let _nadohq_shared = require("@nadohq/shared");
4
+ //#region src/apis/rewards/RewardsExecuteAPI.ts
5
+ var RewardsExecuteAPI = class extends require_apis_rewards_BaseRewardsAPI.BaseRewardsAPI {
6
+ /**
7
+ * Claims every currently claimable cash incentives reward for the connected wallet in a single
8
+ * transaction, fetching the merkle proofs from the indexer itself.
9
+ *
10
+ * The Airdrop contract verifies proofs against `msg.sender`, so this can only ever claim for the
11
+ * connected wallet. Rewards that were already settled onchain are dropped before submitting,
12
+ * since the indexer keeps reporting them as claimable, as are rewards whose week the contract
13
+ * does not know about yet.
14
+ *
15
+ * @returns Hash of the submitted claim transaction.
16
+ * @throws `WalletNotProvidedError` when no wallet client is available to sign with.
17
+ * @throws When the indexer reports nothing claimable, or when no claimable reward is ready to
18
+ * claim onchain because each has either already been claimed or is not yet registered on the
19
+ * airdrop contract.
20
+ */
21
+ async claimCashIncentives() {
22
+ const walletAddress = this.getWalletClientAddress();
23
+ const { events } = await this.context.indexerClient.getCashIncentives({ address: walletAddress });
24
+ const claimableRewards = events.map((event) => event.wallet.claim).filter((claim) => claim.status === "claimable");
25
+ const airdropAddress = claimableRewards[0]?.airdropAddress;
26
+ if (!airdropAddress) throw new Error("No claimable cash incentives rewards found for this wallet.");
27
+ const airdropContract = this.getAirdropContract({ airdropAddress });
28
+ if (!(0, _nadohq_shared.isWriteableContract)(airdropContract)) throw new _nadohq_shared.WalletNotProvidedError();
29
+ const claimed = await airdropContract.read.getClaimed([walletAddress]);
30
+ const unclaimedProofs = [];
31
+ for (const { week, totalAmount, proof } of claimableRewards) {
32
+ if (week < 1 || week >= claimed.length) continue;
33
+ if ((0, _nadohq_shared.toBigNumber)(claimed[week]).lt((0, _nadohq_shared.toBigNumber)(totalAmount))) unclaimedProofs.push({
34
+ week,
35
+ totalAmount,
36
+ proof
37
+ });
38
+ }
39
+ if (unclaimedProofs.length === 0) throw new Error(`No cash incentives rewards are ready to claim from the airdrop contract at ${airdropAddress}. Each claimable reward has either already been claimed onchain, or is not yet registered on the contract (it reports ${claimed.length - 1} week(s)).`);
40
+ return (0, _nadohq_shared.claimAirdropRewards)({
41
+ airdropContract,
42
+ claimProofs: unclaimedProofs
43
+ });
44
+ }
45
+ };
46
+ //#endregion
47
+ exports.RewardsExecuteAPI = RewardsExecuteAPI;
48
+
49
+ //# sourceMappingURL=RewardsExecuteAPI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardsExecuteAPI.cjs","names":["BaseRewardsAPI","WalletNotProvidedError"],"sources":["../../../src/apis/rewards/RewardsExecuteAPI.ts"],"sourcesContent":["import {\n AirdropClaimProof,\n claimAirdropRewards,\n isWriteableContract,\n toBigNumber,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport { Hash } from 'viem';\nimport { BaseRewardsAPI } from './BaseRewardsAPI';\n\nexport class RewardsExecuteAPI extends BaseRewardsAPI {\n /**\n * Claims every currently claimable cash incentives reward for the connected wallet in a single\n * transaction, fetching the merkle proofs from the indexer itself.\n *\n * The Airdrop contract verifies proofs against `msg.sender`, so this can only ever claim for the\n * connected wallet. Rewards that were already settled onchain are dropped before submitting,\n * since the indexer keeps reporting them as claimable, as are rewards whose week the contract\n * does not know about yet.\n *\n * @returns Hash of the submitted claim transaction.\n * @throws `WalletNotProvidedError` when no wallet client is available to sign with.\n * @throws When the indexer reports nothing claimable, or when no claimable reward is ready to\n * claim onchain because each has either already been claimed or is not yet registered on the\n * airdrop contract.\n */\n async claimCashIncentives(): Promise<Hash> {\n const walletAddress = this.getWalletClientAddress();\n const { events } = await this.context.indexerClient.getCashIncentives({\n address: walletAddress,\n });\n\n const claimableRewards = events\n .map((event) => event.wallet.claim)\n .filter((claim) => claim.status === 'claimable');\n\n // Every reward currently comes from the same airdrop contract, so they claim in one transaction\n const airdropAddress = claimableRewards[0]?.airdropAddress;\n if (!airdropAddress) {\n throw new Error(\n 'No claimable cash incentives rewards found for this wallet.',\n );\n }\n\n const airdropContract = this.getAirdropContract({ airdropAddress });\n if (!isWriteableContract(airdropContract)) {\n throw new WalletNotProvidedError();\n }\n\n // Indexed by week, 1-based, with an unused slot 0, so the last valid week is `length - 1`\n const claimed = await airdropContract.read.getClaimed([walletAddress]);\n\n const unclaimedProofs: AirdropClaimProof[] = [];\n for (const { week, totalAmount, proof } of claimableRewards) {\n // A reward can be published by the indexer before its merkle root is registered onchain, so\n // skip those weeks rather than failing and blocking the weeks that are ready to claim\n if (week < 1 || week >= claimed.length) {\n continue;\n }\n // Claimed amounts are cumulative, so anything below the entitlement is still claimable\n if (toBigNumber(claimed[week]).lt(toBigNumber(totalAmount))) {\n unclaimedProofs.push({ week, totalAmount, proof });\n }\n }\n\n if (unclaimedProofs.length === 0) {\n throw new Error(\n `No cash incentives rewards are ready to claim from the airdrop contract at ${airdropAddress}. Each claimable reward has either already been claimed onchain, or is not yet registered on the contract (it reports ${claimed.length - 1} week(s)).`,\n );\n }\n\n return claimAirdropRewards({\n airdropContract,\n claimProofs: unclaimedProofs,\n });\n }\n}\n"],"mappings":";;;;AAUA,IAAa,oBAAb,cAAuCA,oCAAAA,eAAe;;;;;;;;;;;;;;;;CAgBpD,MAAM,sBAAqC;EACzC,MAAM,gBAAgB,KAAK,uBAAuB;EAClD,MAAM,EAAE,WAAW,MAAM,KAAK,QAAQ,cAAc,kBAAkB,EACpE,SAAS,cACX,CAAC;EAED,MAAM,mBAAmB,OACtB,KAAK,UAAU,MAAM,OAAO,KAAK,EACjC,QAAQ,UAAU,MAAM,WAAW,WAAW;EAGjD,MAAM,iBAAiB,iBAAiB,IAAI;EAC5C,IAAI,CAAC,gBACH,MAAM,IAAI,MACR,6DACF;EAGF,MAAM,kBAAkB,KAAK,mBAAmB,EAAE,eAAe,CAAC;EAClE,IAAI,EAAA,GAAA,eAAA,qBAAqB,eAAe,GACtC,MAAM,IAAIC,eAAAA,uBAAuB;EAInC,MAAM,UAAU,MAAM,gBAAgB,KAAK,WAAW,CAAC,aAAa,CAAC;EAErE,MAAM,kBAAuC,CAAC;EAC9C,KAAK,MAAM,EAAE,MAAM,aAAa,WAAW,kBAAkB;GAG3D,IAAI,OAAO,KAAK,QAAQ,QAAQ,QAC9B;GAGF,KAAA,GAAA,eAAA,aAAgB,QAAQ,KAAK,EAAE,IAAA,GAAA,eAAA,aAAe,WAAW,CAAC,GACxD,gBAAgB,KAAK;IAAE;IAAM;IAAa;GAAM,CAAC;EAErD;EAEA,IAAI,gBAAgB,WAAW,GAC7B,MAAM,IAAI,MACR,8EAA8E,eAAe,wHAAwH,QAAQ,SAAS,EAAE,WAC1O;EAGF,QAAA,GAAA,eAAA,qBAA2B;GACzB;GACA,aAAa;EACf,CAAC;CACH;AACF"}
@@ -0,0 +1,2 @@
1
+ import { t as RewardsExecuteAPI } from "../../RewardsExecuteAPI-DtKFYDZO.cjs";
2
+ export { RewardsExecuteAPI };
@@ -0,0 +1,2 @@
1
+ import { t as RewardsExecuteAPI } from "../../RewardsExecuteAPI-t-X-0bkJ.js";
2
+ export { RewardsExecuteAPI };