Skip to content

phylaxsystems/assertion-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phylax Credible Layer Sample Assertions

This repository contains a collection of sample assertions for the Phylax Credible Layer. These assertions demonstrate how to prevent various types of vulnerabilities and attacks in smart contracts.

Check out the official documentation to learn more about assertions and the Credible Layer.

To run the tests run the following command:

pcl test assertions/test

Previous Hacks

We have collected a list of previous hacks and vulnerabilities and created assertions that would have prevented them. You can explore them in the previous hacks directory.

Assertion Categories

1. Access Control & Ownership

  • Owner Change: Prevents unauthorized changes to contract ownership and admin roles
  • Implementation Change: Ensures contract implementation addresses remain unchanged

2. Token & Asset Protection

3. DeFi Protocol Safety

4. Oracle & Price Protection

5. Protocol State Management

6. Social Protocol Safety

Contributing

If you have suggestions for new assertions or improvements to existing ones, please open a PR or reach out. We're always interested in exploring new use cases and patterns for assertions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •