Skip to content

Commit

Permalink
Merge pull request #12 from OpenSTFoundation/jasonbanks/ch110/add-get…
Browse files Browse the repository at this point in the history
…ters-to-ops-contracts

Add getters for ops contracts
  • Loading branch information
benjaminbollen committed Nov 3, 2017
2 parents c640e98 + dc8bcf5 commit 819ae89
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contracts/Presales.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ contract Presales is Owned {
return true;
}

/**
@dev Returns addresses of accounts
*/
function getAccounts() public view returns (address[]) {
return accounts;
}

/**
@dev Returns number of accounts
*/
function getAccountsSize() public view returns (uint256) {
return accounts.length;
}

/**
@dev Sets status to Locked so that no new presales can be added
*/
Expand Down
14 changes: 14 additions & 0 deletions contracts/ProcessableAllocations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ contract ProcessableAllocations is Owned {
return true;
}

/**
@dev Returns addresses of grantees
*/
function getGrantees() public view returns (address[]) {
return grantees;
}

/**
@dev Returns number of grantees
*/
function getGranteesSize() public view returns (uint256) {
return grantees.length;
}

/**
@dev Sets status to Locked so that no new processable allocations can be added
*/
Expand Down
14 changes: 14 additions & 0 deletions contracts/grantableAllocations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ contract GrantableAllocations is Owned {
return true;
}

/**
@dev Returns addresses of grantees
*/
function getGrantees() public view returns (address[]) {
return grantees;
}

/**
@dev Returns number of grantees
*/
function getGranteesSize() public view returns (uint256) {
return grantees.length;
}

/**
@dev Sets status to Locked so that no new grantable allocations can be added
*/
Expand Down

0 comments on commit 819ae89

Please sign in to comment.