Skip to content

This repository contains the smart contracts for Equation. Please visit https://equation.org to learn more.

License

Notifications You must be signed in to change notification settings

gummy789j/equation-contracts

 
 

Repository files navigation

Equation Contracts

Equation Contracts is a collection of smart contracts for perpetual contracts.

Local Development

To compile the contracts locally, follow these steps:

  1. Clone the repository:
git clone [email protected]:EquationDAO/equation-contracts.git
  1. Install the required dependencies:
npm install
  1. Install husky hooks:
npm run prepare
  1. Compile the contracts:
npm run build

Deploy Contracts

To deploy the contracts to a network and verify it, follow these steps:

  1. Create a .env file in the root directory of the project with the following contents:
# .env
PRIVATE_KEY=your-private-key
ARBISCAN_API_KEY=your-arbiscan-api-key
  1. Run the deployment script:
sh ./scripts/deploy.sh -n <network-name> -c <chain-id> -d true -v true
# Example: sh ./scripts/deploy.sh -n arbitrum-goerli -c 421613 -d true -v true
  1. View the deployed contracts in the ./deployments directory.

Deployment Addresses

The Equation Contracts project is deployed to the following networks:

Network Chain ID Contracts
Arbitrum Mainnet 42161 View

License

The Equation Contracts project uses a variety of open-source licenses for its codebase. The licensing details for each portion of the project can be found in the individual source code files via the SPDX-License-Identifier header. Here is a summary of the licensing information for different parts of the project:

  1. Code under the ./contracts/**/interfaces directory is licensed under the GPL-2.0 license.
  2. Third-party code used in the project is subject to the following licenses:
    • MIT License
    • GPL-2.0 License
  3. Code under the ./contracts/test directory is not licensed for use outside of the Equation Contracts project.
  4. All other code in the project is licensed under the BSL-1.1 license.

About

This repository contains the smart contracts for Equation. Please visit https://equation.org to learn more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.5%
  • Other 0.5%