Skip to main content

Crate deadeye_deployer

Crate deadeye_deployer 

Expand description

Deployment manifests + helpers for the Deadeye contract suite.

Today this crate provides a typed view over the JSON deployment manifests that the upstream the-situation deployer emits:

  • Class hashes for every market family (AMM + math runtime + factory plugin) plus the distribution factory, oracle, insurance, etc.
  • Deployed contract addresses (factory, oracle, plugins, collateral token).

Embedded manifests are sourced from deadeye_artifacts::SEPOLIA_DEPLOYMENT_BYTES and deadeye_artifacts::MAINNET_DEPLOYMENT_BYTES.

§Roadmap

Sierra/CASM artifact handling (declare-on-fresh-network) is intentionally out of scope for v0.1. The artifacts are ~30 MB total; embedding them would bloat every consumer. The current path is:

  1. Use Deployment::sepolia() / Deployment::mainnet() to read class hashes pinned by the upstream deployer.
  2. If a fresh network needs declaration, fetch Sierra/CASM from the GitHub release assets (see deadeye_artifacts::RELEASE_COMMIT) and invoke starknet_accounts::Account::declare_v3 directly.
  3. Use the Deployment::factory_address field to bind a deadeye_starknet::FactoryReader once the factory is deployed.

Modules§

runtime
Math-runtime deployment + local address cache.

Structs§

ClassHashes
Class hashes for every contract in a Deadeye deployment.
CollateralToken
Collateral token info.
Deployment
Typed view over a Deadeye deployment manifest.

Enums§

DeployerError
Errors emitted by this crate.