Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Final CDT key value cleanup #957

Merged
merged 4 commits into from
Aug 25, 2020
Merged

Final CDT key value cleanup #957

merged 4 commits into from
Aug 25, 2020

Conversation

allenhan2
Copy link
Contributor

@allenhan2 allenhan2 commented Aug 21, 2020

Currently, the key value API in EOSIO.CDT has the prefix 'kv_' used almost everywhere. This is problematic in a couple of ways, one is that the user has to type 'kv_' a lot and it is a bit reminiscent of C style "namespacing". So, we should simply add the namespace 'kv' over these data types. These names will also need to be updated in tests, abigen, and docs.

It also, appears that 'kv_singleton' either made its way back in or it fully wasn't removed in any of the previous PRs. This data type can be massive foot gun for developers and it is difficult to concisely express the semantics of it. The remedy is to just remove the data type 'kv_singleton' and any usages from the tests.

Change Description

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@allenhan2
Copy link
Contributor Author

Has not execute integration test yet due to some link issue with eos on my local machine.

@allenhan2 allenhan2 marked this pull request as ready for review August 21, 2020 18:32
@jeffreyssmith2nd
Copy link
Contributor

Verified tests, everything is passing

@jeffreyssmith2nd jeffreyssmith2nd merged commit 3721388 into develop Aug 25, 2020
@jeffreyssmith2nd jeffreyssmith2nd deleted the kv_name_cleanup branch August 25, 2020 17:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants