Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NKVar and NKMapping #399

Closed
zie1ony opened this issue Apr 10, 2024 · 2 comments
Closed

NKVar and NKMapping #399

zie1ony opened this issue Apr 10, 2024 · 2 comments

Comments

@zie1ony
Copy link
Contributor

zie1ony commented Apr 10, 2024

Introduce new kind of storage elements that operate based on the named keys. For variables it should be NKVar and for mappings NKMapping. NK from Named Key.

Named keys should be constructed at the installation step. If Default is not defined, the it should be empty bytes array and I can fail at deserialization step when not initialized.

They should be consider as sort of globals. Further checks that forbid or allow coexistence variables with the same names will be implemented later.

Building keys for mappings should mimic behavior from CasperLab's cep18.

Storing and loading named key based values should happen via env object, so it can be tested on OdraVM and loaded in livenet mode.

@kubaplas
Copy link
Contributor

How about NamedVar and NamedMapping?

@kubaplas
Copy link
Contributor

kubaplas commented Apr 26, 2024

Started with #410

@kubaplas kubaplas reopened this Apr 26, 2024
@zie1ony zie1ony closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants