Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

halt state

Back to all declarations

AssertIsNotHaltedPool

func()

AssertIsNotHaltedPool panics if pool operations are halted.

Open
OID
0a4e2e…f047:3
AssertIsNotHaltedPool details

Inspect func

AssertIsNotHaltedPosition

func()

AssertIsNotHaltedPosition panics if position operations are halted.

Open
OID
0a4e2e…f047:5
AssertIsNotHaltedPosition details

Inspect func

AssertIsNotHaltedProtocolFee

func()

AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.

Open
OID
0a4e2e…f047:6
AssertIsNotHaltedProtocolFee details

Inspect func

AssertIsNotHaltedRouter

func()

AssertIsNotHaltedRouter panics if router operations are halted.

Open
OID
0a4e2e…f047:7
AssertIsNotHaltedRouter details

Inspect func

AssertIsNotHaltedStaker

func()

AssertIsNotHaltedStaker panics if staker operations are halted.

Open
OID
0a4e2e…f047:8
AssertIsNotHaltedStaker details

Inspect func

AssertIsNotHaltedLaunchpad

func()

AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.

Open
OID
0a4e2e…f047:9
AssertIsNotHaltedLaunchpad details

Inspect func

AssertIsNotHaltedGovernance

func()

AssertIsNotHaltedGovernance panics if governance operations are halted.

Open
OID
0a4e2e…f047:10
AssertIsNotHaltedGovernance details

Inspect func

AssertIsNotHaltedGovStaker

func()

AssertIsNotHaltedGovStaker panics if governance staker operations are halted.

Open
OID
0a4e2e…f047:11
AssertIsNotHaltedGovStaker details

Inspect func

AssertIsNotHaltedXGns

func()

AssertIsNotHaltedXGns panics if xGNS operations are halted.

Open
OID
0a4e2e…f047:12
AssertIsNotHaltedXGns details

Inspect func

AssertIsNotHaltedCommunityPool

func()

AssertIsNotHaltedCommunityPool panics if community pool operations are halted.

Open
OID
0a4e2e…f047:13
AssertIsNotHaltedCommunityPool details

Inspect func

AssertIsNotHaltedEmission

func()

AssertIsNotHaltedEmission panics if emission operations are halted.

Open
OID
0a4e2e…f047:14
AssertIsNotHaltedEmission details

Inspect func

AssertIsNotHaltedWithdraw

func()

AssertIsNotHaltedWithdraw panics if withdraw operations are halted.

Open
OID
0a4e2e…f047:15
AssertIsNotHaltedWithdraw details

Inspect func

AssertIsNotHaltedOperation

func(op halt.OpType)

AssertIsNotHaltedOperation panics if the specified operation type is halted. Panics with error details including operation type name.

Open
OID
0a4e2e…f047:16
AssertIsNotHaltedOperation details

Inspect func

HaltConfig

type

HaltConfig stores halt state for each operation type.

Value

halt.HaltConfig

newNoneConfig

func() halt.HaltConfig

newNoneConfig creates configuration with all operations enabled (no halts).

Open
OID
0a4e2e…f047:17
newNoneConfig details

Inspect func

newSafeModeConfig

func() halt.HaltConfig

newSafeModeConfig creates configuration for safe mode with only withdrawals halted.

Open
OID
0a4e2e…f047:19
newSafeModeConfig details

Inspect func

newEmergencyConfig

func() halt.HaltConfig

newEmergencyConfig creates configuration for emergency mode with most operations halted. Only governance and withdraw operations remain enabled for emergency recovery.

Open
OID
0a4e2e…f047:20
newEmergencyConfig details

Inspect func

newCompleteConfig

func() halt.HaltConfig

newCompleteConfig creates configuration with all operations halted for complete lockdown.

Open
OID
0a4e2e…f047:21
newCompleteConfig details

Inspect func

errHalted

untyped string

Value

"halted"

errInvalidOpType

untyped string

Value

"invalid operation type"

errInvalidHaltLevel

untyped string

Value

"invalid halt level"

errOpTypeNotFound

untyped string

Value

"operation type not found in config"

makeErrorWithDetails

func(message string, details string) .uverse.error

makeErrorWithDetails creates an error with additional details appended to the base error message.

