diff --git a/contracts/testnet/PolygonZkEVMTestnetClearStorage.sol b/contracts/testnet/PolygonZkEVMTestnetClearStorage.sol index dbcf64f85..9d999e436 100644 --- a/contracts/testnet/PolygonZkEVMTestnetClearStorage.sol +++ b/contracts/testnet/PolygonZkEVMTestnetClearStorage.sol @@ -5,7 +5,7 @@ import "../PolygonZkEVM.sol"; /** * Contract responsible for managing the state and the updates of the L2 network - * This contract will NOT BE USED IN PRODUCTION, will be used only in testnet enviroment + * This contract will NOT BE USED IN PRODUCTION, will be used only in testnet environment */ contract PolygonZkEVMTestnetClearStorage is PolygonZkEVM { // Indicates the current version @@ -49,8 +49,8 @@ contract PolygonZkEVMTestnetClearStorage is PolygonZkEVM { isForcedBatchDisallowed = true; assembly { sstore(version.slot, 0) - sstore(add(version.slot,1), 0) - sstore(add(version.slot,2), 0) + sstore(add(version.slot, 1), 0) + sstore(add(version.slot, 2), 0) } } } diff --git a/contracts/testnet/PolygonZkEVMTestnetV2.sol b/contracts/testnet/PolygonZkEVMTestnetV2.sol index 71c2dd2ee..36d47538d 100644 --- a/contracts/testnet/PolygonZkEVMTestnetV2.sol +++ b/contracts/testnet/PolygonZkEVMTestnetV2.sol @@ -5,7 +5,7 @@ import "../PolygonZkEVM.sol"; /** * Contract responsible for managing the state and the updates of the L2 network - * This contract will NOT BE USED IN PRODUCTION, will be used only in testnet enviroment + * This contract will NOT BE USED IN PRODUCTION, will be used only in testnet environment */ contract PolygonZkEVMTestnetV2 is PolygonZkEVM { // Indicates the current version diff --git a/docs/testnet/PolygonZkEVMTestnet.md b/docs/testnet/PolygonZkEVMTestnet.md deleted file mode 100644 index 18b2857e1..000000000 --- a/docs/testnet/PolygonZkEVMTestnet.md +++ /dev/null @@ -1,82 +0,0 @@ -Contract responsible for managing the state and the updates of the L2 network -This contract will NOT BE USED IN PRODUCTION, will be used only in testnet environment - - -## Functions -### constructor -```solidity - function constructor( - contract IPolygonZkEVMGlobalExitRoot _globalExitRootManager, - contract IERC20Upgradeable _matic, - contract IVerifierRollup _rollupVerifier, - contract IPolygonZkEVMBridge _bridgeAddress, - uint64 _chainID - ) public -``` - - -#### Parameters: -| Name | Type | Description | -| :--- | :--- | :------------------------------------------------------------------- | -|`_globalExitRootManager` | contract IPolygonZkEVMGlobalExitRoot | Global exit root manager address -|`_matic` | contract IERC20Upgradeable | MATIC token address -|`_rollupVerifier` | contract IVerifierRollup | Rollup verifier address -|`_bridgeAddress` | contract IPolygonZkEVMBridge | Bridge address -|`_chainID` | uint64 | L2 chainID - -### forceBatch -```solidity - function forceBatch( - ) public -``` - - - - -### sequenceForceBatches -```solidity - function sequenceForceBatches( - ) external -``` - - - - -### getForceBatchTimeout -```solidity - function getForceBatchTimeout( - ) public returns (uint64) -``` - - - - -### setForceBatchTimeout -```solidity - function setForceBatchTimeout( - uint64 newforceBatchTimeout - ) public -``` -Set new forcedBatchTimeout - - -#### Parameters: -| Name | Type | Description | -| :--- | :--- | :------------------------------------------------------------------- | -|`newforceBatchTimeout` | uint64 | new forced batches timeout - -### setForcedBatchesAllowed -```solidity - function setForcedBatchesAllowed( - uint256 newForcedBatchesAllowed - ) public -``` -Set new forced batches allowed -Defined as a uint256 because it will be easy to upgrade afterwards - - -#### Parameters: -| Name | Type | Description | -| :--- | :--- | :------------------------------------------------------------------- | -|`newForcedBatchesAllowed` | uint256 | new forced batches allowed -