1package upgradeable23import "errors"45var (6 // ErrNoAuthority is raised when a Proxy is built, or handed, a nil7 // authority. There is no "nobody" authority: to end upgradeability,8 // Freeze it.9 ErrNoAuthority = errors.New("upgradeable: an authority is required")1011 // ErrUnauthorized is raised when the caller is not the authority.12 ErrUnauthorized = errors.New("upgradeable: caller is not the authority")1314 // ErrStaleRealm is raised when the threaded realm value is not the15 // caller's live cur -- a stashed or replayed capture.16 ErrStaleRealm = errors.New("upgradeable: realm value is not the caller's live cur")1718 // ErrFrozen is raised by every mutating method once Freeze has run.19 ErrFrozen = errors.New("upgradeable: proxy is frozen")2021 // ErrNoImpl is raised when the proxy is asked for an implementation it22 // does not have yet.23 ErrNoImpl = errors.New("upgradeable: no implementation is live")2425 // ErrNotNested is raised when a candidate registers from a realm that is26 // not under the proxy realm's own path. See New and NewOpen.27 ErrNotNested = errors.New("upgradeable: candidate realm is not nested under this one")2829 // ErrNotARealm is raised when a candidate registers from a user call30 // rather than from a deployed realm, so there is no path to record.31 ErrNotARealm = errors.New("upgradeable: only a deployed realm can register a candidate")3233 // ErrNilImpl is raised when the registered implementation is nil.34 ErrNilImpl = errors.New("upgradeable: implementation is nil")3536 // ErrUnknownPath is raised when accepting or withdrawing a path that has37 // no candidate registered against it.38 ErrUnknownPath = errors.New("upgradeable: no candidate registered at that path")3940 // ErrNoHistory is raised by Rollback when nothing has been replaced yet.41 ErrNoHistory = errors.New("upgradeable: no previous release to roll back to")4243 // ErrBadAddress is raised when an authority is built from an invalid44 // address.45 ErrBadAddress = errors.New("upgradeable: invalid address")4647 // ErrBadRealmPath is raised when an authority is built from a realm path48 // that is blank or carries surrounding whitespace. Both are silent49 // lockouts: a blank entry matches every user call, and a padded one50 // matches no caller at all.51 ErrBadRealmPath = errors.New("upgradeable: authority realm paths must be non-blank and unpadded")52)53Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.