Skip to content

bgd-labs/solidity-utils

Repository files navigation

BGD Labs Solidity utils

Common contracts we use almost everywhere

Create3

Contracts to deploy a Create3 Factory which so that contract addresses can be predicted without influence from constructor arguments.

These contracts where modified from:

ZkSync

As ZkSync network requires the use of a forked version of foundry we have created different profiles so that they can run as expected.

  • Contracts specific for ZkSync network can be found here
  • Tests specific for ZkSync network can be found here

To build and test the contracts use FOUNDRY_PROFILE=zksync and the flag --zksync

  • Example:
FOUNDRY_PROFILE=zksync forge test -vvv --zksync