Settlus L2 docs
  • About Settlus
    • What is Settlus?
    • Key Features
    • Mission: Shift the power from platforms to creators
  • Getting Started
    • Prerequisites
    • Accessing the Testnet
  • Smart Contracts
    • Settlus Smart Contracts
    • For Tenant
    • For DApp Developers
  • Technical Details
    • Network Information
    • Contract addresses
      • Mainnet
      • Testnet
    • Run a node
  • Infrastructure Providers
    • Nodes
    • Bridges
    • Block Explorers
  • Settlus Web
Powered by GitBook
On this page
  • Introduction to Settlus Smart Contracts
  • Key Features of Settlus Smart Contracts
  • Smart Contract Architecture
  • Benefits for the Creator Economy
  • Looking Ahead
  1. Smart Contracts

Settlus Smart Contracts

PreviousAccessing the TestnetNextFor Tenant

Last updated 3 months ago

Introduction to Settlus Smart Contracts

Settlus leverages the power of smart contracts to provide a robust and efficient infrastructure tailored for the creator economy. These smart contracts handle essential operations like managing tenants, recording transactions, facilitating payouts, and handling refunds. The design ensures transparency, automation, and flexibility for various use cases.

The Settlus Smart Contracts are currently under development, and their architecture is built with the following key features:


Key Features of Settlus Smart Contracts

1. Management

  • Manage Tenant: Manage creation and deletion of individual tenants, and store the information of tenants.

  • Update Tenant's Admin: Enables updating the administrative rights for a tenant, ensuring proper governance and access control.

2. Transaction Recording

  • Record Off-Chain Transactions (UTXRs):

    • Supports recording of off-chain transactions for payouts to creators.

    • Tracks essential details such as the recipient, amount, and associated metadata.

  • Cancel UTXRs:

    • Provides functionality to cancel UTXRs, facilitating refunds in cases of errors or disputes.

3. Payouts

  • Redeem UTXRs:

    • Handles the redemption of eligible UTXRs across the tenants, automating payouts to creators in a secure and timely manner.

4. Modular and Extensible Design

  • Settlus contracts are modular, allowing developers to extend or customize functionalities as required.

  • Integration with ERC20 and ERC721 standards ensures compatibility with tokens and NFTs.


Smart Contract Architecture

Tenant Contract

The Tenant contract is at the core of managing entities (tenants) on Settlus. Key functionalities include:

  • Recording and tracking UTXRs for off-chain transactions.

  • Managing payout schedules and automating settlements.

  • Enabling refunds through UTXR cancellation.

  • Access control over managing tenant.

TenantManager Contract

The TenantManager contract oversees tenant creation and management:

  • Facilitates the creation of tenants with customizable configurations.

  • Allows the creation of mintable token contracts linked to tenants.

  • Supports batch settlement of payouts for multiple tenants.

How It actually Works

  • Every block, an external Settler daemon checks if any Tenant requires settlement.

    • A Tenant requires settlement if it holds UTXRs (Unsettled Transaction Records) that have passed their payout period.

  • If any Tenant requires settlement, the Settler calls the settleAll function to process and settle eligible UTXRs.


Benefits for the Creator Economy

  1. Transparency:

    • All transactions and payouts are recorded immutably on the blockchain, ensuring trust and accountability.

  2. Automation:

    • Smart contracts automate repetitive tasks like recording transactions, handling payouts, and managing refunds, saving time and resources.

  3. Flexibility:

    • The modular design supports a variety of use cases, including token-based payments, NFT integration, and programmable revenue sharing.

  4. Scalability:

    • Designed to handle large-scale operations, the contracts support batch processing and settlement for multiple tenants simultaneously.


Looking Ahead

The Settlus Smart Contracts are a foundational component of the platform, designed to evolve alongside the creator economy. Future updates will enhance functionality, introduce new features, and further optimize performance.

Dive deeper into the specific implementations in our Developer Guide, or explore the contract APIs and usage examples in the Technical Reference.

Tenant
Record Process
UTXR status
Settlement Process