Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

To create , modify & do research & development on contracts launch.

Notifications You must be signed in to change notification settings

useAssembly/Smart-Contract-Template

Repository files navigation

Smart Contract Example Projects - Hardhat

MudCats Smart Contract Example

npx hardhat run scripts/MudCats/deploy.ts --network goerli

npx hardhat verify \
--contract "contracts/MudCats/MudCats.sol:MudCats" \
--network goerli 0xe2d9935cbcf5f8dc003e2020ddb5a525cf005207

Nakedz Smart Contract Example

npx hardhat run scripts/Nakedz/deploy.ts --network goerli

npx hardhat verify \
--contract "contracts/Nakedz/Nakedz.sol:Nakedz" \
--network goerli 0x943ccC0c62FcE3e1B5357458C38bB568408885Ec

Airfoil Token Smart Contract Example

npx hardhat run scripts/AirfoilToken/deploy.ts --network goerli

npx hardhat verify \
--contract "contracts/AirfoilToken/AirfoilToken.sol:AirfoilToken" \
--network goerli 0xa91feE4AAd579697d447ABdf34B48Ba151E9d03d

AF Staking Smart Contract Example

npx hardhat run scripts/AFStaking/deploy.ts --network goerli

npx hardhat verify \
--contract "contracts/AFStaking/AFStaking.sol:AFStaking" \
--network goerli 0x0Ca6b3bE0F50a4198E9A9Fdd2Fc32c16B1e1634e 0x56B382090d916Eb6853550f4219eB9c53A346969 0x1949880dD7C0E68a7AE2A51DE57445737bD217D5 1 7425887

Hardhat Commands

Try running some of the following tasks:

npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
npx hardhat node

Common Errors

An unexpected error occurred:
[Error: ENOENT: no such file or directory, open '.../hardhat-contract-examples/artifacts/build-info/e58f67f4a05685e71e20c4fc6ac3e9e7.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '.../hardhat-contract-examples/artifacts/build-info/e58f67f4a05685e71e20c4fc6ac3e9e7.json'
}

Solution : npx hardhat clean

About

To create , modify & do research & development on contracts launch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published