Solidity Linked List
An utility library for working with sorted linked list data structures in your Solidity project.
Install
bash
npm install solidity-linked-list
Usage
solidity
pragma solidity ^0.8.0;
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
bash
npm install
Compile
bash
npm run compile
Test
bash
npm test
Code Coverage
bash
npm run coverage
Linter
Check Solidity files
bash
npm run lint:sol
Check JS/TS files
bash
npm run lint:js
Fix JS and Solidity files
bash
npm run lint:fix
License
Code released under the MIT License.