brson / phoenix-contracts

Source code of the smart contracts of Phoenix protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codecov

Phoenix DEX Smart Contracts

This repository contains the Rust source code for the smart contracts of the Phoenix DEX.

Overview

Phoenix will be a set of DeFi protocols hosted on Soroban platform. Directory docs contains brief description of architecture, including flow diagrams.

Prerequisites

The following tools are required for compiling the smart contracts:

# Install rust using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Then install wasm32 target
rustup target add wasm32-unknown-unknown

Compilation

The smart contracts can be compiled into WebAssembly (WASM) using make. The Makefile included in the repository is configured to handle the necessary steps for building the smart contracts.

Navigate to the root directory of the project in your terminal and run the following command:

make build

This will generate WASM files for each of the smart contracts in the target/wasm32-unknown-unknown/release/ directory.

Testing

You can run tests with the following command:

make test

License

The smart contracts and associated code in this repository are licensed under the GPL-3.0 License. By contributing to this project, you agree that your contributions will also be licensed under the GPL-3.0 license.

For the full license text, please see the LICENSE file in the root directory of this repository.

Contact

If you have any questions or issues, please create a new issue on the GitHub repository.

About

Source code of the smart contracts of Phoenix protocol

License:GNU General Public License v3.0


Languages

Language:Rust 98.4%Language:Shell 1.0%Language:Makefile 0.7%