@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
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
|
-
|
|
2
|
+
import { AppContext } from "../../../../common/context.js";
|
|
3
|
+
export declare function createSearchSalesV0App(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
4
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
5
5
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
6
|
-
platform: `0x${string}`;
|
|
7
|
-
campaignId: number;
|
|
8
6
|
createdAt: string;
|
|
9
7
|
updatedAt: string;
|
|
8
|
+
campaignId: number;
|
|
10
9
|
transactionHash: `0x${string}`;
|
|
11
10
|
nftId: number;
|
|
12
11
|
fractions: {
|
|
13
12
|
asset: {
|
|
14
13
|
symbol: string;
|
|
15
14
|
type: string;
|
|
16
|
-
name: string;
|
|
17
|
-
address: `0x${string}`;
|
|
18
15
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
16
|
+
address: `0x${string}`;
|
|
17
|
+
name: string;
|
|
19
18
|
tokenId: string | null;
|
|
20
19
|
decimals: number;
|
|
21
20
|
burnable: boolean;
|
|
@@ -23,6 +22,7 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
23
22
|
totalFractions: string;
|
|
24
23
|
price: string;
|
|
25
24
|
};
|
|
25
|
+
platform: `0x${string}`;
|
|
26
26
|
owner: `0x${string}`;
|
|
27
27
|
vesting: {
|
|
28
28
|
cliffDate: string;
|
|
@@ -43,9 +43,9 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
43
43
|
asset: {
|
|
44
44
|
symbol: string;
|
|
45
45
|
type: string;
|
|
46
|
-
name: string;
|
|
47
|
-
address: `0x${string}`;
|
|
48
46
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
47
|
+
address: `0x${string}`;
|
|
48
|
+
name: string;
|
|
49
49
|
tokenId: string | null;
|
|
50
50
|
decimals: number;
|
|
51
51
|
burnable: boolean;
|
|
@@ -56,22 +56,22 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
56
56
|
asset: {
|
|
57
57
|
symbol: string;
|
|
58
58
|
type: string;
|
|
59
|
-
name: string;
|
|
60
|
-
address: `0x${string}`;
|
|
61
59
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
60
|
+
address: `0x${string}`;
|
|
61
|
+
name: string;
|
|
62
62
|
tokenId: string | null;
|
|
63
63
|
decimals: number;
|
|
64
64
|
burnable: boolean;
|
|
65
65
|
};
|
|
66
66
|
amountPerPacket: never;
|
|
67
67
|
}[];
|
|
68
|
-
}[], 200, "json">>>, import("hono/types").H<Env, string, {
|
|
68
|
+
}[], 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
69
69
|
in: {
|
|
70
70
|
json: {
|
|
71
71
|
filter: {
|
|
72
72
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
73
|
-
platform?: `0x${string}` | undefined;
|
|
74
73
|
campaignId?: string | number | bigint | undefined;
|
|
74
|
+
platform?: `0x${string}` | undefined;
|
|
75
75
|
owner?: `0x${string}` | undefined;
|
|
76
76
|
};
|
|
77
77
|
page: {
|
|
@@ -84,8 +84,8 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
84
84
|
json: {
|
|
85
85
|
filter: {
|
|
86
86
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
87
|
-
platform?: `0x${string}` | undefined;
|
|
88
87
|
campaignId?: bigint | undefined;
|
|
88
|
+
platform?: `0x${string}` | undefined;
|
|
89
89
|
owner?: `0x${string}` | undefined;
|
|
90
90
|
};
|
|
91
91
|
page: {
|
|
@@ -97,19 +97,18 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
97
97
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
98
98
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
99
99
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
100
|
-
platform: `0x${string}`;
|
|
101
|
-
campaignId: number;
|
|
102
100
|
createdAt: string;
|
|
103
101
|
updatedAt: string;
|
|
102
|
+
campaignId: number;
|
|
104
103
|
transactionHash: `0x${string}`;
|
|
105
104
|
nftId: number;
|
|
106
105
|
fractions: {
|
|
107
106
|
asset: {
|
|
108
107
|
symbol: string;
|
|
109
108
|
type: string;
|
|
110
|
-
name: string;
|
|
111
|
-
address: `0x${string}`;
|
|
112
109
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
110
|
+
address: `0x${string}`;
|
|
111
|
+
name: string;
|
|
113
112
|
tokenId: string | null;
|
|
114
113
|
decimals: number;
|
|
115
114
|
burnable: boolean;
|
|
@@ -117,6 +116,7 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
117
116
|
totalFractions: string;
|
|
118
117
|
price: string;
|
|
119
118
|
};
|
|
119
|
+
platform: `0x${string}`;
|
|
120
120
|
owner: `0x${string}`;
|
|
121
121
|
vesting: {
|
|
122
122
|
cliffDate: string;
|
|
@@ -137,9 +137,9 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
137
137
|
asset: {
|
|
138
138
|
symbol: string;
|
|
139
139
|
type: string;
|
|
140
|
-
name: string;
|
|
141
|
-
address: `0x${string}`;
|
|
142
140
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
141
|
+
address: `0x${string}`;
|
|
142
|
+
name: string;
|
|
143
143
|
tokenId: string | null;
|
|
144
144
|
decimals: number;
|
|
145
145
|
burnable: boolean;
|
|
@@ -150,22 +150,22 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
150
150
|
asset: {
|
|
151
151
|
symbol: string;
|
|
152
152
|
type: string;
|
|
153
|
-
name: string;
|
|
154
|
-
address: `0x${string}`;
|
|
155
153
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
154
|
+
address: `0x${string}`;
|
|
155
|
+
name: string;
|
|
156
156
|
tokenId: string | null;
|
|
157
157
|
decimals: number;
|
|
158
158
|
burnable: boolean;
|
|
159
159
|
};
|
|
160
160
|
amountPerPacket: never;
|
|
161
161
|
}[];
|
|
162
|
-
}[], 200, "json">>>, import("hono/types").H<
|
|
162
|
+
}[], 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
163
163
|
in: {
|
|
164
164
|
json: {
|
|
165
165
|
filter: {
|
|
166
166
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
167
|
-
platform?: `0x${string}` | undefined;
|
|
168
167
|
campaignId?: string | number | bigint | undefined;
|
|
168
|
+
platform?: `0x${string}` | undefined;
|
|
169
169
|
owner?: `0x${string}` | undefined;
|
|
170
170
|
};
|
|
171
171
|
page: {
|
|
@@ -178,8 +178,8 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
178
178
|
json: {
|
|
179
179
|
filter: {
|
|
180
180
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
181
|
-
platform?: `0x${string}` | undefined;
|
|
182
181
|
campaignId?: bigint | undefined;
|
|
182
|
+
platform?: `0x${string}` | undefined;
|
|
183
183
|
owner?: `0x${string}` | undefined;
|
|
184
184
|
};
|
|
185
185
|
page: {
|
|
@@ -191,19 +191,18 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
191
191
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
192
192
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
193
193
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
194
|
-
platform: `0x${string}`;
|
|
195
|
-
campaignId: number;
|
|
196
194
|
createdAt: string;
|
|
197
195
|
updatedAt: string;
|
|
196
|
+
campaignId: number;
|
|
198
197
|
transactionHash: `0x${string}`;
|
|
199
198
|
nftId: number;
|
|
200
199
|
fractions: {
|
|
201
200
|
asset: {
|
|
202
201
|
symbol: string;
|
|
203
202
|
type: string;
|
|
204
|
-
name: string;
|
|
205
|
-
address: `0x${string}`;
|
|
206
203
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
204
|
+
address: `0x${string}`;
|
|
205
|
+
name: string;
|
|
207
206
|
tokenId: string | null;
|
|
208
207
|
decimals: number;
|
|
209
208
|
burnable: boolean;
|
|
@@ -211,6 +210,7 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
211
210
|
totalFractions: string;
|
|
212
211
|
price: string;
|
|
213
212
|
};
|
|
213
|
+
platform: `0x${string}`;
|
|
214
214
|
owner: `0x${string}`;
|
|
215
215
|
vesting: {
|
|
216
216
|
cliffDate: string;
|
|
@@ -231,9 +231,9 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
231
231
|
asset: {
|
|
232
232
|
symbol: string;
|
|
233
233
|
type: string;
|
|
234
|
-
name: string;
|
|
235
|
-
address: `0x${string}`;
|
|
236
234
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
235
|
+
address: `0x${string}`;
|
|
236
|
+
name: string;
|
|
237
237
|
tokenId: string | null;
|
|
238
238
|
decimals: number;
|
|
239
239
|
burnable: boolean;
|
|
@@ -244,9 +244,9 @@ export declare function createSearchSalesV0App<E extends Env>(factory: Factory<E
|
|
|
244
244
|
asset: {
|
|
245
245
|
symbol: string;
|
|
246
246
|
type: string;
|
|
247
|
-
name: string;
|
|
248
|
-
address: `0x${string}`;
|
|
249
247
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
248
|
+
address: `0x${string}`;
|
|
249
|
+
name: string;
|
|
250
250
|
tokenId: string | null;
|
|
251
251
|
decimals: number;
|
|
252
252
|
burnable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchSales.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/searchSales/v0/searchSales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"searchSales.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/searchSales/v0/searchSales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAevC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAwDlE"}
|
|
@@ -2,7 +2,6 @@ import { describeRoute } from "hono-openapi";
|
|
|
2
2
|
import { resolver, validator } from "hono-openapi/zod";
|
|
3
3
|
import { and, eq } from "@ponder/client";
|
|
4
4
|
import { z } from "../../../../common/zod.js";
|
|
5
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
6
5
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
7
6
|
import { PageSchema } from "../../../../common/models/page.js";
|
|
8
7
|
import { AddressSchema, PlatformContractAddress, CampaignIdSchema, TmiChainIdSchema, } from "../../../../common/index.js";
|
|
@@ -33,7 +32,7 @@ export function createSearchSalesV0App(factory) {
|
|
|
33
32
|
})), async (c) => {
|
|
34
33
|
const { page, filter } = c.req.valid("json");
|
|
35
34
|
const { fractions: { fractionsSales }, } = indexerSchemas;
|
|
36
|
-
const result = await indexerClient.db.query.fractionsSales.findMany({
|
|
35
|
+
const result = await c.get("indexerClient").db.query.fractionsSales.findMany({
|
|
37
36
|
with: {
|
|
38
37
|
fractionsAsset: true,
|
|
39
38
|
wrappedAssets: { with: { asset: true } },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
|
-
|
|
2
|
+
import { AppContext } from "../../common/context.js";
|
|
3
|
+
export declare function createSearchWithdrawalV0App(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
4
4
|
in: {
|
|
5
5
|
json: {
|
|
6
6
|
filter: {
|
|
7
7
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
8
|
-
platform?: `0x${string}` | undefined;
|
|
9
8
|
campaignId?: string | number | bigint | undefined;
|
|
9
|
+
platform?: `0x${string}` | undefined;
|
|
10
10
|
};
|
|
11
11
|
page: {
|
|
12
12
|
skip: number;
|
|
@@ -18,8 +18,8 @@ export declare function createSearchWithdrawalV0App<E extends Env>(factory: Fact
|
|
|
18
18
|
json: {
|
|
19
19
|
filter: {
|
|
20
20
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
21
|
-
platform?: `0x${string}` | undefined;
|
|
22
21
|
campaignId?: bigint | undefined;
|
|
22
|
+
platform?: `0x${string}` | undefined;
|
|
23
23
|
};
|
|
24
24
|
page: {
|
|
25
25
|
skip: number;
|
|
@@ -27,13 +27,13 @@ export declare function createSearchWithdrawalV0App<E extends Env>(factory: Fact
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<
|
|
30
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
31
31
|
in: {
|
|
32
32
|
json: {
|
|
33
33
|
filter: {
|
|
34
34
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
35
|
-
platform?: `0x${string}` | undefined;
|
|
36
35
|
campaignId?: string | number | bigint | undefined;
|
|
36
|
+
platform?: `0x${string}` | undefined;
|
|
37
37
|
};
|
|
38
38
|
page: {
|
|
39
39
|
skip: number;
|
|
@@ -45,8 +45,8 @@ export declare function createSearchWithdrawalV0App<E extends Env>(factory: Fact
|
|
|
45
45
|
json: {
|
|
46
46
|
filter: {
|
|
47
47
|
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
48
|
-
platform?: `0x${string}` | undefined;
|
|
49
48
|
campaignId?: bigint | undefined;
|
|
49
|
+
platform?: `0x${string}` | undefined;
|
|
50
50
|
};
|
|
51
51
|
page: {
|
|
52
52
|
skip: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchWithdrawal.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchWithdrawal.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"searchWithdrawal.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchWithdrawal.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAUvC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAqDvE"}
|
|
@@ -2,7 +2,6 @@ import { describeRoute } from "hono-openapi";
|
|
|
2
2
|
import { resolver, validator } from "hono-openapi/zod";
|
|
3
3
|
import { and, eq } from "@ponder/client";
|
|
4
4
|
import { z } from "../../common/zod.js";
|
|
5
|
-
import { indexerClient } from "../../common/indexer/index.js";
|
|
6
5
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
7
6
|
import { PageSchema } from "../../common/models/page.js";
|
|
8
7
|
import { PlatformContractAddress, CampaignIdSchema, TmiChainIdSchema } from "../../common/index.js";
|
|
@@ -32,7 +31,7 @@ export function createSearchWithdrawalV0App(factory) {
|
|
|
32
31
|
})), async (c) => {
|
|
33
32
|
const { page, filter } = c.req.valid("json");
|
|
34
33
|
const { fractions: { fractionsWithdrawals }, } = indexerSchemas;
|
|
35
|
-
const result = await indexerClient.db.query.fractionsWithdrawals.findMany({
|
|
34
|
+
const result = await c.get("indexerClient").db.query.fractionsWithdrawals.findMany({
|
|
36
35
|
with: {
|
|
37
36
|
fractionSale: true,
|
|
38
37
|
},
|
|
@@ -18,8 +18,8 @@ export declare function createSetFeeCapLimitTransactionV0<E extends Env>(factory
|
|
|
18
18
|
data: `0x${string}`;
|
|
19
19
|
to: `0x${string}`;
|
|
20
20
|
details: {
|
|
21
|
-
functionName: string;
|
|
22
21
|
address: `0x${string}`;
|
|
22
|
+
functionName: string;
|
|
23
23
|
abi: any[];
|
|
24
24
|
args: any[];
|
|
25
25
|
};
|
|
@@ -42,8 +42,8 @@ export declare function createSetFeeCapLimitTransactionV0<E extends Env>(factory
|
|
|
42
42
|
data: `0x${string}`;
|
|
43
43
|
to: `0x${string}`;
|
|
44
44
|
details: {
|
|
45
|
-
functionName: string;
|
|
46
45
|
address: `0x${string}`;
|
|
46
|
+
functionName: string;
|
|
47
47
|
abi: any[];
|
|
48
48
|
args: any[];
|
|
49
49
|
};
|
|
@@ -66,8 +66,8 @@ export declare function createSetFeeCapLimitTransactionV0<E extends Env>(factory
|
|
|
66
66
|
data: `0x${string}`;
|
|
67
67
|
to: `0x${string}`;
|
|
68
68
|
details: {
|
|
69
|
-
functionName: string;
|
|
70
69
|
address: `0x${string}`;
|
|
70
|
+
functionName: string;
|
|
71
71
|
abi: any[];
|
|
72
72
|
args: any[];
|
|
73
73
|
};
|
|
@@ -15,8 +15,8 @@ export declare function createUnlockWrappedAssetsTransactionV0<E extends Env>(fa
|
|
|
15
15
|
data: `0x${string}`;
|
|
16
16
|
to: `0x${string}`;
|
|
17
17
|
details: {
|
|
18
|
-
functionName: string;
|
|
19
18
|
address: `0x${string}`;
|
|
19
|
+
functionName: string;
|
|
20
20
|
abi: any[];
|
|
21
21
|
args: any[];
|
|
22
22
|
};
|
|
@@ -37,8 +37,8 @@ export declare function createUnlockWrappedAssetsTransactionV0<E extends Env>(fa
|
|
|
37
37
|
data: `0x${string}`;
|
|
38
38
|
to: `0x${string}`;
|
|
39
39
|
details: {
|
|
40
|
-
functionName: string;
|
|
41
40
|
address: `0x${string}`;
|
|
41
|
+
functionName: string;
|
|
42
42
|
abi: any[];
|
|
43
43
|
args: any[];
|
|
44
44
|
};
|
|
@@ -59,8 +59,8 @@ export declare function createUnlockWrappedAssetsTransactionV0<E extends Env>(fa
|
|
|
59
59
|
data: `0x${string}`;
|
|
60
60
|
to: `0x${string}`;
|
|
61
61
|
details: {
|
|
62
|
-
functionName: string;
|
|
63
62
|
address: `0x${string}`;
|
|
63
|
+
functionName: string;
|
|
64
64
|
abi: any[];
|
|
65
65
|
args: any[];
|
|
66
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
2
|
import { z } from "../../../../common/zod.js";
|
|
3
|
+
import { AppContext } from "../../../../common/context.js";
|
|
4
4
|
export declare const ClaimStatisticsRequestSchema: z.ZodObject<{
|
|
5
5
|
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
6
6
|
platform: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
@@ -8,14 +8,14 @@ export declare const ClaimStatisticsRequestSchema: z.ZodObject<{
|
|
|
8
8
|
walletAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
11
|
-
platform: `0x${string}`;
|
|
12
|
-
campaignId: bigint;
|
|
13
11
|
walletAddress: `0x${string}`;
|
|
12
|
+
campaignId: bigint;
|
|
13
|
+
platform: `0x${string}`;
|
|
14
14
|
}, {
|
|
15
15
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
16
|
-
platform: `0x${string}`;
|
|
17
|
-
campaignId: string | number | bigint;
|
|
18
16
|
walletAddress: `0x${string}`;
|
|
17
|
+
campaignId: string | number | bigint;
|
|
18
|
+
platform: `0x${string}`;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const ClaimStatisticsResponseSchema: z.ZodObject<{
|
|
21
21
|
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
@@ -35,8 +35,8 @@ export declare const ClaimStatisticsResponseSchema: z.ZodObject<{
|
|
|
35
35
|
}>, "many">;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
38
|
-
platform: `0x${string}`;
|
|
39
38
|
campaignId: string;
|
|
39
|
+
platform: `0x${string}`;
|
|
40
40
|
totalClaims: number;
|
|
41
41
|
lastClaimId: string | null;
|
|
42
42
|
totalClaimed: {
|
|
@@ -45,8 +45,8 @@ export declare const ClaimStatisticsResponseSchema: z.ZodObject<{
|
|
|
45
45
|
}[];
|
|
46
46
|
}, {
|
|
47
47
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
48
|
-
platform: `0x${string}`;
|
|
49
48
|
campaignId: string;
|
|
49
|
+
platform: `0x${string}`;
|
|
50
50
|
totalClaims: number;
|
|
51
51
|
lastClaimId: string | null;
|
|
52
52
|
totalClaimed: {
|
|
@@ -54,38 +54,38 @@ export declare const ClaimStatisticsResponseSchema: z.ZodObject<{
|
|
|
54
54
|
amount: string;
|
|
55
55
|
}[];
|
|
56
56
|
}>;
|
|
57
|
-
export declare function createClaimStatisticsV0App
|
|
57
|
+
export declare function createClaimStatisticsV0App(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
58
58
|
in: {
|
|
59
59
|
json: {
|
|
60
60
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
61
|
-
platform: `0x${string}`;
|
|
62
|
-
campaignId: string | number | bigint;
|
|
63
61
|
walletAddress: `0x${string}`;
|
|
62
|
+
campaignId: string | number | bigint;
|
|
63
|
+
platform: `0x${string}`;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
out: {
|
|
67
67
|
json: {
|
|
68
68
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
69
|
-
platform: `0x${string}`;
|
|
70
|
-
campaignId: bigint;
|
|
71
69
|
walletAddress: `0x${string}`;
|
|
70
|
+
campaignId: bigint;
|
|
71
|
+
platform: `0x${string}`;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<
|
|
74
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
75
75
|
in: {
|
|
76
76
|
json: {
|
|
77
77
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
78
|
-
platform: `0x${string}`;
|
|
79
|
-
campaignId: string | number | bigint;
|
|
80
78
|
walletAddress: `0x${string}`;
|
|
79
|
+
campaignId: string | number | bigint;
|
|
80
|
+
platform: `0x${string}`;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
out: {
|
|
84
84
|
json: {
|
|
85
85
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
86
|
-
platform: `0x${string}`;
|
|
87
|
-
campaignId: bigint;
|
|
88
86
|
walletAddress: `0x${string}`;
|
|
87
|
+
campaignId: bigint;
|
|
88
|
+
platform: `0x${string}`;
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimStatistics.route.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/vesting/v0/claimStatistics.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"claimStatistics.route.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/vesting/v0/claimStatistics.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,CAAC,EAAE,MAAM,2BAA2B,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EASrC,CAAC;AAEL,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAC;AAEL,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAuFtE"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi/zod";
|
|
3
3
|
import { and, count, eq, max, sql } from "@ponder/client";
|
|
4
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
5
4
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
6
5
|
import { TmiChainIdSchema } from "../../../../common/models/chainId.js";
|
|
7
6
|
import { CampaignIdSchema, PlatformContractAddress } from "../../../../common/models/platform.js";
|
|
@@ -51,15 +50,17 @@ export function createClaimStatisticsV0App(factory) {
|
|
|
51
50
|
}), validator("json", ClaimStatisticsRequestSchema), async (c) => {
|
|
52
51
|
const { chainId, platform, campaignId, walletAddress } = c.req.valid("json");
|
|
53
52
|
const { fractions: { fractionsClaims }, } = indexerSchemas;
|
|
54
|
-
const [claimStats] = await
|
|
55
|
-
.
|
|
53
|
+
const [claimStats] = await c
|
|
54
|
+
.get("indexerClient")
|
|
55
|
+
.db.select({
|
|
56
56
|
claims: count(fractionsClaims.transactionHash),
|
|
57
57
|
lastClaimId: max(fractionsClaims.semiFungibleBurntId),
|
|
58
58
|
})
|
|
59
59
|
.from(fractionsClaims)
|
|
60
60
|
.where(and(eq(fractionsClaims.chainId, Number(chainId)), eq(fractionsClaims.diamondAddress, platform), eq(fractionsClaims.saleId, BigInt(campaignId)), eq(fractionsClaims.receiver, walletAddress)));
|
|
61
|
-
const tokenAmounts = await
|
|
62
|
-
.
|
|
61
|
+
const tokenAmounts = await c
|
|
62
|
+
.get("indexerClient")
|
|
63
|
+
.db.select({
|
|
63
64
|
tokenAddress: sql `jsonb_array_elements(${fractionsClaims.received})->>'tokenAddress'`,
|
|
64
65
|
amount: sql `sum((jsonb_array_elements(${fractionsClaims.received})->>'amount')::bigint)`,
|
|
65
66
|
})
|
|
@@ -7,13 +7,13 @@ export declare const ClaimVestedTokensRequestSchema: z.ZodObject<{
|
|
|
7
7
|
amountOfFractions: z.ZodBigInt;
|
|
8
8
|
itToBurn: z.ZodBigInt;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
address: `0x${string}`;
|
|
11
10
|
campaignId: bigint;
|
|
11
|
+
address: `0x${string}`;
|
|
12
12
|
amountOfFractions: bigint;
|
|
13
13
|
itToBurn: bigint;
|
|
14
14
|
}, {
|
|
15
|
-
address: `0x${string}`;
|
|
16
15
|
campaignId: bigint;
|
|
16
|
+
address: `0x${string}`;
|
|
17
17
|
amountOfFractions: bigint;
|
|
18
18
|
itToBurn: bigint;
|
|
19
19
|
}>;
|
|
@@ -21,8 +21,8 @@ export declare function createClaimVestedTokensTransaction<E extends Env>(factor
|
|
|
21
21
|
data: `0x${string}`;
|
|
22
22
|
to: `0x${string}`;
|
|
23
23
|
details: {
|
|
24
|
-
functionName: string;
|
|
25
24
|
address: `0x${string}`;
|
|
25
|
+
functionName: string;
|
|
26
26
|
abi: any[];
|
|
27
27
|
args: any[];
|
|
28
28
|
};
|
|
@@ -33,16 +33,16 @@ export declare function createClaimVestedTokensTransaction<E extends Env>(factor
|
|
|
33
33
|
}, 500, "json">)>>, import("hono/types").H<Env, string, {
|
|
34
34
|
in: {
|
|
35
35
|
json: {
|
|
36
|
-
address: `0x${string}`;
|
|
37
36
|
campaignId: bigint;
|
|
37
|
+
address: `0x${string}`;
|
|
38
38
|
amountOfFractions: bigint;
|
|
39
39
|
itToBurn: bigint;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
out: {
|
|
43
43
|
json: {
|
|
44
|
-
address: `0x${string}`;
|
|
45
44
|
campaignId: bigint;
|
|
45
|
+
address: `0x${string}`;
|
|
46
46
|
amountOfFractions: bigint;
|
|
47
47
|
itToBurn: bigint;
|
|
48
48
|
};
|
|
@@ -51,8 +51,8 @@ export declare function createClaimVestedTokensTransaction<E extends Env>(factor
|
|
|
51
51
|
data: `0x${string}`;
|
|
52
52
|
to: `0x${string}`;
|
|
53
53
|
details: {
|
|
54
|
-
functionName: string;
|
|
55
54
|
address: `0x${string}`;
|
|
55
|
+
functionName: string;
|
|
56
56
|
abi: any[];
|
|
57
57
|
args: any[];
|
|
58
58
|
};
|
|
@@ -63,16 +63,16 @@ export declare function createClaimVestedTokensTransaction<E extends Env>(factor
|
|
|
63
63
|
}, 500, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
64
64
|
in: {
|
|
65
65
|
json: {
|
|
66
|
-
address: `0x${string}`;
|
|
67
66
|
campaignId: bigint;
|
|
67
|
+
address: `0x${string}`;
|
|
68
68
|
amountOfFractions: bigint;
|
|
69
69
|
itToBurn: bigint;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
out: {
|
|
73
73
|
json: {
|
|
74
|
-
address: `0x${string}`;
|
|
75
74
|
campaignId: bigint;
|
|
75
|
+
address: `0x${string}`;
|
|
76
76
|
amountOfFractions: bigint;
|
|
77
77
|
itToBurn: bigint;
|
|
78
78
|
};
|
|
@@ -81,8 +81,8 @@ export declare function createClaimVestedTokensTransaction<E extends Env>(factor
|
|
|
81
81
|
data: `0x${string}`;
|
|
82
82
|
to: `0x${string}`;
|
|
83
83
|
details: {
|
|
84
|
-
functionName: string;
|
|
85
84
|
address: `0x${string}`;
|
|
85
|
+
functionName: string;
|
|
86
86
|
abi: any[];
|
|
87
87
|
args: any[];
|
|
88
88
|
};
|
|
@@ -18,8 +18,8 @@ export declare function createEditCliffTransactionApp<E extends Env>(factory: Fa
|
|
|
18
18
|
data: `0x${string}`;
|
|
19
19
|
to: `0x${string}`;
|
|
20
20
|
details: {
|
|
21
|
-
functionName: string;
|
|
22
21
|
address: `0x${string}`;
|
|
22
|
+
functionName: string;
|
|
23
23
|
abi: any[];
|
|
24
24
|
args: any[];
|
|
25
25
|
};
|
|
@@ -46,8 +46,8 @@ export declare function createEditCliffTransactionApp<E extends Env>(factory: Fa
|
|
|
46
46
|
data: `0x${string}`;
|
|
47
47
|
to: `0x${string}`;
|
|
48
48
|
details: {
|
|
49
|
-
functionName: string;
|
|
50
49
|
address: `0x${string}`;
|
|
50
|
+
functionName: string;
|
|
51
51
|
abi: any[];
|
|
52
52
|
args: any[];
|
|
53
53
|
};
|
|
@@ -74,8 +74,8 @@ export declare function createEditCliffTransactionApp<E extends Env>(factory: Fa
|
|
|
74
74
|
data: `0x${string}`;
|
|
75
75
|
to: `0x${string}`;
|
|
76
76
|
details: {
|
|
77
|
-
functionName: string;
|
|
78
77
|
address: `0x${string}`;
|
|
78
|
+
functionName: string;
|
|
79
79
|
abi: any[];
|
|
80
80
|
args: any[];
|
|
81
81
|
};
|
|
@@ -15,8 +15,8 @@ export declare function createWithdrawPaymentFromSaleTransactionV0<E extends Env
|
|
|
15
15
|
data: `0x${string}`;
|
|
16
16
|
to: `0x${string}`;
|
|
17
17
|
details: {
|
|
18
|
-
functionName: string;
|
|
19
18
|
address: `0x${string}`;
|
|
19
|
+
functionName: string;
|
|
20
20
|
abi: any[];
|
|
21
21
|
args: any[];
|
|
22
22
|
};
|
|
@@ -37,8 +37,8 @@ export declare function createWithdrawPaymentFromSaleTransactionV0<E extends Env
|
|
|
37
37
|
data: `0x${string}`;
|
|
38
38
|
to: `0x${string}`;
|
|
39
39
|
details: {
|
|
40
|
-
functionName: string;
|
|
41
40
|
address: `0x${string}`;
|
|
41
|
+
functionName: string;
|
|
42
42
|
abi: any[];
|
|
43
43
|
args: any[];
|
|
44
44
|
};
|
|
@@ -59,8 +59,8 @@ export declare function createWithdrawPaymentFromSaleTransactionV0<E extends Env
|
|
|
59
59
|
data: `0x${string}`;
|
|
60
60
|
to: `0x${string}`;
|
|
61
61
|
details: {
|
|
62
|
-
functionName: string;
|
|
63
62
|
address: `0x${string}`;
|
|
63
|
+
functionName: string;
|
|
64
64
|
abi: any[];
|
|
65
65
|
args: any[];
|
|
66
66
|
};
|