Skip to content

Antelope DUNES Documentation

Nikolaus Heger edited this page Sep 13, 2023 · 4 revisions

Antelope DUNES toolset for smart contracts

Documentation

Needs better docs on how to get antelope running

I tried using DUNES but I think it may be simpler to just run command line commands on the docker container with

dune -- <command>

Installation on Mac OS X

    • Clone DUNES repo
    • Add DUNES repo to path as per Antelope instructions - this installs the "dune" command line tool
    • Run Docker
    • Go to Docker settings, Make sure file sharing is enabled on '/' (root folder) 4.1. - [Optional] Assign more cores for faster builds under Settings -> Resources
    • Mac System Settings: Go to Privacy and Security -> Full Disk Access, enable for Docker and Terminal
    • Run dune --version

This installs the docker image and proves dune is installed with the version output

    • In Docker, inspect the file system on the dune container - Click through /host/Users/your_user/... path to your build directory - if you get security warnings and errors, go to back to system settings and make sure full disk access is enabled.
    • Run build - dune -- (command) runs commands direct on the dune container, or open a terminal window on Docker Desktop on the container, type 'bash', then do the builds directly from there.

Parallel make

run make -j10 to run on 10 cores.

Make with Ninja

    • configure cmake and ninja cmake -S . -B ./build -G Ninja
    • on docker container add ninja
apt-get install ninja-build
    • run ninja by typing 'ninja'