Sequencing Modules
Modular smart contracts for customizable transaction ordering, permissions, auctions, and cross-chain coordination
Syndicate transforms blockchain sequencing by bringing it onchain through smart contracts deployed on a separate blockchain. This modular approach enables unprecedented control, transparency, and community ownership of the transaction ordering process.
Syndicate sequencing modules are comprised of several key components that can be independently configured to meet your specific application needs.
Permission Modules
Control who can sequence transactions through mechanisms like allowlists and token holdings
Ordering Modules
Define how transactions are ordered and batched for optimal processing
Auction Modules
Enable competitive sequencing rights through mechanisms like sealed-bid auctions
Atomic Modules
Allow coordinated sequencing across multiple chains for complex operations
Permission Modules
Permission modules control who can sequence transactions on your appchain. They implement a simple interface with an isAllowed
function that returns whether an address can sequence:
Available Modules
- Allowlist: Simple admin-controlled list of allowed sequencers
- Token Balance: Require sequencers to hold a minimum amount of tokens
- Sealed Bid Auction: Competitive bidding for sequencing rights
Example: Token Balance Module
Here's a simple example that requires sequencers to hold tokens:
Ordering Modules
The ordering of transactions is currently handled by the base MetabasedSequencerChain
contract, which processes transactions in the order they are submitted. This provides a simple and predictable transaction ordering mechanism.
Available Features
- Single Transaction Processing: Process individual transactions through
processTransaction
- Bulk Transaction Processing: Process multiple transactions at once with
processBulkTransactions
- Raw Transaction Support: Handle compressed transactions with
processTransactionRaw
Example: Transaction Processing
Auction Modules
Auction modules enable competitive sequencing rights through sealed-bid auctions, where bidders submit encrypted bids to ensure fairness.
Available Modules
- Sealed Bid Auction: A two-phase auction where bidders first submit encrypted bids and later reveal them
Example: Sealed Bid Auction
Atomic Modules
Atomic modules enable coordinated transaction processing across multiple chains, ensuring all transactions are processed together or none at all.
Available Modules
- Atomic Sequencer: Process transactions across multiple chains atomically
Example: Atomic Sequencer
The atomic sequencer ensures that either all transactions are processed successfully across all specified chains, or none are processed at all. This is useful for cross-chain operations that need to maintain consistency.