doc.gno
1.02 Kb · 21 lines
1// Package manager is a pure port of the core permission model of
2// OpenZeppelin Contracts AccessManager v5.6.1, taken from
3// gno.land/p/onbloc/access/manager (github.com/onbloc/gno-ibc, Apache-2.0).
4//
5// It is a state transition library, not a realm: it does not own storage,
6// inspect realms, or decide who the caller is. A realm stores a State,
7// passes the caller address, target, and selector into its methods, and
8// exposes the management API it needs (see gno.land/r/gnoswap/order/keeper).
9//
10// Model:
11// - roles are uint64 identifiers; AdminRole is 0 and PublicRole is
12// uint64 max, which every account holds;
13// - permissions are scoped by target and selector; an unset selector
14// defaults to AdminRole;
15// - a closed target rejects every call;
16// - each role has an admin role, a grant delay, and member records with
17// an activation time.
18//
19// Delayed operation scheduling (schedule, execute, cancel) is not ported.
20// Panics carry string messages so they can cross realm boundaries.
21package manager