Registrator
contract is allowing users to transfer a pre-defined amount of tokens that will be accounted for the purpose of relay registration. Contract operator can set a conversion rate of the input tokens to registration credits.
These registration accounts can be:
- checked to verify registration status
- slashed by admins in response to relay misbehavior
Built on top of the OpenZeppelin framework, developed using HardHat env.
$ npm i
$ npx hardhat node
$ npx hardhat test --network localhost
$ npx hardhat run --network localhost scripts/deploy.ts