Skip to content

setraprotocol/setra-core

Repository files navigation

Setra Core

Canonical settlement layer for tokenized equities on Robinhood Chain

Solidity Foundry License


Overview

Setra is the canonical settlement infrastructure for tokenized equities. It sits beneath trading venues. DEXs, lending protocols, and brokerages integrate through ISettlement and settle through a single core.

What ERC-4337 is to accounts, EigenLayer to restaking, USDC to dollar settlement — Setra is to equity settlement.

Architecture

  DEX          Lending       Brokerage
   |              |              |
   +--------------+--------------+
                  |
          ISettlement Interface
                  |
    +-------------+-------------+
    |             |             |
 DVP Engine  Netting Engine  Corporate Actions
    |             |             |
    +-------------+-------------+
                  |
          Asset Registry + sEquity Tokens + Proof of Reserves

Contracts

Contract Description
DVPEngine Atomic delivery-versus-payment settlement
NettingEngine Epoch-based net settlement
SEquity ERC-20 + transfer restrictions (ERC-3643 lite)
SEquityFactory Deploy new sEquity tokens
AssetRegistry Canonical registry of tokenized securities
ProofOfReserves Merkle-based reserve attestations
CorporateActions Dividends, splits, mergers
SetraRoles Role-based access control

Quick Start

git clone https://github.com/puntertrade/setra-core.git
cd setra-core
forge install
forge build
forge test

Integration

import {ISettlement} from "@setra/core/interfaces/ISettlement.sol";
import {Intent} from "@setra/core/libraries/Intent.sol";

contract MyDEX {
    ISettlement public immutable setra;

    function executeTrade(
        Intent.DVPIntent calldata intent,
        bytes calldata buyerSig,
        bytes calldata sellerSig
    ) external returns (bytes32) {
        return setra.settle(intent, buyerSig, sellerSig);
    }
}

License

BUSL-1.1

About

Canonical settlement layer for tokenized equities - DVP engine, sEquity standard, netting & corporate actions

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages