libplanet
libplanet copied to clipboard
Add analogous models to `DataModel` for `IAccountStateDelta.GetState()` and `IAccountStateDelta.SetState()`
trafficstars
Something like
StateModel state = states.GetState<StateModel>(address);
// Do stuff.
states.SetState(address, state.Encode());
might be nice to have. 🙄
This is more complicated than DataModel as Bencodex parameter type for GetState() and SetState() isn't limited to Bencodex.Types.Dictionary. This might require more thought during the design stage. 😶
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.