Skip to content

v2.8.0

Compare
Choose a tag to compare
@Kiruse Kiruse released this 19 Dec 22:47
· 18 commits to main since this release
a4ed361

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
})