@curvefi/api 2.63.10 → 2.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/constants/coins/arbitrum.d.ts +0 -4
  2. package/lib/constants/coins/arbitrum.js +0 -4
  3. package/lib/constants/coins/aurora.d.ts +0 -4
  4. package/lib/constants/coins/aurora.js +0 -4
  5. package/lib/constants/coins/avalanche.d.ts +0 -3
  6. package/lib/constants/coins/avalanche.js +0 -3
  7. package/lib/constants/coins/base.d.ts +0 -4
  8. package/lib/constants/coins/base.js +0 -4
  9. package/lib/constants/coins/bsc.d.ts +0 -4
  10. package/lib/constants/coins/bsc.js +0 -4
  11. package/lib/constants/coins/celo.d.ts +0 -4
  12. package/lib/constants/coins/celo.js +0 -4
  13. package/lib/constants/coins/fantom.d.ts +0 -2
  14. package/lib/constants/coins/fantom.js +0 -2
  15. package/lib/constants/coins/fraxtal.d.ts +0 -4
  16. package/lib/constants/coins/fraxtal.js +0 -4
  17. package/lib/constants/coins/index.d.ts +18 -0
  18. package/lib/constants/coins/index.js +18 -0
  19. package/lib/constants/coins/kava.d.ts +0 -4
  20. package/lib/constants/coins/kava.js +0 -4
  21. package/lib/constants/coins/mantle.d.ts +0 -4
  22. package/lib/constants/coins/mantle.js +0 -4
  23. package/lib/constants/coins/moonbeam.d.ts +0 -4
  24. package/lib/constants/coins/moonbeam.js +0 -4
  25. package/lib/constants/coins/optimism.d.ts +0 -4
  26. package/lib/constants/coins/optimism.js +0 -4
  27. package/lib/constants/coins/polygon.d.ts +0 -3
  28. package/lib/constants/coins/polygon.js +0 -3
  29. package/lib/constants/coins/xdai.d.ts +0 -4
  30. package/lib/constants/coins/xdai.js +0 -4
  31. package/lib/constants/coins/xlayer.d.ts +0 -4
  32. package/lib/constants/coins/xlayer.js +0 -4
  33. package/lib/constants/coins/zksync.d.ts +0 -4
  34. package/lib/constants/coins/zksync.js +0 -4
  35. package/lib/constants/{tricryptoDeployImplementations.d.ts → factory/crypto.d.ts} +21 -0
  36. package/lib/constants/{tricryptoDeployImplementations.js → factory/crypto.js} +85 -0
  37. package/lib/constants/factory/index.d.ts +3 -0
  38. package/lib/constants/factory/index.js +3 -0
  39. package/lib/{factory/constants.d.ts → constants/factory/stable.d.ts} +6 -52
  40. package/lib/{factory/constants.js → constants/factory/stable.js} +41 -151
  41. package/lib/constants/network_constants.d.ts +3 -0
  42. package/lib/constants/{aliases.js → network_constants.js} +253 -96
  43. package/lib/curve.d.ts +22 -16
  44. package/lib/curve.js +94 -362
  45. package/lib/external-api.d.ts +5 -3
  46. package/lib/external-api.js +86 -12
  47. package/lib/factory/common.js +2 -3
  48. package/lib/factory/deploy.js +5 -4
  49. package/lib/factory/factory-api.js +53 -61
  50. package/lib/factory/factory-crypto.js +3 -3
  51. package/lib/factory/factory-tricrypto.js +2 -2
  52. package/lib/factory/factory.js +22 -11
  53. package/lib/index.d.ts +1 -0
  54. package/lib/index.js +2 -1
  55. package/lib/interfaces.d.ts +26 -1
  56. package/lib/pools/PoolTemplate.d.ts +9 -82
  57. package/lib/pools/PoolTemplate.js +37 -379
  58. package/lib/pools/mixins/depositBalancedAmountsMixins.js +3 -3
  59. package/lib/pools/mixins/poolBalancesMixin.d.ts +3 -3
  60. package/lib/pools/mixins/poolBalancesMixin.js +11 -11
  61. package/lib/pools/poolConstructor.js +14 -7
  62. package/lib/pools/subClasses/corePool.d.ts +68 -0
  63. package/lib/pools/subClasses/corePool.js +39 -0
  64. package/lib/pools/{gaugePool.d.ts → subClasses/gaugePool.d.ts} +1 -1
  65. package/lib/pools/{gaugePool.js → subClasses/gaugePool.js} +2 -2
  66. package/lib/pools/subClasses/statsPool.d.ts +45 -0
  67. package/lib/pools/subClasses/statsPool.js +227 -0
  68. package/lib/pools/subClasses/walletPool.d.ts +19 -0
  69. package/lib/pools/subClasses/walletPool.js +72 -0
  70. package/lib/pools/utils.d.ts +1 -0
  71. package/lib/pools/utils.js +36 -0
  72. package/lib/utils.d.ts +10 -1
  73. package/lib/utils.js +45 -7
  74. package/package.json +1 -1
  75. package/lib/constants/aliases.d.ts +0 -17
  76. package/lib/factory/constants-crypto.d.ts +0 -90
  77. package/lib/factory/constants-crypto.js +0 -122
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_ARBITRUM: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensArbitrum: never[];
5
- export declare const yTokensArbitrum: never[];
6
- export declare const ycTokensArbitrum: never[];
7
- export declare const aTokensArbitrum: never[];
@@ -15,7 +15,3 @@ export const COINS_ARBITRUM = lowerCaseValues({
15
15
  "weth": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
16
16
  "wsteth": "0x5979D7b546E38E414F7E9822514be443A4800529",
17
17
  });
