From 8a182ea23503943fb80d65e99f7e4c16924f9244 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Thu, 13 Sep 2018 18:40:24 -0300 Subject: [PATCH] remove legacy abi --- contracts/registry/UsernameRegistrar.sol | 42 ++---------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/contracts/registry/UsernameRegistrar.sol b/contracts/registry/UsernameRegistrar.sol index 3569808..81204e6 100644 --- a/contracts/registry/UsernameRegistrar.sol +++ b/contracts/registry/UsernameRegistrar.sol @@ -267,22 +267,6 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack { account.owner ); } - - /** - * @notice Migrate domain coming from parent registry and activate regsitration. - * @param _price Price of registration. - * @param _domainHash Needs to be `ensNode`. - **/ - function migrateDomain( - bytes32 _domainHash, - uint256 _price - ) - external - onlyParentRegistry - { - require(_domainHash == ensNode, "Wrong Registry"); - migrateRegistry(_price); - } /** * @notice Activate registration. @@ -348,28 +332,6 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack { emit RegistryMoved(_newRegistry); } - /** - * @notice Calls `migrateUsername(bytes32,uint256,uint256,address)`. - * Deprecated, portability for "ENSSubdomainRegistry". - * @param _userHash Username hash. - * @param _domainHash Needs to be `ensNode` - * @param _tokenBalance Amount being transfered from `parentRegistry()`. - * @param _creationTime Time user registrated in `parentRegistry()` is preserved. - * @param _accountOwner Account owner which migrated the account. - **/ - function migrateAccount( - bytes32 _userHash, - bytes32 _domainHash, - uint256 _tokenBalance, - uint256 _creationTime, - address _accountOwner - ) - external - { - require(_domainHash == ensNode, "Wrong Registry"); - migrateUsername(_userHash, _tokenBalance, _creationTime, _accountOwner); - } - /** * @notice Opt-out migration of username from `parentRegistry()`. * Clear ENS resolver and subnode owner. @@ -544,7 +506,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack { uint256 _creationTime, address _accountOwner ) - public + external onlyParentRegistry { if (_tokenBalance > 0) { @@ -569,7 +531,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack { function migrateRegistry( uint256 _price ) - public + external onlyParentRegistry { require(state == RegistrarState.Unactive, "Not unactive");