Skip to content

Commit

Permalink
Merge branch 'master' into add-typescript-peer-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Jun 8, 2022
2 parents ad7b721 + 17b8a23 commit 49db609
Show file tree
Hide file tree
Showing 684 changed files with 27,598 additions and 30,353 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "minor",
"ignore": ["docs", "@nomiclabs/common", "@nomiclabs/hardhat-e2e-tests"],
"ignore": ["@nomiclabs/common", "@nomiclabs/hardhat-e2e-tests"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
Expand Down
5 changes: 0 additions & 5 deletions .changeset/gentle-points-provide.md

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
env:
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
NO_FAST_EXIT: true
run: yarn test
run: yarn test || (echo "===== Retry =====" && yarn test)
- name: Notify failures
if: failure()
uses: slackapi/slack-github-action@v1.18.0
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/check-docs-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Docs Site

on:
push:
branches:
- "fr/**"

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Install Docs
run: cd docs && yarn
- name: lint
run: cd docs && yarn lint
- name: Build
run: cd docs && yarn build
- name: Storybook
run: cd docs && yarn build-storybook
2 changes: 1 addition & 1 deletion .github/workflows/close-linear-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
LINEAR_TEAM_ID: ${{ secrets.LINEAR_TEAM_ID }}
MAINTAINERS: alcuadrado;fvictorio;feuGeneA;morgansliman
MAINTAINERS: fvictorio;feuGeneA;morgansliman
13 changes: 10 additions & 3 deletions .github/workflows/comment-on-linter-error.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Comment on lint failure

on:
pull_request_target:
types: [opened]
types:
- opened
branches:
- $default-branch
- master

concurrency:
group: ${{github.workflow}}-${{github.ref}}
Expand All @@ -31,6 +32,12 @@ jobs:
run: yarn lint
- name: Check dependency versions
run: node scripts/check-dependencies.js
- name: Install website
working-directory: docs/
run: yarn
- name: Lint website
working-directory: docs/
run: yarn lint
- uses: actions/github-script@v6
name: Comment on failure
if: ${{ failure() }}
Expand All @@ -40,5 +47,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Thanks for submitting this PR!\nUnfortunately, it has some linter errors, so we can't merge it yet. Can you please fix them?\nRunning yarn `lint:fix` in the root of the repository may fix them automatically."
body: "Thanks for submitting this PR!\n\nUnfortunately, it has some linter errors, so we can't merge it yet. Can you please fix them?\n\nRunning yarn `lint:fix` in the root of the repository may fix them automatically."
})
2 changes: 1 addition & 1 deletion .github/workflows/create-linear-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
LINEAR_TEAM_ID: ${{ secrets.LINEAR_TEAM_ID }}
MAINTAINERS: alcuadrado;fvictorio;feuGeneA;morgansliman
MAINTAINERS: fvictorio;feuGeneA;morgansliman
2 changes: 1 addition & 1 deletion .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: E2E tests CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/e2e/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-core CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-core/**"
- "packages/hardhat-common/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-ethers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-ethers CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-ethers/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-etherscan-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-etherscan CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-etherscan/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-ganache-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-ganache CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-ganache/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-network-forking-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Hardhat Network Forking Functionality CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-core/**"
- "packages/hardhat-common/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-network-tracing-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Hardhat Network Tracing Capabilities CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-core/**"
- "packages/hardhat-common/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-shorthand-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-shorthand CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-shorthand/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-solhint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-solhint CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-solhint/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-solpp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-solpp CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-solpp/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-truffle4-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-truffle4 CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-truffle4/**"
- "packages/hardhat-web3-legacy/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-truffle5-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-truffle5 CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-truffle5/**"
- "packages/hardhat-web3/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-vyper-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-vyper CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-vyper/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-waffle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-waffle CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-waffle/**"
- "packages/hardhat-ethers/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-web3-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-web3 CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-web3/**"
- "packages/hardhat-core/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-web3-legacy-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hardhat-web3-legacy CI

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
paths:
- "packages/hardhat-web3-legacy/**"
- "packages/hardhat-core/**"
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint

on:
push:
branches: [$default-branch, pre-release-testing-branch]
branches: [$default-branch]
pull_request:
branches:
- "*"
Expand All @@ -19,8 +19,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
cache: yarn
cache-dependency-path: |
yarn.lock
docs/yarn.lock
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -29,3 +32,9 @@ jobs:
run: yarn lint
- name: Check dependency versions
run: node scripts/check-dependencies.js
- name: Install website
working-directory: docs/
run: yarn
- name: Lint website
working-directory: docs/
run: yarn lint
36 changes: 36 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pre-release tests

on:
push:
branches: [pre-release-testing-branch]

env:
RUN_ETHERSCAN_TESTS: yes
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
WALLET_PRIVATE_KEY: ${{ secrets.ETHERSCAN_RINKEBY_PRIVATE_KEY }}
TESTNET_NETWORK_URL: ${{ secrets.ETHERSCAN_RINKEBY_RPC_URL }}

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
pre_release_checks:
name: Pre-release checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: lint
run: yarn lint
- name: test
run: yarn test
- name: Check dependency versions
run: node scripts/check-dependencies.js
39 changes: 39 additions & 0 deletions .github/workflows/test-recent-mainnet-block.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run a recent full block in the Hardhat Network

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

defaults:
run:
working-directory: packages/hardhat-core

jobs:
test-recent-mainnet-block:
name: Test recent mainnet block
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
- name: Install
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Run test
env:
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
run: yarn ts-node scripts/test-recent-mainnet-block.ts
- name: Notify failures
if: failure()
uses: slackapi/slack-github-action@v1.18.0
with:
payload: |
{
"workflow_name": "${{ github.workflow }}",
"run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.GH_ACTION_NOTIFICATIONS_SLACK_WEBHOOK_URL }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ typings/
# DynamoDB Local files
.dynamodb/


docs/.env.example
3 changes: 3 additions & 0 deletions docs/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["next/babel", "linaria/babel"]
}
4 changes: 4 additions & 0 deletions docs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_ALGOLIA_APP_ID =
NEXT_PUBLIC_ALGOLIA_API_KEY =
NEXT_PUBLIC_ALGOLIA_INDEX_NAME =
NEXT_PUBLIC_MEASUREMENT_ID =
Loading

0 comments on commit 49db609

Please sign in to comment.