This repository contains runnable code snippets to help integrators get started with Renegade.
First, set a funded Base Sepolia account's private key as an environment variable:
export PRIVATE_KEY=0x...Next, run:
cargo test direct_match_example -- --nocaptureYou'll first need to contact the Renegade team to get these secret values:
export EXTERNAL_MATCH_KEY=...
export EXTERNAL_MATCH_SECRET=...Mint dummy USDC for testing with:
cast send \
0xD9961Bb4Cb27192f8dAd20a662be081f546b0E74 \
"mint(address,uint256)"
<YOUR ADDRESS> \
1000000000000000000000000000 \
--rpc-url https://sepolia.base.org \
--private-key $PRIVATE_KEYIn rust/, run:
cargo test rfq_example -- --nocaptureexport PRIVATE_KEY=0x...
export EXTERNAL_MATCH_KEY=...
export EXTERNAL_MATCH_SECRET=...
In typescript/, run:
npm run solver-rfq