DApp Overview
An overview of the Credible Layer dApp features and functionality
The Credible Layer dApp provides a comprehensive interface for managing smart contract projects and their associated assertions. It serves as the primary platform for:
- Creating and managing projects
- Linking and managing assertions
- Monitoring assertion status and insights
- Exploring projects and their security measures
The dApp’s explorer feature enables users to quickly assess a project’s security posture by viewing its linked assertions before interacting with it.
In this overview we’ll walk through the process of authenticating with the dApp, creating a project and linking assertions to it.
Prerequisites
A local development environment with the Credible Layer CLI (pcl
) installed. If you don’t have one set up yet, you can follow the pcl quickstart guide to get started.
Core Features
Project Explorer
The dApp’s explorer feature enables users to search for and analyze projects and their associated assertions. To access the explorer and see details about projects:
- Click the “Explorer” tab in the navigation bar
- Browse all projects on the Credible Layer
- Search for specific projects by name or address
- View detailed information about linked assertions
Project Management
Creating a Project
To create a new project:
- Navigate to the “Projects” tab
- Click “Create a project”
- Enter project details:
- Project Name (typically matching your smart contract/protocol)
- Project Description
- Target Chain
- Click “Continue to contract selection”
- Add one or more contract addresses
- Here it’s important to note that only contracts where the
owner
matches the address of the account you’re using to create the project will be permitted to be linked to the project. - Specifically this is done by calling the
owner()
function on the contract and comparing the result to the address of the account you’re using to create the project.
- Here it’s important to note that only contracts where the
- Review and publish the project
Only the owner of a contract can create a project for it. There will be additional verification methods in the future, but for now this is the only way.
When playing around and testing the demo, make sure to have an owner()
function in your contract that returns the current owner.
Linking Assertions
To link assertions to your project:
- Store the assertion using the CLI:
- Submit the assertion to your project:
- In the dApp:
- Navigate to your project dashboard
- Go to “Ready for Submission” tab
- Click “Proceed to Review”
- Select target contract
- Review and deploy the assertion
Authentication
Before using the dApp, you must authenticate through the pcl
CLI:
- Run the authentication command:
- Follow the provided login link
- Connect your wallet
- Enter the login code from the CLI
For more details about the pcl
CLI, refer to the pcl reference.
Here’s a full video that you can consult to follow along with the process entire process from authentication to activating the assertion: