6 Commits

Author SHA1 Message Date
Eric Mastro
407d51bc9a
Refactor to data access layer
Create a DAL lib with a Database struct that contains all tables and relationships. Referential integrity is guaranteed.
2022-12-01 15:53:28 +11:00
Eric Mastro
8fde295b73
refactor Mappings.Mapping, add ClearableBytes32Set
- refactor Mappings.Mapping to use a ClearableBytes32Set and multiple EnumerableSet.Bytes32Sets instead of implementing that code directly in Mappings.Mapping.
- update the api for better readability and reasoning.

This should be much cleaner now.
2022-11-28 14:39:11 +11:00
Eric Mastro
b0bdf5fafe
add Mappings tests
- add tests for Mappings.Mapping
- remove SetMap.test.js (no longer used)
- rename getManyCount to getValueCount
2022-11-25 15:17:08 +11:00
Eric Mastro
42e69d592f
add user defined types for bytes32 keys and values in Mappings 2022-11-24 22:04:18 +11:00
Eric Mastro
e063041d69
WIP: cleanup checkpoint 2022-11-24 19:47:29 +11:00
Eric Mastro
d4a0521f33
WIP: initial implementation of one-to-many
Needs to be cleaned up and reorganised.
2022-11-24 18:49:16 +11:00