contracts
directory contains game smart contracts using the Diamond standard.tasks
directory contains game constants, map generation, and deployment-related code.test
directory contains tests for contracts using Foundry.
Make sure that Yarn, Node, and Hardhat are installed globally. Run yarn install
first to install dependencies.
To run Foundry tests use yarn forge-test
.
To deploy the contracts locally, first spin up a local network using npx hardhat node
. Then, deploy using npx hardhat deploy --network <NETWORK_NAME>
.
To deploy the testing map (hardcoded, not randomly generated), use npx hardhat deploy --network localhost --fixmap
.
Curio Research is an on-chain gaming lab. Visit Curio's official website and Twitter for more information about us.