@merkl/api 0.20.101 → 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.
Files changed (101) hide show
  1. package/dist/src/eden/index.d.ts +12 -12
  2. package/dist/src/engine/{erc20SubTypeProcessors/helpers/tokenType.d.ts → campaignTVL/implementations/Erc20/Erc20SubType.d.ts} +5 -13
  3. package/dist/src/engine/campaignTVL/implementations/Erc20/Erc20SubType.js +106 -0
  4. package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.d.ts +9 -0
  5. package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.js +11 -0
  6. package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +6 -0
  7. package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +8 -0
  8. package/dist/src/engine/dynamicData/implementations/Erc20.d.ts +4 -4
  9. package/dist/src/engine/dynamicData/implementations/Erc20.js +2 -2
  10. package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +20 -19
  11. package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.js +1 -1
  12. package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +2 -2
  13. package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.js +31 -31
  14. package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
  15. package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.js +17 -17
  16. package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -2
  17. package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.js +6 -6
  18. package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +2 -2
  19. package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +7 -7
  20. package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
  21. package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.js +2 -2
  22. package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +40 -3
  23. package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +32 -3
  24. package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +2 -2
  25. package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +29 -3
  26. package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +31 -3
  27. package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
  28. package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
  29. package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
  30. package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
  31. package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
  32. package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
  33. package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
  34. package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
  35. package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
  36. package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
  37. package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
  38. package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.js +2 -2
  39. package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
  40. package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +7 -7
  41. package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
  42. package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -4
  43. package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
  44. package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
  45. package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
  46. package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
  47. package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +7 -7
  48. package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +2 -2
  49. package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
  50. package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
  51. package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
  52. package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
  53. package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
  54. package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
  55. package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
  56. package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
  57. package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
  58. package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
  59. package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +2 -2
  60. package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +7 -7
  61. package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
  62. package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
  63. package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
  64. package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
  65. package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
  66. package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -4
  67. package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
  68. package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.js +2 -2
  69. package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.d.ts +2 -2
  70. package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.js +100 -100
  71. package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
  72. package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +2 -2
  73. package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
  74. package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -2
  75. package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.js +2 -2
  76. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
  77. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +84 -84
  78. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -3
  79. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
  80. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
  81. package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
  82. package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.js +1 -0
  83. package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
  84. package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +130 -0
  85. package/dist/src/engine/opportunityMetadata/implementations/{Erc20.d.ts → Erc20/index.d.ts} +1 -1
  86. package/dist/src/engine/opportunityMetadata/implementations/{Erc20.js → Erc20/index.js} +1 -1
  87. package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +2 -2
  88. package/dist/src/index.d.ts +4 -4
  89. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
  90. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  91. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
  92. package/dist/src/modules/v4/router.d.ts +4 -4
  93. package/dist/src/utils/decodeCalls.d.ts +3 -3
  94. package/dist/src/utils/decodeCalls.js +80 -80
  95. package/dist/src/utils/encodeCalls.d.ts +2 -2
  96. package/dist/src/utils/encodeCalls.js +77 -77
  97. package/dist/src/utils/generateCardName.d.ts +2 -2
  98. package/dist/src/utils/generateCardName.js +97 -97
  99. package/dist/tsconfig.package.tsbuildinfo +1 -1
  100. package/package.json +1 -1
  101. package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.js +0 -232
