forked from compound-finance/open-oracle
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 #3 from smartcontractkit/feature/14246-uni-v3-nati…
…ve-twap Uniswap V3 native TWAP
- Loading branch information
Showing
53 changed files
with
7,112 additions
and
4,531 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
COMP_MULTISIG=0xbbf3f1421D886E9b2c5D716B5192aC998af2012c | ||
MAINNET_PK= # Primary key of the account to deploy from | ||
MAINNET_URL= # Mainnet http json RPC url | ||
ETHERSCAN= # Etherscan API key |
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,71 @@ | ||
name: Solidity | ||
on: [push] | ||
jobs: | ||
solidity_coverage: | ||
environment: ci | ||
name: Solidity Test Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Yarn cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: yarn-cache | ||
with: | ||
path: | | ||
~/.npm | ||
~/.cache | ||
**/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: yarn install --frozen-lockfile | ||
- name: Run coverage | ||
run: | | ||
yarn run compile | ||
yarn run coverage | ||
env: | ||
MAINNET_PK: ${{ secrets.MAINNET_PK }} | ||
MAINNET_URL: ${{ secrets.MAINNET_URL }} | ||
continue-on-error: true | ||
|
||
solidity_test: | ||
name: Solidity Tests | ||
environment: ci | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Yarn cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: yarn-cache | ||
with: | ||
path: | | ||
~/.npm | ||
~/.cache | ||
**/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: yarn install --frozen-lockfile | ||
- name: Run tests | ||
run: | | ||
yarn run compile | ||
yarn run test | ||
env: | ||
MAINNET_PK: ${{ secrets.MAINNET_PK }} | ||
MAINNET_URL: ${{ secrets.MAINNET_URL }} |
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 @@ | ||
16 |
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,13 @@ | ||
module.exports = { | ||
skipFiles: [ | ||
"test/MockChainlinkOCRAggregator.sol", | ||
"test/UniswapV3SwapHelper.sol", | ||
], | ||
mocha: { | ||
grep: "@skip-on-coverage", // skip everything with this tag | ||
invert: true, | ||
}, | ||
onServerReady: () => { | ||
process.env.COVERAGE = true; | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.