The Wayback Machine - https://web.archive.org/web/20230121194909/http://github.com/TheAlgorithms/Solidity
Skip to content

TheAlgorithms/Solidity

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

* Inheritance upload

* changes to add more description
1f48039

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The Algorithms - Solidity

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat Donate on Liberapay

All algorithms implemented in Solidity - for education

(still a work-in-progress project)

This is going to be used for our partnership with Dev Protocol. 🚀

Implementations are for learning purposes only. As they may be less secure than in real-world context, use them at your discretion.

Setting up foundry

Guide to installing foundry - https://book.getfoundry.sh/getting-started/installation
Clone the current project and enter the directory.

  git clone https://github.com/TheAlgorithms/Solidity.git
  cd Solidity

Installing forge-std (Forge Standard Library).

  forge install foundry-rs/forge-std 

Build the project using forge-std.

  forge build

Run forge-std automatic tests.

  # forge test --match-contract <contract-name>Test
  forge test --match-contract AbsTest

Lists of Algorithms

Community Channels

We're on Discord and Gitter! Community channels are great for you to ask questions and get help. Please join us!