Skip to main content

Deployment

Struct Deployment 

pub struct Deployment {
    pub network: String,
    pub timestamp: String,
    pub deployer: String,
    pub class_hashes: ClassHashes,
    pub factory_address: String,
    pub oracle_address: String,
    pub multinoulli_plugin_address: String,
    pub normal_plugin_address: String,
    pub lognormal_plugin_address: String,
    pub bivariate_plugin_address: String,
    pub collateral_token: CollateralToken,
}
Expand description

Typed view over a Deadeye deployment manifest.

Fields§

§network: String

Network identifier ("sepolia" or "mainnet").

§timestamp: String

ISO-8601 timestamp.

§deployer: String

Address that performed the deployment.

§class_hashes: ClassHashes

Class hashes for every contract.

§factory_address: String

Factory contract address.

§oracle_address: String

Oracle contract address.

§multinoulli_plugin_address: String

Multinoulli factory-plugin contract address.

§normal_plugin_address: String

Normal factory-plugin contract address.

§lognormal_plugin_address: String

Lognormal factory-plugin contract address.

§bivariate_plugin_address: String

Bivariate factory-plugin contract address.

§collateral_token: CollateralToken

Collateral token configuration.

Implementations§

§

impl Deployment

pub fn sepolia() -> Result<Self, DeployerError>

Decode the bundled Sepolia deployment manifest.

pub fn mainnet() -> Result<Self, DeployerError>

Decode the bundled mainnet deployment manifest.

pub fn from_bytes(bytes: &[u8]) -> Result<Self, DeployerError>

Decode from arbitrary bytes (e.g. a user-supplied manifest file).

pub fn factory_felt(&self) -> Result<Felt, DeployerError>

Parse the factory address as a Felt.

pub fn oracle_felt(&self) -> Result<Felt, DeployerError>

Parse the oracle address as a Felt.

Trait Implementations§

§

impl Clone for Deployment

§

fn clone(&self) -> Deployment

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Deployment

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Deployment

§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for Deployment

§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,