Skip to content

Commit

Permalink
Merge branch 'hardhat-ignition-branch' into hardhat-ignition-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyTM committed Dec 19, 2024
2 parents 7a27499 + 08191d3 commit 760f691
Show file tree
Hide file tree
Showing 677 changed files with 110,265 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/hardhat-ignition/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Hardhat Ignition",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "18" /* Keep in sync with the oldest version of Node.js that Hardhat supports */
},
},
/* installs pnpm dependencies on the new container. */
"postCreateCommand": "pnpm install"
}
11 changes: 11 additions & 0 deletions packages/hardhat-ignition/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EditorConfig is awesome: https://EditorConfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
2 changes: 2 additions & 0 deletions packages/hardhat-ignition/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# prevent github actions to checkout files with crlf line endings
* text=auto eol=lf
24 changes: 24 additions & 0 deletions packages/hardhat-ignition/.github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Bug report
description: File a bug report
labels:
- "status:triaging"
body:
- type: textarea
id: what-happened
attributes:
label: "What happened?"
description: "A brief description of what happened and what you expected to happen"
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: "Minimal reproduction steps"
description: "Tell us the minimal steps needed to reproduce the bug"
validations:
required: true
- type: input
id: search-terms
attributes:
label: "Search terms"
description: "Include the search terms you used before opening this issue. This will make it easier for others to find it."
5 changes: 5 additions & 0 deletions packages/hardhat-ignition/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Do you need help?
url: https://hardhat.org/hardhat-runner/docs/guides/getting-help
about: Check our guide on how to get help with Hardhat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature request
description: Suggest a new feature
labels:
- "status:triaging"
body:
- type: textarea
id: feature-description
attributes:
label: "Describe the feature"
description: "A description of what you would like us to add to Hardhat Ignition and your use case for it"
validations:
required: true
- type: input
id: search-terms
attributes:
label: "Search terms"
description: "Include the search terms you used before opening this issue. This will make it easier for others to find it."
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Other issue
about: Other kind of issue. Please don't use this to ask questions.
labels:
- "status:triaging"
---
88 changes: 88 additions & 0 deletions packages/hardhat-ignition/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: CI

on:
push:
branches: [$default-branch]
pull_request:
branches:
- "**"

jobs:
test_on_windows:
name: Test Ignition on Windows with Node 18
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test

test_on_macos:
name: Test Ignition on MacOS with Node 18
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test

test_on_linux:
name: Test Ignition on Ubuntu with Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test

lint:
name: Lint the project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: PR review requested Slack notification
on:
pull_request_target:
types: [review_requested]
jobs:
requested:
uses: NomicFoundation/github-actions-workflows/.github/workflows/review-requested-slack-notification.yml@main
secrets: inherit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: PR reviewed Slack notification
on:
pull_request_review:
types: [submitted]
jobs:
reviewed:
uses: NomicFoundation/github-actions-workflows/.github/workflows/review-submitted-slack-notification.yml@main
secrets: inherit
144 changes: 144 additions & 0 deletions packages/hardhat-ignition/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
*.ndjson

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.npmrc

# Mac OSX garbage
.DS_Store

# Custom workspace settings for VSCode
.vscode/settings.json

# Webstorm files
.idea/

# npm lockfile since we use pnpm now
package-lock.json
1 change: 1 addition & 0 deletions packages/hardhat-ignition/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit 760f691

Please sign in to comment.