@evergonlabs/tmi-protocol-api 0.10.0-rc.1 → 0.10.0
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/common/blockchain.d.ts +2137 -766
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/fractions/index.d.ts +71 -71
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +1 -3
- package/dist/fractions/markets/getDeployEvent.js +1 -1
- package/dist/fractions/markets/getMarket/getMarket.js +1 -1
- package/dist/fractions/markets/searchMarkets/searchMarkets.js +1 -1
- 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 +2 -2
- package/dist/fractions/sales/getWithdrawEvent.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +56 -14
- package/dist/issuance/common/factories.base.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.js +3 -2
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/deploy.js +4 -3
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/initialize.js +3 -2
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.js +4 -3
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/deploy.js +4 -3
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/initialize.js +4 -3
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +4 -3
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/grantRole.js +4 -3
- package/dist/issuance/erc1155/mint.d.ts.map +1 -1
- package/dist/issuance/erc1155/mint.js +3 -2
- package/dist/issuance/erc1155/recover.d.ts.map +1 -1
- package/dist/issuance/erc1155/recover.js +3 -2
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/renounceRole.js +4 -3
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/revokeRole.js +4 -3
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.js +4 -3
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setBaseURI.js +4 -3
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setTokenURI.js +4 -3
- 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 +3 -2
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +3 -2
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +3 -2
- 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 +3 -2
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/deploy.js +3 -2
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +3 -2
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +3 -2
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/deploy.js +3 -2
- 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 +3 -2
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/grantRole.js +3 -2
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +3 -2
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +3 -2
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.js +3 -2
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.js +3 -2
- 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 +3 -2
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +3 -2
- 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 +4 -3
- 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 +4 -3
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +4 -3
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +4 -3
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +4 -3
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +4 -3
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +3 -2
- 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 +4 -3
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +4 -3
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +4 -3
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +4 -3
- 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/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 +3 -2
- package/dist/next/fractions/index.js +2 -2
- package/dist/next/fractions/lending/buyback/buyback.routes.js +4 -4
- package/dist/next/fractions/lending/createLendingSale.js +4 -4
- package/dist/next/fractions/lending/deployMarket/lending.routes.js +4 -4
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +3 -3
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.js +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +2 -2
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +2 -2
- package/dist/staking/pools/getPool/v0/getPool.js +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.js +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.js +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/getReward.js +3 -3
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.js +2 -2
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.js +3 -3
- package/dist/stakingTemplates/templates/reputation/v0/createPool.js +3 -3
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.js +3 -3
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.js +3 -3
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.js +3 -3
- package/dist/stakingTemplates/templates/rwa/v0/createPool.js +3 -3
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.js +3 -3
- package/package.json +18 -15
|
@@ -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
|
});
|
|
@@ -10,9 +10,9 @@ import { HttpError } from "../../common/http-error.js";
|
|
|
10
10
|
import { AddressSchema, SentTransactionParamsSchema } from "../../common/index.js";
|
|
11
11
|
export const ParseFractionsCreatedEventV0 = createController({
|
|
12
12
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
|
-
summary: "Get FractionsCreated
|
|
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",
|
|
@@ -10,9 +10,9 @@ import { HttpError } from "../../../common/http-error.js";
|
|
|
10
10
|
import { AddressSchema, SentTransactionParamsSchema } from "../../../common/index.js";
|
|
11
11
|
export const ParseClaimVestedTokensEventV0 = createController({
|
|
12
12
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
|
-
summary: "Get ClaimVestedTokens
|
|
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",
|
|
@@ -8,19 +8,18 @@ export declare const FactoryChainId: {
|
|
|
8
8
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
blockTime?: number | undefined | undefined;
|
|
11
12
|
contracts: {
|
|
12
13
|
readonly multicall3: {
|
|
13
14
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
14
15
|
readonly blockCreated: 751532;
|
|
15
16
|
};
|
|
16
|
-
readonly ensRegistry: {
|
|
17
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
18
|
-
};
|
|
19
17
|
readonly ensUniversalResolver: {
|
|
20
|
-
readonly address: "
|
|
21
|
-
readonly blockCreated:
|
|
18
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
19
|
+
readonly blockCreated: 8928790;
|
|
22
20
|
};
|
|
23
21
|
};
|
|
22
|
+
ensTlds?: readonly string[] | undefined;
|
|
24
23
|
id: 11155111;
|
|
25
24
|
name: "Sepolia";
|
|
26
25
|
nativeCurrency: {
|
|
@@ -28,17 +27,27 @@ export declare const FactoryChainId: {
|
|
|
28
27
|
readonly symbol: "ETH";
|
|
29
28
|
readonly decimals: 18;
|
|
30
29
|
};
|
|
30
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
31
31
|
rpcUrls: {
|
|
32
32
|
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://
|
|
33
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
sourceId?: number | undefined;
|
|
36
|
+
sourceId?: number | undefined | undefined;
|
|
37
37
|
testnet: true;
|
|
38
38
|
custom?: Record<string, unknown> | undefined;
|
|
39
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
39
40
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
40
41
|
formatters?: undefined;
|
|
42
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
43
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
44
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
45
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
46
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
47
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
48
|
+
}] | undefined;
|
|
41
49
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
50
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
42
51
|
} | {
|
|
43
52
|
blockExplorers: {
|
|
44
53
|
readonly default: {
|
|
@@ -46,7 +55,9 @@ export declare const FactoryChainId: {
|
|
|
46
55
|
readonly url: "https://explorer.testnet.nexera.network/";
|
|
47
56
|
};
|
|
48
57
|
};
|
|
58
|
+
blockTime?: number | undefined | undefined;
|
|
49
59
|
contracts: {};
|
|
60
|
+
ensTlds?: readonly string[] | undefined;
|
|
50
61
|
id: 72080;
|
|
51
62
|
name: "Nexera Testnet";
|
|
52
63
|
nativeCurrency: {
|
|
@@ -54,6 +65,7 @@ export declare const FactoryChainId: {
|
|
|
54
65
|
readonly name: "Nexera";
|
|
55
66
|
readonly symbol: "tNXRA";
|
|
56
67
|
};
|
|
68
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
57
69
|
rpcUrls: {
|
|
58
70
|
readonly default: {
|
|
59
71
|
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
@@ -65,9 +77,18 @@ export declare const FactoryChainId: {
|
|
|
65
77
|
sourceId?: number | undefined | undefined;
|
|
66
78
|
testnet?: boolean | undefined | undefined;
|
|
67
79
|
custom?: Record<string, unknown> | undefined;
|
|
80
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
68
81
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
69
82
|
formatters?: undefined;
|
|
83
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
84
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
85
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
86
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
87
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
88
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
89
|
+
}] | undefined;
|
|
70
90
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
91
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
71
92
|
})[];
|
|
72
93
|
chainIds: (11155111 | 72080)[];
|
|
73
94
|
isSupported: (chainId: number) => chainId is 11155111 | 72080;
|
|
@@ -79,19 +100,18 @@ export declare const FactoryChainId: {
|
|
|
79
100
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
80
101
|
};
|
|
81
102
|
};
|
|
103
|
+
blockTime?: number | undefined | undefined;
|
|
82
104
|
contracts: {
|
|
83
105
|
readonly multicall3: {
|
|
84
106
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
85
107
|
readonly blockCreated: 751532;
|
|
86
108
|
};
|
|
87
|
-
readonly ensRegistry: {
|
|
88
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
89
|
-
};
|
|
90
109
|
readonly ensUniversalResolver: {
|
|
91
|
-
readonly address: "
|
|
92
|
-
readonly blockCreated:
|
|
110
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
111
|
+
readonly blockCreated: 8928790;
|
|
93
112
|
};
|
|
94
113
|
};
|
|
114
|
+
ensTlds?: readonly string[] | undefined;
|
|
95
115
|
id: 11155111;
|
|
96
116
|
name: "Sepolia";
|
|
97
117
|
nativeCurrency: {
|
|
@@ -99,17 +119,27 @@ export declare const FactoryChainId: {
|
|
|
99
119
|
readonly symbol: "ETH";
|
|
100
120
|
readonly decimals: 18;
|
|
101
121
|
};
|
|
122
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
102
123
|
rpcUrls: {
|
|
103
124
|
readonly default: {
|
|
104
|
-
readonly http: readonly ["https://
|
|
125
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
105
126
|
};
|
|
106
127
|
};
|
|
107
|
-
sourceId?: number | undefined;
|
|
128
|
+
sourceId?: number | undefined | undefined;
|
|
108
129
|
testnet: true;
|
|
109
130
|
custom?: Record<string, unknown> | undefined;
|
|
131
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
110
132
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
111
133
|
formatters?: undefined;
|
|
134
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
135
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
136
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
137
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
138
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
139
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
140
|
+
}] | undefined;
|
|
112
141
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
142
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
113
143
|
}, {
|
|
114
144
|
id: T;
|
|
115
145
|
}> | Extract<{
|
|
@@ -119,7 +149,9 @@ export declare const FactoryChainId: {
|
|
|
119
149
|
readonly url: "https://explorer.testnet.nexera.network/";
|
|
120
150
|
};
|
|
121
151
|
};
|
|
152
|
+
blockTime?: number | undefined | undefined;
|
|
122
153
|
contracts: {};
|
|
154
|
+
ensTlds?: readonly string[] | undefined;
|
|
123
155
|
id: 72080;
|
|
124
156
|
name: "Nexera Testnet";
|
|
125
157
|
nativeCurrency: {
|
|
@@ -127,6 +159,7 @@ export declare const FactoryChainId: {
|
|
|
127
159
|
readonly name: "Nexera";
|
|
128
160
|
readonly symbol: "tNXRA";
|
|
129
161
|
};
|
|
162
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
130
163
|
rpcUrls: {
|
|
131
164
|
readonly default: {
|
|
132
165
|
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
@@ -138,9 +171,18 @@ export declare const FactoryChainId: {
|
|
|
138
171
|
sourceId?: number | undefined | undefined;
|
|
139
172
|
testnet?: boolean | undefined | undefined;
|
|
140
173
|
custom?: Record<string, unknown> | undefined;
|
|
174
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
141
175
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
142
176
|
formatters?: undefined;
|
|
177
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
178
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
179
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
180
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
181
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
182
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
183
|
+
}] | undefined;
|
|
143
184
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
185
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
144
186
|
}, {
|
|
145
187
|
id: T;
|
|
146
188
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.base.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.base.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"factories.base.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.base.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAama,MAAgB;;mDAA+G,MAAgB;;6BAAoK,MAAgB,8DAA8D,MAAgB;;6BAAoK,MAAgB;;;6BAAmN,MAAgB,qCAAqC,MAAgB;sCAA0E,MAAgB,6BAA6B,MAAgB,gDAAgD,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAApiC,MAAgB;;mDAA+G,MAAgB;;6BAAoK,MAAgB,8DAA8D,MAAgB;;6BAAoK,MAAgB;;;6BAAmN,MAAgB,qCAAqC,MAAgB;sCAA0E,MAAgB,6BAA6B,MAAgB,gDAAgD,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAbr5C,CAAC;AAE9E,eAAO,MAAM,eAAe,sBAAmF,CAAC;AAChH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EAAE,EAAE,EAAE,CAAC;;;;;;;;;;;;;;;;EAO5D"}
|
|
@@ -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" }),
|
|
@@ -13,8 +14,8 @@ export const BurnErc1155RequestSchema = z.object({
|
|
|
13
14
|
});
|
|
14
15
|
const burnRoute = describeRoute({
|
|
15
16
|
summary: "Burn ERC1155",
|
|
16
|
-
description: "Returns transaction data for burning an ERC1155 token",
|
|
17
|
-
tags: [
|
|
17
|
+
description: "[TESTNET ONLY] Returns transaction data for burning an ERC1155 token",
|
|
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" }),
|
|
@@ -12,8 +13,8 @@ export const DeployErc1155RequestSchema = z.object({
|
|
|
12
13
|
minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
|
|
13
14
|
});
|
|
14
15
|
const deployErc1155Route = describeRoute({
|
|
15
|
-
summary: "Deploy ERC1155 via
|
|
16
|
-
description: `This contract has not been audited.
|
|
16
|
+
summary: "Deploy ERC1155 via factory",
|
|
17
|
+
description: `[TESTNET ONLY] This contract has not been audited.
|
|
17
18
|
|
|
18
19
|
Returns transaction data for deploying a new ERC1155 token via the factory contract.
|
|
19
20
|
|
|
@@ -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" }),
|
|
@@ -12,8 +13,8 @@ export const InitializeErc1155RequestSchema = z.object({
|
|
|
12
13
|
});
|
|
13
14
|
const initializeRoute = describeRoute({
|
|
14
15
|
summary: "Initialize ERC1155",
|
|
15
|
-
description: "Returns transaction data for initializing an ERC1155 token proxy contract",
|
|
16
|
-
tags: [
|
|
16
|
+
description: "[TESTNET ONLY] Returns transaction data for initializing an ERC1155 token proxy contract",
|
|
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: {
|
|
@@ -25,9 +26,9 @@ const QuerySchema = z.object({
|
|
|
25
26
|
});
|
|
26
27
|
export const ParseDefaultErc1155DeployEvent = createController({
|
|
27
28
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
28
|
-
summary: "Get ERC1155 TokenProxyConfigured
|
|
29
|
-
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: [
|
|
29
|
+
summary: "Get ERC1155 TokenProxyConfigured event",
|
|
30
|
+
description: `[TESTNET ONLY] 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],
|
|
31
32
|
responses: {
|
|
32
33
|
200: {
|
|
33
34
|
description: "Returns parsed event log",
|