@merkl/api 0.10.390 → 0.10.392
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/database/api/.generated/edge.js +9 -7
- package/dist/database/api/.generated/index-browser.js +4 -4
- package/dist/database/api/.generated/index.d.ts +3687 -491
- package/dist/database/api/.generated/index.js +9 -7
- package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/api/.generated/runtime/edge.js +18 -18
- package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/api/.generated/runtime/library.d.ts +107 -38
- package/dist/database/api/.generated/runtime/library.js +53 -53
- package/dist/database/api/.generated/runtime/react-native.js +26 -26
- package/dist/database/api/.generated/runtime/wasm.js +19 -19
- package/dist/database/api/.generated/wasm.js +4 -4
- package/dist/database/engine/.generated/edge.js +9 -7
- package/dist/database/engine/.generated/index-browser.js +4 -4
- package/dist/database/engine/.generated/index.d.ts +1891 -257
- package/dist/database/engine/.generated/index.js +9 -7
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/engine/.generated/runtime/edge.js +18 -18
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
- package/dist/database/engine/.generated/runtime/library.js +53 -53
- package/dist/database/engine/.generated/runtime/react-native.js +26 -26
- package/dist/database/engine/.generated/runtime/wasm.js +19 -19
- package/dist/database/engine/.generated/wasm.js +4 -4
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
- package/dist/src/eden/index.d.ts +4021 -117
- package/dist/src/entities/opportunity.js +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
- package/dist/src/index.d.ts +1343 -49
- package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
- package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
- package/dist/src/jobs/etl/pendings.js +1 -1
- package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
- package/dist/src/jobs/etl/rewards.js +37 -35
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +22 -19
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
- package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.js +4 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
- package/dist/src/modules/v4/router.d.ts +973 -36
- package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
- package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
- package/dist/src/plugins/logger.plugin.d.ts +3 -2
- package/dist/src/routes/v1/allowances.d.ts +12 -2
- package/dist/src/routes/v1/balances.d.ts +12 -2
- package/dist/src/routes/v1/prices.d.ts +12 -2
- package/dist/src/routes/v1/router.d.ts +39 -2
- package/dist/src/routes/v1/tokens.d.ts +12 -2
- package/dist/src/routes/v2/merkl.d.ts +12 -2
- package/dist/src/routes/v2/router.d.ts +12 -2
- package/dist/src/routes/v3/app.d.ts +12 -2
- package/dist/src/routes/v3/blacklist.d.ts +12 -2
- package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
- package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
- package/dist/src/routes/v3/campaignReport.d.ts +12 -2
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
- package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/claims.d.ts +12 -2
- package/dist/src/routes/v3/compoundV2.d.ts +12 -2
- package/dist/src/routes/v3/createCampaign.d.ts +12 -2
- package/dist/src/routes/v3/dolomite.d.ts +12 -2
- package/dist/src/routes/v3/euler.d.ts +12 -2
- package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/fetch.d.ts +12 -2
- package/dist/src/routes/v3/health.d.ts +12 -2
- package/dist/src/routes/v3/lostyield.d.ts +12 -2
- package/dist/src/routes/v3/merkl.d.ts +3 -2
- package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
- package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
- package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
- package/dist/src/routes/v3/opportunity.d.ts +12 -2
- package/dist/src/routes/v3/overview.d.ts +12 -2
- package/dist/src/routes/v3/parse.d.ts +12 -2
- package/dist/src/routes/v3/payload.d.ts +12 -2
- package/dist/src/routes/v3/poolInfo.d.ts +12 -2
- package/dist/src/routes/v3/positions.d.ts +12 -2
- package/dist/src/routes/v3/radiant.d.ts +12 -2
- package/dist/src/routes/v3/recipients.d.ts +12 -2
- package/dist/src/routes/v3/rewards.d.ts +12 -2
- package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/router.d.ts +328 -3
- package/dist/src/routes/v3/silo.d.ts +12 -2
- package/dist/src/routes/v3/token.d.ts +12 -2
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/twt/participants.d.ts +12 -2
- package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
- package/dist/src/routes/v3/updates.d.ts +12 -2
- package/dist/src/routes/v3/userRewards.d.ts +12 -2
- package/dist/src/utils/decodeCalls.js +12 -3
- package/dist/src/utils/encodeCalls.js +20 -7
- package/dist/src/utils/error.d.ts +3 -2
- package/dist/src/utils/generateCardName.js +4 -0
- package/dist/src/utils/logger.d.ts +29 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +24 -24
@@ -3,18 +3,19 @@ export declare const query: import("@sinclair/typebox").TObject<{
|
|
3
3
|
token: import("@sinclair/typebox").TString;
|
4
4
|
chainId: import("@sinclair/typebox").TNumber;
|
5
5
|
}>;
|
6
|
-
declare const _default: (app: Elysia) => Elysia<"",
|
6
|
+
declare const _default: (app: Elysia) => Elysia<"", {
|
7
7
|
decorator: {};
|
8
8
|
store: {};
|
9
9
|
derive: {};
|
10
10
|
resolve: {};
|
11
11
|
}, {
|
12
|
-
type: {};
|
13
12
|
error: {};
|
13
|
+
typebox: import("elysia/types").MergeTypeModule<import("@sinclair/typebox").TModule<{}, {}>, import("@sinclair/typebox").TModule<{}, {}>>;
|
14
14
|
}, {
|
15
15
|
schema: {};
|
16
16
|
macro: {};
|
17
17
|
macroFn: {};
|
18
|
+
parser: {};
|
18
19
|
}, {
|
19
20
|
tokenUnclaimed: {
|
20
21
|
get: {
|
@@ -29,6 +30,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
|
|
29
30
|
200: {
|
30
31
|
message: string;
|
31
32
|
};
|
33
|
+
422: {
|
34
|
+
type: "validation";
|
35
|
+
on: string;
|
36
|
+
summary?: string;
|
37
|
+
message?: string;
|
38
|
+
found?: unknown;
|
39
|
+
property?: string;
|
40
|
+
expected?: string;
|
41
|
+
};
|
32
42
|
};
|
33
43
|
};
|
34
44
|
};
|
@@ -2,18 +2,19 @@ import type Elysia from "elysia";
|
|
2
2
|
export declare const query: import("@sinclair/typebox").TObject<{
|
3
3
|
chainId: import("@sinclair/typebox").TNumber;
|
4
4
|
}>;
|
5
|
-
declare const _default: (app: Elysia) => Elysia<"",
|
5
|
+
declare const _default: (app: Elysia) => Elysia<"", {
|
6
6
|
decorator: {};
|
7
7
|
store: {};
|
8
8
|
derive: {};
|
9
9
|
resolve: {};
|
10
10
|
}, {
|
11
|
-
|
11
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
12
12
|
error: {};
|
13
13
|
}, {
|
14
14
|
schema: {};
|
15
15
|
macro: {};
|
16
16
|
macroFn: {};
|
17
|
+
parser: {};
|
17
18
|
}, {
|
18
19
|
index: {
|
19
20
|
get: {
|
@@ -26,6 +27,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
|
|
26
27
|
response: {
|
27
28
|
[x: string]: any;
|
28
29
|
200: any;
|
30
|
+
422: {
|
31
|
+
type: "validation";
|
32
|
+
on: string;
|
33
|
+
summary?: string;
|
34
|
+
message?: string;
|
35
|
+
found?: unknown;
|
36
|
+
property?: string;
|
37
|
+
expected?: string;
|
38
|
+
};
|
29
39
|
};
|
30
40
|
};
|
31
41
|
};
|
@@ -5,18 +5,19 @@ export declare const response: import("@sinclair/typebox").TArray<import("@sincl
|
|
5
5
|
chaind: import("@sinclair/typebox").TNumber;
|
6
6
|
debtTokenAddress: import("@sinclair/typebox").TString;
|
7
7
|
}>>;
|
8
|
-
declare const _default: (app: Elysia) => Elysia<"",
|
8
|
+
declare const _default: (app: Elysia) => Elysia<"", {
|
9
9
|
decorator: {};
|
10
10
|
store: {};
|
11
11
|
derive: {};
|
12
12
|
resolve: {};
|
13
13
|
}, {
|
14
|
-
|
14
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
15
15
|
error: {};
|
16
16
|
}, {
|
17
17
|
schema: {};
|
18
18
|
macro: {};
|
19
19
|
macroFn: {};
|
20
|
+
parser: {};
|
20
21
|
}, {
|
21
22
|
uniswapv4: {
|
22
23
|
get: {
|
@@ -30,6 +31,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
|
|
30
31
|
[poolId: string]: UniswapV4PoolType;
|
31
32
|
} | undefined;
|
32
33
|
};
|
34
|
+
422: {
|
35
|
+
type: "validation";
|
36
|
+
on: string;
|
37
|
+
summary?: string;
|
38
|
+
message?: string;
|
39
|
+
found?: unknown;
|
40
|
+
property?: string;
|
41
|
+
expected?: string;
|
42
|
+
};
|
33
43
|
};
|
34
44
|
};
|
35
45
|
};
|
@@ -6,18 +6,19 @@ export type UpdatesT = {
|
|
6
6
|
};
|
7
7
|
export declare const query: import("@sinclair/typebox").TObject<{}>;
|
8
8
|
export declare const response: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber>>;
|
9
|
-
declare const _default: (app: Elysia) => Elysia<"",
|
9
|
+
declare const _default: (app: Elysia) => Elysia<"", {
|
10
10
|
decorator: {};
|
11
11
|
store: {};
|
12
12
|
derive: {};
|
13
13
|
resolve: {};
|
14
14
|
}, {
|
15
|
-
|
15
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
16
16
|
error: {};
|
17
17
|
}, {
|
18
18
|
schema: {};
|
19
19
|
macro: {};
|
20
20
|
macroFn: {};
|
21
|
+
parser: {};
|
21
22
|
}, {
|
22
23
|
updates: {
|
23
24
|
get: {
|
@@ -35,6 +36,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
|
|
35
36
|
message?: string | undefined;
|
36
37
|
error: string;
|
37
38
|
};
|
39
|
+
422: {
|
40
|
+
type: "validation";
|
41
|
+
on: string;
|
42
|
+
summary?: string;
|
43
|
+
message?: string;
|
44
|
+
found?: unknown;
|
45
|
+
property?: string;
|
46
|
+
expected?: string;
|
47
|
+
};
|
38
48
|
};
|
39
49
|
};
|
40
50
|
};
|
@@ -7,18 +7,19 @@ export declare const query: import("@sinclair/typebox").TObject<{
|
|
7
7
|
rewardToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
8
8
|
user: import("@sinclair/typebox").TString;
|
9
9
|
}>;
|
10
|
-
declare const _default: (app: Elysia) => Elysia<"",
|
10
|
+
declare const _default: (app: Elysia) => Elysia<"", {
|
11
11
|
decorator: {};
|
12
12
|
store: {};
|
13
13
|
derive: {};
|
14
14
|
resolve: {};
|
15
15
|
}, {
|
16
|
-
type: {};
|
17
16
|
error: {};
|
17
|
+
typebox: import("elysia/types").MergeTypeModule<import("elysia/types").MergeTypeModule<import("@sinclair/typebox").TModule<{}, {}>, import("@sinclair/typebox").TModule<{}, {}>>, import("@sinclair/typebox").TModule<{}, {}>>;
|
18
18
|
}, {
|
19
19
|
schema: {};
|
20
20
|
macro: {};
|
21
21
|
macroFn: {};
|
22
|
+
parser: {};
|
22
23
|
}, {
|
23
24
|
userRewards: {
|
24
25
|
get: {
|
@@ -51,6 +52,15 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
|
|
51
52
|
};
|
52
53
|
};
|
53
54
|
};
|
55
|
+
422: {
|
56
|
+
type: "validation";
|
57
|
+
on: string;
|
58
|
+
summary?: string;
|
59
|
+
message?: string;
|
60
|
+
found?: unknown;
|
61
|
+
property?: string;
|
62
|
+
expected?: string;
|
63
|
+
};
|
54
64
|
};
|
55
65
|
};
|
56
66
|
};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
2
|
-
import { ERC4626Interface, LayerBankERC20Interface, SyncSwapClassicPoolInterface } from "libs/sdk/src/merkl/interface";
|
1
|
+
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankERC20Interface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
3
2
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
4
3
|
export function decodeCall(calls, index, key, type) {
|
5
4
|
const returnData = calls[index];
|
@@ -16,7 +15,13 @@ export function decodeReturnValue(returnData, key, type) {
|
|
16
15
|
case "decimals":
|
17
16
|
return ERC20Interface.decodeFunctionResult("decimals", returnData)[0];
|
18
17
|
case "totalSupply":
|
19
|
-
|
18
|
+
switch (type) {
|
19
|
+
case tokenType.lendle_lending:
|
20
|
+
case tokenType.lendle_borrowing:
|
21
|
+
return LendleInterface.decodeFunctionResult("scaledTotalSupply", returnData)[0];
|
22
|
+
default:
|
23
|
+
return ERC20Interface.decodeFunctionResult("totalSupply", returnData)[0];
|
24
|
+
}
|
20
25
|
case "balanceOf":
|
21
26
|
return ERC20Interface.decodeFunctionResult("balanceOf", returnData)[0];
|
22
27
|
case "name":
|
@@ -80,6 +85,10 @@ export function decodeReturnValue(returnData, key, type) {
|
|
80
85
|
case tokenType.avalon_borrowing:
|
81
86
|
case tokenType.superlend_lending:
|
82
87
|
case tokenType.superlend_borrowing:
|
88
|
+
case tokenType.takotako_lending:
|
89
|
+
case tokenType.takotako_borrowing:
|
90
|
+
case tokenType.lendle_lending:
|
91
|
+
case tokenType.lendle_borrowing:
|
83
92
|
case tokenType.yei_borrowing:
|
84
93
|
case tokenType.yei_lending:
|
85
94
|
return AaveInterface.decodeFunctionResult("UNDERLYING_ASSET_ADDRESS", returnData)[0];
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
2
|
-
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
|
3
|
-
import { ERC4626Interface, SyncSwapClassicPoolInterface } from "libs/sdk/src/merkl/interface";
|
2
|
+
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
|
4
3
|
export function createCall(target, key, type, metaData) {
|
5
4
|
switch (key) {
|
6
5
|
case "SY":
|
@@ -119,6 +118,8 @@ export function createCall(target, key, type, metaData) {
|
|
119
118
|
return { allowFailure: true, callData: MoonwellInterface.encodeFunctionData("underlying"), target };
|
120
119
|
case tokenType.radiant_lend:
|
121
120
|
case tokenType.radiant_borrow:
|
121
|
+
case tokenType.lendle_lending:
|
122
|
+
case tokenType.lendle_borrowing:
|
122
123
|
return {
|
123
124
|
allowFailure: true,
|
124
125
|
callData: RadiantInterface.encodeFunctionData("UNDERLYING_ASSET_ADDRESS"),
|
@@ -140,6 +141,8 @@ export function createCall(target, key, type, metaData) {
|
|
140
141
|
case tokenType.avalon_borrowing:
|
141
142
|
case tokenType.superlend_lending:
|
142
143
|
case tokenType.superlend_borrowing:
|
144
|
+
case tokenType.takotako_lending:
|
145
|
+
case tokenType.takotako_borrowing:
|
143
146
|
case tokenType.yei_borrowing:
|
144
147
|
case tokenType.yei_lending:
|
145
148
|
return { allowFailure: true, callData: AaveInterface.encodeFunctionData("UNDERLYING_ASSET_ADDRESS"), target };
|
@@ -179,11 +182,21 @@ export function createCall(target, key, type, metaData) {
|
|
179
182
|
target,
|
180
183
|
};
|
181
184
|
case "totalSupply":
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
185
|
+
switch (type) {
|
186
|
+
case tokenType.lendle_lending:
|
187
|
+
case tokenType.lendle_borrowing:
|
188
|
+
return {
|
189
|
+
allowFailure: true,
|
190
|
+
callData: LendleInterface.encodeFunctionData("scaledTotalSupply"),
|
191
|
+
target,
|
192
|
+
};
|
193
|
+
default:
|
194
|
+
return {
|
195
|
+
allowFailure: true,
|
196
|
+
callData: ERC20Interface.encodeFunctionData("totalSupply"),
|
197
|
+
target,
|
198
|
+
};
|
199
|
+
}
|
187
200
|
case "balanceOf":
|
188
201
|
return {
|
189
202
|
allowFailure: true,
|
@@ -23,13 +23,13 @@ export declare class InvalidCacheCall extends Error {
|
|
23
23
|
message: string;
|
24
24
|
constructor(message: string);
|
25
25
|
}
|
26
|
-
export declare const errorHandler: (canLog?: boolean) => (app: Elysia) => Elysia<"",
|
26
|
+
export declare const errorHandler: (canLog?: boolean) => (app: Elysia) => Elysia<"", {
|
27
27
|
decorator: {};
|
28
28
|
store: {};
|
29
29
|
derive: {};
|
30
30
|
resolve: {};
|
31
31
|
}, {
|
32
|
-
|
32
|
+
typebox: import("@sinclair/typebox").TModule<{}, {}>;
|
33
33
|
error: {
|
34
34
|
readonly InvalidParameter: InvalidParameter;
|
35
35
|
readonly UnsupportedNetwork: UnsupportedNetwork;
|
@@ -43,6 +43,7 @@ export declare const errorHandler: (canLog?: boolean) => (app: Elysia) => Elysia
|
|
43
43
|
schema: {};
|
44
44
|
macro: {};
|
45
45
|
macroFn: {};
|
46
|
+
parser: {};
|
46
47
|
}, {}, {
|
47
48
|
derive: {};
|
48
49
|
resolve: {};
|
@@ -51,6 +51,8 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
51
51
|
case tokenType.zerolend_borrowing:
|
52
52
|
case tokenType.avalon_borrowing:
|
53
53
|
case tokenType.superlend_borrowing:
|
54
|
+
case tokenType.takotako_borrowing:
|
55
|
+
case tokenType.lendle_borrowing:
|
54
56
|
case tokenType.euler_borrow:
|
55
57
|
return `Borrow ${typeInfo.symbolUnderlyingToken} on ${typeInfo.protocol}`;
|
56
58
|
case tokenType.ionic:
|
@@ -62,7 +64,9 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
62
64
|
case tokenType.ironclad_lending:
|
63
65
|
case tokenType.zerolend_lending:
|
64
66
|
case tokenType.avalon_lending:
|
67
|
+
case tokenType.takotako_lending:
|
65
68
|
case tokenType.superlend_lending:
|
69
|
+
case tokenType.lendle_lending:
|
66
70
|
case tokenType.fraxlend:
|
67
71
|
case tokenType.venus:
|
68
72
|
case tokenType.reactor_fusion:
|
@@ -1,17 +1,41 @@
|
|
1
|
-
export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogger<import("elysia").default<"",
|
1
|
+
export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogger<import("elysia").default<"", {
|
2
2
|
decorator: {};
|
3
3
|
store: {};
|
4
|
-
derive: {
|
5
|
-
resolve: {
|
4
|
+
derive: {
|
6
5
|
readonly log: import("pino").default.Logger<never, boolean>;
|
7
6
|
};
|
7
|
+
resolve: {};
|
8
8
|
}, {
|
9
|
-
|
9
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
10
10
|
error: {};
|
11
11
|
}, {
|
12
12
|
schema: {};
|
13
13
|
macro: {};
|
14
14
|
macroFn: {};
|
15
|
+
parser: {};
|
16
|
+
}, {}, {
|
17
|
+
derive: {};
|
18
|
+
resolve: {};
|
19
|
+
schema: {};
|
20
|
+
}, {
|
21
|
+
derive: {};
|
22
|
+
resolve: {};
|
23
|
+
schema: {};
|
24
|
+
}> | import("elysia").default<"", {
|
25
|
+
decorator: {};
|
26
|
+
store: import("@bogeychan/elysia-logger/types")._INTERNAL_Writeonly<import("@bogeychan/elysia-logger/types")._INTERNAL_ElysiaLoggerPluginAutoLoggingState>;
|
27
|
+
derive: {
|
28
|
+
readonly log: import("@bogeychan/elysia-logger/types").Logger;
|
29
|
+
};
|
30
|
+
resolve: {};
|
31
|
+
}, {
|
32
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
33
|
+
error: {};
|
34
|
+
}, {
|
35
|
+
schema: import("elysia").MergeSchema<import("elysia").MergeSchema<{}, {}, "">, {}, "">;
|
36
|
+
macro: {};
|
37
|
+
macroFn: {};
|
38
|
+
parser: {};
|
15
39
|
}, {}, {
|
16
40
|
derive: {};
|
17
41
|
resolve: {};
|
@@ -20,7 +44,7 @@ export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogg
|
|
20
44
|
derive: {};
|
21
45
|
resolve: {};
|
22
46
|
schema: {};
|
23
|
-
}
|
47
|
+
}>>;
|
24
48
|
export declare const log: {
|
25
49
|
debug: (message: string) => void;
|
26
50
|
error: (message: string, errorMessage: any, service?: string, url?: string) => void;
|