Realm
gno.land/r/onbloc/ibc/union/access
Render
this realm has no Render() output
Query (read-only)
non-crossing functions · no tx, no wallet neededAccessManagerUnauthorizedAccountError(caller string, requiredRole uint64) → string
AccessManagerUnauthorizedCallError(caller string, target string, selector string) → string
CanAdminRole(role uint64, caller string) → struct{Immediate bool}
CanCall(targetPath string, selector string, caller string) → struct{Immediate bool}
CanManageTarget(caller string) → struct{Immediate bool}
GetFunctionRole(targetPath string, selector string) → uint64
GetRoleAdmin(role uint64) → uint64
GetRoleGrantDelay(role uint64) → uint32
GetTargetFunctionRole(targetPath string, selector string) → uint64
HasRole(role uint64, account string) → struct{IsMember bool}
IsAuthorized(targetPath string, selector string, caller string) → bool
IsTargetClosed(targetPath string) → bool
Call functions (state-changing)
signs a tx via AdenaGrantRole(role uint64, account string)
LabelRole(role uint64, label string)
RenounceRole(role uint64, callerConfirmation string)
RevokeRole(role uint64, account string)
SetFunctionRole(selector string, role uint64)
SetFunctionRoles(selectors []gno.land/p/onbloc/access/manager.Selector, role uint64)
SetGrantDelay(role uint64, delay uint32)
SetRoleAdmin(role uint64, admin uint64)
SetTargetClosed(closed bool)
All exported functions (22)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| GrantRole | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "account", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| RevokeRole | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "account", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| RenounceRole | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "callerConfirmation", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| LabelRole | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "label", "Type": "string", "Value": ""}] | — |
| SetRoleAdmin | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "admin", "Type": "uint64", "Value": ""}] | — |
| SetGrantDelay | [{"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": "role", "Type": "uint64", "Value": ""}, {"Name": "delay", "Type": "uint32", "Value": ""}] | — |
| SetFunctionRole | [{"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": "selector", "Type": "string", "Value": ""}, {"Name": "role", "Type": "uint64", "Value": ""}] | — |
| SetFunctionRoles | [{"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": "selectors", "Type": "[]gno.land/p/onbloc/access/manager.Selector", "Value": ""}, {"Name": "role", "Type": "uint64", "Value": ""}] | — |
| SetTargetClosed | [{"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": "closed", "Type": "bool", "Value": ""}] | — |
| AssertCanCall | [{"Name": ".arg_0", "Type": "int", "Value": ""}, {"Name": "rlm", "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": "selector", "Type": "string", "Value": ""}] | — |
| AccessManagerUnauthorizedAccountError | [{"Name": "caller", "Type": "string", "Value": ""}, {"Name": "requiredRole", "Type": "uint64", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
| AccessManagerUnauthorizedCallError | [{"Name": "caller", "Type": "string", "Value": ""}, {"Name": "target", "Type": "string", "Value": ""}, {"Name": "selector", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
| HasRole | [{"Name": "role", "Type": "uint64", "Value": ""}, {"Name": "account", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "struct{IsMember bool}", "Value": ""}] |
| GetRoleAdmin | [{"Name": "role", "Type": "uint64", "Value": ""}] | [{"Name": ".res.0", "Type": "uint64", "Value": ""}] |
| GetRoleGrantDelay | [{"Name": "role", "Type": "uint64", "Value": ""}] | [{"Name": ".res.0", "Type": "uint32", "Value": ""}] |
| GetFunctionRole | [{"Name": "targetPath", "Type": "string", "Value": ""}, {"Name": "selector", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "uint64", "Value": ""}] |
| GetTargetFunctionRole | [{"Name": "targetPath", "Type": "string", "Value": ""}, {"Name": "selector", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "uint64", "Value": ""}] |
| IsTargetClosed | [{"Name": "targetPath", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| CanCall | [{"Name": "targetPath", "Type": "string", "Value": ""}, {"Name": "selector", "Type": "string", "Value": ""}, {"Name": "caller", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "struct{Immediate bool}", "Value": ""}] |
| IsAuthorized | [{"Name": "targetPath", "Type": "string", "Value": ""}, {"Name": "selector", "Type": "string", "Value": ""}, {"Name": "caller", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| CanAdminRole | [{"Name": "role", "Type": "uint64", "Value": ""}, {"Name": "caller", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "struct{Immediate bool}", "Value": ""}] |
| CanManageTarget | [{"Name": "caller", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "struct{Immediate bool}", "Value": ""}] |
Files
Storage
{
"raw": "storage: 47733, deposit: 4773300"
}