From 4e0f61210244a3104e943557b2f8ce0493de6e6d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 10:16:57 +0000 Subject: [PATCH 1/8] Initial plan From c909effa77b4d209436b0fb967a6b07d1bf2ff12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 10:20:12 +0000 Subject: [PATCH 2/8] Add blockchain address statistics file Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com> --- blockchain-address.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 blockchain-address.json diff --git a/blockchain-address.json b/blockchain-address.json new file mode 100644 index 0000000..da3c68b --- /dev/null +++ b/blockchain-address.json @@ -0,0 +1,17 @@ +{ + "address": "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv", + "chain_stats": { + "funded_txo_count": 11, + "funded_txo_sum": 15007688098, + "spent_txo_count": 5, + "spent_txo_sum": 15007599040, + "tx_count": 13 + }, + "mempool_stats": { + "funded_txo_count": 0, + "funded_txo_sum": 0, + "spent_txo_count": 0, + "spent_txo_sum": 0, + "tx_count": 0 + } +} From 3ef46b4b3705eac9597bea19c968b4b18f77aed2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 2 Jan 2026 07:36:24 +0000 Subject: [PATCH 3/8] Initial plan From aca7dc645f79c765d142c384e1ea75042ca21694 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 2 Jan 2026 07:39:13 +0000 Subject: [PATCH 4/8] Add .gitignore to protect sensitive environment files and private keys Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com> --- .gitignore | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c68432 --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Environment variables and sensitive configuration files +.env +.env.* +.env.local +.env.development +.env.test +.env.production +.env.staging + +# Private keys and credentials +*.key +*.pem +private-key* +*private-key* + +# Infura and blockchain configuration +infura.config* +*.secrets + +# Node modules and dependencies +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Build artifacts +dist/ +build/ +*.log + +# IDE and editor files +.vscode/ +.idea/ +*.swp +*.swo +*~ +.DS_Store From dff1c13b16eaaaa727bbd9914f38f70ea4d139d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:42:11 +0000 Subject: [PATCH 5/8] Initial plan From 9610b02d3f66922ef8902139efbe71d28c7ba693 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:44:31 +0000 Subject: [PATCH 6/8] Refactor duplicated Node.js setup code into reusable composite action Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com> --- actions/setup-node-from-nvmrc/action.yml | 13 +++++++++++++ workflow-templates/build-lint-test.yml | 2 +- workflow-templates/create-release-pr.yml | 8 ++------ workflow-templates/publish-release.yml | 8 ++------ 4 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 actions/setup-node-from-nvmrc/action.yml diff --git a/actions/setup-node-from-nvmrc/action.yml b/actions/setup-node-from-nvmrc/action.yml new file mode 100644 index 0000000..610cf01 --- /dev/null +++ b/actions/setup-node-from-nvmrc/action.yml @@ -0,0 +1,13 @@ +name: 'Setup Node.js from .nvmrc' +description: 'Sets up Node.js using the version specified in .nvmrc file' +runs: + using: "composite" + steps: + - name: Get Node.js version + id: nvm + shell: bash + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} diff --git a/workflow-templates/build-lint-test.yml b/workflow-templates/build-lint-test.yml index b4d113e..f25a7de 100644 --- a/workflow-templates/build-lint-test.yml +++ b/workflow-templates/build-lint-test.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: yarn --frozen-lockfile --ignore-scripts diff --git a/workflow-templates/create-release-pr.yml b/workflow-templates/create-release-pr.yml index c34ce9a..b8dca7d 100644 --- a/workflow-templates/create-release-pr.yml +++ b/workflow-templates/create-release-pr.yml @@ -29,12 +29,8 @@ jobs: # We check out the specified branch, which will be used as the base # branch for all git operations and the release PR. ref: ${{ github.event.inputs.base-branch }} - - name: Get Node.js version - id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NODE_VERSION }} + - name: Setup Node.js from .nvmrc + uses: ./.github/actions/setup-node-from-nvmrc - uses: MetaMask/action-create-release-pr@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/workflow-templates/publish-release.yml b/workflow-templates/publish-release.yml index 06c5f43..181f15d 100644 --- a/workflow-templates/publish-release.yml +++ b/workflow-templates/publish-release.yml @@ -14,12 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Get Node.js version - id: nvm - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NODE_VERSION }} + - name: Setup Node.js from .nvmrc + uses: ./.github/actions/setup-node-from-nvmrc - uses: MetaMask/action-publish-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f2656c09a2fad5e28175ed61bfaa4d4f3e6d1ca1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:44:57 +0000 Subject: [PATCH 7/8] Add README documentation for setup-node-from-nvmrc action Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com> --- actions/setup-node-from-nvmrc/README.md | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 actions/setup-node-from-nvmrc/README.md diff --git a/actions/setup-node-from-nvmrc/README.md b/actions/setup-node-from-nvmrc/README.md new file mode 100644 index 0000000..078626a --- /dev/null +++ b/actions/setup-node-from-nvmrc/README.md @@ -0,0 +1,28 @@ +# Setup Node.js from .nvmrc + +A reusable composite action that sets up Node.js using the version specified in an `.nvmrc` file. + +## Usage + +```yaml +steps: + - uses: actions/checkout@v2 + - name: Setup Node.js from .nvmrc + uses: ./.github/actions/setup-node-from-nvmrc +``` + +## Requirements + +- The repository must have an `.nvmrc` file in the root directory +- The `.nvmrc` file should contain a valid Node.js version (e.g., `16.14.0`, `18.x`) + +## What it does + +1. Reads the Node.js version from the `.nvmrc` file +2. Sets up Node.js with the specified version using `actions/setup-node@v2` + +## Benefits + +- Centralizes Node.js version management in `.nvmrc` +- Eliminates duplicated setup code across workflows +- Uses modern GitHub Actions output syntax (`$GITHUB_OUTPUT`) From eaf73628f63dafa014a73250d9aabac74126016d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:45:56 +0000 Subject: [PATCH 8/8] Fix action paths to use correct repository structure Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com> --- actions/setup-node-from-nvmrc/README.md | 2 +- workflow-templates/create-release-pr.yml | 2 +- workflow-templates/publish-release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/setup-node-from-nvmrc/README.md b/actions/setup-node-from-nvmrc/README.md index 078626a..90d529c 100644 --- a/actions/setup-node-from-nvmrc/README.md +++ b/actions/setup-node-from-nvmrc/README.md @@ -8,7 +8,7 @@ A reusable composite action that sets up Node.js using the version specified in steps: - uses: actions/checkout@v2 - name: Setup Node.js from .nvmrc - uses: ./.github/actions/setup-node-from-nvmrc + uses: ./actions/setup-node-from-nvmrc ``` ## Requirements diff --git a/workflow-templates/create-release-pr.yml b/workflow-templates/create-release-pr.yml index b8dca7d..99bf1ad 100644 --- a/workflow-templates/create-release-pr.yml +++ b/workflow-templates/create-release-pr.yml @@ -30,7 +30,7 @@ jobs: # branch for all git operations and the release PR. ref: ${{ github.event.inputs.base-branch }} - name: Setup Node.js from .nvmrc - uses: ./.github/actions/setup-node-from-nvmrc + uses: ./actions/setup-node-from-nvmrc - uses: MetaMask/action-create-release-pr@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/workflow-templates/publish-release.yml b/workflow-templates/publish-release.yml index 181f15d..8d300bb 100644 --- a/workflow-templates/publish-release.yml +++ b/workflow-templates/publish-release.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup Node.js from .nvmrc - uses: ./.github/actions/setup-node-from-nvmrc + uses: ./actions/setup-node-from-nvmrc - uses: MetaMask/action-publish-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}