From da64af1d5d3bfbf7911db4ca7fc6320de6809637 Mon Sep 17 00:00:00 2001 From: Pablo <55535804+Pabl0cks@users.noreply.github.com> Date: Sun, 23 Feb 2025 11:45:19 +0100 Subject: [PATCH 01/10] Add OP Retro Funding round 7 verification (#53) --- funding.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 funding.json diff --git a/funding.json b/funding.json new file mode 100644 index 0000000..1493388 --- /dev/null +++ b/funding.json @@ -0,0 +1,5 @@ +{ + "opRetro": { + "projectId": "0x154a42e5ca88d7c2732fda74d6eb611057fc88dbe6f0ff3aae7b89c2cd1666ab" + } +} From e6b42bc993772fc00a25fc5949d5127d8fa0bf2e Mon Sep 17 00:00:00 2001 From: Rinat Date: Thu, 17 Jul 2025 13:40:25 +0300 Subject: [PATCH 02/10] feat: example extension gh action --- .github/workflows/lint-installed-example.yml | 86 ++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 .github/workflows/lint-installed-example.yml diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-installed-example.yml new file mode 100644 index 0000000..7f17a05 --- /dev/null +++ b/.github/workflows/lint-installed-example.yml @@ -0,0 +1,86 @@ +name: Lint Installed Example + +on: + push: + branches: + - example-gh-action + pull_request: + branches: + - example + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + config: + [ + hardhat_with_extension, + foundry_with_extension, + no_solidity_framework_with_extension, + ] + steps: + - uses: actions/checkout@v4 + + - name: Set dummy git user + run: | + git config --global user.name "Dummy User" + git config --global user.email "dummy@example.com" + + - name: Setup Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Install Foundry + if: matrix.config == 'foundry_with_extension' + uses: foundry-rs/foundry-toolchain@v1 + with: + cache: false + + - name: Install foundryup + if: matrix.config == 'foundry_with_extension' + run: | + curl -L https://foundry.paradigm.xyz -o foundryup-init.sh + bash foundryup-init.sh + echo "$HOME/.config/.foundry/bin" >> $GITHUB_PATH + + - name: Install application (Hardhat with extension configuration) + if: matrix.config == 'hardhat_with_extension' + run: npx create-eth@latest --yes new_project_hardhat_with_extension -s hardhat -e scaffold-eth/create-eth-extensions:example + + - name: Install application (Foundry with extension configuration) + if: matrix.config == 'foundry_with_extension' + run: | + export PATH="$HOME/.config/.foundry/bin:$PATH" + npx create-eth@latest --yes new_project_foundry_with_extension -s foundry -e scaffold-eth/create-eth-extensions:example + + - name: Install application (No solidity framework with extension configuration) + if: matrix.config == 'no_solidity_framework_with_extension' + run: npx create-eth@latest --yes new_project_no_solidity_framework_with_extension -s none -e scaffold-eth/create-eth-extensions:example + + - name: Run chain and deploy + working-directory: new_project_${{ matrix.config }} + if: matrix.config == 'hardhat_with_extension' || matrix.config == 'foundry_with_extension' + run: | + yarn chain & + npx wait-on tcp:8545 + yarn deploy + + - name: Run linting hardhat package + if: matrix.config == 'hardhat_with_extension' + working-directory: new_project_${{ matrix.config }} + run: yarn hardhat:lint --max-warnings=0 + + - name: Run linting foundry package + if: matrix.config == 'foundry_with_extension' + working-directory: new_project_${{ matrix.config }} + run: yarn foundry:lint + + - name: Run linting nextjs package + working-directory: new_project_${{ matrix.config }} + run: yarn next:lint --max-warnings=0 + + - name: Check types nextjs package + working-directory: new_project_${{ matrix.config }} + run: yarn next:check-types From 5238fb7ea5672756d37a02259473b54aae3ad4f0 Mon Sep 17 00:00:00 2001 From: Rinat Date: Thu, 17 Jul 2025 14:11:03 +0300 Subject: [PATCH 03/10] fix: --yes flag --- .github/workflows/lint-installed-example.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-installed-example.yml index 7f17a05..362f6bf 100644 --- a/.github/workflows/lint-installed-example.yml +++ b/.github/workflows/lint-installed-example.yml @@ -47,17 +47,17 @@ jobs: - name: Install application (Hardhat with extension configuration) if: matrix.config == 'hardhat_with_extension' - run: npx create-eth@latest --yes new_project_hardhat_with_extension -s hardhat -e scaffold-eth/create-eth-extensions:example + run: npx --yes create-eth@latest new_project_hardhat_with_extension -s hardhat -e scaffold-eth/create-eth-extensions:example - name: Install application (Foundry with extension configuration) if: matrix.config == 'foundry_with_extension' run: | export PATH="$HOME/.config/.foundry/bin:$PATH" - npx create-eth@latest --yes new_project_foundry_with_extension -s foundry -e scaffold-eth/create-eth-extensions:example + npx --yes create-eth@latest new_project_foundry_with_extension -s foundry -e scaffold-eth/create-eth-extensions:example - name: Install application (No solidity framework with extension configuration) if: matrix.config == 'no_solidity_framework_with_extension' - run: npx create-eth@latest --yes new_project_no_solidity_framework_with_extension -s none -e scaffold-eth/create-eth-extensions:example + run: npx --yes create-eth@latest new_project_no_solidity_framework_with_extension -s none -e scaffold-eth/create-eth-extensions:example - name: Run chain and deploy working-directory: new_project_${{ matrix.config }} From 85e8bb3575483d2db8ce78af98ebaf7e22900af7 Mon Sep 17 00:00:00 2001 From: Rinat Date: Thu, 17 Jul 2025 19:25:10 +0400 Subject: [PATCH 04/10] fix: create extensions docs (#84) --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index ccb889f..1245a18 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,4 @@ Explore our curated (by BuidlGuidl) and community-contributed extensions for Sca ## Create your own extension -You can extend Scaffold-ETH by creating your own extension. To do so, you need to create a new repository with the following structure: - -`ToDo` - -```bash -npx create-eth@latest -e your-github-username/your-extension-repository:branch-name # branch-name is optional -``` +Extend Scaffold-ETH by building and publishing your own extension. For a step-by-step guide, see the [official documentation](https://docs.scaffoldeth.io/extensions/createExtensions). From 8e9be1512f75785e44f767e660bb9b230c0aba25 Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Aug 2025 19:34:45 +0300 Subject: [PATCH 05/10] feat: env --- .github/workflows/lint-installed-example.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-installed-example.yml index 362f6bf..0d23e28 100644 --- a/.github/workflows/lint-installed-example.yml +++ b/.github/workflows/lint-installed-example.yml @@ -47,16 +47,25 @@ jobs: - name: Install application (Hardhat with extension configuration) if: matrix.config == 'hardhat_with_extension' + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: false + YARN_ENABLE_INLINE_BUILDS: false run: npx --yes create-eth@latest new_project_hardhat_with_extension -s hardhat -e scaffold-eth/create-eth-extensions:example - name: Install application (Foundry with extension configuration) if: matrix.config == 'foundry_with_extension' + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: false + YARN_ENABLE_INLINE_BUILDS: false run: | export PATH="$HOME/.config/.foundry/bin:$PATH" npx --yes create-eth@latest new_project_foundry_with_extension -s foundry -e scaffold-eth/create-eth-extensions:example - name: Install application (No solidity framework with extension configuration) if: matrix.config == 'no_solidity_framework_with_extension' + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: false + YARN_ENABLE_INLINE_BUILDS: false run: npx --yes create-eth@latest new_project_no_solidity_framework_with_extension -s none -e scaffold-eth/create-eth-extensions:example - name: Run chain and deploy From fd5b5749f99eaf7ed8af6fc25406125264c84750 Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Aug 2025 19:38:11 +0300 Subject: [PATCH 06/10] fix: comment foundry --- .github/workflows/lint-installed-example.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-installed-example.yml index 0d23e28..691f4a6 100644 --- a/.github/workflows/lint-installed-example.yml +++ b/.github/workflows/lint-installed-example.yml @@ -13,10 +13,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - config: - [ + config: [ hardhat_with_extension, - foundry_with_extension, + # foundry_with_extension, no_solidity_framework_with_extension, ] steps: From 817248b5f292f8a62ef34c6180ed2622cc8b364c Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Aug 2025 19:43:20 +0300 Subject: [PATCH 07/10] fix: push branch --- .github/workflows/lint-installed-example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-installed-example.yml index 691f4a6..ab3637e 100644 --- a/.github/workflows/lint-installed-example.yml +++ b/.github/workflows/lint-installed-example.yml @@ -3,7 +3,7 @@ name: Lint Installed Example on: push: branches: - - example-gh-action + - example pull_request: branches: - example From d0d29511b67e28034198ad0c0539cf84784e970f Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Aug 2025 19:59:24 +0300 Subject: [PATCH 08/10] Revert "Merge branch 'main' of github.com:scaffold-eth/create-eth-extensions into example-gh-action" This reverts commit b9c4b45ce0cf2b20739153914e3573d23a709cfa, reversing changes made to 817248b5f292f8a62ef34c6180ed2622cc8b364c. --- README.md | 10 +--------- funding.json | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 funding.json diff --git a/README.md b/README.md index 6961786..a0d9062 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,5 @@ For general information about creating third party extensions, please see the [d ## Installation ```bash -npx create-eth@latest -e +npx create-eth@latest -e example ``` - -## Available Extensions - -Explore our curated (by BuidlGuidl) and community-contributed extensions for Scaffold-ETH 2 at: https://scaffoldeth.io/extensions - -## Create your own extension - -Extend Scaffold-ETH by building and publishing your own extension. For a step-by-step guide, see the [official documentation](https://docs.scaffoldeth.io/extensions/createExtensions). diff --git a/funding.json b/funding.json deleted file mode 100644 index 1493388..0000000 --- a/funding.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "opRetro": { - "projectId": "0x154a42e5ca88d7c2732fda74d6eb611057fc88dbe6f0ff3aae7b89c2cd1666ab" - } -} From 14daf5b1b664495ac479a9144a5f3f8b321ca78f Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 20 Aug 2025 20:03:52 +0300 Subject: [PATCH 09/10] fix: rename --- .../{lint-installed-example.yml => lint-example-instances.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{lint-installed-example.yml => lint-example-instances.yml} (98%) diff --git a/.github/workflows/lint-installed-example.yml b/.github/workflows/lint-example-instances.yml similarity index 98% rename from .github/workflows/lint-installed-example.yml rename to .github/workflows/lint-example-instances.yml index ab3637e..6cceeb6 100644 --- a/.github/workflows/lint-installed-example.yml +++ b/.github/workflows/lint-example-instances.yml @@ -1,4 +1,4 @@ -name: Lint Installed Example +name: Lint Create-eth instances with example extension on: push: From 9a26b32afd6f0278cb3a6425206e00f690cc7391 Mon Sep 17 00:00:00 2001 From: Rinat Date: Wed, 27 Aug 2025 12:05:14 +0300 Subject: [PATCH 10/10] fix: uncomment foundry_with_extension --- .github/workflows/lint-example-instances.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-example-instances.yml b/.github/workflows/lint-example-instances.yml index 6cceeb6..66bfe51 100644 --- a/.github/workflows/lint-example-instances.yml +++ b/.github/workflows/lint-example-instances.yml @@ -13,9 +13,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - config: [ + config: + [ hardhat_with_extension, - # foundry_with_extension, + foundry_with_extension, no_solidity_framework_with_extension, ] steps: