Open ahsan-javaiid opened 4 months ago
cc @ricmoo for review on this PR. Feel free to let me know if any changes are required. Super excited to land this PR into ethers.js 🚀
cc: @ricmoo Reminder for review on this PR.
looks good
cc: @ricmoo Reminder for review on this PR. 🙏
Description
This PR adds RNS support to ether.js. Users will be able to resolve .rsk names on Rootstock network to easily find and locate addresses using ethers.js similiar to ens.
RNS service: https://manager.rns.rifos.org/
Note: RNS is a name service similiar to ens on Rootstock network. https://dev.rootstock.io/rif/rns/
About Rootstock
Website: https://rootstock.io/ Defillama: https://defillama.com/chain/Rootstock Explorer: https://explorer.rootstock.io/ Developer portal: https://dev.rootstock.io/
Motivation
Lot of wallets, web3 tools and defi projects are using ethers.js provider instance methods
resolveName
andlookupAddress
to resolve ens names. AddingRNS
support in ethers.js will automatically enablerns
feature in lot of these defi projects.Testing Script
The
resolveName
andlookupAddress
on provider class will resolve .rsk names and addresses. Attached is the demo script.Build the branch in this pr:
npm run build-dist
Now run the below script in same directory.Feel free to review the pr and let us know if any changes are required.