CasperLens is an observability and smart contract lifecycle management platform for the Casper Network.
Smart contract lifecycle monitoring and management is essential for ensuring smooth integration in application, auditing for security and integrity and continuous evolution with collective knowledge.
Casper, as a newer and efficient blockchain network allows upgrading smart contracts after deployment, in contrast to other networks such as Ethereum.
However, lack of lifecycle tracking and robust observability of the smart contracts in a transparent manner that preserves integrity causes issues during integration in application development teams and proper analysis of usage of the smart contracts.
CasperLens simplifies the process of smart contract lifecycle and changelog management by tracking smart contracts deployed on Mainnet and Testnet, allowing an inventory of contracts to be tracked, that is either developed or used.
This helps in checking the evolution of smart contracts over a period of time, improving accountability and transparency, as intended in Web3 ecosystem.
This provides a centralized mechanism for retrieval of smart contract information such as entry points, parameters, named keys, timestamps, owner, lock status, etc. by integrating data from Casper's RPC nodes and Network Explorer's API endpoints.
CasperLens allows checking for changes between 2 different versions of a smart contract package, aiding in understanding and analysis of differences between versions. This simplifies integration in development teams and improves the process of security auditing for compliance.
The metadata of the versions are stored in off-chain PostgreSQL database for efficient querying and the diff is stored in the Casper Network for transparency.
CasperLens provided AI-assisted analysis for differences between 2 versions by providing insights on the changelog and its implications for development teams and security. This improves secure SDLC and efficiency in teams working on smart contract development and integration. It uses HuggingFace inference points with LLaMa for this.
Contract package usage can be visualized in graphical manner in frontend for observability analysis. This helps in understanding trends without having to build custom systems for inspecting transaction patterns.
The recent transactions made for the specific contract version can be tracked for understanding usage patterns and status of the invocations.
- Frontend: The web interface for CasperLens is written with Next.js and Base UI for an interactive experience.
- Backend: The server is written using Axum, allowing interaction with the Casper Network using Casper Client. The data is written to off-chain PostgreSQL database for smart contract package and version and the version diff data is written to the Casper Network.
- Smart Contract Framework: Observability contract for writing diff is written to Casper network's chain using Odra Framework, allowing easier iterations.
| Dashboard | Contract Registration |
|---|---|
![]() |
![]() |
| Contract Details | Contract Versions |
|---|---|
![]() |
![]() |
| Transactions | Contract Version Diffs |
|---|---|
![]() |
![]() |
| AI Analysis | |
|---|---|
![]() |
Check out our contributing guide for getting started.
- Integrate observability metrics from Casper Cloud.
- Integrating support for other networks to enable interoperability.
- Support user account and tracking contracts under a user account using Casper Wallet.
- Enable code level tracking for functional changes and ABI changes for enhanced intelligent analysis using CI integration.
CasperLens is licensed under Apache-2.0 license. For more information, check out LICENSE.








