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

20 lines
590 B
TypeScript
Raw Normal View History

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