Practical overview
When it fits
Consider it when a contract needs an ordered linked-list structure and you are evaluating a Solidity library to integrate into a Hardhat or Foundry project.
Who it is for
- Solidity developers who need a sorted linked-list structure in a smart contract.
- Teams using Hardhat or Foundry that want a library dependency for ordered contract collections.
Documented uses
- Add sorted linked-list storage to a Solidity contract.
- Build contract logic that inserts or removes ordered entries.
- Maintain an ordered collection in contract state.
Requirements & limits
The repository is public and the code is released under the MIT License.
- The documented structure is a sorted linked list, rather than a general-purpose hosted service.
- The README shows a Solidity pragma of
^0.8.20in its usage example. - Hardhat and Foundry installation paths are documented; Foundry users are also given a remapping entry.
- The repository links to Solidity API documentation and code-analysis materials.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add the library dependency to a Hardhat project
Install Solidity Linked List and follow the repository's documented Solidity import pattern.
Before you start
- A Hardhat project
- A Solidity contract
Steps
Install the package with the command below.
npm install solidity-linked-listIn a contract using Solidity pragma
^0.8.20, importStructuredLinkedListfromsolidity-linked-list/contracts/StructuredLinkedList.sol.Follow the example by associating
StructuredLinkedListwithStructuredLinkedList.Listusing ausingdeclaration and declaring aStructuredLinkedList.Listvariable.
Expected outcome
The project has the package installed and a contract structured to reference the library's list type.
Guide limitations
- The example demonstrates importing and declaring the list, not application-specific insertion, removal, or deployment.
- The repository instructions do not establish compatibility with a particular project configuration.
Install the library with Foundry
Add the library to a Foundry project and configure the documented source remapping.
Before you start
- A Foundry project
Steps
Install the dependency with
forge install vittominacori/solidity-linked-list.Add
solidity-linked-list/contracts/=lib/solidity-linked-list/contracts/toremappings.txt.Use the README's
StructuredLinkedListimport and list declaration pattern in a Solidity contract.
Expected outcome
The dependency and its documented contracts path are configured for the project.
Guide limitations
- The README's integration example does not specify application-specific list operations or deployment steps.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 9 October 2026
- Original website title
- vittominacori/solidity-linked-list · Official homepage title · retained in its source language

