UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

34 lines (33 loc) 1.41 kB
import { Contracts } from '../lib/Contracts'; import { address, ContractCallOptions, Integer } from '../types'; export interface AllGasPricesInWei { perL2Tx: Integer; perL1CalldataUnit: Integer; perStorageAllocation: Integer; perArbGasBase: Integer; perArbGasCongestion: Integer; perArbGasTotal: Integer; } export interface SomeGasPricesInWei { perL2Tx: Integer; perL1CalldataUnit: Integer; perStorageAllocation: Integer; } export interface GasAccountingParams { speedLimitPerSecond: Integer; gasPoolMax: Integer; maxTxGasLimit: Integer; } export declare class ArbitrumGasInfo { private contracts; constructor(contracts: Contracts); private static mapToAllGasPricesInWei; private static mapToSomeGasPricesInWei; getPricesInWeiWithAggregator(aggregator: address, options?: ContractCallOptions): Promise<AllGasPricesInWei>; getPricesInWei(options?: ContractCallOptions): Promise<AllGasPricesInWei>; getPricesInArbGasWithAggregator(aggregator: address, options?: ContractCallOptions): Promise<SomeGasPricesInWei>; getPricesInArbGas(options?: ContractCallOptions): Promise<SomeGasPricesInWei>; getGasAccountingParams(options?: ContractCallOptions): Promise<GasAccountingParams>; getL1GasPriceEstimate(options?: ContractCallOptions): Promise<Integer>; getCurrentTxL1GasFees(options?: ContractCallOptions): Promise<Integer>; }