Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

sripwoud/solidity-unordered-key-set

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Unordered Key Set

Library that implements a Solidity CRUD (Create, Read, Update, Delete) pattern.
Based on Rob Hitchens UnorderedKeySet with minor changes/improvements:

  • Use safeMath for arithmetic operations
  • Rename count function into remove
  • Rename nukeSet function into nuke
  • Add indexAtKey function
  • Add tests (written in solidity)

Development

Requirement: dapp.tools

Compile contracts: dapp --use solc:0.6.0 build

Test contracts: dapp --use solc:0.6.0 test

Credit

Rob Hitchens

Languages

  • Solidity 99.1%
  • Makefile 0.9%