Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Added events to the fraud verifier (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts authored Jan 13, 2021
1 parent 64b6b5e commit 5658cf5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ contract OVM_FraudVerifier is Lib_AddressResolver, OVM_FraudContributor, iOVM_Fr
);

_deployTransitioner(_preStateRoot, _txHash, _preStateRootProof.index);

emit FraudProofInitialized(
_preStateRoot,
_preStateRootProof.index,
_txHash,
msg.sender
);
}

/**
Expand Down Expand Up @@ -192,6 +199,13 @@ contract OVM_FraudVerifier is Lib_AddressResolver, OVM_FraudContributor, iOVM_Fr

// TEMPORARY: Remove the transitioner; for minnet.
transitioners[keccak256(abi.encodePacked(_preStateRoot, _txHash))] = iOVM_StateTransitioner(0x0000000000000000000000000000000000000000);

emit FraudProofFinalized(
_preStateRoot,
_preStateRootProof.index,
_txHash,
msg.sender
);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@ import { iOVM_StateTransitioner } from "./iOVM_StateTransitioner.sol";
*/
interface iOVM_FraudVerifier {

/**********
* Events *
**********/

event FraudProofInitialized(
bytes32 _preStateRoot,
uint256 _preStateRootIndex,
bytes32 _transactionHash,
address _who
);

event FraudProofFinalized(
bytes32 _preStateRoot,
uint256 _preStateRootIndex,
bytes32 _transactionHash,
address _who
);


/***************************************
* Public Functions: Transition Status *
***************************************/
Expand Down

0 comments on commit 5658cf5

Please sign in to comment.