@evergonlabs/tmi-protocol-api 0.11.0-rc.3 → 0.11.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 (595) hide show
  1. package/dist/app.d.ts +473 -232
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/apps.d.ts +1 -1
  4. package/dist/apps.js +1 -1
  5. package/dist/client.d.ts +1260 -1103
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/fractions/index.d.ts +84 -100
  8. package/dist/fractions/index.d.ts.map +1 -1
  9. package/dist/fractions/markets/deployMarket.d.ts +1 -1
  10. package/dist/fractions/markets/deployMarket.d.ts.map +1 -1
  11. package/dist/fractions/markets/deployMarket.js +5 -5
  12. package/dist/fractions/markets/getDeployEvent.d.ts +6 -0
  13. package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
  14. package/dist/fractions/markets/getDeployEvent.js +8 -5
  15. package/dist/fractions/markets/getMarket.d.ts +5 -0
  16. package/dist/fractions/markets/getMarket.d.ts.map +1 -1
  17. package/dist/fractions/markets/getMarket.js +7 -14
  18. package/dist/fractions/markets/index.d.ts +7 -11
  19. package/dist/fractions/markets/index.d.ts.map +1 -1
  20. package/dist/fractions/markets/initCompilot.d.ts +4 -0
  21. package/dist/fractions/markets/initCompilot.d.ts.map +1 -1
  22. package/dist/fractions/markets/initCompilot.js +6 -4
  23. package/dist/fractions/markets/searchMarkets.d.ts +42 -11
  24. package/dist/fractions/markets/searchMarkets.d.ts.map +1 -1
  25. package/dist/fractions/markets/searchMarkets.js +16 -11
  26. package/dist/fractions/roles/grantRole.d.ts +1 -1
  27. package/dist/fractions/roles/grantRole.js +1 -1
  28. package/dist/fractions/sales/{approveSale.route.d.ts → approveSale.d.ts} +2 -2
  29. package/dist/fractions/sales/approveSale.d.ts.map +1 -0
  30. package/dist/fractions/sales/{approveSale.route.js → approveSale.js} +1 -1
  31. package/dist/fractions/sales/{approveWrapper.route.d.ts → approveWrapper.d.ts} +2 -2
  32. package/dist/fractions/sales/approveWrapper.d.ts.map +1 -0
  33. package/dist/fractions/sales/{approveWrapper.route.js → approveWrapper.js} +1 -1
  34. package/dist/fractions/sales/{completeSale.route.d.ts → completeSale.d.ts} +2 -2
  35. package/dist/fractions/sales/completeSale.d.ts.map +1 -0
  36. package/dist/fractions/sales/{completeSale.route.js → completeSale.js} +1 -1
  37. package/dist/fractions/sales/{createFractions.route.d.ts → createFractions.d.ts} +2 -2
  38. package/dist/fractions/sales/createFractions.d.ts.map +1 -0
  39. package/dist/fractions/sales/{createFractions.route.js → createFractions.js} +1 -1
  40. package/dist/fractions/sales/getFractionSaleStatistics.d.ts +47 -0
  41. package/dist/fractions/sales/getFractionSaleStatistics.d.ts.map +1 -0
  42. package/dist/fractions/sales/{getFractionSaleStatistics.route.js → getFractionSaleStatistics.js} +32 -18
  43. package/dist/fractions/sales/getVaultAddress.d.ts +10 -1
  44. package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
  45. package/dist/fractions/sales/getVaultAddress.js +11 -7
  46. package/dist/fractions/sales/getWithdrawEvent.d.ts +4 -3
  47. package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
  48. package/dist/fractions/sales/getWithdrawEvent.js +8 -13
  49. package/dist/fractions/sales/index.d.ts +50 -62
  50. package/dist/fractions/sales/index.d.ts.map +1 -1
  51. package/dist/fractions/sales/index.js +16 -16
  52. package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +13 -4
  53. package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
  54. package/dist/fractions/sales/parseFractionsCreatedEvent.js +20 -22
  55. package/dist/fractions/sales/{purchase.route.d.ts → purchase.d.ts} +2 -2
  56. package/dist/fractions/sales/purchase.d.ts.map +1 -0
  57. package/dist/fractions/sales/{purchase.route.js → purchase.js} +1 -1
  58. package/dist/fractions/sales/{purchaseStatistics.route.d.ts → purchaseStatistics.d.ts} +8 -7
  59. package/dist/fractions/sales/purchaseStatistics.d.ts.map +1 -0
  60. package/dist/fractions/sales/{purchaseStatistics.route.js → purchaseStatistics.js} +12 -10
  61. package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.d.ts → receiveFundsAfterNonFunded.d.ts} +4 -4
  62. package/dist/fractions/sales/receiveFundsAfterNonFunded.d.ts.map +1 -0
  63. package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.js → receiveFundsAfterNonFunded.js} +1 -1
  64. package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.d.ts → receiveNonPurchasedWrappedAssets.d.ts} +1 -1
  65. package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.d.ts.map +1 -0
  66. package/dist/fractions/sales/recoverFractions.d.ts +1 -1
  67. package/dist/fractions/sales/recoverFractions.js +1 -1
  68. package/dist/fractions/sales/rejectFractions.d.ts +1 -1
  69. package/dist/fractions/sales/rejectFractions.js +1 -1
  70. package/dist/fractions/sales/searchActivity.d.ts +121 -0
  71. package/dist/fractions/sales/searchActivity.d.ts.map +1 -0
  72. package/dist/fractions/sales/{searchActivity.route.js → searchActivity.js} +23 -15
  73. package/dist/fractions/sales/searchSales/searchSales.d.ts +89 -12
  74. package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
  75. package/dist/fractions/sales/searchSales/searchSales.js +17 -12
  76. package/dist/fractions/sales/searchWithdrawal.d.ts +132 -0
  77. package/dist/fractions/sales/searchWithdrawal.d.ts.map +1 -0
  78. package/dist/fractions/sales/{searchWithdrawal.route.js → searchWithdrawal.js} +16 -11
  79. package/dist/fractions/sales/setFeeCapLimit.d.ts +1 -1
  80. package/dist/fractions/sales/setFeeCapLimit.js +1 -1
  81. package/dist/fractions/sales/{unlockWrappedAssets.route.d.ts → unlockWrappedAssets.d.ts} +2 -2
  82. package/dist/fractions/sales/unlockWrappedAssets.d.ts.map +1 -0
  83. package/dist/fractions/sales/{unlockWrappedAssets.route.js → unlockWrappedAssets.js} +1 -1
  84. package/dist/fractions/sales/vesting/{claimStatistics.route.d.ts → claimStatistics.d.ts} +5 -5
  85. package/dist/fractions/sales/vesting/claimStatistics.d.ts.map +1 -0
  86. package/dist/fractions/sales/vesting/{claimStatistics.route.js → claimStatistics.js} +6 -6
  87. package/dist/fractions/sales/vesting/{claimVestedTokens.route.d.ts → claimVestedTokens.d.ts} +1 -1
  88. package/dist/fractions/sales/vesting/claimVestedTokens.d.ts.map +1 -0
  89. package/dist/fractions/sales/vesting/{editCliff.route.d.ts → editCliff.d.ts} +1 -1
  90. package/dist/fractions/sales/vesting/editCliff.d.ts.map +1 -0
  91. package/dist/fractions/sales/vesting/{editCliff.route.js → editCliff.js} +1 -1
  92. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +6 -5
  93. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
  94. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +11 -16
  95. package/dist/fractions/sales/{withdraw.route.d.ts → withdraw.d.ts} +2 -2
  96. package/dist/fractions/sales/withdraw.d.ts.map +1 -0
  97. package/dist/fractions/sales/{withdraw.route.js → withdraw.js} +1 -1
  98. package/dist/fractions/schemas.d.ts +16 -5
  99. package/dist/fractions/schemas.d.ts.map +1 -1
  100. package/dist/fractions/schemas.js +20 -6
  101. package/dist/fractions/sig/getAuthData.d.ts +5 -9
  102. package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
  103. package/dist/fractions/sig/getAuthData.js +7 -11
  104. package/dist/fractions/sig/{getNonce.route.d.ts → getNonce.d.ts} +6 -3
  105. package/dist/fractions/sig/getNonce.d.ts.map +1 -0
  106. package/dist/fractions/sig/{getNonce.route.js → getNonce.js} +10 -6
  107. package/dist/fractions/sig/index.d.ts +1 -1
  108. package/dist/fractions/sig/index.js +1 -1
  109. package/dist/fractions/statistics/index.d.ts +26 -26
  110. package/dist/fractions/statistics/index.js +1 -1
  111. package/dist/fractions/statistics/{networkStatistics.route.d.ts → networkStatistics.d.ts} +27 -27
  112. package/dist/fractions/statistics/networkStatistics.d.ts.map +1 -0
  113. package/dist/fractions/statistics/{networkStatistics.route.js → networkStatistics.js} +13 -13
  114. package/dist/general/common.d.ts +1 -1
  115. package/dist/general/common.d.ts.map +1 -1
  116. package/dist/general/common.js +2 -2
  117. package/dist/general/estimateGas.d.ts +14 -9
  118. package/dist/general/estimateGas.d.ts.map +1 -1
  119. package/dist/general/estimateGas.js +26 -27
  120. package/dist/general/getBalance.d.ts +10 -1
  121. package/dist/general/getBalance.d.ts.map +1 -1
  122. package/dist/general/getBalance.js +33 -24
  123. package/dist/general/getBalancesBatch.d.ts +18 -2
  124. package/dist/general/getBalancesBatch.d.ts.map +1 -1
  125. package/dist/general/getBalancesBatch.js +28 -21
  126. package/dist/general/index.d.ts +9 -10
  127. package/dist/general/index.d.ts.map +1 -1
  128. package/dist/general/searchBalances.d.ts +18 -3
  129. package/dist/general/searchBalances.d.ts.map +1 -1
  130. package/dist/general/searchBalances.js +24 -4
  131. package/dist/issuance/erc1155/burn.d.ts +1 -1
  132. package/dist/issuance/erc1155/burn.d.ts.map +1 -1
  133. package/dist/issuance/erc1155/burn.js +5 -3
  134. package/dist/issuance/erc1155/default/deploy.d.ts +1 -1
  135. package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
  136. package/dist/issuance/erc1155/default/deploy.js +5 -3
  137. package/dist/issuance/erc1155/default/initialize.d.ts +1 -1
  138. package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -1
  139. package/dist/issuance/erc1155/default/initialize.js +5 -3
  140. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +11 -0
  141. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
  142. package/dist/issuance/erc1155/default/parseDeployEvent.js +14 -9
  143. package/dist/issuance/erc1155/gated/deploy.d.ts +1 -1
  144. package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
  145. package/dist/issuance/erc1155/gated/deploy.js +5 -5
  146. package/dist/issuance/erc1155/gated/initialize.d.ts +1 -1
  147. package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -1
  148. package/dist/issuance/erc1155/gated/initialize.js +5 -5
  149. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +11 -0
  150. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
  151. package/dist/issuance/erc1155/gated/parseDeployEvent.js +14 -9
  152. package/dist/issuance/erc1155/getMintedTokenId.d.ts +9 -1
  153. package/dist/issuance/erc1155/getMintedTokenId.d.ts.map +1 -1
  154. package/dist/issuance/erc1155/getMintedTokenId.js +16 -8
  155. package/dist/issuance/erc1155/grantRole.d.ts +1 -1
  156. package/dist/issuance/erc1155/grantRole.d.ts.map +1 -1
  157. package/dist/issuance/erc1155/grantRole.js +6 -4
  158. package/dist/issuance/erc1155/index.d.ts +1 -1
  159. package/dist/issuance/erc1155/mint.d.ts +1 -1
  160. package/dist/issuance/erc1155/mint.d.ts.map +1 -1
  161. package/dist/issuance/erc1155/mint.js +5 -3
  162. package/dist/issuance/erc1155/recover.d.ts +1 -1
  163. package/dist/issuance/erc1155/recover.d.ts.map +1 -1
  164. package/dist/issuance/erc1155/recover.js +5 -3
  165. package/dist/issuance/erc1155/renounceRole.d.ts +1 -1
  166. package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -1
  167. package/dist/issuance/erc1155/renounceRole.js +6 -4
  168. package/dist/issuance/erc1155/revokeRole.d.ts +1 -1
  169. package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -1
  170. package/dist/issuance/erc1155/revokeRole.js +6 -4
  171. package/dist/issuance/erc1155/setApprovalForAll.d.ts +1 -1
  172. package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -1
  173. package/dist/issuance/erc1155/setApprovalForAll.js +5 -3
  174. package/dist/issuance/erc1155/setBaseURI.d.ts +1 -1
  175. package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -1
  176. package/dist/issuance/erc1155/setBaseURI.js +5 -3
  177. package/dist/issuance/erc1155/setTokenURI.d.ts +1 -1
  178. package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
  179. package/dist/issuance/erc1155/setTokenURI.js +5 -3
  180. package/dist/issuance/erc20/approve.d.ts +1 -1
  181. package/dist/issuance/erc20/approve.d.ts.map +1 -1
  182. package/dist/issuance/erc20/approve.js +5 -3
  183. package/dist/issuance/erc20/burn.d.ts +1 -1
  184. package/dist/issuance/erc20/burn.d.ts.map +1 -1
  185. package/dist/issuance/erc20/burn.js +5 -3
  186. package/dist/issuance/erc20/default/deploy.d.ts +1 -1
  187. package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
  188. package/dist/issuance/erc20/default/deploy.js +5 -3
  189. package/dist/issuance/erc20/default/initialize.d.ts +1 -1
  190. package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
  191. package/dist/issuance/erc20/default/initialize.js +5 -5
  192. package/dist/issuance/erc20/default/parseDeployEvent.d.ts +14 -1
  193. package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
  194. package/dist/issuance/erc20/default/parseDeployEvent.js +22 -22
  195. package/dist/issuance/erc20/gated/deploy.d.ts +1 -1
  196. package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
  197. package/dist/issuance/erc20/gated/deploy.js +5 -5
  198. package/dist/issuance/erc20/gated/initialize.d.ts +1 -1
  199. package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
  200. package/dist/issuance/erc20/gated/initialize.js +5 -3
  201. package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +14 -1
  202. package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
  203. package/dist/issuance/erc20/gated/parseDeployEvent.js +28 -24
  204. package/dist/issuance/erc20/gatedSimple/deploy.d.ts +285 -3
  205. package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
  206. package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +3 -3
  207. package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
  208. package/dist/issuance/erc20/gatedSimple/getInitData.js +15 -9
  209. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +8 -0
  210. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
  211. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +11 -6
  212. package/dist/issuance/erc20/grantRole.d.ts +1 -1
  213. package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
  214. package/dist/issuance/erc20/grantRole.js +6 -4
  215. package/dist/issuance/erc20/index.d.ts +289 -7
  216. package/dist/issuance/erc20/index.d.ts.map +1 -1
  217. package/dist/issuance/erc20/mint.d.ts +1 -1
  218. package/dist/issuance/erc20/mint.d.ts.map +1 -1
  219. package/dist/issuance/erc20/mint.js +5 -3
  220. package/dist/issuance/erc20/recover.d.ts +1 -1
  221. package/dist/issuance/erc20/recover.d.ts.map +1 -1
  222. package/dist/issuance/erc20/recover.js +5 -3
  223. package/dist/issuance/erc20/renounceRole.d.ts +1 -1
  224. package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
  225. package/dist/issuance/erc20/renounceRole.js +6 -4
  226. package/dist/issuance/erc20/revokeRole.d.ts +1 -1
  227. package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
  228. package/dist/issuance/erc20/revokeRole.js +6 -4
  229. package/dist/issuance/erc20/transfer.d.ts +1 -1
  230. package/dist/issuance/erc20/transfer.d.ts.map +1 -1
  231. package/dist/issuance/erc20/transfer.js +5 -3
  232. package/dist/issuance/erc20/transferFrom.d.ts +1 -1
  233. package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
  234. package/dist/issuance/erc20/transferFrom.js +5 -3
  235. package/dist/issuance/erc721/approve.d.ts +1 -1
  236. package/dist/issuance/erc721/approve.d.ts.map +1 -1
  237. package/dist/issuance/erc721/approve.js +5 -3
  238. package/dist/issuance/erc721/burn.d.ts +1 -1
  239. package/dist/issuance/erc721/burn.d.ts.map +1 -1
  240. package/dist/issuance/erc721/burn.js +5 -3
  241. package/dist/issuance/erc721/default/deploy.d.ts +1 -1
  242. package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
  243. package/dist/issuance/erc721/default/deploy.js +5 -3
  244. package/dist/issuance/erc721/default/initialize.d.ts +1 -1
  245. package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
  246. package/dist/issuance/erc721/default/initialize.js +5 -3
  247. package/dist/issuance/erc721/default/parseDeployEvent.d.ts +13 -0
  248. package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
  249. package/dist/issuance/erc721/default/parseDeployEvent.js +16 -11
  250. package/dist/issuance/erc721/gated/deploy.d.ts +1 -1
  251. package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
  252. package/dist/issuance/erc721/gated/deploy.js +5 -5
  253. package/dist/issuance/erc721/gated/initialize.d.ts +1 -1
  254. package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
  255. package/dist/issuance/erc721/gated/initialize.js +5 -3
  256. package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +13 -0
  257. package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
  258. package/dist/issuance/erc721/gated/parseDeployEvent.js +16 -11
  259. package/dist/issuance/erc721/getMintedTokenId.d.ts +8 -0
  260. package/dist/issuance/erc721/getMintedTokenId.d.ts.map +1 -1
  261. package/dist/issuance/erc721/getMintedTokenId.js +11 -6
  262. package/dist/issuance/erc721/grantRole.d.ts +1 -1
  263. package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
  264. package/dist/issuance/erc721/grantRole.js +6 -4
  265. package/dist/issuance/erc721/mint.d.ts +1 -1
  266. package/dist/issuance/erc721/mint.d.ts.map +1 -1
  267. package/dist/issuance/erc721/mint.js +5 -3
  268. package/dist/issuance/erc721/recover.d.ts +1 -1
  269. package/dist/issuance/erc721/recover.d.ts.map +1 -1
  270. package/dist/issuance/erc721/recover.js +5 -3
  271. package/dist/issuance/erc721/renounceRole.d.ts +1 -1
  272. package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
  273. package/dist/issuance/erc721/renounceRole.js +6 -4
  274. package/dist/issuance/erc721/revokeRole.d.ts +1 -1
  275. package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
  276. package/dist/issuance/erc721/revokeRole.js +6 -4
  277. package/dist/issuance/erc721/setBaseURI.d.ts +1 -1
  278. package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
  279. package/dist/issuance/erc721/setBaseURI.js +5 -3
  280. package/dist/issuance/erc721/setTokenURI.d.ts +1 -1
  281. package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
  282. package/dist/issuance/erc721/setTokenURI.js +5 -3
  283. package/dist/issuance/erc721/transferFrom.d.ts +1 -1
  284. package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
  285. package/dist/issuance/erc721/transferFrom.js +5 -3
  286. package/dist/issuance/index.d.ts +292 -10
  287. package/dist/issuance/index.d.ts.map +1 -1
  288. package/dist/issuance/proxy/deploy.d.ts +3 -3
  289. package/dist/issuance/proxy/deploy.d.ts.map +1 -1
  290. package/dist/issuance/proxy/deploy.js +5 -3
  291. package/dist/issuance/proxy/index.d.ts +2 -2
  292. package/dist/issuance/proxy/upgrade.d.ts +1 -1
  293. package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
  294. package/dist/issuance/proxy/upgrade.js +5 -3
  295. package/dist/issuance/schemas.d.ts +52 -42
  296. package/dist/issuance/schemas.d.ts.map +1 -1
  297. package/dist/issuance/schemas.js +52 -42
  298. package/dist/next/app.d.ts +21 -25
  299. package/dist/next/app.d.ts.map +1 -1
  300. package/dist/next/client.d.ts +21 -25
  301. package/dist/next/client.d.ts.map +1 -1
  302. package/dist/next/lending/buyback.d.ts.map +1 -1
  303. package/dist/next/lending/buyback.js +1 -1
  304. package/dist/next/lending/createSale.d.ts.map +1 -1
  305. package/dist/next/lending/createSale.js +1 -1
  306. package/dist/next/lending/deployMarket.d.ts.map +1 -1
  307. package/dist/next/lending/deployMarket.js +1 -1
  308. package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts +7 -0
  309. package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts.map +1 -0
  310. package/dist/next/lending/forcefullyUnlockWrappersNft.js +39 -0
  311. package/dist/next/lending/index.js +1 -1
  312. package/dist/next/lending/schemas.d.ts +5 -1
  313. package/dist/next/lending/schemas.d.ts.map +1 -1
  314. package/dist/next/lending/schemas.js +5 -3
  315. package/dist/next/lending/setCollateralPrice.d.ts.map +1 -1
  316. package/dist/next/lending/setCollateralPrice.js +1 -1
  317. package/dist/next/nftFractions/createNftFractions.d.ts.map +1 -1
  318. package/dist/next/nftFractions/createNftFractions.js +4 -2
  319. package/dist/next/nftFractions/deployNftFractionsMarket.d.ts.map +1 -1
  320. package/dist/next/nftFractions/deployNftFractionsMarket.js +4 -2
  321. package/dist/next/nftFractions/deployNftFractionsMarketGated.d.ts.map +1 -1
  322. package/dist/next/nftFractions/deployNftFractionsMarketGated.js +4 -2
  323. package/dist/next/nftFractions/index.d.ts +5 -5
  324. package/dist/next/nftFractions/index.js +1 -1
  325. package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts +18 -5
  326. package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts.map +1 -1
  327. package/dist/next/nftFractions/parseNftFractionsCreatedEvent.js +32 -28
  328. package/dist/next/nftFractions/schemas.d.ts +4 -1
  329. package/dist/next/nftFractions/schemas.d.ts.map +1 -1
  330. package/dist/next/nftFractions/schemas.js +4 -1
  331. package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts.map +1 -1
  332. package/dist/next/vestingRedemptionDynamic/approveCampaign.js +1 -1
  333. package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts.map +1 -1
  334. package/dist/next/vestingRedemptionDynamic/createCampaign.js +1 -1
  335. package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts.map +1 -1
  336. package/dist/next/vestingRedemptionDynamic/deployMarket.js +1 -1
  337. package/dist/next/vestingRedemptionDynamic/epochPurchase.d.ts.map +1 -1
  338. package/dist/next/vestingRedemptionDynamic/epochPurchase.js +1 -1
  339. package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.d.ts.map +1 -1
  340. package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.js +1 -1
  341. package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts +14 -7
  342. package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts.map +1 -1
  343. package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.js +18 -11
  344. package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts +6 -2
  345. package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts.map +1 -1
  346. package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.js +5 -5
  347. package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts +17 -9
  348. package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts.map +1 -1
  349. package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.js +25 -16
  350. package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts +6 -2
  351. package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts.map +1 -1
  352. package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.js +5 -5
  353. package/dist/next/vestingRedemptionDynamic/index.d.ts +16 -20
  354. package/dist/next/vestingRedemptionDynamic/index.d.ts.map +1 -1
  355. package/dist/next/vestingRedemptionDynamic/requestWithdrawal.d.ts.map +1 -1
  356. package/dist/next/vestingRedemptionDynamic/requestWithdrawal.js +1 -1
  357. package/dist/next/vestingRedemptionDynamic/schemas.d.ts +13 -1
  358. package/dist/next/vestingRedemptionDynamic/schemas.d.ts.map +1 -1
  359. package/dist/next/vestingRedemptionDynamic/schemas.js +15 -1
  360. package/dist/next/vestingRedemptionDynamic/setEpochPrice.d.ts.map +1 -1
  361. package/dist/next/vestingRedemptionDynamic/setEpochPrice.js +1 -1
  362. package/dist/next/vestingRedemptionDynamic/withdrawFunds.d.ts.map +1 -1
  363. package/dist/next/vestingRedemptionDynamic/withdrawFunds.js +1 -1
  364. package/dist/schemas.d.ts +50 -0
  365. package/dist/schemas.d.ts.map +1 -1
  366. package/dist/schemas.js +62 -0
  367. package/dist/staking/index.d.ts +60 -84
  368. package/dist/staking/index.d.ts.map +1 -1
  369. package/dist/staking/platforms/getPlatform.d.ts +36 -0
  370. package/dist/staking/platforms/getPlatform.d.ts.map +1 -0
  371. package/dist/staking/platforms/{getPlatform/v0/getPlatform.js → getPlatform.js} +26 -22
  372. package/dist/staking/platforms/index.d.ts +10 -14
  373. package/dist/staking/platforms/index.d.ts.map +1 -1
  374. package/dist/staking/platforms/index.js +3 -6
  375. package/dist/staking/platforms/searchPlatforms.d.ts +40 -0
  376. package/dist/staking/platforms/searchPlatforms.d.ts.map +1 -0
  377. package/dist/staking/platforms/searchPlatforms.js +50 -0
  378. package/dist/staking/pools/getPool.d.ts +40 -0
  379. package/dist/staking/pools/getPool.d.ts.map +1 -0
  380. package/dist/staking/pools/{getPool/v0/getPool.js → getPool.js} +32 -28
  381. package/dist/staking/pools/index.d.ts +9 -13
  382. package/dist/staking/pools/index.d.ts.map +1 -1
  383. package/dist/staking/pools/index.js +3 -6
  384. package/dist/staking/pools/searchPools.d.ts +42 -0
  385. package/dist/staking/pools/searchPools.d.ts.map +1 -0
  386. package/dist/staking/pools/searchPools.js +50 -0
  387. package/dist/staking/roles/getRoles.d.ts +28 -0
  388. package/dist/staking/roles/getRoles.d.ts.map +1 -0
  389. package/dist/staking/roles/{getRoles/v0/getRoles.js → getRoles.js} +6 -5
  390. package/dist/staking/roles/grantRole.d.ts +33 -0
  391. package/dist/staking/roles/grantRole.d.ts.map +1 -0
  392. package/dist/staking/roles/{grantRole/v0/grantRole.js → grantRole.js} +19 -16
  393. package/dist/staking/roles/index.d.ts +23 -31
  394. package/dist/staking/roles/index.d.ts.map +1 -1
  395. package/dist/staking/roles/index.js +8 -8
  396. package/dist/staking/roles/searchRoleEvents.d.ts +48 -0
  397. package/dist/staking/roles/searchRoleEvents.d.ts.map +1 -0
  398. package/dist/staking/roles/{searchRoleEvents/v0/searchRoleEvents.js → searchRoleEvents.js} +25 -20
  399. package/dist/staking/roles/searchRoles.d.ts +46 -0
  400. package/dist/staking/roles/searchRoles.d.ts.map +1 -0
  401. package/dist/staking/roles/{searchRoles/v0/searchRoles.js → searchRoles.js} +24 -19
  402. package/dist/staking/stakes/getStake.d.ts +50 -0
  403. package/dist/staking/stakes/getStake.d.ts.map +1 -0
  404. package/dist/staking/stakes/{getStake/v0/getStake.js → getStake.js} +32 -28
  405. package/dist/staking/stakes/index.d.ts +21 -29
  406. package/dist/staking/stakes/index.d.ts.map +1 -1
  407. package/dist/staking/stakes/index.js +6 -6
  408. package/dist/staking/stakes/searchStakeEvents.d.ts +48 -0
  409. package/dist/staking/stakes/searchStakeEvents.d.ts.map +1 -0
  410. package/dist/staking/stakes/{searchStakeEvents/v0/searchStakeEvents.js → searchStakeEvents.js} +25 -20
  411. package/dist/staking/stakes/searchStakes.d.ts +56 -0
  412. package/dist/staking/stakes/searchStakes.d.ts.map +1 -0
  413. package/dist/staking/stakes/searchStakes.js +52 -0
  414. package/dist/stakingTemplates/index.d.ts +28 -28
  415. package/dist/stakingTemplates/index.d.ts.map +1 -1
  416. package/dist/stakingTemplates/index.js +6 -6
  417. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +8 -2
  418. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
  419. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +18 -16
  420. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +6 -1
  421. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
  422. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +8 -5
  423. package/dist/stakingTemplates/templates/common/getReward.d.ts +5 -0
  424. package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
  425. package/dist/stakingTemplates/templates/common/getReward.js +7 -4
  426. package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +15 -5
  427. package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
  428. package/dist/stakingTemplates/templates/common/getStakeEvent.js +21 -10
  429. package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +6 -0
  430. package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
  431. package/dist/stakingTemplates/templates/common/partialUnstake.js +10 -7
  432. package/dist/stakingTemplates/templates/common/unstake.d.ts +5 -0
  433. package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
  434. package/dist/stakingTemplates/templates/common/unstake.js +7 -4
  435. package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.d.ts → createPlatform.d.ts} +12 -1
  436. package/dist/stakingTemplates/templates/reputation/createPlatform.d.ts.map +1 -0
  437. package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.js → createPlatform.js} +22 -19
  438. package/dist/stakingTemplates/templates/reputation/createPool.d.ts +58 -0
  439. package/dist/stakingTemplates/templates/reputation/createPool.d.ts.map +1 -0
  440. package/dist/stakingTemplates/templates/reputation/{v0/createPool.js → createPool.js} +23 -20
  441. package/dist/stakingTemplates/templates/reputation/index.d.ts +10 -10
  442. package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
  443. package/dist/stakingTemplates/templates/reputation/index.js +24 -3
  444. package/dist/stakingTemplates/templates/reputation/restake.d.ts +32 -0
  445. package/dist/stakingTemplates/templates/reputation/restake.d.ts.map +1 -0
  446. package/dist/stakingTemplates/templates/reputation/{v0/restake.js → restake.js} +14 -11
  447. package/dist/stakingTemplates/templates/{rwa/v0/restake.d.ts → reputation/stake.d.ts} +8 -2
  448. package/dist/stakingTemplates/templates/reputation/stake.d.ts.map +1 -0
  449. package/dist/stakingTemplates/templates/reputation/{v0/stake.js → stake.js} +15 -16
  450. package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts +42 -0
  451. package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts.map +1 -0
  452. package/dist/stakingTemplates/templates/reputationLock/{v0/createPlatform.js → createPlatform.js} +22 -19
  453. package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts +76 -0
  454. package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts.map +1 -0
  455. package/dist/stakingTemplates/templates/reputationLock/{v0/createPool.js → createPool.js} +28 -25
  456. package/dist/stakingTemplates/templates/reputationLock/index.d.ts +10 -10
  457. package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
  458. package/dist/stakingTemplates/templates/reputationLock/index.js +24 -3
  459. package/dist/stakingTemplates/templates/reputationLock/restake.d.ts +34 -0
  460. package/dist/stakingTemplates/templates/reputationLock/restake.d.ts.map +1 -0
  461. package/dist/stakingTemplates/templates/reputationLock/{v0/restake.js → restake.js} +17 -14
  462. package/dist/stakingTemplates/templates/reputationLock/stake.d.ts +34 -0
  463. package/dist/stakingTemplates/templates/reputationLock/stake.d.ts.map +1 -0
  464. package/dist/stakingTemplates/templates/reputationLock/{v0/stake.js → stake.js} +19 -16
  465. package/dist/stakingTemplates/templates/{reputationLock/v0 → rwa}/createPlatform.d.ts +12 -1
  466. package/dist/stakingTemplates/templates/rwa/createPlatform.d.ts.map +1 -0
  467. package/dist/stakingTemplates/templates/rwa/{v0/createPlatform.js → createPlatform.js} +22 -19
  468. package/dist/stakingTemplates/templates/rwa/createPool.d.ts +56 -0
  469. package/dist/stakingTemplates/templates/rwa/createPool.d.ts.map +1 -0
  470. package/dist/stakingTemplates/templates/rwa/{v0/createPool.js → createPool.js} +21 -18
  471. package/dist/stakingTemplates/templates/{reputation/v0/stake.d.ts → rwa/distributeRewards.d.ts} +8 -2
  472. package/dist/stakingTemplates/templates/rwa/distributeRewards.d.ts.map +1 -0
  473. package/dist/stakingTemplates/templates/rwa/{v0/distributeRewards.js → distributeRewards.js} +15 -12
  474. package/dist/stakingTemplates/templates/rwa/index.d.ts +10 -10
  475. package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
  476. package/dist/stakingTemplates/templates/rwa/index.js +26 -3
  477. package/dist/stakingTemplates/templates/rwa/restake.d.ts +32 -0
  478. package/dist/stakingTemplates/templates/rwa/restake.d.ts.map +1 -0
  479. package/dist/stakingTemplates/templates/rwa/{v0/restake.js → restake.js} +14 -11
  480. package/dist/stakingTemplates/templates/rwa/stake.d.ts +32 -0
  481. package/dist/stakingTemplates/templates/rwa/stake.d.ts.map +1 -0
  482. package/dist/stakingTemplates/templates/rwa/{v0/stake.js → stake.js} +15 -16
  483. package/package.json +12 -12
  484. package/dist/fractions/sales/approveSale.route.d.ts.map +0 -1
  485. package/dist/fractions/sales/approveWrapper.route.d.ts.map +0 -1
  486. package/dist/fractions/sales/completeSale.route.d.ts.map +0 -1
  487. package/dist/fractions/sales/createFractions.route.d.ts.map +0 -1
  488. package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +0 -37
  489. package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +0 -1
  490. package/dist/fractions/sales/purchase.route.d.ts.map +0 -1
  491. package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +0 -1
  492. package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
  493. package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
  494. package/dist/fractions/sales/searchActivity.route.d.ts +0 -71
  495. package/dist/fractions/sales/searchActivity.route.d.ts.map +0 -1
  496. package/dist/fractions/sales/searchWithdrawal.route.d.ts +0 -56
  497. package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +0 -1
  498. package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
  499. package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +0 -1
  500. package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +0 -1
  501. package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +0 -1
  502. package/dist/fractions/sales/withdraw.route.d.ts.map +0 -1
  503. package/dist/fractions/sig/getNonce.route.d.ts.map +0 -1
  504. package/dist/fractions/statistics/networkStatistics.route.d.ts.map +0 -1
  505. package/dist/staking/platforms/getPlatform/index.d.ts +0 -23
  506. package/dist/staking/platforms/getPlatform/index.d.ts.map +0 -1
  507. package/dist/staking/platforms/getPlatform/index.js +0 -5
  508. package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -24
  509. package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
  510. package/dist/staking/platforms/searchPlatforms/index.d.ts +0 -29
  511. package/dist/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
  512. package/dist/staking/platforms/searchPlatforms/index.js +0 -5
  513. package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -30
  514. package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
  515. package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -45
  516. package/dist/staking/pools/getPool/index.d.ts +0 -25
  517. package/dist/staking/pools/getPool/index.d.ts.map +0 -1
  518. package/dist/staking/pools/getPool/index.js +0 -5
  519. package/dist/staking/pools/getPool/v0/getPool.d.ts +0 -26
  520. package/dist/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
  521. package/dist/staking/pools/searchPools/index.d.ts +0 -30
  522. package/dist/staking/pools/searchPools/index.d.ts.map +0 -1
  523. package/dist/staking/pools/searchPools/index.js +0 -5
  524. package/dist/staking/pools/searchPools/v0/searchPools.d.ts +0 -31
  525. package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
  526. package/dist/staking/pools/searchPools/v0/searchPools.js +0 -45
  527. package/dist/staking/roles/getRoles/index.d.ts +0 -23
  528. package/dist/staking/roles/getRoles/index.d.ts.map +0 -1
  529. package/dist/staking/roles/getRoles/index.js +0 -5
  530. package/dist/staking/roles/getRoles/v0/getRoles.d.ts +0 -23
  531. package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
  532. package/dist/staking/roles/grantRole/index.d.ts +0 -26
  533. package/dist/staking/roles/grantRole/index.d.ts.map +0 -1
  534. package/dist/staking/roles/grantRole/index.js +0 -5
  535. package/dist/staking/roles/grantRole/v0/grantRole.d.ts +0 -26
  536. package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
  537. package/dist/staking/roles/searchRoleEvents/index.d.ts +0 -33
  538. package/dist/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
  539. package/dist/staking/roles/searchRoleEvents/index.js +0 -5
  540. package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -34
  541. package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
  542. package/dist/staking/roles/searchRoles/index.d.ts +0 -32
  543. package/dist/staking/roles/searchRoles/index.d.ts.map +0 -1
  544. package/dist/staking/roles/searchRoles/index.js +0 -5
  545. package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -33
  546. package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
  547. package/dist/staking/stakes/getStake/index.d.ts +0 -30
  548. package/dist/staking/stakes/getStake/index.d.ts.map +0 -1
  549. package/dist/staking/stakes/getStake/index.js +0 -5
  550. package/dist/staking/stakes/getStake/v0/getStake.d.ts +0 -30
  551. package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
  552. package/dist/staking/stakes/searchStakeEvents/index.d.ts +0 -33
  553. package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
  554. package/dist/staking/stakes/searchStakeEvents/index.js +0 -5
  555. package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +0 -34
  556. package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
  557. package/dist/staking/stakes/searchStakes/index.d.ts +0 -37
  558. package/dist/staking/stakes/searchStakes/index.d.ts.map +0 -1
  559. package/dist/staking/stakes/searchStakes/index.js +0 -5
  560. package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -37
  561. package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
  562. package/dist/staking/stakes/searchStakes/v0/searchStakes.js +0 -47
  563. package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
  564. package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +0 -39
  565. package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +0 -1
  566. package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +0 -243
  567. package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +0 -1
  568. package/dist/stakingTemplates/templates/reputation/v0/index.js +0 -26
  569. package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +0 -26
  570. package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +0 -1
  571. package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +0 -1
  572. package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
  573. package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +0 -48
  574. package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
  575. package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +0 -254
  576. package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +0 -1
  577. package/dist/stakingTemplates/templates/reputationLock/v0/index.js +0 -26
  578. package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +0 -27
  579. package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +0 -1
  580. package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +0 -27
  581. package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +0 -1
  582. package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +0 -31
  583. package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
  584. package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +0 -38
  585. package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +0 -1
  586. package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +0 -26
  587. package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +0 -1
  588. package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +0 -266
  589. package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +0 -1
  590. package/dist/stakingTemplates/templates/rwa/v0/index.js +0 -28
  591. package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +0 -1
  592. package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +0 -26
  593. package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +0 -1
  594. /package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.js → receiveNonPurchasedWrappedAssets.js} +0 -0
  595. /package/dist/fractions/sales/vesting/{claimVestedTokens.route.js → claimVestedTokens.js} +0 -0
