/// import { BN } from 'ethereumjs-util'; import { EthereumActionContract, EthereumAddress, EthereumPrivateKey, EthereumPublicKey } from '../models'; /** Attempts to transform a value to a standard Buffer class */ export declare function toEthBuffer(data: string | BN | Buffer | number): Buffer; export declare function matchKnownAbiTypes(contract: EthereumActionContract): { erc20: boolean; }; /** Compare two '0x' pre-fixed eth values (e.g. address or private key) * adds 0x if missing, also aligns case (to lowercase) */ export declare function isSameEthHexValue(value1: EthereumAddress | EthereumPrivateKey, value2: EthereumAddress | EthereumPrivateKey): boolean; /** Compare two '0x' or '0x40' pre-fixed eth public keys (djusts for lowercase too) */ export declare function isSameEthPublicKey(value1: EthereumPublicKey, value2: EthereumPublicKey): boolean; type GasOptions = { gasPrice?: string; gasLimit?: string; nonce?: string; }; /** Returns an object with gasPrice, gasLimit, nonce - but excludes any of these if empty */ export declare function removeEmptyValuesFromGasOptions(gasPrice?: string, gasLimit?: string, nonce?: string): GasOptions; /** use BN math functions to increase value by percentage */ export declare function increaseBNbyPercentage(baseValue: BN, percentageIncrease: number): BN; /** Check if the given value is a string or instance of string */ export declare function isAString(value: any): boolean; /** Checks if string is a valid hex string - optional '0x' prefix - Note: ethers.isHexString requires '0x' prefix */ export declare function isHexString(value: any): Boolean; /** * Converts string into UInt8Array */ export declare function convertStringToUInt8Array(dataString: string): Uint8Array; export {};