Get started with Abstract by deploying your first smart contract using Hardhat.
Prerequisites
Recommended Hardhat setup
hardhat.config.ts
file to include the following options:
contracts/Lock.sol
file to contracts/HelloAbstract.sol
:
contracts/HelloAbstract.sol
file, or use the example smart contract below:
artifacts-zk
directory.
Add the deployer account private key
DEPLOYER_PRIVATE_KEY
.Write the deployment script
/deploy/deploy.ts
:deploy.ts
file:Deploy your smart contract
Verify your smart contract on the block explorer
YOUR_CONTRACT_ADDRESS
with the address of your deployed smart contract.