@@ -1,40 +1,40 @@
1
- import { tokenType } from "./tokenType";
1
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
2
2
  const factoryAddresses = {
3
- "0x420DD381b31aEf6683db6B902084cB0FFECe40Da": tokenType.aerodrome, // Aerodrome Base Factory
4
- "0x31832f2a97Fd20664D76Cc421207669b55CE4BC0": tokenType.velodrome, // Velodrome Mode Factory
5
- "0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F": tokenType.curve, // Curve Factory Fraxtal
6
- "0xc6C09471Ee39C7E30a067952FcC89c8922f9Ab53": tokenType.curve, // Curve Optimism Factory
7
- "0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F": tokenType.curve, // Curve Mainnet Factory
8
- "0x9e6d12097339ddd5402FDD39fc0Ef86Eec54AB39": tokenType.splice, // Splice Mode Factory
9
- "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F": tokenType.toros, // Toros Base Factory
10
- "0xAf39606bec181887951Ab6912Ac7EA216Bd6E4B4": tokenType.akron, // Akron Arbitrum Factory
11
- "0xC3DC853dD716bd5754f421ef94fdCbac3902ab32": tokenType.enzyme, // Enzyme ETH Factory
12
- "0x2e25271297537B8124b8f883a92fFd95C4032733": tokenType.enzyme, // Enzyme Polygon Factory
13
- "0x71f6b49ae1558357bBb5A6074f1143c46cBcA03d": tokenType.dragonswap, // DragonSwap SEI Factory
14
- "0x40be1cBa6C5B47cDF9da7f963B6F761F4C60627D": tokenType.koi, // Silo Staking Factory
15
- "0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB": tokenType.baseswap, // Poolside Factory
16
- "0xa19C51D91891D3DF7C13Ed22a2f89d328A82950f": tokenType.fenix, // Fenix Factory
17
- "0x3a76e377ED58c8731F9DF3A36155942438744Ce3": tokenType.zkswap, // ZKSwap Factory
18
- "0x6fcf753f2C67b83f7B09746Bbc4FA0047b35D050": tokenType.pendle, // Pendle Factory
19
- "0x35A338522a435D46f77Be32C70E215B813D0e3aC": tokenType.pendleYT, // Pendle YT Factory
20
- "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73": tokenType.pancakeswap, // PancakeSwap Factory BNB
21
- "0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD": tokenType.pendleYT, // Pendle YT Factory
22
- "0x0582D93FD9c9d42f26bE5D86a5f75291F92102C2": tokenType.pendleYT, // Pendle Factory
23
- "0xFeE31A6eC6eBefa0b5A594Bf5b1139e3c6fAA0fB": tokenType.pendle, // Pendle Factory
24
- "0xFD513630F697A9C1731F196185fb9ebA6eAAc20B": tokenType.cpmmGamma, // CPMMGAMMA Factory
25
- "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10": tokenType.traderJoe, // Trader Joe Factory
26
- "0x5Ea9DD3b6f042A34Df818C6c1324BC5A7c61427a": tokenType.curve, // Curve Corn 2crypto Factory
27
- "0xd7E72f3615aa65b92A4DBdC211E296a35512988B": tokenType.curveNPool, // Curve Corn Stableswap Factory
28
- "0x7Ca46A636b02D4aBC66883D7FF164bDE506DC66a": tokenType.curveNPool, // Curve Corn 3crypto Factory
29
- "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8": tokenType.curveNPool, // Curve Arbitrum 3crypto Factory
30
- "0xA5961898870943c68037F6848d2D866Ed2016bcB": tokenType.curveNPool, // Curve Base
31
- "0xB255D6A720BB7c39fee173cE22113397119cB930": tokenType.katana, // Katana Ronin
3
+ "0x420DD381b31aEf6683db6B902084cB0FFECe40Da": Erc20SubType.aerodrome, // Aerodrome Base Factory
4
+ "0x31832f2a97Fd20664D76Cc421207669b55CE4BC0": Erc20SubType.velodrome, // Velodrome Mode Factory
5
+ "0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F": Erc20SubType.curve, // Curve Factory Fraxtal
6
+ "0xc6C09471Ee39C7E30a067952FcC89c8922f9Ab53": Erc20SubType.curve, // Curve Optimism Factory
7
+ "0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F": Erc20SubType.curve, // Curve Mainnet Factory
8
+ "0x9e6d12097339ddd5402FDD39fc0Ef86Eec54AB39": Erc20SubType.splice, // Splice Mode Factory
9
+ "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F": Erc20SubType.toros, // Toros Base Factory
10
+ "0xAf39606bec181887951Ab6912Ac7EA216Bd6E4B4": Erc20SubType.akron, // Akron Arbitrum Factory
11
+ "0xC3DC853dD716bd5754f421ef94fdCbac3902ab32": Erc20SubType.enzyme, // Enzyme ETH Factory
12
+ "0x2e25271297537B8124b8f883a92fFd95C4032733": Erc20SubType.enzyme, // Enzyme Polygon Factory
13
+ "0x71f6b49ae1558357bBb5A6074f1143c46cBcA03d": Erc20SubType.dragonswap, // DragonSwap SEI Factory
14
+ "0x40be1cBa6C5B47cDF9da7f963B6F761F4C60627D": Erc20SubType.koi, // Silo Staking Factory
15
+ "0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB": Erc20SubType.baseswap, // Poolside Factory
16
+ "0xa19C51D91891D3DF7C13Ed22a2f89d328A82950f": Erc20SubType.fenix, // Fenix Factory
17
+ "0x3a76e377ED58c8731F9DF3A36155942438744Ce3": Erc20SubType.zkswap, // ZKSwap Factory
18
+ "0x6fcf753f2C67b83f7B09746Bbc4FA0047b35D050": Erc20SubType.pendle, // Pendle Factory
19
+ "0x35A338522a435D46f77Be32C70E215B813D0e3aC": Erc20SubType.pendleYT, // Pendle YT Factory
20
+ "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73": Erc20SubType.pancakeswap, // PancakeSwap Factory BNB
21
+ "0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD": Erc20SubType.pendleYT, // Pendle YT Factory
22
+ "0x0582D93FD9c9d42f26bE5D86a5f75291F92102C2": Erc20SubType.pendleYT, // Pendle Factory
23
+ "0xFeE31A6eC6eBefa0b5A594Bf5b1139e3c6fAA0fB": Erc20SubType.pendle, // Pendle Factory
24
+ "0xFD513630F697A9C1731F196185fb9ebA6eAAc20B": Erc20SubType.cpmmGamma, // CPMMGAMMA Factory
25
+ "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10": Erc20SubType.traderJoe, // Trader Joe Factory
26
+ "0x5Ea9DD3b6f042A34Df818C6c1324BC5A7c61427a": Erc20SubType.curve, // Curve Corn 2crypto Factory
27
+ "0xd7E72f3615aa65b92A4DBdC211E296a35512988B": Erc20SubType.curveNPool, // Curve Corn Stableswap Factory
28
+ "0x7Ca46A636b02D4aBC66883D7FF164bDE506DC66a": Erc20SubType.curveNPool, // Curve Corn 3crypto Factory
29
+ "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8": Erc20SubType.curveNPool, // Curve Arbitrum 3crypto Factory
30
+ "0xA5961898870943c68037F6848d2D866Ed2016bcB": Erc20SubType.curveNPool, // Curve Base
31
+ "0xB255D6A720BB7c39fee173cE22113397119cB930": Erc20SubType.katana, // Katana Ronin
32
32
  };
33
33
  export function getTypeFromFactoryAddress(address) {
34
34
  if (factoryAddresses[address]) {
35
35
  return factoryAddresses[address];
36
36
  }
37
- return tokenType.unknown;
37
+ return Erc20SubType.unknown;
38
38
  }
39
39
  // Mapping of dispatcher to fund value calculator for enzyme
40
40
  export const enzymeFundValueCalculatorRouterMapping = {
@@ -1,3 +1,3 @@
1
1
  import { ChainId } from "@sdk";
2
- import { tokenType } from "./tokenType";
3
- export declare function getTypeFromAddressChain(chain: ChainId, token: string): tokenType;
2
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
+ export declare function getTypeFromAddressChain(chain: ChainId, token: string): Erc20SubType;
@@ -1,30 +1,30 @@
1
1
  import { ChainId } from "@sdk";
2
- import { tokenType } from "./tokenType";
2
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
3
  const chainAddressToType = {
4
4
  [ChainId.CORN]: {
5
- "0xab3291b73a1087265e126e330cede0cfd4b8a693": tokenType.curveNPool,
6
- "0xf024586aacaf91fc4f77468fa758df280b2c9cd4": tokenType.curveNPool,
7
- "0x29c1b0baa9ac0182cf9f6ffceaf143f3ef3546a0": tokenType.curveNPool,
8
- "0xebe423b5466f9675669b2a4521b6e9f852dd1f52": tokenType.curveNPool,
9
- "0xb27d447cf1d211ca60676728ac28060ecfb90800": tokenType.curveNPool,
5
+ "0xab3291b73a1087265e126e330cede0cfd4b8a693": Erc20SubType.curveNPool,
6
+ "0xf024586aacaf91fc4f77468fa758df280b2c9cd4": Erc20SubType.curveNPool,
7
+ "0x29c1b0baa9ac0182cf9f6ffceaf143f3ef3546a0": Erc20SubType.curveNPool,
8
+ "0xebe423b5466f9675669b2a4521b6e9f852dd1f52": Erc20SubType.curveNPool,
9
+ "0xb27d447cf1d211ca60676728ac28060ecfb90800": Erc20SubType.curveNPool,
10
10
  },
11
11
  [ChainId.MAINNET]: {
12
- "0x08c6F91e2B681FaF5e17227F2a44C307b3C1364C": tokenType.veda,
13
- "0x5401b8620E5FB570064CA9114fd1e135fd77D57c": tokenType.veda,
14
- "0xFE0C961A49E1aEe2AE2d842fE40157365C6d978f": tokenType.veda,
15
- "0x42A03534DBe07077d705311854E3B6933dD6Af85": tokenType.veda,
16
- "0x352180974C71f84a934953Cf49C4E538a6F9c997": tokenType.veda,
17
- "0xeDa663610638E6557c27e2f4e973D3393e844E70": tokenType.veda,
18
- "0xf0bb20865277aBd641a307eCe5Ee04E79073416C": tokenType.veda,
19
- "0xFF94993fA7EA27Efc943645F95Adb36C1b81244b": tokenType.gearbox,
12
+ "0x08c6F91e2B681FaF5e17227F2a44C307b3C1364C": Erc20SubType.veda,
13
+ "0x5401b8620E5FB570064CA9114fd1e135fd77D57c": Erc20SubType.veda,
14
+ "0xFE0C961A49E1aEe2AE2d842fE40157365C6d978f": Erc20SubType.veda,
15
+ "0x42A03534DBe07077d705311854E3B6933dD6Af85": Erc20SubType.veda,
16
+ "0x352180974C71f84a934953Cf49C4E538a6F9c997": Erc20SubType.veda,
17
+ "0xeDa663610638E6557c27e2f4e973D3393e844E70": Erc20SubType.veda,
18
+ "0xf0bb20865277aBd641a307eCe5Ee04E79073416C": Erc20SubType.veda,
19
+ "0xFF94993fA7EA27Efc943645F95Adb36C1b81244b": Erc20SubType.gearbox,
20
20
  },
21
21
  [ChainId.BOB]: {
22
- "0x9998e05030Aee3Af9AD3df35A34F5C51e1628779": tokenType.veda,
22
+ "0x9998e05030Aee3Af9AD3df35A34F5C51e1628779": Erc20SubType.veda,
23
23
  },
24
24
  [ChainId.ETHERLINK]: {
25
- "0x79052Ab3C166D4899a1e0DD033aC3b379AF0B1fD": tokenType.xU308,
25
+ "0x79052Ab3C166D4899a1e0DD033aC3b379AF0B1fD": Erc20SubType.xU308,
26
26
  },
27
27
  };
28
28
  export function getTypeFromAddressChain(chain, token) {
29
- return chainAddressToType?.[chain]?.[token] ?? tokenType.unknown;
29
+ return chainAddressToType?.[chain]?.[token] ?? Erc20SubType.unknown;
30
30
  }
@@ -1,2 +1,2 @@
1
- import { tokenType } from "./tokenType";
2
- export declare function getTypeFromOwnerAddress(address: string): tokenType;
1
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
2
+ export declare function getTypeFromOwnerAddress(address: string): Erc20SubType;
@@ -1,13 +1,13 @@
1
- import { tokenType } from "./tokenType";
1
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
2
2
  const ownerAddresses = {
3
- "0xbF7E49483881C76487b0989CD7d9A8239B20CA41": tokenType.curve_2,
4
- "0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": tokenType.satlayer,
5
- "0x4C911bf7A008C497719CBEb1a376f1cEc9e2c1d6": tokenType.hanji_liquidity_vault_token,
6
- "0x6e9d701fB6478Ed5972a37886C2BA6C82a4cBb4C": tokenType.gamma, // Gamma Bob owner
3
+ "0xbF7E49483881C76487b0989CD7d9A8239B20CA41": Erc20SubType.curve_2,
4
+ "0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": Erc20SubType.satlayer,
5
+ "0x4C911bf7A008C497719CBEb1a376f1cEc9e2c1d6": Erc20SubType.hanji_liquidity_vault_token,
6
+ "0x6e9d701fB6478Ed5972a37886C2BA6C82a4cBb4C": Erc20SubType.gamma, // Gamma Bob owner
7
7
  };
8
8
  export function getTypeFromOwnerAddress(address) {
9
9
  if (ownerAddresses[address]) {
10
10
  return ownerAddresses[address];
11
11
  }
12
- return tokenType.unknown;
12
+ return Erc20SubType.unknown;
13
13
  }
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawAave;
7
7
  call: string;
@@ -25,6 +25,6 @@ export declare class AaveProcessor extends GenericProcessor<callKeysAave, dataRa
25
25
  round3: callType[];
26
26
  round4: callType[];
27
27
  };
28
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawAave, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
28
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAave, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
29
29
  }
30
30
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawAnglesLiquid;
7
7
  call: string;
@@ -25,11 +25,11 @@ export declare class AnglesLiquidProcessor extends GenericProcessor<callKeysAngl
25
25
  round3: callType[];
26
26
  round4: callType[];
27
27
  };
28
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawAnglesLiquid, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAnglesLiquid>;
29
- computeRound1(type: tokenType, typeInfo: dataRawAnglesLiquid): tokenTypeStruct;
30
- computeRound2(index: number, type: tokenType, typeInfo: dataRawAnglesLiquid, calls: string[]): tokenTypeStruct;
31
- computeRound3(index: number, type: tokenType, typeInfo: dataRawAnglesLiquid, calls: string[]): tokenTypeStruct;
32
- computeRound4(index: number, type: tokenType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
33
- computeRound5(index: number, type: tokenType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
28
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAnglesLiquid>;
29
+ computeRound1(type: Erc20SubType, typeInfo: dataRawAnglesLiquid): import("../tokenTypeStruct").tokenTypeStruct;
30
+ computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
31
+ computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
32
+ computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
33
+ computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
34
34
  }
35
35
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawAsset;
7
7
  call: string;
@@ -30,6 +30,6 @@ export declare class AssetProcessor extends GenericProcessor<callKeysAsset, data
30
30
  round4: callType[];
31
31
  };
