Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

## Unreleased

### `openzeppelin_access`

#### Added

- `access_control` module for role-based access control with typed `Auth<Role>` capabilities and timelocked root transfer.

### `openzeppelin_fp_math`

#### Added

- `sqrt` for `UD30x9` and `SD29x9` with round-down semantics. (#286)
- `log2`, `ln`, `log10` for `UD30x9` (rounds down) and `SD29x9` (rounds toward zero). (#320)

### `openzeppelin_math`

#### Added
Expand All @@ -37,6 +24,21 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

- New `rate_limiter` module: an embeddable rate-limiting primitive with three strategies behind one enum. (#315)

## 1.2.0 (03-06-2026)

### `openzeppelin_access`

#### Added

- `access_control` module for role-based access control with typed `Auth<Role>` capabilities and timelocked root transfer.

### `openzeppelin_fp_math`

#### Added

- `sqrt` for `UD30x9` and `SD29x9` with round-down semantics. (#286)
- `log2`, `ln`, `log10` for `UD30x9` (rounds down) and `SD29x9` (rounds toward zero). (#320)

## 1.1.0 (21-04-2026)

### `openzeppelin_fp_math`
Expand Down
Binary file added audits/2026-06-v1.2.0-access-control.pdf
Binary file not shown.
Binary file added audits/2026-06-v1.2.0-fp-math-diff.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions audits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
| March 2026 | PR #183 | [`7d3dd29`](https://github.com/OpenZeppelin/contracts-sui/tree/7d3dd290e8950acdda87eee644cf286aa7075661) | OpenZeppelin | Two-step transfer flow | [🔗](./2026-03-PR183.pdf) |
| April 2026 | v1.1.0 | [`7cfc07c`](https://github.com/OpenZeppelin/contracts-sui/tree/7cfc07c528f8b4da7cdb69b8ed1246e705afbbeb) | OpenZeppelin | `openzeppelin_fp_math` package | [🔗](./2026-04-v1.1.0-fp-math.pdf) |
| April 2026 | v1.1.0 | [`v1.0.0 → v1.1.0`](https://github.com/OpenZeppelin/contracts-sui/compare/v1.0.0-rc.1...v1.1.0-rc.1) | OpenZeppelin | v1.0.0 → v1.1.0 diff | [🔗](./2026-04-v1.1.0-diff.pdf) |
| June 2026 | v1.2.0 | [`7f7a300`](https://github.com/OpenZeppelin/contracts-sui/tree/7f7a300308a55a4cae1df2026c2e45d6cd8ee91c) | OpenZeppelin | `openzeppelin_access` AccessControl module | [🔗](./2026-06-v1.2.0-access-control.pdf) |
| June 2026 | v1.2.0 | [`af09be7 → 55a7971`](https://github.com/OpenZeppelin/contracts-sui/compare/af09be74eaac71094b47e9795890651e0259ac88...55a79713a7e51a142de017e57bd7901ce8198212) | OpenZeppelin | Fixed-point math diff | [🔗](./2026-06-v1.2.0-fp-math-diff.pdf) |
12 changes: 6 additions & 6 deletions contracts/access/Published.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

[published.mainnet]
chain-id = "35834a8a"
published-at = "0x0a031c162f9982ee32b199b98fbfbb6561051f2c4d2e17d358b09beafc20ce45"
published-at = "0x9ed727e318f8372868534146e38e0eab50fff6bb1c64ed41dbce1be023330115"
original-id = "0x0a031c162f9982ee32b199b98fbfbb6561051f2c4d2e17d358b09beafc20ce45"
version = 1
toolchain-version = "1.66.2"
version = 2
toolchain-version = "1.73.0"
build-config = { flavor = "sui", edition = "2024" }
upgrade-capability = "0x84f250a13ea278987fd27cf25b10df9e74468cf4dbb1229acb45a6d237cc648b"

[published.testnet]
chain-id = "4c78adac"
published-at = "0xa7ea17bd36ee0df5473c2b0ea1ede707bae0c25da9bebffc30b02858cace244b"
published-at = "0xb357701a05fd1e26b42b167dcadc1c3cf5e521448ceb8fdb088402f7390465d7"
original-id = "0xa7ea17bd36ee0df5473c2b0ea1ede707bae0c25da9bebffc30b02858cace244b"
version = 1
toolchain-version = "1.69.2"
version = 2
toolchain-version = "1.73.0"
build-config = { flavor = "sui", edition = "2024" }
upgrade-capability = "0x8fe40c0781aee3a57e0872d89be2b51288f3457dec7fe40ce4f9acbe2e1f2e09"
5 changes: 4 additions & 1 deletion contracts/access/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Initialize the registry from the module's `init` function when the package is
first published. Sui does not run `init` for modules added in a later package
upgrade, so an already-published package cannot adopt AccessControl by adding a
new module that expects its OTW to be delivered. Publish a fresh package with
its own initializing module and AccessControl registry instead.
its own initializing module and AccessControl registry instead. Use
`access_control::new` when the publisher should be the default admin, or
`access_control::new_with_admin` when the initial default admin should be an
explicit governance or multisig address.

```move
use openzeppelin_access::access_control::{Self, AccessControl, Auth};
Expand Down
Loading
Loading