Skip to content

Commit

Permalink
Merge pull request #3 from smartcontractkit/feature/14246-uni-v3-nati…
Browse files Browse the repository at this point in the history
…ve-twap

Uniswap V3 native TWAP
  • Loading branch information
alexroan committed Apr 27, 2022
2 parents 06ffdb2 + 3ab7401 commit 43ced36
Show file tree
Hide file tree
Showing 53 changed files with 7,112 additions and 4,531 deletions.
160 changes: 0 additions & 160 deletions .circleci/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .dockerignore

This file was deleted.

4 changes: 4 additions & 0 deletions .env.example
@@ -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
71 changes: 71 additions & 0 deletions .github/workflows/solidity.yml
@@ -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 }}
10 changes: 10 additions & 0 deletions .gitignore
Expand Up @@ -11,3 +11,13 @@ yarn-error.log
junit.xml
coverage/*
.saddle_history
coverage.json
.env

# Hardhat
cache
artifacts
etherscan/

# Typechain generated types
types
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
16
13 changes: 13 additions & 0 deletions .solcover.js
@@ -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;
},
};
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

0 comments on commit 43ced36

Please sign in to comment.