Developer overview
This page provides an architectural overview of MIRA, links to repositories and their purposes, and access to deployed instances of the system.
Architecture and Repositories
The MIRA architecture is divided into several core components, each with a specific purpose. Below is an overview of these components and the repositories associated with them:
Component
Description
Repository Link
Core Contract
Implements the foundational AMM logic, handling swaps, liquidity provision, and pool state management.
Periphery Scripts
Provides high-level abstractions for interacting with the core contract, including safety mechanisms and swap functions.
TypeScript SDK
Offers tools for developers to interact with MIRA, including swapping tokens, querying liquidity pools, and managing liquidity.
Rust SDK
Provides a Rust-based toolkit for developers building high-performance applications on top of MIRA.
Deployed Instances
Mainnet Deployment
Front-end: https://mira.ly/
Smart Contracts:
Core Contract ID:
0x2e40f2b244b98ed6b8204b3de0156c6961f98525c8162f80162fcf53eebd90e7
Hook Contract ID:
0xa703db08d1dbf30a6cd2fef942d8dcf03f25d2254e2091ee1f97bf5fa615639e
The current hook validates that swaps follow the invariant curve (link to the post-mortem). Additional functionality can be added to the AMM in the future using new hooks.
Explorer Link: View on Fuel Explorer
Testnet Deployment
Front-end: No live front-end available currently.
Smart Contracts:
Contract ID:
0xd5a716d967a9137222219657d7877bd8c79c64e1edb5de9f2901c98ebe74da80
Explorer Link: View on Fuel Testnet Explorer
Last updated