@curvefi/api 2.63.10 → 2.65.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 (79) 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/ethereum.js +4 -1
  14. package/lib/constants/coins/fantom.d.ts +0 -2
  15. package/lib/constants/coins/fantom.js +0 -2
  16. package/lib/constants/coins/fraxtal.d.ts +0 -4
  17. package/lib/constants/coins/fraxtal.js +0 -4
  18. package/lib/constants/coins/index.d.ts +18 -0
  19. package/lib/constants/coins/index.js +18 -0
  20. package/lib/constants/coins/kava.d.ts +0 -4
  21. package/lib/constants/coins/kava.js +0 -4
  22. package/lib/constants/coins/mantle.d.ts +0 -4
  23. package/lib/constants/coins/mantle.js +0 -4
  24. package/lib/constants/coins/moonbeam.d.ts +0 -4
  25. package/lib/constants/coins/moonbeam.js +0 -4
  26. package/lib/constants/coins/optimism.d.ts +0 -4
  27. package/lib/constants/coins/optimism.js +0 -4
  28. package/lib/constants/coins/polygon.d.ts +0 -3
  29. package/lib/constants/coins/polygon.js +0 -3
  30. package/lib/constants/coins/xdai.d.ts +0 -4
  31. package/lib/constants/coins/xdai.js +0 -4
  32. package/lib/constants/coins/xlayer.d.ts +0 -4
  33. package/lib/constants/coins/xlayer.js +0 -4
  34. package/lib/constants/coins/zksync.d.ts +0 -4
  35. package/lib/constants/coins/zksync.js +0 -4
  36. package/lib/constants/{tricryptoDeployImplementations.d.ts → factory/crypto.d.ts} +21 -0
  37. package/lib/constants/{tricryptoDeployImplementations.js → factory/crypto.js} +85 -0
  38. package/lib/constants/factory/index.d.ts +3 -0
  39. package/lib/constants/factory/index.js +3 -0
  40. package/lib/{factory/constants.d.ts → constants/factory/stable.d.ts} +6 -52
  41. package/lib/{factory/constants.js → constants/factory/stable.js} +41 -151
  42. package/lib/constants/network_constants.d.ts +3 -0
  43. package/lib/constants/{aliases.js → network_constants.js} +255 -97
  44. package/lib/curve.d.ts +22 -16
  45. package/lib/curve.js +96 -362
  46. package/lib/external-api.d.ts +5 -3
  47. package/lib/external-api.js +86 -12
  48. package/lib/factory/common.js +2 -3
  49. package/lib/factory/deploy.js +5 -4
  50. package/lib/factory/factory-api.js +53 -61
  51. package/lib/factory/factory-crypto.js +3 -3
  52. package/lib/factory/factory-tricrypto.js +2 -2
  53. package/lib/factory/factory.js +22 -11
  54. package/lib/index.d.ts +1 -0
  55. package/lib/index.js +2 -1
  56. package/lib/interfaces.d.ts +26 -1
  57. package/lib/pools/PoolTemplate.d.ts +9 -82
  58. package/lib/pools/PoolTemplate.js +37 -379
  59. package/lib/pools/mixins/depositBalancedAmountsMixins.js +3 -3
  60. package/lib/pools/mixins/poolBalancesMixin.d.ts +3 -3
  61. package/lib/pools/mixins/poolBalancesMixin.js +11 -11
  62. package/lib/pools/poolConstructor.js +14 -7
  63. package/lib/pools/subClasses/corePool.d.ts +68 -0
  64. package/lib/pools/subClasses/corePool.js +39 -0
  65. package/lib/pools/{gaugePool.d.ts → subClasses/gaugePool.d.ts} +1 -1
  66. package/lib/pools/{gaugePool.js → subClasses/gaugePool.js} +2 -2
  67. package/lib/pools/subClasses/statsPool.d.ts +45 -0
  68. package/lib/pools/subClasses/statsPool.js +227 -0
  69. package/lib/pools/subClasses/walletPool.d.ts +19 -0
  70. package/lib/pools/subClasses/walletPool.js +72 -0
  71. package/lib/pools/utils.d.ts +1 -0
  72. package/lib/pools/utils.js +36 -0
  73. package/lib/route-graph.worker.js +50 -2
  74. package/lib/utils.d.ts +10 -1
  75. package/lib/utils.js +45 -7
  76. package/package.json +1 -1
  77. package/lib/constants/aliases.d.ts +0 -17
  78. package/lib/factory/constants-crypto.d.ts +0 -90
  79. package/lib/factory/constants-crypto.js +0 -122
@@ -1,5 +1,7 @@
1
1
  import { lowerCaseValues } from "./utils.js";
2
- export const ALIASES_ETHEREUM = lowerCaseValues({
2
+ import { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, POOLS_DATA_XLAYER, POOLS_DATA_MANTLE, } from './pools/index.js';
3
+ import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum, COINS_OPTIMISM, COINS_POLYGON, aTokensPolygon, COINS_FANTOM, cTokensFantom, aTokensFantom, COINS_AVALANCHE, aTokensAvalanche, COINS_ARBITRUM, COINS_XDAI, COINS_MOONBEAM, COINS_AURORA, COINS_KAVA, COINS_CELO, COINS_ZKSYNC, COINS_BASE, COINS_BSC, COINS_FRAXTAL, COINS_XLAYER, COINS_MANTLE, } from "./coins/index.js";
4
+ const ALIASES_ETHEREUM = lowerCaseValues({
3
5
  "crv": "0xD533a949740bb3306d119CC777fa900bA034cd52",
4
6
  "minter": '0xd061D61a4d941c39E5453435B6345Dc261C2fcE0',
5
7
  "root_gauge_factory": "0x306A45a1478A000dC701A6e1f7a569afb8D9DCD6",
@@ -9,23 +11,23 @@ export const ALIASES_ETHEREUM = lowerCaseValues({
9
11
  "fee_distributor_crvusd": "0xD16d5eC345Dd86Fb63C6a9C43c517210F1027914",
10
12
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
11
13
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
12
- "router": "0x16C6521Dff6baB339122a0FE25a9116693265353",
14
+ // "router": "0x16C6521Dff6baB339122a0FE25a9116693265353", v1.1.0
15
+ "router": "0x45312ea0eFf7E09C83CBE249fa1d7598c4C8cd4e",
13
16
  "deposit_and_stake": "0x56C526b0159a258887e0d79ec3a80dfb940d0cD7",
14
17
  "stable_calc": "0x0DCDED3545D565bA3B19E683431381007245d983",
15
18
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
16
19
  "factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
17
20
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
18
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
19
21
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
22
+ "stable_ng_factory": '0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf',
20
23
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
21
24
  "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
22
- "stable_ng_factory": '0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf',
23
25
  "factory_admin": "",
24
26
  "voting_parameter": '0xBCfF8B0b9419b9A88c44546519b1e909cF330399',
25
27
  "voting_ownership": '0xE478de485ad2fe566d49342Cbd03E49ed7DB3356',
26
28
  "circulating_supply": '0x14139EB676342b6bC8E41E0d419969f23A49881e',
27
29
  });
28
- export const ALIASES_POLYGON = lowerCaseValues({
30
+ const ALIASES_POLYGON = lowerCaseValues({
29
31
  "crv": "0x172370d5cd63279efa6d502dab29171933a610af",
30
32
  "child_gauge_factory": "0x55a1C26CE60490A15Bdd6bD73De4F6346525e01e",
31
33
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -38,15 +40,13 @@ export const ALIASES_POLYGON = lowerCaseValues({
38
40
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
39
41
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
40
42
  "factory": '0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee',
41
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
42
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
43
43
  "crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
44
+ "stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
44
45
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
45
46
  "tricrypto_factory": '0xC1b393EfEF38140662b91441C6710Aa704973228',
46
- "stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
47
47
  "factory_admin": "",
48
48
  });
49
- export const ALIASES_FANTOM = lowerCaseValues({
49
+ const ALIASES_FANTOM = lowerCaseValues({
50
50
  "crv": "0x1E4F97b9f9F913c46F1632781732927B9019C68b",
51
51
  "child_gauge_factory": "0x004A476B5B76738E34c86C7144554B9d34402F13",
52
52
  "child_gauge_factory_old": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
@@ -59,15 +59,14 @@ export const ALIASES_FANTOM = lowerCaseValues({
59
59
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
60
60
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
61
61
  "factory": "0x686d67265703d1f124c45e33d47d794c566889ba",
62
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
63
62
  "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
64
63
  "crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
65
- "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
66
- "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
67
64
  "stable_ng_factory": '0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b',
65
+ "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
66
+ "tricrypto_factory": '0x9AF14D26075f142eb3F292D5065EB3faa646167b',
68
67
  "factory_admin": "",
69
68
  });
70
- export const ALIASES_AVALANCHE = lowerCaseValues({
69
+ const ALIASES_AVALANCHE = lowerCaseValues({
71
70
  "crv": "0x47536F17F4fF30e64A96a7555826b8f9e66ec468",
72
71
  "child_gauge_factory": "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267",
73
72
  "child_gauge_factory_old": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
@@ -80,15 +79,12 @@ export const ALIASES_AVALANCHE = lowerCaseValues({
80
79
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
81
80
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
82
81
  "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
83
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
84
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
85
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
86
- "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
87
- "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
88
82
  "stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
83
+ "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
84
+ "tricrypto_factory": '0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a',
89
85
  "factory_admin": "",
90
86
  });
91
- export const ALIASES_ARBITRUM = lowerCaseValues({
87
+ const ALIASES_ARBITRUM = lowerCaseValues({
92
88
  "crv": "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978",
93
89
  "child_gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
94
90
  "voting_escrow": "0x98c80fa823759b642c3e02f40533c164f40727ae",
@@ -100,15 +96,12 @@ export const ALIASES_ARBITRUM = lowerCaseValues({
100
96
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
101
97
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
102
98
  "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
103
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
104
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
105
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
99
+ "stable_ng_factory": '0x9AF14D26075f142eb3F292D5065EB3faa646167b',
106
100
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
107
101
  "tricrypto_factory": '0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8',
108
- "stable_ng_factory": '0x9AF14D26075f142eb3F292D5065EB3faa646167b',
109
102
  "factory_admin": "",
110
103
  });
111
- export const ALIASES_OPTIMISM = lowerCaseValues({
104
+ const ALIASES_OPTIMISM = lowerCaseValues({
112
105
  "crv": "0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53",
113
106
  "child_gauge_factory": "0x871fBD4E01012e2E8457346059e8C189d664DbA4",
114
107
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -121,17 +114,14 @@ export const ALIASES_OPTIMISM = lowerCaseValues({
121
114
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
122
115
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
123
116
  "factory": '0x2db0E83599a91b508Ac268a6197b8B14F5e72840',
124
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
125
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
126
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
117
+ "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
127
118
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
128
119
  "tricrypto_factory": '0xc6C09471Ee39C7E30a067952FcC89c8922f9Ab53',
129
- "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
130
120
  "factory_admin": "",
131
121
  "gas_oracle": '0xc0d3C0d3C0d3c0D3C0D3C0d3C0d3C0D3C0D3000f',
132
122
  "gas_oracle_blob": '0x420000000000000000000000000000000000000f',
133
123
  });
134
- export const ALIASES_XDAI = lowerCaseValues({
124
+ const ALIASES_XDAI = lowerCaseValues({
135
125
  "crv": "0x712b3d230f3c1c19db860d80619288b1f0bdd0bd",
136
126
  "child_gauge_factory": "0x06471ED238306a427241B3eA81352244E77B004F",
137
127
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -144,15 +134,12 @@ export const ALIASES_XDAI = lowerCaseValues({
144
134
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
145
135
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
146
136
  "factory": '0xD19Baeadc667Cf2015e395f2B08668Ef120f41F5',
147
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
148
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
149
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
137
+ "stable_ng_factory": '0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8',
150
138
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
151
139
  "tricrypto_factory": '0xb47988aD49DCE8D909c6f9Cf7B26caF04e1445c8',
152
- "stable_ng_factory": '0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8',
153
140
  "factory_admin": "",
154
141
  });
155
- export const ALIASES_MOONBEAM = lowerCaseValues({
142
+ const ALIASES_MOONBEAM = lowerCaseValues({
156
143
  "crv": "0x7C598c96D02398d89FbCb9d41Eab3DF0C16F227D",
157
144
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
158
145
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -160,20 +147,12 @@ export const ALIASES_MOONBEAM = lowerCaseValues({
160
147
  "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
161
148
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
162
149
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
163
- "router": "0x0000000000000000000000000000000000000000",
164
- "deposit_and_stake": "0x0000000000000000000000000000000000000000",
165
150
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
166
151
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
167
152
  "factory": '0x4244eB811D6e0Ef302326675207A95113dB4E1F8',
168
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
169
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
170
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
171
- "twocrypto_factory": '0x0000000000000000000000000000000000000000',
172
- "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
173
- "stable_ng_factory": '0x0000000000000000000000000000000000000000',
174
153
  "factory_admin": "",
175
154
  });
176
- export const ALIASES_AURORA = lowerCaseValues({
155
+ const ALIASES_AURORA = lowerCaseValues({
177
156
  "crv": "0x64D5BaF5ac030e2b7c435aDD967f787ae94D0205",
178
157
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
179
158
  "voting_escrow": "0x0000000000000000000000000000000000000000",
@@ -193,7 +172,7 @@ export const ALIASES_AURORA = lowerCaseValues({
193
172
  "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
194
173
  "factory_admin": "",
195
174
  });
196
- export const ALIASES_KAVA = lowerCaseValues({
175
+ const ALIASES_KAVA = lowerCaseValues({
197
176
  "crv": "0x64D5BaF5ac030e2b7c435aDD967f787ae94D0205",
198
177
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
199
178
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -206,15 +185,12 @@ export const ALIASES_KAVA = lowerCaseValues({
206
185
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
207
186
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
208
187
  "factory": '0x40bc62805471eF53DdD5C5cF99ed3d9e5aa81b48',
209
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
210
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
211
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
212
- "twocrypto_factory": '0xd3B17f862956464ae4403cCF829CE69199856e1e',
213
- "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
214
188
  "stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
189
+ "twocrypto_factory": '0xd3B17f862956464ae4403cCF829CE69199856e1e',
190
+ "tricrypto_factory": '0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a',
215
191
  "factory_admin": "",
216
192
  });
217
- export const ALIASES_CELO = lowerCaseValues({
193
+ const ALIASES_CELO = lowerCaseValues({
218
194
  "crv": "0x0a7432cF27F1aE3825c313F3C81e7D3efD7639aB",
219
195
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
220
196
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -222,20 +198,15 @@ export const ALIASES_CELO = lowerCaseValues({
222
198
  "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
223
199
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
224
200
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
225
- "router": "0x0000000000000000000000000000000000000000",
226
- "deposit_and_stake": "0x0000000000000000000000000000000000000000",
227
201
  "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
228
202
  "crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
229
203
  "factory": '0x5277A0226d10392295E8D383E9724D6E416d6e6C',
230
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
231
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
232
- "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
233
- "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
234
- "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
235
204
  "stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
205
+ "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
206
+ "tricrypto_factory": '0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a',
236
207
  "factory_admin": "",
237
208
  });
238
- export const ALIASES_ZKSYNC = lowerCaseValues({
209
+ const ALIASES_ZKSYNC = lowerCaseValues({
239
210
  "crv": "0x5945932099f124194452a4c62d34bB37f16183B2",
240
211
  "child_gauge_factory": "0x167D9C27070Ce04b79820E6aaC0cF243d6098812",
241
212
  "voting_escrow": "0x0000000000000000000000000000000000000000",
@@ -244,18 +215,12 @@ export const ALIASES_ZKSYNC = lowerCaseValues({
244
215
  "address_provider": "0x0000000000000000000000000000000000000000",
245
216
  "router": "0x7C915390e109CA66934f1eB285854375D1B127FA",
246
217
  "deposit_and_stake": "0x253548e98C769aD2850da8DB3E4c2b2cE46E3839",
247
- "stable_calc": "0x0000000000000000000000000000000000000000",
248
- "crypto_calc": '0x0000000000000000000000000000000000000000',
249
- "factory": '0x0000000000000000000000000000000000000000',
250
- "crvusd_factory": '0x0000000000000000000000000000000000000000',
251
- "eywa_factory": '0x0000000000000000000000000000000000000000',
252
- "crypto_factory": '0x0000000000000000000000000000000000000000',
218
+ "stable_ng_factory": '0xFcAb5d04e8e031334D5e8D2C166B08daB0BE6CaE',
253
219
  "twocrypto_factory": '0xf3a546AF64aFd6BB8292746BA66DB33aFAE72114',
254
220
  "tricrypto_factory": '0x5d4174C40f1246dABe49693845442927d5929f0D',
255
- "stable_ng_factory": '0xFcAb5d04e8e031334D5e8D2C166B08daB0BE6CaE',
256
221
  "factory_admin": "0x0000000000000000000000000000000000000000",
257
222
  });
258
- export const ALIASES_BASE = lowerCaseValues({
223
+ const ALIASES_BASE = lowerCaseValues({
259
224
  "crv": "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
260
225
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
261
226
  "child_gauge_factory_old": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
@@ -268,17 +233,15 @@ export const ALIASES_BASE = lowerCaseValues({
268
233
  "stable_calc": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
269
234
  "crypto_calc": '0xEfadDdE5B43917CcC738AdE6962295A0B343f7CE',
270
235
  "factory": '0x3093f9B57A428F3EB6285a589cb35bEA6e78c336',
271
- "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
272
- "eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
273
236
  "crypto_factory": '0x5EF72230578b3e399E6C6F4F6360edF95e83BBfd',
237
+ "stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
274
238
  "twocrypto_factory": '0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F',
275
239
  "tricrypto_factory": '0xA5961898870943c68037F6848d2D866Ed2016bcB',
276
240
  "factory_admin": "0x0000000000000000000000000000000000000000",
277
- "stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
278
241
  "gas_oracle": '0xc0d3C0d3C0d3c0D3C0D3C0d3C0d3C0D3C0D3000f',
279
242
  "gas_oracle_blob": '0x420000000000000000000000000000000000000f',
280
243
  });
281
- export const ALIASES_BSC = lowerCaseValues({
244
+ const ALIASES_BSC = lowerCaseValues({
282
245
  "crv": "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
283
246
  "child_gauge_factory": "0xe35A879E5EfB4F1Bb7F70dCF3250f2e19f096bd8",
284
247
  "child_gauge_factory_old": "0xDb205f215f568ADf21b9573b62566f6d9a40bed6",
@@ -291,15 +254,13 @@ export const ALIASES_BSC = lowerCaseValues({
291
254
  "stable_calc": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
292
255
  "crypto_calc": '0xd6681e74eEA20d196c15038C580f721EF2aB6320',
293
256
  "factory": '0xEfDE221f306152971D8e9f181bFe998447975810',
294
- "crvusd_factory": '0x0000000000000000000000000000000000000000',
295
- "eywa_factory": '0x0000000000000000000000000000000000000000',
296
257
  "crypto_factory": '0xBd5fBd2FA58cB15228a9Abdac9ec994f79E3483C',
258
+ "stable_ng_factory": '0xd7E72f3615aa65b92A4DBdC211E296a35512988B',
297
259
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
298
260
  "tricrypto_factory": '0xc55837710bc500F1E3c7bb9dd1d51F7c5647E657',
299
- "stable_ng_factory": '0xd7E72f3615aa65b92A4DBdC211E296a35512988B',
300
261
  "factory_admin": '0x0000000000000000000000000000000000000000',
301
262
  });
302
- export const ALIASES_FRAXTAL = lowerCaseValues({
263
+ const ALIASES_FRAXTAL = lowerCaseValues({
303
264
  "crv": "0x331B9182088e2A7d6D3Fe4742AbA1fB231aEcc56",
304
265
  "child_gauge_factory": "0x0B8D6B6CeFC7Aa1C2852442e518443B1b22e1C52",
305
266
  "child_gauge_factory_old": "0xeF672bD94913CB6f1d2812a6e18c1fFdEd8eFf5c",
@@ -309,18 +270,12 @@ export const ALIASES_FRAXTAL = lowerCaseValues({
309
270
  "address_provider": "0x0000000000000000000000000000000000000000",
310
271
  "router": "0x9f2Fa7709B30c75047980a0d70A106728f0Ef2db",
311
272
  "deposit_and_stake": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
312
- "stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
313
- "crypto_calc": '0x69522fb5337663d3B4dFB0030b881c1A750Adb4f',
314
- "factory": '0x0000000000000000000000000000000000000000',
315
- "crvusd_factory": '0x0000000000000000000000000000000000000000',
316
- "eywa_factory": '0x0000000000000000000000000000000000000000',
317
- "crypto_factory": '0x0000000000000000000000000000000000000000',
273
+ "stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
318
274
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
319
275
  "tricrypto_factory": '0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F',
320
- "stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
321
276
  "factory_admin": '0x0000000000000000000000000000000000000000',
322
277
  });
323
- export const ALIASES_XLAYER = lowerCaseValues({
278
+ const ALIASES_XLAYER = lowerCaseValues({
324
279
  "crv": "0x0000000000000000000000000000000000000000",
325
280
  "child_gauge_factory": "0xD5C3e070E121488806AaA5565283A164ACEB94Df",
326
281
  "child_gauge_factory_old": "0xeF672bD94913CB6f1d2812a6e18c1fFdEd8eFf5c",
@@ -330,18 +285,12 @@ export const ALIASES_XLAYER = lowerCaseValues({
330
285
  "address_provider": "0x0000000000000000000000000000000000000000",
331
286
  "router": "0xBFab8ebc836E1c4D81837798FC076D219C9a1855",
332
287
  "deposit_and_stake": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
333
- "stable_calc": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
334
- "crypto_calc": '0x69522fb5337663d3B4dFB0030b881c1A750Adb4f',
335
- "factory": '0x0000000000000000000000000000000000000000',
336
- "crvusd_factory": '0x0000000000000000000000000000000000000000',
337
- "eywa_factory": '0x0000000000000000000000000000000000000000',
338
- "crypto_factory": '0x0000000000000000000000000000000000000000',
288
+ "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
339
289
  "twocrypto_factory": '0x0c59d36b23f809f8b6C7cb4c8C590a0AC103baEf',
340
290
  "tricrypto_factory": '0xd3B17f862956464ae4403cCF829CE69199856e1e',
341
- "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
342
291
  "factory_admin": '0x0000000000000000000000000000000000000000',
343
292
  });
344
- export const ALIASES_MANTLE = lowerCaseValues({
293
+ const ALIASES_MANTLE = lowerCaseValues({
345
294
  "crv": "0x0000000000000000000000000000000000000000",
346
295
  "child_gauge_factory": "0x0B8D6B6CeFC7Aa1C2852442e518443B1b22e1C52",
347
296
  "child_gauge_factory_old": "0xeF672bD94913CB6f1d2812a6e18c1fFdEd8eFf5c",
@@ -351,17 +300,226 @@ export const ALIASES_MANTLE = lowerCaseValues({
351
300
  "address_provider": "0x0000000000000000000000000000000000000000",
352
301
  "router": "0x4f37A9d177470499A2dD084621020b023fcffc1F",
353
302
  "deposit_and_stake": "0x5552b631e2ad801faa129aacf4b701071cc9d1f7",
354
- "stable_calc": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
355
- "crypto_calc": '0xd6681e74eEA20d196c15038C580f721EF2aB6320',
356
- "factory": '0x0000000000000000000000000000000000000000',
357
- "crvusd_factory": '0x0000000000000000000000000000000000000000',
358
- "eywa_factory": '0x0000000000000000000000000000000000000000',
359
- "crypto_factory": '0x0000000000000000000000000000000000000000',
303
+ "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
360
304
  "twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
361
305
  "tricrypto_factory": '0x0C9D8c7e486e822C29488Ff51BFf0167B4650953',
362
- "stable_ng_factory": '0x5eeE3091f747E60a045a2E715a4c71e600e31F6E',
363
306
  "factory_admin": '0x0000000000000000000000000000000000000000',
364
307
  });
308
+ export const NETWORK_CONSTANTS = {
309
+ 1: {
310
+ NAME: 'ethereum',
311
+ ALIASES: ALIASES_ETHEREUM,
312
+ POOLS_DATA: POOLS_DATA_ETHEREUM,
313
+ LLAMMAS_DATA: LLAMMAS_DATA_ETHEREUM,
314
+ COINS: COINS_ETHEREUM,
315
+ NATIVE_COIN: {
316
+ symbol: 'ETH',
317
+ wrappedSymbol: 'WETH',
318
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
319
+ wrappedAddress: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'.toLowerCase(),
320
+ },
321
+ cTokens: cTokensEthereum,
322
+ yTokens: yTokensEthereum,
323
+ ycTokens: ycTokensEthereum,
324
+ aTokens: aTokensEthereum,
325
+ },
326
+ 10: {
327
+ NAME: 'optimism',
328
+ ALIASES: ALIASES_OPTIMISM,
329
+ POOLS_DATA: POOLS_DATA_OPTIMISM,
330
+ COINS: COINS_OPTIMISM,
331
+ NATIVE_COIN: {
332
+ symbol: 'ETH',
333
+ wrappedSymbol: 'WETH',
334
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
335
+ wrappedAddress: '0x4200000000000000000000000000000000000006'.toLowerCase(),
336
+ },
337
+ },
338
+ 56: {
339
+ NAME: 'bsc',
340
+ ALIASES: ALIASES_BSC,
341
+ POOLS_DATA: POOLS_DATA_BSC,
342
+ COINS: COINS_BSC,
343
+ NATIVE_COIN: {
344
+ symbol: 'BNB',
345
+ wrappedSymbol: 'WBNB',
346
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
347
+ wrappedAddress: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'.toLowerCase(),
348
+ },
349
+ },
350
+ 100: {
351
+ NAME: 'xdai',
352
+ ALIASES: ALIASES_XDAI,
353
+ POOLS_DATA: POOLS_DATA_XDAI,
354
+ COINS: COINS_XDAI,
355
+ NATIVE_COIN: {
356
+ symbol: 'XDAi',
357
+ wrappedSymbol: 'WXDAI',
358
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
359
+ wrappedAddress: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d'.toLowerCase(),
360
+ },
361
+ },
362
+ 137: {
363
+ NAME: 'polygon',
364
+ ALIASES: ALIASES_POLYGON,
365
+ POOLS_DATA: POOLS_DATA_POLYGON,
366
+ COINS: COINS_POLYGON,
367
+ NATIVE_COIN: {
368
+ symbol: 'MATIC',
369
+ wrappedSymbol: 'WMATIC',
370
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
371
+ wrappedAddress: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'.toLowerCase(),
372
+ },
373
+ aTokens: aTokensPolygon,
374
+ },
375
+ 196: {
376
+ NAME: 'x-layer',
377
+ ALIASES: ALIASES_XLAYER,
378
+ POOLS_DATA: POOLS_DATA_XLAYER,
379
+ COINS: COINS_XLAYER,
380
+ NATIVE_COIN: {
381
+ symbol: 'OKB',
382
+ wrappedSymbol: 'WOKB',
383
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
384
+ wrappedAddress: '0xe538905cf8410324e03a5a23c1c177a474d59b2b'.toLowerCase(),
385
+ },
386
+ },
387
+ 250: {
388
+ NAME: 'fantom',
389
+ ALIASES: ALIASES_FANTOM,
390
+ POOLS_DATA: POOLS_DATA_FANTOM,
391
+ COINS: COINS_FANTOM,
392
+ NATIVE_COIN: {
393
+ symbol: 'FTM',
394
+ wrappedSymbol: 'WFTM',
395
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
396
+ wrappedAddress: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83'.toLowerCase(),
397
+ },
398
+ cTokens: cTokensFantom,
399
+ aTokens: aTokensFantom,
400
+ },
401
+ 252: {
402
+ NAME: 'fraxtal',
403
+ ALIASES: ALIASES_FRAXTAL,
404
+ POOLS_DATA: POOLS_DATA_FRAXTAL,
405
+ COINS: COINS_FRAXTAL,
406
+ NATIVE_COIN: {
407
+ symbol: 'frxETH',
408
+ wrappedSymbol: 'wfrxETH',
409
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
410
+ wrappedAddress: '0xfc00000000000000000000000000000000000006'.toLowerCase(),
411
+ },
412
+ },
413
+ 324: {
414
+ NAME: 'zksync',
415
+ ALIASES: ALIASES_ZKSYNC,
416
+ POOLS_DATA: POOLS_DATA_ZKSYNC,
417
+ COINS: COINS_ZKSYNC,
418
+ NATIVE_COIN: {
419
+ symbol: 'ETH',
420
+ wrappedSymbol: 'WETH',
421
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
422
+ wrappedAddress: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91'.toLowerCase(),
423
+ },
424
+ },
425
+ 1284: {
426
+ NAME: 'moonbeam',
427
+ ALIASES: ALIASES_MOONBEAM,
428
+ POOLS_DATA: POOLS_DATA_MOONBEAM,
429
+ COINS: COINS_MOONBEAM,
430
+ NATIVE_COIN: {
431
+ symbol: 'GLMR',
432
+ wrappedSymbol: 'WGLMR',
433
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
434
+ wrappedAddress: '0xAcc15dC74880C9944775448304B263D191c6077F'.toLowerCase(),
435
+ },
436
+ },
437
+ 2222: {
438
+ NAME: 'kava',
439
+ ALIASES: ALIASES_KAVA,
440
+ POOLS_DATA: POOLS_DATA_KAVA,
441
+ COINS: COINS_KAVA,
442
+ NATIVE_COIN: {
443
+ symbol: 'KAVA',
444
+ wrappedSymbol: 'WKAVA',
445
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
446
+ wrappedAddress: '0xc86c7C0eFbd6A49B35E8714C5f59D99De09A225b'.toLowerCase(),
447
+ },
448
+ },
449
+ 5000: {
450
+ NAME: 'mantle',
451
+ ALIASES: ALIASES_MANTLE,
452
+ POOLS_DATA: POOLS_DATA_MANTLE,
453
+ COINS: COINS_MANTLE,
454
+ NATIVE_COIN: {
455
+ symbol: 'MNT',
456
+ wrappedSymbol: 'WMNT',
457
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
458
+ wrappedAddress: '0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8'.toLowerCase(),
459
+ },
460
+ },
461
+ 8453: {
462
+ NAME: 'base',
463
+ ALIASES: ALIASES_BASE,
464
+ POOLS_DATA: POOLS_DATA_BASE,
465
+ COINS: COINS_BASE,
466
+ NATIVE_COIN: {
467
+ symbol: 'ETH',
468
+ wrappedSymbol: 'WETH',
469
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
470
+ wrappedAddress: '0x4200000000000000000000000000000000000006'.toLowerCase(),
471
+ },
472
+ },
473
+ 42161: {
474
+ NAME: 'arbitrum',
475
+ ALIASES: ALIASES_ARBITRUM,
476
+ POOLS_DATA: POOLS_DATA_ARBITRUM,
477
+ COINS: COINS_ARBITRUM,
478
+ NATIVE_COIN: {
479
+ symbol: 'ETH',
480
+ wrappedSymbol: 'WETH',
481
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
482
+ wrappedAddress: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1'.toLowerCase(),
483
+ },
484
+ },
485
+ 42220: {
486
+ NAME: 'celo',
487
+ ALIASES: ALIASES_CELO,
488
+ POOLS_DATA: POOLS_DATA_CELO,
489
+ COINS: COINS_CELO,
490
+ NATIVE_COIN: {
491
+ symbol: 'CELO',
492
+ wrappedSymbol: 'WCELO',
493
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
494
+ wrappedAddress: '0x3Ad443d769A07f287806874F8E5405cE3Ac902b9'.toLowerCase(),
495
+ },
496
+ },
497
+ 43114: {
498
+ NAME: 'avalanche',
499
+ ALIASES: ALIASES_AVALANCHE,
500
+ POOLS_DATA: POOLS_DATA_AVALANCHE,
501
+ COINS: COINS_AVALANCHE,
502
+ NATIVE_COIN: {
503
+ symbol: 'AVAX',
504
+ wrappedSymbol: 'WAVAX',
505
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
506
+ wrappedAddress: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7'.toLowerCase(),
507
+ },
508
+ aTokens: aTokensAvalanche,
509
+ },
510
+ 1313161554: {
511
+ NAME: 'aurora',
512
+ ALIASES: ALIASES_AURORA,
513
+ POOLS_DATA: POOLS_DATA_AURORA,
514
+ COINS: COINS_AURORA,
515
+ NATIVE_COIN: {
516
+ symbol: 'ETH',
517
+ wrappedSymbol: 'WETH',
518
+ address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
519
+ wrappedAddress: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB'.toLowerCase(),
520
+ },
521
+ },
522
+ };
365
523
  const registry_exchange_deprecated = {
366
524
  '1': '0x99a58482bd75cbab83b27ec03ca68ff489b5788f',
367
525
  '10': '0x22d710931f01c1681ca1570ff016ed42eb7b7c2a',
package/lib/curve.d.ts CHANGED
@@ -3,17 +3,6 @@ import { Provider as MulticallProvider, Contract as MulticallContract } from "@c
3
3
  import { IPoolData, IDict, ICurve, INetworkName, IChainId, IFactoryPoolType, Abi } from "./interfaces";
4
4
  export declare const memoizedContract: () => (address: string, abi: any, provider: BrowserProvider | JsonRpcProvider | Signer) => Contract;
5
5
  export declare const memoizedMulticallContract: () => (address: string, abi: any) => MulticallContract;
6
- export declare const NATIVE_TOKENS: {
7
- [index: number]: {
8
- symbol: string;
9
- wrappedSymbol: string;
10
- address: string;
11
- wrappedAddress: string;
12
- };
13
- };
14
- export declare const NETWORK_CONSTANTS: {
15
- [index: number]: any;
16
- };
17
6
  export type ContractItem = {
18
7
  contract: Contract;
19
8
  multicallContract: MulticallContract;
@@ -25,6 +14,7 @@ declare class Curve implements ICurve {
25
14
  signer: ethers.Signer | null;
26
15
  signerAddress: string;
27
16
  chainId: IChainId;
17
+ isLiteChain: boolean;
28
18
  contracts: {
29
19
  [index: string]: ContractItem;
30
20
  };
@@ -52,6 +42,22 @@ declare class Curve implements ICurve {
52
42
  NETWORK_NAME: INetworkName;
53
43
  ALIASES: IDict<string>;
54
44
  POOLS_DATA: IDict<IPoolData>;
45
+ STABLE_FACTORY_CONSTANTS: {
46
+ implementationABIDict?: IDict<any>;
47
+ basePoolIdZapDict?: IDict<{
48
+ address: string;
49
+ ABI: any;
50
+ }>;
51
+ stableNgBasePoolZap?: string;
52
+ };
53
+ CRYPTO_FACTORY_CONSTANTS: {
54
+ lpTokenBasePoolIdDict?: IDict<string>;
55
+ basePoolIdZapDict?: IDict<{
56
+ address: string;
57
+ ABI: any;
58
+ }>;
59
+ tricryptoDeployImplementations?: IDict<string | number>;
60
+ };
55
61
  FACTORY_POOLS_DATA: IDict<IPoolData>;
56
62
  CRVUSD_FACTORY_POOLS_DATA: IDict<IPoolData>;
57
63
  EYWA_FACTORY_POOLS_DATA: IDict<IPoolData>;
@@ -85,24 +91,24 @@ declare class Curve implements ICurve {
85
91
  }): Promise<void>;
86
92
  initContract: (address: string, abi: any, provider: ethers.BrowserProvider | ethers.JsonRpcProvider | ethers.Signer) => ethers.Contract;
87
93
  initMulticallContract: (address: string, abi: any) => MulticallContract;
88
- setContract(address: string, abi: any): void;
94
+ setContract(address: string | undefined, abi: any): void;
89
95
  _filterHiddenPools(pools: IDict<IPoolData>): Promise<IDict<IPoolData>>;
90
96
  _updateDecimalsAndGauges(pools: IDict<IPoolData>): void;
91
97
  fetchFactoryPools: (useApi?: boolean) => Promise<void>;
92
98
  fetchCrvusdFactoryPools: (useApi?: boolean) => Promise<void>;
93
99
  fetchEywaFactoryPools: (useApi?: boolean) => Promise<void>;
94
100
  fetchCryptoFactoryPools: (useApi?: boolean) => Promise<void>;
101
+ fetchStableNgFactoryPools: (useApi?: boolean) => Promise<void>;
95
102
  fetchTworyptoFactoryPools: (useApi?: boolean) => Promise<void>;
96
103
  fetchTricryptoFactoryPools: (useApi?: boolean) => Promise<void>;
97
- fetchStableNgFactoryPools: (useApi?: boolean) => Promise<void>;
98
104
  fetchNewFactoryPools: () => Promise<string[]>;
99
- fetchNewStableNgFactoryPools: () => Promise<string[]>;
100
105
  fetchNewCryptoFactoryPools: () => Promise<string[]>;
106
+ fetchNewStableNgFactoryPools: () => Promise<string[]>;
101
107
  fetchNewTwocryptoFactoryPools: () => Promise<string[]>;
102
108
  fetchNewTricryptoFactoryPools: () => Promise<string[]>;
103
109
  fetchRecentlyDeployedFactoryPool: (poolAddress: string) => Promise<string>;
104
- fetchRecentlyDeployedStableNgFactoryPool: (poolAddress: string) => Promise<string>;
105
110
  fetchRecentlyDeployedCryptoFactoryPool: (poolAddress: string) => Promise<string>;
111
+ fetchRecentlyDeployedStableNgFactoryPool: (poolAddress: string) => Promise<string>;
106
112
  fetchRecentlyDeployedTwocryptoFactoryPool: (poolAddress: string) => Promise<string>;
107
113
  fetchRecentlyDeployedTricryptoFactoryPool: (poolAddress: string) => Promise<string>;
108
114
  getMainPoolList: () => string[];
@@ -110,9 +116,9 @@ declare class Curve implements ICurve {
110
116
  getCrvusdFactoryPoolList: () => string[];
111
117
  getEywaFactoryPoolList: () => string[];
112
118
  getCryptoFactoryPoolList: () => string[];
119
+ getStableNgFactoryPoolList: () => string[];
113
120
  getTworyptoFactoryPoolList: () => string[];
114
121
  getTricryptoFactoryPoolList: () => string[];
115
- getStableNgFactoryPoolList: () => string[];
116
122
  getPoolList: () => string[];
117
123
  getPoolsData: () => IDict<IPoolData>;
118
124
  getGaugeImplementation: (factoryType: IFactoryPoolType) => string;