@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
|
@@ -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" }),
|
|
@@ -16,8 +17,8 @@ export const DeployGatedErc1155RequestSchema = z.object({
|
|
|
16
17
|
}),
|
|
17
18
|
});
|
|
18
19
|
const deployGatedErc1155Route = describeRoute({
|
|
19
|
-
summary: "Deploy
|
|
20
|
-
description: `This contract has not been audited.
|
|
20
|
+
summary: "Deploy gated ERC1155 via factory",
|
|
21
|
+
description: `[TESTNET ONLY] This contract has not been audited.
|
|
21
22
|
|
|
22
23
|
Returns transaction data for deploying a new gated ERC1155 token via the factory contract.
|
|
23
24
|
|
|
@@ -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" }),
|
|
@@ -15,9 +16,9 @@ export const InitializeGatedErc1155RequestSchema = z.object({
|
|
|
15
16
|
}),
|
|
16
17
|
});
|
|
17
18
|
const initializeRoute = describeRoute({
|
|
18
|
-
summary: "Initialize
|
|
19
|
-
description: "Returns transaction data for initializing a gated ERC1155 token proxy contract",
|
|
20
|
-
tags: [
|
|
19
|
+
summary: "Initialize gated ERC1155",
|
|
20
|
+
description: "[TESTNET ONLY] Returns transaction data for initializing a gated ERC1155 token proxy contract",
|
|
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"}
|
|
@@ -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 ParseGatedErc1155DeployEvent = createController({
|
|
27
28
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
28
|
-
summary: "Get
|
|
29
|
-
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the Gated ERC1155 factory \`deployAndInitializeProxy\` action`,
|
|
30
|
-
tags: [
|
|
29
|
+
summary: "Get gated 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 Gated ERC1155 factory \`deployAndInitializeProxy\` action`,
|
|
31
|
+
tags: [erc1155Tag.tag],
|
|
31
32
|
responses: {
|
|
32
33
|
200: {
|
|
33
34
|
description: "Returns parsed event log",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/grantRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG5G,eAAO,MAAM,6BAA6B;;;;iBAOxC,CAAC;AAkBH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;aAc3B,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 { convertErc1155TokenRoleToHash, Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
|
|
8
|
+
import { erc1155Tag } from "./tag.js";
|
|
8
9
|
export const GrantRoleErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
role: z.nativeEnum(Erc1155TokenRole).openapi({
|
|
@@ -14,9 +15,9 @@ export const GrantRoleErc1155RequestSchema = z.object({
|
|
|
14
15
|
account: AddressSchema.openapi({ description: "The address to grant the role to" }),
|
|
15
16
|
});
|
|
16
17
|
const grantRoleRoute = describeRoute({
|
|
17
|
-
summary: "Grant
|
|
18
|
-
description: "Returns transaction data for granting a role on the ERC1155 token contract",
|
|
19
|
-
tags: [
|
|
18
|
+
summary: "Grant role on ERC1155",
|
|
19
|
+
description: "[TESTNET ONLY] Returns transaction data for granting a role on the ERC1155 token contract",
|
|
20
|
+
tags: [erc1155Tag.tag],
|
|
20
21
|
responses: {
|
|
21
22
|
200: {
|
|
22
23
|
description: "Returns transaction data for granting a role",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAmBH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aActB,CAAC"}
|
|
@@ -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 MintErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
to: AddressSchema.openapi({ description: "Address to mint tokens to" }),
|
|
@@ -13,8 +14,8 @@ export const MintErc1155RequestSchema = z.object({
|
|
|
13
14
|
});
|
|
14
15
|
const mintRoute = describeRoute({
|
|
15
16
|
summary: "Mint ERC1155",
|
|
16
|
-
description: "Returns transaction data for minting ERC1155 tokens with an auto-generated token ID (MINTER_ROLE required)",
|
|
17
|
-
tags: [
|
|
17
|
+
description: "[TESTNET ONLY] Returns transaction data for minting ERC1155 tokens with an auto-generated token ID (MINTER_ROLE required)",
|
|
18
|
+
tags: [erc1155Tag.tag],
|
|
18
19
|
responses: {
|
|
19
20
|
200: {
|
|
20
21
|
description: "Returns transaction data for minting an ERC1155 token",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/recover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/recover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AAmBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
|
|
@@ -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 RecoverErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
from: AddressSchema.openapi({ description: "Address to recover the tokens from" }),
|
|
@@ -14,8 +15,8 @@ export const RecoverErc1155RequestSchema = z.object({
|
|
|
14
15
|
});
|
|
15
16
|
const recoverRoute = describeRoute({
|
|
16
17
|
summary: "Recover ERC1155",
|
|
17
|
-
description: "Returns transaction data for recovering ERC1155 tokens from one address to another (RECOVER_ROLE required)",
|
|
18
|
-
tags: [
|
|
18
|
+
description: "[TESTNET ONLY] Returns transaction data for recovering ERC1155 tokens from one address to another (RECOVER_ROLE required)",
|
|
19
|
+
tags: [erc1155Tag.tag],
|
|
19
20
|
responses: {
|
|
20
21
|
200: {
|
|
21
22
|
description: "Returns transaction data for recovering ERC1155 tokens",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renounceRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/renounceRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"renounceRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/renounceRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG5G,eAAO,MAAM,gCAAgC;;;;iBAO3C,CAAC;AAkBH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAc9B,CAAC"}
|
|
@@ -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 { convertErc1155TokenRoleToHash, Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
|
|
8
|
+
import { erc1155Tag } from "./tag.js";
|
|
8
9
|
export const RenounceRoleErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
role: z.nativeEnum(Erc1155TokenRole).openapi({
|
|
@@ -14,9 +15,9 @@ export const RenounceRoleErc1155RequestSchema = z.object({
|
|
|
14
15
|
callerConfirmation: AddressSchema.openapi({ description: "The caller's address for confirmation" }),
|
|
15
16
|
});
|
|
16
17
|
const renounceRoleRoute = describeRoute({
|
|
17
|
-
summary: "Renounce
|
|
18
|
-
description: "Returns transaction data for renouncing a role on the ERC1155 token contract",
|
|
19
|
-
tags: [
|
|
18
|
+
summary: "Renounce role on ERC1155",
|
|
19
|
+
description: "[TESTNET ONLY] Returns transaction data for renouncing a role on the ERC1155 token contract",
|
|
20
|
+
tags: [erc1155Tag.tag],
|
|
20
21
|
responses: {
|
|
21
22
|
200: {
|
|
22
23
|
description: "Returns transaction data for renouncing a role",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revokeRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/revokeRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"revokeRole.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/revokeRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG5G,eAAO,MAAM,8BAA8B;;;;iBAOzC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,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 { convertErc1155TokenRoleToHash, Erc1155TokenRole } from "../../common/roles/erc1155-token-roles.js";
|
|
8
|
+
import { erc1155Tag } from "./tag.js";
|
|
8
9
|
export const RevokeRoleErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
role: z.nativeEnum(Erc1155TokenRole).openapi({
|
|
@@ -14,9 +15,9 @@ export const RevokeRoleErc1155RequestSchema = z.object({
|
|
|
14
15
|
account: AddressSchema.openapi({ description: "The address to revoke the role from" }),
|
|
15
16
|
});
|
|
16
17
|
const revokeRoleRoute = describeRoute({
|
|
17
|
-
summary: "Revoke
|
|
18
|
-
description: "Returns transaction data for revoking a role on the ERC1155 token contract",
|
|
19
|
-
tags: [
|
|
18
|
+
summary: "Revoke role on ERC1155",
|
|
19
|
+
description: "[TESTNET ONLY] Returns transaction data for revoking a role on the ERC1155 token contract",
|
|
20
|
+
tags: [erc1155Tag.tag],
|
|
20
21
|
responses: {
|
|
21
22
|
200: {
|
|
22
23
|
description: "Returns transaction data for revoking a role",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setApprovalForAll.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setApprovalForAll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"setApprovalForAll.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setApprovalForAll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qCAAqC;;;;iBAIhD,CAAC;AAkBH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;aAgBnC,CAAC"}
|
|
@@ -4,15 +4,16 @@ 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 SetApprovalForAllErc1155RequestSchema = z.object({
|
|
8
9
|
tokenAddress: AddressSchema,
|
|
9
10
|
operator: AddressSchema.openapi({ description: "Address to grant/revoke approval for all tokens" }),
|
|
10
11
|
approved: z.boolean().openapi({ description: "True to approve, false to revoke" }),
|
|
11
12
|
});
|
|
12
13
|
const setApprovalForAllRoute = describeRoute({
|
|
13
|
-
summary: "Set
|
|
14
|
-
description: "Returns transaction data for granting or revoking approval for all ERC1155 tokens",
|
|
15
|
-
tags: [
|
|
14
|
+
summary: "Set approval for all ERC1155",
|
|
15
|
+
description: "[TESTNET ONLY] Returns transaction data for granting or revoking approval for all ERC1155 tokens",
|
|
16
|
+
tags: [erc1155Tag.tag],
|
|
16
17
|
responses: {
|
|
17
18
|
200: {
|
|
18
19
|
description: "Returns transaction data for setting approval for all tokens",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setBaseURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setBaseURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"setBaseURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setBaseURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAmBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
|
|
@@ -4,14 +4,15 @@ 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 SetBaseURIErc1155RequestSchema = z.object({
|
|
8
9
|
tokenAddress: AddressSchema,
|
|
9
10
|
baseURI: z.string().nonempty().openapi({ description: "New base URI for token metadata" }),
|
|
10
11
|
});
|
|
11
12
|
const setBaseURIRoute = describeRoute({
|
|
12
|
-
summary: "Set
|
|
13
|
-
description: "Returns transaction data for setting the base URI for ERC1155 metadata (DEFAULT_ADMIN_ROLE gated)",
|
|
14
|
-
tags: [
|
|
13
|
+
summary: "Set base URI for ERC1155",
|
|
14
|
+
description: "[TESTNET ONLY] Returns transaction data for setting the base URI for ERC1155 metadata (DEFAULT_ADMIN_ROLE gated)",
|
|
15
|
+
tags: [erc1155Tag.tag],
|
|
15
16
|
responses: {
|
|
16
17
|
200: {
|
|
17
18
|
description: "Returns transaction data for setting base URI",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setTokenURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setTokenURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"setTokenURI.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/setTokenURI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAC;AAmBH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;aAc7B,CAAC"}
|
|
@@ -5,15 +5,16 @@ 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 SetTokenURIErc1155RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
id: Int256BigInt(z.bigint().nonnegative()),
|
|
11
12
|
tokenURI: z.string().nonempty().openapi({ description: "URI for the specific token metadata" }),
|
|
12
13
|
});
|
|
13
14
|
const setTokenURIRoute = describeRoute({
|
|
14
|
-
summary: "Set
|
|
15
|
-
description: "Returns transaction data for setting the URI for a specific ERC1155 token ID (DEFAULT_ADMIN_ROLE required)",
|
|
16
|
-
tags: [
|
|
15
|
+
summary: "Set token URI for ERC1155",
|
|
16
|
+
description: "[TESTNET ONLY] Returns transaction data for setting the URI for a specific ERC1155 token ID (DEFAULT_ADMIN_ROLE required)",
|
|
17
|
+
tags: [erc1155Tag.tag],
|
|
17
18
|
responses: {
|
|
18
19
|
200: {
|
|
19
20
|
description: "Returns transaction data for setting token URI",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc1155/tag.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;CAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
|
|
@@ -5,15 +5,16 @@ 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 { erc20Tag } from "./tag.js";
|
|
8
9
|
export const ApproveErc20RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
spender: AddressSchema,
|
|
11
12
|
amount: Int256BigInt(z.bigint().nonnegative()),
|
|
12
13
|
});
|
|
13
14
|
const approveRoute = describeRoute({
|
|
14
|
-
summary: "Approve
|
|
15
|
+
summary: "Approve gated ERC20",
|
|
15
16
|
description: "Returns transaction data for approving spender to use a gated ERC20",
|
|
16
|
-
tags: [
|
|
17
|
+
tags: [erc20Tag.tag],
|
|
17
18
|
responses: {
|
|
18
19
|
200: {
|
|
19
20
|
description: "Returns transaction data for approving a gated ERC20",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
|
|
@@ -5,15 +5,16 @@ 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 { erc20Tag } from "./tag.js";
|
|
8
9
|
export const BurnErc20RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
amount: Int256BigInt(z.bigint().nonnegative()),
|
|
11
12
|
burnFrom: AddressSchema,
|
|
12
13
|
});
|
|
13
14
|
const burnRoute = describeRoute({
|
|
14
|
-
summary: "Burn
|
|
15
|
+
summary: "Burn gated ERC20",
|
|
15
16
|
description: "Returns transaction data for burning a gated ERC20",
|
|
16
|
-
tags: [
|
|
17
|
+
tags: [erc20Tag.tag],
|
|
17
18
|
responses: {
|
|
18
19
|
200: {
|
|
19
20
|
description: "Returns transaction data for burning a gated ERC20",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AA6BH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAe3B,CAAC"}
|
|
@@ -6,6 +6,7 @@ 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
8
|
import { FactoryChainId, getFactories } from "../../common/factories.js";
|
|
9
|
+
import { erc20Tag } from "../tag.js";
|
|
9
10
|
export const DeployErc20RequestSchema = z.object({
|
|
10
11
|
chainId: FactoryChainId.Schema,
|
|
11
12
|
tokenName: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
@@ -15,7 +16,7 @@ export const DeployErc20RequestSchema = z.object({
|
|
|
15
16
|
minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
|
|
16
17
|
});
|
|
17
18
|
const deployErc20Route = describeRoute({
|
|
18
|
-
summary: "Deploy ERC20 via
|
|
19
|
+
summary: "Deploy ERC20 via factory",
|
|
19
20
|
description: `Returns transaction data for deploying a new ERC20 token via the factory contract.
|
|
20
21
|
|
|
21
22
|
**Note: This contract is not audited.**
|
|
@@ -28,7 +29,7 @@ The deployed token supports:
|
|
|
28
29
|
- burnFrom(account, amount) - Burn from account (with allowance)
|
|
29
30
|
- pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
|
|
30
31
|
- recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
|
|
31
|
-
tags: [
|
|
32
|
+
tags: [erc20Tag.tag],
|
|
32
33
|
responses: {
|
|
33
34
|
200: {
|
|
34
35
|
description: "Returns transaction data for deploying an ERC20 token via factory",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mCAAmC;;;;;;;iBAO9C,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 { Int256BigInt } from "../../../common/int256.js";
|
|
8
|
+
import { erc20Tag } from "../tag.js";
|
|
8
9
|
export const InitializeDefaultErc20RequestSchema = z.object({
|
|
9
10
|
tokenAddress: AddressSchema,
|
|
10
11
|
name: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
@@ -16,7 +17,7 @@ export const InitializeDefaultErc20RequestSchema = z.object({
|
|
|
16
17
|
const initializeRoute = describeRoute({
|
|
17
18
|
summary: "Initialize ERC20",
|
|
18
19
|
description: "Returns transaction data for initializing an ERC20 token proxy contract",
|
|
19
|
-
tags: [
|
|
20
|
+
tags: [erc20Tag.tag],
|
|
20
21
|
responses: {
|
|
21
22
|
200: {
|
|
22
23
|
description: "Returns transaction data for initializing an ERC20",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/parseDeployEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/parseDeployEvent.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;aAoDvC,CAAC"}
|
|
@@ -10,6 +10,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
10
10
|
import { HttpError } from "../../../common/http-error.js";
|
|
11
11
|
import { AddressSchema, HashSchema } from "../../../common/index.js";
|
|
12
12
|
import { FactoryChainIdQuery } from "../../common/factories.js";
|
|
13
|
+
import { erc20Tag } from "../tag.js";
|
|
13
14
|
const QuerySchema = z.object({
|
|
14
15
|
chainId: FactoryChainIdQuery.openapi({
|
|
15
16
|
param: {
|
|
@@ -26,9 +27,9 @@ const QuerySchema = z.object({
|
|
|
26
27
|
});
|
|
27
28
|
export const ParseDefaultErc20DeployEvent = createController({
|
|
28
29
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
29
|
-
summary: "Get ERC20 TokenProxyConfigured
|
|
30
|
+
summary: "Get ERC20 TokenProxyConfigured event",
|
|
30
31
|
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC20 factory \`deployAndInitializeProxy\` action`,
|
|
31
|
-
tags: [
|
|
32
|
+
tags: [erc20Tag.tag],
|
|
32
33
|
responses: {
|
|
33
34
|
200: {
|
|
34
35
|
description: "Returns parsed event log",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,6BAA6B;;;;;;;;iBAUxC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAyBhC,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { AddressSchema, toTransaction, TransactionSchema } from "../../../common
|
|
|
7
7
|
import { Int256BigInt } from "../../../common/int256.js";
|
|
8
8
|
import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
|
|
9
9
|
import { FactoryChainId, getFactories } from "../../common/factories.js";
|
|
10
|
+
import { erc20Tag } from "../tag.js";
|
|
10
11
|
export const DeployGatedErc20RequestSchema = z.object({
|
|
11
12
|
chainId: FactoryChainId.Schema,
|
|
12
13
|
tokenName: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
@@ -19,13 +20,13 @@ export const DeployGatedErc20RequestSchema = z.object({
|
|
|
19
20
|
}),
|
|
20
21
|
});
|
|
21
22
|
const deployGatedErc20Route = describeRoute({
|
|
22
|
-
summary: "Deploy
|
|
23
|
+
summary: "Deploy gated ERC20 via factory",
|
|
23
24
|
description: `Returns transaction data for deploying a new whitelist-gated ERC20 token via the factory contract.
|
|
24
25
|
|
|
25
26
|
**Note: This contract is not audited.**
|
|
26
27
|
|
|
27
28
|
Calls deployAndInitializeProxy on the ERC20GatedPausableRecoverableFactory to atomically deploy and initialize a new token proxy.`,
|
|
28
|
-
tags: [
|
|
29
|
+
tags: [erc20Tag.tag],
|
|
29
30
|
responses: {
|
|
30
31
|
200: {
|
|
31
32
|
description: "Returns transaction data for deploying a gated ERC20 token via factory",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,iCAAiC;;;;;;;;iBAU5C,CAAC;AAkBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAc/B,CAAC"}
|
|
@@ -6,6 +6,7 @@ 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
8
|
import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
|
|
9
|
+
import { erc20Tag } from "../tag.js";
|
|
9
10
|
export const InitializeGatedErc20RequestSchema = z.object({
|
|
10
11
|
tokenAddress: AddressSchema,
|
|
11
12
|
name: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
@@ -18,9 +19,9 @@ export const InitializeGatedErc20RequestSchema = z.object({
|
|
|
18
19
|
}),
|
|
19
20
|
});
|
|
20
21
|
const initializeRoute = describeRoute({
|
|
21
|
-
summary: "Initialize
|
|
22
|
+
summary: "Initialize gated ERC20",
|
|
22
23
|
description: "Returns transaction data for initializing a gated ERC20 token proxy contract",
|
|
23
|
-
tags: [
|
|
24
|
+
tags: [erc20Tag.tag],
|
|
24
25
|
responses: {
|
|
25
26
|
200: {
|
|
26
27
|
description: "Returns transaction data for initializing a gated ERC20",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/parseDeployEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gated/parseDeployEvent.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;aAoDrC,CAAC"}
|
|
@@ -10,6 +10,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
10
10
|
import { HttpError } from "../../../common/http-error.js";
|
|
11
11
|
import { AddressSchema, HashSchema } from "../../../common/index.js";
|
|
12
12
|
import { FactoryChainIdQuery } from "../../common/factories.js";
|
|
13
|
+
import { erc20Tag } from "../tag.js";
|
|
13
14
|
const QuerySchema = z.object({
|
|
14
15
|
chainId: FactoryChainIdQuery.openapi({
|
|
15
16
|
param: {
|
|
@@ -26,9 +27,9 @@ const QuerySchema = z.object({
|
|
|
26
27
|
});
|
|
27
28
|
export const ParseGatedErc20DeployEvent = createController({
|
|
28
29
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
29
|
-
summary: "Get
|
|
30
|
+
summary: "Get gated ERC20 TokenProxyConfigured event",
|
|
30
31
|
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the Gated ERC20 factory \`deployAndInitializeProxy\` action`,
|
|
31
|
-
tags: [
|
|
32
|
+
tags: [erc20Tag.tag],
|
|
32
33
|
responses: {
|
|
33
34
|
200: {
|
|
34
35
|
description: "Returns parsed event log",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/deploy.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;aAQtC,CAAC"}
|
|
@@ -3,10 +3,11 @@ import { resolver } from "hono-openapi";
|
|
|
3
3
|
import { erc20GatedAbi, erc20GatedBytecode } from "@evergonlabs/tmi-protocol-contracts/erc20Gated";
|
|
4
4
|
import { createController } from "../../../common/controller.js";
|
|
5
5
|
import { DeployTransactionSchema } from "../../../common/index.js";
|
|
6
|
+
import { erc20Tag } from "../tag.js";
|
|
6
7
|
const deployGatedSimpleRoute = describeRoute({
|
|
7
|
-
summary: "Get
|
|
8
|
+
summary: "Get gated ERC20",
|
|
8
9
|
description: "Returns transaction data for deploying a gated ERC20. This is an audited contract.",
|
|
9
|
-
tags: [
|
|
10
|
+
tags: [erc20Tag.tag],
|
|
10
11
|
responses: {
|
|
11
12
|
200: {
|
|
12
13
|
description: "Returns transaction data for deploying a gated ERC20",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/getInitData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/getInitData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB;;iBAIC,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;;;;;iBAQC,CAAC;AAkBlC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;aAc3B,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
7
7
|
import { AddressSchema, HexStringSchema } from "../../../common/index.js";
|
|
8
8
|
import { Int256BigInt } from "../../../common/int256.js";
|
|
9
9
|
import { DEFAULT_COMPILOT_SIGNER } from "../../../common/models/compilot.js";
|
|
10
|
+
import { erc20Tag } from "../tag.js";
|
|
10
11
|
export const Erc20InitDataResponse = z
|
|
11
12
|
.object({
|
|
12
13
|
data: HexStringSchema.openapi("Init function call data in hex format"),
|
|
@@ -24,7 +25,7 @@ export const Erc20InitDataParams = z
|
|
|
24
25
|
const getErc20InitDataRoute = describeRoute({
|
|
25
26
|
summary: "Get ERC20 Init Data",
|
|
26
27
|
description: `Returns init function call data in hex format. This is useful for using as initData in TransparentUpgradeableProxy`,
|
|
27
|
-
tags: [
|
|
28
|
+
tags: [erc20Tag.tag],
|
|
28
29
|
responses: {
|
|
29
30
|
200: {
|
|
30
31
|
description: "Init function call data in hex format",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/parseDeployEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/gatedSimple/parseDeployEvent.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;aAuC3C,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { createController } from "../../../common/controller.js";
|
|
|
7
7
|
import { HttpError } from "../../../common/http-error.js";
|
|
8
8
|
import { AddressSchema, HashSchema } from "../../../common/index.js";
|
|
9
9
|
import { FactoryChainIdQuery } from "../../common/factories.js";
|
|
10
|
+
import { erc20Tag } from "../tag.js";
|
|
10
11
|
const QuerySchema = z.object({
|
|
11
12
|
chainId: FactoryChainIdQuery.openapi({
|
|
12
13
|
param: {
|
|
@@ -23,11 +24,11 @@ const QuerySchema = z.object({
|
|
|
23
24
|
});
|
|
24
25
|
export const ParseGatedSimpleErc20DeployEvent = createController({
|
|
25
26
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
26
|
-
summary: "Get
|
|
27
|
+
summary: "Get gated simple ERC20 deploy event",
|
|
27
28
|
description: `Gets the contract deployment transaction by hash and extracts the deployed contract address from the receipt.
|
|
28
29
|
|
|
29
30
|
Provided transaction must be a contract creation transaction for the gated simple ERC20 token.`,
|
|
30
|
-
tags: [
|
|
31
|
+
tags: [erc20Tag.tag],
|
|
31
32
|
responses: {
|
|
32
33
|
200: {
|
|
33
34
|
description: "Returns the deployed contract address",
|