32
32
  processingRound2(typeInfo: dataRawAsset): void;
33
- processingRound5(index: number, type: tokenType, typeInfo: dataRawAsset, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAsset>;
33
+ processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawAsset, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAsset>;
34
34
  }
35
35
  export {};
@@ -1,7 +1,7 @@
1
1
  import { generateCardName } from "@/utils/generateCardName";
2
2
  import { BN2Number } from "@sdk";
3
+ import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor } from "../GenericProcessor";
4
- import { tokenType } from "../helpers/tokenType";
5
5
  export class AssetProcessor extends GenericProcessor {
6
6
  rounds = {
7
7
  round1: [
@@ -25,7 +25,7 @@ export class AssetProcessor extends GenericProcessor {
25
25
  async processingRound5(index, type, typeInfo, calls, campaign, pricer) {
26
26
  const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
27
27
  let exchangeRate = BN2Number(typeInfo.exchangeRate);
28
- if (type === tokenType.moonwell || type === tokenType.venus) {
28
+ if (type === Erc20SubType.moonwell || type === Erc20SubType.venus) {
29
29
  exchangeRate =
30
30
  exchangeRate /
31
31
  10 ** (Number(typeInfo.decimalsUnderlyingToken) - campaign.campaignParameters.decimalsTargetToken);
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { BigNumber } from "ethers";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawAura;
8
8
  call: string;
@@ -64,7 +64,44 @@ export declare class AuraProcessor extends GenericProcessor<callKeysAura, dataRa
64
64
  round4: callType[];
65
65
  };
66
66
  processingRound4(typeInfo: dataRawAura): void;
67
- processingRound5(index: number, type: tokenType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAura>;
68
- computeRound4(index: number, type: tokenType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
67
+ processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAura>;
68
+ computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawAura, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
69
+ type: Erc20SubType;
70
+ calls: CallDto[];
71
+ typeInfo: {
72
+ type: Erc20SubType;
73
+ protocol: string;
74
+ tokenAddress: string;
75
+ blacklistedSupply: string;
76
+ totalSupply: string;
77
+ whitelistedSupply: string;
78
+ lockNFT: string;
79
+ eip712DomainName: string;
80
+ stakingName: string;
81
+ stakingSymbol: string;
82
+ isStaking: string;
83
+ balancerPool: string;
84
+ vault: string;
85
+ auraOperator: string;
86
+ poolId: string;
87
+ totalSupplyBalancerPool: string;
88
+ gaugeContract: string;
89
+ auraStaker: string;
90
+ totalSupplyGauge: string;
91
+ pid: string;
92
+ gaugeBalance: string;
93
+ auraBalance: string;
94
+ vaultBalance: string;
95
+ poolTokensRaw: Array<string[] | BigNumber[]>;
96
+ poolTokens: Array<{
97
+ token: string;
98
+ balance: string;
99
+ amountInPool: number;
100
+ symbol: string;
101
+ decimals: number;
102
+ price: number;
103
+ }>;
104
+ };
105
+ };
69
106
  }
70
107
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { BigNumber } from "ethers";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawBG;
8
8
  call: string;
@@ -50,7 +50,36 @@ export declare class BEXRewardGaugeProcessor extends GenericProcessor<callKeysBG
50
50
  };
51
51
  processingRound2(typeInfo: dataRawBG): void;
52
52
  processingRound4(typeInfo: dataRawBG): void;
53
- processingRound5(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
54
- computeRound4(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
53
+ processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
54
+ computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
55
+ type: Erc20SubType;
56
+ calls: CallDto[];
57
+ typeInfo: {
58
+ type: Erc20SubType;
59
+ protocol: string;
60
+ tokenAddress: string;
61
+ blacklistedSupply: string;
62
+ totalSupply: string;
63
+ whitelistedSupply: string;
64
+ lockNFT: string;
65
+ eip712DomainName: string;
66
+ stakingName: string;
67
+ stakingSymbol: string;
68
+ isStaking: string;
69
+ gyroscopeToken: string;
70
+ balanceUnderlyingPoolTokens: string;
71
+ totalSupplyUnderlyingPoolTokens: string;
72
+ poolId: string;
73
+ vault: string;
74
+ vaultBalance: string;
75
+ poolHolder: string;
76
+ poolTokensRaw: Array<string[] | BigNumber[]>;
77
+ poolTokens: Array<{
78
+ token: string;
79
+ balance: string;
80
+ }>;
81
+ poolHolderBalance: string;
82
+ };
83
+ };
55
84
  }
56
85
  export {};
@@ -58,11 +58,11 @@ export class BEXRewardGaugeProcessor extends GenericProcessor {
58
58
  tokensDisplay.push({ symbol: symbol, address: poolToken.token });
59
59
  }
60
60
  let adjustedPoolTotalSupply = BN2Number(typeInfo.totalSupplyUnderlyingPoolTokens, 18);
61
- // if (type === tokenType.beratrax_vault) {
61
+ // if (type === Erc20SubType.beratrax_vault) {
62
62
  // // Weird edge case where a lot of the supply is in a weird contract
63
63
  // adjustedPoolTotalSupply -= BN2Number(typeInfo.poolHolderBalance, 18);
64
64
  // }
65
- // if (type === tokenType.beraborrow_gauge) {
65
+ // if (type === Erc20SubType.beraborrow_gauge) {
66
66
  // Remove tokens in the vault from the total supply
67
67
  adjustedPoolTotalSupply -= BN2Number(typeInfo.vaultBalance, 18);
68
68
  let percentageOfSupplyUnderlyingPoolTokens = 1;
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { BigNumber } from "ethers";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawBG;
8
8
  call: string;
@@ -43,7 +43,33 @@ export declare class BalancerGaugeProcessor extends GenericProcessor<callKeysBG,
43
43
  round4: callType[];
44
44
  };
45
45
  processingRound4(typeInfo: dataRawBG): void;
46
- processingRound5(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
47
- computeRound4(index: number, type: tokenType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
46
+ processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBG>;
47
+ computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBG, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
48
+ type: Erc20SubType;
49
+ calls: CallDto[];
50
+ typeInfo: {
51
+ type: Erc20SubType;
52
+ protocol: string;
53
+ tokenAddress: string;
54
+ blacklistedSupply: string;
55
+ totalSupply: string;
56
+ whitelistedSupply: string;
57
+ lockNFT: string;
58
+ eip712DomainName: string;
59
+ stakingName: string;
60
+ stakingSymbol: string;
61
+ isStaking: string;
62
+ gyroscopeToken: string;
63
+ balanceUnderlyingPoolTokens: string;
64
+ totalSupplyUnderlyingPoolTokens: string;
65
+ poolId: string;
66
+ vault: string;
67
+ poolTokensRaw: Array<string[] | BigNumber[]>;
68
+ poolTokens: Array<{
69
+ token: string;
70
+ balance: string;
71
+ }>;
72
+ };
73
+ };
48
74
  }
49
75
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import { BigNumber } from "ethers";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawBP;
8
8
  call: string;
@@ -53,8 +53,36 @@ export declare class BalancerPoolProcessor extends GenericProcessor<callKeysBP,
53
53
  round3: callType[];
54
54
  round4: callType[];
55
55
  };
56
- processingRound5(index: number, type: tokenType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBP>;
56
+ processingRound5(index: number, type: Erc20SubType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBP>;
57
57
  processingRound4(typeInfo: dataRawBP): void;
58
- computeRound4(index: number, type: tokenType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
58
+ computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawBP, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): {
59
+ type: Erc20SubType;
60
+ calls: CallDto[];
61
+ typeInfo: {
62
+ type: Erc20SubType;
63
+ protocol: string;
64
+ tokenAddress: string;
65
+ blacklistedSupply: string;
66
+ totalSupply: string;
67
+ whitelistedSupply: string;
68
+ lockNFT: string;
69
+ eip712DomainName: string;
70
+ stakingName: string;
71
+ stakingSymbol: string;
72
+ isStaking: string;
73
+ poolId: string;
74
+ vault: string;
75
+ vaultBalance: string;
76
+ poolTokensRaw: Array<string[] | BigNumber[]>;
77
+ poolTokens: Array<{
78
+ token: string;
79
+ balance: string;
80
+ amountInPool: number;
81
+ symbol: string;
82
+ decimals: number;
83
+ price: number;
84
+ }>;
85
+ };
86
+ };
59
87
  }
60
88
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { BigNumber } from "ethers";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawBalancerV3;
8
8
  call: string;
@@ -38,7 +38,7 @@ export declare class BalancerV3PoolProcessor extends GenericProcessor<callKeysBa
38
38
  round4: callType[];
39
39
  };
40
40
  processingRound2(typeInfo: dataRawBalancerV3): void;
41
- computeRound3(index: number, type: tokenType, typeInfo: dataRawBalancerV3, calls: string[]): tokenTypeStruct;
42
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawBalancerV3, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBalancerV3>;
41
+ computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawBalancerV3, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
42
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBalancerV3, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBalancerV3>;
43
43
  }
44
44
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawBeefy;
7
7
  call: string;
@@ -43,6 +43,6 @@ export declare class BeefyProcessor extends GenericProcessor<callKeysBeefy, data
43
43
  round3: callType[];
44
44
  round4: callType[];
45
45
  };
46
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawBeefy, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
46
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBeefy, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBeefy>;
47
47
  }
48
48
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters, type UniswapV4PoolKey } from "@sdk";
3
3
  import type { PoolStateStructOutput } from "libs/sdk/src/generated/BunniV2Hub";
4
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
- import type { tokenType } from "../helpers/tokenType";
6
6
  type callType = {
7
7
  key: keyof dataRawBunniV2;
8
8
  call: string;
@@ -40,6 +40,6 @@ export declare class BunniV2Processor extends GenericProcessor<callKeysBunniV2,
40
40
  round4: callType[];
41
41
  };
42
42
  processingRound2(typeInfo: dataRawBunniV2): void;
43
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawBunniV2, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBunniV2>;
43
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawBunniV2, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeBunniV2>;
44
44
  }
45
45
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawCompound;
7
7
  call: string;
@@ -39,6 +39,6 @@ export declare class CompoundProcessor extends GenericProcessor<callKeysCompound
39
39
  round3: callType[];
40
40
  round4: callType[];
41
41
  };
42
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawCompound, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCompound>;
42
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawCompound, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCompound>;
43
43
  }
44
44
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawERC4626;
7
7
  call: string;
@@ -29,6 +29,6 @@ export declare class ERC4626Processor extends GenericProcessor<callKeysERC4626,
29
29
  round3: callType[];
30
30
  round4: callType[];
