compolabs / orderbook-contract

Other
40 stars 6 forks source link

Spark Orderbook Contract

The Spark Orderbook Contract is a decentralized order book implemented on the Fuel blockchain, designed to facilitate secure and transparent trading.

Getting Started

The Orderbook framework consists of five components, which can be found in the root folder:

Running All Tests

To build the project and run all tests, execute the following command:

forc build --release & cargo test --release

Running Fuzz Tests:

To run fuzz tests, use the following command:

cargo test --release -- --ignored fuzz --test-threads=$(nproc || sysctl -n hw.ncpu)

Contribution

The liquidation mechanism, error codes, and all contract methods are open for community contributions. Your input is welcome to help improve and expand the Spark Orderbook Contract, making it a more robust and feature-rich platform.