Skip to content

automata-network/automata-dcap-v3-attestation

Repository files navigation

AutomataDcapV3Attestation

Getting Started

Clone this repo, by running the following command:

git clone git@github.com:automata-network/automata-dcap-v3-attestation.git --recurse-submodules

This repo includes both Hardhat and Foundry frameworks. Therefore, you can absolutely provide additional scripts and test cases written in both Solidity and TypeScript.

If you are building with Hardhat, make sure to run the command below to install the necessary NPM packages.

npm install

Before you begin, make sure to create a copy of the .env file with the example provided. Then, please provide any remaining variables that are missing.

cp .env.example .env

Building With Foundry

Compile the contract:

forge build

Testing the contract:

forge test

To provide additional test cases, please include those in the /forge-test directory.

To provide additional scripts, please include those in the /forge-script directory.

Deployment Scripts

  • AutomataDcapV3Attestation deployment
forge script DeployDCAPScript --sig "deployAttestation()" --broadcast --rpc-url $RPC_URL

Building With Hardhat

Compile the contract:

npx hardhat compile

Local deployment and testing:

npx hardhat run scripts/deploy.ts

To deploy the contract on a live network, please configure hardhat.config.ts, then pass the --network flag to the command.

To provide additional test cases, please include those in the /test directory.

To provide additional scripts, please include those in the /scripts directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published