Skip to content

Commit

Permalink
chore(prettier): update config and lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT committed Nov 7, 2023
1 parent aa2ee07 commit 9230f55
Show file tree
Hide file tree
Showing 7 changed files with 1,056 additions and 1,802 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{
"files": "*.sol",
"options": {
"compiler": "0.8.16",
"bracketSpacing": true,
"printWidth": 100,
"tabWidth": 2
Expand All @@ -17,6 +18,6 @@
"arrowParens": "always",
"singleQuote": true
}
},
}
]
}
5 changes: 3 additions & 2 deletions script/bridge/BridgeToMumbai.s.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.16;

import { DeployedContracts } from "../helpers/DeployedContracts.sol";

import { IMessageDispatcher } from "../../src/interfaces/IMessageDispatcher.sol";
import { MessageDispatcherPolygon } from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";
import {
MessageDispatcherPolygon
} from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";
import { MessageLib } from "../../src/libraries/MessageLib.sol";

import { Greeter } from "../../test/contracts/Greeter.sol";
Expand Down
5 changes: 3 additions & 2 deletions script/deploy/DeployToMumbai.s.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.16;

import { Script } from "forge-std/Script.sol";
import { DeployedContracts } from "../helpers/DeployedContracts.sol";

import { MessageExecutorPolygon } from "../../src/ethereum-polygon/EthereumToPolygonExecutor.sol";
import { MessageDispatcherPolygon } from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";
import {
MessageDispatcherPolygon
} from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";

import { Greeter } from "../../test/contracts/Greeter.sol";

Expand Down
9 changes: 6 additions & 3 deletions script/deploy/DeployToOptimism.s.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.16;

import { Script } from "forge-std/Script.sol";

import { ICrossDomainMessenger } from "../../src/vendor/optimism/ICrossDomainMessenger.sol";
import { DeployedContracts } from "../helpers/DeployedContracts.sol";

import { MessageDispatcherOptimism } from "../../src/ethereum-optimism/EthereumToOptimismDispatcher.sol";
import { MessageExecutorOptimism } from "../../src/ethereum-optimism/EthereumToOptimismExecutor.sol";
import {
MessageDispatcherOptimism
} from "../../src/ethereum-optimism/EthereumToOptimismDispatcher.sol";
import {
MessageExecutorOptimism
} from "../../src/ethereum-optimism/EthereumToOptimismExecutor.sol";

contract DeployMessageDispatcherToEthereumMainnet is Script {
address public proxyOVML1CrossDomainMessenger = 0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1;
Expand Down
9 changes: 7 additions & 2 deletions test/fork/EthereumToPolygonFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ pragma solidity ^0.8.16;

import { Test } from "forge-std/Test.sol";

import { MessageDispatcherPolygon } from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";
import {
MessageDispatcherPolygon
} from "../../src/ethereum-polygon/EthereumToPolygonDispatcher.sol";
import { MessageExecutorPolygon } from "../../src/ethereum-polygon/EthereumToPolygonExecutor.sol";

import { IMessageExecutor, IBatchMessageExecutor } from "../../src/interfaces/extensions/IBatchMessageExecutor.sol";
import {
IMessageExecutor,
IBatchMessageExecutor
} from "../../src/interfaces/extensions/IBatchMessageExecutor.sol";
import { MessageLib } from "../../src/libraries/MessageLib.sol";

import { Greeter } from "../contracts/Greeter.sol";
Expand Down
14 changes: 10 additions & 4 deletions test/unit/ethereum-arbitrum/EthereumToArbitrumExecutor.t.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.16;

import { Test } from "forge-std/Test.sol";

import { IMessageExecutor, IBatchMessageExecutor } from "../../../src/interfaces/extensions/IBatchMessageExecutor.sol";
import {
IMessageExecutor,
IBatchMessageExecutor
} from "../../../src/interfaces/extensions/IBatchMessageExecutor.sol";
import { AddressAliasHelper } from "../../../src/libraries/AddressAliasHelper.sol";
import { MessageLib } from "../../../src/libraries/MessageLib.sol";

import { MessageExecutorArbitrum } from "../../../src/ethereum-arbitrum/EthereumToArbitrumExecutor.sol";
import { MessageDispatcherArbitrum } from "../../../src/ethereum-arbitrum/EthereumToArbitrumDispatcher.sol";
import {
MessageExecutorArbitrum
} from "../../../src/ethereum-arbitrum/EthereumToArbitrumExecutor.sol";
import {
MessageDispatcherArbitrum
} from "../../../src/ethereum-arbitrum/EthereumToArbitrumDispatcher.sol";

import { Greeter } from "../../contracts/Greeter.sol";

Expand Down
Loading

0 comments on commit 9230f55

Please sign in to comment.