@merkl/api 0.20.64 → 0.20.65
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/index.js +5 -1
- package/dist/src/eden/index.d.ts +115 -60
- package/dist/src/engine/dynamicData/implementations/Erc20.js +80 -42
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +18 -18
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.js +33 -30
- package/dist/src/engine/erc20SubTypeProcessors/{helpers/tokenType.d.ts → constants.d.ts} +0 -6
- package/dist/src/engine/erc20SubTypeProcessors/factory.d.ts +6 -0
- package/dist/src/engine/erc20SubTypeProcessors/{implementations/processorMapping.js → factory.js} +49 -48
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.js +1 -5
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.js +6 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +4 -5
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.js +3 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.js +3 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.js +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.js +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.js +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.js +1 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.js +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.js +4 -5
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.js +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +3 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.js +5 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +2 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.js +0 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.js +0 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.js +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.js +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.js +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.js +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.js +5 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +1 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.js +2 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +3 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.js +3 -4
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.d.ts +17 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +52 -62
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.js +1 -1
- package/dist/src/index.d.ts +23 -12
- package/dist/src/jobs/update-rpc-calls-cache.js +9 -4
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +23 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +23 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.js +2 -1
- package/dist/src/modules/v4/router.d.ts +23 -12
- package/dist/src/utils/decodeCalls.d.ts +1 -1
- package/dist/src/utils/decodeCalls.js +1 -1
- package/dist/src/utils/encodeCalls.d.ts +2 -2
- package/dist/src/utils/encodeCalls.js +15 -15
- package/dist/src/utils/generateCardName.d.ts +4 -3
- package/dist/src/utils/generateCardName.js +3 -3
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.d.ts +0 -6
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.d.ts +0 -4
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.js +0 -24
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +0 -4
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.js +0 -22
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.d.ts +0 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.js +0 -22
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.d.ts +0 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.js +0 -22
- package/dist/src/utils/generateIcons.d.ts +0 -3
- package/dist/src/utils/generateIcons.js +0 -65
- /package/dist/src/engine/erc20SubTypeProcessors/{helpers/tokenType.js → constants.js} +0 -0
@@ -25,7 +25,8 @@ export class OpportunityService {
|
|
25
25
|
const opportunity = await OpportunityRepository.findUniqueOrThrow(id);
|
26
26
|
const overrides = opportunity.manualOverrides ?? [];
|
27
27
|
const newOverrides = overrides.filter(override => !overridesToDelete.includes(override));
|
28
|
-
|
28
|
+
await OpportunityRepository.update(id, { manualOverrides: newOverrides });
|
29
|
+
return await OpportunityService.recreate(id);
|
29
30
|
}
|
30
31
|
/**
|
31
32
|
* create an opportunity without campaigns
|
@@ -131,20 +131,31 @@ export declare const v4: Elysia<"/v4", false, {
|
|
131
131
|
response: {
|
132
132
|
200: {
|
133
133
|
id: string;
|
134
|
-
|
134
|
+
chainId: number;
|
135
135
|
type: string;
|
136
|
-
status: import("@db/api").$Enums.Status;
|
137
|
-
tags: string[];
|
138
136
|
identifier: string;
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
137
|
+
name: string;
|
138
|
+
status: "PAST" | "LIVE" | "SOON";
|
139
|
+
action: any;
|
140
|
+
tokens: ({
|
141
|
+
symbol: string;
|
142
|
+
id: string;
|
143
|
+
name: string | null;
|
144
|
+
icon: string;
|
145
|
+
address: string;
|
146
|
+
chainId: number;
|
147
|
+
decimals: number;
|
148
|
+
verified: boolean;
|
149
|
+
isTest: boolean;
|
150
|
+
isPoint: boolean;
|
151
|
+
isNative: boolean;
|
152
|
+
} & {
|
153
|
+
price?: number | null | undefined;
|
154
|
+
})[];
|
155
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
156
|
+
depositUrl: any;
|
157
|
+
explorerAddress: string | undefined;
|
158
|
+
tags: string[];
|
148
159
|
};
|
149
160
|
};
|
150
161
|
};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/
|
1
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
2
2
|
export declare function decodeCall(calls: string[], index: number, key: string, type?: tokenType): any;
|
3
3
|
export declare function decodeReturnValue(returnData: string, key: string, type?: tokenType): any;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/
|
1
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
2
2
|
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, BunniV2HubInterface, BunniV2TokenInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankERC20Interface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, UniswapV3PoolInterface, VePufferInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
3
3
|
import { BigNumber } from "ethers";
|
4
4
|
export function decodeCall(calls, index, key, type) {
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/
|
1
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
2
2
|
import { type CallDto } from "@sdk";
|
3
|
-
export declare function createCall(target: string, key: string, type?: tokenType,
|
3
|
+
export declare function createCall(target: string, key: string, type?: tokenType, callArgs?: any): CallDto;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/
|
1
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
2
2
|
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, BunniV2HubInterface, BunniV2TokenInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, UniswapV3PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
|
3
|
-
export function createCall(target, key, type,
|
3
|
+
export function createCall(target, key, type, callArgs) {
|
4
4
|
switch (key) {
|
5
5
|
case "sqrtPriceX96":
|
6
6
|
return { allowFailure: true, callData: UniswapV3PoolInterface.encodeFunctionData("slot0"), target };
|
7
7
|
case "tokens":
|
8
|
-
return { allowFailure: true, callData: LPManagerInterface.encodeFunctionData("tokens", [
|
8
|
+
return { allowFailure: true, callData: LPManagerInterface.encodeFunctionData("tokens", [callArgs]), target };
|
9
9
|
case "getTokensCount":
|
10
10
|
return { allowFailure: true, callData: LPManagerInterface.encodeFunctionData("getTokensCount"), target };
|
11
11
|
case "getTotalValue":
|
12
12
|
return {
|
13
13
|
allowFailure: true,
|
14
|
-
callData: LPManagerHelperInterface.encodeFunctionData("getTotalValue", [
|
14
|
+
callData: LPManagerHelperInterface.encodeFunctionData("getTotalValue", [callArgs]),
|
15
15
|
target,
|
16
16
|
};
|
17
17
|
case "SY":
|
@@ -38,13 +38,13 @@ export function createCall(target, key, type, metaData) {
|
|
38
38
|
case "coin2":
|
39
39
|
return { allowFailure: true, callData: CurveInterface.encodeFunctionData("coins", [2]), target };
|
40
40
|
case "coins":
|
41
|
-
return { allowFailure: true, callData: CurveInterface.encodeFunctionData("coins", [
|
41
|
+
return { allowFailure: true, callData: CurveInterface.encodeFunctionData("coins", [callArgs]), target };
|
42
42
|
case "N_COINS":
|
43
43
|
return { allowFailure: true, callData: CurveStableSwapNGInterface.encodeFunctionData("N_COINS"), target };
|
44
44
|
case "balances":
|
45
45
|
return {
|
46
46
|
allowFailure: true,
|
47
|
-
callData: CurveStableSwapNGInterface.encodeFunctionData("balances", [
|
47
|
+
callData: CurveStableSwapNGInterface.encodeFunctionData("balances", [callArgs]),
|
48
48
|
target,
|
49
49
|
};
|
50
50
|
case "operator":
|
@@ -81,14 +81,14 @@ export function createCall(target, key, type, metaData) {
|
|
81
81
|
case "shortToken": {
|
82
82
|
return {
|
83
83
|
allowFailure: true,
|
84
|
-
callData: RfxDatastoreInterface.encodeFunctionData("getAddress", [
|
84
|
+
callData: RfxDatastoreInterface.encodeFunctionData("getAddress", [callArgs]),
|
85
85
|
target,
|
86
86
|
};
|
87
87
|
}
|
88
88
|
case "longToken": {
|
89
89
|
return {
|
90
90
|
allowFailure: true,
|
91
|
-
callData: RfxDatastoreInterface.encodeFunctionData("getAddress", [
|
91
|
+
callData: RfxDatastoreInterface.encodeFunctionData("getAddress", [callArgs]),
|
92
92
|
target,
|
93
93
|
};
|
94
94
|
}
|
@@ -183,7 +183,7 @@ export function createCall(target, key, type, metaData) {
|
|
183
183
|
case "calcNetShareValue":
|
184
184
|
return {
|
185
185
|
allowFailure: true,
|
186
|
-
callData: EnzymeInterface.encodeFunctionData("calcNetShareValue", [
|
186
|
+
callData: EnzymeInterface.encodeFunctionData("calcNetShareValue", [callArgs]),
|
187
187
|
target,
|
188
188
|
};
|
189
189
|
case "getPricePerFullShare":
|
@@ -237,7 +237,7 @@ export function createCall(target, key, type, metaData) {
|
|
237
237
|
case "balanceOf":
|
238
238
|
return {
|
239
239
|
allowFailure: true,
|
240
|
-
callData: ERC20Interface.encodeFunctionData("balanceOf", [
|
240
|
+
callData: ERC20Interface.encodeFunctionData("balanceOf", [callArgs]),
|
241
241
|
target,
|
242
242
|
};
|
243
243
|
case "getPoolId":
|
@@ -255,7 +255,7 @@ export function createCall(target, key, type, metaData) {
|
|
255
255
|
case "poolInfo":
|
256
256
|
return {
|
257
257
|
allowFailure: true,
|
258
|
-
callData: AuraOperatorInterface.encodeFunctionData("poolInfo", [
|
258
|
+
callData: AuraOperatorInterface.encodeFunctionData("poolInfo", [callArgs]),
|
259
259
|
target,
|
260
260
|
};
|
261
261
|
case "staker":
|
@@ -263,13 +263,13 @@ export function createCall(target, key, type, metaData) {
|
|
263
263
|
case "getPoolTokens":
|
264
264
|
return {
|
265
265
|
allowFailure: true,
|
266
|
-
callData: BalancerVaultInterface.encodeFunctionData("getPoolTokens", [
|
266
|
+
callData: BalancerVaultInterface.encodeFunctionData("getPoolTokens", [callArgs]),
|
267
267
|
target,
|
268
268
|
};
|
269
269
|
case "convertToAssets":
|
270
270
|
return {
|
271
271
|
allowFailure: true,
|
272
|
-
callData: FluidInterface.encodeFunctionData("convertToAssets", [
|
272
|
+
callData: FluidInterface.encodeFunctionData("convertToAssets", [callArgs]),
|
273
273
|
target,
|
274
274
|
};
|
275
275
|
case "tokenPrice":
|
@@ -339,7 +339,7 @@ export function createCall(target, key, type, metaData) {
|
|
339
339
|
case "boostedPositionInformation":
|
340
340
|
return {
|
341
341
|
allowFailure: true,
|
342
|
-
callData: MaverickBPLensInterface.encodeFunctionData("boostedPositionInformation", [
|
342
|
+
callData: MaverickBPLensInterface.encodeFunctionData("boostedPositionInformation", [callArgs]),
|
343
343
|
target: target,
|
344
344
|
};
|
345
345
|
case "minter":
|
@@ -488,7 +488,7 @@ export function createCall(target, key, type, metaData) {
|
|
488
488
|
case "poolState":
|
489
489
|
return {
|
490
490
|
allowFailure: true,
|
491
|
-
callData: BunniV2HubInterface.encodeFunctionData("poolState", [
|
491
|
+
callData: BunniV2HubInterface.encodeFunctionData("poolState", [callArgs]),
|
492
492
|
target: target,
|
493
493
|
};
|
494
494
|
default:
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import
|
1
|
+
import type { ERC20SupportedCampaignType } from "@/engine/dynamicData/implementations/Erc20";
|
2
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
3
|
+
import type { CampaignParameters } from "@sdk";
|
3
4
|
export declare const stakingContractToStakingSymbol: {
|
4
5
|
[key: string]: string;
|
5
6
|
};
|
6
|
-
export declare function generateCardName(type: tokenType, typeInfo: any, campaign: CampaignParameters<
|
7
|
+
export declare function generateCardName(type: tokenType, isStaking: boolean, typeInfo: any, campaign: CampaignParameters<ERC20SupportedCampaignType>, symbols?: string[], displayName?: string): string;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/
|
1
|
+
import { tokenType } from "@/engine/erc20SubTypeProcessors/constants";
|
2
2
|
import { capitalize } from "lodash";
|
3
3
|
export const stakingContractToStakingSymbol = {
|
4
4
|
"0x18eeD20f71BEf84B605253C89A7576E3634134C0": "CyberStaking",
|
5
5
|
"0x68754d29f2e97B837Cb622ccfF325adAC27E9977": "Karak",
|
6
6
|
"0xcd28cF8f7755f03967D27E128B38022B63919836": "Llamalend",
|
7
7
|
};
|
8
|
-
export function generateCardName(type, typeInfo, campaign, symbols = [""], displayName) {
|
9
|
-
if (
|
8
|
+
export function generateCardName(type, isStaking, typeInfo, campaign, symbols = [""], displayName) {
|
9
|
+
if (isStaking) {
|
10
10
|
if (typeInfo.stakingName !== undefined) {
|
11
11
|
typeInfo.stakingSymbol = typeInfo.stakingName.includes("Deposit")
|
12
12
|
? typeInfo.stakingName.replace("Deposit", "").trim()
|