From 120f7314b8fe5cc5f9aa19d44692f6b391346909 Mon Sep 17 00:00:00 2001 From: chrismaree Date: Fri, 10 Dec 2021 11:06:51 +0200 Subject: [PATCH] fix(core-contracts): fix some typographical errors Signed-off-by: chrismaree --- packages/core/contracts/cross-chain-oracle/GovernorSpoke.sol | 2 +- .../chain-adapters/Admin_ChildMessenger.sol | 2 +- .../chain-adapters/Optimism_ChildMessenger.sol | 4 ++-- .../optimistic-rewarder/OptimisticRewarderBase.sol | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/contracts/cross-chain-oracle/GovernorSpoke.sol b/packages/core/contracts/cross-chain-oracle/GovernorSpoke.sol index 22464ba812..661965814b 100644 --- a/packages/core/contracts/cross-chain-oracle/GovernorSpoke.sol +++ b/packages/core/contracts/cross-chain-oracle/GovernorSpoke.sol @@ -27,7 +27,7 @@ contract GovernorSpoke is Lockable, ChildMessengerConsumerInterface { /** * @notice Executes governance transaction created on Ethereum. - * @dev Can only called by ChildMessenger contract that wants to execute governance action on this child chain that + * @dev Can only be called by ChildMessenger contract that wants to execute governance action on this child chain that * originated from DVM voters on root chain. ChildMessenger should only receive communication from ParentMessenger * on mainnet. diff --git a/packages/core/contracts/cross-chain-oracle/chain-adapters/Admin_ChildMessenger.sol b/packages/core/contracts/cross-chain-oracle/chain-adapters/Admin_ChildMessenger.sol index 452e5e466a..165efa81f0 100644 --- a/packages/core/contracts/cross-chain-oracle/chain-adapters/Admin_ChildMessenger.sol +++ b/packages/core/contracts/cross-chain-oracle/chain-adapters/Admin_ChildMessenger.sol @@ -10,7 +10,7 @@ import "../../common/implementation/Lockable.sol"; * @notice A version of the child messenger that allows an admin to relay messages on its behalf. * @dev No parent messenger is needed for this case, as the admin could be trusted to manually send DVM requests on * mainnet. This is intended to be used as a "beta" deployment compatible with any EVM-compatible chains before - * impleenting a full bridge adapter. Put simply, it is meant as a stop-gap. + * implementing a full bridge adapter. Put simply, it is meant as a stop-gap. */ contract Admin_ChildMessenger is Ownable, Lockable, ChildMessengerInterface { // The only child network contract that can send messages over the bridge via the messenger is the oracle spoke. diff --git a/packages/core/contracts/cross-chain-oracle/chain-adapters/Optimism_ChildMessenger.sol b/packages/core/contracts/cross-chain-oracle/chain-adapters/Optimism_ChildMessenger.sol index b1142b583e..6e4358d0bb 100644 --- a/packages/core/contracts/cross-chain-oracle/chain-adapters/Optimism_ChildMessenger.sol +++ b/packages/core/contracts/cross-chain-oracle/chain-adapters/Optimism_ChildMessenger.sol @@ -9,7 +9,7 @@ import "../../common/implementation/Lockable.sol"; /** * @notice Sends cross chain messages from Optimism L2 to Ethereum L1 network. - * @dev This contract is ownable via the onlyCrossDomainAccount modifier, restricting ownership to the cross-domain + * @dev This contract is ownable via the onlyFromCrossDomainAccount. modifier, restricting ownership to the cross-domain * parent messenger contract that lives on L1. */ contract Optimism_ChildMessenger is CrossDomainEnabled, ChildMessengerInterface, Lockable { @@ -95,7 +95,7 @@ contract Optimism_ChildMessenger is CrossDomainEnabled, ChildMessengerInterface, * @dev The caller must be the the parent messenger, sent over the canonical message bridge. * @param data data message sent from the L1 messenger. Should be an encoded function call or packed data. * @param target desired recipient of `data`. Target must implement the `processMessageFromParent` function. Having - * this as a param enables the L1 Messenger to send messages to arbitrary addresses on the L1. This is primarily + * this as a param enables the L1 Messenger to send messages to arbitrary addresses on the L2. This is primarily * used to send messages to the OracleSpoke and GovernorSpoke on L2. */ function processMessageFromCrossChainParent(bytes memory data, address target) diff --git a/packages/core/contracts/financial-templates/optimistic-rewarder/OptimisticRewarderBase.sol b/packages/core/contracts/financial-templates/optimistic-rewarder/OptimisticRewarderBase.sol index 4a137f2349..34e6efbbdb 100644 --- a/packages/core/contracts/financial-templates/optimistic-rewarder/OptimisticRewarderBase.sol +++ b/packages/core/contracts/financial-templates/optimistic-rewarder/OptimisticRewarderBase.sol @@ -149,7 +149,7 @@ abstract contract OptimisticRewarderBase is Lockable, MultiCaller { * @dev if called by someone who doesn't own the token, they are effectively gifting their bond to the owner. * @param tokenId the tokenId the redemption is for. * @param cumulativeRedemptions the cumulative token addresses and amounts that this tokenId is eligible for - * at the current timestap. cumulative redemptions that are too low should be considered to be valid. + * at the current timestamp. cumulative redemptions that are too low should be considered to be valid. */ function requestRedemption(uint256 tokenId, RedemptionAmount[] memory cumulativeRedemptions) public @@ -185,7 +185,7 @@ abstract contract OptimisticRewarderBase is Lockable, MultiCaller { bytes32 redemptionId = getRedemptionId(tokenId, cumulativeRedemptions); // This automatically checks that redemptions[redemptionId] != 0. - // Check that it has not passed liveness liveness. + // Check that it has not passed liveness. Redemption storage redemption = redemptions[redemptionId]; require(getCurrentTime() < redemption.expiryTime, "redemption expired or nonexistent");