evm-blockchain-tools
Version:
This is a collection of resuseable tools to support development for EVM-powered blockchains
12 lines (11 loc) • 817 B
TypeScript
/// <reference types="node" />
import { ethers } from "ethers";
import { GenerateKeyPairResponse, IWeb3Gateway, RecoverPrivateKeyData } from "../common/interfaces";
export declare function encodeFunctionSignature(fnCall: any, params: string[]): string;
export declare function getOptimizedGasPrice(gateway: IWeb3Gateway, addupGas?: string, minGas?: string): Promise<string>;
export declare function getOptimizedGasPriceV2(provider: ethers.providers.Provider, addupGas?: string, minGas?: string, option?: {
useOverridingGas: boolean;
}): Promise<string>;
export declare function generateKeyPair(): Promise<GenerateKeyPairResponse>;
export declare function splitPrivateKeyToParts(privateKey: string, nonce: Buffer): string[];
export declare function recoverPrivateKey(data: RecoverPrivateKeyData): Promise<string>;