Skip to content

WingRiders/dex-v2-contracts

Repository files navigation

Cardano DEX

Nix setup

WSL2 (Windows only)

  • Install WSL2, using command wsl.exe --install inside an elevated CMD/Powershell (Source)
  • After restarting, Windows should open a Shell window and start downloading Ubuntu, wait until it's done

NIX

  • Navigate to your user folder in the Ubuntu installation and perform a single-user installation using curl -L https://nixos.org/nix/install | sh -s -- --no-daemon (Source)

Cachix binary caches

  • Install the cachix client from nix shell
    nix-env -iA cachix -f https://cachix.org/api/v1/install
  • Add IOHK caches
    cachix use iohk
    

Build

DON'T use the recommended settings when entering the nix shell for the first time when asked.

make shell
make build # Run build
make export # Run export

Contracts

Contracts are defined in src/. Before they can be added to transactions, they have to be transpiled into a plutus intermediate representation.

Traces

By default all contracts are stripped of the error messages, if you want them in, please set the CONTRACTS_TRACING env variable to true.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages