Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove repetitive words #4778

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/common/src/hardhat/tasks/collateralWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ task("migrate-collateral-whitelist", "Migrate collateral whitelist, extracted fr
});

console.log(
`Adding ${filteredCombinedSet.length} tokens the the L2 token whitelist on ${l2TokenWhitelist.options.address}...`
`Adding ${filteredCombinedSet.length} tokens the L2 token whitelist on ${l2TokenWhitelist.options.address}...`
);
console.table(filteredCombinedSet);
const l2StoreContract = await deployments.get("Store");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract Admin_ChildMessenger is Ownable, Lockable, ChildMessengerInterface {

/**
* @notice Process a received message from the admin.
* @dev The caller must be the the admin.
* @dev The caller must be the admin.
* @param data data message sent from the admin. 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 Admin to send messages to arbitrary addresses from the messenger contract. This is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ contract Arbitrum_ChildMessenger is AVM_CrossDomainEnabled, ChildMessengerInterf

/**
* @notice Process a received message from the parent messenger via the canonical message bridge.
* @dev The caller must be the the parent messenger, sent over the canonical message bridge.
* @dev The caller must be 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ contract Arbitrum_ParentMessenger is Arbitrum_Messenger, ParentMessengerInterfac

/**
* @notice Process a received message from the child messenger via the canonical message bridge.
* @dev The caller must be the the child messenger, sent over the canonical message bridge.
* @dev The caller must be the child messenger, sent over the canonical message bridge.
* @dev Note that only the OracleHub can receive messages from the child messenger. Therefore we can always forward
* these messages to this contract. The OracleHub must implement processMessageFromChild to handle this message.
* @param data data message sent from the child messenger. Should be an encoded function call or packed data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract Optimism_ChildMessenger is CrossDomainEnabled, ChildMessengerInterface,

/**
* @notice Process a received message from the parent messenger via the canonical message bridge.
* @dev The caller must be the the parent messenger, sent over the canonical message bridge.
* @dev The caller must be 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 L2. This is primarily
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract Optimism_ParentMessenger is CrossDomainEnabled, ParentMessengerInterfac

/**
* @notice Process a received message from the child messenger via the canonical message bridge.
* @dev The caller must be the the child messenger, sent over the canonical message bridge.
* @dev The caller must be the child messenger, sent over the canonical message bridge.
* @dev Note that only the OracleHub can receive messages from the child messenger. Therefore we can always forward
* these messages to this contract. The OracleHub must implement processMessageFromChild to handle this message.
* @param data data message sent from the child messenger. Should be an encoded function call or packed data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "./OptimisticOracleV3CallbackRecipientInterface.sol";
interface EscalationManagerInterface is OptimisticOracleV3CallbackRecipientInterface {
// Assertion policy parameters as returned by the escalation manager.
struct AssertionPolicy {
bool blockAssertion; // If true, the the assertion should be blocked.
bool blockAssertion; // If true, the assertion should be blocked.
bool arbitrateViaEscalationManager; // If true, the escalation manager will arbitrate the assertion.
bool discardOracle; // If true, the Optimistic Oracle V3 should discard the oracle price.
bool validateDisputers; // If true, the escalation manager will validate the disputers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract UniswapV2Broker {
* @param swappedTokens array of addresses which are to be swapped. The order does not matter as the function will figure
* out which tokens need to be exchanged to move the market to the desired "true" price.
* @param truePriceTokens array of unit used to represent the true price. 0th value is the numerator of the true price
* and the 1st value is the the denominator of the true price.
* and the 1st value is the denominator of the true price.
* @param maxSpendTokens array of unit to represent the max to spend in the two tokens.
* @param to recipient of the trade proceeds.
* @param deadline to limit when the trade can execute. If the tx is mined after this timestamp then revert.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ contract UniswapV3Broker {
uint256 inputAmountForStep;

// If zeroForOne is true, then we are moving the price UP. In this case we need to ensure that if the next
// tick price is more than the target price, we set the set the the next step price to the target price. This
// tick price is more than the target price, we set the set the next step price to the target price. This
// ensures that the price does not undershoot when the next tick is the last tick. Else, traverse the whole tick.
if (zeroForOne) {
step.sqrtPriceNextX96 = nextTickPriceX96 > sqrtRatioTargetX96 ? sqrtRatioTargetX96 : nextTickPriceX96;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @notice Liquidates 1000 tokens of the the sponsor's position, where the sponsor is accounts[0] and the liquidator
* @notice Liquidates 1000 tokens of the sponsor's position, where the sponsor is accounts[0] and the liquidator
* is accounts[1]. Useful when paired with the `DeployEMP.js` script which deploys an EMP with a minimum
* sponsor position of 1000 tokens.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function runExport() {
console.log(" 3. Validating deployed contracts are owned by new governor...");

// The Financial Contracts Admin, identifierWhiteList and Voting are all
// ownable and should be owned by the the new governor
// ownable and should be owned by the new governor
await contractOwnedByNewGovernor(FinancialContractsAdmin);
await contractOwnedByNewGovernor(IdentifierWhitelist);
await contractOwnedByNewGovernor(Voting);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/scripts/SetUpFoundryWithHardhat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if ! command -v forge &>/dev/null; then
fi

# Then, configure the core package to work with foundry. To do this we need to pull out the foundry standard library and
# place it in a way that it can be accessed within the core directory. This amounts the the manual steps listed here
# place it in a way that it can be accessed within the core directory. This amounts the manual steps listed here
# https://book.getfoundry.sh/config/hardhat#use-foundry-in-an-existing-hardhat-project without wanting to commit the
# foundry lib & standard lib to the repo.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,7 @@ describe("PricelessPositionManager", function () {
assert.equal(sponsorsPosition.withdrawalRequestAmount.rawValue, 0);
});
it("Optimistic oracle dispute lifecycle", async function () {
// Ensure that a disputed optimistic oracle price request moves the the lifecycle using the expected flow.
// Ensure that a disputed optimistic oracle price request moves the lifecycle using the expected flow.

await collateral.methods.approve(pricelessPositionManager.options.address, toWei("100000")).send({ from: sponsor });
const numTokens = toWei("100");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ describe("FinancialContractClient.js", function () {
]
);

// Calling create from a new address will create a new position and this should be added the the client.
// Calling create from a new address will create a new position and this should be added the client.
await financialContract.methods
.create({ rawValue: convertDecimals("100") }, { rawValue: convertDecimals("45") })
.send({ from: sponsor2 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ const verifyProposalChoices = (proposal: SnapshotProposalGraphql, params: Monito
return { verified: true };
}

// Verify that the the single-choice proposal has exactly one matching approval choice.
// Verify that the single-choice proposal has exactly one matching approval choice.
const matchingChoices = proposal.choices.filter((choice) =>
params.approvalChoices.map((approvalChoice) => approvalChoice.toLowerCase()).includes(choice.toLowerCase())
);
Expand Down
4 changes: 2 additions & 2 deletions packages/serverless-orchestration/src/ServerlessHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ hub.post("/", async (req, res) => {
logger.debug({ at: "ServerlessHub", message: `Bot ${botName} succeeded`, output });
}

await delay(waitForLoggerDelay); // Wait a few seconds to be sure the the winston logs are processed upstream.
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the winston logs are processed upstream.
res
.status(200)
.send({ message: "All calls returned correctly", output: { errorOutputs, validOutputs, retriedOutputs } });
Expand Down Expand Up @@ -373,7 +373,7 @@ hub.post("/", async (req, res) => {
});
}

await delay(waitForLoggerDelay); // Wait a few seconds to be sure the the winston logs are processed upstream.
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the winston logs are processed upstream.
res.status(500).send({
message: errorOutput instanceof Error ? "A fatal error occurred in the hub" : "Some spoke calls returned errors",
output: errorOutput instanceof Error ? errorOutput.message : errorOutput,
Expand Down
4 changes: 2 additions & 2 deletions packages/serverless-orchestration/src/ServerlessSpoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spoke.post("/", async (req, res) => {
childProcessIdentifier: _getChildProcessIdentifier(req),
execResponse,
});
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the the winston logs are processed upstream.
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the winston logs are processed upstream.

res.status(200).send({
message: "Process exited with no error",
Expand All @@ -88,7 +88,7 @@ spoke.post("/", async (req, res) => {
jsonBody: req.body,
execResponse: execResponse instanceof Error ? execResponse.message : execResponse,
});
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the the winston logs are processed upstream.
await delay(waitForLoggerDelay); // Wait a few seconds to be sure the winston logs are processed upstream.
res.status(500).send({
message: "Process exited with error",
childProcessIdentifier: _getChildProcessIdentifier(req),
Expand Down