spacemeshos / svm

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

Testing the `svm_transfer` in the SDK #407

Open YaronWittenstein opened 2 years ago

YaronWittenstein commented 2 years ago

The current SVM SDK code contains the following:

FFI declaration:

https://github.com/spacemeshos/svm/blob/master/crates/sdk-host/src/ext.rs#L71

Mock declaration:

https://github.com/spacemeshos/svm/blob/master/crates/sdk-host/src/mock.rs#L114

The SVM SDK tests sit here: https://github.com/spacemeshos/svm/tree/master/tests/sdk/tests

The Task

This issue exists since we'd like to add tests that will simulate the svm_transfer method by working against the SDK Host Mock implementation.