const OperationExecute, OperationWithdraw
Operations that can be halted.
Package halt holds the halt switches shared by the GnoSwap order realms (gno.land/r/gnoswap/order/...).
Package halt holds the halt switches shared by the GnoSwap order realms (gno.land/r/gnoswap/order/...).
Each target (an order type such as "dca" or "limit") has a switch per operation. Admin or governance turns a switch on for one target, or for every target with TargetAll, and can add targets for new order realms. Order realms check IsHalted with their own target, which reports the operation halted when either switch is on, and decide which entry points each operation guards.
Operations:
The switches are independent of the GnoSwap protocol halt levels.
Operations that can be halted.
Targets registered at deployment; more are added with AddTarget.
TargetAll addresses every target at once.
AddTarget registers a target, e.g. for a new order realm. Admin or governance only.
A target is 1 to 32 characters of lowercase letters, digits, '_', or '-', and cannot be TargetAll.
GetHaltedJSON returns, as JSON, whether each operation is halted for target, including the TargetAll switches.
GetOperations returns the operations that can be halted.
GetTargets returns the registered targets, in registration order.
IsHalted reports whether operation is halted for target, by its own switch or by the TargetAll switch. It panics on an unknown target or operation.
SetHalted halts or resumes operation for target. Admin or governance only.
Parameters: