Skip to content

Commit

Permalink
contracts: add utility and value chainId to events Staking- and Redem…
Browse files Browse the repository at this point in the history
…ptionIntentDeclared. Addresses #8
  • Loading branch information
benjaminbollen committed Nov 27, 2017
1 parent 536d3eb commit 9b77d77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions contracts/OpenSTUtility.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ contract OpenSTUtility is Hasher, OpsManaged {
event ProcessedMint(bytes32 indexed _uuid, bytes32 indexed _stakingIntentHash, address _token,
address _staker, address _beneficiary, uint256 _amount);
event RedemptionIntentDeclared(bytes32 indexed _uuid, bytes32 indexed _redemptionIntentHash,
address _token, address _redeemer, uint256 _nonce, uint256 _amount, uint256 _unlockHeight);
address _token, address _redeemer, uint256 _nonce, uint256 _amount, uint256 _unlockHeight,
uint256 _chainIdValue);

/*
* Constants
Expand Down Expand Up @@ -424,7 +425,7 @@ contract OpenSTUtility is Hasher, OpsManaged {
});

RedemptionIntentDeclared(_uuid, redemptionIntentHash, address(token),
msg.sender, _nonce, _amountBT, unlockHeight);
msg.sender, _nonce, _amountBT, unlockHeight, chainIdValue);

return (unlockHeight, redemptionIntentHash);
}
Expand Down Expand Up @@ -463,7 +464,7 @@ contract OpenSTUtility is Hasher, OpsManaged {
});

RedemptionIntentDeclared(uuidSTPrime, redemptionIntentHash, simpleTokenPrime,
msg.sender, _nonce, amountSTP, unlockHeight);
msg.sender, _nonce, amountSTP, unlockHeight, chainIdValue);

return (amountSTP, unlockHeight, redemptionIntentHash);
}
Expand Down
5 changes: 3 additions & 2 deletions contracts/OpenSTValue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ contract OpenSTValue is OpsManaged, Hasher {
uint256 _chainIdUtility, address indexed _stakingAccount);
event StakingIntentDeclared(bytes32 indexed _uuid, address indexed _staker,
uint256 _stakerNonce, address _beneficiary, uint256 _amountST,
uint256 _amountUT, uint256 _escrowUnlockHeight, bytes32 _stakingIntentHash);
uint256 _amountUT, uint256 _escrowUnlockHeight, bytes32 _stakingIntentHash,
uint256 _chainIdUtility);
event ProcessedStake(bytes32 indexed _uuid, bytes32 indexed _stakingIntentHash,
address _stake, address _staker, uint256 _amountST, uint256 _amountUT);

Expand Down Expand Up @@ -197,7 +198,7 @@ contract OpenSTValue is OpsManaged, Hasher {
});

StakingIntentDeclared(_uuid, tx.origin, nonce, _beneficiary,
_amountST, amountUT, unlockHeight, stakingIntentHash);
_amountST, amountUT, unlockHeight, stakingIntentHash, utilityToken.chainIdUtility);

return (amountUT, nonce, unlockHeight, stakingIntentHash);
}
Expand Down

0 comments on commit 9b77d77

Please sign in to comment.