Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi committed Aug 19, 2024
1 parent 8f37f9f commit b864c8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 110 deletions.
106 changes: 0 additions & 106 deletions script/scripts/DeployZkBobPoolModules.s.sol

This file was deleted.

6 changes: 3 additions & 3 deletions src/zkbob/ZkBobPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
Queue.CommitmentQueue internal pendingCommitments;

/**
* @dev The duration of the grace period within which only the prover who submitted the transaction
* @dev The duration of the grace period during which only the privileged prover
* can submit the tree update proof.
*/
uint64 public gracePeriod;
Expand Down Expand Up @@ -183,7 +183,6 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
returns (uint256 commitment, address privilegedProver, uint64 fee, uint64 timestamp, uint64 gracePeriodEnd)
{
PendingCommitment memory op = pendingCommitments.front();
require(op.commitment != 0, "ZkBobPool: no pending commitment");
gracePeriodEnd = op.timestamp + gracePeriod;
return (op.commitment, op.prover, op.fee, op.timestamp, gracePeriodEnd);
}
Expand Down Expand Up @@ -369,6 +368,7 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
* @param _indices list of indices for queued pending deposits.
* @param _out_commit out commitment for output notes serialized from direct deposits.
* @param _batch_deposit_proof snark proof for batch deposit verifier.
* @param _prover address of the privileged prover
*/
function appendDirectDeposits(
uint256[] calldata _indices,
Expand Down Expand Up @@ -415,7 +415,7 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
/**
* @dev Updates pool index and merkle tree root if the provided proof is valid and
* the proof corresponds to the pending commitment.
* A prover that submitted the transfer proof has the grace period to submit the tree update proof.
* A prover specified in the pending commitment has a grace period to submit the tree update proof.
* @param _commitment pending commitment to be proven.
* @param _proof snark proof for tree update verifier.
* @param _rootAfter new merkle tree root.
Expand Down
2 changes: 1 addition & 1 deletion test/shared/Env.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ bytes32 constant bobSalt = bytes32(uint256(285834900769));
uint256 constant forkBlockMainnet = 16200000;
string constant forkRpcUrlMainnet = "https://eth.llamarpc.com";
uint256 constant forkBlockPolygon = 37000000;
string constant forkRpcUrlPolygon = "https://polygon.llamarpc.com";
string constant forkRpcUrlPolygon = "https://polygon-rpc.com";
uint256 constant forkBlockOptimism = 52000000;
string constant forkRpcUrlOptimism = "https://optimism.llamarpc.com";

0 comments on commit b864c8e

Please sign in to comment.