gelatodigital / gelato-network

V1 implementation of Gelato Network
https://gelato.network/
MIT License
231 stars 29 forks source link

Change expiryDate date parameter to take timestampDelta #245

Open hilmarx opened 4 years ago

hilmarx commented 4 years ago

At the moment, when we have task n who has an action which submits a new task to gelato, then we cannot really choose a valid expiry date when we encode the payload for submitTask, because we dont know when the task will actually be submitted.

Similar to the Stateful conditions, we could use a delta for that, where users input that they want the claim to be active for e,g, 24 hours. Gelato will then calculate the respective timestamp on-chain.

At the moment, to create have one task submit another which is limited to a certain timestamp, we have to write a wrapper action around gelato which enables you to do that.

gitpusha commented 4 years ago

Jo - deltas based on submission time sind gut.