mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-01-21 00:00:47 +00:00
remove legacy abi
This commit is contained in:
parent
9046aacc24
commit
8a182ea235
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user