import { Provider } from '@ethersproject/abstract-provider'; import { BigNumber, BigNumberish } from 'ethers'; import { BridgeRoute, BridgeRouteV2, BridgeTokenCandidate, FeeConfig, GetBridgeRouteV2Parameters, GetBridgeTokenCandidatesParameters, Query, SynapseModule, SynapseModuleSet } from '../module'; import { ChainProvider } from '../router'; import { GasZipModule } from './gasZipModule'; export declare class GasZipModuleSet extends SynapseModuleSet { readonly moduleName = "Gas.zip"; readonly allEvents: never[]; readonly isBridgeV2Supported = true; modules: { [chainId: number]: GasZipModule; }; providers: { [chainId: number]: Provider; }; private cachedChains; constructor(chains: ChainProvider[]); /** * @inheritdoc SynapseModuleSet.getModule */ getModule(chainId: number): SynapseModule | undefined; /** * @inheritdoc SynapseModuleSet.getEstimatedTime */ getEstimatedTime(): number; /** * @inheritdoc SynapseModuleSet.getGasDropAmount */ getGasDropAmount(): Promise; getBridgeTokenCandidates({ fromChainId, toChainId, toToken, }: GetBridgeTokenCandidatesParameters): Promise; getBridgeRouteV2(params: GetBridgeRouteV2Parameters): Promise; /** * @inheritdoc SynapseModuleSet.getBridgeRoutes */ getBridgeRoutes(originChainId: number, destChainId: number, tokenIn: string, tokenOut: string, amountIn: BigNumberish): Promise; /** * @inheritdoc SynapseModuleSet.getFeeData */ getFeeData(): Promise<{ feeAmount: BigNumber; feeConfig: FeeConfig; }>; /** * @inheritdoc SynapseModuleSet.getDefaultPeriods */ getDefaultPeriods(): { originPeriod: number; destPeriod: number; }; /** * @inheritdoc SynapseModuleSet.applySlippage */ applySlippage(originQueryPrecise: Query, destQueryPrecise: Query): { originQuery: Query; destQuery: Query; }; private getAllChainIds; private getGasZipId; private getChains; private getGasZipZapData; /** * Checks if the latest block heights reported by gas.zip are within the maximum age. * Both chains must be up to date to enable the bridge. */ private checkBlockHeights; /** * Checks if the block height is within the maximum age for a chain. */ private checkBlockHeight; }