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