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:
- Use
Deployment::sepolia()/Deployment::mainnet()to read class hashes pinned by the upstream deployer. - If a fresh network needs declaration, fetch Sierra/CASM from the
GitHub release assets (see
deadeye_artifacts::RELEASE_COMMIT) and invokestarknet_accounts::Account::declare_v3directly. - Use the
Deployment::factory_addressfield to bind adeadeye_starknet::FactoryReaderonce the factory is deployed.
Modules§
- runtime
- Math-runtime deployment + local address cache.
Structs§
- Class
Hashes - Class hashes for every contract in a Deadeye deployment.
- Collateral
Token - Collateral token info.
- Deployment
- Typed view over a Deadeye deployment manifest.
Enums§
- Deployer
Error - Errors emitted by this crate.