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

assertIsOwner

func(addr .uverse.address)

assertIsOwner panics if address is not the current owner.

Open
OID
092b6f…963c:3
assertIsOwner details

Inspect func

assertIsPendingOwner

func(addr .uverse.address)

assertIsPendingOwner panics if address is not the pending owner.

Open
OID
092b6f…963c:5
assertIsPendingOwner details

Inspect func

assertIsAdmin

func(addr .uverse.address)

assertIsAdmin panics if address is not authorized for admin role.

Open
OID
092b6f…963c:6
assertIsAdmin details

Inspect func

assertIsValidRoleName

func(roleName string)

assertIsValidRoleName panics if roleName is invalid (empty or whitespace-only).

Open
OID
092b6f…963c:7
assertIsValidRoleName details

Inspect func

assertIsValidAddress

func(addr .uverse.address)
Open
OID
092b6f…963c:8
assertIsValidAddress details

Inspect func

assertNotAdminRole

func(roleName string)
Open
OID
092b6f…963c:9
assertNotAdminRole details

Inspect func

assertIsAdminOrGovernance

func(addr .uverse.address)
Open
OID
092b6f…963c:10
assertIsAdminOrGovernance details

Inspect func

ADMIN

.uverse.address

Value

<gnolang.StringValue>

DEV_OPS

.uverse.address

Value

<gnolang.StringValue>

EMISSION_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

POOL_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

POSITION_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

ROUTER_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

STAKER_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

PROTOCOL_FEE_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

COMMUNITY_POOL_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

GOV_GOVERNANCE_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

GOV_STAKER_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

GOV_XGNS_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

LAUNCHPAD_ADDR

.uverse.address

Derived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.

Value

<gnolang.StringValue>

errCallerIsNotOwner

untyped string

Value

"caller is not owner"

errCallerIsNotAdmin

untyped string

Value

"caller is not admin"

errCallerIsNotAdminOrGovernance

untyped string

Value

"caller is not admin or governance"

errCallerIsNotPendingOwner

untyped string

Value

"caller is not pending owner"

errInvalidAddress

untyped string

Value

"invalid address"

errInvalidRoleName

untyped string

Value

"invalid role name"

errAdminRoleUpdateForbidden

untyped string

Value

"admin role is managed by owner"

makeErrorWithDetails

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

makeErrorWithDetails combines an error with additional details.

Open
OID
092b6f…963c:22
makeErrorWithDetails details

Inspect func

IsOwner

func(addr .uverse.address) bool

IsOwner reports whether addr is the current owner address. Parameters: - addr: address to compare with the configured owner Returns: - owner: true when addr equals the current owner; false otherwise

Open
OID
092b6f…963c:24
IsOwner details

Inspect func

IsPendingOwner

func(addr .uverse.address) bool

IsPendingOwner reports whether addr is the address awaiting ownership acceptance. Parameters: - addr: address to compare with the configured pending owner Returns: - pending: true when addr equals the pending owner; false otherwise

Open
OID
092b6f…963c:26
IsPendingOwner details

Inspect func

GetPendingOwner

func() .uverse.address
Open
OID
092b6f…963c:28
GetPendingOwner details

Inspect func

AcceptOwnership

func()

AcceptOwnership completes a pending ownership transfer and synchronizes the admin role with the new owner. Parameters: - cur: current realm context; callers use cross(cur) when crossing into this realm Only callable by the pending owner.

Open
OID
092b6f…963c:29
AcceptOwnership details

Inspect func

TransferOwnership

func(addr .uverse.address)

TransferOwnership starts a two-step ownership transfer to addr. Parameters: - cur: current realm context; callers use cross(cur) when crossing into this realm - addr: valid address that will become pending owner and may later accept ownership Only callable by the current owner.

Open
OID
092b6f…963c:30
TransferOwnership details

Inspect func

initRbac

func()

initRbac initializes RBAC manager with default admin and role mappings.

Open
OID
092b6f…963c:34
initRbac details

Inspect func

RegisterRole

func(roleName string, roleAddress .uverse.address)

RegisterRole registers a new role in the RBAC system. Parameters: - cur: Current realm context; callers use cross(cur) when crossing into this realm. - roleName: nonempty role name to register in the RBAC manager. - roleAddress: address assigned to the new role and mirrored in access control. Only callable by admin or governance.

Open
OID
092b6f…963c:35
RegisterRole details

Inspect func

UpdateRoleAddress

func(roleName string, addr .uverse.address)

