#pause #address #time #single #duration #prespecified #pause-orchestrator

cw-pause-once

a package to allow an address to pause a single time for a prespecified duration

1 unstable release

0.1.0 May 13, 2024

#16 in #pause

MIT license

7KB
99 lines

This provides a simple type, PauseOrchestrator, that allows a specified address to execute a pause a single time and pause for a prespecified duration.

This might be useful if you want to delegate the ability to pause a contract to an address, while also not allowing that address to perminantly lock the contract. For example, you may want to set the prespecified duration to slightly over one governance cycle for SDK governance, and then set a small subDAO as the pauser. This way the subDAO may pause the contract quickly, but must be reauthorized by governance to do it again.


lib.rs:

This provides a simple type, PauseOrchestrator, that allows a specified address to execute a pause a single time.

Dependencies

~4–6MB
~125K SLoC