Skip to content

kalyberk/cognicraft-smart-contracts

Repository files navigation

CogniCraft Smart Contracts

Environment variables

Copy .env.example to .env and fill in the variables.

Setup

  1. Install deps:
make
  1. Run tests:
make test
  1. Deploy:

Deploy to Sepolia:

make deploy-sepolia contract=<CONTRACT_NAME>

Or deploy to local network Anvil:

make deploy-anvil contract=<CONTRACT_NAME>

Remember that Anvil is a local network, so you need to run it first:

make anvil

Other stuff

Format code:

make format

Add remappings:

forge remappings > remappings.txt

About

Smart contracts for CogniCraft

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published