18
- export const cTokensArbitrum = []; //.map((a) => a.toLowerCase());
19
- export const yTokensArbitrum = []; //.map((a) => a.toLowerCase());
20
- export const ycTokensArbitrum = []; //.map((a) => a.toLowerCase());
21
- export const aTokensArbitrum = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_AURORA: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensAurora: never[];
5
- export declare const yTokensAurora: never[];
6
- export declare const ycTokensAurora: never[];
7
- export declare const aTokensAurora: never[];
@@ -7,7 +7,3 @@ export const COINS_AURORA = lowerCaseValues({
7
7
  'usdt': '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
8
8
  '3crv': '0xbF7E49483881C76487b0989CD7d9A8239B20CA41',
9
9
  });
10
- export const cTokensAurora = []; //.map((a) => a.toLowerCase());
11
- export const yTokensAurora = []; //.map((a) => a.toLowerCase());
12
- export const ycTokensAurora = []; //.map((a) => a.toLowerCase());
13
- export const aTokensAurora = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,4 @@
1
1
  export declare const COINS_AVALANCHE: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensAvalanche: never[];
5
- export declare const yTokensAvalanche: never[];
6
- export declare const ycTokensAvalanche: never[];
7
4
  export declare const aTokensAvalanche: string[];
@@ -25,9 +25,6 @@ export const COINS_AVALANCHE = lowerCaseValues({
25
25
  'avax': '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
26
26
  'wavax': '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
27
27
  });
