pub struct Addresses {Show 13 fields
pub yield_bearing_ctf_exchange: &'static str,
pub yield_bearing_neg_risk_ctf_exchange: &'static str,
pub yield_bearing_neg_risk_adapter: &'static str,
pub yield_bearing_conditional_tokens: &'static str,
pub yield_bearing_neg_risk_conditional_tokens: &'static str,
pub ctf_exchange: &'static str,
pub neg_risk_ctf_exchange: &'static str,
pub neg_risk_adapter: &'static str,
pub conditional_tokens: &'static str,
pub neg_risk_conditional_tokens: &'static str,
pub usdt: &'static str,
pub kernel: &'static str,
pub ecdsa_validator: &'static str,
}Expand description
All contract addresses organized by contract type and chain
Fields§
§yield_bearing_ctf_exchange: &'static str§yield_bearing_neg_risk_ctf_exchange: &'static str§yield_bearing_neg_risk_adapter: &'static str§yield_bearing_conditional_tokens: &'static str§yield_bearing_neg_risk_conditional_tokens: &'static str§ctf_exchange: &'static str§neg_risk_ctf_exchange: &'static str§neg_risk_adapter: &'static str§conditional_tokens: &'static str§neg_risk_conditional_tokens: &'static str§usdt: &'static str§kernel: &'static str§ecdsa_validator: &'static strImplementations§
Source§impl Addresses
impl Addresses
pub fn for_chain(chain_id: ChainId) -> Self
Sourcepub fn get_ctf_exchange(
&self,
is_yield_bearing: bool,
is_neg_risk: bool,
) -> &'static str
pub fn get_ctf_exchange( &self, is_yield_bearing: bool, is_neg_risk: bool, ) -> &'static str
Get the CTF Exchange address based on market type
Sourcepub fn get_conditional_tokens(
&self,
is_yield_bearing: bool,
is_neg_risk: bool,
) -> &'static str
pub fn get_conditional_tokens( &self, is_yield_bearing: bool, is_neg_risk: bool, ) -> &'static str
Get the Conditional Tokens address based on market type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Addresses
impl RefUnwindSafe for Addresses
impl Send for Addresses
impl Sync for Addresses
impl Unpin for Addresses
impl UnwindSafe for Addresses
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more