JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q59650F
  • License MIT

An utility library for working with sorted linked list data structures in your Solidity project.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (solidity-linked-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Solidity Linked List

    NPM Package CI Coverage Status MIT licensed

    An utility library for working with sorted linked list data structures in your Solidity project.

    Installation

    Hardhat

    npm install solidity-linked-list

    Foundry

    forge install vittominacori/solidity-linked-list

    Add the below in remappings.txt:

    solidity-linked-list/contracts/=lib/solidity-linked-list/contracts/

    Usage

    pragma solidity ^0.8.20;
    
    import {StructuredLinkedList} from "solidity-linked-list/contracts/StructuredLinkedList.sol";
    
    contract MyContract {
        using StructuredLinkedList for StructuredLinkedList.List;
    
        StructuredLinkedList.List list;
    
        // your stuff
    }

    Code

    Documentation

    Code Analysis

    Development

    Install dependencies

    npm install

    Compile

    npm run compile

    Test

    npm test

    Code Coverage

    npm run coverage

    Linter

    Check Solidity files

    npm run lint:sol

    Check JS/TS files

    npm run lint:js

    Fix JS and Solidity files

    npm run lint:fix

    License

    Code released under the MIT License.