|
4 | 4 |
|
5 | 5 | ### Minor Changes |
6 | 6 |
|
| 7 | +- [#243](https://github.com/OpenZeppelin/ui-builder/pull/243) [`bfbbf9b`](https://github.com/OpenZeppelin/ui-builder/commit/bfbbf9bf55883ae61d6672436cfea66040251d48) Thanks [@pasevin](https://github.com/pasevin)! - Add Access Control and Ownable support for Stellar (Soroban) contracts |
| 8 | + |
| 9 | + ### @openzeppelin/ui-builder-adapter-stellar |
| 10 | + - Add `AccessControlService` implementation with full support for OpenZeppelin Access Control and Ownable patterns |
| 11 | + - Add capability detection to identify contracts implementing AccessControl, Ownable, or both |
| 12 | + - Support role management: query current roles, grant/revoke roles, check permissions |
| 13 | + - Support ownership management: transfer ownership, query current owner |
| 14 | + - Add historical queries via SubQuery indexer integration for complete role change and ownership transfer history |
| 15 | + - Implement server-side filtering by contract, role, account, and limit |
| 16 | + - Add graceful degradation when indexer is unavailable (on-chain queries continue to work) |
| 17 | + - Add comprehensive address validation using shared utilities at all service entry points |
| 18 | + - Export access control service via `getAccessControlService()` method on `StellarAdapter` |
| 19 | + - Add snapshot export functionality for current access control state |
| 20 | + - Support both account addresses (G...) and contract addresses (C...) for ownership transfers |
| 21 | + |
| 22 | + ### @openzeppelin/ui-builder-types |
| 23 | + - Add `AccessControlService` interface and related types (`AccessControlCapabilities`, `OwnershipInfo`, `RoleAssignment`, `AccessSnapshot`, `HistoryEntry`, `OperationResult`) |
| 24 | + - Add `getAccessControlService?()` optional method to `ContractAdapter` interface |
| 25 | + - Extend `BaseNetworkConfig` with optional `indexerUri` and `indexerWsUri` fields for GraphQL endpoint configuration |
| 26 | + |
| 27 | + ### @openzeppelin/ui-builder-utils |
| 28 | + - Add access control snapshot utilities (`validateSnapshot`, `serializeSnapshot`, `deserializeSnapshot`, `createEmptySnapshot`, `findRoleAssignment`, `compareSnapshots`) |
| 29 | + - Add access control error utilities (`isAccessControlError`, error message extraction helpers) |
| 30 | + - Export address normalization utilities (`normalizeAddress`, `addressesEqual`) for chain-agnostic address comparison |
| 31 | + |
| 32 | +### Patch Changes |
| 33 | + |
| 34 | +- Updated dependencies [[`bfbbf9b`](https://github.com/OpenZeppelin/ui-builder/commit/bfbbf9bf55883ae61d6672436cfea66040251d48), [`fbc8ecd`](https://github.com/OpenZeppelin/ui-builder/commit/fbc8ecd527dd879b209b02878db210eadf49208c)]: |
| 35 | + - @openzeppelin/ui-builder-types@0.17.0 |
| 36 | + - @openzeppelin/ui-builder-utils@0.17.0 |
| 37 | + - @openzeppelin/ui-builder-ui@0.17.0 |
| 38 | + |
| 39 | +## 0.17.0 |
| 40 | + |
| 41 | +### Minor Changes |
| 42 | + |
7 | 43 | - Add Access Control and Ownable support for Stellar (Soroban) contracts |
8 | 44 | - Implement `AccessControlService` interface with full support for OpenZeppelin Access Control and Ownable patterns |
9 | 45 | - Add capability detection to identify contracts implementing AccessControl, Ownable, or both |
|
0 commit comments