Skip to content

futureswap/dos-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOS Contracts

the infra of defi

Installation

clone the project and make sure you have a Node version > 16

To complie

npx hardhat compile

To run test

npx hardhat test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

To run locally

Make sure you run update the typechain folder to get the latest contract build.

yarn typechain

Make sure you have docker version 4.12.0 (dont upgrade to the latest it causes issues).

then run

yarn start

Then

yarn setupLocalhost

Check the deployments folder for the updated addresses. If they have changed make use to take the DOS address and put it in the subgraph folder: subgraph.yaml and networks.json

Now run

yarn graph-local

Open a new terminal and run

yarn create-local

Then run

yarn deploy-local

On the dos-frontend repo make sure to copy and paste the contract addresses to the addresses.json file.

run

yarn run dev

You might have to reset your nonce on metamask to interact with things.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •