Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Add tokenIsComponent to SetToken interface
Browse files Browse the repository at this point in the history
  • Loading branch information
asoong committed Nov 6, 2018
1 parent f371803 commit 882e6a6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/core/SetToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ contract SetToken is
}

/*
* Checks to make sure token is component of Set
* Validates address is member of Set's components
*
* @param _tokenAddress Address of token being checked
* @return bool True if token is component of Set
* @return bool Whether token is member of Set's components
*/
function tokenIsComponent(
address _tokenAddress
Expand Down
16 changes: 15 additions & 1 deletion contracts/core/interfaces/ISetToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ interface ISetToken {
external;

/**
* @dev Transfer token for a specified address
* Transfer token for a specified address
*
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/
Expand All @@ -93,4 +94,17 @@ interface ISetToken {
uint256 value
)
public;

/*
* Validates address is member of Set's components
*
* @param _tokenAddress Address of token being checked
* @return bool Whether token is member of Set's components
*/
function tokenIsComponent(
address _tokenAddress
)
public
view
returns (bool);
}

0 comments on commit 882e6a6

Please sign in to comment.