Skip to content

Commit

Permalink
Update sample dapp code
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 21, 2022
1 parent f9d649c commit 04edc72
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions assets/bep-153/SampleStakingContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,16 @@ contract StakingDappExample {
}

// events
event delegateSubmitted(address indexed delegator, address indexed validator, uint256 amount);
event undelegateSubmitted(address indexed validator, uint256 amount);
event redelegateSubmitted(address indexed validatorSrc, address indexed validatorDst, uint256 amount);
event rewardClaimed(address indexed delegator, uint256 amount);
event undelegatedClaimed(address indexed delegator, uint256 amount);
event rewardReceived(uint256 amount);
event undelegatedReceived(uint256 amount);
event Delegate(address indexed delegator, address indexed validator, uint256 amount);
event Undelegate(address indexed validator, uint256 amount);
event ClaimReward(address indexed delegator, uint256 amount);
event ClaimUndelegated(address indexed delegator, uint256 amount);
event RewardReceived(uint256 amount);
event UndelegatedReceived(uint256 amount);

receive() external payable {}

function init() external {
constructor() {
owner = msg.sender;
operators[msg.sender] = true;
}
Expand Down

0 comments on commit 04edc72

Please sign in to comment.