-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Bananapus/refactor/npm
refactor: npm
- Loading branch information
Showing
32 changed files
with
4,878 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Description | ||
|
||
*What does this PR: do, how, why?* | ||
|
||
## Limitations & risks | ||
|
||
*Are there any trade-off or new vulnarbility surface based on theses changes?* | ||
|
||
# Check-list | ||
- [ ] Tests are covering the new feature | ||
- [ ] Code is [natspec'd](https://docs.soliditylang.org/en/v0.8.17/natspec-format.html) | ||
- [ ] Code is [linted and formatted](https://docs.soliditylang.org/en/v0.8.17/style-guide.html) | ||
- [ ] I have run the test locally (and they pass) | ||
- [ ] I have rebased to the latest main commit (and tests still pass) | ||
|
||
# Interactions | ||
These changes will impact the following contracts: | ||
- Directly: | ||
|
||
- Indirectly: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: contracts-template-lint | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
forge-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: bahmutov/npm-install@v1 | ||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Check linting | ||
run: forge fmt --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: contracts-template-tests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
forge-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: bahmutov/npm-install@v1 | ||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: install libraries | ||
run: git submodule update --init | ||
- name: Run tests | ||
run: FOUNDRY_PROFILE=default forge snapshot # TODO: Change to fork once fork tests can be run | ||
- name: Check contract sizes | ||
run: FOUNDRY_PROFILE=ci_sizes forge build --sizes |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
[submodule "lib/prb-math"] | ||
path = lib/prb-math | ||
url = https://github.com/PaulRBerg/prb-math | ||
[submodule "lib/juice-contracts-v4"] | ||
path = lib/juice-contracts-v4 | ||
url = https://github.com/Bananapus/juice-contracts-v4 | ||
[submodule "lib/v3-core"] | ||
path = lib/v3-core | ||
url = https://github.com/uniswap/v3-core | ||
branch = 0.8 | ||
[submodule "lib/v3-periphery"] | ||
path = lib/v3-periphery | ||
url = https://github.com/uniswap/v3-periphery | ||
branch = 0.8 | ||
[submodule "lib/uniswap-v3-foundry-quote"] | ||
path = lib/uniswap-v3-foundry-quote | ||
url = https://github.com/exhausted-pigeon-srl/uniswap-v3-foundry-quote | ||
[submodule "lib/uniswap-v3-foundry-pool"] | ||
path = lib/uniswap-v3-foundry-pool | ||
url = https://github.com/exhausted-pigeon-srl/uniswap-v3-foundry-pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
node_modules | ||
.env | ||
*.txt | ||
!remappings.txt | ||
|
||
# Git | ||
.git/ | ||
.github/ | ||
.gitmodules | ||
|
||
# Misc | ||
.example.env | ||
utils/ | ||
|
||
# Output | ||
out | ||
|
||
# Foundry | ||
lib/ | ||
|
||
# Hardhat files | ||
cache | ||
artifacts | ||
deployments/localhost/** | ||
|
||
# Mac OSX | ||
.DS_Store | ||
|
||
# Code coverage reports | ||
coverage/ | ||
coverage.json | ||
lcov.info | ||
|
||
# VSCode | ||
workspace.code-workspace | ||
.vscode/ | ||
|
||
backup/ | ||
.secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Bananapus | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule juice-contracts-v4
deleted from
292a8d
Submodule openzeppelin-contracts
deleted from
192e87
Submodule prb-math
deleted from
5b6279
Submodule uniswap-v3-foundry-pool
deleted from
9ca359
Submodule uniswap-v3-foundry-quote
deleted from
cb6b07
Submodule v3-core
deleted from
6562c5
Submodule v3-periphery
deleted from
b325bb
Oops, something went wrong.