public async Task HandleCreation(WebWalletCreateAction action, IDispatcher dispatcher) { var store = new AccountInMemoryStorage(); var name = Guid.NewGuid().ToString(); Wallet.Create(store, name, "", config["network"]); var wallet = Wallet.Open(store, name, ""); await wallet.Sync(client); dispatcher.Dispatch(new WebWalletResultAction(wallet, true, UIStage.Main)); }
public static WebWalletState CreateWalletActionHandler(WebWalletState state, WebWalletCreateAction action) => state.With(new { IsLoading = true });