@evergonlabs/tmi-protocol-api 0.4.0 → 0.5.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 +476 -157
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +4 -0
- package/dist/client.d.ts +529 -157
- package/dist/client.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.d.ts +27 -12
- package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.js +192 -1
- package/dist/common/blockchain.d.ts +20 -26
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +22 -19
- package/dist/common/config.d.ts +43 -1
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +47 -25
- package/dist/common/context.d.ts +11 -0
- package/dist/common/context.d.ts.map +1 -0
- package/dist/common/context.js +0 -0
- package/dist/common/indexer/client.d.ts +3 -2
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts +1 -1
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/common/middleware/indexer.d.ts +3 -0
- package/dist/common/middleware/indexer.d.ts.map +1 -0
- package/dist/common/middleware/indexer.js +7 -0
- package/dist/common/models/asset.d.ts +4 -4
- package/dist/common/models/chainId.d.ts +3 -0
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +6 -14
- package/dist/common/models/numOrStr.d.ts +7 -0
- package/dist/common/models/numOrStr.d.ts.map +1 -0
- package/dist/common/models/numOrStr.js +11 -0
- package/dist/common/models/platform.d.ts +1 -1
- package/dist/common/models/platform.d.ts.map +1 -1
- package/dist/common/models/platform.js +1 -1
- package/dist/common/models/routes.d.ts +2 -2
- package/dist/common/models/transaction.d.ts +8 -8
- package/dist/common/models/transaction.d.ts.map +1 -1
- package/dist/common/models/transaction.js +1 -1
- package/dist/fractions/activity/searchActivity.route.d.ts +17 -17
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.js +1 -2
- package/dist/fractions/activity/utils.d.ts +8 -8
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +3 -3
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +9 -9
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +3 -3
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +19 -19
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +20 -20
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +25 -12
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +3 -2
- package/dist/fractions/deployMarket/v0/index.d.ts +3 -0
- package/dist/fractions/deployMarket/v0/index.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/index.js +2 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +3 -3
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +3 -3
- package/dist/fractions/index.d.ts +141 -77
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +5 -3
- package/dist/fractions/markets/common/platform.d.ts +11 -11
- package/dist/fractions/markets/getMarket/index.d.ts +19 -19
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +17 -17
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.js +1 -2
- package/dist/fractions/markets/index.d.ts +22 -22
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/index.d.ts +5 -5
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +13 -13
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +1 -2
- package/dist/fractions/purchase/v0/purchase.route.d.ts +3 -3
- package/dist/fractions/purchase/v0/statistics.route.d.ts +15 -15
- package/dist/fractions/purchase/v0/statistics.route.d.ts.map +1 -1
- package/dist/fractions/purchase/v0/statistics.route.js +3 -3
- package/dist/fractions/sales/common/fractionsSale.d.ts +40 -40
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +13 -13
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +3 -3
- package/dist/fractions/sales/getVaultAddress.d.ts +4 -4
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +3 -3
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +6 -6
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +3 -3
- package/dist/fractions/sales/recoverFractions.d.ts +3 -3
- package/dist/fractions/sales/rejectFractions.d.ts +3 -3
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +32 -32
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/v0/searchSales.js +1 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +7 -7
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +1 -2
- package/dist/fractions/sales/setFeeCapLimit.d.ts +3 -3
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +3 -3
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +17 -17
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +6 -5
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +9 -9
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +3 -3
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +3 -3
- package/dist/general/balanceClient.d.ts +6 -6
- package/dist/general/common.d.ts +6 -6
- package/dist/general/estimateGas.d.ts +8 -8
- package/dist/general/getBalance.d.ts +4 -4
- package/dist/general/getBalancesBatch.d.ts +4 -4
- package/dist/general/index.d.ts +5 -5
- package/dist/general/searchBalances.d.ts +4 -4
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +3 -3
- package/dist/issuance/approve.d.ts +3 -3
- package/dist/issuance/burn.d.ts +3 -3
- package/dist/issuance/common.d.ts +2 -0
- package/dist/issuance/common.d.ts.map +1 -0
- package/dist/issuance/common.js +1 -0
- package/dist/issuance/deploy.d.ts +7 -0
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +44 -3
- package/dist/issuance/getInitData.d.ts +75 -0
- package/dist/issuance/getInitData.d.ts.map +1 -0
- package/dist/issuance/getInitData.js +53 -0
- package/dist/issuance/grantRole.d.ts +9 -9
- package/dist/issuance/index.d.ts +71 -15
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +7 -2
- package/dist/issuance/mint.d.ts +3 -3
- package/dist/issuance/recover.d.ts +82 -0
- package/dist/issuance/recover.d.ts.map +1 -0
- package/dist/issuance/recover.js +38 -0
- package/dist/issuance/renounceRole.d.ts +9 -9
- package/dist/issuance/transfer.d.ts +9 -9
- package/dist/issuance/upgrade.d.ts +3 -3
- package/dist/staking/index.d.ts +10 -10
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.d.ts +3 -3
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +8 -8
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +3 -3
- package/dist/staking/platforms/index.d.ts +3 -3
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +2 -2
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +4 -4
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +3 -3
- package/dist/staking/pools/common/pool.d.ts +4 -4
- package/dist/staking/pools/getPool/index.d.ts +3 -3
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.d.ts +7 -7
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.js +3 -3
- package/dist/staking/pools/index.d.ts +3 -3
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.d.ts +2 -2
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +3 -3
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +3 -3
- package/dist/staking/roles/common/roleAssignment.d.ts +2 -2
- package/dist/staking/roles/common/roleEvent.d.ts +4 -4
- package/dist/staking/roles/grantRole/index.d.ts +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +3 -3
- package/dist/staking/roles/index.d.ts +5 -5
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +3 -3
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +7 -7
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +3 -3
- package/dist/staking/roles/searchRoles/index.d.ts +3 -3
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +7 -7
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +3 -3
- package/dist/staking/stakes/common/stake.d.ts +2 -2
- package/dist/staking/stakes/common/stakeEvent.d.ts +4 -4
- package/dist/staking/stakes/getStake/index.d.ts +3 -3
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +7 -7
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +3 -3
- package/dist/staking/stakes/index.d.ts +5 -5
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +3 -3
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +7 -7
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +3 -3
- package/dist/staking/stakes/searchStakes/index.d.ts +3 -3
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +7 -7
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +3 -3
- package/dist/staking-templates/index.d.ts +42 -42
- package/dist/staking-templates/templates/common/getReward.d.ts +7 -7
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +7 -7
- package/dist/staking-templates/templates/common/rewardDistribution.js +2 -2
- package/dist/staking-templates/templates/common/unstake.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/index.d.ts +16 -16
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +41 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +16 -16
- package/dist/staking-templates/templates/rwa/v0/index.js +2 -2
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +7 -7
- package/dist/v0/fractions/index.d.ts +68 -0
- package/dist/v0/fractions/index.d.ts.map +1 -0
- package/dist/v0/fractions/index.js +9 -0
- package/dist/v0/fractions/networkStatistics.route.d.ts +176 -0
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +1 -0
- package/dist/v0/fractions/networkStatistics.route.js +354 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +65 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +27 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +19 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +1 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +12 -0
- package/dist/v1/fractions/lending/createLendingSale.d.ts +585 -0
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +1 -0
- package/dist/v1/fractions/lending/createLendingSale.js +81 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +117 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +35 -0
- package/dist/v1/fractions/lending/index.d.ts +209 -0
- package/dist/v1/fractions/lending/index.d.ts.map +1 -0
- package/dist/v1/fractions/lending/index.js +22 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +82 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +34 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +61 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +27 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +16 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +10 -0
- package/dist/v1/fractions/schemas.d.ts +108 -0
- package/dist/v1/fractions/schemas.d.ts.map +1 -0
- package/dist/v1/fractions/schemas.js +35 -0
- package/package.json +10 -7
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { z } from "@hono/zod-openapi";
|
|
4
|
+
import { distributeRewards } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
5
|
+
import { toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
6
|
+
import { PlatformContractAddress, PoolIdSchema } from "../../../../common/models/platform.js";
|
|
7
|
+
import { rwa } from "../common.js";
|
|
8
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
9
|
+
export function createDistributeRewardsRoute(factory) {
|
|
10
|
+
return factory.createHandlers(describeRoute({
|
|
11
|
+
summary: "Distribute Rewards",
|
|
12
|
+
description: "Generates a transaction for Rewards allocation for certain Pool.",
|
|
13
|
+
tags: [rwa.tag.tag],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Compiled Reward notification transaction details",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(TransactionSchema),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}), validator("json", z.object({
|
|
25
|
+
platform: PlatformContractAddress,
|
|
26
|
+
poolId: PoolIdSchema,
|
|
27
|
+
amount: Int256Positive.openapi({
|
|
28
|
+
description: "Number of Reward Packets to distribute to pool stakers.",
|
|
29
|
+
}),
|
|
30
|
+
})), async (c) => {
|
|
31
|
+
const { platform, poolId, amount } = c.req.valid("json");
|
|
32
|
+
const transaction = distributeRewards(rwa.template, {
|
|
33
|
+
platform: platform,
|
|
34
|
+
data: {
|
|
35
|
+
poolId: poolId,
|
|
36
|
+
packets: amount,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
return c.json(toTransaction(transaction), 200);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -50,16 +50,16 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
50
50
|
$post: {
|
|
51
51
|
input: {
|
|
52
52
|
json: {
|
|
53
|
-
platform: `0x${string}`;
|
|
54
53
|
stakeId: string | number | bigint;
|
|
54
|
+
platform: `0x${string}`;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
output: {
|
|
58
58
|
data: `0x${string}`;
|
|
59
59
|
to: `0x${string}`;
|
|
60
60
|
details: {
|
|
61
|
-
functionName: string;
|
|
62
61
|
address: `0x${string}`;
|
|
62
|
+
functionName: string;
|
|
63
63
|
abi: any[];
|
|
64
64
|
args: any[];
|
|
65
65
|
};
|
|
@@ -73,17 +73,17 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
73
73
|
$post: {
|
|
74
74
|
input: {
|
|
75
75
|
json: {
|
|
76
|
-
platform: `0x${string}`;
|
|
77
76
|
stakeId: string | number | bigint;
|
|
78
77
|
amount: string | number | bigint;
|
|
78
|
+
platform: `0x${string}`;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
output: {
|
|
82
82
|
data: `0x${string}`;
|
|
83
83
|
to: `0x${string}`;
|
|
84
84
|
details: {
|
|
85
|
-
functionName: string;
|
|
86
85
|
address: `0x${string}`;
|
|
86
|
+
functionName: string;
|
|
87
87
|
abi: any[];
|
|
88
88
|
args: any[];
|
|
89
89
|
};
|
|
@@ -97,17 +97,17 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
97
97
|
$post: {
|
|
98
98
|
input: {
|
|
99
99
|
json: {
|
|
100
|
-
platform: `0x${string}`;
|
|
101
100
|
poolId: string | number | bigint;
|
|
102
101
|
amount: string | number | bigint;
|
|
102
|
+
platform: `0x${string}`;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
output: {
|
|
106
106
|
data: `0x${string}`;
|
|
107
107
|
to: `0x${string}`;
|
|
108
108
|
details: {
|
|
109
|
-
functionName: string;
|
|
110
109
|
address: `0x${string}`;
|
|
110
|
+
functionName: string;
|
|
111
111
|
abi: any[];
|
|
112
112
|
args: any[];
|
|
113
113
|
};
|
|
@@ -121,17 +121,17 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
121
121
|
$post: {
|
|
122
122
|
input: {
|
|
123
123
|
json: {
|
|
124
|
-
platform: `0x${string}`;
|
|
125
124
|
poolId: string | number | bigint;
|
|
126
125
|
amount: string | number | bigint;
|
|
126
|
+
platform: `0x${string}`;
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
output: {
|
|
130
130
|
data: `0x${string}`;
|
|
131
131
|
to: `0x${string}`;
|
|
132
132
|
details: {
|
|
133
|
-
functionName: string;
|
|
134
133
|
address: `0x${string}`;
|
|
134
|
+
functionName: string;
|
|
135
135
|
abi: any[];
|
|
136
136
|
args: any[];
|
|
137
137
|
};
|
|
@@ -145,16 +145,16 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
145
145
|
$post: {
|
|
146
146
|
input: {
|
|
147
147
|
json: {
|
|
148
|
-
platform: `0x${string}`;
|
|
149
148
|
stakeId: string | number | bigint;
|
|
149
|
+
platform: `0x${string}`;
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
output: {
|
|
153
153
|
data: `0x${string}`;
|
|
154
154
|
to: `0x${string}`;
|
|
155
155
|
details: {
|
|
156
|
-
functionName: string;
|
|
157
156
|
address: `0x${string}`;
|
|
157
|
+
functionName: string;
|
|
158
158
|
abi: any[];
|
|
159
159
|
args: any[];
|
|
160
160
|
};
|
|
@@ -168,8 +168,8 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
168
168
|
$post: {
|
|
169
169
|
input: {
|
|
170
170
|
json: {
|
|
171
|
-
platform: `0x${string}`;
|
|
172
171
|
startDate: string;
|
|
172
|
+
platform: `0x${string}`;
|
|
173
173
|
hardcapAmount: string | number | bigint;
|
|
174
174
|
distribution: {
|
|
175
175
|
duration: string | number | bigint;
|
|
@@ -189,8 +189,8 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
189
189
|
data: `0x${string}`;
|
|
190
190
|
to: `0x${string}`;
|
|
191
191
|
details: {
|
|
192
|
-
functionName: string;
|
|
193
192
|
address: `0x${string}`;
|
|
193
|
+
functionName: string;
|
|
194
194
|
abi: any[];
|
|
195
195
|
args: any[];
|
|
196
196
|
};
|
|
@@ -218,8 +218,8 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
218
218
|
data: `0x${string}`;
|
|
219
219
|
to: `0x${string}`;
|
|
220
220
|
details: {
|
|
221
|
-
functionName: string;
|
|
222
221
|
address: `0x${string}`;
|
|
222
|
+
functionName: string;
|
|
223
223
|
abi: any[];
|
|
224
224
|
args: any[];
|
|
225
225
|
};
|
|
@@ -229,21 +229,21 @@ export declare function createRWATemplateV0App<E extends Env>(factory: Factory<E
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
} & {
|
|
232
|
-
"/
|
|
232
|
+
"/distributeRewards": {
|
|
233
233
|
$post: {
|
|
234
234
|
input: {
|
|
235
235
|
json: {
|
|
236
|
-
platform: `0x${string}`;
|
|
237
236
|
poolId: string | number | bigint;
|
|
238
237
|
amount: string | number | bigint;
|
|
238
|
+
platform: `0x${string}`;
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
output: {
|
|
242
242
|
data: `0x${string}`;
|
|
243
243
|
to: `0x${string}`;
|
|
244
244
|
details: {
|
|
245
|
-
functionName: string;
|
|
246
245
|
address: `0x${string}`;
|
|
246
|
+
functionName: string;
|
|
247
247
|
abi: any[];
|
|
248
248
|
args: any[];
|
|
249
249
|
};
|
|
@@ -9,7 +9,7 @@ import { createUnstakeRoute } from "../../common/unstake.js";
|
|
|
9
9
|
import { createGetCreatePoolEventRoute } from "../../common/getCreatePoolEvent.js";
|
|
10
10
|
import { createCreatePoolRoute } from "./createPool.js";
|
|
11
11
|
import { createCreatePlatformRoute } from "./createPlatform.js";
|
|
12
|
-
import {
|
|
12
|
+
import { createDistributeRewardsRoute } from "./distributeRewards.js";
|
|
13
13
|
export function createRWATemplateV0App(factory) {
|
|
14
14
|
return factory
|
|
15
15
|
.createApp()
|
|
@@ -23,5 +23,5 @@ export function createRWATemplateV0App(factory) {
|
|
|
23
23
|
.post("/unstake", ...createUnstakeRoute(factory, rwa))
|
|
24
24
|
.post("/createPool", ...createCreatePoolRoute(factory))
|
|
25
25
|
.post("/createPlatform", ...createCreatePlatformRoute(factory))
|
|
26
|
-
.post("/
|
|
26
|
+
.post("/distributeRewards", ...createDistributeRewardsRoute(factory));
|
|
27
27
|
}
|
|
@@ -4,56 +4,56 @@ export declare function createRestakeRoute<E extends Env>(factory: Factory<E>):
|
|
|
4
4
|
data: `0x${string}`;
|
|
5
5
|
to: `0x${string}`;
|
|
6
6
|
details: {
|
|
7
|
-
functionName: string;
|
|
8
7
|
address: `0x${string}`;
|
|
8
|
+
functionName: string;
|
|
9
9
|
abi: any[];
|
|
10
10
|
args: any[];
|
|
11
11
|
};
|
|
12
12
|
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
13
13
|
in: {
|
|
14
14
|
json: {
|
|
15
|
-
platform: `0x${string}`;
|
|
16
15
|
poolId: string | number | bigint;
|
|
17
16
|
amount: string | number | bigint;
|
|
17
|
+
platform: `0x${string}`;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
out: {
|
|
21
21
|
json: {
|
|
22
|
-
platform: `0x${string}`;
|
|
23
22
|
poolId: bigint;
|
|
24
23
|
amount: bigint;
|
|
24
|
+
platform: `0x${string}`;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
28
28
|
data: `0x${string}`;
|
|
29
29
|
to: `0x${string}`;
|
|
30
30
|
details: {
|
|
31
|
-
functionName: string;
|
|
32
31
|
address: `0x${string}`;
|
|
32
|
+
functionName: string;
|
|
33
33
|
abi: any[];
|
|
34
34
|
args: any[];
|
|
35
35
|
};
|
|
36
36
|
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
37
37
|
in: {
|
|
38
38
|
json: {
|
|
39
|
-
platform: `0x${string}`;
|
|
40
39
|
poolId: string | number | bigint;
|
|
41
40
|
amount: string | number | bigint;
|
|
41
|
+
platform: `0x${string}`;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
out: {
|
|
45
45
|
json: {
|
|
46
|
-
platform: `0x${string}`;
|
|
47
46
|
poolId: bigint;
|
|
48
47
|
amount: bigint;
|
|
48
|
+
platform: `0x${string}`;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
52
52
|
data: `0x${string}`;
|
|
53
53
|
to: `0x${string}`;
|
|
54
54
|
details: {
|
|
55
|
-
functionName: string;
|
|
56
55
|
address: `0x${string}`;
|
|
56
|
+
functionName: string;
|
|
57
57
|
abi: any[];
|
|
58
58
|
args: any[];
|
|
59
59
|
};
|
|
@@ -4,56 +4,56 @@ export declare function createStakeRoute<E extends Env>(factory: Factory<E>): [i
|
|
|
4
4
|
data: `0x${string}`;
|
|
5
5
|
to: `0x${string}`;
|
|
6
6
|
details: {
|
|
7
|
-
functionName: string;
|
|
8
7
|
address: `0x${string}`;
|
|
8
|
+
functionName: string;
|
|
9
9
|
abi: any[];
|
|
10
10
|
args: any[];
|
|
11
11
|
};
|
|
12
12
|
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
13
13
|
in: {
|
|
14
14
|
json: {
|
|
15
|
-
platform: `0x${string}`;
|
|
16
15
|
poolId: string | number | bigint;
|
|
17
16
|
amount: string | number | bigint;
|
|
17
|
+
platform: `0x${string}`;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
out: {
|
|
21
21
|
json: {
|
|
22
|
-
platform: `0x${string}`;
|
|
23
22
|
poolId: bigint;
|
|
24
23
|
amount: bigint;
|
|
24
|
+
platform: `0x${string}`;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
28
28
|
data: `0x${string}`;
|
|
29
29
|
to: `0x${string}`;
|
|
30
30
|
details: {
|
|
31
|
-
functionName: string;
|
|
32
31
|
address: `0x${string}`;
|
|
32
|
+
functionName: string;
|
|
33
33
|
abi: any[];
|
|
34
34
|
args: any[];
|
|
35
35
|
};
|
|
36
36
|
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
37
37
|
in: {
|
|
38
38
|
json: {
|
|
39
|
-
platform: `0x${string}`;
|
|
40
39
|
poolId: string | number | bigint;
|
|
41
40
|
amount: string | number | bigint;
|
|
41
|
+
platform: `0x${string}`;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
out: {
|
|
45
45
|
json: {
|
|
46
|
-
platform: `0x${string}`;
|
|
47
46
|
poolId: bigint;
|
|
48
47
|
amount: bigint;
|
|
48
|
+
platform: `0x${string}`;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
52
52
|
data: `0x${string}`;
|
|
53
53
|
to: `0x${string}`;
|
|
54
54
|
details: {
|
|
55
|
-
functionName: string;
|
|
56
55
|
address: `0x${string}`;
|
|
56
|
+
functionName: string;
|
|
57
57
|
abi: any[];
|
|
58
58
|
args: any[];
|
|
59
59
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Factory } from "hono/factory";
|
|
2
|
+
import type { AppContext } from "../../common/context.js";
|
|
3
|
+
export declare function createNetworkStatisticsApp(factory: Factory<AppContext>): import("hono/hono-base").HonoBase<AppContext, {
|
|
4
|
+
"/holders": {
|
|
5
|
+
$post: {
|
|
6
|
+
input: {
|
|
7
|
+
json: {
|
|
8
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
output: {
|
|
12
|
+
[x: string]: number;
|
|
13
|
+
};
|
|
14
|
+
outputFormat: "json";
|
|
15
|
+
status: 200;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} & {
|
|
19
|
+
"/sales": {
|
|
20
|
+
$post: {
|
|
21
|
+
input: {
|
|
22
|
+
json: {
|
|
23
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
output: {
|
|
27
|
+
[x: string]: number;
|
|
28
|
+
};
|
|
29
|
+
outputFormat: "json";
|
|
30
|
+
status: 200;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
"/ttv": {
|
|
35
|
+
$post: {
|
|
36
|
+
input: {
|
|
37
|
+
json: {
|
|
38
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
output: {
|
|
42
|
+
[x: string]: string;
|
|
43
|
+
};
|
|
44
|
+
outputFormat: "json";
|
|
45
|
+
status: 200;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
} & {
|
|
49
|
+
"/": {
|
|
50
|
+
$post: {
|
|
51
|
+
input: {
|
|
52
|
+
json: {
|
|
53
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
output: {
|
|
57
|
+
[x: string]: {
|
|
58
|
+
holders: number;
|
|
59
|
+
sales: number;
|
|
60
|
+
ttv: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
outputFormat: "json";
|
|
64
|
+
status: 200;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}, "/">;
|
|
68
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v0/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQ1D,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOtE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createFractionHoldersCountV0, createSuccessfulSalesCountV0, createTtvV0, createNetworkStatisticsV0, } from "./networkStatistics.route.js";
|
|
2
|
+
export function createNetworkStatisticsApp(factory) {
|
|
3
|
+
return factory
|
|
4
|
+
.createApp()
|
|
5
|
+
.post("/holders", ...createFractionHoldersCountV0(factory))
|
|
6
|
+
.post("/sales", ...createSuccessfulSalesCountV0(factory))
|
|
7
|
+
.post("/ttv", ...createTtvV0(factory))
|
|
8
|
+
.post("/", ...createNetworkStatisticsV0(factory));
|
|
9
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Factory } from "hono/factory";
|
|
2
|
+
import { z } from "../../common/zod.js";
|
|
3
|
+
import { AppContext } from "../../common/context.js";
|
|
4
|
+
/**
|
|
5
|
+
* Response schema for fraction holders count endpoint
|
|
6
|
+
* Keys can be 'total' or chain IDs (as strings), values are holder counts
|
|
7
|
+
*/
|
|
8
|
+
export declare const FractionHoldersCountSchema: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"total">, z.ZodString]>, z.ZodNumber>;
|
|
9
|
+
/**
|
|
10
|
+
* Response schema for successful sales count endpoint
|
|
11
|
+
* Keys can be 'total' or chain IDs (as strings), values are sales counts
|
|
12
|
+
*/
|
|
13
|
+
export declare const SuccessfulSalesCountSchema: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"total">, z.ZodString]>, z.ZodNumber>;
|
|
14
|
+
/**
|
|
15
|
+
* Response schema for TTV endpoint
|
|
16
|
+
* Keys can be 'total' or chain IDs (as strings), values are TTV amounts as strings (bigdecimal representation)
|
|
17
|
+
*/
|
|
18
|
+
export declare const TtvSchema: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"total">, z.ZodString]>, z.ZodString>;
|
|
19
|
+
/**
|
|
20
|
+
* Combined network statistics response schema
|
|
21
|
+
* Keys can be 'total' or chain IDs (as strings), values are statistics objects
|
|
22
|
+
*/
|
|
23
|
+
export declare const NetworkStatisticsSchema: z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"total">, z.ZodString]>, z.ZodObject<{
|
|
24
|
+
holders: z.ZodNumber;
|
|
25
|
+
sales: z.ZodNumber;
|
|
26
|
+
ttv: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
holders: number;
|
|
29
|
+
sales: number;
|
|
30
|
+
ttv: string;
|
|
31
|
+
}, {
|
|
32
|
+
holders: number;
|
|
33
|
+
sales: number;
|
|
34
|
+
ttv: string;
|
|
35
|
+
}>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the number of unique fraction holders from successful (finalized) sales
|
|
38
|
+
*/
|
|
39
|
+
export declare function createFractionHoldersCountV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
40
|
+
[x: string]: number;
|
|
41
|
+
}, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
42
|
+
in: {
|
|
43
|
+
json: {
|
|
44
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
out: {
|
|
48
|
+
json: {
|
|
49
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
53
|
+
[x: string]: number;
|
|
54
|
+
}, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
55
|
+
in: {
|
|
56
|
+
json: {
|
|
57
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
out: {
|
|
61
|
+
json: {
|
|
62
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
66
|
+
[x: string]: number;
|
|
67
|
+
}, 200, "json">>>];
|
|
68
|
+
/**
|
|
69
|
+
* Get the number of successful (finalized) fraction sales
|
|
70
|
+
*/
|
|
71
|
+
export declare function createSuccessfulSalesCountV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
72
|
+
[x: string]: number;
|
|
73
|
+
}, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
74
|
+
in: {
|
|
75
|
+
json: {
|
|
76
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
out: {
|
|
80
|
+
json: {
|
|
81
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
85
|
+
[x: string]: number;
|
|
86
|
+
}, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
87
|
+
in: {
|
|
88
|
+
json: {
|
|
89
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
out: {
|
|
93
|
+
json: {
|
|
94
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
98
|
+
[x: string]: number;
|
|
99
|
+
}, 200, "json">>>];
|
|
100
|
+
/**
|
|
101
|
+
* Get the Total Tokenized Value (TTV) - sum of all amounts raised by successful sales in USDC
|
|
102
|
+
*/
|
|
103
|
+
export declare function createTtvV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
104
|
+
[x: string]: string;
|
|
105
|
+
}, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
106
|
+
in: {
|
|
107
|
+
json: {
|
|
108
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
out: {
|
|
112
|
+
json: {
|
|
113
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
117
|
+
[x: string]: string;
|
|
118
|
+
}, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
119
|
+
in: {
|
|
120
|
+
json: {
|
|
121
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
out: {
|
|
125
|
+
json: {
|
|
126
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
130
|
+
[x: string]: string;
|
|
131
|
+
}, 200, "json">>>];
|
|
132
|
+
/**
|
|
133
|
+
* Get all network statistics in a single call
|
|
134
|
+
*/
|
|
135
|
+
export declare function createNetworkStatisticsV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
136
|
+
[x: string]: {
|
|
137
|
+
holders: number;
|
|
138
|
+
sales: number;
|
|
139
|
+
ttv: string;
|
|
140
|
+
};
|
|
141
|
+
}, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
142
|
+
in: {
|
|
143
|
+
json: {
|
|
144
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
out: {
|
|
148
|
+
json: {
|
|
149
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
153
|
+
[x: string]: {
|
|
154
|
+
holders: number;
|
|
155
|
+
sales: number;
|
|
156
|
+
ttv: string;
|
|
157
|
+
};
|
|
158
|
+
}, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
159
|
+
in: {
|
|
160
|
+
json: {
|
|
161
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
out: {
|
|
165
|
+
json: {
|
|
166
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
170
|
+
[x: string]: {
|
|
171
|
+
holders: number;
|
|
172
|
+
sales: number;
|
|
173
|
+
ttv: string;
|
|
174
|
+
};
|
|
175
|
+
}, 200, "json">>>];
|
|
176
|
+
//# sourceMappingURL=networkStatistics.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/v0/fractions/networkStatistics.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAUrD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,4EAIrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,4EAIrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,SAAS,4EAIpB,CAAC;AAiBH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;GAMhC,CAAC;AAuJL;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8CxE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8CxE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8CvD;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAiErE"}
|