import { IConnection } from './Connection'; import { ethers } from 'ethers'; /** * Utils-class for the wallet */ export declare class WalletUtils { connection: IConnection; /** * initializes the class * @param connection The backend connection object. */ constructor(connection: IConnection); /** * Converts an amount of ETH to Wei * @param amount The amount in ETH * @returns The amount in Wei */ ethToWei(amount: string): string; /** * Converts an amount of Wei to ETH * @param amount The amount in Wei * @returns The amount in ETH */ weiToEth(amount: string): string; /** * Returns the checksum-address for a provided address * @param address The address * @returns The checksum-address */ getChecksumAddress(address: string): string; /** * Gets the address of the stored privateKey of the connection-object * @returns The address of the stored privateKey */ getAddress(): string; /** * Gets the ethereum-account from the stored privateKey of the connection-object * @returns The address and the privateKey */ getWalletFromLocalKey(): { address: string; privateKey: string; }; /** * Creates a wallet from the provided mnemonic * @param mnemonic The 12 word string used to generate the wallet. * @returns The created wallet */ getWalletFromMnemonic(mnemonic: string): ethers.Wallet; /** * Creates a random wallet from the entropy * @param entropy The hex string representing the added entropy for the randomness * @returns The created wallet */ createRandomWallet(entropy?: string): import("web3/eth/accounts").Account; /** * Converts a mnemonic to a seed string * @param seedPhrase The 12 word mnemonic * @returns The seed-string */ bip39MnemonicToSeed(seedPhrase: string): Promise; /** * Converts an entropy into a 12 word seed phrase * @param entropy The string representing the added entropy to create a Mnemonic * @returns The mnemonic */ bip39EntropyToMnemomic(entropy?: string): string; } export default WalletUtils;