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
- Role-based permissions: Only authorized addresses can perform administrative actions
- Two-phase ownership transfer: Prevents accidental loss of ownership
- Pause mechanisms: Emergency circuit breakers for security incidents
Message Security
- Nonce tracking: Prevents replay attacks
- Domain validation: Ensures messages are for the correct chain
- Attestation verification: Multi-signature validation from trusted attesters
- Message size limits: Prevents DoS through large messages
Token Security
- Burn limits: Per-message caps to limit exposure
- Token pair validation: Only configured tokens can be transferred
- 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:- Discord: #cctp-dev
- GitHub: github.com/stateset/cctp-module
- Email: cctp@stateset.com