OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Solidity Linked List

Solidity Linked List is an MIT-licensed utility library that provides sorted linked-list data structures for Solidity smart-contract projects. It includes a `StructuredLinkedList` type and documents installation and import patterns for Hardhat and Foundry projects.

Independent OpenViST project profile, based on linked sources.

Solidity Linked List — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.20 in 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.

Source-based practical guide

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

  1. Install the package with the command below.

    Documented command
    npm install solidity-linked-list
  2. In a contract using Solidity pragma ^0.8.20, import StructuredLinkedList from solidity-linked-list/contracts/StructuredLinkedList.sol.

  3. Follow the example by associating StructuredLinkedList with StructuredLinkedList.List using a using declaration and declaring a StructuredLinkedList.List variable.

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.
Source-based practical guide

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

  1. Install the dependency with forge install vittominacori/solidity-linked-list.

  2. Add solidity-linked-list/contracts/=lib/solidity-linked-list/contracts/ to remappings.txt.

  3. Use the README's StructuredLinkedList import 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.
Evidence and transparency

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