safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
243 stars 179 forks source link

[4337] Expose `validUntil` and `validAfter` options #734

Closed dasanra closed 3 months ago

dasanra commented 3 months ago

Context / issue

4337 transactions allow to specify a time period where sending the transaction will be valid. It either will be waiting until validAfter flag is reached or trying to be sent before the validUntil flag is reached. Currently is not possible to specify these flags and the transaction is sent inmediately without any expiration

Proposed solution

Allow to specify both props, so the developer can decide if the transaction will be valid after a certain moment or if they want the transaction to expire if it's not confirmed before the end flag.