@evergonlabs/tmi-protocol-api 0.10.0-rc.1 → 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 +71 -71
- package/dist/client.d.ts +76 -76
- 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/erc1155/burn.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.js +2 -1
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/deploy.js +2 -1
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/initialize.js +2 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.js +2 -1
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/deploy.js +2 -1
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/initialize.js +2 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +2 -1
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/grantRole.js +2 -1
- package/dist/issuance/erc1155/mint.d.ts.map +1 -1
- package/dist/issuance/erc1155/mint.js +2 -1
- package/dist/issuance/erc1155/recover.d.ts.map +1 -1
- package/dist/issuance/erc1155/recover.js +2 -1
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/renounceRole.js +2 -1
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/revokeRole.js +2 -1
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.js +2 -1
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setBaseURI.js +2 -1
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setTokenURI.js +2 -1
- 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 +2 -1
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +2 -1
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +2 -1
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/default/initialize.js +2 -1
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +2 -1
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +2 -1
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +2 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +2 -1
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +2 -1
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +2 -1
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +2 -1
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.js +2 -1
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +2 -1
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +2 -1
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +2 -1
- 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 +2 -1
- 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 +15 -13
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { buildApproveErc20SpendingToWrapperTx, buildApproveErc721SpendingToWrapperTx, buildApproveWrapperTx, } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
|
+
import { createController } from "../../common/controller.js";
|
|
6
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
|
+
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
+
export const ApproveWrapperRequestSchema = z.object({
|
|
9
|
+
marketAddress: AddressSchema,
|
|
10
|
+
wrapperAddress: AddressSchema,
|
|
11
|
+
});
|
|
12
|
+
export const ApproveErc20SpendingToWrapper = z.object({
|
|
13
|
+
wrapperAddress: AddressSchema,
|
|
14
|
+
erc20Address: AddressSchema,
|
|
15
|
+
amount: Int256BigInt(),
|
|
16
|
+
});
|
|
17
|
+
export const ApproveErc721SpendingToWrapper = z.object({
|
|
18
|
+
wrapperAddress: AddressSchema,
|
|
19
|
+
erc721Address: AddressSchema,
|
|
20
|
+
});
|
|
21
|
+
const route = describeRoute({
|
|
22
|
+
summary: "Approve a wrapper",
|
|
23
|
+
description: "Returns transaction data for approving a wrapper",
|
|
24
|
+
tags: ["Sales"],
|
|
25
|
+
responses: {
|
|
26
|
+
200: {
|
|
27
|
+
description: "Returns transaction data for approving a wrapper",
|
|
28
|
+
content: {
|
|
29
|
+
"application/json": {
|
|
30
|
+
schema: resolver(TransactionSchema),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
export const ApproveWrapperV0 = createController({
|
|
37
|
+
build: (factory) => factory
|
|
38
|
+
.createApp()
|
|
39
|
+
.post("/", route, validator("json", ApproveWrapperRequestSchema.openapi("ApproveWrapperRequestSchema")), async (c) => {
|
|
40
|
+
const { marketAddress, wrapperAddress } = c.req.valid("json");
|
|
41
|
+
const tx = buildApproveWrapperTx(marketAddress, wrapperAddress);
|
|
42
|
+
return c.json(toTransaction(tx));
|
|
43
|
+
}),
|
|
44
|
+
});
|
|
45
|
+
const route_erc20 = describeRoute({
|
|
46
|
+
summary: "Approve wrapped ERC20 spending",
|
|
47
|
+
description: "Returns transaction data for approving a wrapper as a spender of wrapped ERC20",
|
|
48
|
+
tags: ["Sales"],
|
|
49
|
+
responses: {
|
|
50
|
+
200: {
|
|
51
|
+
description: "Returns transaction data for approving a wrapper",
|
|
52
|
+
content: {
|
|
53
|
+
"application/json": {
|
|
54
|
+
schema: resolver(TransactionSchema),
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
export const ApproveErc20SpendingToWrapperV0 = createController({
|
|
61
|
+
build: (factory) => factory
|
|
62
|
+
.createApp()
|
|
63
|
+
.post("/", route_erc20, validator("json", ApproveErc20SpendingToWrapper.openapi("ApproveErc20SpendingToWrapper")), async (c) => {
|
|
64
|
+
const { wrapperAddress, erc20Address, amount } = c.req.valid("json");
|
|
65
|
+
const tx = buildApproveErc20SpendingToWrapperTx(wrapperAddress, erc20Address, amount);
|
|
66
|
+
return c.json(toTransaction(tx));
|
|
67
|
+
}),
|
|
68
|
+
});
|
|
69
|
+
const routeErc721 = describeRoute({
|
|
70
|
+
summary: "Approve wrapped ERC721 spending",
|
|
71
|
+
description: "Returns transaction data for approving a wrapper",
|
|
72
|
+
tags: ["Sales"],
|
|
73
|
+
responses: {
|
|
74
|
+
200: {
|
|
75
|
+
description: "Returns transaction data for approving a wrapper",
|
|
76
|
+
content: {
|
|
77
|
+
"application/json": {
|
|
78
|
+
schema: resolver(TransactionSchema),
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
export const ApproveErc721SpendingToWrapperV0 = createController({
|
|
85
|
+
build: (factory) => factory
|
|
86
|
+
.createApp()
|
|
87
|
+
.post("/", routeErc721, validator("json", ApproveErc721SpendingToWrapper.openapi("ApproveErc721SpendingToWrapper")), async (c) => {
|
|
88
|
+
const { wrapperAddress, erc721Address } = c.req.valid("json");
|
|
89
|
+
const tx = buildApproveErc721SpendingToWrapperTx(wrapperAddress, erc721Address);
|
|
90
|
+
return c.json(toTransaction(tx));
|
|
91
|
+
}),
|
|
92
|
+
});
|
|
@@ -12,7 +12,7 @@ export const CompleteSaleRequestSchema = z.object({
|
|
|
12
12
|
const route = describeRoute({
|
|
13
13
|
summary: "Complete a sale",
|
|
14
14
|
description: "Returns transaction data for completing a sale",
|
|
15
|
-
tags: ["
|
|
15
|
+
tags: ["Sales"],
|
|
16
16
|
responses: {
|
|
17
17
|
200: {
|
|
18
18
|
description: "Returns transaction data for completing a sale",
|
|
@@ -7,7 +7,7 @@ import { CreateFractionsRequestSchema, createWrapped } from "./createFractions.s
|
|
|
7
7
|
const route = describeRoute({
|
|
8
8
|
summary: "Create fractions",
|
|
9
9
|
description: "Returns transaction data for creating fractions",
|
|
10
|
-
tags: ["
|
|
10
|
+
tags: ["Sales"],
|
|
11
11
|
responses: {
|
|
12
12
|
200: {
|
|
13
13
|
description: "Returns transaction data for creating fractions",
|
|
@@ -21,7 +21,7 @@ export const GetFractionSaleStatisticsV0 = createController({
|
|
|
21
21
|
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
22
22
|
summary: "Aggregate sale statistics",
|
|
23
23
|
description: "",
|
|
24
|
-
tags: ["
|
|
24
|
+
tags: ["Sales"],
|
|
25
25
|
responses: {
|
|
26
26
|
200: {
|
|
27
27
|
description: "",
|
|
@@ -12,7 +12,7 @@ export const GetVaultAddressV0 = createController({
|
|
|
12
12
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
13
|
summary: "Get Vault address",
|
|
14
14
|
description: "Returns address of sale's vault",
|
|
15
|
-
tags: ["
|
|
15
|
+
tags: ["Sales"],
|
|
16
16
|
responses: {
|
|
17
17
|
200: {
|
|
18
18
|
description: "Returns address of vault",
|
|
@@ -12,7 +12,7 @@ export const GetWithdrawEventV0 = createController({
|
|
|
12
12
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
13
|
summary: "Get Withdraw Event",
|
|
14
14
|
description: `Gets the transaction by hash and parses emitted logs.`,
|
|
15
|
-
tags: ["
|
|
15
|
+
tags: ["Sales"],
|
|
16
16
|
responses: {
|
|
17
17
|
200: {
|
|
18
18
|
description: "Returns parsed event log",
|
|
@@ -864,5 +864,75 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
864
864
|
status: 200;
|
|
865
865
|
};
|
|
866
866
|
};
|
|
867
|
-
}, "/getVaultAddress"
|
|
867
|
+
}, "/getVaultAddress"> | import("hono/types").MergeSchemaPath<{
|
|
868
|
+
"/": {
|
|
869
|
+
$post: {
|
|
870
|
+
input: {
|
|
871
|
+
json: {
|
|
872
|
+
marketAddress: string;
|
|
873
|
+
wrapperAddress: string;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
output: {
|
|
877
|
+
data: `0x${string}`;
|
|
878
|
+
to: `0x${string}`;
|
|
879
|
+
details: {
|
|
880
|
+
functionName: string;
|
|
881
|
+
address: `0x${string}`;
|
|
882
|
+
abi: any[];
|
|
883
|
+
args: any[];
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
outputFormat: "json";
|
|
887
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
}, "/approveWrapper"> | import("hono/types").MergeSchemaPath<{
|
|
891
|
+
"/": {
|
|
892
|
+
$post: {
|
|
893
|
+
input: {
|
|
894
|
+
json: {
|
|
895
|
+
wrapperAddress: string;
|
|
896
|
+
erc20Address: string;
|
|
897
|
+
amount: string;
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
output: {
|
|
901
|
+
data: `0x${string}`;
|
|
902
|
+
to: `0x${string}`;
|
|
903
|
+
details: {
|
|
904
|
+
functionName: string;
|
|
905
|
+
address: `0x${string}`;
|
|
906
|
+
abi: any[];
|
|
907
|
+
args: any[];
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
outputFormat: "json";
|
|
911
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
}, "/approveWrapperAsErc20Spender"> | import("hono/types").MergeSchemaPath<{
|
|
915
|
+
"/": {
|
|
916
|
+
$post: {
|
|
917
|
+
input: {
|
|
918
|
+
json: {
|
|
919
|
+
wrapperAddress: string;
|
|
920
|
+
erc721Address: string;
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
output: {
|
|
924
|
+
data: `0x${string}`;
|
|
925
|
+
to: `0x${string}`;
|
|
926
|
+
details: {
|
|
927
|
+
functionName: string;
|
|
928
|
+
address: `0x${string}`;
|
|
929
|
+
abi: any[];
|
|
930
|
+
args: any[];
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
outputFormat: "json";
|
|
934
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
}, "/approveWrapperAsErc721Spender">, "/", "/">>;
|
|
868
938
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/index.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA+B1B,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { ClaimVestedTokensV0 } from "./vesting/claimVestedTokens.route.js";
|
|
|
5
5
|
import { EditCliffV0 } from "./vesting/editCliff.route.js";
|
|
6
6
|
import { ParseClaimVestedTokensEventV0 } from "./vesting/parseClaimVestedTokensEvent.js";
|
|
7
7
|
import { ApproveSaleV0 } from "./approveSale.route.js";
|
|
8
|
+
import { ApproveErc20SpendingToWrapperV0, ApproveErc721SpendingToWrapperV0, ApproveWrapperV0, } from "./approveWrapper.route.js";
|
|
8
9
|
import { CompleteSaleV0 } from "./completeSale.route.js";
|
|
9
10
|
import { CreateFractionsV0 } from "./createFractions.route.js";
|
|
10
11
|
import { GetFractionSaleStatisticsV0 } from "./getFractionSaleStatistics.route.js";
|
|
@@ -48,5 +49,8 @@ export const SalesController = createController({
|
|
|
48
49
|
.route("/statistics", GetFractionSaleStatisticsV0.build(factory))
|
|
49
50
|
.route("/setFeeCapLimit", SetFeeCapLimitV0.build(factory))
|
|
50
51
|
.route("/getWithdrawEvent", GetWithdrawEventV0.build(factory))
|
|
51
|
-
.route("/getVaultAddress", GetVaultAddressV0.build(factory))
|
|
52
|
+
.route("/getVaultAddress", GetVaultAddressV0.build(factory))
|
|
53
|
+
.route("/approveWrapper", ApproveWrapperV0.build(factory))
|
|
54
|
+
.route("/approveWrapperAsErc20Spender", ApproveErc20SpendingToWrapperV0.build(factory))
|
|
55
|
+
.route("/approveWrapperAsErc721Spender", ApproveErc721SpendingToWrapperV0.build(factory)),
|
|
52
56
|
});
|
|
@@ -12,7 +12,7 @@ export const ParseFractionsCreatedEventV0 = createController({
|
|
|
12
12
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
13
|
summary: "Get FractionsCreated Event",
|
|
14
14
|
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`createFractions\` action`,
|
|
15
|
-
tags: ["
|
|
15
|
+
tags: ["Sales"],
|
|
16
16
|
responses: {
|
|
17
17
|
200: {
|
|
18
18
|
description: "Returns parsed event log",
|
|
@@ -13,7 +13,7 @@ export const PurchaseRequestSchema = SaleIdSchema.extend({
|
|
|
13
13
|
const route = describeRoute({
|
|
14
14
|
summary: "Make a purchase",
|
|
15
15
|
description: "Returns transaction data for making a purchase",
|
|
16
|
-
tags: ["
|
|
16
|
+
tags: ["Sales"],
|
|
17
17
|
responses: {
|
|
18
18
|
200: {
|
|
19
19
|
description: "Returns transaction data for making a purchase",
|
|
@@ -10,7 +10,7 @@ export const PurchaseStatisticsV0 = createController({
|
|
|
10
10
|
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
11
11
|
summary: "Aggregate investor statistics for certain campaign",
|
|
12
12
|
description: "Returns aggregated statistics about investor purchases for a specific campaign, grouped by price ID. Statistics include the number of purchases and the total number of fractions sold.",
|
|
13
|
-
tags: ["
|
|
13
|
+
tags: ["Sales"],
|
|
14
14
|
responses: {
|
|
15
15
|
200: {
|
|
16
16
|
description: "Aggregated purchase statistics for the specified campaign and investor.",
|
|
@@ -16,7 +16,7 @@ export const ReceiveFundsAfterNonFundedRequestSchema = z
|
|
|
16
16
|
const route = describeRoute({
|
|
17
17
|
summary: "Receive funds after non funded state",
|
|
18
18
|
description: "Returns transaction to receive funds after a sale enters non funded state",
|
|
19
|
-
tags: ["
|
|
19
|
+
tags: ["Sales"],
|
|
20
20
|
responses: {
|
|
21
21
|
200: {
|
|
22
22
|
description: "Returns transaction to receive funds after non funded state",
|
|
@@ -42,7 +42,7 @@ export const ReceiveFundsAfterNonFundedV0 = createController({
|
|
|
42
42
|
const checkAndJumpToNonFundedRoute = describeRoute({
|
|
43
43
|
summary: "Check and jump to non funded state",
|
|
44
44
|
description: "Returns transaction to check and jump a sale to non funded state if conditions are met",
|
|
45
|
-
tags: ["
|
|
45
|
+
tags: ["Sales"],
|
|
46
46
|
responses: {
|
|
47
47
|
200: {
|
|
48
48
|
description: "Returns transaction to check and jump to non funded state",
|
|
@@ -7,7 +7,7 @@ import { SaleIdSchema } from "../../common/models/saleId.js";
|
|
|
7
7
|
const route = describeRoute({
|
|
8
8
|
summary: "Receive non-purchased wrapped assets",
|
|
9
9
|
description: "Returns transaction to receive non-purchased wrapped assets from a sale",
|
|
10
|
-
tags: ["
|
|
10
|
+
tags: ["Sales"],
|
|
11
11
|
responses: {
|
|
12
12
|
200: {
|
|
13
13
|
description: "Returns transaction to receive non-purchased wrapped assets",
|
|
@@ -18,7 +18,7 @@ export const RecoverFractionsRequestSchema = z
|
|
|
18
18
|
const route = describeRoute({
|
|
19
19
|
summary: "Recover fractions",
|
|
20
20
|
description: "Returns transaction data for recovering fractions from a lost account",
|
|
21
|
-
tags: ["
|
|
21
|
+
tags: ["Sales"],
|
|
22
22
|
responses: {
|
|
23
23
|
200: {
|
|
24
24
|
description: "Returns transaction data for recovering fractions",
|
|
@@ -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",
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
7
|
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
+
import { erc1155Tag } from "./tag.js";
|
|
8
9
|
export const BurnErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
account: AddressSchema.openapi({ description: "Address to burn tokens from" }),
|
|
@@ -14,7 +15,7 @@ export const BurnErc1155RequestSchema = z.object({
|
|
|
14
15
|
const burnRoute = describeRoute({
|
|
15
16
|
summary: "Burn ERC1155",
|
|
16
17
|
description: "Returns transaction data for burning an ERC1155 token",
|
|
17
|
-
tags: [
|
|
18
|
+
tags: [erc1155Tag.tag],
|
|
18
19
|
responses: {
|
|
19
20
|
200: {
|
|
20
21
|
description: "Returns transaction data for burning an ERC1155 token",
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
|
5
5
|
import { createController } from "../../../common/controller.js";
|
|
6
6
|
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
7
|
import { FactoryChainId, getFactories } from "../../common/factories.js";
|
|
8
|
+
import { erc1155Tag } from "../tag.js";
|
|
8
9
|
export const DeployErc1155RequestSchema = z.object({
|
|
9
10
|
chainId: FactoryChainId.Schema,
|
|
10
11
|
baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
|
|
@@ -27,7 +28,7 @@ The deployed token supports:
|
|
|
27
28
|
- setURI(newuri) - Set metadata URI (DEFAULT_ADMIN_ROLE gated)
|
|
28
29
|
- pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
|
|
29
30
|
- recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
|
|
30
|
-
tags: [
|
|
31
|
+
tags: [erc1155Tag.tag],
|
|
31
32
|
responses: {
|
|
32
33
|
200: {
|
|
33
34
|
description: "Returns transaction data for deploying an ERC1155 token via factory",
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -4,6 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
5
5
|
import { createController } from "../../../common/controller.js";
|
|
6
6
|
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
|
+
import { erc1155Tag } from "../tag.js";
|
|
7
8
|
export const InitializeErc1155RequestSchema = z.object({
|
|
8
9
|
tokenAddress: AddressSchema,
|
|
9
10
|
baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
|
|
@@ -13,7 +14,7 @@ export const InitializeErc1155RequestSchema = z.object({
|
|
|
13
14
|
const initializeRoute = describeRoute({
|
|
14
15
|
summary: "Initialize ERC1155",
|
|
15
16
|
description: "Returns transaction data for initializing an ERC1155 token proxy contract",
|
|
16
|
-
tags: [
|
|
17
|
+
tags: [erc1155Tag.tag],
|
|
17
18
|
responses: {
|
|
18
19
|
200: {
|
|
19
20
|
description: "Returns transaction data for initializing an ERC1155 token",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/parseDeployEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/default/parseDeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;aAgDzC,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
9
9
|
import { HttpError } from "../../../common/http-error.js";
|
|
10
10
|
import { AddressSchema, HashSchema } from "../../../common/index.js";
|
|
11
11
|
import { FactoryChainIdQuery } from "../../common/factories.js";
|
|
12
|
+
import { erc1155Tag } from "../tag.js";
|
|
12
13
|
const QuerySchema = z.object({
|
|
13
14
|
chainId: FactoryChainIdQuery.openapi({
|
|
14
15
|
param: {
|
|
@@ -27,7 +28,7 @@ export const ParseDefaultErc1155DeployEvent = createController({
|
|
|
27
28
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
28
29
|
summary: "Get ERC1155 TokenProxyConfigured Event",
|
|
29
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`,
|
|
30
|
-
tags: [
|
|
31
|
+
tags: [erc1155Tag.tag],
|
|
31
32
|
responses: {
|
|
32
33
|
200: {
|
|
33
34
|
description: "Returns parsed event log",
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -6,6 +6,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
6
6
|
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
7
|
import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
|
|
8
8
|
import { FactoryChainId, getFactories } from "../../common/factories.js";
|
|
9
|
+
import { erc1155Tag } from "../tag.js";
|
|
9
10
|
export const DeployGatedErc1155RequestSchema = z.object({
|
|
10
11
|
chainId: FactoryChainId.Schema,
|
|
11
12
|
baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
|
|
@@ -33,7 +34,7 @@ The deployed token supports:
|
|
|
33
34
|
- setURI(newuri) - Set metadata URI (DEFAULT_ADMIN_ROLE gated)
|
|
34
35
|
- pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
|
|
35
36
|
- recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
|
|
36
|
-
tags: [
|
|
37
|
+
tags: [erc1155Tag.tag],
|
|
37
38
|
responses: {
|
|
38
39
|
200: {
|
|
39
40
|
description: "Returns transaction data for deploying a gated ERC1155 token via factory",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mCAAmC;;;;;;iBAQ9C,CAAC;AAkBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBjC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
|
5
5
|
import { createController } from "../../../common/controller.js";
|
|
6
6
|
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
7
|
import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
|
|
8
|
+
import { erc1155Tag } from "../tag.js";
|
|
8
9
|
export const InitializeGatedErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
|
|
@@ -17,7 +18,7 @@ export const InitializeGatedErc1155RequestSchema = z.object({
|
|
|
17
18
|
const initializeRoute = describeRoute({
|
|
18
19
|
summary: "Initialize Gated ERC1155",
|
|
19
20
|
description: "Returns transaction data for initializing a gated ERC1155 token proxy contract",
|
|
20
|
-
tags: [
|
|
21
|
+
tags: [erc1155Tag.tag],
|
|
21
22
|
responses: {
|
|
22
23
|
200: {
|
|
23
24
|
description: "Returns transaction data for initializing a gated ERC1155 token",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/gated/parseDeployEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc1155/gated/parseDeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;aAgDvC,CAAC"}
|