@evergonlabs/tmi-protocol-api 0.1.2 → 0.1.4

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 (510) hide show
  1. package/dist/app.d.ts +42 -1
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +60 -1
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/common/abis/erc20Whitelisted.d.ts +14 -7
  6. package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -1
  7. package/dist/common/abis/erc20Whitelisted.js +8 -3
  8. package/dist/common/indexer/client.d.ts +140 -0
  9. package/dist/common/indexer/client.d.ts.map +1 -1
  10. package/dist/common/indexer/index.d.ts +140 -0
  11. package/dist/common/indexer/index.d.ts.map +1 -1
  12. package/dist/common/indexer/schemas.d.ts +70 -0
  13. package/dist/common/indexer/schemas.d.ts.map +1 -1
  14. package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
  15. package/dist/fractions/activity/searchActivity.route.js +1 -3
  16. package/dist/fractions/index.d.ts +41 -0
  17. package/dist/fractions/index.d.ts.map +1 -1
  18. package/dist/fractions/index.js +4 -0
  19. package/dist/fractions/purchase/v0/statistics.route.d.ts +65 -0
  20. package/dist/fractions/purchase/v0/statistics.route.d.ts.map +1 -0
  21. package/dist/fractions/purchase/v0/statistics.route.js +52 -0
  22. package/dist/fractions/sales/searchActivity.route.js +2 -2
  23. package/dist/{src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts → fractions/sales/searchClaim.route.d.ts} +14 -15
  24. package/dist/fractions/sales/searchClaim.route.d.ts.map +1 -0
  25. package/dist/fractions/sales/searchClaim.route.js +47 -0
  26. package/dist/fractions/sales/searchPurchase.route.d.ts +120 -0
  27. package/dist/fractions/sales/searchPurchase.route.d.ts.map +1 -0
  28. package/dist/fractions/sales/searchPurchase.route.js +70 -0
  29. package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +6 -6
  30. package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +92 -0
  31. package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +1 -0
  32. package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +89 -0
  33. package/dist/general/balanceClient.d.ts +16 -41
  34. package/dist/general/balanceClient.d.ts.map +1 -1
  35. package/dist/general/balanceClient.js +8 -19
  36. package/dist/general/index.d.ts +1 -1
  37. package/dist/general/searchBalances.d.ts +3 -3
  38. package/dist/general/searchBalances.js +2 -2
  39. package/dist/general/utils/tokenBalance/tokenBalance.d.ts +28 -0
  40. package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -0
  41. package/dist/general/utils/tokenBalance/tokenBalance.js +20 -0
  42. package/package.json +8 -8
  43. package/dist/package.json +0 -78
  44. package/dist/src/app.d.ts +0 -2194
  45. package/dist/src/app.d.ts.map +0 -1
  46. package/dist/src/app.js +0 -18
  47. package/dist/src/client.d.ts +0 -2690
  48. package/dist/src/client.d.ts.map +0 -1
  49. package/dist/src/client.js +0 -4
  50. package/dist/src/common/abis/erc20Whitelisted.d.ts +0 -4
  51. package/dist/src/common/abis/erc20Whitelisted.d.ts.map +0 -1
  52. package/dist/src/common/abis/erc20Whitelisted.js +0 -4
  53. package/dist/src/common/app.d.ts +0 -9
  54. package/dist/src/common/app.d.ts.map +0 -1
  55. package/dist/src/common/app.js +0 -3
  56. package/dist/src/common/blockchain.d.ts +0 -9528
  57. package/dist/src/common/blockchain.d.ts.map +0 -1
  58. package/dist/src/common/blockchain.js +0 -40
  59. package/dist/src/common/config.d.ts +0 -21
  60. package/dist/src/common/config.d.ts.map +0 -1
  61. package/dist/src/common/config.js +0 -33
  62. package/dist/src/common/http-error.d.ts +0 -7
  63. package/dist/src/common/http-error.d.ts.map +0 -1
  64. package/dist/src/common/http-error.js +0 -7
  65. package/dist/src/common/index.d.ts +0 -2
  66. package/dist/src/common/index.d.ts.map +0 -1
  67. package/dist/src/common/index.js +0 -1
  68. package/dist/src/common/indexer/client.d.ts +0 -1191
  69. package/dist/src/common/indexer/client.d.ts.map +0 -1
  70. package/dist/src/common/indexer/client.js +0 -7
  71. package/dist/src/common/indexer/index.d.ts +0 -1191
  72. package/dist/src/common/indexer/index.d.ts.map +0 -1
  73. package/dist/src/common/indexer/index.js +0 -3
  74. package/dist/src/common/indexer/schemas.d.ts +0 -1191
  75. package/dist/src/common/indexer/schemas.d.ts.map +0 -1
  76. package/dist/src/common/indexer/schemas.js +0 -14
  77. package/dist/src/common/models/chainId.d.ts +0 -5
  78. package/dist/src/common/models/chainId.d.ts.map +0 -1
  79. package/dist/src/common/models/chainId.js +0 -23
  80. package/dist/src/common/models/date.d.ts +0 -3
  81. package/dist/src/common/models/date.d.ts.map +0 -1
  82. package/dist/src/common/models/date.js +0 -5
  83. package/dist/src/common/models/erc721.d.ts +0 -15
  84. package/dist/src/common/models/erc721.d.ts.map +0 -1
  85. package/dist/src/common/models/erc721.js +0 -21
  86. package/dist/src/common/models/index.d.ts +0 -7
  87. package/dist/src/common/models/index.d.ts.map +0 -1
  88. package/dist/src/common/models/index.js +0 -6
  89. package/dist/src/common/models/page.d.ts +0 -12
  90. package/dist/src/common/models/page.d.ts.map +0 -1
  91. package/dist/src/common/models/page.js +0 -15
  92. package/dist/src/common/models/percent.d.ts +0 -3
  93. package/dist/src/common/models/percent.d.ts.map +0 -1
  94. package/dist/src/common/models/percent.js +0 -6
  95. package/dist/src/common/models/platform.d.ts +0 -4
  96. package/dist/src/common/models/platform.d.ts.map +0 -1
  97. package/dist/src/common/models/platform.js +0 -13
  98. package/dist/src/common/models/routes.d.ts +0 -16
  99. package/dist/src/common/models/routes.d.ts.map +0 -1
  100. package/dist/src/common/models/routes.js +0 -13
  101. package/dist/src/common/models/saleId.d.ts +0 -12
  102. package/dist/src/common/models/saleId.d.ts.map +0 -1
  103. package/dist/src/common/models/saleId.js +0 -6
  104. package/dist/src/common/models/transaction.d.ts +0 -90
  105. package/dist/src/common/models/transaction.d.ts.map +0 -1
  106. package/dist/src/common/models/transaction.js +0 -57
  107. package/dist/src/common/models/viem.d.ts +0 -4
  108. package/dist/src/common/models/viem.d.ts.map +0 -1
  109. package/dist/src/common/models/viem.js +0 -15
  110. package/dist/src/common/openapi.d.ts +0 -4
  111. package/dist/src/common/openapi.d.ts.map +0 -1
  112. package/dist/src/common/openapi.js +0 -40
  113. package/dist/src/common/tag.d.ts +0 -7
  114. package/dist/src/common/tag.d.ts.map +0 -1
  115. package/dist/src/common/tag.js +0 -5
  116. package/dist/src/common/version.d.ts +0 -2
  117. package/dist/src/common/version.d.ts.map +0 -1
  118. package/dist/src/common/version.js +0 -2
  119. package/dist/src/common/zod.d.ts +0 -3
  120. package/dist/src/common/zod.d.ts.map +0 -1
  121. package/dist/src/common/zod.js +0 -2
  122. package/dist/src/error.d.ts +0 -3
  123. package/dist/src/error.d.ts.map +0 -1
  124. package/dist/src/error.js +0 -16
  125. package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +0 -68
  126. package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +0 -1
  127. package/dist/src/fractions/approveSale/v0/approveSale.route.js +0 -31
  128. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +0 -203
  129. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +0 -1
  130. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +0 -84
  131. package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +0 -68
  132. package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +0 -1
  133. package/dist/src/fractions/completeSale/v0/completeSale.route.js +0 -31
  134. package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +0 -305
  135. package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +0 -1
  136. package/dist/src/fractions/createFractions/v0/createFractions.route.js +0 -61
  137. package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +0 -416
  138. package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +0 -1
  139. package/dist/src/fractions/createFractions/v0/createFractions.schema.js +0 -67
  140. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +0 -51
  141. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +0 -1
  142. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.js +0 -59
  143. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +0 -297
  144. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
  145. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +0 -98
  146. package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts +0 -96
  147. package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
  148. package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +0 -21
  149. package/dist/src/fractions/gating/index.d.ts +0 -2
  150. package/dist/src/fractions/gating/index.d.ts.map +0 -1
  151. package/dist/src/fractions/gating/index.js +0 -0
  152. package/dist/src/fractions/gating/v0/getAuthData.d.ts +0 -86
  153. package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +0 -1
  154. package/dist/src/fractions/gating/v0/getAuthData.js +0 -48
  155. package/dist/src/fractions/gating/v0/getNonce.route.d.ts +0 -54
  156. package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +0 -1
  157. package/dist/src/fractions/gating/v0/getNonce.route.js +0 -40
  158. package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts +0 -65
  159. package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +0 -1
  160. package/dist/src/fractions/grantRole/v0/grantRole.route.js +0 -31
  161. package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +0 -26
  162. package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +0 -1
  163. package/dist/src/fractions/grantRole/v0/grantRole.schema.js +0 -14
  164. package/dist/src/fractions/index.d.ts +0 -968
  165. package/dist/src/fractions/index.d.ts.map +0 -1
  166. package/dist/src/fractions/index.js +0 -91
  167. package/dist/src/fractions/markets/common/platform.d.ts +0 -26
  168. package/dist/src/fractions/markets/common/platform.d.ts.map +0 -1
  169. package/dist/src/fractions/markets/common/platform.js +0 -26
  170. package/dist/src/fractions/markets/getDeployEvent.d.ts +0 -42
  171. package/dist/src/fractions/markets/getDeployEvent.d.ts.map +0 -1
  172. package/dist/src/fractions/markets/getDeployEvent.js +0 -47
  173. package/dist/src/fractions/markets/getMarket/index.d.ts +0 -40
  174. package/dist/src/fractions/markets/getMarket/index.d.ts.map +0 -1
  175. package/dist/src/fractions/markets/getMarket/index.js +0 -4
  176. package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +0 -64
  177. package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +0 -1
  178. package/dist/src/fractions/markets/getMarket/v0/getMarket.js +0 -63
  179. package/dist/src/fractions/markets/index.d.ts +0 -84
  180. package/dist/src/fractions/markets/index.d.ts.map +0 -1
  181. package/dist/src/fractions/markets/index.js +0 -12
  182. package/dist/src/fractions/markets/searchMarkets/index.d.ts +0 -32
  183. package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +0 -1
  184. package/dist/src/fractions/markets/searchMarkets/index.js +0 -4
  185. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +0 -76
  186. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +0 -1
  187. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +0 -42
  188. package/dist/src/fractions/purchase/v0/purchase.route.d.ts +0 -89
  189. package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +0 -1
  190. package/dist/src/fractions/purchase/v0/purchase.route.js +0 -41
  191. package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +0 -28
  192. package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +0 -1
  193. package/dist/src/fractions/roles/getRoles/v0/getRoles.js +0 -41
  194. package/dist/src/fractions/sales/getVaultAddress.d.ts +0 -52
  195. package/dist/src/fractions/sales/getVaultAddress.d.ts.map +0 -1
  196. package/dist/src/fractions/sales/getVaultAddress.js +0 -61
  197. package/dist/src/fractions/sales/getWithdrawEvent.d.ts +0 -42
  198. package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +0 -1
  199. package/dist/src/fractions/sales/getWithdrawEvent.js +0 -52
  200. package/dist/src/fractions/sales/index.d.ts +0 -10
  201. package/dist/src/fractions/sales/index.d.ts.map +0 -1
  202. package/dist/src/fractions/sales/index.js +0 -10
  203. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +0 -144
  204. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
  205. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +0 -59
  206. package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +0 -57
  207. package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
  208. package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +0 -27
  209. package/dist/src/fractions/sales/recoverFractions.d.ts +0 -108
  210. package/dist/src/fractions/sales/recoverFractions.d.ts.map +0 -1
  211. package/dist/src/fractions/sales/recoverFractions.js +0 -45
  212. package/dist/src/fractions/sales/rejectFractions.d.ts +0 -80
  213. package/dist/src/fractions/sales/rejectFractions.d.ts.map +0 -1
  214. package/dist/src/fractions/sales/rejectFractions.js +0 -39
  215. package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +0 -2
  216. package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +0 -1
  217. package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
  218. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +0 -89
  219. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +0 -1
  220. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +0 -82
  221. package/dist/src/fractions/sales/setFeeCapLimit.d.ts +0 -75
  222. package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +0 -1
  223. package/dist/src/fractions/sales/setFeeCapLimit.js +0 -32
  224. package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts +0 -68
  225. package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
  226. package/dist/src/fractions/sales/unlockWrappedAssets.route.js +0 -31
  227. package/dist/src/fractions/sales/vesting/index.d.ts +0 -2
  228. package/dist/src/fractions/sales/vesting/index.d.ts.map +0 -1
  229. package/dist/src/fractions/sales/vesting/index.js +0 -0
  230. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +0 -94
  231. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +0 -1
  232. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +0 -41
  233. package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +0 -87
  234. package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +0 -1
  235. package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +0 -40
  236. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +0 -48
  237. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +0 -1
  238. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +0 -58
  239. package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts +0 -68
  240. package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +0 -1
  241. package/dist/src/fractions/withdraw/v0/withdraw.route.js +0 -31
  242. package/dist/src/general/balance-client.d.ts +0 -13
  243. package/dist/src/general/balance-client.d.ts.map +0 -1
  244. package/dist/src/general/balance-client.js +0 -26
  245. package/dist/src/general/common.d.ts +0 -94
  246. package/dist/src/general/common.d.ts.map +0 -1
  247. package/dist/src/general/common.js +0 -35
  248. package/dist/src/general/estimateGas.d.ts +0 -52
  249. package/dist/src/general/estimateGas.d.ts.map +0 -1
  250. package/dist/src/general/estimateGas.js +0 -64
  251. package/dist/src/general/getBalance.d.ts +0 -44
  252. package/dist/src/general/getBalance.d.ts.map +0 -1
  253. package/dist/src/general/getBalance.js +0 -43
  254. package/dist/src/general/getBalancesBatch.d.ts +0 -59
  255. package/dist/src/general/getBalancesBatch.d.ts.map +0 -1
  256. package/dist/src/general/getBalancesBatch.js +0 -34
  257. package/dist/src/general/index.d.ts +0 -100
  258. package/dist/src/general/index.d.ts.map +0 -1
  259. package/dist/src/general/index.js +0 -20
  260. package/dist/src/general/searchBalances.d.ts +0 -78
  261. package/dist/src/general/searchBalances.d.ts.map +0 -1
  262. package/dist/src/general/searchBalances.js +0 -49
  263. package/dist/src/issuance/approve.d.ts +0 -75
  264. package/dist/src/issuance/approve.d.ts.map +0 -1
  265. package/dist/src/issuance/approve.js +0 -36
  266. package/dist/src/issuance/burn.d.ts +0 -75
  267. package/dist/src/issuance/burn.d.ts.map +0 -1
  268. package/dist/src/issuance/burn.js +0 -36
  269. package/dist/src/issuance/deploy.d.ts +0 -88
  270. package/dist/src/issuance/deploy.d.ts.map +0 -1
  271. package/dist/src/issuance/deploy.js +0 -91
  272. package/dist/src/issuance/grantRole.d.ts +0 -78
  273. package/dist/src/issuance/grantRole.d.ts.map +0 -1
  274. package/dist/src/issuance/grantRole.js +0 -50
  275. package/dist/src/issuance/index.d.ts +0 -165
  276. package/dist/src/issuance/index.d.ts.map +0 -1
  277. package/dist/src/issuance/index.js +0 -23
  278. package/dist/src/issuance/mint.d.ts +0 -75
  279. package/dist/src/issuance/mint.d.ts.map +0 -1
  280. package/dist/src/issuance/mint.js +0 -36
  281. package/dist/src/issuance/transfer.d.ts +0 -75
  282. package/dist/src/issuance/transfer.d.ts.map +0 -1
  283. package/dist/src/issuance/transfer.js +0 -36
  284. package/dist/src/serve.d.ts +0 -2
  285. package/dist/src/serve.d.ts.map +0 -1
  286. package/dist/src/serve.js +0 -33
  287. package/dist/src/staking/index.d.ts +0 -242
  288. package/dist/src/staking/index.d.ts.map +0 -1
  289. package/dist/src/staking/index.js +0 -20
  290. package/dist/src/staking/platforms/common/platform.d.ts +0 -26
  291. package/dist/src/staking/platforms/common/platform.d.ts.map +0 -1
  292. package/dist/src/staking/platforms/common/platform.js +0 -26
  293. package/dist/src/staking/platforms/common/platformNotFound.d.ts +0 -9
  294. package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +0 -1
  295. package/dist/src/staking/platforms/common/platformNotFound.js +0 -13
  296. package/dist/src/staking/platforms/getPlatform/index.d.ts +0 -26
  297. package/dist/src/staking/platforms/getPlatform/index.d.ts.map +0 -1
  298. package/dist/src/staking/platforms/getPlatform/index.js +0 -4
  299. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -52
  300. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
  301. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +0 -58
  302. package/dist/src/staking/platforms/index.d.ts +0 -52
  303. package/dist/src/staking/platforms/index.d.ts.map +0 -1
  304. package/dist/src/staking/platforms/index.js +0 -10
  305. package/dist/src/staking/platforms/searchPlatforms/index.d.ts +0 -32
  306. package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
  307. package/dist/src/staking/platforms/searchPlatforms/index.js +0 -4
  308. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -76
  309. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
  310. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -42
  311. package/dist/src/staking/pools/common/pool.d.ts +0 -29
  312. package/dist/src/staking/pools/common/pool.d.ts.map +0 -1
  313. package/dist/src/staking/pools/common/pool.js +0 -28
  314. package/dist/src/staking/pools/common/poolNotFound.d.ts +0 -10
  315. package/dist/src/staking/pools/common/poolNotFound.d.ts.map +0 -1
  316. package/dist/src/staking/pools/common/poolNotFound.js +0 -14
  317. package/dist/src/staking/pools/getPool/index.d.ts +0 -20
  318. package/dist/src/staking/pools/getPool/index.d.ts.map +0 -1
  319. package/dist/src/staking/pools/getPool/index.js +0 -4
  320. package/dist/src/staking/pools/getPool/v0/getPool.d.ts +0 -35
  321. package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
  322. package/dist/src/staking/pools/getPool/v0/getPool.js +0 -64
  323. package/dist/src/staking/pools/index.d.ts +0 -39
  324. package/dist/src/staking/pools/index.d.ts.map +0 -1
  325. package/dist/src/staking/pools/index.js +0 -10
  326. package/dist/src/staking/pools/searchPools/index.d.ts +0 -25
  327. package/dist/src/staking/pools/searchPools/index.d.ts.map +0 -1
  328. package/dist/src/staking/pools/searchPools/index.js +0 -4
  329. package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +0 -55
  330. package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
  331. package/dist/src/staking/pools/searchPools/v0/searchPools.js +0 -42
  332. package/dist/src/staking/roles/common/role.d.ts +0 -13
  333. package/dist/src/staking/roles/common/role.d.ts.map +0 -1
  334. package/dist/src/staking/roles/common/role.js +0 -18
  335. package/dist/src/staking/roles/common/roleAssignment.d.ts +0 -27
  336. package/dist/src/staking/roles/common/roleAssignment.d.ts.map +0 -1
  337. package/dist/src/staking/roles/common/roleAssignment.js +0 -21
  338. package/dist/src/staking/roles/common/roleEvent.d.ts +0 -30
  339. package/dist/src/staking/roles/common/roleEvent.d.ts.map +0 -1
  340. package/dist/src/staking/roles/common/roleEvent.js +0 -23
  341. package/dist/src/staking/roles/getRoles/index.d.ts +0 -26
  342. package/dist/src/staking/roles/getRoles/index.d.ts.map +0 -1
  343. package/dist/src/staking/roles/getRoles/index.js +0 -4
  344. package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +0 -29
  345. package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
  346. package/dist/src/staking/roles/getRoles/v0/getRoles.js +0 -41
  347. package/dist/src/staking/roles/grantRole/index.d.ts +0 -29
  348. package/dist/src/staking/roles/grantRole/index.d.ts.map +0 -1
  349. package/dist/src/staking/roles/grantRole/index.js +0 -4
  350. package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +0 -63
  351. package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
  352. package/dist/src/staking/roles/grantRole/v0/grantRole.js +0 -40
  353. package/dist/src/staking/roles/index.d.ts +0 -93
  354. package/dist/src/staking/roles/index.d.ts.map +0 -1
  355. package/dist/src/staking/roles/index.js +0 -14
  356. package/dist/src/staking/roles/searchRoleEvents/index.d.ts +0 -27
  357. package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
  358. package/dist/src/staking/roles/searchRoleEvents/index.js +0 -4
  359. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -63
  360. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
  361. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +0 -58
  362. package/dist/src/staking/roles/searchRoles/index.d.ts +0 -27
  363. package/dist/src/staking/roles/searchRoles/index.d.ts.map +0 -1
  364. package/dist/src/staking/roles/searchRoles/index.js +0 -4
  365. package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -63
  366. package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
  367. package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +0 -56
  368. package/dist/src/staking/stakes/common/stake.d.ts +0 -44
  369. package/dist/src/staking/stakes/common/stake.d.ts.map +0 -1
  370. package/dist/src/staking/stakes/common/stake.js +0 -45
  371. package/dist/src/staking/stakes/common/stakeEvent.d.ts +0 -30
  372. package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +0 -1
  373. package/dist/src/staking/stakes/common/stakeEvent.js +0 -24
  374. package/dist/src/staking/stakes/common/stakeNotFound.d.ts +0 -9
  375. package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +0 -1
  376. package/dist/src/staking/stakes/common/stakeNotFound.js +0 -13
  377. package/dist/src/staking/stakes/getStake/index.d.ts +0 -20
  378. package/dist/src/staking/stakes/getStake/index.d.ts.map +0 -1
  379. package/dist/src/staking/stakes/getStake/index.js +0 -4
  380. package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +0 -35
  381. package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
  382. package/dist/src/staking/stakes/getStake/v0/getStake.js +0 -64
  383. package/dist/src/staking/stakes/index.d.ts +0 -63
  384. package/dist/src/staking/stakes/index.d.ts.map +0 -1
  385. package/dist/src/staking/stakes/index.js +0 -12
  386. package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +0 -27
  387. package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
  388. package/dist/src/staking/stakes/searchStakeEvents/index.js +0 -4
  389. package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
  390. package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +0 -59
  391. package/dist/src/staking/stakes/searchStakes/index.d.ts +0 -27
  392. package/dist/src/staking/stakes/searchStakes/index.d.ts.map +0 -1
  393. package/dist/src/staking/stakes/searchStakes/index.js +0 -4
  394. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -63
  395. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
  396. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +0 -61
  397. package/dist/src/staking-templates/index.d.ts +0 -732
  398. package/dist/src/staking-templates/index.d.ts.map +0 -1
  399. package/dist/src/staking-templates/index.js +0 -18
  400. package/dist/src/staking-templates/templates/common/amount.d.ts +0 -13
  401. package/dist/src/staking-templates/templates/common/amount.d.ts.map +0 -1
  402. package/dist/src/staking-templates/templates/common/amount.js +0 -17
  403. package/dist/src/staking-templates/templates/common/amountMult.d.ts +0 -3
  404. package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +0 -1
  405. package/dist/src/staking-templates/templates/common/amountMult.js +0 -23
  406. package/dist/src/staking-templates/templates/common/erc20Input.d.ts +0 -12
  407. package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +0 -1
  408. package/dist/src/staking-templates/templates/common/erc20Input.js +0 -16
  409. package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +0 -12
  410. package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +0 -1
  411. package/dist/src/staking-templates/templates/common/erc20Reward.js +0 -16
  412. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +0 -31
  413. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +0 -1
  414. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +0 -47
  415. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +0 -40
  416. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +0 -1
  417. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +0 -46
  418. package/dist/src/staking-templates/templates/common/getReward.d.ts +0 -58
  419. package/dist/src/staking-templates/templates/common/getReward.d.ts.map +0 -1
  420. package/dist/src/staking-templates/templates/common/getReward.js +0 -34
  421. package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +0 -31
  422. package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +0 -1
  423. package/dist/src/staking-templates/templates/common/getStakeEvent.js +0 -51
  424. package/dist/src/staking-templates/templates/common/lock.d.ts +0 -12
  425. package/dist/src/staking-templates/templates/common/lock.d.ts.map +0 -1
  426. package/dist/src/staking-templates/templates/common/lock.js +0 -20
  427. package/dist/src/staking-templates/templates/common/lockMult.d.ts +0 -3
  428. package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +0 -1
  429. package/dist/src/staking-templates/templates/common/lockMult.js +0 -15
  430. package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +0 -62
  431. package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +0 -1
  432. package/dist/src/staking-templates/templates/common/partialUnstake.js +0 -39
  433. package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +0 -13
  434. package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +0 -1
  435. package/dist/src/staking-templates/templates/common/rewardDistribution.js +0 -19
  436. package/dist/src/staking-templates/templates/common/templates.d.ts +0 -61
  437. package/dist/src/staking-templates/templates/common/templates.d.ts.map +0 -1
  438. package/dist/src/staking-templates/templates/common/templates.js +0 -8
  439. package/dist/src/staking-templates/templates/common/time.d.ts +0 -2
  440. package/dist/src/staking-templates/templates/common/time.d.ts.map +0 -1
  441. package/dist/src/staking-templates/templates/common/time.js +0 -4
  442. package/dist/src/staking-templates/templates/common/unstake.d.ts +0 -58
  443. package/dist/src/staking-templates/templates/common/unstake.d.ts.map +0 -1
  444. package/dist/src/staking-templates/templates/common/unstake.js +0 -34
  445. package/dist/src/staking-templates/templates/reputation/common.d.ts +0 -23
  446. package/dist/src/staking-templates/templates/reputation/common.d.ts.map +0 -1
  447. package/dist/src/staking-templates/templates/reputation/common.js +0 -3
  448. package/dist/src/staking-templates/templates/reputation/index.d.ts +0 -233
  449. package/dist/src/staking-templates/templates/reputation/index.d.ts.map +0 -1
  450. package/dist/src/staking-templates/templates/reputation/index.js +0 -4
  451. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +0 -81
  452. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
  453. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +0 -56
  454. package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +0 -113
  455. package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +0 -1
  456. package/dist/src/staking-templates/templates/reputation/v0/createPool.js +0 -85
  457. package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +0 -233
  458. package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +0 -1
  459. package/dist/src/staking-templates/templates/reputation/v0/index.js +0 -25
  460. package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +0 -61
  461. package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +0 -1
  462. package/dist/src/staking-templates/templates/reputation/v0/restake.js +0 -40
  463. package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +0 -61
  464. package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +0 -1
  465. package/dist/src/staking-templates/templates/reputation/v0/stake.js +0 -45
  466. package/dist/src/staking-templates/templates/reputationLock/common.d.ts +0 -23
  467. package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +0 -1
  468. package/dist/src/staking-templates/templates/reputationLock/common.js +0 -3
  469. package/dist/src/staking-templates/templates/reputationLock/index.d.ts +0 -244
  470. package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +0 -1
  471. package/dist/src/staking-templates/templates/reputationLock/index.js +0 -4
  472. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +0 -81
  473. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
  474. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +0 -56
  475. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +0 -149
  476. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
  477. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +0 -99
  478. package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +0 -244
  479. package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +0 -1
  480. package/dist/src/staking-templates/templates/reputationLock/v0/index.js +0 -25
  481. package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +0 -65
  482. package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +0 -1
  483. package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +0 -44
  484. package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +0 -65
  485. package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +0 -1
  486. package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +0 -46
  487. package/dist/src/staking-templates/templates/rwa/common.d.ts +0 -23
  488. package/dist/src/staking-templates/templates/rwa/common.d.ts.map +0 -1
  489. package/dist/src/staking-templates/templates/rwa/common.js +0 -3
  490. package/dist/src/staking-templates/templates/rwa/index.d.ts +0 -256
  491. package/dist/src/staking-templates/templates/rwa/index.d.ts.map +0 -1
  492. package/dist/src/staking-templates/templates/rwa/index.js +0 -4
  493. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +0 -81
  494. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
  495. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +0 -56
  496. package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +0 -109
  497. package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +0 -1
  498. package/dist/src/staking-templates/templates/rwa/v0/createPool.js +0 -79
  499. package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +0 -256
  500. package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +0 -1
  501. package/dist/src/staking-templates/templates/rwa/v0/index.js +0 -27
  502. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +0 -61
  503. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +0 -1
  504. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +0 -41
  505. package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +0 -61
  506. package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +0 -1
  507. package/dist/src/staking-templates/templates/rwa/v0/restake.js +0 -40
  508. package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +0 -61
  509. package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +0 -1
  510. package/dist/src/staking-templates/templates/rwa/v0/stake.js +0 -45
@@ -1,79 +0,0 @@
1
- import { describeRoute } from "hono-openapi";
2
- import { resolver, validator } from "hono-openapi/zod";
3
- import { createPool, FacetOptionEnum, FacetSlot } from "@evergonlabs/tmi-protocol-staking-sdk";
4
- import { toTransaction, TransactionSchema } from "../../../../common/index.js";
5
- import { PlatformContractAddress } from "../../../../common/models/platform.js";
6
- import { RewardDistributionComplexSchema } from "../../common/rewardDistribution.js";
7
- import { Erc20InputSchema } from "../../common/erc20Input.js";
8
- import { Erc20RewardSchema } from "../../common/erc20Reward.js";
9
- import { StartTimeSchema } from "../../common/time.js";
10
- import { AmountHardCapSchema } from "../../common/amount.js";
11
- import { z } from "../../../../common/zod.js";
12
- import { rwa } from "../common.js";
13
- export function createCreatePoolRoute(factory) {
14
- return factory.createHandlers(describeRoute({
15
- summary: "Create Pool",
16
- description: "Generates a transaction for a new Staking Pool within the Platform",
17
- tags: [rwa.tag.tag],
18
- responses: {
19
- 200: {
20
- description: "Compiled Create Pool transaction details",
21
- content: {
22
- "application/json": {
23
- schema: resolver(TransactionSchema),
24
- },
25
- },
26
- },
27
- },
28
- }), validator("json", z.object({
29
- platform: PlatformContractAddress,
30
- startDate: StartTimeSchema,
31
- hardcapAmount: AmountHardCapSchema,
32
- distribution: RewardDistributionComplexSchema,
33
- erc20Input: Erc20InputSchema,
34
- erc20Reward: Erc20RewardSchema,
35
- })), async (c) => {
36
- const { platform, startDate, hardcapAmount, distribution, erc20Input, erc20Reward } = c.req.valid("json");
37
- const deployed = createPool(rwa.template, {
38
- platform: platform,
39
- data: {
40
- [FacetSlot.Time]: {
41
- type: FacetOptionEnum.TimeOnlyStarting,
42
- startDate: new Date(startDate),
43
- },
44
- [FacetSlot.Amount]: {
45
- type: FacetOptionEnum.AmountHardCap,
46
- hardCap: BigInt(hardcapAmount),
47
- },
48
- [FacetSlot.StakersEligibility]: {
49
- type: FacetOptionEnum.StakersEligibilityDefault,
50
- isCampaignScoped: false,
51
- },
52
- [FacetSlot.RewardsDistribution]: {
53
- type: FacetOptionEnum.RewardDistributionComplex,
54
- duration: distribution.duration,
55
- distributor: distribution.distributor,
56
- },
57
- [FacetSlot.Input]: {
58
- type: FacetOptionEnum.InputErc20,
59
- entries: [
60
- {
61
- tokenAddress: erc20Input.contract,
62
- amountOfTokensPerPacket: erc20Input.amountOfTokensPerPacket,
63
- },
64
- ],
65
- },
66
- [FacetSlot.Reward]: {
67
- type: FacetOptionEnum.RewardErc20Transfer,
68
- entries: [
69
- {
70
- tokenAddress: erc20Reward.contract,
71
- amountOfTokensPerPacket: erc20Reward.amountOfTokensPerPacket,
72
- },
73
- ],
74
- },
75
- },
76
- });
77
- return c.json(toTransaction(deployed), 200);
78
- });
79
- }
@@ -1,256 +0,0 @@
1
- import { Env } from "hono";
2
- import { Factory } from "hono/factory";
3
- export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E>): import("hono/hono-base").HonoBase<E, {
4
- "/getPlatformDeployEvent": {
5
- $get: {
6
- input: {
7
- query: {
8
- chainId: "11155111" | "31337";
9
- hash: `0x${string}`;
10
- };
11
- };
12
- output: {
13
- diamondAddress: `0x${string}`;
14
- admin: `0x${string}`;
15
- };
16
- outputFormat: "json";
17
- status: 200;
18
- };
19
- };
20
- } & {
21
- "/getStakeEvent": {
22
- $get: {
23
- input: {
24
- query: {
25
- chainId: "11155111" | "31337";
26
- hash: `0x${string}`;
27
- };
28
- };
29
- output: never;
30
- outputFormat: "json";
31
- status: 200;
32
- };
33
- };
34
- } & {
35
- "/getCreatePoolEvent": {
36
- $get: {
37
- input: {
38
- query: {
39
- chainId: "11155111" | "31337";
40
- hash: `0x${string}`;
41
- };
42
- };
43
- output: never;
44
- outputFormat: "json";
45
- status: 200;
46
- };
47
- };
48
- } & {
49
- "/getReward": {
50
- $post: {
51
- input: {
52
- json: {
53
- platform: `0x${string}`;
54
- stakeId: string | number | bigint;
55
- };
56
- };
57
- output: {
58
- data: `0x${string}`;
59
- to: `0x${string}`;
60
- details: {
61
- functionName: string;
62
- address: `0x${string}`;
63
- abi: any[];
64
- args: any[];
65
- };
66
- };
67
- outputFormat: "json";
68
- status: 200;
69
- };
70
- };
71
- } & {
72
- "/partialUnstake": {
73
- $post: {
74
- input: {
75
- json: {
76
- platform: `0x${string}`;
77
- stakeId: string | number | bigint;
78
- amount: string | number | bigint;
79
- };
80
- };
81
- output: {
82
- data: `0x${string}`;
83
- to: `0x${string}`;
84
- details: {
85
- functionName: string;
86
- address: `0x${string}`;
87
- abi: any[];
88
- args: any[];
89
- };
90
- };
91
- outputFormat: "json";
92
- status: 200;
93
- };
94
- };
95
- } & {
96
- "/restake": {
97
- $post: {
98
- input: {
99
- json: {
100
- platform: `0x${string}`;
101
- poolId: string | number | bigint;
102
- amount: string | number | bigint;
103
- };
104
- };
105
- output: {
106
- data: `0x${string}`;
107
- to: `0x${string}`;
108
- details: {
109
- functionName: string;
110
- address: `0x${string}`;
111
- abi: any[];
112
- args: any[];
113
- };
114
- };
115
- outputFormat: "json";
116
- status: 200;
117
- };
118
- };
119
- } & {
120
- "/stake": {
121
- $post: {
122
- input: {
123
- json: {
124
- platform: `0x${string}`;
125
- poolId: string | number | bigint;
126
- amount: string | number | bigint;
127
- };
128
- };
129
- output: {
130
- data: `0x${string}`;
131
- to: `0x${string}`;
132
- details: {
133
- functionName: string;
134
- address: `0x${string}`;
135
- abi: any[];
136
- args: any[];
137
- };
138
- };
139
- outputFormat: "json";
140
- status: 200;
141
- };
142
- };
143
- } & {
144
- "/unstake": {
145
- $post: {
146
- input: {
147
- json: {
148
- platform: `0x${string}`;
149
- stakeId: string | number | bigint;
150
- };
151
- };
152
- output: {
153
- data: `0x${string}`;
154
- to: `0x${string}`;
155
- details: {
156
- functionName: string;
157
- address: `0x${string}`;
158
- abi: any[];
159
- args: any[];
160
- };
161
- };
162
- outputFormat: "json";
163
- status: 200;
164
- };
165
- };
166
- } & {
167
- "/createPool": {
168
- $post: {
169
- input: {
170
- json: {
171
- platform: `0x${string}`;
172
- startDate: string;
173
- hardcapAmount: string | number | bigint;
174
- distribution: {
175
- duration: string | number | bigint;
176
- distributor: `0x${string}`;
177
- };
178
- erc20Input: {
179
- contract: `0x${string}`;
180
- amountOfTokensPerPacket: string;
181
- };
182
- erc20Reward: {
183
- contract: `0x${string}`;
184
- amountOfTokensPerPacket: string | number | bigint;
185
- };
186
- };
187
- };
188
- output: {
189
- data: `0x${string}`;
190
- to: `0x${string}`;
191
- details: {
192
- functionName: string;
193
- address: `0x${string}`;
194
- abi: any[];
195
- args: any[];
196
- };
197
- };
198
- outputFormat: "json";
199
- status: 200;
200
- };
201
- };
202
- } & {
203
- "/createPlatform": {
204
- $post: {
205
- input: {
206
- json: {
207
- chainId: "11155111" | "31337";
208
- adminAddress: `0x${string}`;
209
- erc721: {
210
- symbol: string;
211
- name: string;
212
- baseUri: string;
213
- };
214
- isSoulbound: boolean;
215
- };
216
- };
217
- output: {
218
- data: `0x${string}`;
219
- to: `0x${string}`;
220
- details: {
221
- functionName: string;
222
- address: `0x${string}`;
223
- abi: any[];
224
- args: any[];
225
- };
226
- };
227
- outputFormat: "json";
228
- status: 200;
229
- };
230
- };
231
- } & {
232
- "/notifyRewards": {
233
- $post: {
234
- input: {
235
- json: {
236
- platform: `0x${string}`;
237
- poolId: string | number | bigint;
238
- amount: string | number | bigint;
239
- };
240
- };
241
- output: {
242
- data: `0x${string}`;
243
- to: `0x${string}`;
244
- details: {
245
- functionName: string;
246
- address: `0x${string}`;
247
- abi: any[];
248
- args: any[];
249
- };
250
- };
251
- outputFormat: "json";
252
- status: 200;
253
- };
254
- };
255
- }, "/">;
256
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/rwa/v0/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAcvC,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAcxE"}
@@ -1,27 +0,0 @@
1
- import { createGetPlatformDeployEventRoute } from "../../common/getPlatformDeployEvent.js";
2
- import { createGetRewardRoute } from "../../common/getReward.js";
3
- import { createStakeEventRoute } from "../../common/getStakeEvent.js";
4
- import { createPartialUnstakeRoute } from "../../common/partialUnstake.js";
5
- import { createRestakeRoute } from "./restake.js";
6
- import { createStakeRoute } from "./stake.js";
7
- import { rwa } from "../common.js";
8
- import { createUnstakeRoute } from "../../common/unstake.js";
9
- import { createGetCreatePoolEventRoute } from "../../common/getCreatePoolEvent.js";
10
- import { createCreatePoolRoute } from "./createPool.js";
11
- import { createCreatePlatformRoute } from "./createPlatform.js";
12
- import { createNotifyRewardsRoute } from "./notifyRewards.js";
13
- export function createRWATemplateV0App(factory) {
14
- return factory
15
- .createApp()
16
- .get("/getPlatformDeployEvent", ...createGetPlatformDeployEventRoute(factory, rwa))
17
- .get("/getStakeEvent", ...createStakeEventRoute(factory, rwa))
18
- .get("/getCreatePoolEvent", ...createGetCreatePoolEventRoute(factory, rwa))
19
- .post("/getReward", ...createGetRewardRoute(factory, rwa))
20
- .post("/partialUnstake", ...createPartialUnstakeRoute(factory, rwa))
21
- .post("/restake", ...createRestakeRoute(factory))
22
- .post("/stake", ...createStakeRoute(factory))
23
- .post("/unstake", ...createUnstakeRoute(factory, rwa))
24
- .post("/createPool", ...createCreatePoolRoute(factory))
25
- .post("/createPlatform", ...createCreatePlatformRoute(factory))
26
- .post("/notifyRewards", ...createNotifyRewardsRoute(factory));
27
- }
@@ -1,61 +0,0 @@
1
- import { Factory } from "hono/factory";
2
- import { Env } from "hono";
3
- export declare function createNotifyRewardsRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
4
- data: `0x${string}`;
5
- to: `0x${string}`;
6
- details: {
7
- functionName: string;
8
- address: `0x${string}`;
9
- abi: any[];
10
- args: any[];
11
- };
12
- }, 200, "json">>>, import("hono/types").H<Env, string, {
13
- in: {
14
- json: {
15
- platform: `0x${string}`;
16
- poolId: string | number | bigint;
17
- amount: string | number | bigint;
18
- };
19
- };
20
- out: {
21
- json: {
22
- platform: `0x${string}`;
23
- poolId: bigint;
24
- amount: bigint;
25
- };
26
- };
27
- }, Promise<Response & import("hono").TypedResponse<{
28
- data: `0x${string}`;
29
- to: `0x${string}`;
30
- details: {
31
- functionName: string;
32
- address: `0x${string}`;
33
- abi: any[];
34
- args: any[];
35
- };
36
- }, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
37
- in: {
38
- json: {
39
- platform: `0x${string}`;
40
- poolId: string | number | bigint;
41
- amount: string | number | bigint;
42
- };
43
- };
44
- out: {
45
- json: {
46
- platform: `0x${string}`;
47
- poolId: bigint;
48
- amount: bigint;
49
- };
50
- };
51
- }, Promise<Response & import("hono").TypedResponse<{
52
- data: `0x${string}`;
53
- to: `0x${string}`;
54
- details: {
55
- functionName: string;
56
- address: `0x${string}`;
57
- abi: any[];
58
- args: any[];
59
- };
60
- }, 200, "json">>>];
61
- //# sourceMappingURL=notifyRewards.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifyRewards.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/rwa/v0/notifyRewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAU3B,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAwC1E"}
@@ -1,41 +0,0 @@
1
- import { describeRoute } from "hono-openapi";
2
- import { resolver, validator } from "hono-openapi/zod";
3
- import { z } from "@hono/zod-openapi";
4
- import { notifyRewards } from "@evergonlabs/tmi-protocol-staking-sdk";
5
- import { toTransaction, TransactionSchema } from "../../../../common/index.js";
6
- import { PlatformContractAddress, PoolIdSchema } from "../../../../common/models/platform.js";
7
- import { rwa } from "../common.js";
8
- import { Int256Positive } from "@evergonlabs/tmi-utils/models";
9
- export function createNotifyRewardsRoute(factory) {
10
- return factory.createHandlers(describeRoute({
11
- summary: "Notify Rewards",
12
- description: "Generates a transaction for Rewards allocation for certain Pool.",
13
- tags: [rwa.tag.tag],
14
- responses: {
15
- 200: {
16
- description: "Compiled Reward notification transaction details",
17
- content: {
18
- "application/json": {
19
- schema: resolver(TransactionSchema),
20
- },
21
- },
22
- },
23
- },
24
- }), validator("json", z.object({
25
- platform: PlatformContractAddress,
26
- poolId: PoolIdSchema,
27
- amount: Int256Positive.openapi({
28
- description: "The number of Input Packets to add to Pool.",
29
- }),
30
- })), async (c) => {
31
- const { platform, poolId, amount } = c.req.valid("json");
32
- const transaction = notifyRewards(rwa.template, {
33
- platform: platform,
34
- data: {
35
- poolId: poolId,
36
- packets: amount,
37
- },
38
- });
39
- return c.json(toTransaction(transaction), 200);
40
- });
41
- }
@@ -1,61 +0,0 @@
1
- import { Env } from "hono";
2
- import { Factory } from "hono/factory";
3
- export declare function createRestakeRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
4
- data: `0x${string}`;
5
- to: `0x${string}`;
6
- details: {
7
- functionName: string;
8
- address: `0x${string}`;
9
- abi: any[];
10
- args: any[];
11
- };
12
- }, 200, "json">>>, import("hono/types").H<Env, string, {
13
- in: {
14
- json: {
15
- platform: `0x${string}`;
16
- poolId: string | number | bigint;
17
- amount: string | number | bigint;
18
- };
19
- };
20
- out: {
21
- json: {
22
- platform: `0x${string}`;
23
- poolId: bigint;
24
- amount: bigint;
25
- };
26
- };
27
- }, Promise<Response & import("hono").TypedResponse<{
28
- data: `0x${string}`;
29
- to: `0x${string}`;
30
- details: {
31
- functionName: string;
32
- address: `0x${string}`;
33
- abi: any[];
34
- args: any[];
35
- };
36
- }, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
37
- in: {
38
- json: {
39
- platform: `0x${string}`;
40
- poolId: string | number | bigint;
41
- amount: string | number | bigint;
42
- };
43
- };
44
- out: {
45
- json: {
46
- platform: `0x${string}`;
47
- poolId: bigint;
48
- amount: bigint;
49
- };
50
- };
51
- }, Promise<Response & import("hono").TypedResponse<{
52
- data: `0x${string}`;
53
- to: `0x${string}`;
54
- details: {
55
- functionName: string;
56
- address: `0x${string}`;
57
- abi: any[];
58
- args: any[];
59
- };
60
- }, 200, "json">>>];
61
- //# sourceMappingURL=restake.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restake.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/rwa/v0/restake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAuCpE"}
@@ -1,40 +0,0 @@
1
- import { describeRoute } from "hono-openapi";
2
- import { resolver, validator } from "hono-openapi/zod";
3
- import { stake } from "@evergonlabs/tmi-protocol-staking-sdk";
4
- import { z } from "../../../../common/zod.js";
5
- import { PlatformContractAddress, PoolIdSchema, toTransaction, TransactionSchema } from "../../../../common/index.js";
6
- import { Int256Positive } from "@evergonlabs/tmi-utils/models";
7
- import { rwa } from "../common.js";
8
- export function createRestakeRoute(factory) {
9
- return factory.createHandlers(describeRoute({
10
- summary: "Restake",
11
- description: "Generates a transaction for updating staking position",
12
- tags: [rwa.tag.tag],
13
- responses: {
14
- 200: {
15
- description: "Get the Stake transaction details",
16
- content: {
17
- "application/json": {
18
- schema: resolver(TransactionSchema),
19
- },
20
- },
21
- },
22
- },
23
- }), validator("json", z.object({
24
- platform: PlatformContractAddress,
25
- poolId: PoolIdSchema,
26
- amount: Int256Positive.openapi({
27
- description: `Number of Packets to be stacked. Each underlying asset must be approved to Staking Platform contract instance`,
28
- }),
29
- })), async (c) => {
30
- const { platform, poolId, amount } = c.req.valid("json");
31
- const deployed = stake(rwa.template, {
32
- platform: platform,
33
- data: {
34
- poolId: poolId,
35
- packets: amount,
36
- },
37
- });
38
- return c.json(toTransaction(deployed), 200);
39
- });
40
- }
@@ -1,61 +0,0 @@
1
- import { Factory } from "hono/factory";
2
- import { Env } from "hono";
3
- export declare function createStakeRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
4
- data: `0x${string}`;
5
- to: `0x${string}`;
6
- details: {
7
- functionName: string;
8
- address: `0x${string}`;
9
- abi: any[];
10
- args: any[];
11
- };
12
- }, 200, "json">>>, import("hono/types").H<Env, string, {
13
- in: {
14
- json: {
15
- platform: `0x${string}`;
16
- poolId: string | number | bigint;
17
- amount: string | number | bigint;
18
- };
19
- };
20
- out: {
21
- json: {
22
- platform: `0x${string}`;
23
- poolId: bigint;
24
- amount: bigint;
25
- };
26
- };
27
- }, Promise<Response & import("hono").TypedResponse<{
28
- data: `0x${string}`;
29
- to: `0x${string}`;
30
- details: {
31
- functionName: string;
32
- address: `0x${string}`;
33
- abi: any[];
34
- args: any[];
35
- };
36
- }, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
37
- in: {
38
- json: {
39
- platform: `0x${string}`;
40
- poolId: string | number | bigint;
41
- amount: string | number | bigint;
42
- };
43
- };
44
- out: {
45
- json: {
46
- platform: `0x${string}`;
47
- poolId: bigint;
48
- amount: bigint;
49
- };
50
- };
51
- }, Promise<Response & import("hono").TypedResponse<{
52
- data: `0x${string}`;
53
- to: `0x${string}`;
54
- details: {
55
- functionName: string;
56
- address: `0x${string}`;
57
- abi: any[];
58
- args: any[];
59
- };
60
- }, 200, "json">>>];
61
- //# sourceMappingURL=stake.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/rwa/v0/stake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAU3B,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA2ClE"}