Contracts for Sui
OpenZeppelin Contracts for Sui is a library of secure, audited, production-ready Move modules for building applications on Sui.
Using this library with an AI agent? Start from llms.txt - a machine-readable entry point to every package, its examples, API reference, and MVR install snippet.
Getting Started
Packages
Access
Role-based authorization and ownership-transfer policies for privileged protocol operations.
Allowance
Cap-keyed, multi-coin spending allowances over an escrowed vault of funds.
Collections
Package-level guide for ordered data structures, including the comparator model and usage boundaries.
Finance
Vesting wallets with built-in linear-with-cliff and customizable release schedules.
Fixed-Point Math
9-decimal fixed-point types (UD30x9, SD29x9) for prices, fees, rates, and signed balance deltas.
Integer Math
Overflow-safe integer arithmetic with explicit rounding and decimal scaling helpers.
Timelock
Package-level guide for the delayed-operation controller, including scheduling model, operation caps, and execution tickets.
Utilities
Embeddable rate limiters for throttling on-chain actions.
Sale
Fixed-price token sales (presale / IDO) over a prefunded inventory, with caps, refunds, optional compliance gating, and optional vesting.
API Reference
Access
Explore the complete access API, including its functions, types, events, and errors.
Allowance
Explore the complete allowance API, including the spend vault types, functions, events, and errors.
Collections
Explore the complete collections API, including all functions, macros, types, and expected error conditions for integration.
Finance
Explore the complete finance API, including the vesting wallet types, functions, events, and errors.
Fixed-Point Math
Explore the complete fixed-point math API, including its types, functions, and errors.
Integer Math
Explore the complete integer math API, including its functions, types, and errors.
Timelock
Explore the complete timelock API, including all functions, types, emitted events, and expected error conditions for integration.
Utilities
Explore the complete utilities API, including the rate limiter types, functions, and errors.
Sale
Explore the complete sale API, including its types, functions, events, and errors across all modules.