A Linked List Implementation for Ethereum [Deep Dive]by@albertocuestacanada
2,129 reads

A Linked List Implementation for Ethereum [Deep Dive]

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

A Linked List Implementation for Ethereum [Deep Dive] is an implementation for Singly and Doubly Linked Lists, which you can reuse or modify for your own purposes. All the code is available in GitHub or as an npm package. An OOP implementation is possible, but the trade offs deserve an article of its own. The only dynamic contract variable that exists in Solidity are mappings under the hood. The best implementation is based on this: struct Item. Item has a unique id, a member for the id of another Item, and an address which is the data payload.

Coin Mentioned

Mention Thumbnail
featured image - A Linked List Implementation for Ethereum [Deep Dive]
Alberto Cuesta Cañada  HackerNoon profile picture

@albertocuestacanada

Alberto Cuesta Cañada


Receive Stories from @albertocuestacanada

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!