-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
338 additions
and
33 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,6 @@ | ||
--- | ||
"@ethereum-waffle/chai": patch | ||
"@ethereum-waffle/optimism": patch | ||
--- | ||
|
||
Support testing on optimism |
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,41 @@ | ||
name: Optimism testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- changeset-release/* | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# test against a known version and a current master | ||
OPTIMISM_GIT_HEAD: ["b0a54509a6f99194221f5ade230ceae7892b3393", "master"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 6.32.4 | ||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v3.0.0 | ||
with: | ||
node-version: 16.x | ||
- name: Build project | ||
run: | | ||
pnpm install | ||
pnpm build | ||
- name: Setup optimism node | ||
run: | | ||
cd .. | ||
git clone https://github.com/ethereum-optimism/optimism.git | ||
cd optimism/ops | ||
git checkout ${{ matrix.OPTIMISM_GIT_HEAD }} | ||
docker-compose pull | ||
docker-compose up & | ||
scripts/wait-for-sequencer.sh && echo "System is ready to accept transactions" | ||
- name: Test optimism | ||
run: | | ||
cd waffle-optimism | ||
pnpm run test:optimism |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,6 +1,7 @@ | ||
import {changeEtherBalanceTest} from './changeEtherBalanceTest'; | ||
import {BASE_FEE_PER_GAS, TX_GAS} from './constants'; | ||
import {describeMockProviderCases} from './MockProviderCases'; | ||
|
||
describeMockProviderCases('INTEGRATION: changeEtherBalance matcher', (provider) => { | ||
changeEtherBalanceTest(provider); | ||
changeEtherBalanceTest(provider, {txGasFees: TX_GAS * BASE_FEE_PER_GAS, baseFeePerGas: BASE_FEE_PER_GAS}); | ||
}); |
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,6 +1,7 @@ | ||
import {changeEtherBalancesTest} from './changeEtherBalancesTest'; | ||
import {TX_GAS, BASE_FEE_PER_GAS} from './constants'; | ||
import {describeMockProviderCases} from './MockProviderCases'; | ||
|
||
describeMockProviderCases('INTEGRATION: changeEtherBalances matcher', (provider) => { | ||
changeEtherBalancesTest(provider); | ||
changeEtherBalancesTest(provider, {txGasFees: TX_GAS * BASE_FEE_PER_GAS, baseFeePerGas: BASE_FEE_PER_GAS}); | ||
}); |
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
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.