Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/automata-network/automata-contracts

This repo serves as a central location for all contracts that we have released to the public.
https://github.com/automata-network/automata-contracts

Last synced: 8 days ago
JSON representation

This repo serves as a central location for all contracts that we have released to the public.

Awesome Lists containing this project

README

        

# Automata Contracts

Follow the instructions below to add our contracts as dependencies to your project.

## Hardhat

Simply install the `@@automata-network/contracts` npm package, by running the command below:

```bash
yarn add @automata-network/contracts
```

## Foundry

Run the command below:

```bash
forge install automata-network/automata-contracts
```

After installing the dependency, it is recommended that you manually configure remappings in either `Foundry.toml` or `remappings.txt`.

```
@automata-network/contracts/=lib/automata-contracts/
```

---

Here's an example of importing `IAutomataVRFCoordinator.sol` into your project.

```solidity
import {IAutomataVRFCoordinator} from "@automata-network/contracts/vrf/IAutomataVRFCoordinator.sol";
```