access source realm
3
const ErrAccessManagerUnauthorizedAccount, ErrAccessManagerUnauthorizedCall, ErrSpoofedRealm
const RelayerRole
RelayerRole mirrors Union deployer's RELAYER role id. Reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/deployer/src/main.rs#L65
22
func AccessManagerUnauthorizedAccountError
Action1func AccessManagerUnauthorizedAccountError(caller address, requiredRole manager.RoleId) stringAccessManagerUnauthorizedAccountError formats an account-role authorization error. Union references: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/lib/access-manager-types/src/manager/error.rs#L26-L30 https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L832-L840
func AccessManagerUnauthorizedCallError
Action1func AccessManagerUnauthorizedCallError(caller address, target string, selector manager.Selector) stringAccessManagerUnauthorizedCallError formats a target-selector authorization error. Union references: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/lib/access-manager-types/src/manager/error.rs#L32-L37 https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L526-L534
func AssertCanCall
ActionAssertCanCall panics unless caller can call selector on the calling realm's target path. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-managed/src/restricted.rs#L38-L66
func CanAdminRole
ActionCanAdminRole reports whether caller can administer role.
func CanCall
Action1func CanCall(targetPath string, selector manager.Selector, caller address) manager.CanCallResultCanCall reports whether caller can call selector on targetPath. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1033-L1068
func CanManageTarget
ActionCanManageTarget reports whether caller can manage target configuration.
func GetFunctionRole
ActionGetFunctionRole returns the selector role for targetPath. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1091-L1107
func GetRoleAdmin
ActionGetRoleAdmin returns the admin role configured for role. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1119-L1126
func GetRoleGrantDelay
ActionGetRoleGrantDelay returns the grant delay configured for role. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1137-L1145
func GetTargetFunctionRole
ActionGetTargetFunctionRole returns the selector role for targetPath. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1091-L1107
func GrantRole
crossing ActionGrantRole grants role membership to account through the shared access realm. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L69-L87
func HasRole
ActionHasRole returns role membership status for account. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1172-L1197
func IsAuthorized
ActionIsAuthorized reports immediate call authorization for targetPath. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1033-L1068
func IsTargetClosed
ActionIsTargetClosed reports whether targetPath is closed. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L1082-L1089
func LabelRole
crossing ActionLabelRole emits role label metadata for an unlocked role. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L48-L67
func RenounceRole
crossing ActionRenounceRole revokes the caller's own role membership after confirmation. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L102-L115
func RevokeRole
crossing ActionRevokeRole revokes role membership from account through the shared access realm. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L89-L100
func SetFunctionRole
crossing ActionSetFunctionRole sets the role for selector on the calling realm's target path. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L353-L367
func SetFunctionRoles
crossing ActionSetFunctionRoles sets the same role for selectors on the calling realm's target path. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L353-L367
func SetGrantDelay
crossing ActionSetGrantDelay sets the delay before future grants of role become active. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L139-L148
func SetRoleAdmin
crossing ActionSetRoleAdmin sets the admin role that can grant or revoke role. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L117-L126
func SetTargetClosed
crossing ActionSetTargetClosed sets whether the calling realm's target path is closed. Union reference: https://github.com/unionlabs/union/blob/8cff0ff34f6baa4cdb1e4650a08985dd05de0c5a/cosmwasm/access-manager/src/contract.rs#L450-L483
4
- chain stdlib
- gno.land/p/onbloc/access/manager package
- gno.land/p/onbloc/ibc/union/types package
- strconv stdlib