@evergonlabs/tmi-protocol-api 0.8.1 → 0.9.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 (343) hide show
  1. package/dist/app.d.ts +462 -67
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +591 -180
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/common/middleware/indexer.d.ts +1 -1
  6. package/dist/common/middleware/indexer.d.ts.map +1 -1
  7. package/dist/factory.d.ts +1 -3
  8. package/dist/factory.d.ts.map +1 -1
  9. package/dist/fractions/fractions/approveWrapper.route.d.ts +3 -3
  10. package/dist/fractions/fractions/approveWrapper.route.d.ts.map +1 -1
  11. package/dist/fractions/fractions/index.d.ts +1 -1
  12. package/dist/fractions/fractions/index.d.ts.map +1 -1
  13. package/dist/fractions/index.d.ts +154 -6
  14. package/dist/fractions/index.d.ts.map +1 -1
  15. package/dist/fractions/markets/getDeployEvent.d.ts +1 -1
  16. package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
  17. package/dist/fractions/markets/getMarket/getMarket.d.ts +22 -2
  18. package/dist/fractions/markets/getMarket/getMarket.d.ts.map +1 -1
  19. package/dist/fractions/markets/getMarket/index.d.ts +22 -2
  20. package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
  21. package/dist/fractions/markets/index.d.ts +43 -3
  22. package/dist/fractions/markets/index.d.ts.map +1 -1
  23. package/dist/fractions/markets/searchMarkets/index.d.ts +22 -2
  24. package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
  25. package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts +22 -2
  26. package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts.map +1 -1
  27. package/dist/fractions/platforms/deployMarket.routes.d.ts +4 -4
  28. package/dist/fractions/platforms/deployMarket.routes.d.ts.map +1 -1
  29. package/dist/fractions/platforms/index.d.ts +1 -1
  30. package/dist/fractions/platforms/index.d.ts.map +1 -1
  31. package/dist/fractions/platforms/initCompilot.routes.d.ts +1 -1
  32. package/dist/fractions/platforms/initCompilot.routes.d.ts.map +1 -1
  33. package/dist/fractions/platforms/initNid.route.d.ts +1 -1
  34. package/dist/fractions/platforms/initNid.route.d.ts.map +1 -1
  35. package/dist/fractions/roles/getRoles.d.ts +1 -1
  36. package/dist/fractions/roles/getRoles.d.ts.map +1 -1
  37. package/dist/fractions/roles/grantRole.route.d.ts +1 -1
  38. package/dist/fractions/roles/grantRole.route.d.ts.map +1 -1
  39. package/dist/fractions/roles/index.d.ts +1 -1
  40. package/dist/fractions/roles/index.d.ts.map +1 -1
  41. package/dist/fractions/sales/approveSale.route.d.ts +1 -1
  42. package/dist/fractions/sales/approveSale.route.d.ts.map +1 -1
  43. package/dist/fractions/sales/completeSale.route.d.ts +1 -1
  44. package/dist/fractions/sales/completeSale.route.d.ts.map +1 -1
  45. package/dist/fractions/sales/createFractions.route.d.ts +1 -1
  46. package/dist/fractions/sales/createFractions.route.d.ts.map +1 -1
  47. package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +1 -1
  48. package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
  49. package/dist/fractions/sales/getVaultAddress.d.ts +1 -1
  50. package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
  51. package/dist/fractions/sales/getWithdrawEvent.d.ts +1 -1
  52. package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
  53. package/dist/fractions/sales/index.d.ts +112 -4
  54. package/dist/fractions/sales/index.d.ts.map +1 -1
  55. package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +1 -1
  56. package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
  57. package/dist/fractions/sales/purchase.route.d.ts +1 -1
  58. package/dist/fractions/sales/purchase.route.d.ts.map +1 -1
  59. package/dist/fractions/sales/purchaseStatistics.route.d.ts +1 -1
  60. package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +1 -1
  61. package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +2 -2
  62. package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -1
  63. package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +1 -1
  64. package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -1
  65. package/dist/fractions/sales/recoverFractions.d.ts +1 -1
  66. package/dist/fractions/sales/recoverFractions.d.ts.map +1 -1
  67. package/dist/fractions/sales/rejectFractions.d.ts +1 -1
  68. package/dist/fractions/sales/rejectFractions.d.ts.map +1 -1
  69. package/dist/fractions/sales/searchActivity.route.d.ts +1 -1
  70. package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -1
  71. package/dist/fractions/sales/searchSales/searchSales.d.ts +67 -2
  72. package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
  73. package/dist/fractions/sales/searchWithdrawal.route.d.ts +35 -2
  74. package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
  75. package/dist/fractions/sales/setFeeCapLimit.d.ts +1 -1
  76. package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -1
  77. package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +1 -1
  78. package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -1
  79. package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +12 -2
  80. package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +1 -1
  81. package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts +1 -1
  82. package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +1 -1
  83. package/dist/fractions/sales/vesting/editCliff.route.d.ts +1 -1
  84. package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +1 -1
  85. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +1 -1
  86. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
  87. package/dist/fractions/sales/withdraw.route.d.ts +1 -1
  88. package/dist/fractions/sales/withdraw.route.d.ts.map +1 -1
  89. package/dist/fractions/sig/getAuthData.d.ts +1 -1
  90. package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
  91. package/dist/fractions/sig/getNonce.route.d.ts +1 -1
  92. package/dist/fractions/sig/getNonce.route.d.ts.map +1 -1
  93. package/dist/fractions/sig/index.d.ts +1 -1
  94. package/dist/fractions/sig/index.d.ts.map +1 -1
  95. package/dist/fractions/statistics/index.d.ts +1 -1
  96. package/dist/fractions/statistics/index.d.ts.map +1 -1
  97. package/dist/fractions/statistics/networkStatistics.route.d.ts +4 -4
  98. package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -1
  99. package/dist/general/estimateGas.d.ts +1 -1
  100. package/dist/general/estimateGas.d.ts.map +1 -1
  101. package/dist/general/getBalance.d.ts +1 -1
  102. package/dist/general/getBalance.d.ts.map +1 -1
  103. package/dist/general/getBalancesBatch.d.ts +1 -1
  104. package/dist/general/getBalancesBatch.d.ts.map +1 -1
  105. package/dist/general/index.d.ts +1 -1
  106. package/dist/general/index.d.ts.map +1 -1
  107. package/dist/general/searchBalances.d.ts +1 -1
  108. package/dist/general/searchBalances.d.ts.map +1 -1
  109. package/dist/issuance/common/exports.d.ts +1 -1
  110. package/dist/issuance/common/exports.d.ts.map +1 -1
  111. package/dist/issuance/common/exports.js +1 -1
  112. package/dist/issuance/common/factories.base.d.ts +167 -0
  113. package/dist/issuance/common/factories.base.d.ts.map +1 -0
  114. package/dist/issuance/common/factories.base.js +15 -0
  115. package/dist/issuance/common/factories.d.ts +1 -166
  116. package/dist/issuance/common/factories.d.ts.map +1 -1
  117. package/dist/issuance/common/factories.js +2 -15
  118. package/dist/issuance/erc20/approve.d.ts +1 -1
  119. package/dist/issuance/erc20/approve.d.ts.map +1 -1
  120. package/dist/issuance/erc20/burn.d.ts +1 -1
  121. package/dist/issuance/erc20/burn.d.ts.map +1 -1
  122. package/dist/issuance/erc20/default/deploy.d.ts +38 -0
  123. package/dist/issuance/erc20/default/deploy.d.ts.map +1 -0
  124. package/dist/issuance/erc20/default/deploy.js +54 -0
  125. package/dist/issuance/erc20/default/initialize.d.ts +38 -0
  126. package/dist/issuance/erc20/default/initialize.d.ts.map +1 -0
  127. package/dist/issuance/erc20/default/initialize.js +43 -0
  128. package/dist/issuance/erc20/default/parseDeployEvent.d.ts +23 -0
  129. package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -0
  130. package/dist/issuance/erc20/default/parseDeployEvent.js +79 -0
  131. package/dist/issuance/erc20/gated/deploy.d.ts +40 -0
  132. package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -0
  133. package/dist/issuance/erc20/gated/deploy.js +60 -0
  134. package/dist/issuance/erc20/gated/initialize.d.ts +40 -0
  135. package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -0
  136. package/dist/issuance/erc20/gated/initialize.js +45 -0
  137. package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +23 -0
  138. package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -0
  139. package/dist/issuance/erc20/gated/parseDeployEvent.js +79 -0
  140. package/dist/issuance/erc20/gatedSimple/deploy.d.ts +15 -0
  141. package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -0
  142. package/dist/issuance/erc20/gatedSimple/deploy.js +28 -0
  143. package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +32 -0
  144. package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -0
  145. package/dist/issuance/erc20/gatedSimple/getInitData.js +51 -0
  146. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +18 -0
  147. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -0
  148. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +63 -0
  149. package/dist/issuance/erc20/grantRole.d.ts +1 -1
  150. package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
  151. package/dist/issuance/erc20/index.d.ts +126 -30
  152. package/dist/issuance/erc20/index.d.ts.map +1 -1
  153. package/dist/issuance/erc20/index.js +21 -7
  154. package/dist/issuance/erc20/mint.d.ts +1 -1
  155. package/dist/issuance/erc20/mint.d.ts.map +1 -1
  156. package/dist/issuance/erc20/recover.d.ts +1 -1
  157. package/dist/issuance/erc20/recover.d.ts.map +1 -1
  158. package/dist/issuance/erc20/renounceRole.d.ts +1 -1
  159. package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
  160. package/dist/issuance/erc20/revokeRole.d.ts +1 -1
  161. package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
  162. package/dist/issuance/erc20/transfer.d.ts +1 -1
  163. package/dist/issuance/erc20/transfer.d.ts.map +1 -1
  164. package/dist/issuance/erc20/transferFrom.d.ts +1 -1
  165. package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
  166. package/dist/issuance/erc721/approve.d.ts +1 -1
  167. package/dist/issuance/erc721/approve.d.ts.map +1 -1
  168. package/dist/issuance/erc721/burn.d.ts +1 -1
  169. package/dist/issuance/erc721/burn.d.ts.map +1 -1
  170. package/dist/issuance/erc721/default/deploy.d.ts +38 -0
  171. package/dist/issuance/erc721/default/deploy.d.ts.map +1 -0
  172. package/dist/issuance/erc721/default/deploy.js +53 -0
  173. package/dist/issuance/erc721/default/initialize.d.ts +38 -0
  174. package/dist/issuance/erc721/default/initialize.d.ts.map +1 -0
  175. package/dist/issuance/erc721/default/initialize.js +40 -0
  176. package/dist/issuance/erc721/default/parseDeployEvent.d.ts +23 -0
  177. package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -0
  178. package/dist/issuance/erc721/default/parseDeployEvent.js +78 -0
  179. package/dist/issuance/erc721/gated/deploy.d.ts +40 -0
  180. package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -0
  181. package/dist/issuance/erc721/gated/deploy.js +60 -0
  182. package/dist/issuance/erc721/gated/initialize.d.ts +40 -0
  183. package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -0
  184. package/dist/issuance/erc721/gated/initialize.js +44 -0
  185. package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +23 -0
  186. package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -0
  187. package/dist/issuance/erc721/gated/parseDeployEvent.js +78 -0
  188. package/dist/issuance/erc721/grantRole.d.ts +1 -1
  189. package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
  190. package/dist/issuance/erc721/index.d.ts +78 -29
  191. package/dist/issuance/erc721/index.d.ts.map +1 -1
  192. package/dist/issuance/erc721/index.js +14 -7
  193. package/dist/issuance/erc721/mint.d.ts +1 -1
  194. package/dist/issuance/erc721/mint.d.ts.map +1 -1
  195. package/dist/issuance/erc721/recover.d.ts +1 -1
  196. package/dist/issuance/erc721/recover.d.ts.map +1 -1
  197. package/dist/issuance/erc721/renounceRole.d.ts +1 -1
  198. package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
  199. package/dist/issuance/erc721/revokeRole.d.ts +1 -1
  200. package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
  201. package/dist/issuance/erc721/setBaseURI.d.ts +1 -1
  202. package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
  203. package/dist/issuance/erc721/setTokenURI.d.ts +1 -1
  204. package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
  205. package/dist/issuance/erc721/transferFrom.d.ts +1 -1
  206. package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
  207. package/dist/issuance/index.d.ts +186 -41
  208. package/dist/issuance/index.d.ts.map +1 -1
  209. package/dist/issuance/proxy/deploy.d.ts +2 -2
  210. package/dist/issuance/proxy/deploy.d.ts.map +1 -1
  211. package/dist/issuance/proxy/index.d.ts +1 -1
  212. package/dist/issuance/proxy/index.d.ts.map +1 -1
  213. package/dist/issuance/proxy/upgrade.d.ts +1 -1
  214. package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
  215. package/dist/next/fractions/index.d.ts +1 -1
  216. package/dist/next/fractions/index.d.ts.map +1 -1
  217. package/dist/next/fractions/lending/buyback/buyback.routes.d.ts +1 -1
  218. package/dist/next/fractions/lending/buyback/buyback.routes.d.ts.map +1 -1
  219. package/dist/next/fractions/lending/createLendingSale.d.ts +1 -1
  220. package/dist/next/fractions/lending/createLendingSale.d.ts.map +1 -1
  221. package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts +1 -1
  222. package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -1
  223. package/dist/next/fractions/lending/index.d.ts +1 -1
  224. package/dist/next/fractions/lending/index.d.ts.map +1 -1
  225. package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts +1 -1
  226. package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -1
  227. package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +1 -1
  228. package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -1
  229. package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts +1 -1
  230. package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -1
  231. package/dist/next/fractions/platforms/index.d.ts +1 -1
  232. package/dist/next/fractions/platforms/index.d.ts.map +1 -1
  233. package/dist/next/fractions/sales/createNftFractions.routes.d.ts +1 -1
  234. package/dist/next/fractions/sales/createNftFractions.routes.d.ts.map +1 -1
  235. package/dist/next/fractions/sales/index.d.ts +1 -1
  236. package/dist/next/fractions/sales/index.d.ts.map +1 -1
  237. package/dist/staking/index.d.ts +76 -8
  238. package/dist/staking/index.d.ts.map +1 -1
  239. package/dist/staking/platforms/getPlatform/index.d.ts +1 -1
  240. package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
  241. package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +1 -1
  242. package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
  243. package/dist/staking/platforms/index.d.ts +1 -1
  244. package/dist/staking/platforms/index.d.ts.map +1 -1
  245. package/dist/staking/platforms/searchPlatforms/index.d.ts +1 -1
  246. package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
  247. package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +1 -1
  248. package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
  249. package/dist/staking/pools/getPool/index.d.ts +10 -2
  250. package/dist/staking/pools/getPool/index.d.ts.map +1 -1
  251. package/dist/staking/pools/getPool/v0/getPool.d.ts +11 -2
  252. package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
  253. package/dist/staking/pools/index.d.ts +19 -3
  254. package/dist/staking/pools/index.d.ts.map +1 -1
  255. package/dist/staking/pools/searchPools/index.d.ts +10 -2
  256. package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
  257. package/dist/staking/pools/searchPools/v0/searchPools.d.ts +11 -2
  258. package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
  259. package/dist/staking/roles/getRoles/index.d.ts +1 -1
  260. package/dist/staking/roles/getRoles/index.d.ts.map +1 -1
  261. package/dist/staking/roles/getRoles/v0/getRoles.d.ts +1 -1
  262. package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -1
  263. package/dist/staking/roles/grantRole/index.d.ts +1 -1
  264. package/dist/staking/roles/grantRole/index.d.ts.map +1 -1
  265. package/dist/staking/roles/grantRole/v0/grantRole.d.ts +1 -1
  266. package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -1
  267. package/dist/staking/roles/index.d.ts +20 -3
  268. package/dist/staking/roles/index.d.ts.map +1 -1
  269. package/dist/staking/roles/searchRoleEvents/index.d.ts +11 -2
  270. package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
  271. package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +11 -2
  272. package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
  273. package/dist/staking/roles/searchRoles/index.d.ts +10 -2
  274. package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
  275. package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +11 -2
  276. package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
  277. package/dist/staking/stakes/getStake/index.d.ts +15 -2
  278. package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
  279. package/dist/staking/stakes/getStake/v0/getStake.d.ts +15 -2
  280. package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
  281. package/dist/staking/stakes/index.d.ts +39 -4
  282. package/dist/staking/stakes/index.d.ts.map +1 -1
  283. package/dist/staking/stakes/searchStakeEvents/index.d.ts +11 -2
  284. package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
  285. package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +12 -2
  286. package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
  287. package/dist/staking/stakes/searchStakes/index.d.ts +15 -2
  288. package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
  289. package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +15 -2
  290. package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
  291. package/dist/stakingTemplates/index.d.ts +43 -7
  292. package/dist/stakingTemplates/index.d.ts.map +1 -1
  293. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +6 -2
  294. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
  295. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +1 -1
  296. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
  297. package/dist/stakingTemplates/templates/common/getReward.d.ts +1 -1
  298. package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
  299. package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +10 -2
  300. package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
  301. package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +1 -1
  302. package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
  303. package/dist/stakingTemplates/templates/common/unstake.d.ts +1 -1
  304. package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
  305. package/dist/stakingTemplates/templates/reputation/index.d.ts +15 -3
  306. package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
  307. package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts +1 -1
  308. package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +1 -1
  309. package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +1 -1
  310. package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +1 -1
  311. package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +15 -3
  312. package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +1 -1
  313. package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +1 -1
  314. package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +1 -1
  315. package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts +1 -1
  316. package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +1 -1
  317. package/dist/stakingTemplates/templates/reputationLock/index.d.ts +15 -3
  318. package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
  319. package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts +1 -1
  320. package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -1
  321. package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +1 -1
  322. package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +1 -1
  323. package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +15 -3
  324. package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +1 -1
  325. package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +1 -1
  326. package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +1 -1
  327. package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +1 -1
  328. package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +1 -1
  329. package/dist/stakingTemplates/templates/rwa/index.d.ts +15 -3
  330. package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
  331. package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +1 -1
  332. package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +1 -1
  333. package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +1 -1
  334. package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +1 -1
  335. package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +1 -1
  336. package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +1 -1
  337. package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +15 -3
  338. package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +1 -1
  339. package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts +1 -1
  340. package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +1 -1
  341. package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +1 -1
  342. package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +1 -1
  343. package/package.json +12 -12
