Extend the MockHost under the svm-host-mock crate to have both set_raw_tx (very similar to the set_raw_calldata).
Seems we don't need to have a set_tx similar to the set_calldata
Note that the declaration should match the ones used when implementing the host functions at #437
So if we ended up support only a single host function returning (u32, u32) then the svm-host-ffi should match that.
Depends on: #437
So, once we've got the
svm_tx_range
up and running, we need to expose it in a nice manner in the SDK.Here is an example of how it could look like:
The steps to implement this PR:
Host
trait undersdk-host
the following:This is very similar to the currently existing
calldata
method: https://github.com/spacemeshos/svm/blob/6edb73de199fafce0953f82af061ca1090ff911c/crates/sdk-host/src/lib.rs#L13Extend the
MockHost
under thesvm-host-mock
crate to have bothset_raw_tx
(very similar to theset_raw_calldata
). Seems we don't need to have aset_tx
similar to theset_calldata
Extend the
svm-host-ffi
crate to have:Note that the declaration should match the ones used when implementing the host functions at #437 So if we ended up support only a single host function returning
(u32, u32)
then thesvm-host-ffi
should match that.