Skip to content

renegade-fi/quickstart-docs-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Integration Quickstart Documentation Code Snippets

This repository contains runnable code snippets to help integrators get started with Renegade.

Rust

Direct matches

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 -- --nocapture

Solver RFQs

You'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_KEY

In rust/, run:

cargo test rfq_example -- --nocapture

Typescript

Solver RFQs

export PRIVATE_KEY=0x...
export EXTERNAL_MATCH_KEY=...
export EXTERNAL_MATCH_SECRET=...

In typescript/, run:

npm run solver-rfq

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors