warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.1k stars 112 forks source link

x/async: first version #1089

Open Pitasi opened 4 days ago

Pitasi commented 4 days ago

We're introducing a new SDK module called x/async.

This module introduces a new concept called Future. A Future is an asynchronous task that is executed offchain by one of the validators. When the computation is done, the validator broadcasts its output as a vote extension.

This initial version will take shortcuts to get a proof of concept done, with "simple" Future handlers that do not consume much resources (cpu/memory). Down the line, we'll improve the scheduling of pending Futures to avoid wasting resources.