{"repo":"renegade-fi/renegade-stylus-contracts","free":true,"listed":false,"github":"https://github.com/renegade-fi/renegade-stylus-contracts","clone":"git clone https://github.com/renegade-fi/renegade-stylus-contracts.git","description":"Smart contracts for on-chain anonymous settlement.","language":"Rust","stars":124,"topics":["dex","zero-knowledge","defi","plonk","arbitrum","arbitrum-stylus","crypto","darkpool","mpc"],"license":null,"category":"blockchain-web3","readme_excerpt":"--- This repository contains the Arbitrum Stylus code for Renegade's settlement layer. This includes managing the system-global state, verifying Plonk proofs, and emitting events that are consumed by the p2p network. Please refer to our whitepaper and docs for an introduction the Renegade protocol as a whole, and see here for a high-level specification of the contracts' functionality. Contract Development Setup Given we are using Stylus, our contracts are written in Rust, and as such we use a combination of the Rust toolchain and a local Arbitrum Nitro devnet for development. To set up your machine for Renegade contract development: Clone the repo Install Rust toolchain Make sure you have Rust toolchain installed, using e.g. rustup . You'll also need to have the nightly toolchain, the Rust standard library source, and the wasm32-unknown-unknown target (since Stylus contracts are compiled to WASM): Install the Stylus CLI You'll need the Stylus CLI to deploy the Renegade contracts for the integrationt tests: Install wasm-opt We use wasm-opt to optimize the compiled WASM binaries of our contracts. Install it by running: Set up the Arbitrum Nitro devnet Our integration tests require a Stylus-compatible network to be accessible. The simplest way to do this is to run a devnet locally. Follow the instructions here to set up a local Arbitrum Nitro devnet capable of supporting Stylus contracts. Running unit tests Some of our functionality, for example the Plonk verifier, is defined ag","default_branch":null,"files":null,"tree":[],"storefront":"/r/renegade-fi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renegade-fi/renegade-stylus-contracts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}