Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,267 changes: 1,267 additions & 0 deletions .ai/categories/smart-contracts.md

Large diffs are not rendered by default.

1,267 changes: 1,267 additions & 0 deletions .ai/categories/tooling.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

347 changes: 338 additions & 9 deletions .ai/site-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -7406,24 +7406,353 @@
"hash": "sha256:56ba36249ea8216ad513b13df3de6c0e490ba214897674d30331f1c7e7edbef3",
"token_estimator": "heuristic-v1"
},
{
"id": "smart-contracts-dev-environments-hardhat-troubleshooting-faq",
"title": "Troubleshooting Hardhat",
"slug": "smart-contracts-dev-environments-hardhat-troubleshooting-faq",
"categories": [
"Smart Contracts",
"Tooling"
],
"raw_md_url": "https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting-faq.md",
"html_url": "https://docs.polkadot.com/smart-contracts/dev-environments/hardhat/troubleshooting-faq/",
"preview": "This guide provides solutions to common issues you may encounter when using Hardhat with Polkadot Hub. If you're experiencing problems with installation, compilation, deployment, testing, or contract interaction, you'll likely find the solution here.",
"outline": [
{
"depth": 2,
"title": "Hardhat fails to install or run with version-related errors",
"anchor": "hardhat-fails-to-install-or-run-with-version-related-errors"
},
{
"depth": 2,
"title": "Installation of Hardhat or its dependencies via npm fails",
"anchor": "installation-of-hardhat-or-its-dependencies-via-npm-fails"
},
{
"depth": 2,
"title": "Hardhat Toolbox fails to install or causes conflicts",
"anchor": "hardhat-toolbox-fails-to-install-or-causes-conflicts"
},
{
"depth": 2,
"title": "Your contract fails to compile or shows errors in the terminal",
"anchor": "your-contract-fails-to-compile-or-shows-errors-in-the-terminal"
},
{
"depth": 2,
"title": "The artifacts folder is empty or missing expected files",
"anchor": "the-artifacts-folder-is-empty-or-missing-expected-files"
},
{
"depth": 2,
"title": "Errors related to Solidity compiler version or features",
"anchor": "errors-related-to-solidity-compiler-version-or-features"
},
{
"depth": 2,
"title": "Tests don't execute or Hardhat throws errors when running tests",
"anchor": "tests-dont-execute-or-hardhat-throws-errors-when-running-tests"
},
{
"depth": 2,
"title": "The `npx hardhat node` fails to start or becomes unresponsive",
"anchor": "the-npx-hardhat-node-fails-to-start-or-becomes-unresponsive"
},
{
"depth": 2,
"title": "Tests run but fail with assertion errors",
"anchor": "tests-run-but-fail-with-assertion-errors"
},
{
"depth": 2,
"title": "Hardhat cannot connect to the local development node",
"anchor": "hardhat-cannot-connect-to-the-local-development-node"
},
{
"depth": 2,
"title": "Hardhat cannot access or use the configured private key",
"anchor": "hardhat-cannot-access-or-use-the-configured-private-key"
},
{
"depth": 2,
"title": "Deployment or transactions go to the wrong network",
"anchor": "deployment-or-transactions-go-to-the-wrong-network"
},
{
"depth": 2,
"title": "Deployment fails with \"insufficient funds\" error",
"anchor": "deployment-fails-with-insufficient-funds-error"
},
{
"depth": 2,
"title": "Deployment using Hardhat Ignition fails or throws errors",
"anchor": "deployment-using-hardhat-ignition-fails-or-throws-errors"
},
{
"depth": 2,
"title": "Custom deployment scripts fail to execute",
"anchor": "custom-deployment-scripts-fail-to-execute"
},
{
"depth": 2,
"title": "Contract deployment hangs or times out",
"anchor": "contract-deployment-hangs-or-times-out"
},
{
"depth": 2,
"title": "Scripts fail to interact with a deployed contract",
"anchor": "scripts-fail-to-interact-with-a-deployed-contract"
},
{
"depth": 2,
"title": "Transactions revert when calling contract functions",
"anchor": "transactions-revert-when-calling-contract-functions"
},
{
"depth": 2,
"title": "`View` or `pure` functions don't return expected values",
"anchor": "view-or-pure-functions-dont-return-expected-values"
},
{
"depth": 2,
"title": "State-changing functions execute but don't update state",
"anchor": "state-changing-functions-execute-but-dont-update-state"
},
{
"depth": 2,
"title": "Contract compilation takes a long time",
"anchor": "contract-compilation-takes-a-long-time"
},
{
"depth": 2,
"title": "Can't start Hardhat console or console commands fail",
"anchor": "cant-start-hardhat-console-or-console-commands-fail"
},
{
"depth": 2,
"title": "Hardhat plugins not working correctly",
"anchor": "hardhat-plugins-not-working-correctly"
},
{
"depth": 2,
"title": "Scripts cannot read environment variables",
"anchor": "scripts-cannot-read-environment-variables"
},
{
"depth": 2,
"title": "Concerns about private key security",
"anchor": "concerns-about-private-key-security"
},
{
"depth": 2,
"title": "Where to Go Next",
"anchor": "where-to-go-next"
}
],
"stats": {
"chars": 15409,
"words": 1762,
"headings": 26,
"estimated_token_count_total": 3498
},
"hash": "sha256:935754d94993e1e7e8c31e7b7a2839ab553361ba4613b196b11b74e3d021dd26",
"token_estimator": "heuristic-v1"
},
{
"id": "smart-contracts-dev-environments-hardhat-troubleshooting",
"title": "smart-contracts-dev-environments-hardhat-troubleshooting",
"title": "Troubleshooting Hardhat on Polkadot Hub",
"slug": "smart-contracts-dev-environments-hardhat-troubleshooting",
"categories": [
"Uncategorized"
"Smart Contracts",
"Tooling"
],
"raw_md_url": "https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting.md",
"html_url": "https://docs.polkadot.com/smart-contracts/dev-environments/hardhat/troubleshooting/",
"preview": "TODO",
"outline": [],
"preview": "This guide provides solutions to common issues you may encounter when using Hardhat with Polkadot Hub. If you're experiencing problems with installation, compilation, deployment, testing, or contract interaction, you'll likely find the solution here.",
"outline": [
{
"depth": 2,
"title": "Overview",
"anchor": "overview"
},
{
"depth": 2,
"title": "Installation Issues",
"anchor": "installation-issues"
},
{
"depth": 3,
"title": "Node.js Version Incompatibility",
"anchor": "nodejs-version-incompatibility"
},
{
"depth": 3,
"title": "Hardhat Installation Fails",
"anchor": "hardhat-installation-fails"
},
{
"depth": 3,
"title": "Hardhat Toolbox Plugin Issues",
"anchor": "hardhat-toolbox-plugin-issues"
},
{
"depth": 2,
"title": "Compilation Issues",
"anchor": "compilation-issues"
},
{
"depth": 3,
"title": "Contract Won't Compile",
"anchor": "contract-wont-compile"
},
{
"depth": 3,
"title": "Compilation Artifacts Missing",
"anchor": "compilation-artifacts-missing"
},
{
"depth": 3,
"title": "Compiler Version Errors",
"anchor": "compiler-version-errors"
},
{
"depth": 2,
"title": "Testing Issues",
"anchor": "testing-issues"
},
{
"depth": 3,
"title": "Tests Fail to Run",
"anchor": "tests-fail-to-run"
},
{
"depth": 3,
"title": "Local Test Network Issues",
"anchor": "local-test-network-issues"
},
{
"depth": 3,
"title": "Test Assertions Failing",
"anchor": "test-assertions-failing"
},
{
"depth": 2,
"title": "Network Configuration Issues",
"anchor": "network-configuration-issues"
},
{
"depth": 3,
"title": "Cannot Connect to Local Development Node",
"anchor": "cannot-connect-to-local-development-node"
},
{
"depth": 3,
"title": "Private Key Configuration Issues",
"anchor": "private-key-configuration-issues"
},
{
"depth": 3,
"title": "Wrong Network Selected",
"anchor": "wrong-network-selected"
},
{
"depth": 2,
"title": "Deployment Issues",
"anchor": "deployment-issues"
},
{
"depth": 3,
"title": "Insufficient Funds Error",
"anchor": "insufficient-funds-error"
},
{
"depth": 3,
"title": "Ignition Deployment Fails",
"anchor": "ignition-deployment-fails"
},
{
"depth": 3,
"title": "Deployment Script Errors",
"anchor": "deployment-script-errors"
},
{
"depth": 3,
"title": "Contract Deployment Timeout",
"anchor": "contract-deployment-timeout"
},
{
"depth": 2,
"title": "Contract Interaction Issues",
"anchor": "contract-interaction-issues"
},
{
"depth": 3,
"title": "Cannot Connect to Deployed Contract",
"anchor": "cannot-connect-to-deployed-contract"
},
{
"depth": 3,
"title": "Transaction Reverts",
"anchor": "transaction-reverts"
},
{
"depth": 3,
"title": "Read Functions Not Returning Values",
"anchor": "read-functions-not-returning-values"
},
{
"depth": 3,
"title": "Write Functions Not Updating State",
"anchor": "write-functions-not-updating-state"
},
{
"depth": 2,
"title": "Performance and Configuration Issues",
"anchor": "performance-and-configuration-issues"
},
{
"depth": 3,
"title": "Compilation is Slow",
"anchor": "compilation-is-slow"
},
{
"depth": 3,
"title": "Hardhat Console Issues",
"anchor": "hardhat-console-issues"
},
{
"depth": 3,
"title": "Plugin Configuration Issues",
"anchor": "plugin-configuration-issues"
},
{
"depth": 2,
"title": "Environment Variable Issues",
"anchor": "environment-variable-issues"
},
{
"depth": 3,
"title": "Cannot Access Environment Variables",
"anchor": "cannot-access-environment-variables"
},
{
"depth": 3,
"title": "Private Key Security Warnings",
"anchor": "private-key-security-warnings"
},
{
"depth": 2,
"title": "Where to Go Next",
"anchor": "where-to-go-next"
}
],
"stats": {
"chars": 5,
"words": 1,
"headings": 0,
"estimated_token_count_total": 0
"chars": 17815,
"words": 2093,
"headings": 35,
"estimated_token_count_total": 4175
},
"hash": "sha256:56ba36249ea8216ad513b13df3de6c0e490ba214897674d30331f1c7e7edbef3",
"hash": "sha256:9baf24d263b7d0678f834b5b4a08567d5bb88ffb05973b67e5099e0cf3290e0c",
"token_estimator": "heuristic-v1"
},
{
Expand Down
9 changes: 6 additions & 3 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ Docs: Smart Contracts
- [Deploy an NFT to Polkadot Hub with Hardhat](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-cookbook-smart-contracts-deploy-nft-hardhat.md): Learn how to deploy an ERC-721 NFT contract to Polkadot Hub with Hardhat, a comprehenive development environment with built-in deployment capabilities.
- [Deploy an NFT to Polkadot Hub with Remix](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-cookbook-smart-contracts-deploy-nft-remix.md): Learn how to deploy an ERC-721 NFT contract to Polkadot Hub using Remix, a browser-based IDE for quick prototyping and learning.
- [Smart Contracts Cookbook Index](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-cookbook.md): Explore our full collection of tutorials and guides to learn step-by-step how to build, deploy, and work with smart contracts on Polkadot.
- [Use Hardhat with Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-get-started.md): Overview of Hardhat, a powerful development environment for creating, compiling, testing, and deploying smart contracts on Polkadot Hub.
- [Use Hardhat with Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-get-started.md): Learn how to create, compile, test, and deploy smart contracts on Polkadot Hub using Hardhat, a powerful development environment for blockchain developers.
- [Troubleshooting Hardhat](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting-faq.md): Common issues related to developing, compiling, and deploying smart contracts using Hardhat on Polkadot Hub, paired with troubleshooting suggestions.
- [Troubleshooting Hardhat on Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting.md): Solutions to common issues when developing, compiling, deploying, and testing smart contracts using Hardhat on Polkadot Hub.
- [Local Development Node](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-local-dev-node.md): Follow this step-by-step guide to install a Revive Dev node and ETH-RPC adapter for smart contract development in a local environment.
- [Use the Polkadot Remix IDE](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-remix-get-started.md): Explore the smart contract development and deployment process on Asset Hub using Remix IDE, a visual IDE for blockchain developers.
- [Block Explorers](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-explorers.md): Access PolkaVM explorers like Subscan, BlockScout, and Routescan to track transactions, analyze contracts, and view on-chain data from smart contracts.
Expand Down Expand Up @@ -179,7 +181,9 @@ Docs: Tooling
- [XCM Tools](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/reference-tools-xcm-tools.md): Explore essential XCM tools across Polkadot, crafted to enhance cross-chain functionality and integration within the ecosystem.
- [Zero to Hero Smart Contract DApp](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-cookbook-dapps-zero-to-hero.md): Learn how to build a decentralized application on Polkadot Hub using Viem and Next.js by creating a simple dApp that interacts with a smart contract.
- [Deploying Uniswap V2 on Polkadot](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-cookbook-eth-dapps-uniswap-v2.md): Learn how to deploy and test Uniswap V2 on Polkadot Hub using Hardhat, bringing AMM-based token swaps to the Polkadot ecosystem.
- [Use Hardhat with Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-get-started.md): Overview of Hardhat, a powerful development environment for creating, compiling, testing, and deploying smart contracts on Polkadot Hub.
- [Use Hardhat with Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-get-started.md): Learn how to create, compile, test, and deploy smart contracts on Polkadot Hub using Hardhat, a powerful development environment for blockchain developers.
- [Troubleshooting Hardhat](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting-faq.md): Common issues related to developing, compiling, and deploying smart contracts using Hardhat on Polkadot Hub, paired with troubleshooting suggestions.
- [Troubleshooting Hardhat on Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting.md): Solutions to common issues when developing, compiling, deploying, and testing smart contracts using Hardhat on Polkadot Hub.
- [Use the Polkadot Remix IDE](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-remix-get-started.md): Explore the smart contract development and deployment process on Asset Hub using Remix IDE, a visual IDE for blockchain developers.
- [Block Explorers](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-explorers.md): Access PolkaVM explorers like Subscan, BlockScout, and Routescan to track transactions, analyze contracts, and view on-chain data from smart contracts.
- [Wallets for Polkadot Hub](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-integrations-wallets.md): Comprehensive guide to connecting and managing wallets for Polkadot Hub, covering step-by-step instructions for interacting with the ecosystem.
Expand Down Expand Up @@ -237,7 +241,6 @@ Docs: Uncategorized
- [smart-contracts-dev-environments-hardhat-compile-and-test](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-compile-and-test.md): No description available.
- [smart-contracts-dev-environments-hardhat-deploy-a-contract](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-deploy-a-contract.md): No description available.
- [smart-contracts-dev-environments-hardhat-install-and-config](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-install-and-config.md): No description available.
- [smart-contracts-dev-environments-hardhat-troubleshooting](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-troubleshooting.md): No description available.
- [smart-contracts-dev-environments-hardhat-verify-a-contract](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-hardhat-verify-a-contract.md): No description available.
- [smart-contracts-dev-environments-remix-deploy-a-contract](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-remix-deploy-a-contract.md): No description available.
- [smart-contracts-dev-environments-remix-troubleshooting](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/smart-contracts-dev-environments-remix-troubleshooting.md): No description available.
Expand Down
3 changes: 1 addition & 2 deletions smart-contracts/dev-environments/hardhat/.nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ nav:
- 'Install and Config': install-and-config.md
- 'Compile and Test': compile-and-test.md
- 'Deploy a Contract': deploy-a-contract.md
- 'Verify a Contract': verify-a-contract.md
- 'Troubleshooting': troubleshooting.md
- 'Troubleshooting': troubleshooting-faq.md
Loading
Loading