Skip to content

Commit

Permalink
Merge pull request #417 from superform-xyz/cantina-remediations
Browse files Browse the repository at this point in the history
feat: merge cantina remediations
  • Loading branch information
0xTimepunk authored Dec 27, 2023
2 parents 29aa051 + 749f6f9 commit ba1e671
Show file tree
Hide file tree
Showing 156 changed files with 6,697 additions and 2,765 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ REPORT_GAS=false
PRODUCTION=false
POLYGON_RPC_URL=
AVALANCHE_RPC_URL=
FANTOM_RPC_URL=
BSC_RPC_URL=
ARBITRUM_RPC_URL=
OPTIMISM_RPC_URL=
Expand All @@ -15,12 +14,13 @@ BSC_LOCAL_URL=http://127.0.0.1:8546
AVALANCHE_LOCAL_URL=http://127.0.0.1:8547
ARBITRUM_LOCAL_URL=http://127.0.0.1:8549
OPTIMISM_LOCAL_URL=http://127.0.0.1:8550
FANTOM_LOCAL_URL=http://127.0.0.1:8551
BASE_LOCAL_URL=http://127.0.0.1:8552
GNOSIS_LOCAL_URL=http://127.0.0.1:8553
OWNER_ADDRESS=
MULTI_SIG_ADDRESS=
DEPLOYER_KEY=
FOUNDRY_EXPORTS_OVERWRITE_LATEST=true
RUST_BACKTRACE=full
FOUNDRY_PROFILE=localdev
FOUNDRY_PROFILE=localdev
TENDERLY_PROJECT_SLUG=
TENDERLY_ACCOUNT_ID=
TENDERLY_ACCESS_KEY=
32 changes: 27 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ env:
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
AVALANCHE_RPC_URL: ${{ secrets.AVALANCHE_RPC_URL }}
FANTOM_RPC_URL: ${{ secrets.FANTOM_RPC_URL }}
TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }}
TENDERLY_PROJECT_SLUG: 'superform-v1-d5' # your project slug
TENDERLY_ACCOUNT_ID: 'superform' # your username or organization name
FOUNDRY_EXPORTS_OVERWRITE_LATEST: 'true'

jobs:
build:
runs-on: SuperformCore2
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
submodules: "recursive"

Expand Down Expand Up @@ -59,7 +63,7 @@ jobs:
runs-on: SuperformCore2
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
submodules: "recursive"

Expand All @@ -85,15 +89,14 @@ jobs:

- name: "Add test summary"
run: |
echo "## Fork tests result" >> $GITHUB_STEP_SUMMARY
echo "## Tests result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
coverage:
needs: ["build"]
runs-on: SuperformCore2
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
submodules: "recursive"

Expand All @@ -114,3 +117,22 @@ jobs:
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY
deploy-tenderly-devnets:
runs-on: SuperformCore2
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
with:
submodules: "recursive"
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
- name: 'Install Tenderly CLI'
run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | sudo sh
- name: 'Deploy to Tenderly Devnets'
run: ./utils/run_script_tenderly.sh
shell: bash
- name: "Add devnet deployment summary"
run: |
echo "## Devnet deployment result" >> $GITHUB_STEP_SUMMARY
echo "✅ Deployed to Tenderly Devnet" >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ $ forge test

## Audits

- [Gerard Pearson](https://twitter.com/gpersoon): [2023-09-superform.pdf](https://github.com/superform-xyz/superform-core/files/13300598/2023-09-superform.pdf)
- [Gerard Persoon](https://twitter.com/gpersoon): [2023-09-superform.pdf](https://github.com/superform-xyz/superform-core/files/13300598/2023-09-superform.pdf)

- [Hans Friese](https://twitter.com/hansfriese): [Superform_Core_Review_Final_Hans_20230921.pdf](https://github.com/superform-xyz/superform-core/files/13300591/Superform_Core_Review_Final_Hans_20230921.pdf)
2 changes: 0 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ bsc = "${BSC_RPC_URL}"
avalanche = "${AVALANCHE_RPC_URL}"
arbitrum = "${ARBITRUM_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
fantom = "${FANTOM_RPC_URL}"
base = "${BASE_RPC_URL}"
gnosis = "${GNOSIS_RPC_URL}"
ethereum_fork = "${ETHEREUM_LOCAL_URL}"
Expand All @@ -52,7 +51,6 @@ bsc_fork = "${BSC_LOCAL_URL}"
avalanche_fork = "${AVALANCHE_LOCAL_URL}"
arbitrum_fork = "${ARBITRUM_LOCAL_URL}"
optimism_fork = "${OPTIMISM_LOCAL_URL}"
fantom_fork = "${FANTOM_LOCAL_URL}"
base_fork = "${BASE_LOCAL_URL}"
gnosis_fork = "${GNOSIS_LOCAL_URL}"

Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}
Loading

0 comments on commit ba1e671

Please sign in to comment.