Skip to content

Commit

Permalink
style: add func docu
Browse files Browse the repository at this point in the history
  • Loading branch information
souradeep-das committed Jan 15, 2021
1 parent 0a50243 commit a284ea6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plasma_framework/contracts/poc/fast_exits/Quasar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,16 @@ contract Quasar is QuasarPool {
unclaimedBonds = unclaimedBonds.add(ticketData[utxoPos].bondValue);
}
/**
* @dev Pause contract in a byzantine state
*/
function pauseQuasar() public onlyQuasarMaintainer() {
isPaused = true;
}
/**
* @dev Unpause contract and allow tickets
*/
function resumeQuasar() public onlyQuasarMaintainer() {
isPaused = false;
}
Expand Down Expand Up @@ -218,6 +224,11 @@ contract Quasar is QuasarPool {
claimData[utxoPos] = Claim(rlpTxToQuasarOwner, block.timestamp.add(waitingPeriod), true);
}
/**
* @dev Submit and IFEclaim for claims without inclusion proof
* @param utxoPos pos of the output, which is the ticket identifier
* @param inFlightClaimTx in-flight tx that spends the output to quasar owner
*/
function ifeClaim(uint256 utxoPos, bytes memory inFlightClaimTx) public {
verifyTicketValidityForClaim(utxoPos);
Expand Down

0 comments on commit a284ea6

Please sign in to comment.