Smart contracts for Keyring Network, a platform providing institutional-grade compliance automation and permissioning solutions for blockchain protocols powered by zero-knowledge privacy.
- Clone the repository:
git clone git@github.com:Keyring-Network/keyring-smart-contracts.git
cd smart-contracts- Install dependencies:
forge soldeer installRun all tests:
forge test --forceGenerate coverage report:
forge clean && forge build && forge coverage- Set up environment variables:
Set the required variables listed in the .env.example or copy it as .env
cp .env.example .env- Run the deployment script
w/o Etherscan verification:
source .env && forge script script/Deploy.s.sol \
--force \
--broadcast \
--rpc-url $RPC_URLw/ Etherscan verification:
source .env && forge script script/Deploy.s.sol \
--force \
--broadcast \
--rpc-url $RPC_URL \
--verify \
--etherscan-api-key $ETHERSCAN_API_KEY \
--verifier-url $ETHERSCAN_BASE_API_URL \
--retries 20