@evergonlabs/tmi-protocol-api 0.10.0-rc.0 → 0.10.0-rc.2

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 (189) hide show
  1. package/dist/app.d.ts +430 -72
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +465 -77
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/common/roles/erc1155-token-roles.d.ts +8 -0
  6. package/dist/common/roles/erc1155-token-roles.d.ts.map +1 -0
  7. package/dist/common/roles/erc1155-token-roles.js +13 -0
  8. package/dist/common/roles/exports.d.ts +1 -0
  9. package/dist/common/roles/exports.d.ts.map +1 -1
  10. package/dist/common/roles/exports.js +1 -0
  11. package/dist/fractions/index.d.ts +71 -71
  12. package/dist/fractions/index.d.ts.map +1 -1
  13. package/dist/fractions/index.js +0 -2
  14. package/dist/fractions/platforms/deployMarket.routes.js +4 -4
  15. package/dist/fractions/platforms/initCompilot.routes.js +1 -1
  16. package/dist/fractions/platforms/initNid.route.js +1 -1
  17. package/dist/fractions/sales/approveSale.route.js +1 -1
  18. package/dist/fractions/sales/approveWrapper.route.d.ts +88 -0
  19. package/dist/fractions/sales/approveWrapper.route.d.ts.map +1 -0
  20. package/dist/fractions/sales/approveWrapper.route.js +92 -0
  21. package/dist/fractions/sales/completeSale.route.js +1 -1
  22. package/dist/fractions/sales/createFractions.route.js +1 -1
  23. package/dist/fractions/sales/getFractionSaleStatistics.route.js +1 -1
  24. package/dist/fractions/sales/getVaultAddress.js +1 -1
  25. package/dist/fractions/sales/getWithdrawEvent.js +1 -1
  26. package/dist/fractions/sales/index.d.ts +71 -1
  27. package/dist/fractions/sales/index.d.ts.map +1 -1
  28. package/dist/fractions/sales/index.js +5 -1
  29. package/dist/fractions/sales/parseFractionsCreatedEvent.js +1 -1
  30. package/dist/fractions/sales/purchase.route.js +1 -1
  31. package/dist/fractions/sales/purchaseStatistics.route.js +1 -1
  32. package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +2 -2
  33. package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +1 -1
  34. package/dist/fractions/sales/recoverFractions.js +1 -1
  35. package/dist/fractions/sales/rejectFractions.js +1 -1
  36. package/dist/fractions/sales/searchActivity.route.js +1 -1
  37. package/dist/fractions/sales/searchSales/searchSales.js +1 -1
  38. package/dist/fractions/sales/searchWithdrawal.route.js +1 -1
  39. package/dist/fractions/sales/setFeeCapLimit.js +1 -1
  40. package/dist/fractions/sales/unlockWrappedAssets.route.js +1 -1
  41. package/dist/fractions/sales/vesting/claimStatistics.route.js +1 -1
  42. package/dist/fractions/sales/vesting/claimVestedTokens.route.js +1 -1
  43. package/dist/fractions/sales/vesting/editCliff.route.js +1 -1
  44. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
  45. package/dist/fractions/sales/withdraw.route.js +1 -1
  46. package/dist/fractions/statistics/networkStatistics.route.js +4 -4
  47. package/dist/issuance/common/factories.base.d.ts +12 -12
  48. package/dist/issuance/erc1155/burn.d.ts +34 -0
  49. package/dist/issuance/erc1155/burn.d.ts.map +1 -0
  50. package/dist/issuance/erc1155/burn.js +40 -0
  51. package/dist/issuance/erc1155/default/deploy.d.ts +34 -0
  52. package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -0
  53. package/dist/issuance/erc1155/default/deploy.js +54 -0
  54. package/dist/issuance/erc1155/default/initialize.d.ts +34 -0
  55. package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -0
  56. package/dist/issuance/erc1155/default/initialize.js +39 -0
  57. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +21 -0
  58. package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -0
  59. package/dist/issuance/erc1155/default/parseDeployEvent.js +75 -0
  60. package/dist/issuance/erc1155/gated/deploy.d.ts +36 -0
  61. package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -0
  62. package/dist/issuance/erc1155/gated/deploy.js +62 -0
  63. package/dist/issuance/erc1155/gated/initialize.d.ts +36 -0
  64. package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -0
  65. package/dist/issuance/erc1155/gated/initialize.js +45 -0
  66. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +21 -0
  67. package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -0
  68. package/dist/issuance/erc1155/gated/parseDeployEvent.js +75 -0
  69. package/dist/issuance/erc1155/grantRole.d.ts +33 -0
  70. package/dist/issuance/erc1155/grantRole.d.ts.map +1 -0
  71. package/dist/issuance/erc1155/grantRole.js +42 -0
  72. package/dist/issuance/erc1155/index.d.ts +361 -0
  73. package/dist/issuance/erc1155/index.d.ts.map +1 -0
  74. package/dist/issuance/erc1155/index.js +38 -0
  75. package/dist/issuance/erc1155/mint.d.ts +34 -0
  76. package/dist/issuance/erc1155/mint.d.ts.map +1 -0
  77. package/dist/issuance/erc1155/mint.js +40 -0
  78. package/dist/issuance/erc1155/recover.d.ts +36 -0
  79. package/dist/issuance/erc1155/recover.d.ts.map +1 -0
  80. package/dist/issuance/erc1155/recover.js +41 -0
  81. package/dist/issuance/erc1155/renounceRole.d.ts +33 -0
  82. package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -0
  83. package/dist/issuance/erc1155/renounceRole.js +42 -0
  84. package/dist/issuance/erc1155/revokeRole.d.ts +33 -0
  85. package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -0
  86. package/dist/issuance/erc1155/revokeRole.js +42 -0
  87. package/dist/issuance/erc1155/setApprovalForAll.d.ts +32 -0
  88. package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -0
  89. package/dist/issuance/erc1155/setApprovalForAll.js +40 -0
  90. package/dist/issuance/erc1155/setBaseURI.d.ts +30 -0
  91. package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -0
  92. package/dist/issuance/erc1155/setBaseURI.js +37 -0
  93. package/dist/issuance/erc1155/setTokenURI.d.ts +32 -0
  94. package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -0
  95. package/dist/issuance/erc1155/setTokenURI.js +39 -0
  96. package/dist/issuance/erc1155/tag.d.ts +4 -0
  97. package/dist/issuance/erc1155/tag.d.ts.map +1 -0
  98. package/dist/issuance/erc1155/tag.js +2 -0
  99. package/dist/issuance/erc20/approve.d.ts.map +1 -1
  100. package/dist/issuance/erc20/approve.js +2 -1
  101. package/dist/issuance/erc20/burn.d.ts.map +1 -1
  102. package/dist/issuance/erc20/burn.js +2 -1
  103. package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
  104. package/dist/issuance/erc20/default/deploy.js +2 -1
  105. package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
  106. package/dist/issuance/erc20/default/initialize.js +2 -1
  107. package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
  108. package/dist/issuance/erc20/default/parseDeployEvent.js +2 -1
  109. package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
  110. package/dist/issuance/erc20/gated/deploy.js +2 -1
  111. package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
  112. package/dist/issuance/erc20/gated/initialize.js +2 -1
  113. package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
  114. package/dist/issuance/erc20/gated/parseDeployEvent.js +2 -1
  115. package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
  116. package/dist/issuance/erc20/gatedSimple/deploy.js +2 -1
  117. package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
  118. package/dist/issuance/erc20/gatedSimple/getInitData.js +2 -1
  119. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
  120. package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +2 -1
  121. package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
  122. package/dist/issuance/erc20/grantRole.js +2 -1
  123. package/dist/issuance/erc20/mint.d.ts.map +1 -1
  124. package/dist/issuance/erc20/mint.js +2 -1
  125. package/dist/issuance/erc20/recover.d.ts.map +1 -1
  126. package/dist/issuance/erc20/recover.js +2 -1
  127. package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
  128. package/dist/issuance/erc20/renounceRole.js +2 -1
  129. package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
  130. package/dist/issuance/erc20/revokeRole.js +2 -1
  131. package/dist/issuance/erc20/tag.d.ts +4 -0
  132. package/dist/issuance/erc20/tag.d.ts.map +1 -0
  133. package/dist/issuance/erc20/tag.js +2 -0
  134. package/dist/issuance/erc20/transfer.d.ts.map +1 -1
  135. package/dist/issuance/erc20/transfer.js +2 -1
  136. package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
  137. package/dist/issuance/erc20/transferFrom.js +2 -1
  138. package/dist/issuance/erc721/approve.d.ts.map +1 -1
  139. package/dist/issuance/erc721/approve.js +3 -2
  140. package/dist/issuance/erc721/burn.d.ts.map +1 -1
  141. package/dist/issuance/erc721/burn.js +3 -2
  142. package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
  143. package/dist/issuance/erc721/default/deploy.js +6 -5
  144. package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
  145. package/dist/issuance/erc721/default/initialize.js +3 -2
  146. package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
  147. package/dist/issuance/erc721/default/parseDeployEvent.js +3 -2
  148. package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
  149. package/dist/issuance/erc721/gated/deploy.js +6 -5
  150. package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
  151. package/dist/issuance/erc721/gated/initialize.js +3 -2
  152. package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
  153. package/dist/issuance/erc721/gated/parseDeployEvent.js +3 -2
  154. package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
  155. package/dist/issuance/erc721/grantRole.js +3 -2
  156. package/dist/issuance/erc721/index.d.ts +0 -1
  157. package/dist/issuance/erc721/index.d.ts.map +1 -1
  158. package/dist/issuance/erc721/mint.d.ts +0 -2
  159. package/dist/issuance/erc721/mint.d.ts.map +1 -1
  160. package/dist/issuance/erc721/mint.js +6 -7
  161. package/dist/issuance/erc721/nextTokenId.d.ts +19 -0
  162. package/dist/issuance/erc721/nextTokenId.d.ts.map +1 -0
  163. package/dist/issuance/erc721/nextTokenId.js +79 -0
  164. package/dist/issuance/erc721/recover.d.ts.map +1 -1
  165. package/dist/issuance/erc721/recover.js +3 -2
  166. package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
  167. package/dist/issuance/erc721/renounceRole.js +3 -2
  168. package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
  169. package/dist/issuance/erc721/revokeRole.js +3 -2
  170. package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
  171. package/dist/issuance/erc721/setBaseURI.js +3 -2
  172. package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
  173. package/dist/issuance/erc721/setTokenURI.js +3 -2
  174. package/dist/issuance/erc721/tag.d.ts +4 -0
  175. package/dist/issuance/erc721/tag.d.ts.map +1 -0
  176. package/dist/issuance/erc721/tag.js +2 -0
  177. package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
  178. package/dist/issuance/erc721/transferFrom.js +3 -2
  179. package/dist/issuance/index.d.ts +359 -1
  180. package/dist/issuance/index.d.ts.map +1 -1
  181. package/dist/issuance/index.js +2 -0
  182. package/dist/issuance/proxy/deploy.d.ts.map +1 -1
  183. package/dist/issuance/proxy/deploy.js +3 -2
  184. package/dist/issuance/proxy/tag.d.ts +4 -0
  185. package/dist/issuance/proxy/tag.d.ts.map +1 -0
  186. package/dist/issuance/proxy/tag.js +2 -0
  187. package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
  188. package/dist/issuance/proxy/upgrade.js +2 -1
  189. package/package.json +16 -14
