From b39f5a4892a860243e881559fd08ce9f763c739a Mon Sep 17 00:00:00 2001 From: Mati OS Date: Sat, 31 Jan 2026 17:47:58 -0300 Subject: [PATCH 1/4] ci: use pnpm to publish package --- .github/workflows/npm-publish.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 89fdb23..3b710a7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,13 +9,14 @@ jobs: contents: read id-token: write # required to use OIDC steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v5 + - uses: actions/checkout@v6 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v6 with: node-version: "24" - registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm run build - - uses: JS-DevTools/npm-publish@v4 - with: - registry: "https://registry.npmjs.org/" + registry-url: "https://registry.npmjs.org" + cache: "pnpm" + - run: pnpm install --frozen-lockfile + - run: pnpm run build + - run: pnpm publish --provenance + From f39fb5a843659cc51242737405de7a02cfa15ba5 Mon Sep 17 00:00:00 2001 From: Mati OS Date: Sat, 31 Jan 2026 21:13:31 -0300 Subject: [PATCH 2/4] fix: support non default name networks --- packages/example-project/hardhat.config.ts | 7 +++++++ packages/plugin/src/hooks/network.ts | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/example-project/hardhat.config.ts b/packages/example-project/hardhat.config.ts index 2acb51a..d4fe78f 100644 --- a/packages/example-project/hardhat.config.ts +++ b/packages/example-project/hardhat.config.ts @@ -6,6 +6,13 @@ export default defineConfig({ plugins: [hardhatIgnitionViemPlugin, openScanPlugin], solidity: "0.8.29", networks: { + hardhatBlocks: { + type: "edr-simulated", + mining: { + auto: false, + interval: 5000, + } + }, localhost: { type: "http", url: "http://127.0.0.1:8545", diff --git a/packages/plugin/src/hooks/network.ts b/packages/plugin/src/hooks/network.ts index 9327902..9190f00 100644 --- a/packages/plugin/src/hooks/network.ts +++ b/packages/plugin/src/hooks/network.ts @@ -60,8 +60,7 @@ export default async (): Promise> => { const connection = await next(context); // Start webapp on first connection (when Hardhat node starts) - // The network name is "default" for the built-in Hardhat network - if (!webappStarted && connection.networkName === "default") { + if (!webappStarted) { webappStarted = true; await startWebapp(); } From 018f7b26056ea98cdddf731c89b812b664c66bfd Mon Sep 17 00:00:00 2001 From: Mati OS Date: Sat, 31 Jan 2026 21:15:32 -0300 Subject: [PATCH 3/4] 1.0.1 --- packages/plugin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin/package.json b/packages/plugin/package.json index 00d1d06..12df26d 100644 --- a/packages/plugin/package.json +++ b/packages/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@openscan/hardhat-plugin", - "version": "1.0.0", + "version": "1.0.1", "description": "Hardhat 3 plugin to use openscan explorer", "license": "MIT", "type": "module", From 95f57a4ff0dd05981d2b02dc1797511b7c419ae5 Mon Sep 17 00:00:00 2001 From: Mati OS Date: Mon, 2 Feb 2026 18:25:07 -0300 Subject: [PATCH 4/4] ci: fix publish plugin directory and set pnpm v10 --- .github/workflows/npm-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3b710a7..440e25b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,6 +11,8 @@ jobs: steps: - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 + with: + version: 10 - uses: actions/setup-node@v6 with: node-version: "24" @@ -18,5 +20,5 @@ jobs: cache: "pnpm" - run: pnpm install --frozen-lockfile - run: pnpm run build - - run: pnpm publish --provenance + - run: pnpm --filter @openscan/hardhat-plugin publish --provenance