28
- export const cTokensAvalanche = []; //.map((a) => a.toLowerCase());
29
- export const yTokensAvalanche = []; //.map((a) => a.toLowerCase());
30
- export const ycTokensAvalanche = []; //.map((a) => a.toLowerCase());
31
28
  export const aTokensAvalanche = [
32
29
  '0x47AFa96Cdc9fAb46904A55a6ad4bf6660B53c38a',
33
30
  '0x46A51127C3ce23fb7AB1DE06226147F446e4a857',
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_BASE: IDict<string>;
3
- export declare const cTokensBase: never[];
4
- export declare const yTokensBase: never[];
5
- export declare const ycTokensBase: never[];
6
- export declare const aTokensBase: never[];
@@ -5,7 +5,3 @@ export const COINS_BASE = lowerCaseValues({
5
5
  eth: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
6
6
  weth: '0x4200000000000000000000000000000000000006',
7
7
  });
8
- export const cTokensBase = []; //.map((a) => a.toLowerCase());
9
- export const yTokensBase = []; //.map((a) => a.toLowerCase());
10
- export const ycTokensBase = []; //.map((a) => a.toLowerCase());
11
- export const aTokensBase = []; //.map((a) => a.toLowerCase());
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_BSC: IDict<string>;
3
- export declare const cTokensBsc: never[];
4
- export declare const yTokensBsc: never[];
5
- export declare const ycTokensBsc: never[];
6
- export declare const aTokensBsc: never[];
@@ -5,7 +5,3 @@ export const COINS_BSC = lowerCaseValues({
5
5
  bnb: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
6
6
  wbnb: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
7
7
  });
8
- export const cTokensBsc = []; //.map((a) => a.toLowerCase());
9
- export const yTokensBsc = []; //.map((a) => a.toLowerCase());
10
- export const ycTokensBsc = []; //.map((a) => a.toLowerCase());
11
- export const aTokensBsc = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_CELO: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensCelo: never[];
5
- export declare const yTokensCelo: never[];
6
- export declare const ycTokensCelo: never[];
7
- export declare const aTokensCelo: never[];
@@ -7,7 +7,3 @@ export const COINS_CELO = lowerCaseValues({
7
7
  'usdt': '0x88eeC49252c8cbc039DCdB394c0c2BA2f1637EA0',
8
8
  '3crv': '0x998395fEd908d33CF27115A1D9Ab6555def6cd45',
9
9
  });
10
- export const cTokensCelo = []; //.map((a) => a.toLowerCase());
11
- export const yTokensCelo = []; //.map((a) => a.toLowerCase());
12
- export const ycTokensCelo = []; //.map((a) => a.toLowerCase());
13
- export const aTokensCelo = []; //.map((a) => a.toLowerCase());
@@ -2,6 +2,4 @@ export declare const COINS_FANTOM: {
2
2
  [index: string]: string;
3
3
  };
4
4
  export declare const cTokensFantom: string[];
5
- export declare const yTokensFantom: never[];
6
- export declare const ycTokensFantom: never[];
7
5
  export declare const aTokensFantom: string[];
@@ -24,8 +24,6 @@ export const cTokensFantom = [
24
24
  '0x328A7b4d538A2b3942653a9983fdA3C12c571141',
25
25
  '0x70faC71debfD67394D1278D98A29dea79DC6E57A', // iFUSDT
26
26
  ].map((a) => a.toLowerCase());
27
- export const yTokensFantom = []; //.map((a) => a.toLowerCase());
28
- export const ycTokensFantom = []; //.map((a) => a.toLowerCase());
29
27
  export const aTokensFantom = [
30
28
  '0x07e6332dd090d287d3489245038daf987955dcfb',
31
29
  '0xe578c856933d8e1082740bf7661e379aa2a30b26',
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_FRAXTAL: IDict<string>;
3
- export declare const cTokensFraxtal: never[];
4
- export declare const yTokensFraxtal: never[];
5
- export declare const ycTokensFraxtal: never[];
6
- export declare const aTokensFraxtal: never[];
@@ -4,7 +4,3 @@ export const COINS_FRAXTAL = lowerCaseValues({
4
4
  // --- FRAXTAL ---
5
5
  frxeth: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
6
6
  });
7
- export const cTokensFraxtal = []; //.map((a) => a.toLowerCase());
8
- export const yTokensFraxtal = []; //.map((a) => a.toLowerCase());
9
- export const ycTokensFraxtal = []; //.map((a) => a.toLowerCase());
10
- export const aTokensFraxtal = []; //.map((a) => a.toLowerCase());
@@ -0,0 +1,18 @@
1
+ import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum } from "./ethereum.js";
2
+ import { COINS_POLYGON, aTokensPolygon } from "./polygon.js";
3
+ import { COINS_FANTOM, cTokensFantom, aTokensFantom } from "./fantom.js";
4
+ import { COINS_AVALANCHE, aTokensAvalanche } from "./avalanche.js";
5
+ import { COINS_ARBITRUM } from "./arbitrum.js";
6
+ import { COINS_OPTIMISM } from "./optimism.js";
7
+ import { COINS_XDAI } from "./xdai.js";
8
+ import { COINS_MOONBEAM } from "./moonbeam.js";
9
+ import { COINS_AURORA } from "./aurora.js";
10
+ import { COINS_KAVA } from "./kava.js";
11
+ import { COINS_CELO } from "./celo.js";
12
+ import { COINS_ZKSYNC } from "./zksync.js";
13
+ import { COINS_BASE } from "./base.js";
14
+ import { COINS_BSC } from "./bsc.js";
15
+ import { COINS_FRAXTAL } from "./fraxtal.js";
16
+ import { COINS_XLAYER } from "./xlayer.js";
17
+ import { COINS_MANTLE } from "./mantle.js";
18
+ export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon, COINS_FANTOM, cTokensFantom, aTokensFantom, COINS_AVALANCHE, aTokensAvalanche, COINS_ARBITRUM, COINS_OPTIMISM, COINS_XDAI, COINS_MOONBEAM, COINS_AURORA, COINS_KAVA, COINS_CELO, COINS_ZKSYNC, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_XLAYER, COINS_MANTLE, };
@@ -0,0 +1,18 @@
1
+ import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum } from "./ethereum.js";
2
+ import { COINS_POLYGON, aTokensPolygon } from "./polygon.js";
3
+ import { COINS_FANTOM, cTokensFantom, aTokensFantom } from "./fantom.js";
4
+ import { COINS_AVALANCHE, aTokensAvalanche } from "./avalanche.js";
5
+ import { COINS_ARBITRUM } from "./arbitrum.js";
6
+ import { COINS_OPTIMISM } from "./optimism.js";
7
+ import { COINS_XDAI } from "./xdai.js";
8
+ import { COINS_MOONBEAM } from "./moonbeam.js";
9
+ import { COINS_AURORA } from "./aurora.js";
10
+ import { COINS_KAVA } from "./kava.js";
11
+ import { COINS_CELO } from "./celo.js";
12
+ import { COINS_ZKSYNC } from "./zksync.js";
13
+ import { COINS_BASE } from "./base.js";
14
+ import { COINS_BSC } from "./bsc.js";
15
+ import { COINS_FRAXTAL } from "./fraxtal.js";
16
+ import { COINS_XLAYER } from "./xlayer.js";
17
+ import { COINS_MANTLE } from "./mantle.js";
18
+ export { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_POLYGON, aTokensPolygon, COINS_FANTOM, cTokensFantom, aTokensFantom, COINS_AVALANCHE, aTokensAvalanche, COINS_ARBITRUM, COINS_OPTIMISM, COINS_XDAI, COINS_MOONBEAM, COINS_AURORA, COINS_KAVA, COINS_CELO, COINS_ZKSYNC, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_XLAYER, COINS_MANTLE, };
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_KAVA: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensKava: never[];
5
- export declare const yTokensKava: never[];
6
- export declare const ycTokensKava: never[];
7
- export declare const aTokensKava: never[];
@@ -7,7 +7,3 @@ export const COINS_KAVA = lowerCaseValues({
7
7
  'usdt': '0xB44a9B6905aF7c801311e8F4E76932ee959c663C',
8
8
  '3crv': '0x7A0e3b70b1dB0D6CA63Cac240895b2D21444A7b9',
9
9
  });
10
- export const cTokensKava = []; //.map((a) => a.toLowerCase());
11
- export const yTokensKava = []; //.map((a) => a.toLowerCase());
12
- export const ycTokensKava = []; //.map((a) => a.toLowerCase());
13
- export const aTokensKava = []; //.map((a) => a.toLowerCase());
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_MANTLE: IDict<string>;
3
- export declare const cTokensMantle: never[];
4
- export declare const yTokensMantle: never[];
5
- export declare const ycTokensMantle: never[];
6
- export declare const aTokensMantle: never[];
@@ -3,7 +3,3 @@ export const COINS_MANTLE = lowerCaseValues({
3
3
  crv: '0xcfd1d50ce23c46d3cf6407487b2f8934e96dc8f9',
4
4
  mnt: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
5
5
  });
6
- export const cTokensMantle = []; //.map((a) => a.toLowerCase());
7
- export const yTokensMantle = []; //.map((a) => a.toLowerCase());
8
- export const ycTokensMantle = []; //.map((a) => a.toLowerCase());
9
- export const aTokensMantle = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_MOONBEAM: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensMoonbeam: never[];
5
- export declare const yTokensMoonbeam: never[];
6
- export declare const ycTokensMoonbeam: never[];
7
- export declare const aTokensMoonbeam: never[];
@@ -7,7 +7,3 @@ export const COINS_MOONBEAM = lowerCaseValues({
7
7
  'usdt': '0x8e70cD5B4Ff3f62659049e74b6649c6603A0E594',
8
8
  '3crv': '0xace58a26b8db90498ef0330fdc9c2655db0c45e2',
9
9
  });
