Basically I needed to recreate the keys from scratch because there was no helper.
It would be great to have helpers to create those keys. It could be the key for a mapper and the different keys for an esdt (they are multiple: the key for the amount, but also the key for the latest nonce, etc).
Those helpers could then be used inside e.kvs and other relevant places. The places could be found by searching the usage of TopStr.
Of course, tests should be added.
And for the name, we could have e.MapperKey(...) and some similar names for the other keys?
This is a code I wrote while doing some testing:
Basically I needed to recreate the keys from scratch because there was no helper.
It would be great to have helpers to create those keys. It could be the key for a mapper and the different keys for an esdt (they are multiple: the key for the amount, but also the key for the latest nonce, etc).
Those helpers could then be used inside e.kvs and other relevant places. The places could be found by searching the usage of
TopStr
.Of course, tests should be added.
And for the name, we could have
e.MapperKey(...)
and some similar names for the other keys?