diff --git a/packages/protocol/contracts/L1/TaikoErrors.sol b/packages/protocol/contracts/L1/TaikoErrors.sol index 4f106e59210..cf9fe36955d 100644 --- a/packages/protocol/contracts/L1/TaikoErrors.sol +++ b/packages/protocol/contracts/L1/TaikoErrors.sol @@ -14,8 +14,8 @@ abstract contract TaikoErrors { error L1_ASSIGNED_PROVER_NOT_ALLOWED(); error L1_BLOB_FOR_DA_DISABLED(); error L1_BLOB_NOT_FOUND(); - error L1_BLOB_NOT_REUSEABLE(); - error L1_BLOB_REUSE_DISALBED(); + error L1_BLOB_NOT_REUSABLE(); + error L1_BLOB_REUSE_DISABLED(); error L1_BLOCK_MISMATCH(); error L1_INVALID_BLOCK_ID(); error L1_INVALID_CONFIG(); diff --git a/packages/protocol/contracts/L1/TaikoEvents.sol b/packages/protocol/contracts/L1/TaikoEvents.sol index c751bcbf77d..cb93082104b 100644 --- a/packages/protocol/contracts/L1/TaikoEvents.sol +++ b/packages/protocol/contracts/L1/TaikoEvents.sol @@ -28,7 +28,7 @@ abstract contract TaikoEvents { /// @dev Emitted when a block is verified. /// @param blockId The ID of the verified block. /// @param assignedProver The block's assigned prover. - /// @param prover The prover whose transition is used for verifing the + /// @param prover The prover whose transition is used for verifying the /// block. /// @param blockHash The hash of the verified block. /// @param stateRoot The block's state root. diff --git a/packages/protocol/contracts/L1/libs/LibProposing.sol b/packages/protocol/contracts/L1/libs/LibProposing.sol index 74123bb4284..f24c01471e1 100644 --- a/packages/protocol/contracts/L1/libs/LibProposing.sol +++ b/packages/protocol/contracts/L1/libs/LibProposing.sol @@ -43,8 +43,8 @@ library LibProposing { // Warning: Any errors defined here must also be defined in TaikoErrors.sol. error L1_BLOB_FOR_DA_DISABLED(); error L1_BLOB_NOT_FOUND(); - error L1_BLOB_NOT_REUSEABLE(); - error L1_BLOB_REUSE_DISALBED(); + error L1_BLOB_NOT_REUSABLE(); + error L1_BLOB_REUSE_DISABLED(); error L1_INVALID_HOOK(); error L1_INVALID_PARAM(); error L1_INVALID_PROVER(); @@ -142,11 +142,11 @@ library LibProposing { if (!_config.blobAllowedForDA) revert L1_BLOB_FOR_DA_DISABLED(); if (params.blobHash != 0) { - if (!_config.blobReuseEnabled) revert L1_BLOB_REUSE_DISALBED(); + if (!_config.blobReuseEnabled) revert L1_BLOB_REUSE_DISABLED(); // We try to reuse an old blob if (!isBlobReusable(_state, _config, params.blobHash)) { - revert L1_BLOB_NOT_REUSEABLE(); + revert L1_BLOB_NOT_REUSABLE(); } meta_.blobHash = params.blobHash; } else { diff --git a/packages/protocol/contracts/L1/libs/LibUtils.sol b/packages/protocol/contracts/L1/libs/LibUtils.sol index 308a481673b..749a2ebfe9f 100644 --- a/packages/protocol/contracts/L1/libs/LibUtils.sol +++ b/packages/protocol/contracts/L1/libs/LibUtils.sol @@ -66,7 +66,7 @@ library LibUtils { } /// @dev Retrieves the ID of the transition with a given parentHash. - /// This function will return 0 if the transtion is not found. + /// This function will return 0 if the transition is not found. function getTransitionId( TaikoData.State storage _state, TaikoData.Block storage _blk, diff --git a/packages/protocol/contracts/L1/tiers/TestnetTierProvider.sol b/packages/protocol/contracts/L1/tiers/TestnetTierProvider.sol index c1d03269263..adfe491e99a 100644 --- a/packages/protocol/contracts/L1/tiers/TestnetTierProvider.sol +++ b/packages/protocol/contracts/L1/tiers/TestnetTierProvider.sol @@ -66,7 +66,7 @@ contract TestnetTierProvider is EssentialContract, ITierProvider { function getMinTier(uint256 _rand) public pure override returns (uint16) { // 10% will be selected to require SGX proofs. if (_rand % 10 == 0) return LibTiers.TIER_SGX; - // Other blocks are optimisitc, without validity proofs. + // Other blocks are optimistic, without validity proofs. return LibTiers.TIER_OPTIMISTIC; } } diff --git a/packages/protocol/contracts/L2/TaikoL2.sol b/packages/protocol/contracts/L2/TaikoL2.sol index bd46830ea82..8ad2c828293 100644 --- a/packages/protocol/contracts/L2/TaikoL2.sol +++ b/packages/protocol/contracts/L2/TaikoL2.sol @@ -261,7 +261,7 @@ contract TaikoL2 is CrossChainOwned { // gasExcess being 0 indicate the dynamic 1559 base fee is disabled. if (gasExcess > 0) { // We always add the gas used by parent block to the gas excess - // value as this has already happend + // value as this has already happened uint256 excess = uint256(gasExcess) + _parentGasUsed; // Calculate how much more gas to issue to offset gas excess. diff --git a/packages/protocol/contracts/bridge/Bridge.sol b/packages/protocol/contracts/bridge/Bridge.sol index 695ab7f3fe1..7b573ba41ab 100644 --- a/packages/protocol/contracts/bridge/Bridge.sol +++ b/packages/protocol/contracts/bridge/Bridge.sol @@ -95,7 +95,7 @@ contract Bridge is EssentialContract, IBridge { /// @notice Ban or unban an address. A banned addresses will not be invoked upon /// with message calls. - /// @param _addr The addreess to ban or unban. + /// @param _addr The address to ban or unban. /// @param _ban True if ban, false if unban. function banAddress( address _addr, diff --git a/packages/protocol/contracts/tokenvault/BaseNFTVault.sol b/packages/protocol/contracts/tokenvault/BaseNFTVault.sol index 8e0e691ea0a..31fd5867bad 100644 --- a/packages/protocol/contracts/tokenvault/BaseNFTVault.sol +++ b/packages/protocol/contracts/tokenvault/BaseNFTVault.sol @@ -53,7 +53,7 @@ abstract contract BaseNFTVault is BaseVault { uint256 public constant MAX_TOKEN_PER_TXN = 10; /// @notice Mapping to store bridged NFTs and their canonical counterparts. - mapping(address btoken => CanonicalNFT cannonical) public bridgedToCanonical; + mapping(address btoken => CanonicalNFT canonical) public bridgedToCanonical; /// @notice Mapping to store canonical NFTs and their bridged counterparts. mapping(uint256 chainId => mapping(address ctoken => address btoken)) public canonicalToBridged; diff --git a/packages/protocol/contracts/tokenvault/ERC20Vault.sol b/packages/protocol/contracts/tokenvault/ERC20Vault.sol index a3848b83c85..0dcd1c539dc 100644 --- a/packages/protocol/contracts/tokenvault/ERC20Vault.sol +++ b/packages/protocol/contracts/tokenvault/ERC20Vault.sol @@ -42,7 +42,7 @@ contract ERC20Vault is BaseVault { } /// @notice Mappings from bridged tokens to their canonical tokens. - mapping(address btoken => CanonicalERC20 cannonical) public bridgedToCanonical; + mapping(address btoken => CanonicalERC20 canonical) public bridgedToCanonical; /// @notice Mappings from canonical tokens to their bridged tokens. Also storing /// the chainId for tokens across other chains aside from Ethereum. @@ -341,7 +341,7 @@ contract ERC20Vault is BaseVault { /// @return ctoken_ The canonical token. /// @return balanceChange_ User token balance actual change after the token /// transfer. This value is calculated so we do not assume token balance - /// change is the amount of token transfered away. + /// change is the amount of token transferred away. function _handleMessage( address _user, address _token, diff --git a/packages/protocol/contracts/tokenvault/adapters/USDCAdapter.sol b/packages/protocol/contracts/tokenvault/adapters/USDCAdapter.sol index 9a9c9fbc489..84c56692743 100644 --- a/packages/protocol/contracts/tokenvault/adapters/USDCAdapter.sol +++ b/packages/protocol/contracts/tokenvault/adapters/USDCAdapter.sol @@ -33,10 +33,10 @@ contract USDCAdapter is BridgedERC20Base { /// @notice Initializes the contract. /// @param _owner The owner of this contract. - /// @param _adressManager The address of the {AddressManager} contract. + /// @param _addressManager The address of the {AddressManager} contract. /// @param _usdc The USDC instance. - function init(address _owner, address _adressManager, IUSDC _usdc) external initializer { - __Essential_init(_owner, _adressManager); + function init(address _owner, address _addressManager, IUSDC _usdc) external initializer { + __Essential_init(_owner, _addressManager); usdc = _usdc; }