Crate renegade_sdk

Crate renegade_sdk 

Source
Expand description

A Rust SDK for interacting with the Renegade relayer

Re-exports§

pub use auth::HmacKey;

Modules§

actions
Actions to update a Renegade wallet
api_types
Types for the external match client
auth
Types and utilities for HMAC-based authentication
client
The client for interacting with the Renegade darkpool API
config
Config setup for the renegade wallet client
types
Re-exports of v1 types for backwards compatibility
websocket
The websocket client for listening to Renegade events

Structs§

AssembleQuoteOptions
The options for assembling a quote (v1 format)
AssembleQuoteOptionsV2
The options for assembling a v2 quote
ExternalMatchClient
A client for requesting external matches from the relayer
ExternalMatchOptions
The options for requesting an external match
ExternalOrderBuilder
A builder for an ExternalOrder (v1 format)
ExternalOrderBuilderV2
A builder for an ExternalOrderV2
RequestQuoteOptions
The options for requesting a quote
TransactionRequest
Represents all transaction requests to/from RPC.

Enums§

ExternalMatchClientError
An error that can occur when requesting an external match
RenegadeClientError
The error type for the renegade wallet client

Constants§

ARBITRUM_ONE_CHAIN_ID
The Arbitrum one chain ID
ARBITRUM_SEPOLIA_CHAIN_ID
The Arbitrum Sepolia chain ID
BASE_MAINNET_CHAIN_ID
The Base mainnet chain ID
BASE_SEPOLIA_CHAIN_ID
The Base Sepolia chain ID
ETHEREUM_SEPOLIA_CHAIN_ID
The Ethereum Sepolia chain ID
GAS_REFUND_ADDRESS_QUERY_PARAM
The auth server query param for the gas refund address
GAS_REFUND_NATIVE_ETH_QUERY_PARAM
The auth server query param for refunding gas in terms of native ETH
GAS_SPONSORSHIP_QUERY_PARAM
The auth server query param for requesting gas sponsorship

Functions§

get_current_time_millis
Returns the current unix timestamp in milliseconds, represented as u64
get_env_agnostic_chain
Returns the environment-agnostic name of the chain with the given ID

Type Aliases§

U48
48-bit [unsigned integer type][Uint], consisting of 1, 64-bit limbs.
U160
160-bit [unsigned integer type][Uint], consisting of 3, 64-bit limbs.
U256
256-bit [unsigned integer type][Uint], consisting of 4, 64-bit limbs.