@@ -2,14 +2,31 @@ import { and, eq } from "@ponder/client";
2
2
  import { describeRoute } from "hono-openapi";
3
3
  import { resolver, validator } from "hono-openapi";
4
4
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
- import { createController } from "../../../../common/controller.js";
6
- import { HttpError } from "../../../../common/http-error.js";
7
- import { ErrorSchema, PlatformContractAddress, StakingChainId } from "../../../../common/index.js";
8
- import { indexerSchemas } from "../../../../common/indexer/schemas.js";
9
- import { createTag } from "../../../../common/tag.js";
10
- import { mapToPlatform, PlatformSchema } from "../../../../staking/platforms/common/platform.js";
5
+ import { createController } from "../../common/controller.js";
6
+ import { HttpError } from "../../common/http-error.js";
7
+ import { ErrorSchema, PlatformContractAddress, StakingChainId } from "../../common/index.js";
8
+ import { indexerSchemas } from "../../common/indexer/schemas.js";
9
+ import { createTag } from "../../common/tag.js";
10
+ import { mapToPlatform, PlatformSchema } from "../../staking/platforms/common/platform.js";
11
11
  const tag = createTag("Markets");
12
- export const GetPlatformV0 = createController({
12
+ export const GetPlatformQuery = z
13
+ .object({
14
+ chainId: StakingChainId.openapi({
15
+ param: {
16
+ name: "chainId",
17
+ in: "query",
18
+ },
19
+ }),
20
+ address: PlatformContractAddress.openapi({
21
+ param: {
22
+ name: "address",
23
+ in: "query",
24
+ },
25
+ }),
26
+ })
27
+ .openapi("GetPlatformQuery");
28
+ export const GetPlatformResponse = PlatformSchema;
29
+ export const GetPlatform = createController({
13
30
  build: (factory) => factory.createApp().get("/", describeRoute({
14
31
  summary: "Get platform",
15
32
  description: "Retrieve details of a specified platform",
@@ -19,7 +36,7 @@ export const GetPlatformV0 = createController({
19
36
  description: "Platform details",
20
37
  content: {
21
38
  "application/json": {
22
- schema: resolver(PlatformSchema),
39
+ schema: resolver(GetPlatformResponse),
23
40
  },
24
41
  },
25
42
  },
@@ -32,20 +49,7 @@ export const GetPlatformV0 = createController({
32
49
  },
33
50
  },
34
51
  },
35
- }), validator("query", z.object({
36
- chainId: StakingChainId.openapi({
37
- param: {
38
- name: "chainId",
39
- in: "query",
40
- },
41
- }),
42
- address: PlatformContractAddress.openapi({
43
- param: {
44
- name: "address",
45
- in: "query",
46
- },
47
- }),
48
- })), async (c) => {
52
+ }), validator("query", GetPlatformQuery), async (c) => {
49
53
  const { chainId, address } = c.req.valid("query");
50
54
  const [platform] = await c
51
55
  .get("indexerClient")
@@ -1,4 +1,4 @@
1
- export declare const PlatformsController: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1
+ export declare const PlatformsController: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
2
2
  "/": {
3
3
  $get: {
4
4
  input: {
@@ -19,19 +19,15 @@ export declare const PlatformsController: import("../../common/controller.js").I
19
19
  status: 200;
20
20
  };
21
21
  };
22
- }, "/v0">, "/get"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
22
+ }, "/get"> | import("hono/types").MergeSchemaPath<{
23
23
  "/": {
24
- $post: {
24
+ $get: {
25
25
  input: {
26
- json: {
27
- page: {
28
- skip: number;
29
- limit: number;
30
- };
31
- filter: {
32
- chainId?: "31337" | "11155111" | "84532" | undefined;
33
- owner?: string | undefined;
34
- };
26
+ query: {
27
+ skip: string | string[];
28
+ limit: string | string[];
29
+ chainId?: string | string[] | undefined;
30
+ owner?: string | string[] | undefined;
35
31
  };
36
32
  };
37
33
  output: {
@@ -43,8 +39,8 @@ export declare const PlatformsController: import("../../common/controller.js").I
43
39
  updatedAt: string & import("zod").$brand<"IsoDateString">;
44
40
  }[];
45
41
  outputFormat: "json";
46
- status: 200;
42
+ status: import("hono/utils/http-status").ContentfulStatusCode;
47
43
  };
48
44
  };
49
- }, "/v0">, "/search">, "/", "/">>;
45
+ }, "/search">, "/", "/">>;
50
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/platforms/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAM9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/platforms/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAG9B,CAAC"}
@@ -1,9 +1,6 @@
1
- import { GetPlatformController } from "./getPlatform/index.js";
2
- import { SearchPlatformsController } from "./searchPlatforms/index.js";
1
+ import { GetPlatform } from "./getPlatform.js";
2
+ import { SearchPlatforms } from "./searchPlatforms.js";
3
3
  import { createController } from "../../common/controller.js";
4
4
  export const PlatformsController = createController({
5
- build: (factory) => factory
6
- .createApp()
7
- .route("/get", GetPlatformController.build(factory))
8
- .route("/search", SearchPlatformsController.build(factory)),
5
+ build: (factory) => factory.createApp().route("/get", GetPlatform.build(factory)).route("/search", SearchPlatforms.build(factory)),
9
6
  });
@@ -0,0 +1,40 @@
1
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
+ export declare const SearchPlatformsResponse: z.ZodArray<z.ZodObject<{
3
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
4
+ transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
6
+ contractAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
+ adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
9
+ }, z.core.$strip>>;
10
+ export declare const SearchPlatformsQuery: z.ZodObject<{
11
+ skip: z.ZodNumber;
12
+ limit: z.ZodNumber;
13
+ chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
14
+ owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
15
+ }, z.core.$strip>;
16
+ export declare const SearchPlatforms: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
17
+ "/": {
18
+ $get: {
19
+ input: {
20
+ query: {
21
+ skip: string | string[];
22
+ limit: string | string[];
23
+ chainId?: string | string[] | undefined;
24
+ owner?: string | string[] | undefined;
25
+ };
26
+ };
27
+ output: {
28
+ chainId: "31337" | "11155111" | "84532";
29
+ transactionHash: `0x${string}`;
30
+ createdAt: string & z.core.$brand<"IsoDateString">;
31
+ contractAddress: `0x${string}`;
32
+ adminAddress: `0x${string}`;
33
+ updatedAt: string & z.core.$brand<"IsoDateString">;
34
+ }[];
35
+ outputFormat: "json";
36
+ status: import("hono/utils/http-status").ContentfulStatusCode;
37
+ };
38
+ };
39
+ }, "/", "/">>;
40
+ //# sourceMappingURL=searchPlatforms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPlatforms.d.ts","sourceRoot":"","sources":["../../../src/staking/platforms/searchPlatforms.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAWxD,eAAO,MAAM,uBAAuB;;;;;;;kBAA6D,CAAC;AAElG,eAAO,MAAM,oBAAoB;;;;;iBAOC,CAAC;AAEnC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;aA0C1B,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { and, eq } from "@ponder/client";
2
+ import { describeRoute } from "hono-openapi";
3
+ import { resolver, validator } from "hono-openapi";
4
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
+ import { createController } from "../../common/controller.js";
6
+ import { AddressSchema, StakingChainId } from "../../common/index.js";
7
+ import { indexerSchemas } from "../../common/indexer/schemas.js";
8
+ import { PageSchema } from "../../common/models/page.js";
9
+ import { createTag } from "../../common/tag.js";
10
+ import { mapToPlatform, PlatformSchema } from "../../staking/platforms/common/platform.js";
11
+ const tag = createTag("Markets");
12
+ export const SearchPlatformsResponse = z.array(PlatformSchema).openapi("SearchPlatformsResponse");
13
+ export const SearchPlatformsQuery = z
14
+ .object({
15
+ skip: PageSchema.shape.skip.openapi({ param: { name: "skip", in: "query" } }),
16
+ limit: PageSchema.shape.limit.openapi({ param: { name: "limit", in: "query" } }),
17
+ chainId: StakingChainId.optional().openapi({ param: { name: "chainId", in: "query" } }),
18
+ owner: AddressSchema.optional().openapi({ param: { name: "owner", in: "query" } }),
19
+ })
20
+ .openapi("SearchPlatformsQuery");
21
+ export const SearchPlatforms = createController({
22
+ build: (factory) => factory.createApp().get("/", describeRoute({
23
+ summary: "Search platforms",
24
+ description: "Retrieve a list of platforms with filtering and sorting",
25
+ tags: [tag.tag],
26
+ responses: {
27
+ 200: {
28
+ description: "Returns list of platforms by specified filter",
29
+ content: {
30
+ "application/json": {
31
+ schema: resolver(SearchPlatformsResponse),
32
+ },
33
+ },
34
+ },
35
+ },
36
+ }), validator("query", SearchPlatformsQuery), async (c) => {
37
+ const { skip, limit, chainId, owner } = c.req.valid("query");
38
+ const page = { skip, limit };
39
+ const filter = { chainId, owner };
40
+ const result = await c
41
+ .get("indexerClient")
42
+ .db.select()
43
+ .from(indexerSchemas.diamonds)
44
+ .limit(page.limit)
45
+ .offset(page.skip)
46
+ .orderBy(indexerSchemas.diamonds.createdAt)
47
+ .where(and(filter.chainId ? eq(indexerSchemas.diamonds.chainId, Number(filter.chainId)) : undefined, filter.owner ? eq(indexerSchemas.diamonds.adminAddress, filter.owner) : undefined));
48
+ return c.json(result.map((x) => mapToPlatform(x)));
49
+ }),
50
+ });
@@ -0,0 +1,40 @@
1
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
+ export declare const GetPoolQuery: z.ZodObject<{
3
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
4
+ poolId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
5
+ platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ }, z.core.$strip>;
7
+ export declare const GetPoolResponse: z.ZodObject<{
8
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
9
+ platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
10
+ rewardsHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
11
+ assetHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
12
+ txHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
13
+ poolId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
14
+ createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
15
+ }, z.core.$strip>;
16
+ export declare const GetPool: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
17
+ "/": {
18
+ $get: {
19
+ input: {
20
+ query: {
21
+ chainId: "31337" | "11155111" | "84532";
22
+ poolId: string;
23
+ platform: string;
24
+ };
25
+ };
26
+ output: {
27
+ chainId: "31337" | "11155111" | "84532";
28
+ platform: `0x${string}`;
29
+ rewardsHandler: `0x${string}`;
30
+ assetHandler: `0x${string}`;
31
+ txHash: `0x${string}`;
32
+ poolId: string & z.core.$brand<"Int256">;
33
+ createdAt: string & z.core.$brand<"IsoDateString">;
34
+ };
35
+ outputFormat: "json";
36
+ status: 200;
37
+ };
38
+ };
39
+ }, "/", "/">>;
40
+ //# sourceMappingURL=getPool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPool.d.ts","sourceRoot":"","sources":["../../../src/staking/pools/getPool.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAWxD,eAAO,MAAM,YAAY;;;;iBAqBC,CAAC;AAE3B,eAAO,MAAM,eAAe;;;;;;;;iBAAa,CAAC;AAE1C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;aA0DlB,CAAC"}
@@ -2,14 +2,37 @@ import { and, eq } from "@ponder/client";
2
2
  import { describeRoute } from "hono-openapi";
3
3
  import { resolver, validator } from "hono-openapi";
4
4
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
- import { createController } from "../../../../common/controller.js";
6
- import { HttpError } from "../../../../common/http-error.js";
7
- import { ErrorSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../../common/index.js";
8
- import { indexerSchemas } from "../../../../common/indexer/schemas.js";
9
- import { createTag } from "../../../../common/tag.js";
10
- import { mapToPool, PoolSchema } from "../../../../staking/pools/common/pool.js";
5
+ import { createController } from "../../common/controller.js";
6
+ import { HttpError } from "../../common/http-error.js";
7
+ import { ErrorSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../common/index.js";
8
+ import { indexerSchemas } from "../../common/indexer/schemas.js";
9
+ import { createTag } from "../../common/tag.js";
10
+ import { mapToPool, PoolSchema } from "../../staking/pools/common/pool.js";
11
11
  const tag = createTag("Pools");
12
- export const GetPoolV0 = createController({
12
+ export const GetPoolQuery = z
13
+ .object({
14
+ chainId: StakingChainId.openapi({
15
+ param: {
16
+ name: "chainId",
17
+ in: "query",
18
+ },
19
+ }),
20
+ poolId: PoolIdSchema.openapi({
21
+ param: {
22
+ name: "poolId",
23
+ in: "query",
24
+ },
25
+ }),
26
+ platform: PlatformContractAddress.openapi({
27
+ param: {
28
+ name: "platform",
29
+ in: "query",
30
+ },
31
+ }),
32
+ })
33
+ .openapi("GetPoolQuery");
34
+ export const GetPoolResponse = PoolSchema;
35
+ export const GetPool = createController({
13
36
  build: (factory) => factory.createApp().get("/", describeRoute({
14
37
  summary: "Get pool",
15
38
  description: "Retrieve details of a specified pool",
@@ -19,7 +42,7 @@ export const GetPoolV0 = createController({
19
42
  description: "List platforms",
20
43
  content: {
21
44
  "application/json": {
22
- schema: resolver(PoolSchema),
45
+ schema: resolver(GetPoolResponse),
23
46
  },
24
47
  },
25
48
  },
@@ -32,26 +55,7 @@ export const GetPoolV0 = createController({
32
55
  },
33
56
  },
34
57
  },
35
- }), validator("query", z.object({
36
- chainId: StakingChainId.openapi({
37
- param: {
38
- name: "chainId",
39
- in: "query",
40
- },
41
- }),
42
- poolId: PoolIdSchema.openapi({
43
- param: {
44
- name: "poolId",
45
- in: "query",
46
- },
47
- }),
48
- platform: PlatformContractAddress.openapi({
49
- param: {
50
- name: "platform",
51
- in: "query",
52
- },
53
- }),
54
- })), async (c) => {
58
+ }), validator("query", GetPoolQuery), async (c) => {
55
59
  const { chainId, platform, poolId } = c.req.valid("query");
56
60
  const [pool] = await c
57
61
  .get("indexerClient")
@@ -1,16 +1,12 @@
1
- export declare const PoolsController: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1
+ export declare const PoolsController: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
2
2
  "/": {
3
- $post: {
3
+ $get: {
4
4
  input: {
5
- json: {
6
- page: {
7
- skip: number;
8
- limit: number;
9
- };
10
- filter: {
11
- chainId?: "31337" | "11155111" | "84532" | undefined;
12
- platform?: string | undefined;
13
- };
5
+ query: {
6
+ skip: string | string[];
7
+ limit: string | string[];
8
+ chainId?: string | string[] | undefined;
9
+ platform?: string | string[] | undefined;
14
10
  };
15
11
  };
16
12
  output: {
@@ -26,7 +22,7 @@ export declare const PoolsController: import("../../common/controller.js").ICont
26
22
  status: 200;
27
23
  };
28
24
  };
29
- }, "/v0">, "/searchPools"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
25
+ }, "/searchPools"> | import("hono/types").MergeSchemaPath<{
30
26
  "/": {
31
27
  $get: {
32
28
  input: {
@@ -49,5 +45,5 @@ export declare const PoolsController: import("../../common/controller.js").ICont
49
45
  status: 200;
50
46
  };
51
47
  };
52
- }, "/v0">, "/getPool">, "/", "/">>;
48
+ }, "/getPool">, "/", "/">>;
53
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/pools/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAM1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/pools/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAG1B,CAAC"}
@@ -1,9 +1,6 @@
1
- import { GetPoolController } from "./getPool/index.js";
2
- import { SearchPoolsController } from "./searchPools/index.js";
1
+ import { GetPool } from "./getPool.js";
2
+ import { SearchPools } from "./searchPools.js";
3
3
  import { createController } from "../../common/controller.js";
4
4
  export const PoolsController = createController({
5
- build: (factory) => factory
6
- .createApp()
7
- .route("/searchPools", SearchPoolsController.build(factory))
8
- .route("/getPool", GetPoolController.build(factory)),
5
+ build: (factory) => factory.createApp().route("/searchPools", SearchPools.build(factory)).route("/getPool", GetPool.build(factory)),
9
6
  });
@@ -0,0 +1,42 @@
1
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
+ export declare const SearchPoolsResponse: z.ZodArray<z.ZodObject<{
3
+ chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
4
+ platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ rewardsHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ assetHandler: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
+ txHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ poolId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
9
+ createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
10
+ }, z.core.$strip>>;
11
+ export declare const SearchPoolsQuery: z.ZodObject<{
12
+ skip: z.ZodNumber;
13
+ limit: z.ZodNumber;
14
+ chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
15
+ platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
16
+ }, z.core.$strip>;
17
+ export declare const SearchPools: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
18
+ "/": {
19
+ $get: {
20
+ input: {
21
+ query: {
22
+ skip: string | string[];
23
+ limit: string | string[];
24
+ chainId?: string | string[] | undefined;
25
+ platform?: string | string[] | undefined;
26
+ };
27
+ };
28
+ output: {
29
+ chainId: "31337" | "11155111" | "84532";
30
+ platform: `0x${string}`;
31
+ rewardsHandler: `0x${string}`;
32
+ assetHandler: `0x${string}`;
33
+ txHash: `0x${string}`;
34
+ poolId: string & z.core.$brand<"Int256">;
35
+ createdAt: string & z.core.$brand<"IsoDateString">;
36
+ }[];
37
+ outputFormat: "json";
38
+ status: 200;
39
+ };
40
+ };
41
+ }, "/", "/">>;
42
+ //# sourceMappingURL=searchPools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPools.d.ts","sourceRoot":"","sources":["../../../src/staking/pools/searchPools.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAWxD,eAAO,MAAM,mBAAmB;;;;;;;;kBAAqD,CAAC;AAEtF,eAAO,MAAM,gBAAgB;;;;;iBAOC,CAAC;AAE/B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;aAyCtB,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { and, eq } from "@ponder/client";
2
+ import { describeRoute } from "hono-openapi";
3
+ import { resolver, validator } from "hono-openapi";
4
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
+ import { createController } from "../../common/controller.js";
6
+ import { PlatformContractAddress, StakingChainId } from "../../common/index.js";
7
+ import { indexerSchemas } from "../../common/indexer/schemas.js";
8
+ import { PageSchema } from "../../common/models/page.js";
9
+ import { createTag } from "../../common/tag.js";
10
+ import { mapToPool, PoolSchema } from "../../staking/pools/common/pool.js";
11
+ const tag = createTag("Pools");
12
+ export const SearchPoolsResponse = z.array(PoolSchema).openapi("SearchPoolsResponse");
13
+ export const SearchPoolsQuery = z
14
+ .object({
15
+ skip: PageSchema.shape.skip.openapi({ param: { name: "skip", in: "query" } }),
16
+ limit: PageSchema.shape.limit.openapi({ param: { name: "limit", in: "query" } }),
17
+ chainId: StakingChainId.optional().openapi({ param: { name: "chainId", in: "query" } }),
18
+ platform: PlatformContractAddress.optional().openapi({ param: { name: "platform", in: "query" } }),
19
+ })
20
+ .openapi("SearchPoolsQuery");
21
+ export const SearchPools = createController({
22
+ build: (factory) => factory.createApp().get("/", describeRoute({
23
+ summary: "Search pools",
24
+ description: "Retrieve a list of pools with filtering and sorting",
25
+ tags: [tag.tag],
26
+ responses: {
27
+ 200: {
28
+ description: "Returns list of pools by specified filter",
29
+ content: {
30
+ "application/json": {
31
+ schema: resolver(SearchPoolsResponse),
32
+ },
33
+ },
34
+ },
35
+ },
36
+ }), validator("query", SearchPoolsQuery), async (c) => {
37
+ const { skip, limit, chainId, platform } = c.req.valid("query");
38
+ const page = { skip, limit };
39
+ const filter = { chainId, platform };
40
+ const result = await c
41
+ .get("indexerClient")
42
+ .db.select()
43
+ .from(indexerSchemas.pools)
44
+ .limit(page.limit)
45
+ .offset(page.skip)
46
+ .orderBy(indexerSchemas.pools.createdAt)
47
+ .where(and(filter.chainId ? eq(indexerSchemas.pools.chainId, Number(filter.chainId)) : undefined, filter.platform ? eq(indexerSchemas.pools.diamondAddress, filter.platform) : undefined));
48
+ return c.json(result.map((x) => mapToPool(x)), 200);
49
+ }),
50
+ });
@@ -0,0 +1,28 @@
1
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
+ export declare const GetRolesResponse: z.ZodArray<z.ZodObject<{
3
+ name: z.ZodString;
4
+ value: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ }, z.core.$strip>>;
6
+ export declare const GetRoles: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
7
+ "/": {
8
+ $get: {
9
+ input: {};
10
+ output: ({
11
+ name: string;
12
+ value: `0x${string}`;
13
+ } | {
14
+ name: string;
15
+ value: `0x${string}`;
16
+ } | {
17
+ name: string;
18
+ value: `0x${string}`;
19
+ } | {
20
+ name: string;
21
+ value: `0x${string}`;
22
+ })[];
23
+ outputFormat: "json";
24
+ status: 200;
25
+ };
26
+ };
27
+ }, "/", "/">>;
28
+ //# sourceMappingURL=getRoles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoles.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/getRoles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAQxD,eAAO,MAAM,gBAAgB;;;kBAAkD,CAAC;AAEhF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;aAqBnB,CAAC"}
@@ -2,11 +2,12 @@ import { describeRoute } from "hono-openapi";
2
2
  import { resolver } from "hono-openapi";
3
3
  import { getStakingRole, StakingRole } from "@evergonlabs/tmi-protocol-staking-sdk";
4
4
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
5
- import { createController } from "../../../../common/controller.js";
6
- import { createTag } from "../../../../common/tag.js";
7
- import { RoleSchema } from "../../../../staking/roles/common/role.js";
5
+ import { createController } from "../../common/controller.js";
6
+ import { createTag } from "../../common/tag.js";
7
+ import { RoleSchema } from "../../staking/roles/common/role.js";
8
8
  const tag = createTag("Roles");
9
- export const GetRolesV0 = createController({
9
+ export const GetRolesResponse = z.array(RoleSchema).openapi("GetRolesResponse");
10
+ export const GetRoles = createController({
10
11
  build: (factory) => factory.createApp().get("/", describeRoute({
11
12
  summary: "Get roles",
12
13
  description: "Retrieve all available (pre-defined) roles",
@@ -16,7 +17,7 @@ export const GetRolesV0 = createController({
16
17
  description: "List of available roles",
17
18
  content: {
18
19
  "application/json": {
19
- schema: resolver(z.array(RoleSchema)),
20
+ schema: resolver(GetRolesResponse),
20
21
  },
21
22
  },
22
23
  },
@@ -0,0 +1,33 @@
1
+ import { StakingRole } from "@evergonlabs/tmi-protocol-staking-sdk";
2
+ import { z } from "@evergonlabs/tmi-protocol-utils/zod";
3
+ export declare const GrantRoleRequest: z.ZodObject<{
4
+ platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ addresses: z.ZodArray<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
6
+ role: z.ZodUnion<readonly [z.ZodEnum<typeof StakingRole>, z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>]>;
7
+ }, z.core.$strip>;
8
+ export declare const GrantRole: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
9
+ "/": {
10
+ $post: {
11
+ input: {
12
+ json: {
13
+ platform: string;
14
+ addresses: string[];
15
+ role: string;
16
+ };
17
+ };
18
+ output: {
19
+ data: `0x${string}`;
20
+ to: `0x${string}`;
21
+ details: {
22
+ functionName: string;
23
+ address: `0x${string}`;
24
+ abi: any[];
25
+ args: any[];
26
+ };
27
+ };
28
+ outputFormat: "json";
29
+ status: import("hono/utils/http-status").ContentfulStatusCode;
30
+ };
31
+ };
32
+ }, "/", "/">>;
33
+ //# sourceMappingURL=grantRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/staking/roles/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AASxD,eAAO,MAAM,gBAAgB;;;;iBAWC,CAAC;AAE/B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;aA8BpB,CAAC"}