@evergonlabs/tmi-protocol-api 0.4.1 → 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 +452 -152
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +4 -0
- package/dist/client.d.ts +500 -151
- 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/deploy.d.ts +7 -0
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +34 -0
- package/dist/issuance/grantRole.d.ts +9 -9
- package/dist/issuance/index.d.ts +47 -10
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +4 -1
- 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
|
@@ -10,20 +10,20 @@ export declare const StakeEventSchema: z.ZodObject<{
|
|
|
10
10
|
txHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
chainId: "11155111" | "31337";
|
|
13
|
-
platform: `0x${string}`;
|
|
14
|
-
id: string;
|
|
15
13
|
txHash: `0x${string}`;
|
|
16
14
|
createdAt: string;
|
|
15
|
+
id: string;
|
|
17
16
|
stakeId: bigint;
|
|
17
|
+
platform: `0x${string}`;
|
|
18
18
|
owner: `0x${string}`;
|
|
19
19
|
poolId?: bigint | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
chainId: "11155111" | "31337";
|
|
22
|
-
platform: `0x${string}`;
|
|
23
|
-
id: string;
|
|
24
22
|
txHash: `0x${string}`;
|
|
25
23
|
createdAt: string;
|
|
24
|
+
id: string;
|
|
26
25
|
stakeId: string | number | bigint;
|
|
26
|
+
platform: `0x${string}`;
|
|
27
27
|
owner: `0x${string}`;
|
|
28
28
|
poolId?: string | number | bigint | undefined;
|
|
29
29
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppContext } from "../../../common/context.js";
|
|
2
2
|
import { Factory } from "hono/factory";
|
|
3
3
|
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createGetStakesApp
|
|
4
|
+
export declare function createGetStakesApp(factory: Factory<AppContext>, tag: ITag): import("hono/hono-base").HonoBase<AppContext, {
|
|
5
5
|
"/v0": {
|
|
6
6
|
$get: {
|
|
7
7
|
input: {
|
|
8
8
|
query: {
|
|
9
9
|
chainId: string | string[];
|
|
10
|
-
platform: string | string[];
|
|
11
10
|
stakeId: string | string[];
|
|
11
|
+
platform: string | string[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
output: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/getStake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/getStake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;QAEzE"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
2
|
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
|
|
3
|
+
import { AppContext } from "../../../../common/context.js";
|
|
4
|
+
export declare function createGetStakeV0App(factory: Factory<AppContext>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
5
5
|
in: {
|
|
6
6
|
query: {
|
|
7
7
|
chainId: string | string[];
|
|
8
|
-
platform: string | string[];
|
|
9
8
|
stakeId: string | string[];
|
|
9
|
+
platform: string | string[];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
out: {
|
|
13
13
|
query: {
|
|
14
14
|
chainId: "11155111" | "31337";
|
|
15
|
-
platform: `0x${string}`;
|
|
16
15
|
stakeId: bigint;
|
|
16
|
+
platform: `0x${string}`;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<
|
|
19
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
20
20
|
in: {
|
|
21
21
|
query: {
|
|
22
22
|
chainId: string | string[];
|
|
23
|
-
platform: string | string[];
|
|
24
23
|
stakeId: string | string[];
|
|
24
|
+
platform: string | string[];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
out: {
|
|
28
28
|
query: {
|
|
29
29
|
chainId: "11155111" | "31337";
|
|
30
|
-
platform: `0x${string}`;
|
|
31
30
|
stakeId: bigint;
|
|
31
|
+
platform: `0x${string}`;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStake.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/getStake/v0/getStake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"getStake.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/getStake/v0/getStake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAMvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAsE1E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { and, eq } from "@ponder/client";
|
|
2
2
|
import { describeRoute } from "hono-openapi";
|
|
3
3
|
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
5
4
|
import { z } from "../../../../common/zod.js";
|
|
6
5
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
7
6
|
import { ErrorSchema, PlatformContractAddress, StakeIdSchema, StakingChainId } from "../../../../common/index.js";
|
|
@@ -51,8 +50,9 @@ export function createGetStakeV0App(factory, tag) {
|
|
|
51
50
|
}),
|
|
52
51
|
})), async (c) => {
|
|
53
52
|
const { chainId, platform, stakeId } = c.req.valid("query");
|
|
54
|
-
const [stake] = await
|
|
55
|
-
.
|
|
53
|
+
const [stake] = await c
|
|
54
|
+
.get("indexerClient")
|
|
55
|
+
.db.select()
|
|
56
56
|
.from(indexerSchemas.stakes)
|
|
57
57
|
.limit(1)
|
|
58
58
|
.where(and(eq(indexerSchemas.stakes.chainId, Number(chainId)), eq(indexerSchemas.stakes.diamondAddress, platform), eq(indexerSchemas.stakes.stakeId, stakeId)));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
|
-
|
|
2
|
+
import { AppContext } from "../../common/context.js";
|
|
3
|
+
export declare function createStakesApp(factory: Factory<AppContext>): import("hono/hono-base").HonoBase<AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
4
4
|
"/v0": {
|
|
5
5
|
$post: {
|
|
6
6
|
input: {
|
|
7
7
|
json: {
|
|
8
8
|
filter: {
|
|
9
|
+
poolId?: string | number | bigint | undefined;
|
|
9
10
|
chainId?: "11155111" | "31337" | undefined;
|
|
10
11
|
platform?: `0x${string}` | undefined;
|
|
11
|
-
poolId?: string | number | bigint | undefined;
|
|
12
12
|
owner?: `0x${string}` | undefined;
|
|
13
13
|
};
|
|
14
14
|
page: {
|
|
@@ -28,9 +28,9 @@ export declare function createStakesApp<E extends Env>(factory: Factory<E>): imp
|
|
|
28
28
|
input: {
|
|
29
29
|
json: {
|
|
30
30
|
filter: {
|
|
31
|
+
poolId?: string | number | bigint | undefined;
|
|
31
32
|
chainId?: "11155111" | "31337" | undefined;
|
|
32
33
|
platform?: `0x${string}` | undefined;
|
|
33
|
-
poolId?: string | number | bigint | undefined;
|
|
34
34
|
owner?: `0x${string}` | undefined;
|
|
35
35
|
};
|
|
36
36
|
page: {
|
|
@@ -50,8 +50,8 @@ export declare function createStakesApp<E extends Env>(factory: Factory<E>): imp
|
|
|
50
50
|
input: {
|
|
51
51
|
query: {
|
|
52
52
|
chainId: string | string[];
|
|
53
|
-
platform: string | string[];
|
|
54
53
|
stakeId: string | string[];
|
|
54
|
+
platform: string | string[];
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
output: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/stakes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/staking/stakes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAO3D"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppContext } from "../../../common/context.js";
|
|
2
2
|
import { Factory } from "hono/factory";
|
|
3
3
|
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createSearchStakeEventsApp
|
|
4
|
+
export declare function createSearchStakeEventsApp(factory: Factory<AppContext>, tag: ITag): import("hono/hono-base").HonoBase<AppContext, {
|
|
5
5
|
"/v0": {
|
|
6
6
|
$post: {
|
|
7
7
|
input: {
|
|
8
8
|
json: {
|
|
9
9
|
filter: {
|
|
10
|
+
poolId?: string | number | bigint | undefined;
|
|
10
11
|
chainId?: "11155111" | "31337" | undefined;
|
|
11
12
|
platform?: `0x${string}` | undefined;
|
|
12
|
-
poolId?: string | number | bigint | undefined;
|
|
13
13
|
owner?: `0x${string}` | undefined;
|
|
14
14
|
};
|
|
15
15
|
page: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/searchStakeEvents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/searchStakeEvents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;QAEjF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
2
|
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
|
|
3
|
+
import { AppContext } from "../../../../common/context.js";
|
|
4
|
+
export declare function createSearchStakeEventsV0App(factory: Factory<AppContext>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
5
5
|
in: {
|
|
6
6
|
json: {
|
|
7
7
|
filter: {
|
|
8
|
+
poolId?: string | number | bigint | undefined;
|
|
8
9
|
chainId?: "11155111" | "31337" | undefined;
|
|
9
10
|
platform?: `0x${string}` | undefined;
|
|
10
|
-
poolId?: string | number | bigint | undefined;
|
|
11
11
|
owner?: `0x${string}` | undefined;
|
|
12
12
|
};
|
|
13
13
|
page: {
|
|
@@ -19,9 +19,9 @@ export declare function createSearchStakeEventsV0App<E extends Env>(factory: Fac
|
|
|
19
19
|
out: {
|
|
20
20
|
json: {
|
|
21
21
|
filter: {
|
|
22
|
+
poolId?: bigint | undefined;
|
|
22
23
|
chainId?: "11155111" | "31337" | undefined;
|
|
23
24
|
platform?: `0x${string}` | undefined;
|
|
24
|
-
poolId?: bigint | undefined;
|
|
25
25
|
owner?: `0x${string}` | undefined;
|
|
26
26
|
};
|
|
27
27
|
page: {
|
|
@@ -30,13 +30,13 @@ export declare function createSearchStakeEventsV0App<E extends Env>(factory: Fac
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<
|
|
33
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
34
34
|
in: {
|
|
35
35
|
json: {
|
|
36
36
|
filter: {
|
|
37
|
+
poolId?: string | number | bigint | undefined;
|
|
37
38
|
chainId?: "11155111" | "31337" | undefined;
|
|
38
39
|
platform?: `0x${string}` | undefined;
|
|
39
|
-
poolId?: string | number | bigint | undefined;
|
|
40
40
|
owner?: `0x${string}` | undefined;
|
|
41
41
|
};
|
|
42
42
|
page: {
|
|
@@ -48,9 +48,9 @@ export declare function createSearchStakeEventsV0App<E extends Env>(factory: Fac
|
|
|
48
48
|
out: {
|
|
49
49
|
json: {
|
|
50
50
|
filter: {
|
|
51
|
+
poolId?: bigint | undefined;
|
|
51
52
|
chainId?: "11155111" | "31337" | undefined;
|
|
52
53
|
platform?: `0x${string}` | undefined;
|
|
53
|
-
poolId?: bigint | undefined;
|
|
54
54
|
owner?: `0x${string}` | undefined;
|
|
55
55
|
};
|
|
56
56
|
page: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchStakeEvents.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"searchStakeEvents.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAOjD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAuDnF"}
|
|
@@ -3,7 +3,6 @@ import { resolver, validator } from "hono-openapi/zod";
|
|
|
3
3
|
import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
4
4
|
import { and, eq } from "@ponder/client";
|
|
5
5
|
import { z } from "../../../../common/zod.js";
|
|
6
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
7
6
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
8
7
|
import { PageSchema } from "../../../../common/models/page.js";
|
|
9
8
|
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../../common/index.js";
|
|
@@ -33,8 +32,9 @@ export function createSearchStakeEventsV0App(factory, tag) {
|
|
|
33
32
|
}),
|
|
34
33
|
})), async (c) => {
|
|
35
34
|
const { page, filter } = c.req.valid("json");
|
|
36
|
-
const result = await
|
|
37
|
-
.
|
|
35
|
+
const result = await c
|
|
36
|
+
.get("indexerClient")
|
|
37
|
+
.db.select()
|
|
38
38
|
.from(indexerSchemas.stakeEvents)
|
|
39
39
|
.limit(page.limit)
|
|
40
40
|
.offset(page.skip)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppContext } from "../../../common/context.js";
|
|
2
2
|
import { Factory } from "hono/factory";
|
|
3
3
|
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createSearchStakesApp
|
|
4
|
+
export declare function createSearchStakesApp(factory: Factory<AppContext>, tag: ITag): import("hono/hono-base").HonoBase<AppContext, {
|
|
5
5
|
"/v0": {
|
|
6
6
|
$post: {
|
|
7
7
|
input: {
|
|
8
8
|
json: {
|
|
9
9
|
filter: {
|
|
10
|
+
poolId?: string | number | bigint | undefined;
|
|
10
11
|
chainId?: "11155111" | "31337" | undefined;
|
|
11
12
|
platform?: `0x${string}` | undefined;
|
|
12
|
-
poolId?: string | number | bigint | undefined;
|
|
13
13
|
owner?: `0x${string}` | undefined;
|
|
14
14
|
};
|
|
15
15
|
page: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/searchStakes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/stakes/searchStakes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;QAE5E"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
1
|
import { Factory } from "hono/factory";
|
|
3
2
|
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
|
|
3
|
+
import { AppContext } from "../../../../common/context.js";
|
|
4
|
+
export declare function createSearchStakesV0App(factory: Factory<AppContext>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
5
5
|
in: {
|
|
6
6
|
json: {
|
|
7
7
|
filter: {
|
|
8
|
+
poolId?: string | number | bigint | undefined;
|
|
8
9
|
chainId?: "11155111" | "31337" | undefined;
|
|
9
10
|
platform?: `0x${string}` | undefined;
|
|
10
|
-
poolId?: string | number | bigint | undefined;
|
|
11
11
|
owner?: `0x${string}` | undefined;
|
|
12
12
|
};
|
|
13
13
|
page: {
|
|
@@ -19,9 +19,9 @@ export declare function createSearchStakesV0App<E extends Env>(factory: Factory<
|
|
|
19
19
|
out: {
|
|
20
20
|
json: {
|
|
21
21
|
filter: {
|
|
22
|
+
poolId?: bigint | undefined;
|
|
22
23
|
chainId?: "11155111" | "31337" | undefined;
|
|
23
24
|
platform?: `0x${string}` | undefined;
|
|
24
|
-
poolId?: bigint | undefined;
|
|
25
25
|
owner?: `0x${string}` | undefined;
|
|
26
26
|
};
|
|
27
27
|
page: {
|
|
@@ -30,13 +30,13 @@ export declare function createSearchStakesV0App<E extends Env>(factory: Factory<
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<
|
|
33
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
34
34
|
in: {
|
|
35
35
|
json: {
|
|
36
36
|
filter: {
|
|
37
|
+
poolId?: string | number | bigint | undefined;
|
|
37
38
|
chainId?: "11155111" | "31337" | undefined;
|
|
38
39
|
platform?: `0x${string}` | undefined;
|
|
39
|
-
poolId?: string | number | bigint | undefined;
|
|
40
40
|
owner?: `0x${string}` | undefined;
|
|
41
41
|
};
|
|
42
42
|
page: {
|
|
@@ -48,9 +48,9 @@ export declare function createSearchStakesV0App<E extends Env>(factory: Factory<
|
|
|
48
48
|
out: {
|
|
49
49
|
json: {
|
|
50
50
|
filter: {
|
|
51
|
+
poolId?: bigint | undefined;
|
|
51
52
|
chainId?: "11155111" | "31337" | undefined;
|
|
52
53
|
platform?: `0x${string}` | undefined;
|
|
53
|
-
poolId?: bigint | undefined;
|
|
54
54
|
owner?: `0x${string}` | undefined;
|
|
55
55
|
};
|
|
56
56
|
page: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchStakes.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/searchStakes/v0/searchStakes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"searchStakes.d.ts","sourceRoot":"","sources":["../../../../../src/staking/stakes/searchStakes/v0/searchStakes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAOjD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAqD9E"}
|
|
@@ -3,7 +3,6 @@ import { resolver, validator } from "hono-openapi/zod";
|
|
|
3
3
|
import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
4
4
|
import { and, eq } from "@ponder/client";
|
|
5
5
|
import { z } from "../../../../common/zod.js";
|
|
6
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
7
6
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
8
7
|
import { PageSchema } from "../../../../common/models/page.js";
|
|
9
8
|
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../../common/index.js";
|
|
@@ -33,8 +32,9 @@ export function createSearchStakesV0App(factory, tag) {
|
|
|
33
32
|
}),
|
|
34
33
|
})), async (c) => {
|
|
35
34
|
const { page, filter } = c.req.valid("json");
|
|
36
|
-
const result = await
|
|
37
|
-
.
|
|
35
|
+
const result = await c
|
|
36
|
+
.get("indexerClient")
|
|
37
|
+
.db.select()
|
|
38
38
|
.from(indexerSchemas.stakes)
|
|
39
39
|
.limit(page.limit)
|
|
40
40
|
.offset(page.skip)
|