Skip to content

Commit

Permalink
rename resolveName() to getData()
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Aug 17, 2022
1 parent eed5acc commit 3d20096
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion contracts/SoulBoundName.sol
Expand Up @@ -90,7 +90,7 @@ contract SoulBoundName is
return (soulBoundNames[lowercaseName].owner != address(0));
}

function resolveName(string memory name)
function getData(string memory name)
external
view
override
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ISoulBoundNameResolver.sol
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.7;
interface ISoulBoundNameResolver {
function nameExists(string memory name) external returns (bool exists);

function resolveName(string memory name)
function getData(string memory name)
external
returns (
address owner,
Expand Down
48 changes: 24 additions & 24 deletions docs/SoulBoundName.md
Expand Up @@ -155,6 +155,30 @@ function getApproved(uint256 tokenId) external view returns (address)
|---|---|---|
| _0 | address | undefined |

### getData

```solidity
function getData(string name) external view returns (address owner, string sbtName, uint256 identityId)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| name | string | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| owner | address | undefined |
| sbtName | string | undefined |
| identityId | uint256 | undefined |

### getRoleAdmin

```solidity
Expand Down Expand Up @@ -364,30 +388,6 @@ function renounceRole(bytes32 role, address account) external nonpayable
| role | bytes32 | undefined |
| account | address | undefined |

### resolveName

```solidity
function resolveName(string name) external view returns (address owner, string sbtName, uint256 identityId)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| name | string | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| owner | address | undefined |
| sbtName | string | undefined |
| identityId | uint256 | undefined |

### revokeRole

```solidity
Expand Down
16 changes: 8 additions & 8 deletions docs/interfaces/ISoulBoundNameResolver.md
Expand Up @@ -10,10 +10,10 @@

## Methods

### nameExists
### getData

```solidity
function nameExists(string name) external nonpayable returns (bool exists)
function getData(string name) external nonpayable returns (address owner, string sbtName, uint256 identityId)
```


Expand All @@ -30,12 +30,14 @@ function nameExists(string name) external nonpayable returns (bool exists)

| Name | Type | Description |
|---|---|---|
| exists | bool | undefined |
| owner | address | undefined |
| sbtName | string | undefined |
| identityId | uint256 | undefined |

### resolveName
### nameExists

```solidity
function resolveName(string name) external nonpayable returns (address owner, string sbtName, uint256 identityId)
function nameExists(string name) external nonpayable returns (bool exists)
```


Expand All @@ -52,9 +54,7 @@ function resolveName(string name) external nonpayable returns (address owner, st

| Name | Type | Description |
|---|---|---|
| owner | address | undefined |
| sbtName | string | undefined |
| identityId | uint256 | undefined |
| exists | bool | undefined |



Expand Down

0 comments on commit 3d20096

Please sign in to comment.