@rsksmart/rns-registry
v1.0.4
Published
RNS Registry
Downloads
116
Readme
npm i @rsksmart/rns-registry
Deployments:
- RSK Mainnet: 0xcb868aeabd31e2b66f74e9a55cf064abb31a4ad5
- RSK Testnet: 0x7d284aaac6e925aad802a53c0c69efe3764597b8
Usage
pragma solidity ^0.5.0;
import "@rsksmart/rns-registry/contracts/AbstractRNS.sol";
contract Registrar {
AbstractRNS rns;
constructor(AbstractRNS _rns) public {
rns = _rns;
}
}
const Web3 = require('web3');
const RNSRegistryData = require('@rsksmart/rns-registry/RNSRegistryData.json');
const web3 = new Web3('https://public-node.rsk.co')
const RNSRegistry = new web3.eth.Contract(RNSRegistryData.abi, RNSRegistryData.address.rskMainnet);