Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardhat Ignition #201

Merged
merged 10 commits into from
Dec 13, 2024
Merged

Hardhat Ignition #201

merged 10 commits into from
Dec 13, 2024

Conversation

wise4rmgodroot
Copy link
Collaborator

Title

  • Hardhat Ignition

Description

  1. Content Development

    • Created a detailed guide to assist developers in deploying smart contracts on the Rootstock blockchain.
    • Focused on using Hardhat Ignition to simplify deployment with programmatic and declarative approaches.
    • Included clear step-by-step instructions tailored for developers of varying experience levels.
  2. Technical Breakdown

    • Provided in-depth explanations of Hardhat Ignition modules, including deployment scripts (Box.ts and Lock.ts).
    • Explained key concepts such as parameter usage, contract dependencies, and deployment workflows.
  3. Project Setup Guidance

    • Created a comprehensive section on project prerequisites, including Node.js, npm/Yarn, Hardhat, and environment variable configuration.
    • Included detailed instructions for cloning the repository, installing dependencies, and understanding the project structure.
  4. Testing and Deployment

    • Documented steps for compiling, testing, and deploying smart contracts to Rootstock’s Testnet and Mainnet.
    • Added sample outputs to guide users in validating deployments and troubleshooting errors.
  5. Troubleshooting and Tips

    • Anticipated common issues and provided solutions, including handling reconciliation failures, gas fee errors, and incorrect configurations.
    • Used clear admonitions (e.g., warning, info) to highlight troubleshooting tips and additional context.
  6. Verification Instructions

    • Added detailed steps for verifying deployed contracts using the Rootstock Explorer.
    • Included visuals to support and clarify the verification process.
  7. Admonitions and Formatting

    • Incorporated appropriate admonitions (info, warning, success) to enhance readability and emphasize important sections.
    • Structured the guide for clarity with well-formatted headings, code snippets, and step-by-step instructions.
  8. SEO Optimization

    • Added relevant tags for better discoverability, including "Rootstock," "Hardhat," "Ignition," "smart contracts," and more.
  9. Beginner-Friendly Approach

    • Ensured technical concepts were explained in a simple and accessible manner.
    • Used a friendly tone to engage developers and encourage learning.

Screenshots/GIFs

  • N/A

Testing

  • I usED the yarn buildcommand.

Checklist

  • I have read and understood the contributing guidelines.
  • I have followed the style guide and formatting guidelines.
  • I have added appropriate comments to explain the changes.
  • I have tested my changes thoroughly.

Refs

  • N/A

@wise4rmgodroot wise4rmgodroot self-assigned this Dec 9, 2024
Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devportal-rootstock ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 3:17pm

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
The following command is used to deploy a smart contract to the Rootstock Testnet:

```
npx hardhat ignition deploy --network rskTestnet ignition/modules/Box.ts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got this error:

owanate@Owanates-MacBook-Pro rootstock-hardhat-ignition-starterkit % npx hardhat ignition deploy --network rskTestnet ignition/modules/Box.ts
✔ Confirm deploy to network rskTestnet (31)? … yes
Hardhat Ignition 🚀

Deploying [ BoxModule ]

Batch #1
  Executing BoxModule#Box...

An unexpected error occurred:

IgnitionError: IGN401: Error while executing BoxModule#Box: all the transactions of its network interaction 1 were dropped. Please try rerunning Hardhat Ignition.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted artifacts and it worked. Capture this in the troubleshooting tip at the bottom or here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was already added earlier.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular error is already captured?

IgnitionError: IGN401: Error while executing BoxModule#Box: all the transactions of its network interaction 1 were dropped. Please try rerunning Hardhat Ignition.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the content with a warning to delete the folder at the top and also added this error too with same warning incase someone misses it.

docs/02-developers/04-quickstart/hardhat-ignition.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@owans owans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@owans owans merged commit d70d227 into main Dec 13, 2024
5 checks passed
@owans owans deleted the hardhat-ignition branch December 13, 2024 15:26
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.

2 participants