10
- export const cTokensMoonbeam = []; //.map((a) => a.toLowerCase());
11
- export const yTokensMoonbeam = []; //.map((a) => a.toLowerCase());
12
- export const ycTokensMoonbeam = []; //.map((a) => a.toLowerCase());
13
- export const aTokensMoonbeam = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_OPTIMISM: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensOptimism: never[];
5
- export declare const yTokensOptimism: never[];
6
- export declare const ycTokensOptimism: never[];
7
- export declare const aTokensOptimism: never[];
@@ -14,7 +14,3 @@ export const COINS_OPTIMISM = lowerCaseValues({
14
14
  'seth': '0xe405de8f52ba7559f9df3c368500b6e6ae6cee49',
15
15
  'wsteth': '0x1f32b1c2345538c0c6f582fcb022739c4a194ebb',
16
16
  });
17
- export const cTokensOptimism = []; //.map((a) => a.toLowerCase());
18
- export const yTokensOptimism = []; //.map((a) => a.toLowerCase());
19
- export const ycTokensOptimism = []; //.map((a) => a.toLowerCase());
20
- export const aTokensOptimism = []; //.map((a) => a.toLowerCase());
@@ -1,7 +1,4 @@
1
1
  export declare const COINS_POLYGON: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensPolygon: never[];
5
- export declare const yTokensPolygon: never[];
6
- export declare const ycTokensPolygon: never[];
7
4
  export declare const aTokensPolygon: string[];
@@ -22,9 +22,6 @@ export const COINS_POLYGON = lowerCaseValues({
22
22
  // --- EUR ---
23
23
  eurt: "0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f", // EURT
24
24
  });
25
- export const cTokensPolygon = []; //.map((a) => a.toLowerCase());
26
- export const yTokensPolygon = []; //.map((a) => a.toLowerCase());
27
- export const ycTokensPolygon = []; //.map((a) => a.toLowerCase());
28
25
  export const aTokensPolygon = [
29
26
  "0x27F8D03b3a2196956ED754baDc28D73be8830A6e",
30
27
  "0x1a13F4Ca1d028320A707D99520AbFefca3998b7F",
@@ -1,7 +1,3 @@
1
1
  export declare const COINS_XDAI: {
2
2
  [index: string]: string;
3
3
  };
4
- export declare const cTokensXDai: never[];
5
- export declare const yTokensXDai: never[];
6
- export declare const ycTokensXDai: never[];
7
- export declare const aTokensXDai: never[];
@@ -14,7 +14,3 @@ export const COINS_XDAI = lowerCaseValues({
14
14
  // --- EUR ---
15
15
  'eure': '0xcB444e90D8198415266c6a2724b7900fb12FC56E',
16
16
  });
17
- export const cTokensXDai = []; //.map((a) => a.toLowerCase());
18
- export const yTokensXDai = []; //.map((a) => a.toLowerCase());
19
- export const ycTokensXDai = []; //.map((a) => a.toLowerCase());
20
- export const aTokensXDai = []; //.map((a) => a.toLowerCase());
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_XLAYER: IDict<string>;
3
- export declare const cTokensXLayer: never[];
4
- export declare const yTokensXLayer: never[];
5
- export declare const ycTokensXLayer: never[];
6
- export declare const aTokensXLayer: never[];
@@ -3,7 +3,3 @@ export const COINS_XLAYER = lowerCaseValues({
3
3
  crv: '0x3d5320821bfca19fb0b5428f2c79d63bd5246f89',
4
4
  okb: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
5
5
  });
6
- export const cTokensXLayer = []; //.map((a) => a.toLowerCase());
7
- export const yTokensXLayer = []; //.map((a) => a.toLowerCase());
8
- export const ycTokensXLayer = []; //.map((a) => a.toLowerCase());
9
- export const aTokensXLayer = []; //.map((a) => a.toLowerCase());
@@ -1,6 +1,2 @@
1
1
  import { IDict } from "../../interfaces.js";
2
2
  export declare const COINS_ZKSYNC: IDict<string>;
3
- export declare const cTokensZkSync: never[];
4
- export declare const yTokensZkSync: never[];
5
- export declare const ycTokensZkSync: never[];
6
- export declare const aTokensZkSync: never[];
@@ -4,7 +4,3 @@ export const COINS_ZKSYNC = lowerCaseValues({
4
4
  // --- USD ---
5
5
  'weth': '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
6
6
  });
7
- export const cTokensZkSync = []; //.map((a) => a.toLowerCase());
8
- export const yTokensZkSync = []; //.map((a) => a.toLowerCase());
9
- export const ycTokensZkSync = []; //.map((a) => a.toLowerCase());
10
- export const aTokensZkSync = []; //.map((a) => a.toLowerCase());
@@ -1,3 +1,14 @@
1
+ import { IDict } from "../../interfaces";
2
+ export declare const lpTokenBasePoolIdDictEthereum: IDict<string>;
3
+ export declare const lpTokenBasePoolIdDictPolygon: IDict<string>;
4
+ export declare const basePoolIdZapDictEthereum: IDict<{
5
+ address: string;
6
+ ABI: any;
7
+ }>;
8
+ export declare const basePoolIdZapDictPolygon: IDict<{
9
+ address: string;
10
+ ABI: any;
11
+ }>;
1
12
  export declare const tricryptoDeployImplementations: {
2
13
  1: {
3
14
  amm_native_transfers_disabled: string;
@@ -85,3 +96,13 @@ export declare const tricryptoDeployImplementations: {
85
96
  implementationIdx: number;
86
97
  };
87
98
  };
99
+ export declare const CRYPTO_FACTORY_CONSTANTS: {
100
+ [index: number]: {
101
+ lpTokenBasePoolIdDict?: IDict<string>;
102
+ basePoolIdZapDict?: IDict<{
103
+ address: string;
104
+ ABI: any;
105
+ }>;
106
+ tricryptoDeployImplementations?: IDict<string | number>;
107
+ };
108
+ };
@@ -1,3 +1,31 @@
1
+ import { lowerCaseKeys } from "../utils.js";
2
+ // --- ZAPS --
3
+ import atricrypto3ZapABI from "../abis/atricrypto3/base_pool_zap.json" assert { type: 'json' };
4
+ import tripoolZapABI from "../abis/3pool/meta_zap_crypto.json" assert { type: 'json' };
5
+ import fraxusdcZapABI from "../abis/fraxusdc/meta_zap_crypto.json" assert { type: 'json' };
6
+ export const lpTokenBasePoolIdDictEthereum = lowerCaseKeys({
7
+ '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490': '3pool',
8
+ '0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC': 'fraxusdc',
9
+ });
10
+ export const lpTokenBasePoolIdDictPolygon = lowerCaseKeys({
11
+ '0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3': 'atricrypto3',
12
+ });
13
+ export const basePoolIdZapDictEthereum = {
14
+ '3pool': {
15
+ address: "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267".toLowerCase(),
16
+ ABI: tripoolZapABI,
17
+ },
18
+ fraxusdc: {
19
+ address: "0x5de4ef4879f4fe3bbadf2227d2ac5d0e2d76c895".toLowerCase(),
20
+ ABI: fraxusdcZapABI,
21
+ },
22
+ };
23
+ export const basePoolIdZapDictPolygon = {
24
+ atricrypto3: {
25
+ address: "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1".toLowerCase(),
26
+ ABI: atricrypto3ZapABI,
27
+ },
28
+ };
1
29
  export const tricryptoDeployImplementations = {
2
30
  1: {
3
31
  amm_native_transfers_disabled: '0x0000000000000000000000000000000000000000'.toLowerCase(),
@@ -85,3 +113,60 @@ export const tricryptoDeployImplementations = {
85
113
  implementationIdx: 1,
86
114
  },
87
115
  };
116
+ export const CRYPTO_FACTORY_CONSTANTS = {
117
+ 1: {
118
+ lpTokenBasePoolIdDict: lpTokenBasePoolIdDictEthereum,
119
+ basePoolIdZapDict: basePoolIdZapDictEthereum,
120
+ tricryptoDeployImplementations: tricryptoDeployImplementations[1],
121
+ },
122
+ 10: {
123
+ tricryptoDeployImplementations: tricryptoDeployImplementations[10],
124
+ },
125
+ 56: {
126
+ tricryptoDeployImplementations: tricryptoDeployImplementations[56],
127
+ },
128
+ 100: {
129
+ tricryptoDeployImplementations: tricryptoDeployImplementations[100],
130
+ },
131
+ 137: {
132
+ lpTokenBasePoolIdDict: lpTokenBasePoolIdDictPolygon,
133
+ basePoolIdZapDict: basePoolIdZapDictPolygon,
134
+ tricryptoDeployImplementations: tricryptoDeployImplementations[137],
135
+ },
136
+ 196: {
137
+ tricryptoDeployImplementations: tricryptoDeployImplementations[196],
138
+ },
139
+ 250: {
140
+ tricryptoDeployImplementations: tricryptoDeployImplementations[250],
141
+ },
142
+ 252: {
143
+ tricryptoDeployImplementations: tricryptoDeployImplementations[252],
144
+ },
145
+ 324: {
146
+ tricryptoDeployImplementations: tricryptoDeployImplementations[324],
147
+ },
148
+ 1284: {
149
+ tricryptoDeployImplementations: tricryptoDeployImplementations[1284],
150
+ },
151
+ 2222: {
152
+ tricryptoDeployImplementations: tricryptoDeployImplementations[2222],
153
+ },
154
+ 5000: {
155
+ tricryptoDeployImplementations: tricryptoDeployImplementations[5000],
156
+ },
157
+ 8453: {
158
+ tricryptoDeployImplementations: tricryptoDeployImplementations[8453],
159
+ },
160
+ 42161: {
161
+ tricryptoDeployImplementations: tricryptoDeployImplementations[42161],
162
+ },
163
+ 42220: {
164
+ tricryptoDeployImplementations: tricryptoDeployImplementations[42220],
165
+ },
166
+ 43114: {
167
+ tricryptoDeployImplementations: tricryptoDeployImplementations[43114],
168
+ },
169
+ 1313161554: {
170
+ tricryptoDeployImplementations: tricryptoDeployImplementations[1313161554],
171
+ },
172
+ };
@@ -0,0 +1,3 @@
1
+ import { STABLE_FACTORY_CONSTANTS } from "./stable.js";
2
+ import { CRYPTO_FACTORY_CONSTANTS } from "./crypto.js";
3
+ export { STABLE_FACTORY_CONSTANTS, CRYPTO_FACTORY_CONSTANTS, };
@@ -0,0 +1,3 @@
1
+ import { STABLE_FACTORY_CONSTANTS } from "./stable.js";
2
+ import { CRYPTO_FACTORY_CONSTANTS } from "./crypto.js";
3
+ export { STABLE_FACTORY_CONSTANTS, CRYPTO_FACTORY_CONSTANTS, };
@@ -1,4 +1,4 @@
1
- import { IDict } from "../interfaces";
1
+ import { IDict } from "../../interfaces";
2
2
  export declare const implementationABIDictEthereum: IDict<any>;
3
3
  export declare const implementationABIDictPolygon: IDict<any>;
4
4
  export declare const implementationABIDictFantom: IDict<any>;
@@ -9,12 +9,8 @@ export declare const implementationABIDictXDai: IDict<any>;
9
9
  export declare const implementationABIDictMoonbeam: IDict<any>;
10
10
  export declare const implementationABIDictKava: IDict<any>;
11
11
  export declare const implementationABIDictCelo: IDict<any>;
12
- export declare const implementationABIDictZkSync: IDict<any>;
13
12
  export declare const implementationABIDictBase: IDict<any>;
14
13
  export declare const implementationABIDictBsc: IDict<any>;
15
- export declare const implementationABIDictFraxtal: IDict<any>;
16
- export declare const implementationABIDictXLayer: IDict<any>;
17
- export declare const implementationABIDictMantle: IDict<any>;
18
14
  export declare const basePoolIdZapDictEthereum: IDict<{
19
15
  address: string;
20
16
  ABI: any;
@@ -43,56 +39,14 @@ export declare const basePoolIdZapDictXDai: IDict<{
43
39
  address: string;
44
40
  ABI: any;
45
41
  }>;
46
- export declare const basePoolIdZapDictMoonbeam: IDict<{
47
- address: string;
48
- ABI: any;
49
- }>;
50
- export declare const basePoolIdZapDictKava: IDict<{
51
- address: string;
52
- ABI: any;
53
- }>;
54
- export declare const basePoolIdZapDictCelo: IDict<{
55
- address: string;
56
- ABI: any;
57
- }>;
58
- export declare const basePoolIdZapDictZkSync: IDict<{
59
- address: string;
60
- ABI: any;
61
- }>;
62
- export declare const basePoolIdZapDictBase: IDict<{
63
- address: string;
64
- ABI: any;
65
- }>;
66
- export declare const basePoolIdZapDictBsc: IDict<{
67
- address: string;
68
- ABI: any;
69
- }>;
70
- export declare const basePoolIdZapDictFraxtal: IDict<{
71
- address: string;
72
- ABI: any;
73
- }>;
74
- export declare const basePoolIdZapDictXLayer: IDict<{
75
- address: string;
76
- ABI: any;
77
- }>;
78
- export declare const basePoolIdZapDictMantle: IDict<{
79
- address: string;
80
- ABI: any;
81
- }>;
82
- export declare const stableNgBasePoolZap: {
83
- ABI: any;
84
- address: string;
85
- };
86
- export declare const FACTORY_CONSTANTS: {
42
+ export declare const stableNgBasePoolZap: string;
43
+ export declare const STABLE_FACTORY_CONSTANTS: {
87
44
  [index: number]: {
88
- implementationABIDict: IDict<any>;
89
- basePoolIdZapDict: IDict<{
45
+ implementationABIDict?: IDict<any>;
46
+ basePoolIdZapDict?: IDict<{
90
47
  address: string;
91
48
  ABI: any;
92
49
  }>;
93
- stableNgBasePoolZap: {
94
- ABI: any;
95
- address: string;
96
- };
50
+ stableNgBasePoolZap?: string;
97
51
  };
98
52
  };