v2.8.0
v2.8.0 Persistence Update
Adds a new export persist
to CWSimulate with save
and async load
methods to save & restore the entire state of a CWSimulateApp
:
import { persist } from '@terran-one/cw-simulate';
const app = new CWSimulateApp({...});
const bytes = persist.save(app);
persist.load(bytes).then(app => {
// do something with restored app
})