UpdateRoleAddress updates the address assigned to a role. Parameters: - cur: Current realm context; callers use cross(cur) when crossing into this realm. - roleName: existing non-admin role name whose address is changed. - addr: valid replacement address assigned to the role and access-control mapping. Only callable by admin or governance.

Open
OID
092b6f…963c:36
UpdateRoleAddress details

Inspect func

RemoveRole

func(roleName string)

RemoveRole removes a role from the RBAC system. Parameters: - cur: Current realm context; callers use cross(cur) when crossing into this realm. - roleName: existing non-admin role name to remove from RBAC and access control. Only callable by admin or governance.

Open
OID
092b6f…963c:37
RemoveRole details

Inspect func

GetRoleAddress

func(roleName string) (.uverse.address, .uverse.error)
Open
OID
092b6f…963c:38
GetRoleAddress details

Inspect func

Render

func(path string) string

Render returns ownership and assignments for the protocol's fixed system roles.

Open
OID
092b6f…963c:39
Render details

Inspect func

renderOwnershipAddress

func(addr .uverse.address) string
Open
OID
092b6f…963c:41
renderOwnershipAddress details

Inspect func

renderRoleAddress

func(role v1.SystemRole) string
Open
OID
092b6f…963c:42
renderRoleAddress details

Inspect func

_defaultRoleAddresses

map[v1.SystemRole].uverse.address

MUST BE IMMUTABLE, DO NOT MODIFY. \_defaultRoleAddresses maps system roles to their default addresses. Used during RBAC initialization to set up the protocol role structure.

Open
OID
092b6f…963c:44
_defaultRoleAddresses details

Inspect map
assertIsOwner : func(addr .uverse.address) Inspect
assertIsPendingOwner : func(addr .uverse.address) Inspect
assertIsAdmin : func(addr .uverse.address) Inspect
assertIsValidRoleName : func(roleName string) Inspect
assertIsValidAddress : func(addr .uverse.address) Inspect
assertNotAdminRole : func(roleName string) Inspect
assertIsAdminOrGovernance : func(addr .uverse.address) Inspect
ADMIN : .uverse.address =<gnolang.StringValue>
DEV_OPS : .uverse.address =<gnolang.StringValue>
EMISSION_ADDR : .uverse.address =<gnolang.StringValue>
POOL_ADDR : .uverse.address =<gnolang.StringValue>
POSITION_ADDR : .uverse.address =<gnolang.StringValue>
ROUTER_ADDR : .uverse.address =<gnolang.StringValue>
STAKER_ADDR : .uverse.address =<gnolang.StringValue>
PROTOCOL_FEE_ADDR : .uverse.address =<gnolang.StringValue>
COMMUNITY_POOL_ADDR : .uverse.address =<gnolang.StringValue>
GOV_GOVERNANCE_ADDR : .uverse.address =<gnolang.StringValue>
GOV_STAKER_ADDR : .uverse.address =<gnolang.StringValue>
GOV_XGNS_ADDR : .uverse.address =<gnolang.StringValue>
LAUNCHPAD_ADDR : .uverse.address =<gnolang.StringValue>
errCallerIsNotOwner : untyped string ="caller is not owner"
errCallerIsNotAdmin : untyped string ="caller is not admin"
errCallerIsNotAdminOrGovernance : untyped string ="caller is not admin or governance"
errCallerIsNotPendingOwner : untyped string ="caller is not pending owner"
errInvalidAddress : untyped string ="invalid address"
errInvalidRoleName : untyped string ="invalid role name"
errAdminRoleUpdateForbidden : untyped string ="admin role is managed by owner"
makeErrorWithDetails : func(message string, details string) .uverse.error Inspect
IsOwner : func(addr .uverse.address) bool Inspect
IsPendingOwner : func(addr .uverse.address) bool Inspect
GetOwner : func() .uverse.address Inspect
GetPendingOwner : func() .uverse.address Inspect
AcceptOwnership : func() Inspect
TransferOwnership : func(addr .uverse.address) Inspect
manager : *v1.RBAC Inspect
init.35 : func() Inspect
initRbac : func() Inspect
RegisterRole : func(roleName string, roleAddress .uverse.address) Inspect
UpdateRoleAddress : func(roleName string, addr .uverse.address) Inspect
RemoveRole : func(roleName string) Inspect
GetRoleAddress : func(roleName string) (.uverse.address, .uverse.error) Inspect
Render : func(path string) string Inspect
renderOwnershipAddress : func(addr .uverse.address) string Inspect
renderRoleAddress : func(role v1.SystemRole) string Inspect
_defaultRoleAddresses : map[v1.SystemRole].uverse.address Inspect