UNPKG

barterjs-sdk

Version:
21 lines (20 loc) 818 B
import { Token } from '../entities/Token'; /** * Validates an address and returns the parsed (checksummed) version of that address * @param address the unchecksummed hex address */ export declare function validateAndParseAddressByChainId(address: string, chainId: string): string; export declare function validateToken(token: Token): string; /** * convert hex format address to decimal array * @param address * @param chainId */ export declare function hexToDecimalArray(address: string, chainId: string): number[]; export declare function decimalArrayToHex(decimals: number[]): string; export declare function getHexAddress(address: string, chainId: string, isAddress: boolean): string; /** * @param input * @param hexLength */ export declare function asciiToHex(input: string, isAddress: boolean): string;