@@ -184,7 +184,7 @@ contract DAOInterface {
184
184
/// to the DAO, it can also be used to receive payments that should not be
185
185
/// counted as rewards (donations, grants, etc.)
186
186
/// @return Whether the DAO received the ether successfully
187
- function receiveEther () returns (bool );
187
+ function receiveEther () public returns (bool );
188
188
189
189
/// @notice `msg.sender` creates a proposal to send `_amount` Wei to
190
190
/// `_recipient` with the transaction data `_transactionData`. If
@@ -206,7 +206,7 @@ contract DAOInterface {
206
206
bytes memory _transactionData ,
207
207
uint _debatingPeriod ,
208
208
bool _newCurator
209
- ) onlyTokenholders returns (uint _proposalID );
209
+ ) onlyTokenholders public returns (uint _proposalID );
210
210
211
211
/// @notice Check that the proposal with the ID `_proposalID` matches the
212
212
/// transaction which sends `_amount` with data `_transactionData`
@@ -221,7 +221,7 @@ contract DAOInterface {
221
221
address _recipient ,
222
222
uint _amount ,
223
223
bytes memory _transactionData
224
- ) view returns (bool _codeChecksOut );
224
+ ) public view returns (bool _codeChecksOut );
225
225
226
226
/// @notice Vote on proposal `_proposalID` with `_supportsProposal`
227
227
/// @param _proposalID The proposal ID
@@ -230,7 +230,7 @@ contract DAOInterface {
230
230
function vote (
231
231
uint _proposalID ,
232
232
bool _supportsProposal
233
- ) onlyTokenholders returns (uint _voteID );
233
+ ) onlyTokenholders public returns (uint _voteID );
234
234
235
235
/// @notice Checks whether proposal `_proposalID` with transaction data
236
236
/// `_transactionData` has been voted for or rejected, and executes the
@@ -241,7 +241,7 @@ contract DAOInterface {
241
241
function executeProposal (
242
242
uint _proposalID ,
243
243
bytes memory _transactionData
244
- ) returns (bool _success );
244
+ ) public returns (bool _success );
245
245
246
246
/// @notice ATTENTION! I confirm to move my remaining ether to a new DAO
247
247
/// with `_newCurator` as the new Curator, as has been
@@ -257,13 +257,13 @@ contract DAOInterface {
257
257
function splitDAO (
258
258
uint _proposalID ,
259
259
address _newCurator
260
- ) returns (bool _success );
260
+ ) public returns (bool _success );
261
261
262
262
/// @dev can only be called by the DAO itself through a proposal
263
263
/// updates the contract of the DAO by sending all ether and rewardTokens
264
264
/// to the new DAO. The new DAO needs to be approved by the Curator
265
265
/// @param _newContract the address of the new contract
266
- function newContract (address _newContract );
266
+ function newContract (address _newContract ) public ;
267
267
268
268
269
269
/// @notice Add a new possible recipient `_recipient` to the whitelist so
@@ -288,7 +288,7 @@ contract DAOInterface {
288
288
289
289
/// @notice Get my portion of the reward that was sent to `rewardAccount`
290
290
/// @return Whether the call was successful
291
- function getMyReward () returns (bool _success );
291
+ function getMyReward () public returns (bool _success );
292
292
293
293
/// @notice Withdraw `_account`'s portion of the reward from `rewardAccount`
294
294
/// to `_account`'s balance
@@ -300,7 +300,7 @@ contract DAOInterface {
300
300
/// @param _to The address of the recipient
301
301
/// @param _amount The amount of tokens to be transfered
302
302
/// @return Whether the transfer was successful or not
303
- function transferWithoutReward (address _to , uint256 _amount ) returns (bool success );
303
+ function transferWithoutReward (address _to , uint256 _amount ) public returns (bool success );
304
304
305
305
/// @notice Send `_amount` tokens to `_to` from `_from` on the condition it
306
306
/// is approved by `_from`. Prior to this getMyReward() is called.
@@ -312,19 +312,19 @@ contract DAOInterface {
312
312
address _from ,
313
313
address _to ,
314
314
uint256 _amount
315
- ) returns (bool success );
315
+ ) public returns (bool success );
316
316
317
317
/// @notice Doubles the 'minQuorumDivisor' in the case quorum has not been
318
318
/// achieved in 52 weeks
319
319
/// @return Whether the change was successful or not
320
- function halveMinQuorum () returns (bool _success );
320
+ function halveMinQuorum () public returns (bool _success );
321
321
322
322
/// @return total number of proposals ever created
323
- function numberOfProposals () view returns (uint _numberOfProposals );
323
+ function numberOfProposals () public view returns (uint _numberOfProposals );
324
324
325
325
/// @param _proposalID Id of the new curator proposal
326
326
/// @return Address of the new DAO
327
- function getNewDAOAddress (uint _proposalID ) view returns (address _newDAO );
327
+ function getNewDAOAddress (uint _proposalID ) public view returns (address _newDAO );
328
328
329
329
/// @param _account The address of the account which is checked.
330
330
/// @return Whether the account is blocked (not allowed to transfer tokens) or not.
@@ -333,7 +333,7 @@ contract DAOInterface {
333
333
/// @notice If the caller is blocked by a proposal whose voting deadline
334
334
/// has exprired then unblock him.
335
335
/// @return Whether the account is blocked (not allowed to transfer tokens) or not.
336
- function unblockMe () returns (bool );
336
+ function unblockMe () public returns (bool );
337
337
338
338
event ProposalAdded (
339
339
uint indexed proposalID ,
@@ -368,12 +368,12 @@ contract DAO is DAOInterface, Token, TokenCreation {
368
368
string memory _tokenSymbol ,
369
369
uint8 _decimalPlaces
370
370
) TokenCreation (
371
- _minTokensToCreate,
372
- _closingTime,
373
- _privateCreation,
374
- _tokenName,
371
+ _minTokensToCreate,
372
+ _closingTime,
373
+ _privateCreation,
374
+ _tokenName,
375
375
_tokenSymbol,
376
- _decimalPlaces) {
376
+ _decimalPlaces) public {
377
377
378
378
curator = _curator;
379
379
daoCreator = _daoCreator;
@@ -400,7 +400,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
400
400
}
401
401
402
402
403
- function receiveEther () returns (bool ) {
403
+ function receiveEther () public returns (bool ) {
404
404
return true ;
405
405
}
406
406
@@ -412,7 +412,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
412
412
bytes memory _transactionData ,
413
413
uint _debatingPeriod ,
414
414
bool _newCurator
415
- ) onlyTokenholders returns (uint _proposalID ) {
415
+ ) onlyTokenholders public returns (uint _proposalID ) {
416
416
417
417
// Sanity check
418
418
if (_newCurator && (
@@ -482,7 +482,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
482
482
address _recipient ,
483
483
uint _amount ,
484
484
bytes memory _transactionData
485
- ) noEther view returns (bool _codeChecksOut ) {
485
+ ) noEther public view returns (bool _codeChecksOut ) {
486
486
Proposal storage p = proposals[_proposalID];
487
487
return p.proposalHash == keccak256 (abi.encodePacked (_recipient, _amount, _transactionData));
488
488
}
@@ -491,7 +491,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
491
491
function vote (
492
492
uint _proposalID ,
493
493
bool _supportsProposal
494
- ) onlyTokenholders noEther returns (uint _voteID ) {
494
+ ) onlyTokenholders noEther public returns (uint _voteID ) {
495
495
496
496
Proposal storage p = proposals[_proposalID];
497
497
if (p.votedYes[msg .sender ]
@@ -524,7 +524,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
524
524
function executeProposal (
525
525
uint _proposalID ,
526
526
bytes memory _transactionData
527
- ) noEther returns (bool _success ) {
527
+ ) noEther public returns (bool _success ) {
528
528
529
529
Proposal storage p = proposals[_proposalID];
530
530
@@ -624,7 +624,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
624
624
function splitDAO (
625
625
uint _proposalID ,
626
626
address _newCurator
627
- ) noEther onlyTokenholders returns (bool _success ) {
627
+ ) noEther onlyTokenholders public returns (bool _success ) {
628
628
629
629
Proposal storage p = proposals[_proposalID];
630
630
@@ -696,7 +696,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
696
696
return true ;
697
697
}
698
698
699
- function newContract (address _newContract ){
699
+ function newContract (address _newContract ) public {
700
700
if (msg .sender != address (this ) || ! allowedRecipients[_newContract]) return ;
701
701
// move all ether
702
702
if (! _newContract.call.value (address (this ).balance)("" )) {
@@ -736,7 +736,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
736
736
return true ;
737
737
}
738
738
739
- function getMyReward () noEther returns (bool _success ) {
739
+ function getMyReward () noEther public returns (bool _success ) {
740
740
return withdrawRewardFor (msg .sender );
741
741
}
742
742
@@ -757,7 +757,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
757
757
}
758
758
759
759
760
- function transfer (address _to , uint256 _value ) returns (bool success ) {
760
+ function transfer (address _to , uint256 _value ) public returns (bool success ) {
761
761
if (isFueled
762
762
&& now > closingTime
763
763
&& ! isBlocked (msg .sender )
@@ -772,14 +772,14 @@ contract DAO is DAOInterface, Token, TokenCreation {
772
772
}
773
773
774
774
775
- function transferWithoutReward (address _to , uint256 _value ) returns (bool success ) {
775
+ function transferWithoutReward (address _to , uint256 _value ) public returns (bool success ) {
776
776
if (! getMyReward ())
777
777
revert ();
778
778
return transfer (_to, _value);
779
779
}
780
780
781
781
782
- function transferFrom (address _from , address _to , uint256 _value ) returns (bool success ) {
782
+ function transferFrom (address _from , address _to , uint256 _value ) public returns (bool success ) {
783
783
if (isFueled
784
784
&& now > closingTime
785
785
&& ! isBlocked (_from)
@@ -798,7 +798,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
798
798
address _from ,
799
799
address _to ,
800
800
uint256 _value
801
- ) returns (bool success ) {
801
+ ) public returns (bool success ) {
802
802
803
803
if (! withdrawRewardFor (_from))
804
804
revert ();
@@ -851,7 +851,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
851
851
return false ;
852
852
}
853
853
854
- function actualBalance () view returns (uint _actualBalance ) {
854
+ function actualBalance () public view returns (uint _actualBalance ) {
855
855
return this .balance - sumOfProposalDeposits;
856
856
}
857
857
@@ -863,7 +863,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
863
863
}
864
864
865
865
866
- function halveMinQuorum () returns (bool _success ) {
866
+ function halveMinQuorum () public returns (bool _success ) {
867
867
// this can only be called after `quorumHalvingPeriod` has passed or at anytime after
868
868
// fueling by the curator with a delay of at least `minProposalDebatePeriod`
869
869
// between the calls
@@ -892,12 +892,12 @@ contract DAO is DAOInterface, Token, TokenCreation {
892
892
);
893
893
}
894
894
895
- function numberOfProposals () view returns (uint _numberOfProposals ) {
895
+ function numberOfProposals () public view returns (uint _numberOfProposals ) {
896
896
// Don't count index 0. It's used by isBlocked() and exists from start
897
897
return proposals.length - 1 ;
898
898
}
899
899
900
- function getNewDAOAddress (uint _proposalID ) view returns (address _newDAO ) {
900
+ function getNewDAOAddress (uint _proposalID ) public view returns (address _newDAO ) {
901
901
return proposals[_proposalID].splitData[0 ].newDAO;
902
902
}
903
903
@@ -913,7 +913,7 @@ contract DAO is DAOInterface, Token, TokenCreation {
913
913
}
914
914
}
915
915
916
- function unblockMe () returns (bool ) {
916
+ function unblockMe () public returns (bool ) {
917
917
return isBlocked (msg .sender );
918
918
}
919
919
}
@@ -927,7 +927,7 @@ contract DAO_Creator {
927
927
string memory _tokenName ,
928
928
string memory _tokenSymbol ,
929
929
uint8 _decimalPlaces
930
- ) returns (DAO _newDAO ) {
930
+ ) public returns (DAO _newDAO ) {
931
931
932
932
return new DAO (
933
933
_curator,
@@ -936,7 +936,7 @@ contract DAO_Creator {
936
936
_minTokensToCreate,
937
937
_closingTime,
938
938
msg .sender ,
939
- _tokenName,
939
+ _tokenName,
940
940
_tokenSymbol,
941
941
_decimalPlaces
942
942
);
0 commit comments