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

v1 state

Back to all declarations

AssertIsNotHaltedPool

func()

AssertIsNotHaltedPool panics if pool operations are halted.

Open
OID
035b88…0cbf:3
AssertIsNotHaltedPool details

Inspect func

AssertIsNotHaltedPosition

func()

AssertIsNotHaltedPosition panics if position operations are halted.

Open
OID
035b88…0cbf:5
AssertIsNotHaltedPosition details

Inspect func

AssertIsNotHaltedProtocolFee

func()

AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.

Open
OID
035b88…0cbf:6
AssertIsNotHaltedProtocolFee details

Inspect func

AssertIsNotHaltedRouter

func()

AssertIsNotHaltedRouter panics if router operations are halted.

Open
OID
035b88…0cbf:7
AssertIsNotHaltedRouter details

Inspect func

AssertIsNotHaltedStaker

func()

AssertIsNotHaltedStaker panics if staker operations are halted.

Open
OID
035b88…0cbf:8
AssertIsNotHaltedStaker details

Inspect func

AssertIsNotHaltedLaunchpad

func()

AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.

Open
OID
035b88…0cbf:9
AssertIsNotHaltedLaunchpad details

Inspect func

AssertIsNotHaltedGovernance

func()

AssertIsNotHaltedGovernance panics if governance operations are halted.

Open
OID
035b88…0cbf:10
AssertIsNotHaltedGovernance details

Inspect func

AssertIsNotHaltedGovStaker

func()

AssertIsNotHaltedGovStaker panics if governance staker operations are halted.

Open
OID
035b88…0cbf:11
AssertIsNotHaltedGovStaker details

Inspect func

AssertIsNotHaltedXGns

func()

AssertIsNotHaltedXGns panics if xGNS operations are halted.

Open
OID
035b88…0cbf:12
AssertIsNotHaltedXGns details

Inspect func

AssertIsNotHaltedCommunityPool

func()

AssertIsNotHaltedCommunityPool panics if community pool operations are halted.

Open
OID
035b88…0cbf:13
AssertIsNotHaltedCommunityPool details

Inspect func

AssertIsNotHaltedEmission

func()

AssertIsNotHaltedEmission panics if emission operations are halted.

Open
OID
035b88…0cbf:14
AssertIsNotHaltedEmission details

Inspect func

AssertIsNotHaltedWithdraw

func()

AssertIsNotHaltedWithdraw panics if withdraw operations are halted.

Open
OID
035b88…0cbf:15
AssertIsNotHaltedWithdraw details

Inspect func

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.

Open
OID
035b88…0cbf:16
AssertIsNotHaltedOperation details

Inspect func

HaltConfig

type

HaltConfig stores halt state for each operation type.

Value

v1.HaltConfig

newNoneConfig

func() v1.HaltConfig

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

Open
OID
035b88…0cbf:17
newNoneConfig details

Inspect func

newSafeModeConfig

func() v1.HaltConfig

newSafeModeConfig creates configuration for safe mode with only withdrawals halted.

Open
OID
035b88…0cbf:19
newSafeModeConfig details

Inspect func

newEmergencyConfig

func() v1.HaltConfig

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

Open
OID
035b88…0cbf:20
newEmergencyConfig details

Inspect func

newCompleteConfig

func() v1.HaltConfig

newCompleteConfig creates configuration with all operations halted for complete lockdown.

Open
OID
035b88…0cbf: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
035b88…0cbf:22
makeErrorWithDetails details

Inspect func

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.

Open
OID
035b88…0cbf:24
IsHalted details

Inspect func

GetHaltConfig

func() v1.HaltConfig

GetHaltConfig returns a copy of the current halt configuration. Returns: - config: copy of the current halt status keyed by operation type

Open
OID
035b88…0cbf:26
GetHaltConfig details

Inspect func

GetHaltConfigJson

func() string

GetHaltConfigJson returns the halt configuration as a JSON string. Returns: - json: JSON object containing each operation type's halt status

Open
OID
035b88…0cbf:27
GetHaltConfigJson details

Inspect func

IsHaltedPool

func() bool

IsHaltedPool returns true if pool operations are halted. Returns: - halted: true when pool operations are halted; false otherwise

Open
OID
035b88…0cbf:28
IsHaltedPool details

Inspect func

IsHaltedPosition

func() bool

IsHaltedPosition returns true if position operations are halted. Returns: - halted: true when position operations are halted; false otherwise

Open
OID
035b88…0cbf:29
IsHaltedPosition details

Inspect func

IsHaltedProtocolFee

func() bool

IsHaltedProtocolFee returns true if protocol fee operations are halted. Returns: - halted: true when protocol-fee operations are halted; false otherwise

Open
OID
035b88…0cbf:30
IsHaltedProtocolFee details

Inspect func

IsHaltedRouter

func() bool

IsHaltedRouter returns true if router operations are halted. Returns: - halted: true when router operations are halted; false otherwise

Open
OID
035b88…0cbf:31
IsHaltedRouter details

Inspect func

IsHaltedStaker

func() bool

IsHaltedStaker returns true if staker operations are halted. Returns: - halted: true when staker operations are halted; false otherwise

Open
OID
035b88…0cbf:32
IsHaltedStaker details

Inspect func

IsHaltedLaunchpad

func() bool

IsHaltedLaunchpad returns true if launchpad operations are halted. Returns: - halted: true when launchpad operations are halted; false otherwise

Open
OID
035b88…0cbf:33
IsHaltedLaunchpad details

Inspect func

IsHaltedGovernance

func() bool

IsHaltedGovernance returns true if governance operations are halted. Returns: - halted: true when governance operations are halted; false otherwise

Open
OID
035b88…0cbf:34
IsHaltedGovernance details

Inspect func

IsHaltedGovStaker

func() bool

IsHaltedGovStaker returns true if governance staker operations are halted. Returns: - halted: true when governance-staker operations are halted; false otherwise

Open
OID
035b88…0cbf:35
IsHaltedGovStaker details

Inspect func

IsHaltedXGns

func() bool

IsHaltedXGns returns true if xGNS operations are halted. Returns: - halted: true when xGNS operations are halted; false otherwise

Open
OID
035b88…0cbf:36
IsHaltedXGns details

Inspect func

IsHaltedCommunityPool

func() bool

IsHaltedCommunityPool returns true if community pool operations are halted. Returns: - halted: true when community-pool operations are halted; false otherwise

Open
OID
035b88…0cbf:37
IsHaltedCommunityPool details

Inspect func

IsHaltedEmission

func() bool

IsHaltedEmission returns true if emission operations are halted. Returns: - halted: true when emission operations are halted; false otherwise

Open
OID
035b88…0cbf:38
IsHaltedEmission details

Inspect func

IsHaltedWithdraw

func() bool

IsHaltedWithdraw returns true if withdraw operations are halted. Returns: - halted: true when withdrawal operations are halted; false otherwise

Open
OID
035b88…0cbf:39
IsHaltedWithdraw details

Inspect func

isHaltedOperation

func(op v1.OpType) bool

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

Open
OID
035b88…0cbf:40
isHaltedOperation details

Inspect func

haltStates

v1.HaltStateManager
Open
OID
035b88…0cbf:56
haltStates details

Inspect ref

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.

Open
OID
035b88…0cbf:44
SetHaltLevel details

Inspect func

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.

Open
OID
035b88…0cbf:45
SetOperationStatus details

Inspect func

setHaltLevel

func(level v1.HaltLevel) .uverse.error

setHaltLevel applies predefined halt level configuration.

Open
OID
035b88…0cbf:46
setHaltLevel details

Inspect func

HaltStateManager

type

Value

v1.HaltStateManager

newHaltStateManagerByConfig

func(config v1.HaltConfig) v1.HaltStateManager
Open
OID
035b88…0cbf:47
newHaltStateManagerByConfig details

Inspect func

Render

func(path string) string

Render returns the current halt status for every operation.

Open
OID
035b88…0cbf:49
Render details

Inspect func

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

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypePosition

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeProtocolFee

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeRouter

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeStaker

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeLaunchpad

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeGovernance

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeGovStaker

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeXGns

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeCommunityPool

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeEmission

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

OpTypeWithdraw

v1.OpType

Operation types representing individual contracts.

Value

<gnolang.StringValue>

HaltLevel

type

HaltLevel represents current system halt state.

Value

v1.HaltLevel

OpType

type

OpType represents operation types that can be controlled independently.

Value

v1.OpType

OpTypes

func() []v1.OpType

OpTypes returns all operation types currently supported by the halt configuration. Returns: - operationTypes: slice containing each defined operation type in map iteration order

Open
OID
035b88…0cbf:53
OpTypes details

Inspect func
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 v1.OpType) Inspect
HaltConfig : type =v1.HaltConfig
newNoneConfig : func() v1.HaltConfig Inspect
newSafeModeConfig : func() v1.HaltConfig Inspect
newEmergencyConfig : func() v1.HaltConfig Inspect
newCompleteConfig : func() v1.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 []v1.OpType) (bool, .uverse.error) Inspect
GetHaltConfig : func() v1.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 v1.OpType) bool Inspect
haltStates : v1.HaltStateManager Inspect
init.40 : func() Inspect
SetHaltLevel : func(level v1.HaltLevel) Inspect
SetOperationStatus : func(op v1.OpType, halted bool) Inspect
setHaltLevel : func(level v1.HaltLevel) .uverse.error Inspect
HaltStateManager : type =v1.HaltStateManager
newHaltStateManagerByConfig : func(config v1.HaltConfig) v1.HaltStateManager Inspect
Render : func(path string) string Inspect
HaltLevelNone : v1.HaltLevel =<gnolang.StringValue>
HaltLevelSafeMode : v1.HaltLevel =<gnolang.StringValue>
HaltLevelEmergency : v1.HaltLevel =<gnolang.StringValue>
HaltLevelComplete : v1.HaltLevel =<gnolang.StringValue>
OpTypePool : v1.OpType =<gnolang.StringValue>
OpTypePosition : v1.OpType =<gnolang.StringValue>
OpTypeProtocolFee : v1.OpType =<gnolang.StringValue>
OpTypeRouter : v1.OpType =<gnolang.StringValue>
OpTypeStaker : v1.OpType =<gnolang.StringValue>
OpTypeLaunchpad : v1.OpType =<gnolang.StringValue>
OpTypeGovernance : v1.OpType =<gnolang.StringValue>
OpTypeGovStaker : v1.OpType =<gnolang.StringValue>
OpTypeXGns : v1.OpType =<gnolang.StringValue>
OpTypeCommunityPool : v1.OpType =<gnolang.StringValue>
OpTypeEmission : v1.OpType =<gnolang.StringValue>
OpTypeWithdraw : v1.OpType =<gnolang.StringValue>
HaltLevel : type =v1.HaltLevel
OpType : type =v1.OpType
opTypes : map[v1.OpType]bool Inspect
OpTypes : func() []v1.OpType Inspect