Skip to content

Commit

Permalink
feat(t2cr): add method to query item status by address
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Jan 24, 2019
1 parent a2049ac commit 5bd07a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contracts/standard/permission/ArbitrableAddressList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,19 @@ contract ArbitrableAddressList is PermissionInterface, Arbitrable {
return addr.status == AddressStatus.Registered || addr.status == AddressStatus.ClearingRequested;
}

/** @dev Returns address status and number of requests.
* @param _address The address of the queried token.
* @return The address information.
*/
function getAddressInfo(address _address)
external
view
returns (AddressStatus status, uint numberOfRequests)
{
Address storage addr = addresses[_address];
return (addr.status, addr.requests.length);
}

/* Internal */

/**
Expand Down

0 comments on commit 5bd07a9

Please sign in to comment.