Releases: hyperweb-io/cw-simulate
v2.8.4
v2.8.3
v2.8.2
What's Changed
- Add missing error TraceLogs on instantiate & execute by @Kiruse in #30
- Bump json5 from 2.2.1 to 2.2.3 by @dependabot in #29
New Contributors
- @dependabot made their first contribution in #29
Full Changelog: 2.8.1...2.8.2
v2.8.1
v2.8.0-rc.2
Fix a logic error with rethrowing rejected promises
v2.8.1-rc.1
Cleanup some WASM module code:
- Hide methods intended mainly for internal use (i.e.
protected
) - Improve typing robustness
- Refactor out a
Contract
class to handle & interface with smart contract instances
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
})
v2.8.0-rc.3
Fixes an issue where empty Immutable.Lists & Immutable.Maps would point to the same mutable List/Map and cause issues across the data store.
v2.8.0-rc.2
JSON method didn't work so we're moving to binary de/serialization. You can now find cw-simulate/dist/persist
sub-module w/ save
and load
function exports
v2.8.0-rc.1
Introduces CWSimulateApp.deserialize
and CWSimulateApp.prototype.serialize
methods for serializing simulation state to JSON
Any custom TransactionalLens
created on CWSimulateApp.prototype.store.db
will also be automatically de/serialized for convenience.