Skip to content

Commit

Permalink
Merge pull request #393 from 0xPolygonHermez/feature/comments_and_int…
Browse files Browse the repository at this point in the history
…erfaces

comments and interfaces
  • Loading branch information
krlosMata authored Jan 29, 2025
2 parents 17bb90d + 202f52d commit a512a25
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
3 changes: 3 additions & 0 deletions contracts/lib/TokenWrappedBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

// This contract contains the solidity code that compiles into the BASE_INIT_BYTECODE_WRAPPED_TOKEN constant on the PolygonZkEVMBridgeV2
// This contract should remain untouched, even if it's not used directly as dependency. The main use is to verify on block explorers
// and check the implementation.
contract TokenWrappedBridge is ERC20 {
// Domain typehash
bytes32 public constant DOMAIN_TYPEHASH =
Expand Down
2 changes: 1 addition & 1 deletion contracts/v2/interfaces/IPolygonConsensusBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ interface IPolygonConsensusBase {
string memory _networkName
) external;

function admin() external returns (address);
function admin() external view returns (address);
}
23 changes: 14 additions & 9 deletions contracts/v2/interfaces/IPolygonRollupManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -390,22 +390,24 @@ interface IPolygonRollupManager {

function setBatchFee(uint256 newBatchFee) external;

function getRollupExitRoot() external returns (bytes32);
function getRollupExitRoot() external view returns (bytes32);

function getLastVerifiedBatch(uint32 rollupID) external returns (uint64);
function getLastVerifiedBatch(
uint32 rollupID
) external view returns (uint64);

function calculateRewardPerBatch() external returns (uint256);
function calculateRewardPerBatch() external view returns (uint256);

function getBatchFee() external returns (uint256);
function getBatchFee() external view returns (uint256);

function getForcedBatchFee() external returns (uint256);
function getForcedBatchFee() external view returns (uint256);

function getInputPessimisticBytes(
uint32 rollupID,
bytes32 selectedGlobalExitRoot,
bytes32 newLocalExitRoot,
bytes32 newPessimisticRoot
) external returns (bytes memory);
) external view returns (bytes memory);

function getInputSnarkBytes(
uint32 rollupID,
Expand All @@ -414,12 +416,15 @@ interface IPolygonRollupManager {
bytes32 newLocalExitRoot,
bytes32 oldStateRoot,
bytes32 newStateRoot
) external returns (bytes memory);
) external view returns (bytes memory);

function getRollupBatchNumToStateRoot(
uint32 rollupID,
uint64 batchNum
) external returns (bytes32);
) external view returns (bytes32);

function lastDeactivatedEmergencyStateTimestamp() external returns (uint64);
function lastDeactivatedEmergencyStateTimestamp()
external
view
returns (uint64);
}

0 comments on commit a512a25

Please sign in to comment.