Skip to content

Commit

Permalink
update contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
adibas03 committed Nov 26, 2018
1 parent 5de631a commit 6a3dc02
Show file tree
Hide file tree
Showing 5 changed files with 16,502 additions and 4 deletions.
5,668 changes: 5,668 additions & 0 deletions build/contracts/Deployer.json

Large diffs are not rendered by default.

10,076 changes: 10,076 additions & 0 deletions build/contracts/Will.json

Large diffs are not rendered by default.

748 changes: 748 additions & 0 deletions build/contracts/WillWallet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contract Deployer is Pausable {
}

enum ContractTypes { will, wallet, willwallet }
event ContractDeployed(string _type, address _contract, address indexed creator);
event ContractDeployed(string contractType, address indexed contractAddress, address indexed creator);

function _transferOwnership(address _contract, address _newOwner)
internal
Expand Down
12 changes: 9 additions & 3 deletions contracts/Will.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ contract Will is Ownable {
uint256 constant decimals = 8; //Allow fractions for disposition
uint256 waitingTime; //How long to wait before initiating distribution
uint256 lastInteraction; //Last time contract was interacted with
address[] beneficiaries; //Address for each beneficiary
mapping( address => uint256) disposition; //Percentage of total balacne to be sent to each beneficiary
address[] public beneficiaries; //Address for each beneficiary
mapping( address => uint256) public disposition; //Percentage of total balacne to be sent to each beneficiary

event BeneficiaryUpdated( address _beneficiary, uint256 _disposition, uint256 _timestamp); //Notify of update to beneficiaries / disposition
event BeneficiaryUpdated( address beneficiary, uint256 disposition, uint256 timestamp); //Notify of update to beneficiaries / disposition

constructor (uint256 _waitTime )
public
Expand All @@ -31,6 +31,12 @@ contract Will is Ownable {
return 10**decimals;
}

function totalBeneficiaries ()
public view
returns (uint) {
return beneficiaries.length;
}

function totalDisposed ()
public view
returns (uint256 _total) {//Total amount already disposed
Expand Down

0 comments on commit 6a3dc02

Please sign in to comment.