Open
OID
0a4e2e…f047:22
makeErrorWithDetails details

Inspect func

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.

Open
OID
0a4e2e…f047:24
IsHalted details

Inspect func

GetHaltConfig

func() halt.HaltConfig

GetHaltConfig returns a copy of the current halt configuration.

Open
OID
0a4e2e…f047:26
GetHaltConfig details

Inspect func

GetHaltConfigJson

func() string

GetHaltConfigJson returns the halt configuration as a JSON string.

Open
OID
0a4e2e…f047:27
GetHaltConfigJson details

Inspect func

IsHaltedPool

func() bool

IsHaltedPool returns true if pool operations are halted.

Open
OID
0a4e2e…f047:28
IsHaltedPool details

Inspect func

IsHaltedPosition

func() bool

IsHaltedPosition returns true if position operations are halted.

Open
OID
0a4e2e…f047:29
IsHaltedPosition details

Inspect func

IsHaltedProtocolFee

func() bool

IsHaltedProtocolFee returns true if protocol fee operations are halted.

Open
OID
0a4e2e…f047:30
IsHaltedProtocolFee details

Inspect func

IsHaltedRouter

func() bool

IsHaltedRouter returns true if router operations are halted.

Open
OID
0a4e2e…f047:31
IsHaltedRouter details

Inspect func

IsHaltedStaker

func() bool

IsHaltedStaker returns true if staker operations are halted.

Open
OID
0a4e2e…f047:32
IsHaltedStaker details

Inspect func

IsHaltedLaunchpad

func() bool

IsHaltedLaunchpad returns true if launchpad operations are halted.

Open
OID
0a4e2e…f047:33
IsHaltedLaunchpad details

Inspect func

IsHaltedGovernance

func() bool

IsHaltedGovernance returns true if governance operations are halted.

Open
OID
0a4e2e…f047:34
IsHaltedGovernance details

Inspect func

IsHaltedGovStaker

func() bool

IsHaltedGovStaker returns true if governance staker operations are halted.

Open
OID
0a4e2e…f047:35
IsHaltedGovStaker details

Inspect func

IsHaltedXGns

func() bool

IsHaltedXGns returns true if xGNS operations are halted.

Open
OID
0a4e2e…f047:36
IsHaltedXGns details

Inspect func

IsHaltedCommunityPool

func() bool

IsHaltedCommunityPool returns true if community pool operations are halted.

Open
OID
0a4e2e…f047:37
IsHaltedCommunityPool details

Inspect func

IsHaltedEmission

func() bool

IsHaltedEmission returns true if emission operations are halted.

Open
OID
0a4e2e…f047:38
IsHaltedEmission details

Inspect func

IsHaltedWithdraw

func() bool

IsHaltedWithdraw returns true if withdraw operations are halted.

Open
OID
0a4e2e…f047:39
IsHaltedWithdraw details

Inspect func

isHaltedOperation

func(op halt.OpType) bool

isHaltedOperation returns halt status for the specified operation type. Panics if operation type is invalid.

Open
OID
0a4e2e…f047:40
isHaltedOperation details

Inspect func

haltStates

halt.HaltStateManager
Open
OID
0a4e2e…f047:54
haltStates details

Inspect ref

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.

Open
OID
0a4e2e…f047:44
SetHaltLevel details

Inspect func

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.

Open
OID
0a4e2e…f047:45
SetOperationStatus details

Inspect func

setHaltLevel

func(level halt.HaltLevel) .uverse.error

setHaltLevel applies predefined halt level configuration.

Open
OID
0a4e2e…f047:46
setHaltLevel details

Inspect func

HaltStateManager

type

Value

halt.HaltStateManager

newHaltStateManagerByConfig

func(config halt.HaltConfig) halt.HaltStateManager
Open
OID
0a4e2e…f047:47
newHaltStateManagerByConfig details

Inspect func

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.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypePosition

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeProtocolFee

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeRouter

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeStaker

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeLaunchpad

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeGovernance

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeGovStaker

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeXGns

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeCommunityPool

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeEmission

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeWithdraw

halt.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

HaltLevel

type

HaltLevel represents current system halt state.

Value

halt.HaltLevel

OpType

type

OpType represents operation types that can be controlled independently.

Value

halt.OpType
AssertIsNotHaltedPool : func() Inspect
AssertIsNotHaltedPosition : func() Inspect
AssertIsNotHaltedProtocolFee : func() Inspect
AssertIsNotHaltedRouter : func() Inspect
AssertIsNotHaltedStaker : func() Inspect
AssertIsNotHaltedLaunchpad : func() Inspect
AssertIsNotHaltedGovernance : func() Inspect
AssertIsNotHaltedGovStaker : func() Inspect
AssertIsNotHaltedXGns : func() Inspect
AssertIsNotHaltedCommunityPool : func() Inspect
AssertIsNotHaltedEmission : func() Inspect
AssertIsNotHaltedWithdraw : func() Inspect
AssertIsNotHaltedOperation : func(op halt.OpType) Inspect
HaltConfig : type =halt.HaltConfig
newNoneConfig : func() halt.HaltConfig Inspect
newSafeModeConfig : func() halt.HaltConfig Inspect
newEmergencyConfig : func() halt.HaltConfig Inspect
newCompleteConfig : func() halt.HaltConfig Inspect
errHalted : untyped string ="halted"
errInvalidOpType : untyped string ="invalid operation type"
errInvalidHaltLevel : untyped string ="invalid halt level"
errOpTypeNotFound : untyped string ="operation type not found in config"
makeErrorWithDetails : func(message string, details string) .uverse.error Inspect
IsHalted : func(opTypes []halt.OpType) (bool, .uverse.error) Inspect
GetHaltConfig : func() halt.HaltConfig Inspect
GetHaltConfigJson : func() string Inspect
IsHaltedPool : func() bool Inspect
IsHaltedPosition : func() bool Inspect
IsHaltedProtocolFee : func() bool Inspect
IsHaltedRouter : func() bool Inspect
IsHaltedStaker : func() bool Inspect
IsHaltedLaunchpad : func() bool Inspect
IsHaltedGovernance : func() bool Inspect
IsHaltedGovStaker : func() bool Inspect
IsHaltedXGns : func() bool Inspect
IsHaltedCommunityPool : func() bool Inspect
IsHaltedEmission : func() bool Inspect
IsHaltedWithdraw : func() bool Inspect
isHaltedOperation : func(op halt.OpType) bool Inspect
haltStates : halt.HaltStateManager Inspect
init.40 : func() Inspect
SetHaltLevel : func(level halt.HaltLevel) Inspect
SetOperationStatus : func(op halt.OpType, halted bool) Inspect
setHaltLevel : func(level halt.HaltLevel) .uverse.error Inspect
HaltStateManager : type =halt.HaltStateManager
newHaltStateManagerByConfig : func(config halt.HaltConfig) halt.HaltStateManager Inspect
HaltLevelNone : halt.HaltLevel =<gnolang.StringValue>
HaltLevelSafeMode : halt.HaltLevel =<gnolang.StringValue>
HaltLevelEmergency : halt.HaltLevel =<gnolang.StringValue>
HaltLevelComplete : halt.HaltLevel =<gnolang.StringValue>
OpTypePool : halt.OpType =<gnolang.StringValue>
OpTypePosition : halt.OpType =<gnolang.StringValue>
OpTypeProtocolFee : halt.OpType =<gnolang.StringValue>
OpTypeRouter : halt.OpType =<gnolang.StringValue>
OpTypeStaker : halt.OpType =<gnolang.StringValue>
OpTypeLaunchpad : halt.OpType =<gnolang.StringValue>
OpTypeGovernance : halt.OpType =<gnolang.StringValue>
OpTypeGovStaker : halt.OpType =<gnolang.StringValue>
OpTypeXGns : halt.OpType =<gnolang.StringValue>
OpTypeCommunityPool : halt.OpType =<gnolang.StringValue>
OpTypeEmission : halt.OpType =<gnolang.StringValue>
OpTypeWithdraw : halt.OpType =<gnolang.StringValue>
HaltLevel : type =halt.HaltLevel
OpType : type =halt.OpType
opTypes : map[halt.OpType]bool Inspect
OpTypes : func() []halt.OpType Inspect