-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
659 changed files
with
20,664 additions
and
411,343 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,5 @@ | ||
--- | ||
"hardhat": patch | ||
--- | ||
|
||
fix: don't panic when a precompile errors |
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,5 @@ | ||
--- | ||
"hardhat": patch | ||
--- | ||
|
||
Added support for solc versions 0.8.28 |
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,15 +1,22 @@ | ||
{ | ||
"name": "Hardhat + EDR", | ||
"name": "Hardhat", | ||
"image": "mcr.microsoft.com/devcontainers/base:bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "16" /* Keep in sync with the oldest version of Node.js that Hardhat supports */ | ||
}, | ||
"ghcr.io/devcontainers/features/rust:1": { | ||
"version": "1.70" /* Keep in sync with rust-toolchain */, | ||
"profile": "default" | ||
"version": "18" | ||
} | ||
}, | ||
/* libudev-dev is required by hardhat-ledger. pkg-config is required by EDR to use OpenSSL */ | ||
"postCreateCommand": "sudo apt update && sudo apt install -y libudev-dev pkg-config" | ||
"postCreateCommand": "scripts/setup.sh", | ||
"containerEnv": { | ||
"ALCHEMY_URL": "${localEnv:ALCHEMY_URL}", | ||
"INFURA_URL": "${localEnv:INFURA_URL}" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"esbenp.prettier-vscode", | ||
"NomicFoundation.hardhat-solidity" | ||
] | ||
} | ||
} | ||
} |
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,3 +1,6 @@ | ||
*.sol linguist-language=Solidity | ||
# prevent github actions to checkout files with crlf line endings | ||
* -text | ||
* text=auto | ||
|
||
*.sol text eol=lf | ||
*.d.ts text eol=lf |
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: Setup env | ||
description: Sets up node and pnpm | ||
|
||
inputs: | ||
pnpm-version: | ||
description: Version of pnpm to install | ||
required: false | ||
default: "9" | ||
node-version: | ||
description: Version of node to install | ||
required: false | ||
default: "18" | ||
cache-save: | ||
description: Whether to save the pnpm cache | ||
required: false | ||
default: "false" | ||
outputs: | ||
cache-hit: | ||
description: Whether the cache was restored | ||
value: ${{ steps.setup-node.outputs.cache-hit || steps.cache-restore.outputs.cache-hit }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
- uses: actions/setup-node@v4 | ||
id: setup-node | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: ${{ inputs.cache-save == 'true' && 'pnpm' || '' }} | ||
cache-dependency-path: "**/pnpm-lock.yaml" | ||
- id: pnpm | ||
if: inputs.cache-save == 'false' | ||
run: pnpm store path --silent | xargs -I {} -0 echo "path={}" | tee -a $GITHUB_OUTPUT | ||
shell: bash | ||
- uses: actions/cache/restore@v4 | ||
id: cache-restore | ||
if: inputs.cache-save == 'false' | ||
with: | ||
path: ${{ steps.pnpm.outputs.path }} | ||
key: node-cache-${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PR autoassignment | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
assign-new-issue: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const externalPrTriager = "kanej"; | ||
// Within the Github API PRs are issue objects | ||
const pr = await github.rest.issues.get({ | ||
owner: context.issue.owner, | ||
repo: context.issue.repo, | ||
issue_number: context.issue.number | ||
}); | ||
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(pr.data.author_association) | ||
if (isCollaborator) { | ||
return | ||
} | ||
await github.rest.issues.addAssignees({ | ||
owner: context.issue.owner, | ||
repo: context.issue.repo, | ||
issue_number: context.issue.number, | ||
assignees: [externalPrTriager], | ||
}); |
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,48 @@ | ||
name: Cache | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- pre-release-testing-branch | ||
- changeset-release/main | ||
- v-next | ||
paths: | ||
- ".github/workflows/cache.yml" | ||
- "**/pnpm-lock.yaml" | ||
pull_request: | ||
paths: | ||
- ".github/workflows/cache.yml" | ||
- "**/pnpm-lock.yaml" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
cache: | ||
name: Cache | ||
runs-on: ${{ matrix.runner }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: env | ||
uses: ./.github/actions/setup-env | ||
with: | ||
cache-save: true | ||
- name: Install | ||
if: steps.env.outputs.cache-hit != 'true' | ||
run: | | ||
for lockfile in $(find "$(pwd)" -name pnpm-lock.yaml); do | ||
pushd "$(dirname "$lockfile")" | ||
pnpm install --frozen-lockfile --prefer-offline | ||
popd | ||
done |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Close Stale Issues | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Runs daily at midnight UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close stale issues | ||
uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: "This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information." | ||
days-before-stale: 7 | ||
days-before-close: 7 | ||
only-labels: "status:needs-more-info" | ||
exempt-issue-labels: "status:do-not-close" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.