dotbit-sdk-allin
Version:
A complete .bit SDK and utilities in TypeScript
13 lines (12 loc) • 765 B
TypeScript
import { KeyInfo } from '../fetchers/BitIndexer.type';
import { ChainType, CoinType } from '../const';
export declare function pad0x(str: string): string;
export declare function remove0x(str: string): string;
export declare function isEmptyAddress(address: string): boolean;
export declare function sleep(ms: number): Promise<unknown>;
export declare function isTronAddress(address: string): boolean;
export declare function isEthAddress(address: string): boolean;
export declare function checkKeyInfo(keyInfo: KeyInfo): boolean;
export declare function stringVisualLength(str: string): number;
export declare function computeChainTypeByCoinType(coinType: CoinType): ChainType;
export declare function matchDWebProtocol(str: string): RegExpMatchArray;