Skip to content

cronos-labs/cronos-zkevm-contracts

Repository files navigation

Smart contracts for cronos zkevm

Compile smart contracts

yarn build

Testing

Similarly, to run tests in Foundry execute yarn test. If you don't have the foundry installed, please see Foundry installation. Learn how to use Forge-Std with the 📖 Foundry Book (Forge-Std Guide).

Deploy denylist contract

yarn deploy-denylist --contract [=CONTRACT-NAME] [--args [=CONTRACT-CONSTRUCTOR-ARGUMENTS]

For example: yarn deploy-denylist --contract TransactionFiltererDenyList --args "addr1,addr2"

Update denylist

yarn update-denylist --contract [=CONTRACT-ADDRESS] --list [=Addresses should add or remove from the denylist] [--remove]

To add some addresses to the denylist: yarn deploy-denylist --contract [contract-deployed-address] --list "addr1,addr2,..." To add remove addresses to the denylist: yarn deploy-denylist --contract [contract-deployed-address] --list "addr1,addr2,... --remove"

Deploy middleware

yarn deploy-middleware

Set middleware token approval

yarn approve-token-middleware --contract [=CONTRACT-ADDRESS] --amount [=AMOUNT]

Verify contract

Set in .env

MISC_ETHERSCAN_API_KEY=
ALCHEMY_API_KEY=
PRIVATE_KEY=

npx hardhat verify [contract-address] --network sepolia

About

Custom Contracts for Cronos zkEVM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •