Renewer
- Rootstock (RSK) MainNet: 0x7a9872a7615c475b62a62b8f6e491077fb05f663
- Rootstock (RSK) TestNet: 0xe48ad1d5fbf61394b5a7d81ab2f36736a046657b
Has renewer role in RSK Owner
.
-
Accepts payments via
- ERC-20
approve()
+register()
.3 - ERC-721
transferAndCall()
.4
- ERC-20
-
Calculates price using
NamePrice
contract. -
It has an owner that can2 change name price contract.
Public methods
price
function price (string memory name, uint expires, uint duration) public view returns(uint);
Returns the price of a name in RIF
name
not used. Pass''
expires
not used. Pass0
duration
to register the name for.
renew
function renew(string calldata name, uint duration) external;
Renews a name in Node Owner.
This method should be called if the domain is owned by someone.
You must have previously executed approve()
for the amount of tokens to be transferred.
name
The name to register.duration
Time to register in years.
Register via ERC-677
Use RIF transferAndCall
method with the following encoding to perform a RIF token transfer and domain renewal in a single transaction.
Encoding:
size | size | offset |
---|---|---|
signature | 4 bytes | 0 bytes |
duration | 32 bytes | 4 bytes |
name | variable size | 36 bytes |
Parameters are used in the same manner as register
. Use 0xc2c414c8
as the signature.