Skip to content

docs: update plugin examples to use definePlugin#274

Open
thisismairaj wants to merge 1 commit into
NomicFoundation:mainfrom
thisismairaj:docs/use-define-plugin-8340
Open

docs: update plugin examples to use definePlugin#274
thisismairaj wants to merge 1 commit into
NomicFoundation:mainfrom
thisismairaj:docs/use-define-plugin-8340

Conversation

@thisismairaj

@thisismairaj thisismairaj commented Jun 5, 2026

Copy link
Copy Markdown

Summary

Updates the plugin development documentation to use the definePlugin() helper introduced in #8339, replacing the old const plugin: HardhatPlugin = {...} pattern.

  • plugin-development/index.mdx: Updated the basic plugin structure example and the introductory prose
  • plugin-development/explanations/lifecycle.mdx: Updated the prose description and the index.ts code example
  • plugin-development/guides/dependencies.mdx: Updated the plugin dependency example

Closes NomicFoundation/hardhat#8340

Test plan

  • Review that all three changed code blocks compile correctly with the new import (definePlugin from "hardhat/plugins")
  • Verify prose reads naturally with the updated descriptions

Replaces the old HardhatPlugin object literal pattern with the
definePlugin() helper from hardhat/plugins across the plugin
development overview, lifecycle explanation, and dependencies guide.

Closes NomicFoundation/hardhat#8340
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

@mairajatcgpt is attempting to deploy a commit to the Nomic Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@alcuadrado alcuadrado self-requested a review June 9, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update plugin documentation and tutorial to use definePlugin

2 participants