Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Mushegian committed Jan 20, 2016
1 parent abe8353 commit ac453da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/sol/token/controller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract DSTokenController is DSTokenControllerType
}


// Stateless ERC20 functions. Doesn't need to ask who the sender is.
// Stateless ERC20 functions. Doesn't need to know who the sender is.
function totalSupply() constant returns (uint supply) {
bool ok;
(supply, ok) = _balances.getSupply();
Expand All @@ -92,8 +92,11 @@ contract DSTokenController is DSTokenControllerType
}


// Frontend functions (stateful ERC20 functions). Needs to string sender's sender through.
// Only the frontend can call us.
// Each stateful ERC20 function signature has an parallel function
// which takes a `msg.sender` as the first argument. Each such "implementation"
// function needs to report any events back to the "frontend" contract.

// Only trust calls from the frontend contract.
modifier frontend_only() {
if( msg.sender == address(_frontend) ) {
_
Expand Down
4 changes: 2 additions & 2 deletions src/sol/token/frontend.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Static proxy for Tokens. Allows you to give a single address to
// UI devs, but requires your dapp to manage controllerementation updates
// at the contract level.
// UI devs, but requires your dapp to manage controller updates
// at the contract level.
import 'auth/auth.sol';
import 'token/controller.sol';
import 'token/event_callback.sol';
Expand Down

0 comments on commit ac453da

Please sign in to comment.