@wttp/site
Version:
Web3 Transfer Protocol (WTTP) - Site Contracts and deployment tools
17 lines • 996 B
TypeScript
import { Provider } from "ethers";
export declare function looseEqual(obj1: any, obj2: any): boolean;
export declare function chunkData(data: Buffer, chunkSize: number): Buffer[];
export declare function getMimeType(filePath: string): string;
export declare function getMimeTypeWithCharset(filePath: string): {
mimeType: string;
charset: string | undefined;
};
export declare function getChainSymbol(provider?: Provider): Promise<string>;
export declare function getChainSymbolFromChainId(chainId: number | bigint): string;
export declare function waitForGasPriceBelowLimit(provider: Provider, gasLimitGwei: number, checkIntervalMs?: number): Promise<void>;
export declare function getDynamicGasSettings(provider: Provider): Promise<{
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
}>;
export declare function getEstimationGasPrice(provider: Provider, customGasPriceGwei?: number, rate?: number, minGasPriceGwei?: number): Promise<bigint>;
//# sourceMappingURL=utils.d.ts.map