Skip to content

Commit

Permalink
fix events
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Sep 4, 2023
1 parent 47f96e6 commit c3d4aa8
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/PostageStamp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,43 +143,6 @@ contract PostageStamp is AccessControl, Pausable {
error OnlyPauser(); // Only Pauser role can pause or unpause contracts
error OnlyRedistributor(); // Only redistributor role can withdraw from the contract



// ----------------------------- Events ------------------------------

/**
* @dev Emitted when a new batch is created.
*/
event BatchCreated(
bytes32 indexed batchId,
uint256 totalAmount,
uint256 normalisedBalance,
address owner,
uint8 depth,
uint8 bucketDepth,
bool immutableFlag
);

/**
* @dev Emitted when an pot is Withdrawn.
*/
event PotWithdrawn(address recipient, uint256 totalAmount);

/**
* @dev Emitted when an existing batch is topped up.
*/
event BatchTopUp(bytes32 indexed batchId, uint256 topupAmount, uint256 normalisedBalance);

/**
* @dev Emitted when the depth of an existing batch increases.
*/
event BatchDepthIncrease(bytes32 indexed batchId, uint8 newDepth, uint256 normalisedBalance);

/**
*@dev Emitted on every price update.
*/
event PriceUpdate(uint256 price);

// ----------------------------- CONSTRUCTOR ------------------------------

/**
Expand Down Expand Up @@ -301,7 +264,6 @@ contract PostageStamp is AccessControl, Pausable {
revert ZeroBalance();
}


validChunkCount += 1 << _depth;

batches[_batchId] = Batch({
Expand Down Expand Up @@ -429,7 +391,6 @@ contract PostageStamp is AccessControl, Pausable {
}

minimumValidityBlocks = uint64(_value);

}

/**
Expand Down Expand Up @@ -527,7 +488,6 @@ contract PostageStamp is AccessControl, Pausable {
* The contract can be provably stopped by renouncing the pauser role and the admin role once paused.
*/
function pause() public {

if (!hasRole(PAUSER_ROLE, msg.sender)) {
revert OnlyPauser();
}
Expand Down

0 comments on commit c3d4aa8

Please sign in to comment.