assertIsOwner
func(addr .uverse.address)assertIsOwner panics if address is not the current owner.
- OID
- 092b6f…963c:3
assertIsOwner details
assertIsPendingOwner
func(addr .uverse.address)assertIsPendingOwner panics if address is not the pending owner.
- OID
- 092b6f…963c:5
assertIsPendingOwner details
assertIsAdmin
func(addr .uverse.address)assertIsAdmin panics if address is not authorized for admin role.
- OID
- 092b6f…963c:6
assertIsAdmin details
assertIsValidRoleName
func(roleName string)assertIsValidRoleName panics if roleName is invalid (empty or whitespace-only).
- OID
- 092b6f…963c:7
assertIsValidRoleName details
assertIsValidAddress
func(addr .uverse.address)- OID
- 092b6f…963c:8
assertIsValidAddress details
assertNotAdminRole
func(roleName string)- OID
- 092b6f…963c:9
assertNotAdminRole details
assertIsAdminOrGovernance
func(addr .uverse.address)- OID
- 092b6f…963c:10
assertIsAdminOrGovernance details
ADMIN
.uverse.addressValue
<gnolang.StringValue>
DEV_OPS
.uverse.addressValue
<gnolang.StringValue>
EMISSION_ADDR
.uverse.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
POOL_ADDR
.uverse.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
POSITION_ADDR
.uverse.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
ROUTER_ADDR
.uverse.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
STAKER_ADDR
.uverse.addressDerived 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.addressDerived 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.addressDerived 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.addressDerived 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.addressDerived 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.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
LAUNCHPAD_ADDR
.uverse.addressDerived package addresses — computed deterministically from deployment paths so they stay correct if packages are renamed or re-deployed.
Value
<gnolang.StringValue>
errCallerIsNotOwner
untyped stringValue
"caller is not owner"
errCallerIsNotAdmin
untyped stringValue
"caller is not admin"
errCallerIsNotAdminOrGovernance
untyped stringValue
"caller is not admin or governance"
errCallerIsNotPendingOwner
untyped stringValue
"caller is not pending owner"
errInvalidAddress
untyped stringValue
"invalid address"
errInvalidRoleName
untyped stringValue
"invalid role name"
errAdminRoleUpdateForbidden
untyped stringValue
"admin role is managed by owner"
makeErrorWithDetails
func(message string, details string) .uverse.errormakeErrorWithDetails combines an error with additional details.
- OID
- 092b6f…963c:22
makeErrorWithDetails details
IsOwner
func(addr .uverse.address) boolIsOwner 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
- OID
- 092b6f…963c:24
IsOwner details
IsPendingOwner
func(addr .uverse.address) boolIsPendingOwner 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
- OID
- 092b6f…963c:26
IsPendingOwner details
GetOwner
func() .uverse.address- OID
- 092b6f…963c:27
GetOwner details
GetPendingOwner
func() .uverse.address- OID
- 092b6f…963c:28
GetPendingOwner details
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.
- OID
- 092b6f…963c:29
AcceptOwnership details
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.
- OID
- 092b6f…963c:30
TransferOwnership details
manager
*v1.RBAC- OID
- 092b6f…963c:47
manager details
init.35
func()- OID
- 092b6f…963c:32
init.35 details
initRbac
func()initRbac initializes RBAC manager with default admin and role mappings.
- OID
- 092b6f…963c:34
initRbac details
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.
- OID
- 092b6f…963c:35
RegisterRole details
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.
- OID
- 092b6f…963c:36
UpdateRoleAddress details
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.
- OID
- 092b6f…963c:37
RemoveRole details
GetRoleAddress
func(roleName string) (.uverse.address, .uverse.error)- OID
- 092b6f…963c:38
GetRoleAddress details
Render
func(path string) stringRender returns ownership and assignments for the protocol's fixed system roles.
- OID
- 092b6f…963c:39
Render details
renderOwnershipAddress
func(addr .uverse.address) string- OID
- 092b6f…963c:41
renderOwnershipAddress details
renderRoleAddress
func(role v1.SystemRole) string- OID
- 092b6f…963c:42
renderRoleAddress details
_defaultRoleAddresses
map[v1.SystemRole].uverse.addressMUST BE IMMUTABLE, DO NOT MODIFY. \_defaultRoleAddresses maps system roles to their default addresses. Used during RBAC initialization to set up the protocol role structure.
- OID
- 092b6f…963c:44