@curvefi/api 2.60.1 → 2.60.2

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.
package/lib/curve.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ethers, Contract, Networkish, BigNumberish, Numeric } from "ethers";
2
- import { Provider as MulticallProvider, Contract as MulticallContract } from 'ethcall';
2
+ import { Provider as MulticallProvider, Contract as MulticallContract } from "@curvefi/ethcall";
3
3
  import { IPoolData, IDict, ICurve, INetworkName, IChainId, IFactoryPoolType } from "./interfaces";
4
4
  export declare const NATIVE_TOKENS: {
5
5
  [index: number]: {
package/lib/curve.js CHANGED
@@ -55,7 +55,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
55
55
  return to.concat(ar || Array.prototype.slice.call(from));
56
56
  };
57
57
  import { ethers, AbstractProvider, } from "ethers";
58
- import { Provider as MulticallProvider } from 'ethcall';
58
+ import { Provider as MulticallProvider } from "@curvefi/ethcall";
59
59
  import { getFactoryPoolData } from "./factory/factory.js";
60
60
  import { getFactoryPoolsDataFromApi } from "./factory/factory-api.js";
61
61
  import { getCryptoFactoryPoolData } from "./factory/factory-crypto.js";
@@ -1042,6 +1042,9 @@ var Curve = /** @class */ (function () {
1042
1042
  NETWORK_CONSTANTS[this.chainId].aTokens,
1043
1043
  ], cTokens = _d[0], yTokens = _d[1], ycTokens = _d[2], aTokens = _d[3];
1044
1044
  customAbiTokens = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], cTokens, true), yTokens, true), ycTokens, true), aTokens, true);
1045
+ if (this.chainId === 5000) {
1046
+ this.constantOptions = { gasLimit: 9000000 };
1047
+ }
1045
1048
  this.multicallProvider = new MulticallProvider(this.chainId, this.provider);
1046
1049
  if (!this.signer) return [3 /*break*/, 15];
1047
1050
  _p.label = 11;
@@ -54,7 +54,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
54
54
  }
55
55
  return to.concat(ar || Array.prototype.slice.call(from));
56
56
  };
57
- import { Contract as MulticallContract } from "ethcall";
57
+ import { Contract as MulticallContract } from "@curvefi/ethcall";
58
58
  import { curve } from "../curve.js";
59
59
  import ERC20ABI from "../constants/abis/ERC20.json" assert { type: 'json' };
60
60
  import factoryGaugeABI from "../constants/abis/gauge_factory.json" assert { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  import { Contract, ethers } from "ethers";
2
- import { Contract as MulticallContract, Provider as MulticallProvider } from "ethcall";
2
+ import { Contract as MulticallContract, Provider as MulticallProvider } from "@curvefi/ethcall";
3
3
  export interface IDict<T> {
4
4
  [index: string]: T;
5
5
  }
package/lib/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BrowserProvider, Contract, JsonRpcProvider, Signer } from 'ethers';
2
- import { Contract as MulticallContract } from "ethcall";
2
+ import { Contract as MulticallContract } from "@curvefi/ethcall";
3
3
  import BigNumber from 'bignumber.js';
4
4
  import { IBasePoolShortItem, IChainId, IDict, INetworkName, IRewardFromApi, IVolumeAndAPYs, REFERENCE_ASSET } from './interfaces';
5
5
  export declare const ETH_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
package/lib/utils.js CHANGED
@@ -56,7 +56,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
56
56
  };
57
57
  import axios from 'axios';
58
58
  import { Contract } from 'ethers';
59
- import { Contract as MulticallContract } from "ethcall";
59
+ import { Contract as MulticallContract } from "@curvefi/ethcall";
60
60
  import BigNumber from 'bignumber.js';
61
61
  import { curve, NETWORK_CONSTANTS } from "./curve.js";
62
62
  import { _getAllPoolsFromApi, _getFactoryAPYs, _getSubgraphData, _getVolumes, } from "./external-api.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.60.1",
3
+ "version": "2.60.2",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "axios": "^0.21.1",
36
36
  "bignumber.js": "^9.0.1",
37
- "ethcall": "6.0.6",
37
+ "@curvefi/ethcall": "6.0.7",
38
38
  "ethers": "^6.11.0",
39
39
  "memoizee": "^0.4.15"
40
40
  }