This pull request aims at implementing the ERC20 support for the RLN contract. This is the first scenario implementation as listed in https://github.com/vacp2p/rln-contract/issues/1. The contract itself is named as RlnERC20.sol for now. There is also the code for Status Network Token (SNT) inside the SntContract.sol which has been commented out but useful for future reference. A dummy new token can be minted using TokenRln.sol if needed. There are some minor changes with respect to omitting the receiver parameter in withdraw function and instead use msg.sender.
This pull request aims at implementing the ERC20 support for the RLN contract. This is the first scenario implementation as listed in https://github.com/vacp2p/rln-contract/issues/1. The contract itself is named as
RlnERC20.sol
for now. There is also the code for Status Network Token (SNT) inside theSntContract.sol
which has been commented out but useful for future reference. A dummy new token can be minted usingTokenRln.sol
if needed. There are some minor changes with respect to omitting thereceiver
parameter inwithdraw
function and instead usemsg.sender
.