AssertIsNotHaltedPool
func()AssertIsNotHaltedPool panics if pool operations are halted.
- OID
- 035b88…0cbf:3
AssertIsNotHaltedPool details
AssertIsNotHaltedPosition
func()AssertIsNotHaltedPosition panics if position operations are halted.
- OID
- 035b88…0cbf:5
AssertIsNotHaltedPosition details
AssertIsNotHaltedProtocolFee
func()AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.
- OID
- 035b88…0cbf:6
AssertIsNotHaltedProtocolFee details
AssertIsNotHaltedRouter
func()AssertIsNotHaltedRouter panics if router operations are halted.
- OID
- 035b88…0cbf:7
AssertIsNotHaltedRouter details
AssertIsNotHaltedStaker
func()AssertIsNotHaltedStaker panics if staker operations are halted.
- OID
- 035b88…0cbf:8
AssertIsNotHaltedStaker details
AssertIsNotHaltedLaunchpad
func()AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.
- OID
- 035b88…0cbf:9
AssertIsNotHaltedLaunchpad details
AssertIsNotHaltedGovernance
func()AssertIsNotHaltedGovernance panics if governance operations are halted.
- OID
- 035b88…0cbf:10
AssertIsNotHaltedGovernance details
AssertIsNotHaltedGovStaker
func()AssertIsNotHaltedGovStaker panics if governance staker operations are halted.
- OID
- 035b88…0cbf:11
AssertIsNotHaltedGovStaker details
AssertIsNotHaltedXGns
func()AssertIsNotHaltedXGns panics if xGNS operations are halted.
- OID
- 035b88…0cbf:12
AssertIsNotHaltedXGns details
AssertIsNotHaltedCommunityPool
func()AssertIsNotHaltedCommunityPool panics if community pool operations are halted.
- OID
- 035b88…0cbf:13
AssertIsNotHaltedCommunityPool details
AssertIsNotHaltedEmission
func()AssertIsNotHaltedEmission panics if emission operations are halted.
- OID
- 035b88…0cbf:14
AssertIsNotHaltedEmission details
AssertIsNotHaltedWithdraw
func()AssertIsNotHaltedWithdraw panics if withdraw operations are halted.
- OID
- 035b88…0cbf:15
AssertIsNotHaltedWithdraw details
AssertIsNotHaltedOperation
func(op v1.OpType)AssertIsNotHaltedOperation panics if the specified operation type is halted. Panics with error details including operation type name. Parameters: - op: valid operation type whose halt status must permit execution; invalid operation types panic with an invalid-operation error.
- OID
- 035b88…0cbf:16
AssertIsNotHaltedOperation details
HaltConfig
typeHaltConfig stores halt state for each operation type.
Value
v1.HaltConfig
newNoneConfig
func() v1.HaltConfignewNoneConfig creates configuration with all operations enabled (no halts).
- OID
- 035b88…0cbf:17
newNoneConfig details
newSafeModeConfig
func() v1.HaltConfignewSafeModeConfig creates configuration for safe mode with only withdrawals halted.
- OID
- 035b88…0cbf:19
newSafeModeConfig details
newEmergencyConfig
func() v1.HaltConfignewEmergencyConfig creates configuration for emergency mode with most operations halted. Only governance and withdraw operations remain enabled for emergency recovery.
- OID
- 035b88…0cbf:20
newEmergencyConfig details
newCompleteConfig
func() v1.HaltConfignewCompleteConfig creates configuration with all operations halted for complete lockdown.
- OID
- 035b88…0cbf: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
- 035b88…0cbf:22
makeErrorWithDetails details
IsHalted
func(opTypes []v1.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. Parameters: - op: operation type whose halt flag is queried. Returns: - halted: configured halt flag; false when op is absent from the configuration.
- OID
- 035b88…0cbf:24
IsHalted details
GetHaltConfig
func() v1.HaltConfigGetHaltConfig returns a copy of the current halt configuration. Returns: - config: copy of the current halt status keyed by operation type
- OID
- 035b88…0cbf:26
GetHaltConfig details
GetHaltConfigJson
func() stringGetHaltConfigJson returns the halt configuration as a JSON string. Returns: - json: JSON object containing each operation type's halt status
- OID
- 035b88…0cbf:27
GetHaltConfigJson details
IsHaltedPool
func() boolIsHaltedPool returns true if pool operations are halted. Returns: - halted: true when pool operations are halted; false otherwise
- OID
- 035b88…0cbf:28
IsHaltedPool details
IsHaltedPosition
func() boolIsHaltedPosition returns true if position operations are halted. Returns: - halted: true when position operations are halted; false otherwise
- OID
- 035b88…0cbf:29
IsHaltedPosition details
IsHaltedProtocolFee
func() boolIsHaltedProtocolFee returns true if protocol fee operations are halted. Returns: - halted: true when protocol-fee operations are halted; false otherwise
- OID
- 035b88…0cbf:30
IsHaltedProtocolFee details
IsHaltedRouter
func() boolIsHaltedRouter returns true if router operations are halted. Returns: - halted: true when router operations are halted; false otherwise
- OID
- 035b88…0cbf:31
IsHaltedRouter details
IsHaltedStaker
func() boolIsHaltedStaker returns true if staker operations are halted. Returns: - halted: true when staker operations are halted; false otherwise
- OID
- 035b88…0cbf:32
IsHaltedStaker details
IsHaltedLaunchpad
func() boolIsHaltedLaunchpad returns true if launchpad operations are halted. Returns: - halted: true when launchpad operations are halted; false otherwise
- OID
- 035b88…0cbf:33
IsHaltedLaunchpad details
IsHaltedGovernance
func() boolIsHaltedGovernance returns true if governance operations are halted. Returns: - halted: true when governance operations are halted; false otherwise
- OID
- 035b88…0cbf:34
IsHaltedGovernance details
IsHaltedGovStaker
func() boolIsHaltedGovStaker returns true if governance staker operations are halted. Returns: - halted: true when governance-staker operations are halted; false otherwise
- OID
- 035b88…0cbf:35
IsHaltedGovStaker details
IsHaltedXGns
func() boolIsHaltedXGns returns true if xGNS operations are halted. Returns: - halted: true when xGNS operations are halted; false otherwise
- OID
- 035b88…0cbf:36
IsHaltedXGns details
IsHaltedCommunityPool
func() boolIsHaltedCommunityPool returns true if community pool operations are halted. Returns: - halted: true when community-pool operations are halted; false otherwise
- OID
- 035b88…0cbf:37
IsHaltedCommunityPool details
IsHaltedEmission
func() boolIsHaltedEmission returns true if emission operations are halted. Returns: - halted: true when emission operations are halted; false otherwise
- OID
- 035b88…0cbf:38
IsHaltedEmission details
IsHaltedWithdraw
func() boolIsHaltedWithdraw returns true if withdraw operations are halted. Returns: - halted: true when withdrawal operations are halted; false otherwise
- OID
- 035b88…0cbf:39
IsHaltedWithdraw details
isHaltedOperation
func(op v1.OpType) boolisHaltedOperation returns halt status for the specified operation type. Panics if operation type is invalid.
- OID
- 035b88…0cbf:40
isHaltedOperation details
haltStates
v1.HaltStateManager- OID
- 035b88…0cbf:56
haltStates details
init.40
func()- OID
- 035b88…0cbf:42
init.40 details
SetHaltLevel
func(level v1.HaltLevel)SetHaltLevel sets the global halt level. Parameters: - cur: Current realm context; callers use cross(cur) when crossing into this realm. - level: halt level to apply (None, SafeMode, Emergency, or Complete). Only callable by admin or governance.
- OID
- 035b88…0cbf:44
SetHaltLevel details
SetOperationStatus
func(op v1.OpType, halted bool)SetOperationStatus sets the halt status for a specific operation. Parameters: - cur: Current realm context; callers use cross(cur) when crossing into this realm. - op: operation type whose halt status is changed. - halted: true to block the operation, false to allow it. Only callable by admin or governance.
- OID
- 035b88…0cbf:45
SetOperationStatus details
setHaltLevel
func(level v1.HaltLevel) .uverse.errorsetHaltLevel applies predefined halt level configuration.
- OID
- 035b88…0cbf:46
setHaltLevel details
HaltStateManager
typeValue
v1.HaltStateManager
newHaltStateManagerByConfig
func(config v1.HaltConfig) v1.HaltStateManager- OID
- 035b88…0cbf:47
newHaltStateManagerByConfig details
Render
func(path string) stringRender returns the current halt status for every operation.
- OID
- 035b88…0cbf:49
Render details
HaltLevelNone
v1.HaltLevel// All operations enabled.
Value
<gnolang.StringValue>
HaltLevelSafeMode
v1.HaltLevel// All operations enabled except withdrawals.
Value
<gnolang.StringValue>
HaltLevelEmergency
v1.HaltLevel// Only governance and withdrawal operations enabled.
Value
<gnolang.StringValue>
HaltLevelComplete
v1.HaltLevel// All operations disabled.
Value
<gnolang.StringValue>
OpTypePool
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypePosition
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeProtocolFee
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeRouter
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeStaker
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeLaunchpad
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeGovernance
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeGovStaker
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeXGns
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeCommunityPool
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeEmission
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
OpTypeWithdraw
v1.OpTypeOperation types representing individual contracts.
Value
<gnolang.StringValue>
HaltLevel
typeHaltLevel represents current system halt state.
Value
v1.HaltLevel
OpType
typeOpType represents operation types that can be controlled independently.
Value
v1.OpType
opTypes
map[v1.OpType]bool- OID
- 035b88…0cbf:52
opTypes details
OpTypes
func() []v1.OpTypeOpTypes returns all operation types currently supported by the halt configuration. Returns: - operationTypes: slice containing each defined operation type in map iteration order
- OID
- 035b88…0cbf:53