@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
@@ -12,7 +12,7 @@ export const RejectFractionsRequestSchema = z.object({
12
12
  const route = describeRoute({
13
13
  summary: "Reject fractions",
14
14
  description: "Returns transaction data for rejecting fractions in a sale",
15
- tags: ["Fractions"],
15
+ tags: ["Sales"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns transaction data for rejecting fractions",
@@ -13,7 +13,7 @@ export const SearchActivityV0 = createController({
13
13
  build: (factory) => factory.createApp().post("/", describeRoute({
14
14
  summary: "Search activity events",
15
15
  description: "Search activity events by users, platforms and pools",
16
- tags: ["Fractions"],
16
+ tags: ["Sales"],
17
17
  responses: {
18
18
  200: {
19
19
  description: "Returns list of activity events within specified platforms and pools",
@@ -11,7 +11,7 @@ export const SearchSalesV0 = createController({
11
11
  build: (factory) => factory.createApp().post("/", describeRoute({
12
12
  summary: "Search sale events",
13
13
  description: "Search sale events by users, platforms and pools",
14
- tags: ["Fractions"],
14
+ tags: ["Sales"],
15
15
  responses: {
16
16
  200: {
17
17
  description: "Returns list of sales events within specified platforms and pools",
@@ -11,7 +11,7 @@ export const SearchWithdrawalV0 = createController({
11
11
  build: (factory) => factory.createApp().post("/", describeRoute({
12
12
  summary: "Search withdrawal events",
13
13
  description: "Search withdrawal events by users, platforms and pools",
14
- tags: ["Fractions"],
14
+ tags: ["Sales"],
15
15
  responses: {
16
16
  200: {
17
17
  description: "Returns list of withdrawal events within specified platforms and pools",
@@ -13,7 +13,7 @@ export const SetFeeCapLimitRequestSchema = z.object({
13
13
  const route = describeRoute({
14
14
  summary: "Set fee cap limit",
15
15
  description: "Returns transaction data for setting the fee cap limit",
16
- tags: ["Fractions"],
16
+ tags: ["Sales"],
17
17
  responses: {
18
18
  200: {
19
19
  description: "Returns transaction data for setting the fee cap limit",
@@ -7,7 +7,7 @@ export const UnlockWrappedAssetsRequestSchema = SaleIdSchema;
7
7
  const route = describeRoute({
8
8
  summary: "Unlock wrapped assets from a non-funded sale",
9
9
  description: "Returns transaction to unlock wrapped assets from a non-funded sale",
10
- tags: ["Fractions"],
10
+ tags: ["Sales"],
11
11
  responses: {
12
12
  200: {
13
13
  description: "Returns transaction to unlock wrapped assets from a non-funded sale",
@@ -33,7 +33,7 @@ export const ClaimStatisticsV0 = createController({
33
33
  build: (factory) => factory.createApp().post("/", describeRoute({
34
34
  summary: "Get claim statistics for a vesting campaign",
35
35
  description: "Retrieves the total number of claims made and the last claim ID for a specific vesting campaign and wallet address",
36
- tags: ["Fractions Vesting"],
36
+ tags: ["Vesting"],
37
37
  responses: {
38
38
  200: {
39
39
  description: "Returns claim statistics for the specified campaign and wallet address",
@@ -14,7 +14,7 @@ export const ClaimVestedTokensRequestSchema = z.object({
14
14
  const route = describeRoute({
15
15
  summary: "Claim vested tokens",
16
16
  description: "Returns transaction data for claiming vested tokens from a campaign",
17
- tags: ["Fractions Vesting"],
17
+ tags: ["Vesting"],
18
18
  responses: {
19
19
  200: {
20
20
  description: "Returns transaction data for claiming vested tokens",
@@ -14,7 +14,7 @@ export const EditCliffRequestSchema = z.object({
14
14
  const route = describeRoute({
15
15
  summary: "Edit the cliff of a vesting schedule",
16
16
  description: "Returns transaction data for updating the cliff date in a vesting schedule",
17
- tags: ["Fractions Vesting"],
17
+ tags: ["Vesting"],
18
18
  responses: {
19
19
  200: {
20
20
  description: "Returns transaction data for editing the cliff date",
@@ -12,7 +12,7 @@ export const ParseClaimVestedTokensEventV0 = createController({
12
12
  build: (factory) => factory.createApp().get("/", describeRoute({
13
13
  summary: "Get ClaimVestedTokens Event",
14
14
  description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`claimVestedTokens\` action`,
15
- tags: ["Fractions Vesting"],
15
+ tags: ["Vesting"],
16
16
  responses: {
17
17
  200: {
18
18
  description: "Returns parsed event log",
@@ -7,7 +7,7 @@ export const WithdrawRequestSchema = SaleIdSchema;
7
7
  const route = describeRoute({
8
8
  summary: "Withdraw payment tokens from a sale",
9
9
  description: "Returns transaction to withdraw payment tokens from a sale",
10
- tags: ["Fractions"],
10
+ tags: ["Sales"],
11
11
  responses: {
12
12
  200: {
13
13
  description: "Returns transaction to withdraw payment tokens from a sale",
@@ -102,7 +102,7 @@ export const GetHoldersV0 = createController({
102
102
  build: (factory) => factory.createApp().post("/", describeRoute({
103
103
  summary: "Get number of fraction holders",
104
104
  description: `Returns the count of unique wallet addresses that hold fractions from successful (finalized) sales. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
105
- tags: ["RWA Statistics"],
105
+ tags: ["Statistics"],
106
106
  responses: {
107
107
  200: {
108
108
  description: "Number of unique fraction holders",
@@ -128,7 +128,7 @@ export const GetSalesStatisticsV0 = createController({
128
128
  build: (factory) => factory.createApp().post("/", describeRoute({
129
129
  summary: "Get number of successful sales",
130
130
  description: `Returns the count of successful (finalized) fraction sales representing RWA tokens. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
131
- tags: ["RWA Statistics"],
131
+ tags: ["Statistics"],
132
132
  responses: {
133
133
  200: {
134
134
  description: "Number of successful fraction sales",
@@ -154,7 +154,7 @@ export const GetTtvV0 = createController({
154
154
  build: (factory) => factory.createApp().post("/", describeRoute({
155
155
  summary: "Get Total Tokenized Value (TTV)",
156
156
  description: `Returns the Total Tokenized Value - the sum of all amounts raised by successful (finalized) sales in USDC. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
157
- tags: ["RWA Statistics"],
157
+ tags: ["Statistics"],
158
158
  responses: {
159
159
  200: {
160
160
  description: "Total Tokenized Value in USDC",
@@ -195,7 +195,7 @@ export const GetNetworkStatisticsV0 = createController({
195
195
  build: (factory) => factory.createApp().post("/", describeRoute({
196
196
  summary: "Get all network statistics",
197
197
  description: `Returns all network statistics in a single call: number of fraction holders, successful sales count, and TTV. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations like RWA.XYZ.`,
198
- tags: ["RWA Statistics"],
198
+ tags: ["Statistics"],
199
199
  responses: {
200
200
  200: {
201
201
  description: "Network statistics including holders, sales, and TTV",
@@ -149,19 +149,19 @@ export declare const factoryChainIds: (11155111 | 72080)[];
149
149
  export type IFactoryChainId = (typeof factoryChainIds)[number];
150
150
  export declare function getFactories<T extends IFactoryChainId>(id: T): {
151
151
  readonly DiamondFactory: "0x4be118d8a3a6f1490162e134E7419284827dbdBb";
152
- readonly ERC1155GatedPausableRecoverableFactory: "0x52DEA561a81E4AAC451431F2d9E88ACb1e31C520";
153
- readonly ERC1155PausableRecoverableFactory: "0x39F9AD5A2F869b22e84bDCC27C246dA4F34f5cD6";
154
- readonly ERC20GatedPausableRecoverableFactory: "0xcDb88041351f6c3008D4bb5b403A16EA26a382d3";
155
- readonly ERC20PausableRecoverableFactory: "0xddA13D3F875Ee039b18de8d4C0Fda96c045299B2";
156
- readonly ERC721GatedPausableRecoverableFactory: "0xBd79C0E23E69Da284378188015d85f5C0196DF05";
157
- readonly ERC721PausableRecoverableFactory: "0x22F97529FAA6ECb6306C0cd274E8F1a851A31Dc3";
152
+ readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0xc29A12b1dF6f6F285f66fdd879b2feBc50a3bbEf";
153
+ readonly ERC1155AutoIdPausableRecoverableFactory: "0xAc373c72e4683F8eFc5303d060703a480bfAA74A";
154
+ readonly ERC20GatedPausableRecoverableFactory: "0x95E521FEe12cc5b551151C94f8d146B9C7f043fA";
155
+ readonly ERC20PausableRecoverableFactory: "0xFea92aC14C5B39590b29C86370D0A710aE02B45D";
156
+ readonly ERC721AutoIdGatedPausableRecoverableFactory: "0xdB2b8eB6df1C89C1887ad9A38938153cc896AB37";
157
+ readonly ERC721AutoIdPausableRecoverableFactory: "0xFE98EF8Ba0f70f59D18862F2528071F00A94f0C3";
158
158
  } | {
159
159
  readonly DiamondFactory: "0x141c8f5BC8f7895E800518dc799f3D6e419b30Ac";
160
- readonly ERC1155GatedPausableRecoverableFactory: "0xBa362eeAc702C32935601Ea13063f6ECde1AbF14";
161
- readonly ERC1155PausableRecoverableFactory: "0x6B194C183dB881c4Fcc95a6fC4eA6a47d062256c";
162
- readonly ERC20GatedPausableRecoverableFactory: "0xc0E81eA6bC7eCc3639e550b5Ff5e3B840A0B151f";
163
- readonly ERC20PausableRecoverableFactory: "0x48711c8E26f1a658f58B6d426cd7Be52de02ffF9";
164
- readonly ERC721GatedPausableRecoverableFactory: "0x43C8BfbAB561D406F362e0cCc75EB9FbCc6ebc2e";
165
- readonly ERC721PausableRecoverableFactory: "0x0F48421Ac48D921A1513e50dd8eBbFBbF18e58eE";
160
+ readonly ERC1155AutoIdGatedPausableRecoverableFactory: "0x059A29005D665134a2BDe3828053dA09C0423E68";
161
+ readonly ERC1155AutoIdPausableRecoverableFactory: "0xDf10CF08E8362d8185C3bb148DdCf9aB8e8F5D16";
162
+ readonly ERC20GatedPausableRecoverableFactory: "0x969Ef79EeecA0A647ae975561014351767afa155";
163
+ readonly ERC20PausableRecoverableFactory: "0x868d1414BAc904175ba9c905EeE38150BDE34eBb";
164
+ readonly ERC721AutoIdGatedPausableRecoverableFactory: "0x0fee6C8Cde9Ab6C59DA9a6b19127b9e616D7bE49";
165
+ readonly ERC721AutoIdPausableRecoverableFactory: "0x0d6E0315119DBE67F717F76B75f2A0FBd8FF3858";
166
166
  };
167
167
  //# sourceMappingURL=factories.base.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const BurnErc1155RequestSchema: 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
+ account: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
5
+ id: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
6
+ amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
7
+ }, z.core.$strip>;
8
+ export declare const BurnErc1155: 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
+ account: string;
15
+ id: string;
16
+ amount: string;
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=burn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAkBH,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 BurnErc1155RequestSchema = z.object({
10
+ tokenAddress: AddressSchema,
11
+ account: AddressSchema.openapi({ description: "Address to burn tokens from" }),
12
+ id: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Token ID to burn" }),
13
+ amount: Int256BigInt(z.bigint().nonnegative()).openapi({ description: "Amount of tokens to burn" }),
14
+ });
15
+ const burnRoute = describeRoute({
16
+ summary: "Burn ERC1155",
17
+ description: "Returns transaction data for burning an ERC1155 token",
18
+ tags: [erc1155Tag.tag],
19
+ responses: {
20
+ 200: {
21
+ description: "Returns transaction data for burning an ERC1155 token",
22
+ content: {
23
+ "application/json": {
24
+ schema: resolver(TransactionSchema),
25
+ },
26
+ },
27
+ },
28
+ },
29
+ });
30
+ export const BurnErc1155 = createController({
31
+ build: (factory) => factory.createApp().post("/", burnRoute, validator("json", BurnErc1155RequestSchema), async (c) => {
32
+ const { tokenAddress, account, id, amount } = c.req.valid("json");
33
+ return c.json(toTransaction({
34
+ address: tokenAddress,
35
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
36
+ functionName: "burn",
37
+ args: [account, BigInt(id), BigInt(amount)],
38
+ }));
39
+ }),
40
+ });
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const DeployErc1155RequestSchema: z.ZodObject<{
3
+ chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 72080>, z.ZodLiteral<11155111 | 72080>, ...z.ZodLiteral<11155111 | 72080>[]]>;
4
+ baseURI: z.ZodString;
5
+ defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ minter: 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 CreateErc1155Token: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
9
+ "/": {
10
+ $post: {
11
+ input: {
12
+ json: {
13
+ chainId: 11155111 | 72080;
14
+ baseURI: string;
15
+ defaultTokenAdmin: string;
16
+ minter: string;
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=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AA+BH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;aAc7B,CAAC"}
@@ -0,0 +1,54 @@
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 { FactoryChainId, getFactories } from "../../common/factories.js";
8
+ import { erc1155Tag } from "../tag.js";
9
+ export const DeployErc1155RequestSchema = z.object({
10
+ chainId: FactoryChainId.Schema,
11
+ baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
12
+ defaultTokenAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
13
+ minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
14
+ });
15
+ const deployErc1155Route = describeRoute({
16
+ summary: "Deploy ERC1155 via Factory",
17
+ description: `This contract has not been audited.
18
+
19
+ Returns transaction data for deploying a new ERC1155 token via the factory contract.
20
+
21
+ Calls deployAndInitializeProxy on the ERC1155AutoIdPausableRecoverableFactory to atomically deploy and initialize a new token proxy.
22
+
23
+ The deployed token supports:
24
+ - mint(to, amount, data) - Mint tokens with auto-generated ID (MINTER_ROLE gated)
25
+ - mintBatch(to, amounts, data) - Mint multiple tokens with auto-generated IDs (MINTER_ROLE gated)
26
+ - burn(account, id, amount) - Burn tokens
27
+ - burnBatch(account, ids, amounts) - Burn multiple tokens
28
+ - setURI(newuri) - Set metadata URI (DEFAULT_ADMIN_ROLE gated)
29
+ - pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
30
+ - recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
31
+ tags: [erc1155Tag.tag],
32
+ responses: {
33
+ 200: {
34
+ description: "Returns transaction data for deploying an ERC1155 token via factory",
35
+ content: {
36
+ "application/json": {
37
+ schema: resolver(TransactionSchema),
38
+ },
39
+ },
40
+ },
41
+ },
42
+ });
43
+ export const CreateErc1155Token = createController({
44
+ build: (factory) => factory.createApp().post("/", deployErc1155Route, validator("json", DeployErc1155RequestSchema), async (c) => {
45
+ const { chainId, baseURI, defaultTokenAdmin, minter } = c.req.valid("json");
46
+ const factory = getFactories(chainId);
47
+ return c.json(toTransaction({
48
+ address: factory.ERC1155AutoIdPausableRecoverableFactory,
49
+ abi: abis.erc1155AutoIdPausableRecoverableFactoryAbi,
50
+ functionName: "deployAndInitializeProxy",
51
+ args: [baseURI, defaultTokenAdmin, minter],
52
+ }));
53
+ }),
54
+ });
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const InitializeErc1155RequestSchema: 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
+ defaultAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ minter: 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 InitializeDefaultErc1155: 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
+ baseURI: string;
15
+ defaultAdmin: string;
16
+ minter: string;
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=initialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,8BAA8B;;;;;iBAKzC,CAAC;AAkBH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;aAcnC,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 { erc1155Tag } from "../tag.js";
8
+ export const InitializeErc1155RequestSchema = z.object({
9
+ tokenAddress: AddressSchema,
10
+ baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
11
+ defaultAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
12
+ minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
13
+ });
14
+ const initializeRoute = describeRoute({
15
+ summary: "Initialize ERC1155",
16
+ description: "Returns transaction data for initializing an ERC1155 token proxy contract",
17
+ tags: [erc1155Tag.tag],
18
+ responses: {
19
+ 200: {
20
+ description: "Returns transaction data for initializing an ERC1155 token",
21
+ content: {
22
+ "application/json": {
23
+ schema: resolver(TransactionSchema),
24
+ },
25
+ },
26
+ },
27
+ },
28
+ });
29
+ export const InitializeDefaultErc1155 = createController({
30
+ build: (factory) => factory.createApp().post("/", initializeRoute, validator("json", InitializeErc1155RequestSchema), async (c) => {
31
+ const { tokenAddress, baseURI, defaultAdmin, minter } = c.req.valid("json");
32
+ return c.json(toTransaction({
33
+ address: tokenAddress,
34
+ abi: abis.erc1155AutoIdPausableRecoverableUpgradeableAbi,
35
+ functionName: "initialize",
36
+ args: [baseURI, defaultAdmin, minter],
37
+ }));
38
+ }),
39
+ });
@@ -0,0 +1,21 @@
1
+ export declare const ParseDefaultErc1155DeployEvent: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
2
+ "/": {
3
+ $get: {
4
+ input: {
5
+ query: {
6
+ chainId: string | string[];
7
+ hash: string | string[];
8
+ };
9
+ };
10
+ output: {
11
+ proxy: `0x${string}`;
12
+ admin: `0x${string}`;
13
+ minter: `0x${string}`;
14
+ baseURI: string;
15
+ };
16
+ outputFormat: "json";
17
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18
+ };
19
+ };
20
+ }, "/", "/">>;
21
+ //# sourceMappingURL=parseDeployEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/parseDeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;aAgDzC,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { describeRoute } from "hono-openapi";
2
+ import { resolver, validator } from "hono-openapi";
3
+ import { parseEventLogs } from "viem";
4
+ import { waitForTransactionReceipt } from "viem/actions";
5
+ import { z } from "zod";
6
+ import { abis } from "@evergonlabs/tmi-factories-sdk";
7
+ import { getPublicClient } from "../../../common/blockchain.js";
8
+ import { createController } from "../../../common/controller.js";
9
+ import { HttpError } from "../../../common/http-error.js";
10
+ import { AddressSchema, HashSchema } from "../../../common/index.js";
11
+ import { FactoryChainIdQuery } from "../../common/factories.js";
12
+ import { erc1155Tag } from "../tag.js";
13
+ const QuerySchema = z.object({
14
+ chainId: FactoryChainIdQuery.openapi({
15
+ param: {
16
+ name: "chainId",
17
+ in: "query",
18
+ },
19
+ }),
20
+ hash: HashSchema.openapi({
21
+ param: {
22
+ name: "hash",
23
+ in: "query",
24
+ },
25
+ }),
26
+ });
27
+ export const ParseDefaultErc1155DeployEvent = createController({
28
+ build: (factory) => factory.createApp().get("/", describeRoute({
29
+ summary: "Get ERC1155 TokenProxyConfigured Event",
30
+ description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC1155 factory \`deployAndInitializeProxy\` action`,
31
+ tags: [erc1155Tag.tag],
32
+ responses: {
33
+ 200: {
34
+ description: "Returns parsed event log",
35
+ content: {
36
+ "application/json": {
37
+ schema: resolver(z.object({
38
+ proxy: AddressSchema,
39
+ admin: AddressSchema,
40
+ minter: AddressSchema,
41
+ baseURI: z.string(),
42
+ })),
43
+ },
44
+ },
45
+ },
46
+ },
47
+ }), validator("query", QuerySchema), async (c) => {
48
+ const params = c.req.valid("query");
49
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
50
+ hash: params.hash,
51
+ });
52
+ const [event] = parseEventLogs({
53
+ abi: abis.erc1155AutoIdPausableRecoverableFactoryAbi,
54
+ eventName: "TokenProxyConfigured",
55
+ logs: receipt.logs,
56
+ });
57
+ if (!event) {
58
+ throw new UnableParseDefaultErc1155DeployEvent();
59
+ }
60
+ return c.json({
61
+ proxy: event.args.proxy,
62
+ admin: event.args.admin,
63
+ minter: event.args.minter,
64
+ baseURI: event.args.baseURI,
65
+ });
66
+ }),
67
+ });
68
+ class UnableParseDefaultErc1155DeployEvent extends HttpError {
69
+ constructor() {
70
+ super(500, {
71
+ message: `Can't parse TokenProxyConfigured event. Make sure you're passing a transaction generated by the ERC1155 factory \`deployAndInitializeProxy\` action`,
72
+ name: "UnableParseDefaultErc1155DeployEvent",
73
+ });
74
+ }
75
+ }
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ export declare const DeployGatedErc1155RequestSchema: z.ZodObject<{
3
+ chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 72080>, z.ZodLiteral<11155111 | 72080>, ...z.ZodLiteral<11155111 | 72080>[]]>;
4
+ baseURI: z.ZodString;
5
+ defaultTokenAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
6
+ minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
7
+ gatingSigner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
8
+ }, z.core.$strip>;
9
+ export declare const CreateGatedErc1155Token: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
10
+ "/": {
11
+ $post: {
12
+ input: {
13
+ json: {
14
+ chainId: 11155111 | 72080;
15
+ baseURI: string;
16
+ defaultTokenAdmin: string;
17
+ minter: string;
18
+ gatingSigner?: string | undefined;
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=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,+BAA+B;;;;;;iBAQ1C,CAAC;AAiCH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBlC,CAAC"}