@@ -0,0 +1,38 @@
1
+ import { z } from "zod";
2
+ export declare const InitializeErc721RequestSchema: z.ZodObject<{
3
+ tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
4
+ name: z.ZodString;
5
+ symbol: z.ZodString;
6
+ baseURI: z.ZodString;
7
+ defaultAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
9
+ }, z.core.$strip>;
10
+ export declare const InitializeDefaultErc721: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
11
+ "/": {
12
+ $post: {
13
+ input: {
14
+ json: {
15
+ tokenAddress: string;
16
+ name: string;
17
+ symbol: string;
18
+ baseURI: string;
19
+ defaultAdmin: string;
20
+ minter: string;
21
+ };
22
+ };
23
+ output: {
24
+ data: `0x${string}`;
25
+ to: `0x${string}`;
26
+ details: {
27
+ functionName: string;
28
+ address: `0x${string}`;
29
+ abi: any[];
30
+ args: any[];
31
+ };
32
+ };
33
+ outputFormat: "json";
34
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35
+ };
36
+ };
37
+ }, "/", "/">>;
38
+ //# sourceMappingURL=initialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc721/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,6BAA6B;;;;;;;iBAOxC,CAAC;AAkBH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAclC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { z } from "zod";
4
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
+ import { createController } from "../../../common/controller.js";
6
+ import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
+ export const InitializeErc721RequestSchema = z.object({
8
+ tokenAddress: AddressSchema,
9
+ name: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
10
+ symbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
11
+ baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
12
+ defaultAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
13
+ minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
14
+ });
15
+ const initializeRoute = describeRoute({
16
+ summary: "Initialize ERC721",
17
+ description: "Returns transaction data for initializing an ERC721 token proxy contract",
18
+ tags: ["Issuance"],
19
+ responses: {
20
+ 200: {
21
+ description: "Returns transaction data for initializing an ERC721 token",
22
+ content: {
23
+ "application/json": {
24
+ schema: resolver(TransactionSchema),
25
+ },
26
+ },
27
+ },
28
+ },
29
+ });
30
+ export const InitializeDefaultErc721 = createController({
31
+ build: (factory) => factory.createApp().post("/", initializeRoute, validator("json", InitializeErc721RequestSchema), async (c) => {
32
+ const { tokenAddress, name, symbol, baseURI, defaultAdmin, minter } = c.req.valid("json");
33
+ return c.json(toTransaction({
34
+ address: tokenAddress,
35
+ abi: abis.erc721PausableRecoverableUpgradeableAbi,
36
+ functionName: "initialize",
37
+ args: [name, symbol, baseURI, defaultAdmin, minter],
38
+ }));
39
+ }),
40
+ });
@@ -0,0 +1,23 @@
1
+ export declare const ParseDefaultErc721DeployEvent: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
2
+ "/": {
3
+ $get: {
4
+ input: {
5
+ query: {
6
+ chainId: string | string[];
7
+ hash: string | string[];
8
+ };
9
+ };
10
+ output: {
11
+ proxy: `0x${string}`;
12
+ admin: `0x${string}`;
13
+ minter: `0x${string}`;
14
+ name: string;
15
+ symbol: string;
16
+ baseURI: string;
17
+ };
18
+ outputFormat: "json";
19
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20
+ };
21
+ };
22
+ }, "/", "/">>;
23
+ //# sourceMappingURL=parseDeployEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc721/default/parseDeployEvent.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;aAoDxC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { parseEventLogs } from "viem";
4
+ import { waitForTransactionReceipt } from "viem/actions";
5
+ import { z } from "zod";
6
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
7
+ import { getPublicClient } from "../../../common/blockchain.js";
8
+ import { createController } from "../../../common/controller.js";
9
+ import { HttpError } from "../../../common/http-error.js";
10
+ import { AddressSchema, HashSchema } from "../../../common/index.js";
11
+ import { FactoryChainIdQuery } from "../../common/factories.js";
12
+ const QuerySchema = z.object({
13
+ chainId: FactoryChainIdQuery.openapi({
14
+ param: {
15
+ name: "chainId",
16
+ in: "query",
17
+ },
18
+ }),
19
+ hash: HashSchema.openapi({
20
+ param: {
21
+ name: "hash",
22
+ in: "query",
23
+ },
24
+ }),
25
+ });
26
+ export const ParseDefaultErc721DeployEvent = createController({
27
+ build: (factory) => factory.createApp().get("/", describeRoute({
28
+ summary: "Get ERC721 TokenProxyConfigured Event",
29
+ description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC721 factory \`deployAndInitializeProxy\` action`,
30
+ tags: ["Issuance"],
31
+ responses: {
32
+ 200: {
33
+ description: "Returns parsed event log",
34
+ content: {
35
+ "application/json": {
36
+ schema: resolver(z.object({
37
+ proxy: AddressSchema,
38
+ admin: AddressSchema,
39
+ minter: AddressSchema,
40
+ name: z.string(),
41
+ symbol: z.string(),
42
+ baseURI: z.string(),
43
+ })),
44
+ },
45
+ },
46
+ },
47
+ },
48
+ }), validator("query", QuerySchema), async (c) => {
49
+ const params = c.req.valid("query");
50
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
51
+ hash: params.hash,
52
+ });
53
+ const [event] = parseEventLogs({
54
+ abi: abis.erc721PausableRecoverableFactoryAbi,
55
+ eventName: "TokenProxyConfigured",
56
+ logs: receipt.logs,
57
+ });
58
+ if (!event) {
59
+ throw new UnableParseDefaultErc721DeployEvent();
60
+ }
61
+ return c.json({
62
+ proxy: event.args.proxy,
63
+ admin: event.args.admin,
64
+ minter: event.args.minter,
65
+ name: event.args.name,
66
+ symbol: event.args.symbol,
67
+ baseURI: event.args.baseURI,
68
+ });
69
+ }),
70
+ });
71
+ class UnableParseDefaultErc721DeployEvent extends HttpError {
72
+ constructor() {
73
+ super(500, {
74
+ message: `Can't parse TokenProxyConfigured event. Make sure you're passing a transaction generated by the ERC721 factory \`deployAndInitializeProxy\` action`,
75
+ name: "UnableParseDefaultErc721DeployEvent",
76
+ });
77
+ }
78
+ }
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export declare const DeployGatedErc721RequestSchema: z.ZodObject<{
3
+ chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 72080>, z.ZodLiteral<11155111 | 72080>, ...z.ZodLiteral<11155111 | 72080>[]]>;
4
+ tokenName: z.ZodString;
5
+ tokenSymbol: z.ZodString;
6
+ baseURI: z.ZodString;
7
+ defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
9
+ gatingSigner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
10
+ }, z.core.$strip>;
11
+ export declare const CreateGatedErc721Token: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
12
+ "/": {
13
+ $post: {
14
+ input: {
15
+ json: {
16
+ chainId: 11155111 | 72080;
17
+ tokenName: string;
18
+ tokenSymbol: string;
19
+ baseURI: string;
20
+ defaultTokenAdmin: string;
21
+ minter: string;
22
+ gatingSigner?: string | undefined;
23
+ };
24
+ };
25
+ output: {
26
+ data: `0x${string}`;
27
+ to: `0x${string}`;
28
+ details: {
29
+ functionName: string;
30
+ address: `0x${string}`;
31
+ abi: any[];
32
+ args: any[];
33
+ };
34
+ };
35
+ outputFormat: "json";
36
+ status: import("hono/utils/http-status").ContentfulStatusCode;
37
+ };
38
+ };
39
+ }, "/", "/">>;
40
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc721/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,8BAA8B;;;;;;;;iBAUzC,CAAC;AA8BH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiBjC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { z } from "zod";
4
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
+ import { createController } from "../../../common/controller.js";
6
+ import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
+ import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
8
+ import { FactoryChainId, getFactories } from "../../common/factories.js";
9
+ export const DeployGatedErc721RequestSchema = z.object({
10
+ chainId: FactoryChainId.Schema,
11
+ tokenName: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
12
+ tokenSymbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
13
+ baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
14
+ defaultTokenAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
15
+ minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
16
+ gatingSigner: AddressSchema.optional().openapi({
17
+ description: "Address of the gating signer for whitelist verification. Defaults to the ComPilot signer.",
18
+ }),
19
+ });
20
+ const deployGatedErc721Route = describeRoute({
21
+ summary: "Deploy Gated ERC721 via Factory",
22
+ description: `This contract has not been audited.
23
+
24
+ Returns transaction data for deploying a new gated ERC721 token via the factory contract.
25
+
26
+ Calls deployAndInitializeProxy on the ERC721GatedPausableRecoverableFactory to atomically deploy and initialize a new token proxy with whitelist gating.
27
+
28
+ The deployed token supports:
29
+ - mint(to, tokenId) - Mint token (MINTER_ROLE gated)
30
+ - burn(tokenId) - Burn token (owner, approved, or MINTER_ROLE)
31
+ - setBaseURI(uri) - Set base URI (URI_SETTER_ROLE gated)
32
+ - setTokenURI(tokenId, uri) - Set token-specific URI (URI_SETTER_ROLE gated)
33
+ - setContractURI(uri) - Set contract metadata URI (URI_SETTER_ROLE gated)
34
+ - Whitelist gating via gatingSigner for transfer verification`,
35
+ tags: ["Issuance"],
36
+ responses: {
37
+ 200: {
38
+ description: "Returns transaction data for deploying a gated ERC721 token via factory",
39
+ content: {
40
+ "application/json": {
41
+ schema: resolver(TransactionSchema),
42
+ },
43
+ },
44
+ },
45
+ },
46
+ });
47
+ export const CreateGatedErc721Token = createController({
48
+ build: (factory) => factory
49
+ .createApp()
50
+ .post("/", deployGatedErc721Route, validator("json", DeployGatedErc721RequestSchema), async (c) => {
51
+ const { chainId, tokenName, tokenSymbol, baseURI, defaultTokenAdmin, minter, gatingSigner } = c.req.valid("json");
52
+ const factory = getFactories(chainId);
53
+ return c.json(toTransaction({
54
+ address: factory.ERC721GatedPausableRecoverableFactory,
55
+ abi: abis.erc721GatedPausableRecoverableFactoryAbi,
56
+ functionName: "deployAndInitializeProxy",
57
+ args: [tokenName, tokenSymbol, baseURI, defaultTokenAdmin, minter, gatingSigner ?? DEFAULT_COMPILOT_SIGNER],
58
+ }));
59
+ }),
60
+ });
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export declare const InitializeGatedErc721RequestSchema: z.ZodObject<{
3
+ tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
4
+ name: z.ZodString;
5
+ symbol: z.ZodString;
6
+ baseURI: z.ZodString;
7
+ defaultAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
9
+ gatingSigner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
10
+ }, z.core.$strip>;
11
+ export declare const InitializeGatedErc721: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
12
+ "/": {
13
+ $post: {
14
+ input: {
15
+ json: {
16
+ tokenAddress: string;
17
+ name: string;
18
+ symbol: string;
19
+ baseURI: string;
20
+ defaultAdmin: string;
21
+ minter: string;
22
+ gatingSigner?: string | undefined;
23
+ };
24
+ };
25
+ output: {
26
+ data: `0x${string}`;
27
+ to: `0x${string}`;
28
+ details: {
29
+ functionName: string;
30
+ address: `0x${string}`;
31
+ abi: any[];
32
+ args: any[];
33
+ };
34
+ };
35
+ outputFormat: "json";
36
+ status: import("hono/utils/http-status").ContentfulStatusCode;
37
+ };
38
+ };
39
+ }, "/", "/">>;
40
+ //# sourceMappingURL=initialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc721/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kCAAkC;;;;;;;;iBAU7C,CAAC;AAkBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAchC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { z } from "zod";
4
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
+ import { createController } from "../../../common/controller.js";
6
+ import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
+ import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
8
+ export const InitializeGatedErc721RequestSchema = z.object({
9
+ tokenAddress: AddressSchema,
10
+ name: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
11
+ symbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
12
+ baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
13
+ defaultAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
14
+ minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
15
+ gatingSigner: AddressSchema.optional().openapi({
16
+ description: "Address of the gating signer for whitelist verification. Defaults to the ComPilot signer.",
17
+ }),
18
+ });
19
+ const initializeRoute = describeRoute({
20
+ summary: "Initialize Gated ERC721",
21
+ description: "Returns transaction data for initializing a gated ERC721 token proxy contract",
22
+ tags: ["Issuance"],
23
+ responses: {
24
+ 200: {
25
+ description: "Returns transaction data for initializing a gated ERC721 token",
26
+ content: {
27
+ "application/json": {
28
+ schema: resolver(TransactionSchema),
29
+ },
30
+ },
31
+ },
32
+ },
33
+ });
34
+ export const InitializeGatedErc721 = createController({
35
+ build: (factory) => factory.createApp().post("/", initializeRoute, validator("json", InitializeGatedErc721RequestSchema), async (c) => {
36
+ const { tokenAddress, name, symbol, baseURI, defaultAdmin, minter, gatingSigner } = c.req.valid("json");
37
+ return c.json(toTransaction({
38
+ address: tokenAddress,
39
+ abi: abis.erc721WhitelistGatedPausableRecoverableUpgradeableAbi,
40
+ functionName: "initialize",
41
+ args: [name, symbol, baseURI, defaultAdmin, minter, gatingSigner ?? DEFAULT_COMPILOT_SIGNER],
42
+ }));
43
+ }),
44
+ });
@@ -0,0 +1,23 @@
1
+ export declare const ParseGatedErc721DeployEvent: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
2
+ "/": {
3
+ $get: {
4
+ input: {
5
+ query: {
6
+ chainId: string | string[];
7
+ hash: string | string[];
8
+ };
9
+ };
10
+ output: {
11
+ proxy: `0x${string}`;
12
+ admin: `0x${string}`;
13
+ minter: `0x${string}`;
14
+ name: string;
15
+ symbol: string;
16
+ baseURI: string;
17
+ };
18
+ outputFormat: "json";
19
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20
+ };
21
+ };
22
+ }, "/", "/">>;
23
+ //# sourceMappingURL=parseDeployEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc721/gated/parseDeployEvent.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;aAoDtC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { parseEventLogs } from "viem";
4
+ import { waitForTransactionReceipt } from "viem/actions";
5
+ import { z } from "zod";
6
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
7
+ import { getPublicClient } from "../../../common/blockchain.js";
8
+ import { createController } from "../../../common/controller.js";
9
+ import { HttpError } from "../../../common/http-error.js";
10
+ import { AddressSchema, HashSchema } from "../../../common/index.js";
11
+ import { FactoryChainIdQuery } from "../../common/factories.js";
12
+ const QuerySchema = z.object({
13
+ chainId: FactoryChainIdQuery.openapi({
14
+ param: {
15
+ name: "chainId",
16
+ in: "query",
17
+ },
18
+ }),
19
+ hash: HashSchema.openapi({
20
+ param: {
21
+ name: "hash",
22
+ in: "query",
23
+ },
24
+ }),
25
+ });
26
+ export const ParseGatedErc721DeployEvent = createController({
27
+ build: (factory) => factory.createApp().get("/", describeRoute({
28
+ summary: "Get Gated ERC721 TokenProxyConfigured Event",
29
+ description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the Gated ERC721 factory \`deployAndInitializeProxy\` action`,
30
+ tags: ["Issuance"],
31
+ responses: {
32
+ 200: {
33
+ description: "Returns parsed event log",
34
+ content: {
35
+ "application/json": {
36
+ schema: resolver(z.object({
37
+ proxy: AddressSchema,
38
+ admin: AddressSchema,
39
+ minter: AddressSchema,
40
+ name: z.string(),
41
+ symbol: z.string(),
42
+ baseURI: z.string(),
43
+ })),
44
+ },
45
+ },
46
+ },
47
+ },
48
+ }), validator("query", QuerySchema), async (c) => {
49
+ const params = c.req.valid("query");
50
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
51
+ hash: params.hash,
52
+ });
53
+ const [event] = parseEventLogs({
54
+ abi: abis.erc721GatedPausableRecoverableFactoryAbi,
55
+ eventName: "TokenProxyConfigured",
56
+ logs: receipt.logs,
57
+ });
58
+ if (!event) {
59
+ throw new UnableParseGatedErc721DeployEvent();
60
+ }
61
+ return c.json({
62
+ proxy: event.args.proxy,
63
+ admin: event.args.admin,
64
+ minter: event.args.minter,
65
+ name: event.args.name,
66
+ symbol: event.args.symbol,
67
+ baseURI: event.args.baseURI,
68
+ });
69
+ }),
70
+ });
71
+ class UnableParseGatedErc721DeployEvent extends HttpError {
72
+ constructor() {
73
+ super(500, {
74
+ message: `Can't parse TokenProxyConfigured event. Make sure you're passing a transaction generated by the Gated ERC721 factory \`deployAndInitializeProxy\` action`,
75
+ name: "UnableParseGatedErc721DeployEvent",
76
+ });
77
+ }
78
+ }
@@ -29,5 +29,5 @@ export declare const GrantRoleErc721: import("../../common/controller.js").ICont
29
29
  status: import("hono/utils/http-status").ContentfulStatusCode;
