barterjs-sdk
Version:
Barter Network SDK
21 lines (20 loc) • 818 B
TypeScript
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;