@@ -298,76 +298,6 @@ export declare const FractionsApi: import("../common/controller.js").IApi<import
298
298
  };
299
299
  };
300
300
  }, "/initNftFractionsCompilot">, "/platforms"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
301
- "/": {
302
- $post: {
303
- input: {
304
- json: {
305
- marketAddress: string;
306
- wrapperAddress: string;
307
- };
308
- };
309
- output: {
310
- data: `0x${string}`;
311
- to: `0x${string}`;
312
- details: {
313
- functionName: string;
314
- address: `0x${string}`;
315
- abi: any[];
316
- args: any[];
317
- };
318
- };
319
- outputFormat: "json";
320
- status: import("hono/utils/http-status").ContentfulStatusCode;
321
- };
322
- };
323
- }, "/approveWrapper"> | import("hono/types").MergeSchemaPath<{
324
- "/": {
325
- $post: {
326
- input: {
327
- json: {
328
- wrapperAddress: string;
329
- erc20Address: string;
330
- amount: string;
331
- };
332
- };
333
- output: {
334
- data: `0x${string}`;
335
- to: `0x${string}`;
336
- details: {
337
- functionName: string;
338
- address: `0x${string}`;
339
- abi: any[];
340
- args: any[];
341
- };
342
- };
343
- outputFormat: "json";
344
- status: import("hono/utils/http-status").ContentfulStatusCode;
345
- };
346
- };
347
- }, "/approveWrapperAsErc20Spender"> | import("hono/types").MergeSchemaPath<{
348
- "/": {
349
- $post: {
350
- input: {
351
- json: {
352
- wrapperAddress: string;
353
- erc721Address: string;
354
- };
355
- };
356
- output: {
357
- data: `0x${string}`;
358
- to: `0x${string}`;
359
- details: {
360
- functionName: string;
361
- address: `0x${string}`;
362
- abi: any[];
363
- args: any[];
364
- };
365
- };
366
- outputFormat: "json";
367
- status: import("hono/utils/http-status").ContentfulStatusCode;
368
- };
369
- };
370
- }, "/approveWrapperAsErc721Spender">, "/fractions"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
371
301
  "/": {
372
302
  $get: {
373
303
  input: {};
@@ -1279,7 +1209,77 @@ export declare const FractionsApi: import("../common/controller.js").IApi<import
1279
1209
  status: 200;
1280
1210
  };
1281
1211
  };
