@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,361 @@
1
+ export declare const Erc1155Controller: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
2
+ "/": {
3
+ $post: {
4
+ input: {
5
+ json: {
6
+ chainId: 11155111 | 72080;
7
+ baseURI: string;
8
+ defaultTokenAdmin: string;
9
+ minter: string;
10
+ };
11
+ };
12
+ output: {
13
+ data: `0x${string}`;
14
+ to: `0x${string}`;
15
+ details: {
16
+ functionName: string;
17
+ address: `0x${string}`;
18
+ abi: any[];
19
+ args: any[];
20
+ };
21
+ };
22
+ outputFormat: "json";
23
+ status: import("hono/utils/http-status").ContentfulStatusCode;
24
+ };
25
+ };
26
+ }, "/deploy"> | import("hono/types").MergeSchemaPath<{
27
+ "/": {
28
+ $post: {
29
+ input: {
30
+ json: {
31
+ tokenAddress: string;
32
+ baseURI: string;
33
+ defaultAdmin: string;
34
+ minter: string;
35
+ };
36
+ };
37
+ output: {
38
+ data: `0x${string}`;
39
+ to: `0x${string}`;
40
+ details: {
41
+ functionName: string;
42
+ address: `0x${string}`;
43
+ abi: any[];
44
+ args: any[];
45
+ };
46
+ };
47
+ outputFormat: "json";
48
+ status: import("hono/utils/http-status").ContentfulStatusCode;
49
+ };
50
+ };
51
+ }, "/initialize"> | import("hono/types").MergeSchemaPath<{
52
+ "/": {
53
+ $get: {
54
+ input: {
55
+ query: {
56
+ chainId: string | string[];
57
+ hash: string | string[];
58
+ };
59
+ };
60
+ output: {
61
+ proxy: `0x${string}`;
62
+ admin: `0x${string}`;
63
+ minter: `0x${string}`;
64
+ baseURI: string;
65
+ };
66
+ outputFormat: "json";
67
+ status: import("hono/utils/http-status").ContentfulStatusCode;
68
+ };
69
+ };
70
+ }, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
71
+ "/": {
72
+ $post: {
73
+ input: {
74
+ json: {
75
+ chainId: 11155111 | 72080;
76
+ baseURI: string;
77
+ defaultTokenAdmin: string;
78
+ minter: string;
79
+ gatingSigner?: string | undefined;
80
+ };
81
+ };
82
+ output: {
83
+ data: `0x${string}`;
84
+ to: `0x${string}`;
85
+ details: {
86
+ functionName: string;
87
+ address: `0x${string}`;
88
+ abi: any[];
89
+ args: any[];
90
+ };
91
+ };
92
+ outputFormat: "json";
93
+ status: import("hono/utils/http-status").ContentfulStatusCode;
94
+ };
95
+ };
96
+ }, "/deployGated"> | import("hono/types").MergeSchemaPath<{
97
+ "/": {
98
+ $post: {
99
+ input: {
100
+ json: {
101
+ tokenAddress: string;
102
+ baseURI: string;
103
+ defaultAdmin: string;
104
+ minter: string;
105
+ gatingSigner?: string | undefined;
106
+ };
107
+ };
108
+ output: {
109
+ data: `0x${string}`;
110
+ to: `0x${string}`;
111
+ details: {
112
+ functionName: string;
113
+ address: `0x${string}`;
114
+ abi: any[];
115
+ args: any[];
116
+ };
117
+ };
118
+ outputFormat: "json";
119
+ status: import("hono/utils/http-status").ContentfulStatusCode;
120
+ };
121
+ };
122
+ }, "/initializeGated"> | import("hono/types").MergeSchemaPath<{
123
+ "/": {
124
+ $get: {
125
+ input: {
126
+ query: {
127
+ chainId: string | string[];
128
+ hash: string | string[];
129
+ };
130
+ };
131
+ output: {
132
+ proxy: `0x${string}`;
133
+ admin: `0x${string}`;
134
+ minter: `0x${string}`;
135
+ baseURI: string;
136
+ };
137
+ outputFormat: "json";
138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
139
+ };
140
+ };
141
+ }, "/getDeployEventGated"> | import("hono/types").MergeSchemaPath<{
142
+ "/": {
143
+ $post: {
144
+ input: {
145
+ json: {
146
+ tokenAddress: string;
147
+ to: string;
148
+ amount: string;
149
+ data?: string | undefined;
150
+ };
151
+ };
152
+ output: {
153
+ data: `0x${string}`;
154
+ to: `0x${string}`;
155
+ details: {
156
+ functionName: string;
157
+ address: `0x${string}`;
158
+ abi: any[];
159
+ args: any[];
160
+ };
161
+ };
162
+ outputFormat: "json";
163
+ status: import("hono/utils/http-status").ContentfulStatusCode;
164
+ };
165
+ };
166
+ }, "/mint"> | import("hono/types").MergeSchemaPath<{
167
+ "/": {
168
+ $post: {
169
+ input: {
170
+ json: {
171
+ tokenAddress: string;
172
+ account: string;
173
+ id: string;
174
+ amount: string;
175
+ };
176
+ };
177
+ output: {
178
+ data: `0x${string}`;
179
+ to: `0x${string}`;
180
+ details: {
181
+ functionName: string;
182
+ address: `0x${string}`;
183
+ abi: any[];
184
+ args: any[];
185
+ };
186
+ };
187
+ outputFormat: "json";
188
+ status: import("hono/utils/http-status").ContentfulStatusCode;
189
+ };
190
+ };
191
+ }, "/burn"> | import("hono/types").MergeSchemaPath<{
192
+ "/": {
193
+ $post: {
194
+ input: {
195
+ json: {
196
+ tokenAddress: string;
197
+ operator: string;
198
+ approved: boolean;
199
+ };
200
+ };
201
+ output: {
202
+ data: `0x${string}`;
203
+ to: `0x${string}`;
204
+ details: {
205
+ functionName: string;
206
+ address: `0x${string}`;
207
+ abi: any[];
208
+ args: any[];
209
+ };
210
+ };
211
+ outputFormat: "json";
212
+ status: import("hono/utils/http-status").ContentfulStatusCode;
213
+ };
214
+ };
215
+ }, "/setApprovalForAll"> | import("hono/types").MergeSchemaPath<{
216
+ "/": {
217
+ $post: {
218
+ input: {
219
+ json: {
220
+ tokenAddress: string;
221
+ baseURI: string;
222
+ };
223
+ };
224
+ output: {
225
+ data: `0x${string}`;
226
+ to: `0x${string}`;
227
+ details: {
228
+ functionName: string;
229
+ address: `0x${string}`;
230
+ abi: any[];
231
+ args: any[];
232
+ };
233
+ };
234
+ outputFormat: "json";
235
+ status: import("hono/utils/http-status").ContentfulStatusCode;
236
+ };
237
+ };
238
+ }, "/setBaseURI"> | import("hono/types").MergeSchemaPath<{
239
+ "/": {
240
+ $post: {
241
+ input: {
242
+ json: {
243
+ tokenAddress: string;
244
+ id: string;
245
+ tokenURI: string;
246
+ };
247
+ };
248
+ output: {
249
+ data: `0x${string}`;
250
+ to: `0x${string}`;
251
+ details: {
252
+ functionName: string;
253
+ address: `0x${string}`;
254
+ abi: any[];
255
+ args: any[];
256
+ };
257
+ };
258
+ outputFormat: "json";
259
+ status: import("hono/utils/http-status").ContentfulStatusCode;
260
+ };
261
+ };
262
+ }, "/setTokenURI"> | import("hono/types").MergeSchemaPath<{
263
+ "/": {
264
+ $post: {
265
+ input: {
266
+ json: {
267
+ tokenAddress: string;
268
+ from: string;
269
+ to: string;
270
+ id: string;
271
+ amount: string;
272
+ };
273
+ };
274
+ output: {
275
+ data: `0x${string}`;
276
+ to: `0x${string}`;
277
+ details: {
278
+ functionName: string;
279
+ address: `0x${string}`;
280
+ abi: any[];
281
+ args: any[];
282
+ };
283
+ };
284
+ outputFormat: "json";
285
+ status: import("hono/utils/http-status").ContentfulStatusCode;
286
+ };
287
+ };
288
+ }, "/recover"> | import("hono/types").MergeSchemaPath<{
289
+ "/": {
290
+ $post: {
291
+ input: {
292
+ json: {
293
+ tokenAddress: string;
294
+ role: import("../../client.js").Erc1155TokenRole;
295
+ account: string;
296
+ };
297
+ };
298
+ output: {
299
+ data: `0x${string}`;
300
+ to: `0x${string}`;
301
+ details: {
302
+ functionName: string;
303
+ address: `0x${string}`;
304
+ abi: any[];
305
+ args: any[];
306
+ };
307
+ };
308
+ outputFormat: "json";
309
+ status: import("hono/utils/http-status").ContentfulStatusCode;
310
+ };
311
+ };
312
+ }, "/grantRole"> | import("hono/types").MergeSchemaPath<{
313
+ "/": {
314
+ $post: {
315
+ input: {
316
+ json: {
317
+ tokenAddress: string;
318
+ role: import("../../client.js").Erc1155TokenRole;
319
+ account: string;
320
+ };
321
+ };
322
+ output: {
323
+ data: `0x${string}`;
324
+ to: `0x${string}`;
325
+ details: {
326
+ functionName: string;
327
+ address: `0x${string}`;
328
+ abi: any[];
329
+ args: any[];
330
+ };
331
+ };
332
+ outputFormat: "json";
333
+ status: import("hono/utils/http-status").ContentfulStatusCode;
334
+ };
335
+ };
336
+ }, "/revokeRole"> | import("hono/types").MergeSchemaPath<{
337
+ "/": {
338
+ $post: {
339
+ input: {
340
+ json: {
341
+ tokenAddress: string;
342
+ role: import("../../client.js").Erc1155TokenRole;
343
+ callerConfirmation: string;
344
+ };
345
+ };
346
+ output: {
347
+ data: `0x${string}`;
348
+ to: `0x${string}`;
349
+ details: {
350
+ functionName: string;
351
+ address: `0x${string}`;
352
+ abi: any[];
353
+ args: any[];
354
+ };
355
+ };
356
+ outputFormat: "json";
357
+ status: import("hono/utils/http-status").ContentfulStatusCode;
358
+ };
359
+ };
360
+ }, "/renounceRole">, "/", "/">>;
361
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAsB5B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { createController } from "../../common/controller.js";
2
+ import { CreateErc1155Token } from "./default/deploy.js";
3
+ import { InitializeDefaultErc1155 } from "./default/initialize.js";
4
+ import { ParseDefaultErc1155DeployEvent } from "./default/parseDeployEvent.js";
5
+ import { CreateGatedErc1155Token } from "./gated/deploy.js";
6
+ import { InitializeGatedErc1155 } from "./gated/initialize.js";
7
+ import { ParseGatedErc1155DeployEvent } from "./gated/parseDeployEvent.js";
8
+ import { BurnErc1155 } from "./burn.js";
9
+ import { GrantRoleErc1155 } from "./grantRole.js";
10
+ import { MintErc1155 } from "./mint.js";
11
+ import { RecoverErc1155 } from "./recover.js";
12
+ import { RenounceRoleErc1155 } from "./renounceRole.js";
13
+ import { RevokeRoleErc1155 } from "./revokeRole.js";
14
+ import { SetApprovalForAllErc1155 } from "./setApprovalForAll.js";
15
+ import { SetBaseURIErc1155 } from "./setBaseURI.js";
16
+ import { SetTokenURIErc1155 } from "./setTokenURI.js";
17
+ export const Erc1155Controller = createController({
18
+ build: (factory) => factory
19
+ .createApp()
20
+ // Default (non-gated) variant
21
+ .route("/deploy", CreateErc1155Token.build(factory))
22
+ .route("/initialize", InitializeDefaultErc1155.build(factory))
23
+ .route("/getDeployEvent", ParseDefaultErc1155DeployEvent.build(factory))
24
+ // Gated variant
25
+ .route("/deployGated", CreateGatedErc1155Token.build(factory))
26
+ .route("/initializeGated", InitializeGatedErc1155.build(factory))
27
+ .route("/getDeployEventGated", ParseGatedErc1155DeployEvent.build(factory))
28
+ // Common actions
29
+ .route("/mint", MintErc1155.build(factory))
30
+ .route("/burn", BurnErc1155.build(factory))
31
+ .route("/setApprovalForAll", SetApprovalForAllErc1155.build(factory))
32
+ .route("/setBaseURI", SetBaseURIErc1155.build(factory))
33
+ .route("/setTokenURI", SetTokenURIErc1155.build(factory))
34
+ .route("/recover", RecoverErc1155.build(factory))
35
+ .route("/grantRole", GrantRoleErc1155.build(factory))
36
+ .route("/revokeRole", RevokeRoleErc1155.build(factory))
37
+ .route("/renounceRole", RenounceRoleErc1155.build(factory)),
38
+ });
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const MintErc1155RequestSchema: 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
+ to: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
6
+ data: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ export declare const MintErc1155: 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
+ to: string;
15
+ amount: string;
16
+ data?: string | undefined;
17
+ };
18
+ };
19
+ output: {
20
+ data: `0x${string}`;
21
+ to: `0x${string}`;
22
+ details: {
23
+ functionName: string;
24
+ address: `0x${string}`;
25
+ abi: any[];
26
+ args: any[];
27
+ };
28
+ };
29
+ outputFormat: "json";
30
+ status: import("hono/utils/http-status").ContentfulStatusCode;
31
+ };
32
+ };
33
+ }, "/", "/">>;
34
+ //# sourceMappingURL=mint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAmBH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aActB,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 { Int256BigInt } from "../../common/int256.js";
8
+ import { erc1155Tag } from "./tag.js";
9
+ export const MintErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ to: AddressSchema.openapi({ description: "Address to mint tokens to" }),
12
+ amount: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Amount of tokens to mint" }),
13
+ data: z.string().optional().default("0x").openapi({ description: "Additional data (hex string)" }),
14
+ });
15
+ const mintRoute = describeRoute({
16
+ summary: "Mint ERC1155",
17
+ description: "Returns transaction data for minting ERC1155 tokens with an auto-generated token ID (MINTER_ROLE required)",
18
+ tags: [erc1155Tag.tag],
19
+ responses: {
20
+ 200: {
21
+ description: "Returns transaction data for minting an ERC1155 token",
22
+ content: {
23
+ "application/json": {
24
+ schema: resolver(TransactionSchema),
25
+ },
26
+ },
27
+ },
28
+ },
29
+ });
30
+ export const MintErc1155 = createController({
31
+ build: (factory) => factory.createApp().post("/", mintRoute, validator("json", MintErc1155RequestSchema), async (c) => {
32
+ const { tokenAddress, to, amount, data } = c.req.valid("json");
33
+ return c.json(toTransaction({
34
+ address: tokenAddress,
35
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
36
+ functionName: "mint",
37
+ args: [to, BigInt(amount), data],
38
+ }));
39
+ }),
40
+ });
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ export declare const RecoverErc1155RequestSchema: 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
+ from: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ to: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ id: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
7
+ amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
8
+ }, z.core.$strip>;
9
+ export declare const RecoverErc1155: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
10
+ "/": {
11
+ $post: {
12
+ input: {
13
+ json: {
14
+ tokenAddress: string;
15
+ from: string;
16
+ to: string;
17
+ id: string;
18
+ amount: string;
19
+ };
20
+ };
21
+ output: {
22
+ data: `0x${string}`;
23
+ to: `0x${string}`;
24
+ details: {
25
+ functionName: string;
26
+ address: `0x${string}`;
27
+ abi: any[];
28
+ args: any[];
29
+ };
30
+ };
31
+ outputFormat: "json";
32
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33
+ };
34
+ };
35
+ }, "/", "/">>;
36
+ //# sourceMappingURL=recover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/recover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AAmBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
@@ -0,0 +1,41 @@
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 RecoverErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ from: AddressSchema.openapi({ description: "Address to recover the tokens from" }),
12
+ to: AddressSchema.openapi({ description: "Address to recover the tokens to" }),
13
+ id: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Token ID to recover" }),
14
+ amount: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Amount of tokens to recover" }),
15
+ });
16
+ const recoverRoute = describeRoute({
17
+ summary: "Recover ERC1155",
18
+ description: "Returns transaction data for recovering ERC1155 tokens from one address to another (RECOVER_ROLE required)",
19
+ tags: [erc1155Tag.tag],
20
+ responses: {
21
+ 200: {
22
+ description: "Returns transaction data for recovering ERC1155 tokens",
23
+ content: {
24
+ "application/json": {
25
+ schema: resolver(TransactionSchema),
26
+ },
27
+ },
28
+ },
29
+ },
30
+ });
31
+ export const RecoverErc1155 = createController({
32
+ build: (factory) => factory.createApp().post("/", recoverRoute, validator("json", RecoverErc1155RequestSchema), async (c) => {
33
+ const { tokenAddress, from, to, id, amount } = c.req.valid("json");
34
+ return c.json(toTransaction({
35
+ address: tokenAddress,
36
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
37
+ functionName: "recover",
38
+ args: [from, to, BigInt(id), BigInt(amount)],
39
+ }));
40
+ }),
41
+ });
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ import { Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
3
+ export declare const RenounceRoleErc1155RequestSchema: 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
+ callerConfirmation: 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 RenounceRoleErc1155: 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
+ callerConfirmation: 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=renounceRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renounceRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/renounceRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG5G,eAAO,MAAM,gCAAgC;;;;iBAO3C,CAAC;AAkBH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAc9B,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 RenounceRoleErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ role: z.nativeEnum(Erc1155TokenRole).openapi({
12
+ description: "The role to renounce",
13
+ example: Erc1155TokenRole.MINTER_ROLE,
14
+ }),
15
+ callerConfirmation: AddressSchema.openapi({ description: "The caller's address for confirmation" }),
16
+ });
17
+ const renounceRoleRoute = describeRoute({
18
+ summary: "Renounce Role on ERC1155",
19
+ description: "Returns transaction data for renouncing a role on the ERC1155 token contract",
20
+ tags: [erc1155Tag.tag],
21
+ responses: {
22
+ 200: {
23
+ description: "Returns transaction data for renouncing a role",
24
+ content: {
25
+ "application/json": {
26
+ schema: resolver(TransactionSchema),
27
+ },
28
+ },
29
+ },
30
+ },
31
+ });
32
+ export const RenounceRoleErc1155 = createController({
33
+ build: (factory) => factory.createApp().post("/", renounceRoleRoute, validator("json", RenounceRoleErc1155RequestSchema), async (c) => {
34
+ const { tokenAddress, role, callerConfirmation } = c.req.valid("json");
35
+ return c.json(toTransaction({
36
+ address: tokenAddress,
37
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
38
+ functionName: "renounceRole",
39
+ args: [convertErc1155TokenRoleToHash(role), callerConfirmation],
40
+ }));
41
+ }),
42
+ });