From 48ec36061af625f5f90965418449e5d655deb5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Fri, 10 Nov 2023 13:03:55 +0100 Subject: [PATCH] chore: reference hardhat plugin for typescript artifacts --- .../smart_contracts/infer_contract_types_guide/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/guides/smart_contracts/infer_contract_types_guide/index.md b/docs/docs/guides/smart_contracts/infer_contract_types_guide/index.md index 0c9b50f1763..d216a40809e 100644 --- a/docs/docs/guides/smart_contracts/infer_contract_types_guide/index.md +++ b/docs/docs/guides/smart_contracts/infer_contract_types_guide/index.md @@ -128,6 +128,11 @@ import ERC20 from './artifacts/ERC20'; You can see full example at [https://github.com/web3/web3-contract-types-example](https://github.com/web3/web3-contract-types-example) + :::tip 📝 You can use a web3.js plugin called `web3-plugin-craftsman` to compile and save the ABI and ByteCode. You can find more on: https://www.npmjs.com/package/web3-plugin-craftsman#save-the-compilation-result ::: + +:::tip +📝 If you are developing smart contracts using Hardhat, you can use [@chainsafe/hardhat-ts-artifact-plugin](https://github.com/ChainSafe/hardhat-ts-artifacts-plugin) to generate typescript files containing typed ABI JSON for each artifact. +:::