Git Product home page Git Product logo

dca-v2-core's Introduction

DCA V2

Lint Tests (unit, integration, e2e) npm version

This repository contains the core smart contracts for the DCA V2 Protocol.

⚠️ Audit

These contracts have been audited. Read all performed audits in here.

💰 Bug bounty

This repository is subject to the DCA V2 bug bounty program, per the terms defined here.

📖 Docs

Check our docs at docs.mean.finance

📦 NPM/YARN Package

  • NPM Installation
npm install @mean-finance/dca-v2-core
  • Yarn installation
yarn add @mean-finance/dca-v2-core

👨‍💻 Development environment

  • Copy environment file
cp .env.example .env
  • Fill environment file with your information
nano .env

🧪 Testing

Unit

yarn test:unit

Will run all tests under test/unit

E2E

yarn test:e2e

Will run all tests under test/e2e

Integration

You will need to set up the development environment first, please refer to the development environment section.

yarn test:integration

Will run all tests under test/integration

🚢 Deployment

You will need to set up the development environment first, please refer to the development environment section.

yarn deploy --network [network]

The plugin hardhat-deploy is used to deploy contracts.

Licensing

The primary license for DCA V2 is the Business Source License 1.1 (BUSL-1.1), see LICENSE.

Exceptions

  • All files in contracts/interfaces/ are licensed under GPL-2.0-or-later (as indicated in their SPDX headers), see contracts/interfaces/LICENSE
  • All files in contracts/libraries/ are licensed under GPL-2.0-or-later (as indicated in their SPDX headers), see contracts/libraries/LICENSE
  • All files in contracts/mocks remain unlicensed.

dca-v2-core's People

Contributors

nchamo avatar 0xged avatar 0xsambugs avatar alejoamiras avatar dependabot[bot] avatar

Stargazers

zachi.eth avatar DK avatar  avatar 0xhaz avatar Isaac Almanza avatar Ludmila avatar Johnny avatar jaybuidl avatar  avatar Thi Nguyen avatar Isaac Almanza avatar  avatar Alessandro Parma avatar Gus avatar shafu avatar Vamsi avatar Mr.Li avatar  avatar Nikolaos Kamarinakis avatar  avatar annter avatar José avatar L.C. Busby avatar Kartik Setia avatar  avatar Turtle avatar Xiaobo avatar chiller avatar AgusDuha avatar Samuel Safahi avatar omnifient avatar  avatar Mocha avatar Nicola Prando avatar codingsh avatar Marcelo Morgado avatar Michael Demarais avatar Arjun Nemani avatar adam avatar albertocevallos avatar Sean avatar Pierrick Turelier avatar t11s avatar Klaus Fleischhacker avatar Agustina Aldasoro avatar

Watchers

Michael Demarais avatar h0wl avatar Sebastian Joaquin Torres avatar  avatar  avatar  avatar

dca-v2-core's Issues

deploy script not working

After installing the dependencies using yarn and running the tests as mentioned in the README, I tried to deploy the contracts using yarn deploy but node vm's throw the followig error:

dca-v2-core/node_modules/@mean-finance/deterministic-factory/utils/deployment.ts:1
import hre, { ethers } from 'hardhat';
^^^^^^

SyntaxError: Cannot use import statement outside a module

Node version being used is 16.15.1. but also tried with 16.13.2 and got the same results

I also tried to clone @mean-finance/deterministic-factory, add "type": "module" to package.json and install it locally to this project, but end up with the same results

I wonder which versions are you guys using in your environment to make the deploy script run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.