Skip to main content

StateSet CCTP Module

Overview

The StateSet CCTP Module is a native Cosmos SDK module that implements Circle’s Cross-Chain Transfer Protocol directly on StateSet Commerce Network. Unlike EVM chains where CCTP is implemented as smart contracts, StateSet’s implementation is built into the blockchain itself, providing superior performance, security, and integration with other StateSet modules.

Architecture

Module State

Core State Objects

Operational State

Core Messages

1. DepositForBurn

Burns USDC on StateSet and initiates a cross-chain transfer.

2. DepositForBurnWithCaller

Burns USDC with a specific authorized caller on the destination chain.

3. ReceiveMessage

Processes incoming CCTP messages and mints USDC.

4. ReplaceDepositForBurn

Replaces a pending burn message before attestation.

5. SendMessage

Sends a generic message to another domain.

6. SendMessageWithCaller

Sends a message with a specific authorized caller.

Administrative Messages

Ownership Management

Attester Management

Token Management

Pause Controls

Integration with StateSet Modules

Orders Module Integration

Finance Module Integration

Agent Module Integration

Events

Core Events

Attestation System

Attestation Verification

Query Interface

gRPC Queries

CLI Commands

Transaction Commands

Query Commands

Genesis State

Security Considerations

Access Control

  1. Role-based permissions: Only authorized addresses can perform administrative actions
  2. Two-phase ownership transfer: Prevents accidental loss of ownership
  3. Pause mechanisms: Emergency circuit breakers for security incidents

Message Security

  1. Nonce tracking: Prevents replay attacks
  2. Domain validation: Ensures messages are for the correct chain
  3. Attestation verification: Multi-signature validation from trusted attesters
  4. Message size limits: Prevents DoS through large messages

Token Security

  1. Burn limits: Per-message caps to limit exposure
  2. Token pair validation: Only configured tokens can be transferred
  3. Atomic operations: Burns and mints are atomic within their domains

Migration Guide

Best Practices

1. Message Construction

2. Attestation Handling

3. Error Handling

Resources

Support

For CCTP module support: