The-Arbiter / Hash-Storage-Example

A basic example for how to use hashes to "store" complex objects as hashes. Inspired by 0xSplits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hash Storage Example

This is a very basic example for how to use hashes to "store" complex objects as hashes.

Why do you care?

This is the future. Sure, it kind of breaks composability but not completely. Anyway I am using this for Arbiter Protocol which is moving to v2 right now and I need to learn how to do it, so this repo is my learning experience.

Also we can do stuff like slices on calldata arrays (which we can't do for other array types in solidity at the moment) so this actually unlocks some cool stuff if you use it and rely on slicing of arrays.

Arby

About

A basic example for how to use hashes to "store" complex objects as hashes. Inspired by 0xSplits.


Languages

Language:Solidity 100.0%