Skip to content

Commit

Permalink
fix: fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovdg committed Nov 4, 2024
1 parent 1f80611 commit 9c6d8ea
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
8 changes: 3 additions & 5 deletions src/curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ import gasOracleABI from './constants/abis/gas_oracle_optimism.json' assert { ty
import gasOracleBlobABI from './constants/abis/gas_oracle_optimism_blob.json' assert { type: 'json'};
import votingProposalABI from './constants/abis/voting_proposal.json' assert { type: 'json'};
import circulatingSupplyABI from './constants/abis/circulating_supply.json' assert { type: 'json'};
import rootGaugeFactoryABI from "./constants/abis/gauge_factory/root_gauge_factory.json";
import rootGaugeFactoryABI from "./constants/abis/gauge_factory/root_gauge_factory.json" assert { type: 'json'};

import { lowerCasePoolDataAddresses, extractDecimals, extractGauges } from "./constants/utils.js";
import {_getCurveLiteNetworks, _getHiddenPools, _getLiteNetworksData} from "./external-api.js";
import {_getHiddenPools} from "./external-api.js";
import { L2Networks } from "./constants/L2Networks.js";
import { getTwocryptoFactoryPoolData } from "./factory/factory-twocrypto.js";
import {getNetworkConstants, getNetworkNameByChainId} from "./utils";
import {getNetworkConstants} from "./utils.js";

export const memoizedContract = (): (address: string, abi: any, provider: BrowserProvider | JsonRpcProvider | Signer) => Contract => {
const cache: Record<string, Contract> = {};
Expand Down Expand Up @@ -254,8 +254,6 @@ class Curve implements ICurve {
this.isLiteChain = !(this.chainId in NETWORK_CONSTANTS);

const network_constants = await getNetworkConstants(this.chainId, this.isLiteChain);

console.log('NETWORK DATA',network_constants)
this.constants.NATIVE_TOKEN = network_constants.NATIVE_COIN;
this.constants.NETWORK_NAME = network_constants.NAME;
this.constants.ALIASES = network_constants.ALIASES;
Expand Down
8 changes: 4 additions & 4 deletions src/pools/PoolTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import {
import {IDict, IProfit} from '../interfaces';
import { curve } from "../curve.js";
import ERC20Abi from '../constants/abis/ERC20.json' assert { type: 'json' };
import {CorePool} from "./subClasses/corePool";
import {IStatsPool, StatsPool} from "./subClasses/statsPool";
import {IWalletPool, WalletPool} from "./subClasses/walletPool";
import {checkVyperVulnerability} from "./utils";
import {CorePool} from "./subClasses/corePool.js";
import {StatsPool} from "./subClasses/statsPool.js";
import {WalletPool} from "./subClasses/walletPool.js";
import {checkVyperVulnerability} from "./utils.js";

export class PoolTemplate extends CorePool {
isGaugeKilled: () => Promise<boolean>;
Expand Down
2 changes: 1 addition & 1 deletion src/pools/poolConstructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
swapWrappedRequiredMixin,
} from "./mixins/swapWrappedMixins.js";
import { getCountArgsOfMethodByAbi, findAbiSignature } from "../utils.js";
import {StatsPool} from "./subClasses/statsPool";
import {StatsPool} from "./subClasses/statsPool.js";


export const getPool = (poolId: string): PoolTemplate => {
Expand Down
2 changes: 1 addition & 1 deletion src/pools/subClasses/corePool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {curve} from "../../curve.js";
import {GaugePool, IGaugePool} from "./gaugePool";
import {GaugePool, IGaugePool} from "./gaugePool.js";

export interface ICorePool {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pools/subClasses/gaugePool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IDict} from '../../interfaces';
import {IDict} from '../../interfaces.js';
import {curve} from "../../curve.js";
import {
DIGas,
Expand Down
4 changes: 2 additions & 2 deletions src/pools/subClasses/statsPool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { curve } from "../../curve.js";
import {IPoolType, IReward} from '../../interfaces';
import {IPoolType, IReward} from '../../interfaces.js';
import {_getPoolsFromApi} from '../../external-api.js';
import {
_getUsdRate,
Expand All @@ -9,7 +9,7 @@ import {
_getRewardsFromApi,
getVolumeApiController,
} from '../../utils.js';
import {PoolTemplate} from "../PoolTemplate";
import {PoolTemplate} from "../PoolTemplate.js";

export interface IStatsParameters {
lpTokenSupply: string,
Expand Down

0 comments on commit 9c6d8ea

Please sign in to comment.