@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.
- package/dist/app.d.ts +430 -72
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +465 -77
- package/dist/client.d.ts.map +1 -1
- package/dist/common/roles/erc1155-token-roles.d.ts +8 -0
- package/dist/common/roles/erc1155-token-roles.d.ts.map +1 -0
- package/dist/common/roles/erc1155-token-roles.js +13 -0
- package/dist/common/roles/exports.d.ts +1 -0
- package/dist/common/roles/exports.d.ts.map +1 -1
- package/dist/common/roles/exports.js +1 -0
- package/dist/fractions/index.d.ts +71 -71
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +0 -2
- package/dist/fractions/platforms/deployMarket.routes.js +4 -4
- package/dist/fractions/platforms/initCompilot.routes.js +1 -1
- package/dist/fractions/platforms/initNid.route.js +1 -1
- package/dist/fractions/sales/approveSale.route.js +1 -1
- package/dist/fractions/sales/approveWrapper.route.d.ts +88 -0
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/sales/approveWrapper.route.js +92 -0
- package/dist/fractions/sales/completeSale.route.js +1 -1
- package/dist/fractions/sales/createFractions.route.js +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +1 -1
- package/dist/fractions/sales/getVaultAddress.js +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +1 -1
- package/dist/fractions/sales/index.d.ts +71 -1
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +5 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +1 -1
- package/dist/fractions/sales/purchase.route.js +1 -1
- package/dist/fractions/sales/purchaseStatistics.route.js +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +2 -2
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +1 -1
- package/dist/fractions/sales/recoverFractions.js +1 -1
- package/dist/fractions/sales/rejectFractions.js +1 -1
- package/dist/fractions/sales/searchActivity.route.js +1 -1
- package/dist/fractions/sales/searchSales/searchSales.js +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.js +1 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.js +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.js +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.js +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
- package/dist/fractions/sales/withdraw.route.js +1 -1
- package/dist/fractions/statistics/networkStatistics.route.js +4 -4
- package/dist/issuance/common/factories.base.d.ts +12 -12
- package/dist/issuance/erc1155/burn.d.ts +34 -0
- package/dist/issuance/erc1155/burn.d.ts.map +1 -0
- package/dist/issuance/erc1155/burn.js +40 -0
- package/dist/issuance/erc1155/default/deploy.d.ts +34 -0
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/deploy.js +54 -0
- package/dist/issuance/erc1155/default/initialize.d.ts +34 -0
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/initialize.js +39 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +21 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.js +75 -0
- package/dist/issuance/erc1155/gated/deploy.d.ts +36 -0
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/deploy.js +62 -0
- package/dist/issuance/erc1155/gated/initialize.d.ts +36 -0
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/initialize.js +45 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +21 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +75 -0
- package/dist/issuance/erc1155/grantRole.d.ts +33 -0
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/grantRole.js +42 -0
- package/dist/issuance/erc1155/index.d.ts +361 -0
- package/dist/issuance/erc1155/index.d.ts.map +1 -0
- package/dist/issuance/erc1155/index.js +38 -0
- package/dist/issuance/erc1155/mint.d.ts +34 -0
- package/dist/issuance/erc1155/mint.d.ts.map +1 -0
- package/dist/issuance/erc1155/mint.js +40 -0
- package/dist/issuance/erc1155/recover.d.ts +36 -0
- package/dist/issuance/erc1155/recover.d.ts.map +1 -0
- package/dist/issuance/erc1155/recover.js +41 -0
- package/dist/issuance/erc1155/renounceRole.d.ts +33 -0
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/renounceRole.js +42 -0
- package/dist/issuance/erc1155/revokeRole.d.ts +33 -0
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/revokeRole.js +42 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts +32 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -0
- package/dist/issuance/erc1155/setApprovalForAll.js +40 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts +30 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setBaseURI.js +37 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts +32 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setTokenURI.js +39 -0
- package/dist/issuance/erc1155/tag.d.ts +4 -0
- package/dist/issuance/erc1155/tag.d.ts.map +1 -0
- package/dist/issuance/erc1155/tag.js +2 -0
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/approve.js +2 -1
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +2 -1
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +2 -1
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/default/initialize.js +2 -1
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/default/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/deploy.js +2 -1
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +2 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/deploy.js +2 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.js +2 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/grantRole.js +2 -1
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +2 -1
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +2 -1
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.js +2 -1
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.js +2 -1
- package/dist/issuance/erc20/tag.d.ts +4 -0
- package/dist/issuance/erc20/tag.d.ts.map +1 -0
- package/dist/issuance/erc20/tag.js +2 -0
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.js +2 -1
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +2 -1
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.js +3 -2
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +3 -2
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +6 -5
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/default/initialize.js +3 -2
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +3 -2
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +6 -5
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +3 -2
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +3 -2
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +3 -2
- package/dist/issuance/erc721/index.d.ts +0 -1
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.d.ts +0 -2
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +6 -7
- package/dist/issuance/erc721/nextTokenId.d.ts +19 -0
- package/dist/issuance/erc721/nextTokenId.d.ts.map +1 -0
- package/dist/issuance/erc721/nextTokenId.js +79 -0
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +3 -2
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.js +3 -2
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +3 -2
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +3 -2
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +3 -2
- package/dist/issuance/erc721/tag.d.ts +4 -0
- package/dist/issuance/erc721/tag.d.ts.map +1 -0
- package/dist/issuance/erc721/tag.js +2 -0
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.js +3 -2
- package/dist/issuance/index.d.ts +359 -1
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +2 -0
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.js +3 -2
- package/dist/issuance/proxy/tag.d.ts +4 -0
- package/dist/issuance/proxy/tag.d.ts.map +1 -0
- package/dist/issuance/proxy/tag.js +2 -0
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
- package/dist/issuance/proxy/upgrade.js +2 -1
- 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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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: ["
|
|
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
|
|
153
|
-
readonly
|
|
154
|
-
readonly ERC20GatedPausableRecoverableFactory: "
|
|
155
|
-
readonly ERC20PausableRecoverableFactory: "
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
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
|
|
161
|
-
readonly
|
|
162
|
-
readonly ERC20GatedPausableRecoverableFactory: "
|
|
163
|
-
readonly ERC20PausableRecoverableFactory: "
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
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"}
|