AssertIsNotHaltedPool
func()AssertIsNotHaltedPool panics if pool operations are halted.
- OID
- 0a4e2e…f047:3
AssertIsNotHaltedPool details
AssertIsNotHaltedPosition
func()AssertIsNotHaltedPosition panics if position operations are halted.
- OID
- 0a4e2e…f047:5
AssertIsNotHaltedPosition details
AssertIsNotHaltedProtocolFee
func()AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.
- OID
- 0a4e2e…f047:6
AssertIsNotHaltedProtocolFee details
AssertIsNotHaltedRouter
func()AssertIsNotHaltedRouter panics if router operations are halted.
- OID
- 0a4e2e…f047:7
AssertIsNotHaltedRouter details
AssertIsNotHaltedStaker
func()AssertIsNotHaltedStaker panics if staker operations are halted.
- OID
- 0a4e2e…f047:8
AssertIsNotHaltedStaker details
AssertIsNotHaltedLaunchpad
func()AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.
- OID
- 0a4e2e…f047:9
AssertIsNotHaltedLaunchpad details
AssertIsNotHaltedGovernance
func()AssertIsNotHaltedGovernance panics if governance operations are halted.
- OID
- 0a4e2e…f047:10
AssertIsNotHaltedGovernance details
AssertIsNotHaltedGovStaker
func()AssertIsNotHaltedGovStaker panics if governance staker operations are halted.
- OID
- 0a4e2e…f047:11
AssertIsNotHaltedGovStaker details
AssertIsNotHaltedXGns
func()AssertIsNotHaltedXGns panics if xGNS operations are halted.
- OID
- 0a4e2e…f047:12
AssertIsNotHaltedXGns details
AssertIsNotHaltedCommunityPool
func()AssertIsNotHaltedCommunityPool panics if community pool operations are halted.
- OID
- 0a4e2e…f047:13
AssertIsNotHaltedCommunityPool details
AssertIsNotHaltedEmission
func()AssertIsNotHaltedEmission panics if emission operations are halted.
- OID
- 0a4e2e…f047:14
AssertIsNotHaltedEmission details
AssertIsNotHaltedWithdraw
func()AssertIsNotHaltedWithdraw panics if withdraw operations are halted.
- OID
- 0a4e2e…f047:15
AssertIsNotHaltedWithdraw details
AssertIsNotHaltedOperation
func(op halt.OpType)AssertIsNotHaltedOperation panics if the specified operation type is halted. Panics with error details including operation type name.
- OID
- 0a4e2e…f047:16
AssertIsNotHaltedOperation details
HaltConfig
typeHaltConfig stores halt state for each operation type.
Value
halt.HaltConfig
newNoneConfig
func() halt.HaltConfignewNoneConfig creates configuration with all operations enabled (no halts).
- OID
- 0a4e2e…f047:17
newNoneConfig details
newSafeModeConfig
func() halt.HaltConfignewSafeModeConfig creates configuration for safe mode with only withdrawals halted.
- OID
- 0a4e2e…f047:19
newSafeModeConfig details
newEmergencyConfig
func() halt.HaltConfignewEmergencyConfig creates configuration for emergency mode with most operations halted. Only governance and withdraw operations remain enabled for emergency recovery.
- OID
- 0a4e2e…f047:20
newEmergencyConfig details
newCompleteConfig
func() halt.HaltConfignewCompleteConfig creates configuration with all operations halted for complete lockdown.
- OID
- 0a4e2e…f047:21
newCompleteConfig details
errHalted
untyped stringValue
"halted"
errInvalidOpType
untyped stringValue
"invalid operation type"
errInvalidHaltLevel
untyped stringValue
"invalid halt level"
errOpTypeNotFound
untyped stringValue
"operation type not found in config"
makeErrorWithDetails
func(message string, details string) .uverse.errormakeErrorWithDetails creates an error with additional details appended to the base error message.
- OID
- 0a4e2e…f047:22
makeErrorWithDetails details
IsHalted
func(opTypes []halt.OpType) (bool, .uverse.error)IsHalted returns true if the specified operation is halted, false otherwise. Returns false if operation type is not found in configuration.
- OID
- 0a4e2e…f047:24
IsHalted details
GetHaltConfig
func() halt.HaltConfigGetHaltConfig returns a copy of the current halt configuration.
- OID
- 0a4e2e…f047:26
GetHaltConfig details
GetHaltConfigJson
func() stringGetHaltConfigJson returns the halt configuration as a JSON string.
- OID
- 0a4e2e…f047:27
GetHaltConfigJson details
IsHaltedPool
func() boolIsHaltedPool returns true if pool operations are halted.
- OID
- 0a4e2e…f047:28
IsHaltedPool details
IsHaltedPosition
func() boolIsHaltedPosition returns true if position operations are halted.
- OID
- 0a4e2e…f047:29
IsHaltedPosition details
IsHaltedProtocolFee
func() boolIsHaltedProtocolFee returns true if protocol fee operations are halted.
- OID
- 0a4e2e…f047:30
IsHaltedProtocolFee details
IsHaltedRouter
func() boolIsHaltedRouter returns true if router operations are halted.
- OID
- 0a4e2e…f047:31
IsHaltedRouter details
IsHaltedStaker
func() boolIsHaltedStaker returns true if staker operations are halted.
- OID
- 0a4e2e…f047:32
IsHaltedStaker details
IsHaltedLaunchpad
func() boolIsHaltedLaunchpad returns true if launchpad operations are halted.
- OID
- 0a4e2e…f047:33
IsHaltedLaunchpad details
IsHaltedGovernance
func() boolIsHaltedGovernance returns true if governance operations are halted.
- OID
- 0a4e2e…f047:34
IsHaltedGovernance details
IsHaltedGovStaker
func() boolIsHaltedGovStaker returns true if governance staker operations are halted.
- OID
- 0a4e2e…f047:35
IsHaltedGovStaker details
IsHaltedXGns
func() boolIsHaltedXGns returns true if xGNS operations are halted.
- OID
- 0a4e2e…f047:36
IsHaltedXGns details
IsHaltedCommunityPool
func() boolIsHaltedCommunityPool returns true if community pool operations are halted.
- OID
- 0a4e2e…f047:37
IsHaltedCommunityPool details
IsHaltedEmission
func() boolIsHaltedEmission returns true if emission operations are halted.
- OID
- 0a4e2e…f047:38
IsHaltedEmission details
IsHaltedWithdraw
func() boolIsHaltedWithdraw returns true if withdraw operations are halted.
- OID
- 0a4e2e…f047:39
IsHaltedWithdraw details
isHaltedOperation
func(op halt.OpType) boolisHaltedOperation returns halt status for the specified operation type. Panics if operation type is invalid.
- OID
- 0a4e2e…f047:40
isHaltedOperation details
haltStates
halt.HaltStateManager- OID
- 0a4e2e…f047:54
haltStates details
init.40
func()- OID
- 0a4e2e…f047:42
init.40 details
SetHaltLevel
func(level halt.HaltLevel)SetHaltLevel sets the global halt level. Parameters: - level: halt level to apply (None, SafeMode, Emergency, Complete) Only callable by admin or governance.
- OID
- 0a4e2e…f047:44
SetHaltLevel details
SetOperationStatus
func(op halt.OpType, halted bool)SetOperationStatus sets halt status for a specific operation. Parameters: - op: operation type - halted: true to halt, false to resume Only callable by admin or governance.
- OID
- 0a4e2e…f047:45
SetOperationStatus details
setHaltLevel
func(level halt.HaltLevel) .uverse.errorsetHaltLevel applies predefined halt level configuration.
- OID
- 0a4e2e…f047:46
setHaltLevel details
HaltStateManager
typeValue
halt.HaltStateManager
newHaltStateManagerByConfig
func(config halt.HaltConfig) halt.HaltStateManager- OID
- 0a4e2e…f047:47
newHaltStateManagerByConfig details
HaltLevelNone
halt.HaltLevel// All operations enabled.
Value
<gnolang.StringValue>
HaltLevelSafeMode
halt.HaltLevel// All operations enabled except withdrawals.
Value
<gnolang.StringValue>
HaltLevelEmergency
halt.HaltLevel// Only governance and withdrawal operations enabled.
Value
<gnolang.StringValue>
HaltLevelComplete
halt.HaltLevel// All operations disabled.
Value
<gnolang.StringValue>
OpTypePool
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypePosition
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeProtocolFee
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeRouter
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeStaker
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeLaunchpad
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeGovernance
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeGovStaker
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeXGns
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeCommunityPool
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeEmission
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeWithdraw
halt.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
HaltLevel
typeHaltLevel represents current system halt state.
Value
halt.HaltLevel
OpType
typeOpType represents operation types that can be controlled independently.
Value
halt.OpType
opTypes
map[halt.OpType]bool- OID
- 0a4e2e…f047:50
opTypes details
OpTypes
func() []halt.OpType- OID
- 0a4e2e…f047:51