31
31
  };
32
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawERC4626, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeERC4626>;
32
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawERC4626, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeERC4626>;
33
33
  }
34
34
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawEnzyme;
7
7
  call: string;
@@ -33,8 +33,8 @@ export declare class EnzymeProcessor extends GenericProcessor<callKeysEnzyme, da
33
33
  round3: callType[];
34
34
  round4: callType[];
35
35
  };
36
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawEnzyme, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEnzyme>;
36
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawEnzyme, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEnzyme>;
37
37
  processingRound2(typeInfo: dataRawEnzyme): void;
38
- computeRound3(index: number, type: tokenType, typeInfo: dataRawEnzyme, calls: string[]): tokenTypeStruct;
38
+ computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawEnzyme, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
39
39
  }
40
40
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawEqualizerGauge;
7
7
  call: string;
@@ -23,6 +23,6 @@ export declare class EqualizerGaugeProcessor extends GenericProcessor<callKeysEq
23
23
  round3: callType[];
24
24
  round4: callType[];
25
25
  };
26
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawEqualizerGauge, _calls: string[], campaign: CampaignParameters<Campaign.ERC20>, _pricer: Pricer): Promise<dataTypeEqualizerGauge>;
26
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawEqualizerGauge, _calls: string[], campaign: CampaignParameters<Campaign.ERC20>, _pricer: Pricer): Promise<dataTypeEqualizerGauge>;
27
27
  }
28
28
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Pricer } from "@/utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
+ import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
4
- import type { tokenType } from "../helpers/tokenType";
5
5
  type callType = {
6
6
  key: keyof dataRawEuler;
7
7
  call: string;
@@ -31,6 +31,6 @@ export declare class EulerBorrowProcessor extends GenericProcessor<callKeysEuler
31
31
  round4: callType[];
32
32
  };
33
33
  processingRound2(typeInfo: dataRawEuler, campaign: CampaignParameters<Campaign.EULER>): void;
34
- processingRound5(_index: number, type: tokenType, typeInfo: dataRawEuler, _calls: string[], campaign: CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
34
+ processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawEuler, _calls: string[], campaign: CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeEuler>;
35
35
  }
36
36
  export {};