30
30
  };
31
31
  };
32
- }, "/">>;
32
+ }, "/", "/">>;
33
33
  //# sourceMappingURL=grantRole.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAgC,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE3G,eAAO,MAAM,4BAA4B;;;;iBAOvC,CAAC;AAkBH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;QAc1B,CAAC"}
1
+ {"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAgC,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE3G,eAAO,MAAM,4BAA4B;;;;iBAOvC,CAAC;AAkBH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;aAc1B,CAAC"}
@@ -26,6 +26,54 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
26
26
  };
27
27
  };
28
28
  }, "/deploy"> | import("hono/types").MergeSchemaPath<{
29
+ "/": {
30
+ $post: {
31
+ input: {
32
+ json: {
33
+ tokenAddress: string;
34
+ name: string;
35
+ symbol: string;
36
+ baseURI: string;
37
+ defaultAdmin: string;
38
+ minter: string;
39
+ };
40
+ };
41
+ output: {
42
+ data: `0x${string}`;
43
+ to: `0x${string}`;
44
+ details: {
45
+ functionName: string;
46
+ address: `0x${string}`;
47
+ abi: any[];
48
+ args: any[];
49
+ };
50
+ };
51
+ outputFormat: "json";
52
+ status: import("hono/utils/http-status").ContentfulStatusCode;
53
+ };
54
+ };
55
+ }, "/initialize"> | import("hono/types").MergeSchemaPath<{
56
+ "/": {
57
+ $get: {
58
+ input: {
59
+ query: {
60
+ chainId: string | string[];
61
+ hash: string | string[];
62
+ };
63
+ };
64
+ output: {
65
+ proxy: `0x${string}`;
66
+ admin: `0x${string}`;
67
+ minter: `0x${string}`;
68
+ name: string;
69
+ symbol: string;
70
+ baseURI: string;
71
+ };
72
+ outputFormat: "json";
73
+ status: import("hono/utils/http-status").ContentfulStatusCode;
74
+ };
75
+ };
76
+ }, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
29
77
  "/": {
30
78
  $post: {
31
79
  input: {
@@ -54,6 +102,34 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
54
102
  };
55
103
  };
56
104
  }, "/deployGated"> | import("hono/types").MergeSchemaPath<{
105
+ "/": {
106
+ $post: {
107
+ input: {
108
+ json: {
109
+ tokenAddress: string;
110
+ name: string;
111
+ symbol: string;
112
+ baseURI: string;
113
+ defaultAdmin: string;
114
+ minter: string;
115
+ gatingSigner?: string | undefined;
116
+ };
117
+ };
118
+ output: {
119
+ data: `0x${string}`;
120
+ to: `0x${string}`;
121
+ details: {
122
+ functionName: string;
123
+ address: `0x${string}`;
124
+ abi: any[];
125
+ args: any[];
126
+ };
127
+ };
128
+ outputFormat: "json";
129
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
+ };
131
+ };
132
+ }, "/initializeGated"> | import("hono/types").MergeSchemaPath<{
57
133
  "/": {
58
134
  $get: {
59
135
  input: {
@@ -74,7 +150,7 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
74
150
  status: import("hono/utils/http-status").ContentfulStatusCode;
75
151
  };
76
152
  };
77
- }, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
153
+ }, "/getDeployEventGated"> | import("hono/types").MergeSchemaPath<{
78
154
  "/": {
79
155
  $post: {
80
156
  input: {
@@ -314,32 +390,5 @@ export declare const Erc721Controller: import("../../common/controller.js").ICon
314
390
  status: import("hono/utils/http-status").ContentfulStatusCode;
315
391
  };
316
392
  };
317
- }, "/setTokenURI"> | import("hono/types").MergeSchemaPath<{
318
- "/": {
319
- $post: {
320
- input: {
321
- json: {
322
- tokenAddress: string;
323
- name: string;
324
- symbol: string;
325
- baseURI: string;
326
- defaultAdmin: string;
327
- minter: string;
328
- };
329
- };
330
- output: {
331
- data: `0x${string}`;
332
- to: `0x${string}`;
333
- details: {
334
- functionName: string;
335
- address: `0x${string}`;
336
- abi: any[];
337
- args: any[];
338
- };
339
- };
340
- outputFormat: "json";
341
- status: import("hono/utils/http-status").ContentfulStatusCode;
342
- };
343
- };
344
- }, "/initialize">, "/">>;
393
+ }, "/setTokenURI">, "/", "/">>;
345
394
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkB3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAuB3B,CAAC"}