paint-brush
A Linked List Implementation for Ethereum [Deep Dive]by@alcueca
2,317 reads
2,317 reads

A Linked List Implementation for Ethereum [Deep Dive]

by Alberto Cuesta Cañada 6mMarch 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Alberto Cuesta Cañada

Alberto Cuesta Cañada

@alcueca

Hello. I design and build blockchain solutions. I like to make the complex simple.

About @alcueca
LEARN MORE ABOUT @ALCUECA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Alberto Cuesta Cañada  HackerNoon profile picture
Alberto Cuesta Cañada @alcueca
Hello. I design and build blockchain solutions. I like to make the complex simple.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite