ethers.js/lib.esm/hash/namehash.d.ts

20 lines
590 B
TypeScript
Raw Permalink Normal View History

2023-01-28 01:53:29 -05:00
/**
* Returns the ENS %%name%% normalized.
*/
2022-09-05 16:57:11 -04:00
export declare function ensNormalize(name: string): string;
2023-01-28 01:53:29 -05:00
/**
* Returns ``true`` if %%name%% is a valid ENS name.
*/
2023-01-26 23:36:26 -05:00
export declare function isValidName(name: string): name is string;
2023-01-28 01:53:29 -05:00
/**
* Returns the [[link-namehash]] for %%name%%.
*/
2022-09-05 16:57:11 -04:00
export declare function namehash(name: string): string;
2023-01-28 01:53:29 -05:00
/**
* Returns the DNS encoded %%name%%.
*
* This is used for various parts of ENS name resolution, such
* as the wildcard resolution.
*/
2022-09-05 16:57:11 -04:00
export declare function dnsEncode(name: string): string;
//# sourceMappingURL=namehash.d.ts.map