Stellar Smart Contracts Suite

Explore our comprehensive suite of secure and scalable smart contract utilities for Stellar Soroban. Our libraries provide robust implementations for fungible and non-fungible tokens, along with powerful tools for access control and contract management.

Tokens

  • Fungible Tokens: Digital assets representing a fixed or dynamic supply of identical units.
  • Non-Fungible Tokens (NFTs): Unique digital assets with verifiable ownership.
  • Multi-Tokens: Hybrid tokens enabling both fungible and non-fungible token functionalities (work in progress).

Access Control

  • Ownable: A simple mechanism with a single account authorized for all privileged actions.
  • Role-Based Access Control: A flexible mechanism with distinct roles for each privileged action.

Utilities

  • Pausable: Pause and unpause contract functions, useful for emergency response.
  • Upgradeable: Manage contract upgrades and data migrations seamlessly.
  • Cryptography: A set of cryptographic primitives and utilities for Soroban contracts.

Security and Audits

Our contracts are built with security as a top priority. You can find our audit reports here.

Error Codes

In Stellar Soroban, each error variant is assigned an integer. To prevent duplication of error codes, we use the following convention:

  • Fungible: 1XX
  • Non-Fungible: 2XX
  • Multi-Token: 3XX

Any future tokens will continue from 4XX, 5XX, and so on.

  • Utilities: 1XXX
    • Pausable: 10XX
    • Upgradeable: 11XX
    • Access: 12XX
      • Role Transfer (internal common module for 2-step role transfer): 120X
      • Access Control: 121X
      • Ownable: 122X
    • Merkle Distributor: 13XX

Any future utilities will continue from 14XX, 15XX, and so on.

Important Notes

As a deliberate design choice, this library manages the TTL for temporary and persistent storage items. To provide flexibility to the owner of the contract, this library deliberately does not manage the TTL for instance storage items. It is the responsibility of the developer to manage the TTL for instance storage items.

Audits

You can find our audit reports here.

Get Started

Get started here.