mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-01-22 08:38:48 +00:00
cbfdd9cc72
* refactor ENSSubdomainRegistry * Rename contract * remove obsolete file * typo * Add legacy contract upgradability adaptor * refactor Dapp to use UsernameRegistrar contract * use reservedNames.js in usernameregistrar.spec.js * change array of merkle roots to single merkle root * load reserved words to deploy contract * reorganized contract methods * add withdraw methods for controller move excess funds & wrong ens nodes * add deployed MerkleProof addresses * include contract terms in the @notice of register * approve and call fix & solidity update * add approveAndCall support * clear subnode owner and resolver
31 lines
742 B
Solidity
31 lines
742 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "./StandardToken.sol";
|
|
import "./ApproveAndCallFallBack.sol";
|
|
|
|
/**
|
|
* @notice ERC20Token for test scripts, can be minted by anyone.
|
|
*/
|
|
contract TestToken is StandardToken {
|
|
|
|
constructor() public { }
|
|
|
|
/**
|
|
* @notice any caller can mint any `_amount`
|
|
* @param _amount how much to be minted
|
|
*/
|
|
function mint(uint256 _amount) public {
|
|
mint(msg.sender, _amount);
|
|
}
|
|
|
|
function approveAndCall(address _spender, uint256 _value, bytes _extraData)
|
|
external
|
|
returns (bool success)
|
|
{
|
|
approve(msg.sender, _spender, _value);
|
|
ApproveAndCallFallBack(_spender).receiveApproval(msg.sender, _value, this, _extraData);
|
|
return true;
|
|
}
|
|
|
|
}
|