Releases: mmlado/spel-admin-authority
Releases · mmlado/spel-admin-authority
Release list
v0.1.3
Changed
- Pin
spel-frameworkto upstreamlogos-co/spel, at the commit that merged the extension mechanism (logos-co/spel#257). The samples move to LEZv0.2.4with it. - Pin
spel-authorityby itsv0.1.1tag.
Full changelog: v0.1.2...v0.1.3
v0.1.2
v0.1.1
Changed
- The samples' gated fns take their injected params instead of declaring them.
- Versions inherit from the workspace, the samples move in lockstep with the libraries.
- The audit policy lives at
.cargo/audit.toml, the location cargo-audit reads.
v0.1.0
First release.
Added
- Three management instructions:
admin_initializecreates the Config PDA and installs the caller by self-election,admin_transferhands the role to a new signer or PDA with candidate validation, andadmin_renouncezeroes the admin permanently with no recovery path by design. - The
#[require_admin]gate: consumers annotate instructions, the framework injects the config and caller params unless already declared, and the check rejects a non-admin caller before the handler runs. Param names are overridable by kwarg, and an alignment self-test keeps the macro's kwargs and the inject metadata from drifting. - Embedded mode: the
AdminConfigslot can live inside one of the consumer's own accounts at a declared byte offset instead of a dedicated PDA. The#[admin_slot]field marker keeps the layout honest, the consumer's account-creating instruction carries the bootstrap so the slot is born initialized in the transaction that creates the account, and a program whose slot would ship born renounced refuses to compile. Offsets compile into the program and never appear in the IDL or a transaction. - Three consumer samples: the plain integration, a manual integration without the marker, and the embedded layout.
- Contract tests, IDL pin tests resolving the sample's own dependency graph, dry-run byte compares in CI, and fixture jobs running
--locked. - Docs packet: CONTEXT.md vocabulary, the account model and authority lifecycle, and ADRs for every design decision.
The spel-framework dependency pins a fork revision for now. Version 1.0.0 lands when the extension mechanism reaches an upstream release (logos-co/spel#257) and the pin moves to it.