Realm

gno.land/r/gnoswap/rbac

Render

this realm has no Render() output

Query (read-only)

non-crossing functions · no tx, no wallet needed
GetOwner() → string
GetPendingOwner() → string
GetRoleAddress(roleName string) → string, interface {Error func() string}
IsOwner(addr string) → bool
IsPendingOwner(addr string) → bool

Call functions (state-changing)

signs a tx via Adena
AcceptOwnership()
RegisterRole(roleName string, roleAddress string)
RemoveRole(roleName string)
TransferOwnership(addr string)
UpdateRoleAddress(roleName string, addr string)

All exported functions (10)

show raw signatures
NameParamsReturns
IsOwner [{"Name": "addr", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
IsPendingOwner [{"Name": "addr", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetOwner [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetPendingOwner [{"Name": ".res.0", "Type": "string", "Value": ""}]
AcceptOwnership [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}]
TransferOwnership [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "addr", "Type": "string", "Value": ""}]
RegisterRole [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "roleName", "Type": "string", "Value": ""}, {"Name": "roleAddress", "Type": "string", "Value": ""}]
UpdateRoleAddress [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "roleName", "Type": "string", "Value": ""}, {"Name": "addr", "Type": "string", "Value": ""}]
RemoveRole [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "roleName", "Type": "string", "Value": ""}]
GetRoleAddress [{"Name": "roleName", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]

Files

Storage

{
  "raw": "storage: 43696, deposit: 4369600"
}