spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
86 stars 14 forks source link

`svm_state::AccountStorage`: phase out `svm-storage` and `svm-kv` #366

Closed neysofu closed 3 years ago

neysofu commented 3 years ago

This PR introduces an AccountStorage utility, which allows to read/write data related to an Account. In particular, raw variable segmentation (using 32 byte segments currently) logic which is then used for smWasm host calls get64, get32, set64, and set32.

Closes https://github.com/spacemeshos/svm/issues/358.