Skip to content

Latest commit

 

History

History

contracts

@anon-digilocker/contracts

This package contains the Anon DigiLocker Verfier contract. You can import it directly into your Hardhat project, or use the already deployed contracts, to verify an Anon DigiLocker Proof.

🛠 Install

npm

npm install @anon-digilocker/contracts

yarn

yarn add @anon-digilocker/contracts

Update your hardhat.config.ts in your project:

import 'hardhat-dependency-compiler'

const config: HardhatUserConfig = {
  solidity: '0.8.19',
  dependencyCompiler: {
    paths: ['@anon-digilocker/contracts/src/AnonDigiLocker.sol'],
  },
}

📜 Usage

Compile the contracts:

yarn build

Test the contracts:

yarn test

Test the contracts with the gas report:

yarn test:gas

Deploy the contracts with the test public key to Sepolia:

yarn deploy:sepolia-test

Deploy the contracts with the production public key to Sepolia:

yarn deploy:sepolia-prod