@curvefi/api 2.63.9 → 2.63.10

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.
@@ -559,7 +559,7 @@ const _deployGaugeSidechain = (pool, salt, estimateGas) => __awaiter(void 0, voi
559
559
  const _deployGaugeMirror = (chainId, salt, estimateGas) => __awaiter(void 0, void 0, void 0, function* () {
560
560
  if (curve.chainId !== 1)
561
561
  throw Error("There is no deployGaugeMirror method on sidechain network");
562
- const rootGaugeFactory = chainId !== 42161 ? NETWORK_CONSTANTS[curve.chainId].root_gauge_factory : NETWORK_CONSTANTS[curve.chainId].root_gauge_factory_arbitrum;
562
+ const rootGaugeFactory = chainId !== 42161 ? NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory : NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory_arbitrum;
563
563
  const contract = curve.contracts[rootGaugeFactory].contract;
564
564
  const _salt = ethers.encodeBytes32String(salt);
565
565
  const gas = yield contract.deploy_gauge.estimateGas(chainId, Typed.bytes32(_salt), curve.constantOptions);
@@ -594,7 +594,7 @@ export const getDeployedGaugeMirrorAddressByTx = (tx) => __awaiter(void 0, void
594
594
  export const getDeployedGaugeMirrorAddress = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
595
595
  if (curve.chainId !== 1)
596
596
  throw Error("There is no getDeployedGaugeMirrorAddress method on sidechain network");
597
- const rootGaugeFactory = chainId !== 42161 ? NETWORK_CONSTANTS[curve.chainId].root_gauge_factory : NETWORK_CONSTANTS[curve.chainId].root_gauge_factory_arbitrum;
597
+ const rootGaugeFactory = chainId !== 42161 ? NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory : NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory_arbitrum;
598
598
  const contract = curve.contracts[rootGaugeFactory].contract;
599
599
  const gaugeCount = yield contract.get_gauge_count(chainId);
600
600
  const currentIndex = Number(gaugeCount) - 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.63.9",
3
+ "version": "2.63.10",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",