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: StringNetwork identifier ("sepolia" or "mainnet").
timestamp: StringISO-8601 timestamp.
deployer: StringAddress that performed the deployment.
class_hashes: ClassHashesClass hashes for every contract.
factory_address: StringFactory contract address.
oracle_address: StringOracle contract address.
multinoulli_plugin_address: StringMultinoulli factory-plugin contract address.
normal_plugin_address: StringNormal factory-plugin contract address.
lognormal_plugin_address: StringLognormal factory-plugin contract address.
bivariate_plugin_address: StringBivariate factory-plugin contract address.
collateral_token: CollateralTokenCollateral token configuration.
Implementations§
§impl Deployment
impl Deployment
pub fn sepolia() -> Result<Self, DeployerError>
pub fn sepolia() -> Result<Self, DeployerError>
Decode the bundled Sepolia deployment manifest.
pub fn mainnet() -> Result<Self, DeployerError>
pub fn mainnet() -> Result<Self, DeployerError>
Decode the bundled mainnet deployment manifest.
pub fn from_bytes(bytes: &[u8]) -> Result<Self, DeployerError>
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>
pub fn factory_felt(&self) -> Result<Felt, DeployerError>
Parse the factory address as a Felt.
pub fn oracle_felt(&self) -> Result<Felt, DeployerError>
pub fn oracle_felt(&self) -> Result<Felt, DeployerError>
Parse the oracle address as a Felt.
Trait Implementations§
§impl Clone for Deployment
impl Clone for Deployment
§fn clone(&self) -> 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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Deployment
impl Debug for Deployment
§impl<'de> Deserialize<'de> for Deployment
impl<'de> Deserialize<'de> for Deployment
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl Serialize for Deployment
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnsafeUnpin for Deployment
impl UnwindSafe for Deployment
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