https://github.com/paraswap/augustus-v5
https://github.com/paraswap/augustus-v5
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraswap/augustus-v5
- Owner: paraswap
- Created: 2024-06-05T16:28:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T22:16:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T15:51:44.453Z (about 1 year ago)
- Language: Solidity
- Size: 2.27 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Audit: audits/PeckShield-Audit-Report-ParaSwapDirectSwap-v1.0.pdf
Awesome Lists containing this project
README
# Paraswap-SmartContracts
This repository contains all Paraswap smart contracts
## Usage
### Pre Requisites
Before running any command, you need to create a .env file and set a BIP-39 compatible mnemonic as an environment variable. Follow the example in .env.example. If you don't already have a mnemonic, use this [website](https://iancoleman.io/bip39/) to generate one.
Clone Paraswap-SmartContracts
```sh
git clone https://github.com/paraswap/paraswap-contracts.git
cd paraswap-contracts
yarn
```
## Compile and Deploy
### Compile all contracts to obtain ABI and bytecode:
```bash
yarn compile
```
### Migrate all contracts required for the basic framework onto network associated with RPC provider:
```bash
yarn deploy
```
## Network Artifacts
## Testing
### Run all tests (requires Node version >=8 for `async/await`, and will automatically run TestRPC in the background):
```bash
yarn test
```
## Test Coverage
### Get test coverage stats(requires Node version >=8 for `async/await`, and will automatically run TestRPC in the background):
```bash
yarn coverage
```
## Deploy in Tenderly
I created new task, so we can deploy any contract and verify it for certain fork in order to test it. In order to use it, set appropriate envs and run:
```
npx hardhat deploy_verify_tenderly --network tenderly
```