This project was scaffolded with zksync-cli.
/contracts
: smart contracts./deploy
: deployment and contract interaction scripts./test
: test fileshardhat.config.ts
: configuration file.
npx hardhat compile
will compile the contracts.npm run test
will test the contracts against a locally running node. Make sure you have ran theera_test_node run
command in a separate console prior to running this command.npm run testnet
will test the contracts on a public testnet.
In order to prevent users to leak private keys, this project includes the dotenv
package which is used to load environment variables. It's used to load the wallet private key, and contract addresses.
WALLET_PRIVATE_KEY=123cde574ccff.... (this is jsut an example)