Skip to content

Commit

Permalink
fix: resolve conflicts with main
Browse files Browse the repository at this point in the history
  • Loading branch information
dristpunk committed Feb 1, 2024
2 parents 7806b64 + 03c6e1a commit 54ae25f
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 16 deletions.
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright © 2023 Wonderland

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<dt>Deployment scripts</dt>
<dd>Sample scripts to deploy contracts on both mainnet and testnet.</dd>

<dt>Sample Integraion & Unit tests</dt>
<dt>Sample Integration & Unit tests</dt>
<dd>Example tests showcasing mocking, assertions and configuration for mainnet forking. As well it includes everything needed in order to check code coverage.</dd>

<dt>Linter</dt>
Expand Down Expand Up @@ -140,3 +140,6 @@ Also, remember to update the `package_name` param to your package name:
```

You can take a look at our [solidity-exporter-action](https://github.com/defi-wonderland/solidity-exporter-action) repository for more information and usage examples.

## Licensing
The primary license for the boilerplate is MIT, see [`LICENSE`](https://github.com/defi-wonderland/solidity-foundry-boilerplate/blob/main/LICENSE)
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ multiline_func_header = 'params_first'
sort_imports = true

[profile.default]
solc_version = '0.8.19'
solc_version = '0.8.23'
src = 'solidity'
test = 'solidity/test'
out = 'out'
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/Greeter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

import {IGreeter} from 'interfaces/IGreeter.sol';
import {IERC20} from 'isolmate/interfaces/tokens/IERC20.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/IGreeter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

import {IERC20} from 'isolmate/interfaces/tokens/IERC20.sol';

Expand Down
18 changes: 9 additions & 9 deletions solidity/scripts/Deploy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

import {Greeter} from 'contracts/Greeter.sol';
import {Script} from 'forge-std/Script.sol';
Expand All @@ -13,18 +13,18 @@ abstract contract DeployHelper is Script {
}
}

contract DeployMainnet is Deploy {
function run() external {
IERC20 weth = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

_deploy('some real greeting', weth);
}
}

contract Deploy is DeployHelper {
function run(address _weth) external {
IERC20 weth = IERC20(_weth);

_deploy('some test greeting', weth);
}
}

contract DeployMainnet is Deploy {
function run() external {
IERC20 weth = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

_deploy('some real greeting', weth);
}
}
2 changes: 1 addition & 1 deletion solidity/test/integration/Greeter.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

import {IntegrationBase} from 'test/integration/IntegrationBase.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/IntegrationBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

import {Greeter, IGreeter} from 'contracts/Greeter.sol';
import {Test} from 'forge-std/Test.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/Greeter.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;
pragma solidity =0.8.23;

Check warning on line 2 in solidity/test/unit/Greeter.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Found more than One contract per file. 4 contracts found!

import {Greeter, IGreeter} from 'contracts/Greeter.sol';
import {Test} from 'forge-std/Test.sol';
Expand Down

0 comments on commit 54ae25f

Please sign in to comment.