@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
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ import { Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
3
+ export declare const RevokeRoleErc1155RequestSchema: z.ZodObject<{
4
+ tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ role: z.ZodEnum<typeof Erc1155TokenRole>;
6
+ account: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
+ }, z.core.$strip>;
8
+ export declare const RevokeRoleErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
9
+ "/": {
10
+ $post: {
11
+ input: {
12
+ json: {
13
+ tokenAddress: string;
14
+ role: Erc1155TokenRole;
15
+ account: string;
16
+ };
17
+ };
18
+ output: {
19
+ data: `0x${string}`;
20
+ to: `0x${string}`;
21
+ details: {
22
+ functionName: string;
23
+ address: `0x${string}`;
24
+ abi: any[];
25
+ args: any[];
26
+ };
27
+ };
28
+ outputFormat: "json";
29
+ status: import("hono/utils/http-status").ContentfulStatusCode;
30
+ };
31
+ };
32
+ }, "/", "/">>;
33
+ //# sourceMappingURL=revokeRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revokeRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/revokeRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG5G,eAAO,MAAM,8BAA8B;;;;iBAOzC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
@@ -0,0 +1,42 @@
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 { convertErc1155TokenRoleToHash, Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
8
+ import { erc1155Tag } from "./tag.js";
9
+ export const RevokeRoleErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ role: z.nativeEnum(Erc1155TokenRole).openapi({
12
+ description: "The role to revoke",
13
+ example: Erc1155TokenRole.MINTER_ROLE,
14
+ }),
15
+ account: AddressSchema.openapi({ description: "The address to revoke the role from" }),
16
+ });
17
+ const revokeRoleRoute = describeRoute({
18
+ summary: "Revoke Role on ERC1155",
19
+ description: "Returns transaction data for revoking a role on the ERC1155 token contract",
20
+ tags: [erc1155Tag.tag],
21
+ responses: {
22
+ 200: {
23
+ description: "Returns transaction data for revoking a role",
24
+ content: {
25
+ "application/json": {
26
+ schema: resolver(TransactionSchema),
27
+ },
28
+ },
29
+ },
30
+ },
31
+ });
32
+ export const RevokeRoleErc1155 = createController({
33
+ build: (factory) => factory.createApp().post("/", revokeRoleRoute, validator("json", RevokeRoleErc1155RequestSchema), async (c) => {
34
+ const { tokenAddress, role, account } = c.req.valid("json");
35
+ return c.json(toTransaction({
36
+ address: tokenAddress,
37
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
38
+ functionName: "revokeRole",
39
+ args: [convertErc1155TokenRoleToHash(role), account],
40
+ }));
41
+ }),
42
+ });
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ export declare const SetApprovalForAllErc1155RequestSchema: 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
+ operator: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ approved: z.ZodBoolean;
6
+ }, z.core.$strip>;
7
+ export declare const SetApprovalForAllErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
8
+ "/": {
9
+ $post: {
10
+ input: {
11
+ json: {
12
+ tokenAddress: string;
13
+ operator: string;
14
+ approved: boolean;
15
+ };
16
+ };
17
+ output: {
18
+ data: `0x${string}`;
19
+ to: `0x${string}`;
20
+ details: {
21
+ functionName: string;
22
+ address: `0x${string}`;
23
+ abi: any[];
24
+ args: any[];
25
+ };
26
+ };
27
+ outputFormat: "json";
28
+ status: import("hono/utils/http-status").ContentfulStatusCode;
29
+ };
30
+ };
31
+ }, "/", "/">>;
32
+ //# sourceMappingURL=setApprovalForAll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setApprovalForAll.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setApprovalForAll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qCAAqC;;;;iBAIhD,CAAC;AAkBH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;aAgBnC,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
+ import { erc1155Tag } from "./tag.js";
8
+ export const SetApprovalForAllErc1155RequestSchema = z.object({
9
+ tokenAddress: AddressSchema,
10
+ operator: AddressSchema.openapi({ description: "Address to grant/revoke approval for all tokens" }),
11
+ approved: z.boolean().openapi({ description: "True to approve, false to revoke" }),
12
+ });
13
+ const setApprovalForAllRoute = describeRoute({
14
+ summary: "Set Approval For All ERC1155",
15
+ description: "Returns transaction data for granting or revoking approval for all ERC1155 tokens",
16
+ tags: [erc1155Tag.tag],
17
+ responses: {
18
+ 200: {
19
+ description: "Returns transaction data for setting approval for all tokens",
20
+ content: {
21
+ "application/json": {
22
+ schema: resolver(TransactionSchema),
23
+ },
24
+ },
25
+ },
26
+ },
27
+ });
28
+ export const SetApprovalForAllErc1155 = createController({
29
+ build: (factory) => factory
30
+ .createApp()
31
+ .post("/", setApprovalForAllRoute, validator("json", SetApprovalForAllErc1155RequestSchema), async (c) => {
32
+ const { tokenAddress, operator, approved } = c.req.valid("json");
33
+ return c.json(toTransaction({
34
+ address: tokenAddress,
35
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
36
+ functionName: "setApprovalForAll",
37
+ args: [operator, approved],
38
+ }));
39
+ }),
40
+ });
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const SetBaseURIErc1155RequestSchema: 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
+ baseURI: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const SetBaseURIErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
7
+ "/": {
8
+ $post: {
9
+ input: {
10
+ json: {
11
+ tokenAddress: string;
12
+ baseURI: string;
13
+ };
14
+ };
15
+ output: {
16
+ data: `0x${string}`;
17
+ to: `0x${string}`;
18
+ details: {
19
+ functionName: string;
20
+ address: `0x${string}`;
21
+ abi: any[];
22
+ args: any[];
23
+ };
24
+ };
25
+ outputFormat: "json";
26
+ status: import("hono/utils/http-status").ContentfulStatusCode;
27
+ };
28
+ };
29
+ }, "/", "/">>;
30
+ //# sourceMappingURL=setBaseURI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBaseURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setBaseURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
@@ -0,0 +1,37 @@
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 { erc1155Tag } from "./tag.js";
8
+ export const SetBaseURIErc1155RequestSchema = z.object({
9
+ tokenAddress: AddressSchema,
10
+ baseURI: z.string().nonempty().openapi({ description: "New base URI for token metadata" }),
11
+ });
12
+ const setBaseURIRoute = describeRoute({
13
+ summary: "Set Base URI for ERC1155",
14
+ description: "Returns transaction data for setting the base URI for ERC1155 metadata (DEFAULT_ADMIN_ROLE gated)",
15
+ tags: [erc1155Tag.tag],
16
+ responses: {
17
+ 200: {
18
+ description: "Returns transaction data for setting base URI",
19
+ content: {
20
+ "application/json": {
21
+ schema: resolver(TransactionSchema),
22
+ },
23
+ },
24
+ },
25
+ },
26
+ });
27
+ export const SetBaseURIErc1155 = createController({
28
+ build: (factory) => factory.createApp().post("/", setBaseURIRoute, validator("json", SetBaseURIErc1155RequestSchema), async (c) => {
29
+ const { tokenAddress, baseURI } = c.req.valid("json");
30
+ return c.json(toTransaction({
31
+ address: tokenAddress,
32
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
33
+ functionName: "setBaseURI",
34
+ args: [baseURI],
35
+ }));
36
+ }),
37
+ });
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ export declare const SetTokenURIErc1155RequestSchema: 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
+ id: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
5
+ tokenURI: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const SetTokenURIErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
8
+ "/": {
9
+ $post: {
10
+ input: {
11
+ json: {
12
+ tokenAddress: string;
13
+ id: string;
14
+ tokenURI: string;
15
+ };
16
+ };
17
+ output: {
18
+ data: `0x${string}`;
19
+ to: `0x${string}`;
20
+ details: {
21
+ functionName: string;
22
+ address: `0x${string}`;
23
+ abi: any[];
24
+ args: any[];
25
+ };
26
+ };
27
+ outputFormat: "json";
28
+ status: import("hono/utils/http-status").ContentfulStatusCode;
29
+ };
30
+ };
31
+ }, "/", "/">>;
32
+ //# sourceMappingURL=setTokenURI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setTokenURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setTokenURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAC;AAmBH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;aAc7B,CAAC"}
@@ -0,0 +1,39 @@
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 { Int256BigInt } from "../../common/int256.js";
8
+ import { erc1155Tag } from "./tag.js";
9
+ export const SetTokenURIErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ id: Int256BigInt(z.bigint().nonnegative()),
12
+ tokenURI: z.string().nonempty().openapi({ description: "URI for the specific token metadata" }),
13
+ });
14
+ const setTokenURIRoute = describeRoute({
15
+ summary: "Set Token URI for ERC1155",
16
+ description: "Returns transaction data for setting the URI for a specific ERC1155 token ID (DEFAULT_ADMIN_ROLE required)",
17
+ tags: [erc1155Tag.tag],
18
+ responses: {
19
+ 200: {
20
+ description: "Returns transaction data for setting token URI",
21
+ content: {
22
+ "application/json": {
23
+ schema: resolver(TransactionSchema),
24
+ },
25
+ },
26
+ },
27
+ },
28
+ });
29
+ export const SetTokenURIErc1155 = createController({
30
+ build: (factory) => factory.createApp().post("/", setTokenURIRoute, validator("json", SetTokenURIErc1155RequestSchema), async (c) => {
31
+ const { tokenAddress, id, tokenURI } = c.req.valid("json");
32
+ return c.json(toTransaction({
33
+ address: tokenAddress,
34
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
35
+ functionName: "setTokenURI",
36
+ args: [BigInt(id), tokenURI],
37
+ }));
38
+ }),
39
+ });
@@ -0,0 +1,4 @@
1
+ export declare const erc1155Tag: {
2
+ tag: "ERC1155";
3
+ };
4
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/tag.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;CAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { createTag } from "../../common/tag.js";
2
+ export const erc1155Tag = createTag("ERC1155");
@@ -1 +1 @@
1
- {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
1
+ {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
5
  import { createController } from "../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
7
  import { Int256BigInt } from "../../common/int256.js";
8
+ import { erc20Tag } from "./tag.js";
8
9
  export const ApproveErc20RequestSchema = z.object({
9
10
  tokenAddress: AddressSchema,
10
11
  spender: AddressSchema,
@@ -13,7 +14,7 @@ export const ApproveErc20RequestSchema = z.object({
13
14
  const approveRoute = describeRoute({
14
15
  summary: "Approve Gated ERC20",
15
16
  description: "Returns transaction data for approving spender to use a gated ERC20",
16
- tags: ["Issuance"],
17
+ tags: [erc20Tag.tag],
17
18
  responses: {
18
19
  200: {
19
20
  description: "Returns transaction data for approving a gated ERC20",
@@ -1 +1 @@
1
- {"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
1
+ {"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
5
  import { createController } from "../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
7
  import { Int256BigInt } from "../../common/int256.js";
8
+ import { erc20Tag } from "./tag.js";
8
9
  export const BurnErc20RequestSchema = z.object({
9
10
  tokenAddress: AddressSchema,
10
11
  amount: Int256BigInt(z.bigint().nonnegative()),
@@ -13,7 +14,7 @@ export const BurnErc20RequestSchema = z.object({
13
14
  const burnRoute = describeRoute({
14
15
  summary: "Burn Gated ERC20",
15
16
  description: "Returns transaction data for burning a gated ERC20",
16
- tags: ["Issuance"],
17
+ tags: [erc20Tag.tag],
17
18
  responses: {
18
19
  200: {
19
20
  description: "Returns transaction data for burning a gated ERC20",
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AA6BH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAe3B,CAAC"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AA6BH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAe3B,CAAC"}
@@ -6,6 +6,7 @@ import { createController } from "../../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
7
  import { Int256BigInt } from "../../../common/int256.js";
8
8
  import { FactoryChainId, getFactories } from "../../common/factories.js";
9
+ import { erc20Tag } from "../tag.js";
9
10
  export const DeployErc20RequestSchema = z.object({
10
11
  chainId: FactoryChainId.Schema,
11
12
  tokenName: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
@@ -28,7 +29,7 @@ The deployed token supports:
28
29
  - burnFrom(account, amount) - Burn from account (with allowance)
29
30
  - pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
30
31
  - recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
31
- tags: ["Issuance"],
32
+ tags: [erc20Tag.tag],
32
33
  responses: {
33
34
  200: {
34
35
  description: "Returns transaction data for deploying an ERC20 token via factory",
@@ -1 +1 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mCAAmC;;;;;;;iBAO9C,CAAC;AAkBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBjC,CAAC"}
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mCAAmC;;;;;;;iBAO9C,CAAC;AAkBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBjC,CAAC"}
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
5
  import { createController } from "../../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
7
  import { Int256BigInt } from "../../../common/int256.js";
8
+ import { erc20Tag } from "../tag.js";
8
9
  export const InitializeDefaultErc20RequestSchema = z.object({
9
10
  tokenAddress: AddressSchema,
10
11
  name: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
@@ -16,7 +17,7 @@ export const InitializeDefaultErc20RequestSchema = z.object({
16
17
  const initializeRoute = describeRoute({
17
18
  summary: "Initialize ERC20",
18
19
  description: "Returns transaction data for initializing an ERC20 token proxy contract",
19
- tags: ["Issuance"],
20
+ tags: [erc20Tag.tag],
20
21
  responses: {
21
22
  200: {
22
23
  description: "Returns transaction data for initializing an ERC20",
@@ -1 +1 @@
1
- {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/parseDeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;aAoDvC,CAAC"}
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/parseDeployEvent.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;aAoDvC,CAAC"}
@@ -10,6 +10,7 @@ import { createController } from "../../../common/controller.js";
10
10
  import { HttpError } from "../../../common/http-error.js";
11
11
  import { AddressSchema, HashSchema } from "../../../common/index.js";
12
12
  import { FactoryChainIdQuery } from "../../common/factories.js";
13
+ import { erc20Tag } from "../tag.js";
13
14
  const QuerySchema = z.object({
14
15
  chainId: FactoryChainIdQuery.openapi({
15
16
  param: {
@@ -28,7 +29,7 @@ export const ParseDefaultErc20DeployEvent = createController({
28
29
  build: (factory) => factory.createApp().get("/", describeRoute({
29
30
  summary: "Get ERC20 TokenProxyConfigured Event",
30
31
  description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC20 factory \`deployAndInitializeProxy\` action`,
31
- tags: ["Issuance"],
32
+ tags: [erc20Tag.tag],
32
33
  responses: {
33
34
  200: {
34
35
  description: "Returns parsed event log",
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,6BAA6B;;;;;;;;iBAUxC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAyBhC,CAAC"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,6BAA6B;;;;;;;;iBAUxC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAyBhC,CAAC"}
@@ -7,6 +7,7 @@ import { AddressSchema, toTransaction, TransactionSchema } from "../../../common
7
7
  import { Int256BigInt } from "../../../common/int256.js";
8
8
  import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
9
9
  import { FactoryChainId, getFactories } from "../../common/factories.js";
10
+ import { erc20Tag } from "../tag.js";
10
11
  export const DeployGatedErc20RequestSchema = z.object({
11
12
  chainId: FactoryChainId.Schema,
12
13
  tokenName: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
@@ -25,7 +26,7 @@ const deployGatedErc20Route = describeRoute({
25
26
  **Note: This contract is not audited.**
26
27
 
27
28
  Calls deployAndInitializeProxy on the ERC20GatedPausableRecoverableFactory to atomically deploy and initialize a new token proxy.`,
28
- tags: ["Issuance"],
29
+ tags: [erc20Tag.tag],
29
30
  responses: {
30
31
  200: {
31
32
  description: "Returns transaction data for deploying a gated ERC20 token via factory",
@@ -1 +1 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iCAAiC;;;;;;;;iBAU5C,CAAC;AAkBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAc/B,CAAC"}
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,iCAAiC;;;;;;;;iBAU5C,CAAC;AAkBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAc/B,CAAC"}
@@ -6,6 +6,7 @@ import { createController } from "../../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
7
7
  import { Int256BigInt } from "../../../common/int256.js";
8
8
  import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
9
+ import { erc20Tag } from "../tag.js";
9
10
  export const InitializeGatedErc20RequestSchema = z.object({
10
11
  tokenAddress: AddressSchema,
11
12
  name: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
@@ -20,7 +21,7 @@ export const InitializeGatedErc20RequestSchema = z.object({
20
21
  const initializeRoute = describeRoute({
21
22
  summary: "Initialize Gated ERC20",
22
23
  description: "Returns transaction data for initializing a gated ERC20 token proxy contract",
23
- tags: ["Issuance"],
24
+ tags: [erc20Tag.tag],
24
25
  responses: {
25
26
  200: {
26
27
  description: "Returns transaction data for initializing a gated ERC20",
@@ -1 +1 @@
1
- {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/parseDeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;aAoDrC,CAAC"}
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/parseDeployEvent.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;aAoDrC,CAAC"}
@@ -10,6 +10,7 @@ import { createController } from "../../../common/controller.js";
10
10
  import { HttpError } from "../../../common/http-error.js";
11
11
  import { AddressSchema, HashSchema } from "../../../common/index.js";
12
12
  import { FactoryChainIdQuery } from "../../common/factories.js";
13
+ import { erc20Tag } from "../tag.js";
13
14
  const QuerySchema = z.object({
14
15
  chainId: FactoryChainIdQuery.openapi({
15
16
  param: {
@@ -28,7 +29,7 @@ export const ParseGatedErc20DeployEvent = createController({
28
29
  build: (factory) => factory.createApp().get("/", describeRoute({
29
30
  summary: "Get Gated ERC20 TokenProxyConfigured Event",
30
31
  description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the Gated ERC20 factory \`deployAndInitializeProxy\` action`,
31
- tags: ["Issuance"],
32
+ tags: [erc20Tag.tag],
32
33
  responses: {
33
34
  200: {
34
35
  description: "Returns parsed event log",
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/deploy.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;aAQtC,CAAC"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/deploy.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;aAQtC,CAAC"}
@@ -3,10 +3,11 @@ import { resolver } from "hono-openapi";
3
3
  import { erc20GatedAbi, erc20GatedBytecode } from "@evergonlabs/tmi-protocol-contracts/erc20Gated";
4
4
  import { createController } from "../../../common/controller.js";
5
5
  import { DeployTransactionSchema } from "../../../common/index.js";
6
+ import { erc20Tag } from "../tag.js";
6
7
  const deployGatedSimpleRoute = describeRoute({
7
8
  summary: "Get Gated ERC20",
8
9
  description: "Returns transaction data for deploying a gated ERC20. This is an audited contract.",
9
- tags: ["Issuance"],
10
+ tags: [erc20Tag.tag],
10
11
  responses: {
11
12
  200: {
12
13
  description: "Returns transaction data for deploying a gated ERC20",
@@ -1 +1 @@
1
- {"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/getInitData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qBAAqB;;iBAIC,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;;;;;iBAQC,CAAC;AAkBlC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;aAc3B,CAAC"}
1
+ {"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/getInitData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB;;iBAIC,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;;;;;iBAQC,CAAC;AAkBlC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;aAc3B,CAAC"}
@@ -7,6 +7,7 @@ import { createController } from "../../../common/controller.js";
7
7
  import { AddressSchema, HexStringSchema } from "../../../common/index.js";
8
8
  import { Int256BigInt } from "../../../common/int256.js";
9
9
  import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
10
+ import { erc20Tag } from "../tag.js";
10
11
  export const Erc20InitDataResponse = z
11
12
  .object({
12
13
  data: HexStringSchema.openapi("Init function call data in hex format"),
@@ -24,7 +25,7 @@ export const Erc20InitDataParams = z
24
25
  const getErc20InitDataRoute = describeRoute({
25
26
  summary: "Get ERC20 Init Data",
26
27
  description: `Returns init function call data in hex format. This is useful for using as initData in TransparentUpgradeableProxy`,
27
- tags: ["Issuance"],
28
+ tags: [erc20Tag.tag],
28
29
  responses: {
29
30
  200: {
30
31
  description: "Init function call data in hex format",
@@ -1 +1 @@
1
- {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/parseDeployEvent.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;aAuC3C,CAAC"}
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/parseDeployEvent.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;aAuC3C,CAAC"}
@@ -7,6 +7,7 @@ import { createController } from "../../../common/controller.js";
7
7
  import { HttpError } from "../../../common/http-error.js";
8
8
  import { AddressSchema, HashSchema } from "../../../common/index.js";
9
9
  import { FactoryChainIdQuery } from "../../common/factories.js";
10
+ import { erc20Tag } from "../tag.js";
10
11
  const QuerySchema = z.object({
11
12
  chainId: FactoryChainIdQuery.openapi({
12
13
  param: {
@@ -27,7 +28,7 @@ export const ParseGatedSimpleErc20DeployEvent = createController({
27
28
  description: `Gets the contract deployment transaction by hash and extracts the deployed contract address from the receipt.
28
29
 
29
30
  Provided transaction must be a contract creation transaction for the gated simple ERC20 token.`,
30
- tags: ["Issuance"],
31
+ tags: [erc20Tag.tag],
31
32
  responses: {
32
33
  200: {
33
34
  description: "Returns the deployed contract address",
@@ -1 +1 @@
1
- {"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAqB,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE5F,eAAO,MAAM,2BAA2B;;;;iBAOtC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
1
+ {"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAqB,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAG5F,eAAO,MAAM,2BAA2B;;;;iBAOtC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
5
  import { createController } from "../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
7
  import { convertRoleToHash, Erc20GatedRole } from "../../common/roles/erc20-gated-roles.js";
8
+ import { erc20Tag } from "./tag.js";
8
9
  export const GrantRoleErc20RequestSchema = z.object({
9
10
  tokenAddress: AddressSchema,
10
11
  role: z.nativeEnum(Erc20GatedRole).openapi({
@@ -16,7 +17,7 @@ export const GrantRoleErc20RequestSchema = z.object({
16
17
  const grantRoleRoute = describeRoute({
17
18
  summary: "Grant Role on Gated ERC20",
18
19
  description: "Returns transaction data for granting a role on a gated ERC20 token contract",
19
- tags: ["Issuance"],
20
+ tags: [erc20Tag.tag],
20
21
  responses: {
21
22
  200: {
22
23
  description: "Returns transaction data for granting a role",
@@ -1 +1 @@
1
- {"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
1
+ {"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
5
5
  import { createController } from "../../common/controller.js";
6
6
  import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
7
7
  import { Int256BigInt } from "../../common/int256.js";
8
+ import { erc20Tag } from "./tag.js";
8
9
  export const MintErc20RequestSchema = z.object({
9
10
  tokenAddress: AddressSchema,
10
11
  to: AddressSchema.openapi({ description: "Address to mint tokens to" }),
@@ -13,7 +14,7 @@ export const MintErc20RequestSchema = z.object({
13
14
  const mintRoute = describeRoute({
14
15
  summary: "Mint Gated ERC20",
15
16
  description: "Returns transaction data for minting a gated ERC20 (MINTER_ROLE required)",
16
- tags: ["Issuance"],
17
+ tags: [erc20Tag.tag],
17
18
  responses: {
18
19
  200: {
19
20
  description: "Returns transaction data for minting a gated ERC20",