@merkl/api 0.20.100 → 0.20.102
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/src/eden/index.d.ts +12 -12
- package/dist/src/engine/{erc20SubTypeProcessors/helpers/tokenType.d.ts → campaignTVL/implementations/Erc20/Erc20SubType.d.ts} +5 -13
- package/dist/src/engine/campaignTVL/implementations/Erc20/Erc20SubType.js +106 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.d.ts +9 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.js +11 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +6 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +8 -0
- package/dist/src/engine/dynamicData/implementations/Erc20.d.ts +4 -4
- package/dist/src/engine/dynamicData/implementations/Erc20.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +20 -19
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.js +1 -4
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.js +31 -31
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.js +17 -17
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.js +6 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +40 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +32 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +29 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +31 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.js +100 -100
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +84 -84
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.js +1 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +130 -0
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.d.ts → Erc20/index.d.ts} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.js → Erc20/index.js} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +2 -2
- package/dist/src/index.d.ts +4 -4
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +7 -5
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/router.d.ts +4 -4
- package/dist/src/utils/decodeCalls.d.ts +3 -3
- package/dist/src/utils/decodeCalls.js +80 -80
- package/dist/src/utils/encodeCalls.d.ts +2 -2
- package/dist/src/utils/encodeCalls.js +77 -77
- package/dist/src/utils/generateCardName.d.ts +2 -2
- package/dist/src/utils/generateCardName.js +97 -97
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.js +0 -232
- package/dist/src/utils/generateIcons.d.ts +0 -3
- package/dist/src/utils/generateIcons.js +0 -65
package/dist/src/eden/index.d.ts
CHANGED
@@ -182,7 +182,7 @@ declare const eden: {
|
|
182
182
|
} & {
|
183
183
|
price?: number | null | undefined;
|
184
184
|
})[];
|
185
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
185
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
186
186
|
depositUrl: any;
|
187
187
|
explorerAddress: string | undefined;
|
188
188
|
tags: string[];
|
@@ -236,7 +236,7 @@ declare const eden: {
|
|
236
236
|
} & {
|
237
237
|
price?: number | null | undefined;
|
238
238
|
})[];
|
239
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
239
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
240
240
|
depositUrl: any;
|
241
241
|
explorerAddress: string | undefined;
|
242
242
|
tags: string[];
|
@@ -1660,7 +1660,7 @@ declare const eden: {
|
|
1660
1660
|
} & {
|
1661
1661
|
price?: number | null | undefined;
|
1662
1662
|
})[];
|
1663
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
1663
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
1664
1664
|
depositUrl: any;
|
1665
1665
|
explorerAddress: string | undefined;
|
1666
1666
|
tags: string[];
|
@@ -1716,7 +1716,7 @@ declare const eden: {
|
|
1716
1716
|
} & {
|
1717
1717
|
price?: number | null | undefined;
|
1718
1718
|
})[];
|
1719
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
1719
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
1720
1720
|
depositUrl: any;
|
1721
1721
|
explorerAddress: string | undefined;
|
1722
1722
|
tags: string[];
|
@@ -5143,7 +5143,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5143
5143
|
} & {
|
5144
5144
|
price?: number | null | undefined;
|
5145
5145
|
})[];
|
5146
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
5146
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
5147
5147
|
depositUrl: any;
|
5148
5148
|
explorerAddress: string | undefined;
|
5149
5149
|
tags: string[];
|
@@ -5207,7 +5207,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5207
5207
|
} & {
|
5208
5208
|
price?: number | null | undefined;
|
5209
5209
|
})[];
|
5210
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
5210
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
5211
5211
|
depositUrl: any;
|
5212
5212
|
explorerAddress: string | undefined;
|
5213
5213
|
tags: string[];
|
@@ -6887,7 +6887,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6887
6887
|
} & {
|
6888
6888
|
price?: number | null | undefined;
|
6889
6889
|
})[];
|
6890
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
6890
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
6891
6891
|
depositUrl: any;
|
6892
6892
|
explorerAddress: string | undefined;
|
6893
6893
|
tags: string[];
|
@@ -6950,7 +6950,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6950
6950
|
} & {
|
6951
6951
|
price?: number | null | undefined;
|
6952
6952
|
})[];
|
6953
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
6953
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
6954
6954
|
depositUrl: any;
|
6955
6955
|
explorerAddress: string | undefined;
|
6956
6956
|
tags: string[];
|
@@ -11084,7 +11084,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11084
11084
|
} & {
|
11085
11085
|
price?: number | null | undefined;
|
11086
11086
|
})[];
|
11087
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
11087
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
11088
11088
|
depositUrl: any;
|
11089
11089
|
explorerAddress: string | undefined;
|
11090
11090
|
tags: string[];
|
@@ -11138,7 +11138,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11138
11138
|
} & {
|
11139
11139
|
price?: number | null | undefined;
|
11140
11140
|
})[];
|
11141
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
11141
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
11142
11142
|
depositUrl: any;
|
11143
11143
|
explorerAddress: string | undefined;
|
11144
11144
|
tags: string[];
|
@@ -12562,7 +12562,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12562
12562
|
} & {
|
12563
12563
|
price?: number | null | undefined;
|
12564
12564
|
})[];
|
12565
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
12565
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
12566
12566
|
depositUrl: any;
|
12567
12567
|
explorerAddress: string | undefined;
|
12568
12568
|
tags: string[];
|
@@ -12618,7 +12618,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12618
12618
|
} & {
|
12619
12619
|
price?: number | null | undefined;
|
12620
12620
|
})[];
|
12621
|
-
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "
|
12621
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
12622
12622
|
depositUrl: any;
|
12623
12623
|
explorerAddress: string | undefined;
|
12624
12624
|
tags: string[];
|
@@ -1,7 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
/**
|
2
|
+
* @warning
|
3
|
+
* @dev This enum's order is important, do not change it unless you know what you are doing
|
4
|
+
*/
|
5
|
+
export declare enum Erc20SubType {
|
5
6
|
aura = "aura",
|
6
7
|
anglesLiquid = "anglesLiquid",
|
7
8
|
poolside = "poolside",
|
@@ -102,12 +103,3 @@ export declare enum tokenType {
|
|
102
103
|
sake_lending = "sake_lending",
|
103
104
|
gamma = "gamma"
|
104
105
|
}
|
105
|
-
export declare const tokenTypeToProtocolAndAction: Record<tokenType, {
|
106
|
-
protocol: ProtocolId | undefined;
|
107
|
-
action: OpportunityAction;
|
108
|
-
}>;
|
109
|
-
export type tokenTypeStruct = {
|
110
|
-
type: tokenType;
|
111
|
-
calls: CallDto[];
|
112
|
-
typeInfo: any;
|
113
|
-
};
|
@@ -0,0 +1,106 @@
|
|
1
|
+
/**
|
2
|
+
* @warning
|
3
|
+
* @dev This enum's order is important, do not change it unless you know what you are doing
|
4
|
+
*/
|
5
|
+
export var Erc20SubType;
|
6
|
+
(function (Erc20SubType) {
|
7
|
+
Erc20SubType["aura"] = "aura";
|
8
|
+
Erc20SubType["anglesLiquid"] = "anglesLiquid";
|
9
|
+
Erc20SubType["poolside"] = "poolside";
|
10
|
+
Erc20SubType["balancerGauge"] = "balancerGauge";
|
11
|
+
Erc20SubType["gearbox"] = "gearbox";
|
12
|
+
Erc20SubType["euler_borrow"] = "euler_borrow";
|
13
|
+
Erc20SubType["euler_lend"] = "euler_lend";
|
14
|
+
Erc20SubType["filament"] = "filament";
|
15
|
+
Erc20SubType["fluid"] = "fluid";
|
16
|
+
Erc20SubType["compound"] = "compound";
|
17
|
+
Erc20SubType["radiant_lend"] = "radiant_lend";
|
18
|
+
Erc20SubType["radiant_borrow"] = "radiant_borrow";
|
19
|
+
Erc20SubType["ionic"] = "ionic";
|
20
|
+
Erc20SubType["layerbank"] = "layerbank";
|
21
|
+
Erc20SubType["moonwell"] = "moonwell";
|
22
|
+
Erc20SubType["yei_borrowing"] = "yei_borrowing";
|
23
|
+
Erc20SubType["ironclad_borrowing"] = "ironclad_borrowing";
|
24
|
+
Erc20SubType["zerolend_borrowing"] = "zerolend_borrowing";
|
25
|
+
Erc20SubType["yei_lending"] = "yei_lending";
|
26
|
+
Erc20SubType["ironclad_lending"] = "ironclad_lending";
|
27
|
+
Erc20SubType["zerolend_lending"] = "zerolend_lending";
|
28
|
+
Erc20SubType["aave_borrowing"] = "aave_borrowing";
|
29
|
+
Erc20SubType["aave_lending"] = "aave_lending";
|
30
|
+
Erc20SubType["sturdy_aggregator"] = "sturdy_aggregator";
|
31
|
+
Erc20SubType["sturdy_silo"] = "sturdy_silo";
|
32
|
+
Erc20SubType["fraxlend"] = "fraxlend";
|
33
|
+
Erc20SubType["uniswapv2"] = "uniswapv2";
|
34
|
+
Erc20SubType["fenix"] = "fenix";
|
35
|
+
Erc20SubType["ra"] = "ra";
|
36
|
+
Erc20SubType["syncswap"] = "syncswap";
|
37
|
+
Erc20SubType["curve_2"] = "curve_2";
|
38
|
+
Erc20SubType["silostaking"] = "silostaking";
|
39
|
+
Erc20SubType["beefy"] = "beefy";
|
40
|
+
Erc20SubType["balancerPool"] = "balancerPool";
|
41
|
+
Erc20SubType["unknown"] = "unknown";
|
42
|
+
Erc20SubType["metamorpho"] = "metamorpho";
|
43
|
+
Erc20SubType["aerodrome"] = "aerodrome";
|
44
|
+
Erc20SubType["velodrome"] = "velodrome";
|
45
|
+
Erc20SubType["curve"] = "curve";
|
46
|
+
Erc20SubType["splice"] = "splice";
|
47
|
+
Erc20SubType["toros"] = "toros";
|
48
|
+
Erc20SubType["akron"] = "akron";
|
49
|
+
Erc20SubType["enzyme"] = "enzyme";
|
50
|
+
Erc20SubType["dragonswap"] = "dragonswap";
|
51
|
+
Erc20SubType["koi"] = "koi";
|
52
|
+
Erc20SubType["baseswap"] = "baseswap";
|
53
|
+
Erc20SubType["zkswap"] = "zkswap";
|
54
|
+
Erc20SubType["ironcladStaking"] = "ironcladStaking";
|
55
|
+
Erc20SubType["rfx_slv"] = "rfx_slv";
|
56
|
+
Erc20SubType["rfx"] = "rfx";
|
57
|
+
Erc20SubType["woofi"] = "woofi";
|
58
|
+
Erc20SubType["pendle"] = "pendle";
|
59
|
+
Erc20SubType["maverickBoostedPosition"] = "maverickBoostedPosition";
|
60
|
+
Erc20SubType["zkSwapThreePool"] = "zkSwapThreePool";
|
61
|
+
Erc20SubType["maha"] = "maha";
|
62
|
+
Erc20SubType["tempest"] = "tempest";
|
63
|
+
Erc20SubType["pendleYT"] = "pendleYT";
|
64
|
+
Erc20SubType["pancakeswap"] = "pancakeswap";
|
65
|
+
Erc20SubType["tempestStaking"] = "tempestStaking";
|
66
|
+
Erc20SubType["holdstation"] = "holdstation";
|
67
|
+
Erc20SubType["noLinkVault"] = "noLinkVault";
|
68
|
+
Erc20SubType["cpmmGamma"] = "cpmmGamma";
|
69
|
+
Erc20SubType["crosscurve"] = "crosscurve";
|
70
|
+
Erc20SubType["venus"] = "venus";
|
71
|
+
Erc20SubType["reactor_fusion"] = "reactor_fusion";
|
72
|
+
Erc20SubType["vicuna"] = "vicuna";
|
73
|
+
Erc20SubType["traderJoe"] = "traderJoe";
|
74
|
+
Erc20SubType["curveNPool"] = "curveNPool";
|
75
|
+
Erc20SubType["avalon_borrowing"] = "avalon_borrowing";
|
76
|
+
Erc20SubType["avalon_lending"] = "avalon_lending";
|
77
|
+
Erc20SubType["satlayer"] = "satlayer";
|
78
|
+
Erc20SubType["veda"] = "veda";
|
79
|
+
Erc20SubType["superlend_borrowing"] = "superlend_borrowing";
|
80
|
+
Erc20SubType["superlend_lending"] = "superlend_lending";
|
81
|
+
Erc20SubType["cian"] = "cian";
|
82
|
+
Erc20SubType["concrete"] = "concrete";
|
83
|
+
Erc20SubType["lendle_borrowing"] = "lendle_borrowing";
|
84
|
+
Erc20SubType["lendle_lending"] = "lendle_lending";
|
85
|
+
Erc20SubType["takotako_borrowing"] = "takotako_borrowing";
|
86
|
+
Erc20SubType["takotako_lending"] = "takotako_lending";
|
87
|
+
Erc20SubType["xlend_borrowing"] = "xlend_borrowing";
|
88
|
+
Erc20SubType["xlend_lending"] = "xlend_lending";
|
89
|
+
Erc20SubType["equalizer_gauge"] = "equalizer_gauge";
|
90
|
+
Erc20SubType["vicuna_lending"] = "vicuna_lending";
|
91
|
+
Erc20SubType["vicuna_borrowing"] = "vicuna_borrowing";
|
92
|
+
Erc20SubType["spectra_lpt"] = "spectra_lpt";
|
93
|
+
Erc20SubType["spectra_yt"] = "spectra_yt";
|
94
|
+
Erc20SubType["hourglass"] = "hourglass";
|
95
|
+
Erc20SubType["katana"] = "katana";
|
96
|
+
Erc20SubType["balancerV3"] = "balancerV3";
|
97
|
+
Erc20SubType["hanji_liquidity_vault_token"] = "hanji_liquidity_vault_token";
|
98
|
+
Erc20SubType["xU308"] = "xU308";
|
99
|
+
Erc20SubType["bunniV2"] = "bunniV2";
|
100
|
+
Erc20SubType["beratrax_vault"] = "beratrax_vault";
|
101
|
+
Erc20SubType["beraborrow_gauge"] = "beraborrow_gauge";
|
102
|
+
Erc20SubType["curve_gauge"] = "curve_gauge";
|
103
|
+
Erc20SubType["sake_borrowing"] = "sake_borrowing";
|
104
|
+
Erc20SubType["sake_lending"] = "sake_lending";
|
105
|
+
Erc20SubType["gamma"] = "gamma";
|
106
|
+
})(Erc20SubType || (Erc20SubType = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/campaignTVL/implementations/Erc20/Erc20SubType";
|
2
|
+
import type { CampaignParameters, MerklChainId } from "@sdk";
|
3
|
+
import type { Erc20LikeCampaignEnum } from ".";
|
4
|
+
/**
|
5
|
+
* @notice Compute the subtypes of the campaigns
|
6
|
+
* @warning
|
7
|
+
* @dev This function should return an array of length campaigns.length
|
8
|
+
*/
|
9
|
+
export declare const computeSubTypes: (chainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]) => Promise<Erc20SubType[]>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* @notice Compute the subtypes of the campaigns
|
3
|
+
* @warning
|
4
|
+
* @dev This function should return an array of length campaigns.length
|
5
|
+
*/
|
6
|
+
export const computeSubTypes = async (chainId, campaigns) => {
|
7
|
+
const res = [];
|
8
|
+
if (res.length !== campaigns.length)
|
9
|
+
throw new Error("computeSubTypes: res.length !== campaigns.length");
|
10
|
+
return [];
|
11
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { Campaign, CampaignParameters, MerklChainId } from "@sdk";
|
2
|
+
import type { CampaignTVLBuilder, TVLData } from "../../interface";
|
3
|
+
export type Erc20LikeCampaignEnum = Campaign.ERC20 | Campaign.ERC20LOGPROCESSOR | Campaign.ERC20REBASELOGPROCESSOR | Campaign.EULER | Campaign.ERC20_FIX_APR;
|
4
|
+
export declare class Erc20CampaignTVLBuilder implements CampaignTVLBuilder<Erc20LikeCampaignEnum> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData>;
|
6
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import type { Erc20LikeCampaignEnum } from "@/engine/campaignTVL/implementations/Erc20";
|
2
|
+
import { type CampaignParameters, type MerklChainId } from "@sdk";
|
2
3
|
import type { DynamicDataBuilder } from "../interface";
|
3
|
-
export
|
4
|
-
|
5
|
-
build(chainId: MerklChainId, campaigns: CampaignParameters<ERC20SupportedCampaignType>[]): Promise<any[]>;
|
4
|
+
export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCampaignEnum> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<any[]>;
|
6
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Erc20SubType } from "@/engine/campaignTVL/implementations/Erc20/Erc20SubType";
|
2
2
|
import { getTokenPricesInfo } from "@/engine/erc20SubTypeProcessors/subtypesPrices";
|
3
3
|
import { getTokenTypeRound1 } from "@/engine/erc20SubTypeProcessors/subtypesRound1";
|
4
4
|
import { getTokenTypeRound2 } from "@/engine/erc20SubTypeProcessors/subtypesRound2";
|
@@ -19,7 +19,7 @@ export class Erc20DynamicData {
|
|
19
19
|
const tokenTypesByCampaign = {};
|
20
20
|
for (const campaign of campaigns) {
|
21
21
|
const typeStruct = {
|
22
|
-
type:
|
22
|
+
type: Erc20SubType.unknown,
|
23
23
|
calls: [],
|
24
24
|
typeInfo: {},
|
25
25
|
};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type CallDto, type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type {
|
4
|
-
import
|
3
|
+
import type { Erc20LikeCampaignEnum } from "../campaignTVL/implementations/Erc20";
|
4
|
+
import type { Erc20SubType } from "../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
|
+
import type { tokenTypeStruct } from "./tokenTypeStruct";
|
5
6
|
export declare enum Round {
|
6
7
|
one = "round1",
|
7
8
|
two = "round2",
|
@@ -16,7 +17,7 @@ export type callType = {
|
|
16
17
|
optional?: boolean;
|
17
18
|
};
|
18
19
|
export type mandatoryCallKeys = {
|
19
|
-
type:
|
20
|
+
type: Erc20SubType;
|
20
21
|
protocol: string;
|
21
22
|
tokenAddress: string;
|
22
23
|
blacklistedSupply: string;
|
@@ -42,7 +43,7 @@ export type dataRaw = {
|
|
42
43
|
} & stakingKeys;
|
43
44
|
export type dataType = {
|
44
45
|
protocol: string;
|
45
|
-
type:
|
46
|
+
type: Erc20SubType;
|
46
47
|
tokenAddress: string;
|
47
48
|
totalSupply: number;
|
48
49
|
blacklistedSupply: number;
|
@@ -77,7 +78,7 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
|
|
77
78
|
};
|
78
79
|
debug: boolean;
|
79
80
|
processingRound1(_typeInfo: DataRaw): void;
|
80
|
-
processingRound2(_typeInfo: DataRaw, _campaign?: CampaignParameters<
|
81
|
+
processingRound2(_typeInfo: DataRaw, _campaign?: CampaignParameters<Erc20LikeCampaignEnum>): void;
|
81
82
|
processingRound3(_typeInfo: DataRaw): void;
|
82
83
|
processingRound4(_typeInfo: DataRaw): void;
|
83
84
|
handleWhiteListBlacklistRound5(typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): {
|
@@ -85,19 +86,19 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
|
|
85
86
|
totalSupply: any;
|
86
87
|
blacklistedSupply: any;
|
87
88
|
};
|
88
|
-
processingRound5(_index: number, type:
|
89
|
-
computeRound1(type:
|
90
|
-
computeRound2(index: number, type:
|
91
|
-
computeRound3(index: number, type:
|
92
|
-
computeRound4(index: number, type:
|
93
|
-
computeRound5(index: number, type:
|
94
|
-
generateWhitelistCall(type:
|
95
|
-
generateBlackListCall(type:
|
89
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: DataRaw, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<Output>;
|
90
|
+
computeRound1(type: Erc20SubType, typeInfo: DataRaw): tokenTypeStruct;
|
91
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign?: CampaignParameters<Erc20LikeCampaignEnum>): tokenTypeStruct;
|
92
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
93
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Erc20LikeCampaignEnum>): tokenTypeStruct;
|
94
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Erc20LikeCampaignEnum>, pricer: Pricer): Promise<tokenTypeStruct>;
|
95
|
+
generateWhitelistCall(type: Erc20SubType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): CallDto[];
|
96
|
+
generateBlackListCall(type: Erc20SubType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): CallDto[];
|
96
97
|
decodeListedSupply(index: number, list: string[], calls: string[]): string;
|
97
|
-
decodeRound(round: callType[], index: number, calls: string[], type:
|
98
|
-
decodePreviousRound(round: Round, calls: string[], data: DataRaw, type:
|
99
|
-
decodePreviousStakingRound(round: Round, calls: string[], data: DataRaw, type:
|
100
|
-
encodeRound(round: callType[], callInfo: Input, type:
|
101
|
-
encodeNextRound(round: Round, type:
|
102
|
-
encodeStakingNextRound(round: Round, type:
|
98
|
+
decodeRound(round: callType[], index: number, calls: string[], type: Erc20SubType, data: DataRaw): void;
|
99
|
+
decodePreviousRound(round: Round, calls: string[], data: DataRaw, type: Erc20SubType, index: number): void;
|
100
|
+
decodePreviousStakingRound(round: Round, calls: string[], data: DataRaw, type: Erc20SubType, index: number): void;
|
101
|
+
encodeRound(round: callType[], callInfo: Input, type: Erc20SubType): CallDto[];
|
102
|
+
encodeNextRound(round: Round, type: Erc20SubType, data: DataRaw): CallDto[];
|
103
|
+
encodeStakingNextRound(round: Round, type: Erc20SubType, data: DataRaw): CallDto[];
|
103
104
|
}
|
@@ -2,9 +2,8 @@ import { TokenService } from "@/modules/v4/token/token.service";
|
|
2
2
|
import { decodeCall } from "@/utils/decodeCalls";
|
3
3
|
import { createCall } from "@/utils/encodeCalls";
|
4
4
|
import { generateCardName } from "@/utils/generateCardName";
|
5
|
-
import { generateIcons } from "@/utils/generateIcons";
|
6
5
|
import { BN2Number } from "@sdk";
|
7
|
-
import { tokenTypeToProtocolAndAction } from "./
|
6
|
+
import { tokenTypeToProtocolAndAction } from "./tokenTypeToProtocolAndAction";
|
8
7
|
export var Round;
|
9
8
|
(function (Round) {
|
10
9
|
Round["one"] = "round1";
|
@@ -186,7 +185,6 @@ export class GenericProcessor {
|
|
186
185
|
calls: [],
|
187
186
|
typeInfo: {
|
188
187
|
...outputInfo,
|
189
|
-
icons: generateIcons(type, typeInfo, campaign),
|
190
188
|
},
|
191
189
|
});
|
192
190
|
}
|
@@ -195,7 +193,6 @@ export class GenericProcessor {
|
|
195
193
|
calls: [],
|
196
194
|
typeInfo: {
|
197
195
|
...outputInfo,
|
198
|
-
icons: generateIcons(type, typeInfo, campaign),
|
199
196
|
},
|
200
197
|
};
|
201
198
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export declare function getTypeFromFactoryAddress(address: string):
|
1
|
+
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
2
|
+
export declare function getTypeFromFactoryAddress(address: string): Erc20SubType;
|
3
3
|
export declare const enzymeFundValueCalculatorRouterMapping: {
|
4
4
|
[address: string]: string;
|
5
5
|
};
|