Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
/ rns-mainnet Public archive

RNS Mainnet suite - 🚦 validate your implementations

License

Notifications You must be signed in to change notification settings

rnsdomains/rns-mainnet

Repository files navigation

logo

RIF Name Service

Implementation for Registry, Registrar, Deed and Resolver for the RIF Name Service

The implementaiton found here is the actual implementation deployed on RSK MainNet. RSK Registrar and resolvers might change over time but RNS Registry will not ever change.

For more information see the documentation.

Mainnet deployment

Details of the registry in the documentation site.

Testnet deployment

See RNS Testnet documentation section for testing environment variants and information.

Install Truffle

sudo npm install -g truffle
npm install

For details see Truffle Docs

Install Package

If Truffle is already installed run:

npm install

Deploy

Deploy to local ganache-cli:

truffle deploy --network dev

Deploy to local RSK node

truffle deploy --network rsk

Test

Test on local ganache-cli:

truffle test --network dev

Test on local RSK node:

truffle test --network rsk

Contracts

RNS.sol

Implementation of the Registry contract, it provides a simple mapping between a domain and its Resolver. Everything related to a domain ownership is managed in this contract, including ownership transfer and sub-domain creation.

TokenRegistrar.sol

Implementation of the Registrar, it handles the auction process for each subnode of the node it owns.

TokenDeed.sol

Implementation of the Deed, it holds RIF tokens in exchange for ownership of a node.

PublicResolver.sol

Implementation of a simple resolver anyone can use; only allows the owner of a node to set its address.

Documentation

For more information see RNS Docs

Contributors


Related links

About

RNS Mainnet suite - 🚦 validate your implementations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •