You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client code of each contract is going to be compiled to an executable, the contract runtime. The contract runtime should be a stateless component. Therefore we need to transform all actions in the WalletAPI monad into functions that take the current state and produce a new state plus some events (register triggers, create transactions, etc.)
The text was updated successfully, but these errors were encountered:
Note: to do this in strictly monadic style we'd need to serialize a continuation back to the client, which we almost certainly don't want to do.
Instead, we probably want applicative style computations, so all the client-side effects we want can be done up front. We could use selective functors to improve this further.
The client code of each contract is going to be compiled to an executable, the contract runtime. The contract runtime should be a stateless component. Therefore we need to transform all actions in the
WalletAPI
monad into functions that take the current state and produce a new state plus some events (register triggers, create transactions, etc.)The text was updated successfully, but these errors were encountered: