@authereum/resolution
Version:
Domain Resolution for blockchain domains
21 lines (20 loc) • 1.06 kB
TypeScript
import Contract from "./contract";
/**
* Parses object in format { "key.key2.key3" : value } into { key: { key2: {key3: value } } }
* @param object object to parse
* @param key string to split
* @param value value to make it equal to
*/
export declare function set<T>(object: T, key: string, value: any): T;
/**
* Should invert the object (keys becomes values and values becomes keys)
* @param object
*/
export declare function invert(object: Record<string, string | number>): Record<string, string>;
export declare function signedInfuraLink(infura: string, network?: string): string;
export declare function isLegacyResolver(resolverAddress: string): boolean;
export declare function isWellKnownLegacyResolver(resolverAddress: string): boolean;
export declare function isUpToDateResolver(resolverAddress: string): boolean;
export declare function hexToBytes(hexString: string): number[];
export declare function getStartingBlock(contract: Contract, tokenId: string): Promise<string>;
export declare function isStringArray(value: any): value is string[];