import { StorageTypes } from '@requestnetwork/types'; import { BigNumber } from 'ethers'; /** * Collection of utils functions related to Ethereum Storage */ /** * Get the name of the Ethereum network from its id * * @param networkId Id of the network * @return name of the network */ export declare const getEthereumStorageNetworkNameFromId: (networkId: StorageTypes.EthereumNetwork) => string; export declare const getEthereumStorageNetworkIdFromName: (name: string) => number | undefined; /** * Ensure the gas price returned by an API is safe to use * An API could return a high value if it's corrupted or if the format changes * The web3 provider would not in certain cases ask the user for confirmation * therefore we have to ensure the gas price is not too high * * @param gasPrice Value of the gas price * @returns True if the gas price can be used */ export declare const isGasPriceSafe: (gasPrice: BigNumber) => boolean; //# sourceMappingURL=ethereum-utils.d.ts.map