-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ENS default public resolver set functions * resolver set functions * resolver interface Ids * Breaking Changes * formatting * formatting * resolver get functions * get funcs list supported in resolver interfaces * resolver functions in ENS class * Breaking Changes * formatting * set record in registry * private name conv * web3 errors * removed unused import * supportsInterface
- Loading branch information
Showing
8 changed files
with
266 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
export const registryContractAddress = '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'; | ||
|
||
// https://docs.ens.domains/contract-developer-guide/writing-a-resolver | ||
// resolver interface Ids | ||
export const interfaceIds: { [T: string]: string } = { | ||
addr: '0x3b3b57de', | ||
name: '0x691f3431', | ||
abi: '0x2203ab56', | ||
pubkey: '0xc8690233', | ||
text: '0x59d1d43c', | ||
contenthash: '0xbc1c58d1', | ||
}; | ||
|
||
// functions list supported in resolver interfaces | ||
export const methodsInInterface: { [T: string]: string } = { | ||
setAddr: 'addr', | ||
addr: 'addr', | ||
setPubkey: 'pubkey', | ||
pubkey: 'pubkey', | ||
setContenthash: 'contenthash', | ||
contenthash: 'contenthash', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.