-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Process Exit Bounty] Implement Bounty for Processing Exits consolida…
…ted (#698) * [Process Exit Bounty] Add process exit bounty * feat: add process exit bounty for SE * fix: pass in msg.sender to exitgame * style: lint js * fix: coverage * revert package.json * fix: modify LC tests * style: add newline eof * fix: modify python tests * fix: rem gasprice form py tests * fix: revert plasma_framework.py * fix: revert plasma_framework.py * feat: add Bounty lib tests * style: js lint * try python tests * add to python tests * add w3 python tests * fix: py tests * fix: lint py * fix: lint py * fix: minor remove unused w3 * style: use gasprice as args in lib * style: add eof line * style: remove unused contract [Process Exit Bounty] Add process exit bounty for IFE (#682) * feat: add IFE bounty to contracts * feat: add IFE bounty tests * feat: add python tests * fix: lint js * fix: coverage * feat: add lib tests * feat: use safe-math * style: rename vars feat: anti-front running feat: make bounty updatable fix: py tests fix: py tests feat: add updatebounty test style: update statements * rename processor to processExitInitiator
- Loading branch information
1 parent
7e71572
commit 5ed5f6b
Showing
43 changed files
with
1,659 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pragma solidity 0.5.11; | ||
|
||
import "../../src/exits/utils/ExitBounty.sol"; | ||
|
||
contract ExitBountyMock { | ||
using ExitBounty for ExitBounty.Params; | ||
|
||
ExitBounty.Params public exitBounty; | ||
|
||
constructor (uint128 initialExitBountySize, uint16 lowerBoundDivisor, uint16 upperBoundMultiplier) public { | ||
exitBounty = ExitBounty.buildParams(initialExitBountySize, lowerBoundDivisor, upperBoundMultiplier); | ||
} | ||
|
||
function exitBountySize() public view returns (uint128) { | ||
return exitBounty.exitBountySize(); | ||
} | ||
|
||
function updateExitBountySize(uint128 newExitBountySize) public { | ||
exitBounty.updateExitBountySize(newExitBountySize); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.