Giter VIP home page Giter VIP logo

lucidao-smart-contracts's Introduction

Lucidao

Collection of smart contracts, scripts and tests for the management of the Lucidao platform.


Setup

The repository uses Docker Compose. Prior to conducting any action, you must start the contracts-env container.

Follow the instructions to setup the repository for testing or deploying the Lucidao contracts:

  • Install docker and docker-compose:
  $ cd docker/
  $ docker-compose -f docker-compose.yml up --build -d

Testing

  • Run a bash instance in the container:
    $ docker exec -it test_lucidao_smart_contracts bash
  • Prepare the contracts and run the tests from inside the container:
    $ npx hardhat typechain
    $ npm run test --silent

Development

Setup the development environment by following the next instructions:

  • Create an enviroment file named .env.development and fill it with the following enviroment variables:
    $ touch .env.development
  • Add a Mnemonic (only first address will be used)

      MNEMONIC=""
    
  • Add a Ftmscan Api Key

      FTMSCAN_API_KEY=""
    
  • Run the container

    $ docker-compose -f docker-compose.development.yml up --build -d
  • To deploy a contract, run the associated script:
    $ npx hardhat run scripts/_deployScriptName_.ts

lucidao-smart-contracts's People

Contributors

lucidao-developer avatar

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.