spacemeshos / svm

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

Write and test a Template for Genesis Accounts (Simple Coin transfer) #426

Open neysofu opened 2 years ago

neysofu commented 2 years ago

Genesis accounts should not be template-less, but rather they should have a template just like all other accounts (besides stubs as described in Self-Spawn). We must write a test a template that fits the bill that will spawn all accounts at genesis as created by go-svm.

YaronWittenstein commented 2 years ago

Once the Template will work I believe we can discard these pieces of code:

  1. FFI svm_transfer API: https://github.com/spacemeshos/svm/blob/6edb73de199fafce0953f82af061ca1090ff911c/crates/runtime-ffi/src/api.rs#L579-L600

  2. Runtime transfer: https://github.com/spacemeshos/svm/blob/6edb73de199fafce0953f82af061ca1090ff911c/crates/runtime/src/runtime/runtime.rs#L720-L747

neysofu commented 2 years ago

Work for this issue is underway in the simple-coin-transfer-template/ crate.