-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description - cCOP Stable Token - cGHS Pilot Stable Token - GoodDollar - Celo contracts are replaced by @celo/contracts NPM package - Refactoring and various small improvements
- Loading branch information
Showing
247 changed files
with
12,971 additions
and
13,362 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
CELOSCAN_API_KEY= | ||
CELO_MAINNET_RPC_URL=https://forno.celo.org | ||
BAKLAVA_RPC_URL=https://baklava-forno.celo-testnet.org | ||
ALFAJORES_RPC_URL=https://alfajores-forno.celo-testnet.org | ||
ALFAJORES_RPC_URL=https://alfajores-forno.celo-testnet.org |
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,43 @@ | ||
name: "ForkTests" | ||
|
||
env: | ||
FOUNDRY_PROFILE: "fork-tests" | ||
ALFAJORES_RPC_URL: ${{secrets.ALFAJORES_RPC_URL}} | ||
CELO_MAINNET_RPC_URL: ${{secrets.CELO_MAINNET_RPC_URL}} | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" # everyday at midnight | ||
|
||
jobs: | ||
test: | ||
name: Run fork tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
ref: develop | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: "Install Node.js" | ||
uses: "actions/setup-node@v3" | ||
with: | ||
cache: "yarn" | ||
node-version: "20" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "yarn install --immutable" | ||
|
||
- name: "Show the Foundry config" | ||
run: "forge config" | ||
|
||
- name: "Run the tests" | ||
run: "forge test" | ||
|
||
- name: "Add test summary" | ||
run: | | ||
echo "## Tests" >> $GITHUB_STEP_SUMMARY |
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,57 +1,59 @@ | ||
name: "CI" | ||
name: CI | ||
|
||
env: | ||
FOUNDRY_PROFILE: "ci" | ||
FOUNDRY_PROFILE: ci | ||
ALFAJORES_RPC_URL: ${{secrets.ALFAJORES_RPC_URL}} | ||
CELO_MAINNET_RPC_URL: ${{secrets.CELO_MAINNET_RPC_URL}} | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
- "develop" | ||
- main | ||
- develop | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
lint_and_test: | ||
name: Lint & Test | ||
runs-on: "ubuntu-latest" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v3" | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: "Install Node.js" | ||
uses: "actions/setup-node@v3" | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: "yarn" | ||
cache: yarn | ||
node-version: "20" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "yarn install --immutable" | ||
- name: Install the Node.js dependencies | ||
run: yarn install --immutable | ||
|
||
- name: "Lint the contracts" | ||
run: "yarn lint:check" | ||
- name: Lint the contracts | ||
run: yarn lint | ||
|
||
- name: "Add lint summary" | ||
- name: Add lint summary | ||
run: | | ||
echo "## Lint" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY | ||
- name: "Show the Foundry config" | ||
run: "forge config" | ||
- name: Show the Foundry config | ||
run: forge config | ||
|
||
- name: "Run the tests" | ||
run: "forge test" | ||
- name: Run the tests | ||
run: forge test | ||
|
||
- name: "Build the contracts" | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
- name: Check contract sizes | ||
run: yarn run check-contract-sizes | ||
|
||
- name: "Add test summary" | ||
- name: Add test summary | ||
run: | | ||
echo "## Tests" >> $GITHUB_STEP_SUMMARY |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
name: "Storage Layout" | ||
|
||
env: | ||
FOUNDRY_PROFILE: "ci" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
@@ -14,15 +18,10 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
contract: | ||
- contracts/legacy/ReserveSpenderMultiSig.sol:ReserveSpenderMultiSig | ||
- contracts/legacy/StableToken.sol:StableToken | ||
- contracts/legacy/Exchange.sol:Exchange | ||
- contracts/legacy/GrandaMento.sol:GrandaMento | ||
- contracts/swap/Broker.sol:Broker | ||
- contracts/swap/BiPoolManager.sol:BiPoolManager | ||
- contracts/swap/Reserve.sol:Reserve | ||
- contracts/oracles/BreakerBox.sol:BreakerBox | ||
- contracts/common/SortedOracles.sol:SortedOracles | ||
- contracts/tokens/StableTokenV2.sol:StableTokenV2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -32,6 +31,14 @@ jobs: | |
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: "nightly" | ||
- name: "Install Node.js" | ||
uses: "actions/setup-node@v3" | ||
with: | ||
cache: "yarn" | ||
node-version: "20" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "yarn install --immutable" | ||
- name: Check storage layout | ||
uses: Rubilmax/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint:check | ||
yarn lint | ||
yarn todo |
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
Oops, something went wrong.