1282
- }, "/getVaultAddress">, "/sales"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1212
+ }, "/getVaultAddress"> | import("hono/types").MergeSchemaPath<{
1213
+ "/": {
1214
+ $post: {
1215
+ input: {
1216
+ json: {
1217
+ marketAddress: string;
1218
+ wrapperAddress: string;
1219
+ };
1220
+ };
1221
+ output: {
1222
+ data: `0x${string}`;
1223
+ to: `0x${string}`;
1224
+ details: {
1225
+ functionName: string;
1226
+ address: `0x${string}`;
1227
+ abi: any[];
1228
+ args: any[];
1229
+ };
1230
+ };
1231
+ outputFormat: "json";
1232
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1233
+ };
1234
+ };
1235
+ }, "/approveWrapper"> | import("hono/types").MergeSchemaPath<{
1236
+ "/": {
1237
+ $post: {
1238
+ input: {
1239
+ json: {
1240
+ wrapperAddress: string;
1241
+ erc20Address: string;
1242
+ amount: string;
1243
+ };
1244
+ };
1245
+ output: {
1246
+ data: `0x${string}`;
1247
+ to: `0x${string}`;
1248
+ details: {
1249
+ functionName: string;
1250
+ address: `0x${string}`;
1251
+ abi: any[];
1252
+ args: any[];
1253
+ };
1254
+ };
1255
+ outputFormat: "json";
1256
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1257
+ };
1258
+ };
1259
+ }, "/approveWrapperAsErc20Spender"> | import("hono/types").MergeSchemaPath<{
1260
+ "/": {
1261
+ $post: {
1262
+ input: {
1263
+ json: {
1264
+ wrapperAddress: string;
1265
+ erc721Address: string;
1266
+ };
1267
+ };
1268
+ output: {
1269
+ data: `0x${string}`;
1270
+ to: `0x${string}`;
1271
+ details: {
1272
+ functionName: string;
1273
+ address: `0x${string}`;
1274
+ abi: any[];
1275
+ args: any[];
1276
+ };
1277
+ };
1278
+ outputFormat: "json";
1279
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1280
+ };
1281
+ };
1282
+ }, "/approveWrapperAsErc721Spender">, "/sales"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1283
1283
  "/": {
1284
1284
  $post: {
1285
1285
  input: {
@@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.js";
2
- import { FractionsSubController } from "./fractions/index.js";
3
2
  import { MarketsController } from "./markets/index.js";
4
3
  import { PlatformsController } from "./platforms/index.js";
5
4
  import { RolesController } from "./roles/index.js";
@@ -13,7 +12,6 @@ export const FractionsApi = createApi({
13
12
  .createApp()
14
13
  .route("/markets", MarketsController.build(factory))
15
14
  .route("/platforms", PlatformsController.build(factory))
16
- .route("/fractions", FractionsSubController.build(factory))
17
15
  .route("/roles", RolesController.build(factory))
18
16
  .route("/sales", SalesController.build(factory))
19
17
  .route("/sig", SigController.build(factory))
@@ -7,7 +7,7 @@ import { DeployMarketRequestSchema } from "./deployMarket.schema.js";
7
7
  const route = describeRoute({
8
8
  summary: "Deploy a market",
9
9
  description: "Returns transaction data for deploying a market",
10
- tags: ["Markets"],
10
+ tags: ["Platforms"],
11
11
  responses: {
12
12
  200: {
13
13
  description: "Returns transaction data for deploying a market",
@@ -36,7 +36,7 @@ export const DeployMarketV0 = createController({
36
36
  const compilotRoute = describeRoute({
37
37
  summary: "Deploy a market gated by ComPilot",
38
38
  description: "Returns transaction data for deploying a ComPilot-gated market",
39
- tags: ["Markets"],
39
+ tags: ["Platforms"],
40
40
  responses: {
41
41
  200: {
42
42
  description: "Returns transaction data for deploying a ComPilot-gated market",
@@ -65,7 +65,7 @@ export const DeployCompilotMarketV0 = createController({
65
65
  const continuousWithdrawRoute = describeRoute({
66
66
  summary: "Deploy a market with continuous withdraw",
67
67
  description: "Returns transaction data for deploying a market with continuous withdraw capability",
68
- tags: ["Markets"],
68
+ tags: ["Platforms"],
69
69
  responses: {
70
70
  200: {
71
71
  description: "Returns transaction data for deploying a market with continuous withdraw",
@@ -94,7 +94,7 @@ export const DeployContinuousWithdrawMarketV0 = createController({
94
94
  const continuousWithdrawNidRoute = describeRoute({
95
95
  summary: "Deploy a market with continuous withdraw and ComPilot gating",
96
96
  description: "Returns transaction data for deploying a market with continuous withdraw capability",
97
- tags: ["Markets"],
97
+ tags: ["Platforms"],
98
98
  responses: {
99
99
  200: {
100
100
  description: "Returns transaction data for deploying a market with continuous withdraw",
@@ -8,7 +8,7 @@ const route = describeRoute({
8
8
  summary: "Initialize ComPilot signer for NFT Fractions market",
9
9
  description: "Returns transaction data for initializing the ComPilot signer on an NFT Fractions market. " +
10
10
  "This must be called after deploying the market to enable compliance gating.",
11
- tags: ["NFT Fractions"],
11
+ tags: ["Platforms"],
12
12
  responses: {
13
13
  200: {
14
14
  description: "Returns transaction data for initializing ComPilot signer",
@@ -8,7 +8,7 @@ import { AddressSchema, DEFAULT_COMPILOT_SIGNER, toTransaction, TransactionSchem
8
8
  const route = describeRoute({
9
9
  summary: "Deploy a market with continuous withdraw",
10
10
  description: "Returns transaction data for deploying a market with continuous withdraw capability",
11
- tags: ["Markets"],
11
+ tags: ["Platforms"],
12
12
  responses: {
13
13
  200: {
14
14
  description: "Returns transaction data for deploying a market with continuous withdraw",
@@ -12,7 +12,7 @@ export const ApproveSaleRequestSchema = z.object({
12
12
  const route = describeRoute({
13
13
  summary: "Approve a sale",
14
14
  description: "Returns transaction data for approving a sale",
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns transaction data for approving a sale",
@@ -0,0 +1,88 @@
1
+ import { z } from "zod";
2
+ export declare const ApproveWrapperRequestSchema: z.ZodObject<{
3
+ marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
4
+ wrapperAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ }, z.core.$strip>;
6
+ export declare const ApproveErc20SpendingToWrapper: z.ZodObject<{
7
+ wrapperAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
8
+ erc20Address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
9
+ amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
10
+ }, z.core.$strip>;
11
+ export declare const ApproveErc721SpendingToWrapper: z.ZodObject<{
12
+ wrapperAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
13
+ erc721Address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
14
+ }, z.core.$strip>;
15
+ export declare const ApproveWrapperV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
16
+ "/": {
17
+ $post: {
18
+ input: {
19
+ json: {
20
+ marketAddress: string;
21
+ wrapperAddress: string;
22
+ };
23
+ };
24
+ output: {
25
+ data: `0x${string}`;
26
+ to: `0x${string}`;
27
+ details: {
28
+ functionName: string;
29
+ address: `0x${string}`;
30
+ abi: any[];
31
+ args: any[];
32
+ };
33
+ };
34
+ outputFormat: "json";
35
+ status: import("hono/utils/http-status").ContentfulStatusCode;
36
+ };
37
+ };
38
+ }, "/", "/">>;
39
+ export declare const ApproveErc20SpendingToWrapperV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
40
+ "/": {
41
+ $post: {
42
+ input: {
43
+ json: {
44
+ wrapperAddress: string;
45
+ erc20Address: string;
46
+ amount: string;
47
+ };
48
+ };
49
+ output: {
50
+ data: `0x${string}`;
51
+ to: `0x${string}`;
52
+ details: {
53
+ functionName: string;
54
+ address: `0x${string}`;
55
+ abi: any[];
56
+ args: any[];
57
+ };
58
+ };
59
+ outputFormat: "json";
60
+ status: import("hono/utils/http-status").ContentfulStatusCode;
61
+ };
62
+ };
63
+ }, "/", "/">>;
64
+ export declare const ApproveErc721SpendingToWrapperV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
65
+ "/": {
66
+ $post: {
67
+ input: {
68
+ json: {
69
+ wrapperAddress: string;
70
+ erc721Address: string;
71
+ };
72
+ };
73
+ output: {
74
+ data: `0x${string}`;
75
+ to: `0x${string}`;
76
+ details: {
77
+ functionName: string;
78
+ address: `0x${string}`;
79
+ abi: any[];
80
+ args: any[];
81
+ };
82
+ };
83
+ outputFormat: "json";
84
+ status: import("hono/utils/http-status").ContentfulStatusCode;
85
+ };
86
+ };
87
+ }, "/", "/">>;
88
+ //# sourceMappingURL=approveWrapper.route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approveWrapper.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/approveWrapper.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAkBH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;aAc3B,CAAC;AAkBH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;aAc1C,CAAC;AAkBH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;aAc3C,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { z } from "zod";
4
+ import { buildApproveErc20SpendingToWrapperTx, buildApproveErc721SpendingToWrapperTx, buildApproveWrapperTx, } from "@evergonlabs/tmi-protocol-fractions-sdk";
5
+ import { createController } from "../../common/controller.js";
6
+ import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
+ import { Int256BigInt } from "../../common/int256.js";
8
+ export const ApproveWrapperRequestSchema = z.object({
9
+ marketAddress: AddressSchema,
10
+ wrapperAddress: AddressSchema,
11
+ });
12
+ export const ApproveErc20SpendingToWrapper = z.object({
13
+ wrapperAddress: AddressSchema,
14
+ erc20Address: AddressSchema,
15
+ amount: Int256BigInt(),
16
+ });
17
+ export const ApproveErc721SpendingToWrapper = z.object({
18
+ wrapperAddress: AddressSchema,
19
+ erc721Address: AddressSchema,
20
+ });
21
+ const route = describeRoute({
22
+ summary: "Approve a wrapper",
23
+ description: "Returns transaction data for approving a wrapper",
24
+ tags: ["Sales"],
25
+ responses: {
26
+ 200: {
27
+ description: "Returns transaction data for approving a wrapper",
28
+ content: {
29
+ "application/json": {
30
+ schema: resolver(TransactionSchema),
31
+ },
32
+ },
33
+ },
34
+ },
35
+ });
36
+ export const ApproveWrapperV0 = createController({
37
+ build: (factory) => factory
38
+ .createApp()
39
+ .post("/", route, validator("json", ApproveWrapperRequestSchema.openapi("ApproveWrapperRequestSchema")), async (c) => {
40
+ const { marketAddress, wrapperAddress } = c.req.valid("json");
41
+ const tx = buildApproveWrapperTx(marketAddress, wrapperAddress);
42
+ return c.json(toTransaction(tx));
43
+ }),
44
+ });
45
+ const route_erc20 = describeRoute({
46
+ summary: "Approve wrapped ERC20 spending",
47
+ description: "Returns transaction data for approving a wrapper as a spender of wrapped ERC20",
48
+ tags: ["Sales"],
49
+ responses: {
50
+ 200: {
51
+ description: "Returns transaction data for approving a wrapper",
52
+ content: {
53
+ "application/json": {
54
+ schema: resolver(TransactionSchema),
55
+ },
56
+ },
57
+ },
58
+ },
59
+ });
60
+ export const ApproveErc20SpendingToWrapperV0 = createController({
61
+ build: (factory) => factory
62
+ .createApp()
63
+ .post("/", route_erc20, validator("json", ApproveErc20SpendingToWrapper.openapi("ApproveErc20SpendingToWrapper")), async (c) => {
64
+ const { wrapperAddress, erc20Address, amount } = c.req.valid("json");
65
+ const tx = buildApproveErc20SpendingToWrapperTx(wrapperAddress, erc20Address, amount);
66
+ return c.json(toTransaction(tx));
67
+ }),
68
+ });
69
+ const routeErc721 = describeRoute({
70
+ summary: "Approve wrapped ERC721 spending",
71
+ description: "Returns transaction data for approving a wrapper",
72
+ tags: ["Sales"],
73
+ responses: {
74
+ 200: {
75
+ description: "Returns transaction data for approving a wrapper",
76
+ content: {
77
+ "application/json": {
78
+ schema: resolver(TransactionSchema),
79
+ },
80
+ },
81
+ },
82
+ },
83
+ });
84
+ export const ApproveErc721SpendingToWrapperV0 = createController({
85
+ build: (factory) => factory
86
+ .createApp()
87
+ .post("/", routeErc721, validator("json", ApproveErc721SpendingToWrapper.openapi("ApproveErc721SpendingToWrapper")), async (c) => {
88
+ const { wrapperAddress, erc721Address } = c.req.valid("json");
89
+ const tx = buildApproveErc721SpendingToWrapperTx(wrapperAddress, erc721Address);
90
+ return c.json(toTransaction(tx));
91
+ }),
92
+ });
@@ -12,7 +12,7 @@ export const CompleteSaleRequestSchema = z.object({
12
12
  const route = describeRoute({
13
13
  summary: "Complete a sale",
14
14
  description: "Returns transaction data for completing a sale",
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns transaction data for completing a sale",
@@ -7,7 +7,7 @@ import { CreateFractionsRequestSchema, createWrapped } from "./createFractions.s
7
7
  const route = describeRoute({
8
8
  summary: "Create fractions",
9
9
  description: "Returns transaction data for creating fractions",
10
- tags: ["Fractions"],
10
+ tags: ["Sales"],
11
11
  responses: {
12
12
  200: {
13
13
  description: "Returns transaction data for creating fractions",
@@ -21,7 +21,7 @@ export const GetFractionSaleStatisticsV0 = createController({
21
21
  build: (factory) => factory.createApp().post("/", describeRoute({
22
22
  summary: "Aggregate sale statistics",
23
23
  description: "",
24
- tags: ["Fractions"],
24
+ tags: ["Sales"],
25
25
  responses: {
26
26
  200: {
27
27
  description: "",
@@ -12,7 +12,7 @@ export const GetVaultAddressV0 = createController({
12
12
  build: (factory) => factory.createApp().get("/", describeRoute({
13
13
  summary: "Get Vault address",
14
14
  description: "Returns address of sale's vault",
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns address of vault",
@@ -12,7 +12,7 @@ export const GetWithdrawEventV0 = createController({
12
12
  build: (factory) => factory.createApp().get("/", describeRoute({
13
13
  summary: "Get Withdraw Event",
14
14
  description: `Gets the transaction by hash and parses emitted logs.`,
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns parsed event log",
@@ -864,5 +864,75 @@ export declare const SalesController: import("../../common/controller.js").ICont
864
864
  status: 200;
865
865
  };
866
866
  };
867
- }, "/getVaultAddress">, "/", "/">>;
867
+ }, "/getVaultAddress"> | import("hono/types").MergeSchemaPath<{
868
+ "/": {
869
+ $post: {
870
+ input: {
871
+ json: {
872
+ marketAddress: string;
873
+ wrapperAddress: string;
874
+ };
875
+ };
876
+ output: {
877
+ data: `0x${string}`;
878
+ to: `0x${string}`;
879
+ details: {
880
+ functionName: string;
881
+ address: `0x${string}`;
882
+ abi: any[];
883
+ args: any[];
884
+ };
885
+ };
886
+ outputFormat: "json";
887
+ status: import("hono/utils/http-status").ContentfulStatusCode;
888
+ };
889
+ };
890
+ }, "/approveWrapper"> | import("hono/types").MergeSchemaPath<{
891
+ "/": {
892
+ $post: {
893
+ input: {
894
+ json: {
895
+ wrapperAddress: string;
896
+ erc20Address: string;
897
+ amount: string;
898
+ };
899
+ };
900
+ output: {
901
+ data: `0x${string}`;
902
+ to: `0x${string}`;
903
+ details: {
904
+ functionName: string;
905
+ address: `0x${string}`;
906
+ abi: any[];
907
+ args: any[];
908
+ };
909
+ };
910
+ outputFormat: "json";
911
+ status: import("hono/utils/http-status").ContentfulStatusCode;
912
+ };
913
+ };
914
+ }, "/approveWrapperAsErc20Spender"> | import("hono/types").MergeSchemaPath<{
915
+ "/": {
916
+ $post: {
917
+ input: {
918
+ json: {
919
+ wrapperAddress: string;
920
+ erc721Address: string;
921
+ };
922
+ };
923
+ output: {
924
+ data: `0x${string}`;
925
+ to: `0x${string}`;
926
+ details: {
927
+ functionName: string;
928
+ address: `0x${string}`;
929
+ abi: any[];
930
+ args: any[];
931
+ };
932
+ };
933
+ outputFormat: "json";
934
+ status: import("hono/utils/http-status").ContentfulStatusCode;
935
+ };
936
+ };
937
+ }, "/approveWrapperAsErc721Spender">, "/", "/">>;
868
938
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA+B1B,CAAC"}
@@ -5,6 +5,7 @@ import { ClaimVestedTokensV0 } from "./vesting/claimVestedTokens.route.js";
5
5
  import { EditCliffV0 } from "./vesting/editCliff.route.js";
6
6
  import { ParseClaimVestedTokensEventV0 } from "./vesting/parseClaimVestedTokensEvent.js";
7
7
  import { ApproveSaleV0 } from "./approveSale.route.js";
8
+ import { ApproveErc20SpendingToWrapperV0, ApproveErc721SpendingToWrapperV0, ApproveWrapperV0, } from "./approveWrapper.route.js";
8
9
  import { CompleteSaleV0 } from "./completeSale.route.js";
9
10
  import { CreateFractionsV0 } from "./createFractions.route.js";
10
11
  import { GetFractionSaleStatisticsV0 } from "./getFractionSaleStatistics.route.js";
@@ -48,5 +49,8 @@ export const SalesController = createController({
48
49
  .route("/statistics", GetFractionSaleStatisticsV0.build(factory))
49
50
  .route("/setFeeCapLimit", SetFeeCapLimitV0.build(factory))
50
51
  .route("/getWithdrawEvent", GetWithdrawEventV0.build(factory))
51
- .route("/getVaultAddress", GetVaultAddressV0.build(factory)),
52
+ .route("/getVaultAddress", GetVaultAddressV0.build(factory))
53
+ .route("/approveWrapper", ApproveWrapperV0.build(factory))
54
+ .route("/approveWrapperAsErc20Spender", ApproveErc20SpendingToWrapperV0.build(factory))
55
+ .route("/approveWrapperAsErc721Spender", ApproveErc721SpendingToWrapperV0.build(factory)),
52
56
  });
@@ -12,7 +12,7 @@ export const ParseFractionsCreatedEventV0 = createController({
12
12
  build: (factory) => factory.createApp().get("/", describeRoute({
13
13
  summary: "Get FractionsCreated Event",
14
14
  description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`createFractions\` action`,
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns parsed event log",
@@ -13,7 +13,7 @@ export const PurchaseRequestSchema = SaleIdSchema.extend({
13
13
  const route = describeRoute({
14
14
  summary: "Make a purchase",
15
15
  description: "Returns transaction data for making a purchase",
16
- tags: ["Fractions"],
16
+ tags: ["Sales"],
17
17
  responses: {
18
18
  200: {
19
19
  description: "Returns transaction data for making a purchase",
@@ -10,7 +10,7 @@ export const PurchaseStatisticsV0 = createController({
10
10
  build: (factory) => factory.createApp().post("/", describeRoute({
11
11
  summary: "Aggregate investor statistics for certain campaign",
12
12
  description: "Returns aggregated statistics about investor purchases for a specific campaign, grouped by price ID. Statistics include the number of purchases and the total number of fractions sold.",
13
- tags: ["Fractions"],
13
+ tags: ["Sales"],
14
14
  responses: {
15
15
  200: {
16
16
  description: "Aggregated purchase statistics for the specified campaign and investor.",
@@ -16,7 +16,7 @@ export const ReceiveFundsAfterNonFundedRequestSchema = z
16
16
  const route = describeRoute({
17
17
  summary: "Receive funds after non funded state",
18
18
  description: "Returns transaction to receive funds after a sale enters non funded state",
19
- tags: ["Fractions"],
19
+ tags: ["Sales"],
20
20
  responses: {
21
21
  200: {
22
22
  description: "Returns transaction to receive funds after non funded state",
@@ -42,7 +42,7 @@ export const ReceiveFundsAfterNonFundedV0 = createController({
42
42
  const checkAndJumpToNonFundedRoute = describeRoute({
43
43
  summary: "Check and jump to non funded state",
44
44
  description: "Returns transaction to check and jump a sale to non funded state if conditions are met",
45
- tags: ["Fractions"],
45
+ tags: ["Sales"],
46
46
  responses: {
47
47
  200: {
48
48
  description: "Returns transaction to check and jump to non funded state",
@@ -7,7 +7,7 @@ import { SaleIdSchema } from "../../common/models/saleId.js";
7
7
  const route = describeRoute({
8
8
  summary: "Receive non-purchased wrapped assets",
9
9
  description: "Returns transaction to receive non-purchased wrapped assets from a sale",
10
- tags: ["Fractions"],
10
+ tags: ["Sales"],
11
11
  responses: {
12
12
  200: {
13
13
  description: "Returns transaction to receive non-purchased wrapped assets",
@@ -18,7 +18,7 @@ export const RecoverFractionsRequestSchema = z
18
18
  const route = describeRoute({
19
19
  summary: "Recover fractions",
20
20
  description: "Returns transaction data for recovering fractions from a lost account",
21
- tags: ["Fractions"],
21
+ tags: ["Sales"],
22
22
  responses: {
23
23
  200: {
24
24
  description: "Returns transaction data for recovering fractions",