doc.gno
0.72 Kb · 16 lines
1// Package halt holds the halt switches shared by the GnoSwap order realms
2// (gno.land/r/gnoswap/order/...).
3//
4// Each target (an order type such as "dca" or "limit") has a switch per
5// operation. Admin or governance turns a switch on for one target, or for
6// every target with TargetAll, and can add targets for new order realms.
7// Order realms check IsHalted with their own target, which reports the
8// operation halted when either switch is on, and decide which entry points
9// each operation guards.
10//
11// Operations:
12// - OperationExecute: creating or executing orders
13// - OperationWithdraw: executing orders, paying out or refunding funds
14//
15// The switches are independent of the GnoSwap protocol halt levels.
16package halt