@evergonlabs/tmi-protocol-api 0.3.0 → 0.4.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 (520) hide show
  1. package/dist/app.d.ts +2 -8
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +2 -8
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/issuance/deploy.d.ts +16 -70
  6. package/dist/issuance/deploy.d.ts.map +1 -1
  7. package/dist/issuance/deploy.js +11 -26
  8. package/dist/issuance/index.d.ts +2 -8
  9. package/dist/issuance/index.d.ts.map +1 -1
  10. package/dist/issuance/index.js +2 -2
  11. package/dist/package.json +78 -0
  12. package/dist/src/app.d.ts +2194 -0
  13. package/dist/src/app.d.ts.map +1 -0
  14. package/dist/src/app.js +18 -0
  15. package/dist/src/client.d.ts +2690 -0
  16. package/dist/src/client.d.ts.map +1 -0
  17. package/dist/src/client.js +4 -0
  18. package/dist/src/common/abis/erc20Whitelisted.d.ts +4 -0
  19. package/dist/src/common/abis/erc20Whitelisted.d.ts.map +1 -0
  20. package/dist/src/common/abis/erc20Whitelisted.js +4 -0
  21. package/dist/src/common/app.d.ts +9 -0
  22. package/dist/src/common/app.d.ts.map +1 -0
  23. package/dist/src/common/app.js +3 -0
  24. package/dist/src/common/blockchain.d.ts +9528 -0
  25. package/dist/src/common/blockchain.d.ts.map +1 -0
  26. package/dist/src/common/blockchain.js +40 -0
  27. package/dist/src/common/config.d.ts +21 -0
  28. package/dist/src/common/config.d.ts.map +1 -0
  29. package/dist/src/common/config.js +33 -0
  30. package/dist/src/common/http-error.d.ts +7 -0
  31. package/dist/src/common/http-error.d.ts.map +1 -0
  32. package/dist/src/common/http-error.js +7 -0
  33. package/dist/src/common/index.d.ts +2 -0
  34. package/dist/src/common/index.d.ts.map +1 -0
  35. package/dist/src/common/index.js +1 -0
  36. package/dist/src/common/indexer/client.d.ts +1191 -0
  37. package/dist/src/common/indexer/client.d.ts.map +1 -0
  38. package/dist/src/common/indexer/client.js +7 -0
  39. package/dist/src/common/indexer/index.d.ts +1191 -0
  40. package/dist/src/common/indexer/index.d.ts.map +1 -0
  41. package/dist/src/common/indexer/index.js +3 -0
  42. package/dist/src/common/indexer/schemas.d.ts +1191 -0
  43. package/dist/src/common/indexer/schemas.d.ts.map +1 -0
  44. package/dist/src/common/indexer/schemas.js +14 -0
  45. package/dist/src/common/models/chainId.d.ts +5 -0
  46. package/dist/src/common/models/chainId.d.ts.map +1 -0
  47. package/dist/src/common/models/chainId.js +23 -0
  48. package/dist/src/common/models/date.d.ts +3 -0
  49. package/dist/src/common/models/date.d.ts.map +1 -0
  50. package/dist/src/common/models/date.js +5 -0
  51. package/dist/src/common/models/erc721.d.ts +15 -0
  52. package/dist/src/common/models/erc721.d.ts.map +1 -0
  53. package/dist/src/common/models/erc721.js +21 -0
  54. package/dist/src/common/models/index.d.ts +7 -0
  55. package/dist/src/common/models/index.d.ts.map +1 -0
  56. package/dist/src/common/models/index.js +6 -0
  57. package/dist/src/common/models/page.d.ts +12 -0
  58. package/dist/src/common/models/page.d.ts.map +1 -0
  59. package/dist/src/common/models/page.js +15 -0
  60. package/dist/src/common/models/percent.d.ts +3 -0
  61. package/dist/src/common/models/percent.d.ts.map +1 -0
  62. package/dist/src/common/models/percent.js +6 -0
  63. package/dist/src/common/models/platform.d.ts +4 -0
  64. package/dist/src/common/models/platform.d.ts.map +1 -0
  65. package/dist/src/common/models/platform.js +13 -0
  66. package/dist/src/common/models/routes.d.ts +16 -0
  67. package/dist/src/common/models/routes.d.ts.map +1 -0
  68. package/dist/src/common/models/routes.js +13 -0
  69. package/dist/src/common/models/saleId.d.ts +12 -0
  70. package/dist/src/common/models/saleId.d.ts.map +1 -0
  71. package/dist/src/common/models/saleId.js +6 -0
  72. package/dist/src/common/models/transaction.d.ts +90 -0
  73. package/dist/src/common/models/transaction.d.ts.map +1 -0
  74. package/dist/src/common/models/transaction.js +57 -0
  75. package/dist/src/common/models/viem.d.ts +4 -0
  76. package/dist/src/common/models/viem.d.ts.map +1 -0
  77. package/dist/src/common/models/viem.js +15 -0
  78. package/dist/src/common/openapi.d.ts +4 -0
  79. package/dist/src/common/openapi.d.ts.map +1 -0
  80. package/dist/src/common/openapi.js +40 -0
  81. package/dist/src/common/tag.d.ts +7 -0
  82. package/dist/src/common/tag.d.ts.map +1 -0
  83. package/dist/src/common/tag.js +5 -0
  84. package/dist/src/common/version.d.ts +2 -0
  85. package/dist/src/common/version.d.ts.map +1 -0
  86. package/dist/src/common/version.js +2 -0
  87. package/dist/src/common/zod.d.ts +3 -0
  88. package/dist/src/common/zod.d.ts.map +1 -0
  89. package/dist/src/common/zod.js +2 -0
  90. package/dist/src/error.d.ts +3 -0
  91. package/dist/src/error.d.ts.map +1 -0
  92. package/dist/src/error.js +16 -0
  93. package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
  94. package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
  95. package/dist/src/fractions/approveSale/v0/approveSale.route.js +31 -0
  96. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
  97. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
  98. package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
  99. package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
  100. package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
  101. package/dist/src/fractions/completeSale/v0/completeSale.route.js +31 -0
  102. package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
  103. package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
  104. package/dist/src/fractions/createFractions/v0/createFractions.route.js +61 -0
  105. package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
  106. package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
  107. package/dist/src/fractions/createFractions/v0/createFractions.schema.js +67 -0
  108. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
  109. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
  110. package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.js +59 -0
  111. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +297 -0
  112. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
  113. package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +98 -0
  114. package/dist/{lending → src/fractions}/deployMarket/v0/deployMarket.schema.d.ts +41 -50
  115. package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
  116. package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
  117. package/dist/src/fractions/gating/index.d.ts +2 -0
  118. package/dist/src/fractions/gating/index.d.ts.map +1 -0
  119. package/dist/src/fractions/gating/index.js +0 -0
  120. package/dist/src/fractions/gating/v0/getAuthData.d.ts +86 -0
  121. package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +1 -0
  122. package/dist/src/fractions/gating/v0/getAuthData.js +48 -0
  123. package/dist/src/fractions/gating/v0/getNonce.route.d.ts +54 -0
  124. package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
  125. package/dist/src/fractions/gating/v0/getNonce.route.js +40 -0
  126. package/dist/{lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts → src/fractions/grantRole/v0/grantRole.route.d.ts} +15 -11
  127. package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
  128. package/dist/src/fractions/grantRole/v0/grantRole.route.js +31 -0
  129. package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
  130. package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
  131. package/dist/src/fractions/grantRole/v0/grantRole.schema.js +14 -0
  132. package/dist/src/fractions/index.d.ts +968 -0
  133. package/dist/src/fractions/index.d.ts.map +1 -0
  134. package/dist/src/fractions/index.js +91 -0
  135. package/dist/src/fractions/markets/common/platform.d.ts +26 -0
  136. package/dist/src/fractions/markets/common/platform.d.ts.map +1 -0
  137. package/dist/src/fractions/markets/common/platform.js +26 -0
  138. package/dist/src/fractions/markets/getDeployEvent.d.ts +42 -0
  139. package/dist/src/fractions/markets/getDeployEvent.d.ts.map +1 -0
  140. package/dist/src/fractions/markets/getDeployEvent.js +47 -0
  141. package/dist/src/fractions/markets/getMarket/index.d.ts +40 -0
  142. package/dist/src/fractions/markets/getMarket/index.d.ts.map +1 -0
  143. package/dist/src/fractions/markets/getMarket/index.js +4 -0
  144. package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +64 -0
  145. package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
  146. package/dist/src/fractions/markets/getMarket/v0/getMarket.js +63 -0
  147. package/dist/src/fractions/markets/index.d.ts +84 -0
  148. package/dist/src/fractions/markets/index.d.ts.map +1 -0
  149. package/dist/src/fractions/markets/index.js +12 -0
  150. package/dist/src/fractions/markets/searchMarkets/index.d.ts +32 -0
  151. package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +1 -0
  152. package/dist/src/fractions/markets/searchMarkets/index.js +4 -0
  153. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +76 -0
  154. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
  155. package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +42 -0
  156. package/dist/src/fractions/purchase/v0/purchase.route.d.ts +89 -0
  157. package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
  158. package/dist/src/fractions/purchase/v0/purchase.route.js +41 -0
  159. package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
  160. package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
  161. package/dist/src/fractions/roles/getRoles/v0/getRoles.js +41 -0
  162. package/dist/src/fractions/sales/getVaultAddress.d.ts +52 -0
  163. package/dist/src/fractions/sales/getVaultAddress.d.ts.map +1 -0
  164. package/dist/src/fractions/sales/getVaultAddress.js +61 -0
  165. package/dist/src/fractions/sales/getWithdrawEvent.d.ts +42 -0
  166. package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
  167. package/dist/src/fractions/sales/getWithdrawEvent.js +52 -0
  168. package/dist/src/fractions/sales/index.d.ts +10 -0
  169. package/dist/src/fractions/sales/index.d.ts.map +1 -0
  170. package/dist/src/fractions/sales/index.js +10 -0
  171. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
  172. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
  173. package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
  174. package/dist/{lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts → src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts} +6 -6
  175. package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
  176. package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
  177. package/dist/src/fractions/sales/recoverFractions.d.ts +108 -0
  178. package/dist/src/fractions/sales/recoverFractions.d.ts.map +1 -0
  179. package/dist/src/fractions/sales/recoverFractions.js +45 -0
  180. package/dist/src/fractions/sales/rejectFractions.d.ts +80 -0
  181. package/dist/src/fractions/sales/rejectFractions.d.ts.map +1 -0
  182. package/dist/src/fractions/sales/rejectFractions.js +39 -0
  183. package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +2 -0
  184. package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +1 -0
  185. package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
  186. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
  187. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
  188. package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
  189. package/dist/src/fractions/sales/setFeeCapLimit.d.ts +75 -0
  190. package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
  191. package/dist/src/fractions/sales/setFeeCapLimit.js +32 -0
  192. package/dist/{lending/buyback/v0/buyback.routes.d.ts → src/fractions/sales/unlockWrappedAssets.route.d.ts} +17 -10
  193. package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
  194. package/dist/src/fractions/sales/unlockWrappedAssets.route.js +31 -0
  195. package/dist/src/fractions/sales/vesting/index.d.ts +2 -0
  196. package/dist/src/fractions/sales/vesting/index.d.ts.map +1 -0
  197. package/dist/src/fractions/sales/vesting/index.js +0 -0
  198. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
  199. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
  200. package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
  201. package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
  202. package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
  203. package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +40 -0
  204. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
  205. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
  206. package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +58 -0
  207. package/dist/{lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts → src/fractions/withdraw/v0/withdraw.route.d.ts} +17 -6
  208. package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
  209. package/dist/src/fractions/withdraw/v0/withdraw.route.js +31 -0
  210. package/dist/src/general/balance-client.d.ts +13 -0
  211. package/dist/src/general/balance-client.d.ts.map +1 -0
  212. package/dist/src/general/balance-client.js +26 -0
  213. package/dist/src/general/common.d.ts +94 -0
  214. package/dist/src/general/common.d.ts.map +1 -0
  215. package/dist/src/general/common.js +35 -0
  216. package/dist/src/general/estimateGas.d.ts +52 -0
  217. package/dist/src/general/estimateGas.d.ts.map +1 -0
  218. package/dist/src/general/estimateGas.js +64 -0
  219. package/dist/src/general/getBalance.d.ts +44 -0
  220. package/dist/src/general/getBalance.d.ts.map +1 -0
  221. package/dist/src/general/getBalance.js +43 -0
  222. package/dist/src/general/getBalancesBatch.d.ts +59 -0
  223. package/dist/src/general/getBalancesBatch.d.ts.map +1 -0
  224. package/dist/src/general/getBalancesBatch.js +34 -0
  225. package/dist/src/general/index.d.ts +100 -0
  226. package/dist/src/general/index.d.ts.map +1 -0
  227. package/dist/src/general/index.js +20 -0
  228. package/dist/src/general/searchBalances.d.ts +78 -0
  229. package/dist/src/general/searchBalances.d.ts.map +1 -0
  230. package/dist/src/general/searchBalances.js +49 -0
  231. package/dist/src/issuance/approve.d.ts +75 -0
  232. package/dist/src/issuance/approve.d.ts.map +1 -0
  233. package/dist/src/issuance/approve.js +36 -0
  234. package/dist/src/issuance/burn.d.ts +75 -0
  235. package/dist/src/issuance/burn.d.ts.map +1 -0
  236. package/dist/src/issuance/burn.js +36 -0
  237. package/dist/src/issuance/deploy.d.ts +88 -0
  238. package/dist/src/issuance/deploy.d.ts.map +1 -0
  239. package/dist/src/issuance/deploy.js +91 -0
  240. package/dist/src/issuance/grantRole.d.ts +78 -0
  241. package/dist/src/issuance/grantRole.d.ts.map +1 -0
  242. package/dist/src/issuance/grantRole.js +50 -0
  243. package/dist/src/issuance/index.d.ts +165 -0
  244. package/dist/src/issuance/index.d.ts.map +1 -0
  245. package/dist/src/issuance/index.js +23 -0
  246. package/dist/src/issuance/mint.d.ts +75 -0
  247. package/dist/src/issuance/mint.d.ts.map +1 -0
  248. package/dist/src/issuance/mint.js +36 -0
  249. package/dist/src/issuance/transfer.d.ts +75 -0
  250. package/dist/src/issuance/transfer.d.ts.map +1 -0
  251. package/dist/src/issuance/transfer.js +36 -0
  252. package/dist/src/serve.d.ts +2 -0
  253. package/dist/src/serve.d.ts.map +1 -0
  254. package/dist/src/serve.js +33 -0
  255. package/dist/src/staking/index.d.ts +242 -0
  256. package/dist/src/staking/index.d.ts.map +1 -0
  257. package/dist/src/staking/index.js +20 -0
  258. package/dist/src/staking/platforms/common/platform.d.ts +26 -0
  259. package/dist/src/staking/platforms/common/platform.d.ts.map +1 -0
  260. package/dist/src/staking/platforms/common/platform.js +26 -0
  261. package/dist/src/staking/platforms/common/platformNotFound.d.ts +9 -0
  262. package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +1 -0
  263. package/dist/src/staking/platforms/common/platformNotFound.js +13 -0
  264. package/dist/src/staking/platforms/getPlatform/index.d.ts +26 -0
  265. package/dist/src/staking/platforms/getPlatform/index.d.ts.map +1 -0
  266. package/dist/src/staking/platforms/getPlatform/index.js +4 -0
  267. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
  268. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
  269. package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
  270. package/dist/src/staking/platforms/index.d.ts +52 -0
  271. package/dist/src/staking/platforms/index.d.ts.map +1 -0
  272. package/dist/src/staking/platforms/index.js +10 -0
  273. package/dist/src/staking/platforms/searchPlatforms/index.d.ts +32 -0
  274. package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
  275. package/dist/src/staking/platforms/searchPlatforms/index.js +4 -0
  276. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
  277. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
  278. package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
  279. package/dist/src/staking/pools/common/pool.d.ts +29 -0
  280. package/dist/src/staking/pools/common/pool.d.ts.map +1 -0
  281. package/dist/src/staking/pools/common/pool.js +28 -0
  282. package/dist/src/staking/pools/common/poolNotFound.d.ts +10 -0
  283. package/dist/src/staking/pools/common/poolNotFound.d.ts.map +1 -0
  284. package/dist/src/staking/pools/common/poolNotFound.js +14 -0
  285. package/dist/src/staking/pools/getPool/index.d.ts +20 -0
  286. package/dist/src/staking/pools/getPool/index.d.ts.map +1 -0
  287. package/dist/src/staking/pools/getPool/index.js +4 -0
  288. package/dist/src/staking/pools/getPool/v0/getPool.d.ts +35 -0
  289. package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
  290. package/dist/src/staking/pools/getPool/v0/getPool.js +64 -0
  291. package/dist/src/staking/pools/index.d.ts +39 -0
  292. package/dist/src/staking/pools/index.d.ts.map +1 -0
  293. package/dist/src/staking/pools/index.js +10 -0
  294. package/dist/src/staking/pools/searchPools/index.d.ts +25 -0
  295. package/dist/src/staking/pools/searchPools/index.d.ts.map +1 -0
  296. package/dist/src/staking/pools/searchPools/index.js +4 -0
  297. package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
  298. package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
  299. package/dist/src/staking/pools/searchPools/v0/searchPools.js +42 -0
  300. package/dist/src/staking/roles/common/role.d.ts +13 -0
  301. package/dist/src/staking/roles/common/role.d.ts.map +1 -0
  302. package/dist/src/staking/roles/common/role.js +18 -0
  303. package/dist/src/staking/roles/common/roleAssignment.d.ts +27 -0
  304. package/dist/src/staking/roles/common/roleAssignment.d.ts.map +1 -0
  305. package/dist/src/staking/roles/common/roleAssignment.js +21 -0
  306. package/dist/src/staking/roles/common/roleEvent.d.ts +30 -0
  307. package/dist/src/staking/roles/common/roleEvent.d.ts.map +1 -0
  308. package/dist/src/staking/roles/common/roleEvent.js +23 -0
  309. package/dist/src/staking/roles/getRoles/index.d.ts +26 -0
  310. package/dist/src/staking/roles/getRoles/index.d.ts.map +1 -0
  311. package/dist/src/staking/roles/getRoles/index.js +4 -0
  312. package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
  313. package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
  314. package/dist/src/staking/roles/getRoles/v0/getRoles.js +41 -0
  315. package/dist/src/staking/roles/grantRole/index.d.ts +29 -0
  316. package/dist/src/staking/roles/grantRole/index.d.ts.map +1 -0
  317. package/dist/src/staking/roles/grantRole/index.js +4 -0
  318. package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
  319. package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
  320. package/dist/src/staking/roles/grantRole/v0/grantRole.js +40 -0
  321. package/dist/src/staking/roles/index.d.ts +93 -0
  322. package/dist/src/staking/roles/index.d.ts.map +1 -0
  323. package/dist/src/staking/roles/index.js +14 -0
  324. package/dist/src/staking/roles/searchRoleEvents/index.d.ts +27 -0
  325. package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
  326. package/dist/src/staking/roles/searchRoleEvents/index.js +4 -0
  327. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
  328. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
  329. package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
  330. package/dist/src/staking/roles/searchRoles/index.d.ts +27 -0
  331. package/dist/src/staking/roles/searchRoles/index.d.ts.map +1 -0
  332. package/dist/src/staking/roles/searchRoles/index.js +4 -0
  333. package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
  334. package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
  335. package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +56 -0
  336. package/dist/src/staking/stakes/common/stake.d.ts +44 -0
  337. package/dist/src/staking/stakes/common/stake.d.ts.map +1 -0
  338. package/dist/src/staking/stakes/common/stake.js +45 -0
  339. package/dist/src/staking/stakes/common/stakeEvent.d.ts +30 -0
  340. package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +1 -0
  341. package/dist/src/staking/stakes/common/stakeEvent.js +24 -0
  342. package/dist/src/staking/stakes/common/stakeNotFound.d.ts +9 -0
  343. package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
  344. package/dist/src/staking/stakes/common/stakeNotFound.js +13 -0
  345. package/dist/src/staking/stakes/getStake/index.d.ts +20 -0
  346. package/dist/src/staking/stakes/getStake/index.d.ts.map +1 -0
  347. package/dist/src/staking/stakes/getStake/index.js +4 -0
  348. package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +35 -0
  349. package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
  350. package/dist/src/staking/stakes/getStake/v0/getStake.js +64 -0
  351. package/dist/src/staking/stakes/index.d.ts +63 -0
  352. package/dist/src/staking/stakes/index.d.ts.map +1 -0
  353. package/dist/src/staking/stakes/index.js +12 -0
  354. package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +27 -0
  355. package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
  356. package/dist/src/staking/stakes/searchStakeEvents/index.js +4 -0
  357. package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
  358. package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
  359. package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
  360. package/dist/src/staking/stakes/searchStakes/index.d.ts +27 -0
  361. package/dist/src/staking/stakes/searchStakes/index.d.ts.map +1 -0
  362. package/dist/src/staking/stakes/searchStakes/index.js +4 -0
  363. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
  364. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
  365. package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
  366. package/dist/src/staking-templates/index.d.ts +732 -0
  367. package/dist/src/staking-templates/index.d.ts.map +1 -0
  368. package/dist/src/staking-templates/index.js +18 -0
  369. package/dist/src/staking-templates/templates/common/amount.d.ts +13 -0
  370. package/dist/src/staking-templates/templates/common/amount.d.ts.map +1 -0
  371. package/dist/src/staking-templates/templates/common/amount.js +17 -0
  372. package/dist/src/staking-templates/templates/common/amountMult.d.ts +3 -0
  373. package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +1 -0
  374. package/dist/src/staking-templates/templates/common/amountMult.js +23 -0
  375. package/dist/src/staking-templates/templates/common/erc20Input.d.ts +12 -0
  376. package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
  377. package/dist/src/staking-templates/templates/common/erc20Input.js +16 -0
  378. package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +12 -0
  379. package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
  380. package/dist/src/staking-templates/templates/common/erc20Reward.js +16 -0
  381. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
  382. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
  383. package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
  384. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
  385. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
  386. package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
  387. package/dist/src/staking-templates/templates/common/getReward.d.ts +58 -0
  388. package/dist/src/staking-templates/templates/common/getReward.d.ts.map +1 -0
  389. package/dist/src/staking-templates/templates/common/getReward.js +34 -0
  390. package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
  391. package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
  392. package/dist/src/staking-templates/templates/common/getStakeEvent.js +51 -0
  393. package/dist/src/staking-templates/templates/common/lock.d.ts +12 -0
  394. package/dist/src/staking-templates/templates/common/lock.d.ts.map +1 -0
  395. package/dist/src/staking-templates/templates/common/lock.js +20 -0
  396. package/dist/src/staking-templates/templates/common/lockMult.d.ts +3 -0
  397. package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +1 -0
  398. package/dist/src/staking-templates/templates/common/lockMult.js +15 -0
  399. package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +62 -0
  400. package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
  401. package/dist/src/staking-templates/templates/common/partialUnstake.js +39 -0
  402. package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
  403. package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
  404. package/dist/src/staking-templates/templates/common/rewardDistribution.js +19 -0
  405. package/dist/src/staking-templates/templates/common/templates.d.ts +61 -0
  406. package/dist/src/staking-templates/templates/common/templates.d.ts.map +1 -0
  407. package/dist/src/staking-templates/templates/common/templates.js +8 -0
  408. package/dist/src/staking-templates/templates/common/time.d.ts +2 -0
  409. package/dist/src/staking-templates/templates/common/time.d.ts.map +1 -0
  410. package/dist/src/staking-templates/templates/common/time.js +4 -0
  411. package/dist/src/staking-templates/templates/common/unstake.d.ts +58 -0
  412. package/dist/src/staking-templates/templates/common/unstake.d.ts.map +1 -0
  413. package/dist/src/staking-templates/templates/common/unstake.js +34 -0
  414. package/dist/src/staking-templates/templates/reputation/common.d.ts +23 -0
  415. package/dist/src/staking-templates/templates/reputation/common.d.ts.map +1 -0
  416. package/dist/src/staking-templates/templates/reputation/common.js +3 -0
  417. package/dist/src/staking-templates/templates/reputation/index.d.ts +233 -0
  418. package/dist/src/staking-templates/templates/reputation/index.d.ts.map +1 -0
  419. package/dist/src/staking-templates/templates/reputation/index.js +4 -0
  420. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
  421. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
  422. package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
  423. package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
  424. package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
  425. package/dist/src/staking-templates/templates/reputation/v0/createPool.js +85 -0
  426. package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +233 -0
  427. package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
  428. package/dist/src/staking-templates/templates/reputation/v0/index.js +25 -0
  429. package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
  430. package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
  431. package/dist/src/staking-templates/templates/reputation/v0/restake.js +40 -0
  432. package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
  433. package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
  434. package/dist/src/staking-templates/templates/reputation/v0/stake.js +45 -0
  435. package/dist/src/staking-templates/templates/reputationLock/common.d.ts +23 -0
  436. package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
  437. package/dist/src/staking-templates/templates/reputationLock/common.js +3 -0
  438. package/dist/src/staking-templates/templates/reputationLock/index.d.ts +244 -0
  439. package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
  440. package/dist/src/staking-templates/templates/reputationLock/index.js +4 -0
  441. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
  442. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
  443. package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
  444. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
  445. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
  446. package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
  447. package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
  448. package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
  449. package/dist/src/staking-templates/templates/reputationLock/v0/index.js +25 -0
  450. package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
  451. package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
  452. package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +44 -0
  453. package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
  454. package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
  455. package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +46 -0
  456. package/dist/src/staking-templates/templates/rwa/common.d.ts +23 -0
  457. package/dist/src/staking-templates/templates/rwa/common.d.ts.map +1 -0
  458. package/dist/src/staking-templates/templates/rwa/common.js +3 -0
  459. package/dist/src/staking-templates/templates/rwa/index.d.ts +256 -0
  460. package/dist/src/staking-templates/templates/rwa/index.d.ts.map +1 -0
  461. package/dist/src/staking-templates/templates/rwa/index.js +4 -0
  462. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
  463. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
  464. package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
  465. package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
  466. package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
  467. package/dist/src/staking-templates/templates/rwa/v0/createPool.js +79 -0
  468. package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +256 -0
  469. package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
  470. package/dist/src/staking-templates/templates/rwa/v0/index.js +27 -0
  471. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
  472. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
  473. package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
  474. package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
  475. package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
  476. package/dist/src/staking-templates/templates/rwa/v0/restake.js +40 -0
  477. package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
  478. package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
  479. package/dist/src/staking-templates/templates/rwa/v0/stake.js +45 -0
  480. package/package.json +3 -3
  481. package/dist/fractions/deployMarket/v0/index.d.ts +0 -3
  482. package/dist/fractions/deployMarket/v0/index.d.ts.map +0 -1
  483. package/dist/fractions/deployMarket/v0/index.js +0 -2
  484. package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts.map +0 -1
  485. package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.js +0 -33
  486. package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts +0 -12
  487. package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts.map +0 -1
  488. package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.js +0 -10
  489. package/dist/lending/buyback/v0/buyback.routes.d.ts.map +0 -1
  490. package/dist/lending/buyback/v0/buyback.routes.js +0 -33
  491. package/dist/lending/buyback/v0/buyback.schema.d.ts +0 -15
  492. package/dist/lending/buyback/v0/buyback.schema.d.ts.map +0 -1
  493. package/dist/lending/buyback/v0/buyback.schema.js +0 -13
  494. package/dist/lending/createLendingSale.d.ts +0 -585
  495. package/dist/lending/createLendingSale.d.ts.map +0 -1
  496. package/dist/lending/createLendingSale.js +0 -81
  497. package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts +0 -117
  498. package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
  499. package/dist/lending/deployMarket/v0/deployMarket.routes.js +0 -34
  500. package/dist/lending/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
  501. package/dist/lending/deployMarket/v0/deployMarket.schema.js +0 -12
  502. package/dist/lending/deployMarket/v0/lending.routes.d.ts +0 -105
  503. package/dist/lending/deployMarket/v0/lending.routes.d.ts.map +0 -1
  504. package/dist/lending/deployMarket/v0/lending.routes.js +0 -35
  505. package/dist/lending/deployMarket/v0/lending.schema.d.ts +0 -99
  506. package/dist/lending/deployMarket/v0/lending.schema.d.ts.map +0 -1
  507. package/dist/lending/deployMarket/v0/lending.schema.js +0 -14
  508. package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts.map +0 -1
  509. package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.js +0 -33
  510. package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts +0 -12
  511. package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts.map +0 -1
  512. package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.js +0 -10
  513. package/dist/lending/index.d.ts +0 -226
  514. package/dist/lending/index.d.ts.map +0 -1
  515. package/dist/lending/index.js +0 -24
  516. package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts.map +0 -1
  517. package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.js +0 -33
  518. package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts +0 -15
  519. package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts.map +0 -1
  520. package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.js +0 -13
@@ -1,585 +0,0 @@
1
- import { Env } from "hono";
2
- import { Factory } from "hono/factory";
3
- import { z } from "zod";
4
- export declare const BuyBackConfigSchema: z.ZodObject<{
5
- durationSeconds: z.ZodNumber;
6
- interestPercentage: z.ZodNumber;
7
- liquidationLimitPercentage: z.ZodNumber;
8
- marginCallLimitPercentage: z.ZodNumber;
9
- }, "strip", z.ZodTypeAny, {
10
- durationSeconds: number;
11
- interestPercentage: number;
12
- liquidationLimitPercentage: number;
13
- marginCallLimitPercentage: number;
14
- }, {
15
- durationSeconds: number;
16
- interestPercentage: number;
17
- liquidationLimitPercentage: number;
18
- marginCallLimitPercentage: number;
19
- }>;
20
- export declare const CreateLendingFractionsRequestSchema: z.ZodObject<{
21
- chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
22
- market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
23
- fractions: z.ZodObject<{
24
- token: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
25
- symbol: z.ZodString;
26
- name: z.ZodString;
27
- amount: z.ZodBigInt;
28
- }, "strip", z.ZodTypeAny, {
29
- symbol: string;
30
- name: string;
31
- amount: bigint;
32
- token?: `0x${string}` | undefined;
33
- }, {
34
- symbol: string;
35
- name: string;
36
- amount: bigint;
37
- token?: `0x${string}` | undefined;
38
- }>;
39
- timeBoundary: z.ZodObject<{
40
- start: z.ZodDate;
41
- end: z.ZodDate;
42
- }, "strip", z.ZodTypeAny, {
43
- start: Date;
44
- end: Date;
45
- }, {
46
- start: Date;
47
- end: Date;
48
- }>;
49
- cap: z.ZodObject<{
50
- soft: z.ZodBigInt;
51
- hard: z.ZodBigInt;
52
- softPerAccount: z.ZodOptional<z.ZodBigInt>;
53
- hardPerAccount: z.ZodOptional<z.ZodBigInt>;
54
- }, "strip", z.ZodTypeAny, {
55
- soft: bigint;
56
- hard: bigint;
57
- softPerAccount?: bigint | undefined;
58
- hardPerAccount?: bigint | undefined;
59
- }, {
60
- soft: bigint;
61
- hard: bigint;
62
- softPerAccount?: bigint | undefined;
63
- hardPerAccount?: bigint | undefined;
64
- }>;
65
- wrapped: z.ZodArray<z.ZodUnion<[z.ZodObject<{
66
- type: z.ZodLiteral<"ERC20">;
67
- address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
68
- values: z.ZodArray<z.ZodBigInt, "atleastone">;
69
- }, "strip", z.ZodTypeAny, {
70
- values: [bigint, ...bigint[]];
71
- type: "ERC20";
72
- address: `0x${string}`;
73
- }, {
74
- values: [bigint, ...bigint[]];
75
- type: "ERC20";
76
- address: `0x${string}`;
77
- }>, z.ZodObject<{
78
- type: z.ZodLiteral<"ERC721">;
79
- address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
80
- tokenIds: z.ZodArray<z.ZodBigInt, "atleastone">;
81
- }, "strip", z.ZodTypeAny, {
82
- type: "ERC721";
83
- address: `0x${string}`;
84
- tokenIds: [bigint, ...bigint[]];
85
- }, {
86
- type: "ERC721";
87
- address: `0x${string}`;
88
- tokenIds: [bigint, ...bigint[]];
89
- }>, z.ZodObject<{
90
- type: z.ZodLiteral<"ERC1155">;
91
- address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
92
- tokenIds: z.ZodArray<z.ZodBigInt, "atleastone">;
93
- values: z.ZodArray<z.ZodBigInt, "atleastone">;
94
- }, "strip", z.ZodTypeAny, {
95
- values: [bigint, ...bigint[]];
96
- type: "ERC1155";
97
- address: `0x${string}`;
98
- tokenIds: [bigint, ...bigint[]];
99
- }, {
100
- values: [bigint, ...bigint[]];
101
- type: "ERC1155";
102
- address: `0x${string}`;
103
- tokenIds: [bigint, ...bigint[]];
104
- }>]>, "atleastone">;
105
- funding: z.ZodArray<z.ZodObject<{
106
- token: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
107
- amountPerPacket: z.ZodBigInt;
108
- }, "strip", z.ZodTypeAny, {
109
- amountPerPacket: bigint;
110
- token: `0x${string}`;
111
- }, {
112
- amountPerPacket: bigint;
113
- token: `0x${string}`;
114
- }>, "atleastone">;
115
- discounts: z.ZodOptional<z.ZodObject<{
116
- burnableTokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
117
- amountToBurn: z.ZodBigInt;
118
- percentDiscount: z.ZodNumber;
119
- }, "strip", z.ZodTypeAny, {
120
- burnableTokenAddress: `0x${string}`;
121
- amountToBurn: bigint;
122
- percentDiscount: number;
123
- }, {
124
- burnableTokenAddress: `0x${string}`;
125
- amountToBurn: bigint;
126
- percentDiscount: number;
127
- }>>;
128
- refundAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
129
- amountOfPacketsPerFraction: z.ZodBigInt;
130
- buyback: z.ZodObject<{
131
- durationSeconds: z.ZodNumber;
132
- interestPercentage: z.ZodNumber;
133
- liquidationLimitPercentage: z.ZodNumber;
134
- marginCallLimitPercentage: z.ZodNumber;
135
- }, "strip", z.ZodTypeAny, {
136
- durationSeconds: number;
137
- interestPercentage: number;
138
- liquidationLimitPercentage: number;
139
- marginCallLimitPercentage: number;
140
- }, {
141
- durationSeconds: number;
142
- interestPercentage: number;
143
- liquidationLimitPercentage: number;
144
- marginCallLimitPercentage: number;
145
- }>;
146
- }, "strip", z.ZodTypeAny, {
147
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
148
- fractions: {
149
- symbol: string;
150
- name: string;
151
- amount: bigint;
152
- token?: `0x${string}` | undefined;
153
- };
154
- cap: {
155
- soft: bigint;
156
- hard: bigint;
157
- softPerAccount?: bigint | undefined;
158
- hardPerAccount?: bigint | undefined;
159
- };
160
- market: `0x${string}`;
161
- timeBoundary: {
162
- start: Date;
163
- end: Date;
164
- };
165
- wrapped: [{
166
- values: [bigint, ...bigint[]];
167
- type: "ERC20";
168
- address: `0x${string}`;
169
- } | {
170
- type: "ERC721";
171
- address: `0x${string}`;
172
- tokenIds: [bigint, ...bigint[]];
173
- } | {
174
- values: [bigint, ...bigint[]];
175
- type: "ERC1155";
176
- address: `0x${string}`;
177
- tokenIds: [bigint, ...bigint[]];
178
- }, ...({
179
- values: [bigint, ...bigint[]];
180
- type: "ERC20";
181
- address: `0x${string}`;
182
- } | {
183
- type: "ERC721";
184
- address: `0x${string}`;
185
- tokenIds: [bigint, ...bigint[]];
186
- } | {
187
- values: [bigint, ...bigint[]];
188
- type: "ERC1155";
189
- address: `0x${string}`;
190
- tokenIds: [bigint, ...bigint[]];
191
- })[]];
192
- funding: [{
193
- amountPerPacket: bigint;
194
- token: `0x${string}`;
195
- }, ...{
196
- amountPerPacket: bigint;
197
- token: `0x${string}`;
198
- }[]];
199
- refundAddress: `0x${string}`;
200
- amountOfPacketsPerFraction: bigint;
201
- buyback: {
202
- durationSeconds: number;
203
- interestPercentage: number;
204
- liquidationLimitPercentage: number;
205
- marginCallLimitPercentage: number;
206
- };
207
- discounts?: {
208
- burnableTokenAddress: `0x${string}`;
209
- amountToBurn: bigint;
210
- percentDiscount: number;
211
- } | undefined;
212
- }, {
213
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
214
- fractions: {
215
- symbol: string;
216
- name: string;
217
- amount: bigint;
218
- token?: `0x${string}` | undefined;
219
- };
220
- cap: {
221
- soft: bigint;
222
- hard: bigint;
223
- softPerAccount?: bigint | undefined;
224
- hardPerAccount?: bigint | undefined;
225
- };
226
- market: `0x${string}`;
227
- timeBoundary: {
228
- start: Date;
229
- end: Date;
230
- };
231
- wrapped: [{
232
- values: [bigint, ...bigint[]];
233
- type: "ERC20";
234
- address: `0x${string}`;
235
- } | {
236
- type: "ERC721";
237
- address: `0x${string}`;
238
- tokenIds: [bigint, ...bigint[]];
239
- } | {
240
- values: [bigint, ...bigint[]];
241
- type: "ERC1155";
242
- address: `0x${string}`;
243
- tokenIds: [bigint, ...bigint[]];
244
- }, ...({
245
- values: [bigint, ...bigint[]];
246
- type: "ERC20";
247
- address: `0x${string}`;
248
- } | {
249
- type: "ERC721";
250
- address: `0x${string}`;
251
- tokenIds: [bigint, ...bigint[]];
252
- } | {
253
- values: [bigint, ...bigint[]];
254
- type: "ERC1155";
255
- address: `0x${string}`;
256
- tokenIds: [bigint, ...bigint[]];
257
- })[]];
258
- funding: [{
259
- amountPerPacket: bigint;
260
- token: `0x${string}`;
261
- }, ...{
262
- amountPerPacket: bigint;
263
- token: `0x${string}`;
264
- }[]];
265
- refundAddress: `0x${string}`;
266
- amountOfPacketsPerFraction: bigint;
267
- buyback: {
268
- durationSeconds: number;
269
- interestPercentage: number;
270
- liquidationLimitPercentage: number;
271
- marginCallLimitPercentage: number;
272
- };
273
- discounts?: {
274
- burnableTokenAddress: `0x${string}`;
275
- amountToBurn: bigint;
276
- percentDiscount: number;
277
- } | undefined;
278
- }>;
279
- export declare function createLendingSale<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
280
- data: `0x${string}`;
281
- to: `0x${string}`;
282
- details: {
283
- functionName: string;
284
- address: `0x${string}`;
285
- abi: any[];
286
- args: any[];
287
- };
288
- }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
289
- in: {
290
- json: {
291
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
292
- fractions: {
293
- symbol: string;
294
- name: string;
295
- amount: bigint;
296
- token?: `0x${string}` | undefined;
297
- };
298
- cap: {
299
- soft: bigint;
300
- hard: bigint;
301
- softPerAccount?: bigint | undefined;
302
- hardPerAccount?: bigint | undefined;
303
- };
304
- market: `0x${string}`;
305
- timeBoundary: {
306
- start: Date;
307
- end: Date;
308
- };
309
- wrapped: [{
310
- values: [bigint, ...bigint[]];
311
- type: "ERC20";
312
- address: `0x${string}`;
313
- } | {
314
- type: "ERC721";
315
- address: `0x${string}`;
316
- tokenIds: [bigint, ...bigint[]];
317
- } | {
318
- values: [bigint, ...bigint[]];
319
- type: "ERC1155";
320
- address: `0x${string}`;
321
- tokenIds: [bigint, ...bigint[]];
322
- }, ...({
323
- values: [bigint, ...bigint[]];
324
- type: "ERC20";
325
- address: `0x${string}`;
326
- } | {
327
- type: "ERC721";
328
- address: `0x${string}`;
329
- tokenIds: [bigint, ...bigint[]];
330
- } | {
331
- values: [bigint, ...bigint[]];
332
- type: "ERC1155";
333
- address: `0x${string}`;
334
- tokenIds: [bigint, ...bigint[]];
335
- })[]];
336
- funding: [{
337
- amountPerPacket: bigint;
338
- token: `0x${string}`;
339
- }, ...{
340
- amountPerPacket: bigint;
341
- token: `0x${string}`;
342
- }[]];
343
- refundAddress: `0x${string}`;
344
- amountOfPacketsPerFraction: bigint;
345
- buyback: {
346
- durationSeconds: number;
347
- interestPercentage: number;
348
- liquidationLimitPercentage: number;
349
- marginCallLimitPercentage: number;
350
- };
351
- discounts?: {
352
- burnableTokenAddress: `0x${string}`;
353
- amountToBurn: bigint;
354
- percentDiscount: number;
355
- } | undefined;
356
- };
357
- };
358
- out: {
359
- json: {
360
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
361
- fractions: {
362
- symbol: string;
363
- name: string;
364
- amount: bigint;
365
- token?: `0x${string}` | undefined;
366
- };
367
- cap: {
368
- soft: bigint;
369
- hard: bigint;
370
- softPerAccount?: bigint | undefined;
371
- hardPerAccount?: bigint | undefined;
372
- };
373
- market: `0x${string}`;
374
- timeBoundary: {
375
- start: Date;
376
- end: Date;
377
- };
378
- wrapped: [{
379
- values: [bigint, ...bigint[]];
380
- type: "ERC20";
381
- address: `0x${string}`;
382
- } | {
383
- type: "ERC721";
384
- address: `0x${string}`;
385
- tokenIds: [bigint, ...bigint[]];
386
- } | {
387
- values: [bigint, ...bigint[]];
388
- type: "ERC1155";
389
- address: `0x${string}`;
390
- tokenIds: [bigint, ...bigint[]];
391
- }, ...({
392
- values: [bigint, ...bigint[]];
393
- type: "ERC20";
394
- address: `0x${string}`;
395
- } | {
396
- type: "ERC721";
397
- address: `0x${string}`;
398
- tokenIds: [bigint, ...bigint[]];
399
- } | {
400
- values: [bigint, ...bigint[]];
401
- type: "ERC1155";
402
- address: `0x${string}`;
403
- tokenIds: [bigint, ...bigint[]];
404
- })[]];
405
- funding: [{
406
- amountPerPacket: bigint;
407
- token: `0x${string}`;
408
- }, ...{
409
- amountPerPacket: bigint;
410
- token: `0x${string}`;
411
- }[]];
412
- refundAddress: `0x${string}`;
413
- amountOfPacketsPerFraction: bigint;
414
- buyback: {
415
- durationSeconds: number;
416
- interestPercentage: number;
417
- liquidationLimitPercentage: number;
418
- marginCallLimitPercentage: number;
419
- };
420
- discounts?: {
421
- burnableTokenAddress: `0x${string}`;
422
- amountToBurn: bigint;
423
- percentDiscount: number;
424
- } | undefined;
425
- };
426
- };
427
- }, Promise<Response & import("hono").TypedResponse<{
428
- data: `0x${string}`;
429
- to: `0x${string}`;
430
- details: {
431
- functionName: string;
432
- address: `0x${string}`;
433
- abi: any[];
434
- args: any[];
435
- };
436
- }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
437
- in: {
438
- json: {
439
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
440
- fractions: {
441
- symbol: string;
442
- name: string;
443
- amount: bigint;
444
- token?: `0x${string}` | undefined;
445
- };
446
- cap: {
447
- soft: bigint;
448
- hard: bigint;
449
- softPerAccount?: bigint | undefined;
450
- hardPerAccount?: bigint | undefined;
451
- };
452
- market: `0x${string}`;
453
- timeBoundary: {
454
- start: Date;
455
- end: Date;
456
- };
457
- wrapped: [{
458
- values: [bigint, ...bigint[]];
459
- type: "ERC20";
460
- address: `0x${string}`;
461
- } | {
462
- type: "ERC721";
463
- address: `0x${string}`;
464
- tokenIds: [bigint, ...bigint[]];
465
- } | {
466
- values: [bigint, ...bigint[]];
467
- type: "ERC1155";
468
- address: `0x${string}`;
469
- tokenIds: [bigint, ...bigint[]];
470
- }, ...({
471
- values: [bigint, ...bigint[]];
472
- type: "ERC20";
473
- address: `0x${string}`;
474
- } | {
475
- type: "ERC721";
476
- address: `0x${string}`;
477
- tokenIds: [bigint, ...bigint[]];
478
- } | {
479
- values: [bigint, ...bigint[]];
480
- type: "ERC1155";
481
- address: `0x${string}`;
482
- tokenIds: [bigint, ...bigint[]];
483
- })[]];
484
- funding: [{
485
- amountPerPacket: bigint;
486
- token: `0x${string}`;
487
- }, ...{
488
- amountPerPacket: bigint;
489
- token: `0x${string}`;
490
- }[]];
491
- refundAddress: `0x${string}`;
492
- amountOfPacketsPerFraction: bigint;
493
- buyback: {
494
- durationSeconds: number;
495
- interestPercentage: number;
496
- liquidationLimitPercentage: number;
497
- marginCallLimitPercentage: number;
498
- };
499
- discounts?: {
500
- burnableTokenAddress: `0x${string}`;
501
- amountToBurn: bigint;
502
- percentDiscount: number;
503
- } | undefined;
504
- };
505
- };
506
- out: {
507
- json: {
508
- chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
509
- fractions: {
510
- symbol: string;
511
- name: string;
512
- amount: bigint;
513
- token?: `0x${string}` | undefined;
514
- };
515
- cap: {
516
- soft: bigint;
517
- hard: bigint;
518
- softPerAccount?: bigint | undefined;
519
- hardPerAccount?: bigint | undefined;
520
- };
521
- market: `0x${string}`;
522
- timeBoundary: {
523
- start: Date;
524
- end: Date;
525
- };
526
- wrapped: [{
527
- values: [bigint, ...bigint[]];
528
- type: "ERC20";
529
- address: `0x${string}`;
530
- } | {
531
- type: "ERC721";
532
- address: `0x${string}`;
533
- tokenIds: [bigint, ...bigint[]];
534
- } | {
535
- values: [bigint, ...bigint[]];
536
- type: "ERC1155";
537
- address: `0x${string}`;
538
- tokenIds: [bigint, ...bigint[]];
539
- }, ...({
540
- values: [bigint, ...bigint[]];
541
- type: "ERC20";
542
- address: `0x${string}`;
543
- } | {
544
- type: "ERC721";
545
- address: `0x${string}`;
546
- tokenIds: [bigint, ...bigint[]];
547
- } | {
548
- values: [bigint, ...bigint[]];
549
- type: "ERC1155";
550
- address: `0x${string}`;
551
- tokenIds: [bigint, ...bigint[]];
552
- })[]];
553
- funding: [{
554
- amountPerPacket: bigint;
555
- token: `0x${string}`;
556
- }, ...{
557
- amountPerPacket: bigint;
558
- token: `0x${string}`;
559
- }[]];
560
- refundAddress: `0x${string}`;
561
- amountOfPacketsPerFraction: bigint;
562
- buyback: {
563
- durationSeconds: number;
564
- interestPercentage: number;
565
- liquidationLimitPercentage: number;
566
- marginCallLimitPercentage: number;
567
- };
568
- discounts?: {
569
- burnableTokenAddress: `0x${string}`;
570
- amountToBurn: bigint;
571
- percentDiscount: number;
572
- } | undefined;
573
- };
574
- };
575
- }, Promise<Response & import("hono").TypedResponse<{
576
- data: `0x${string}`;
577
- to: `0x${string}`;
578
- details: {
579
- functionName: string;
580
- address: `0x${string}`;
581
- abi: any[];
582
- args: any[];
583
- };
584
- }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
585
- //# sourceMappingURL=createLendingSale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createLendingSale.d.ts","sourceRoot":"","sources":["../../src/lending/createLendingSale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY9C,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAyEnE"}
@@ -1,81 +0,0 @@
1
- import { describeRoute } from "hono-openapi";
2
- import { resolver, validator } from "hono-openapi/zod";
3
- import { buildCreateLendingFractionsTx, WrappedERC1155, WrappedERC20, WrappedERC721, } from "@evergonlabs/tmi-protocol-fractions-sdk";
4
- import { z } from "zod";
5
- import { AddressSchema, TmiChainIdSchema, toTransaction, TransactionSchema } from "../common/index.js";
6
- import { BurnForDiscountSchema, CapitalizationSchema, FractionSchema, FundingSchema, TimeBoundarySchema, WrappedTokenTypeSchema, } from "../fractions/createFractions/v0/createFractions.schema.js";
7
- export const BuyBackConfigSchema = z.object({
8
- durationSeconds: z.number().int().positive(),
9
- interestPercentage: z.number().int().min(0).max(10000),
10
- liquidationLimitPercentage: z.number().int().min(0).max(10000),
11
- marginCallLimitPercentage: z.number().int().min(0).max(10000),
12
- });
13
- export const CreateLendingFractionsRequestSchema = z.object({
14
- chainId: TmiChainIdSchema,
15
- market: AddressSchema,
16
- fractions: FractionSchema,
17
- timeBoundary: TimeBoundarySchema,
18
- cap: CapitalizationSchema,
19
- wrapped: z.array(WrappedTokenTypeSchema).nonempty(),
20
- funding: z.array(FundingSchema).nonempty(),
21
- discounts: BurnForDiscountSchema.optional(),
22
- refundAddress: AddressSchema,
23
- amountOfPacketsPerFraction: z.coerce.bigint().positive(),
24
- buyback: BuyBackConfigSchema,
25
- });
26
- export function createLendingSale(factory) {
27
- const route = describeRoute({
28
- summary: "Create lending sale fractions",
29
- description: "Returns transaction data for creating lending sale fractions",
30
- tags: ["Lending"],
31
- responses: {
32
- 200: {
33
- description: "Returns transaction data for creating lending sale fractions",
34
- content: {
35
- "application/json": {
36
- schema: resolver(TransactionSchema),
37
- },
38
- },
39
- },
40
- },
41
- });
42
- return factory.createHandlers(route, validator("json", CreateLendingFractionsRequestSchema.openapi({ ref: "CreateLendingFractionsRequestSchema" })), async (c) => {
43
- const { chainId, market, wrapped, funding, fractions, timeBoundary, cap, amountOfPacketsPerFraction, refundAddress, discounts, buyback, } = c.req.valid("json");
44
- const wrappedTokens = wrapped.map((token) => {
45
- if (token.type === "ERC20") {
46
- return new WrappedERC20(token.address, token.values[0]);
47
- }
48
- else if (token.type === "ERC721") {
49
- return new WrappedERC721(token.address, token.tokenIds);
50
- }
51
- else if (token.type === "ERC1155") {
52
- return new WrappedERC1155(token.address, token.tokenIds, token.values);
53
- }
54
- else {
55
- throw new Error(`Unsupported token type: ${JSON.stringify(token)}`);
56
- }
57
- });
58
- const lendingFractionsConfig = {
59
- chainId: chainId,
60
- market: market,
61
- wrapped: wrappedTokens,
62
- funding: funding,
63
- fractions: {
64
- name: fractions.name,
65
- symbol: fractions.symbol,
66
- amount: fractions.amount,
67
- },
68
- timeBoundary: {
69
- start: new Date(timeBoundary.start),
70
- end: new Date(timeBoundary.end),
71
- },
72
- discounts: discounts,
73
- cap: cap,
74
- amountOfPacketsPerFraction: amountOfPacketsPerFraction,
75
- refundAddress: refundAddress,
76
- buyback: buyback,
77
- };
78
- const tx = buildCreateLendingFractionsTx(lendingFractionsConfig);
79
- return c.json(toTransaction(tx, true));
80
- });
81
- }