{"repo":"mangrovedao/mangrove-core","free":true,"listed":false,"github":"https://github.com/mangrovedao/mangrove-core","clone":"git clone https://github.com/mangrovedao/mangrove-core.git","description":"🌴 Core smart contracts for Mangrove with deployment scripts and example offer logics","language":"Solidity","stars":49,"topics":["solidity-contracts","core","ethereum","smart-contracts","decentralized-exchange"],"license":null,"category":"blockchain-web3","readme_excerpt":"This package contains the Solidity implementation of Mangrove as well as deployment and governance scripts. Documentation If you are looking for the Mangrove developer documentation, the site to go to is docs.mangrove.exchange. Use as a foundry dependency Just forge install mangrovedao/mangrove-core . ⚠️ You will not get the usual remapping mangrove-core/=lib/mangrove-core/src/ (because forge's remapping generation heuristic sees the preprocessing/lib/ directory and decides to remap to the parent dir). Instead, you will get: Use this likely-unique prefix even internally so projects that depend on Mangrove don't mess with Mangrove's internal dependencies. Installing prerequisites For Linux or macOS everything should work out of the box, if you are using Windows, then we recommend installing everything from within WSL2 and expect some quirks. 1. Node.js 14.14+, we recommend installation through nvm, e.g.: 2. Yarn 2, with Node.js = 16.10: 3. Foundry: 4. Clone the git repo with sub-modules Usage The following sections describe the most common use cases in this repo. Initial setup After cloning the repo, you should run yarn install in the root folder. Then you need to setup the local environment (still in the root folder). Start by copying the test file provided: And then open .env in your favorite editor and put in settings for, e.g., node urls, for instance pointing to Alchemy. (The discussion around setting up an environment for testing out the strat library on a local chain on","default_branch":null,"files":null,"tree":[],"storefront":"/r/mangrovedao","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mangrovedao/mangrove-core/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}