Skip to content

Conversation

@SidestreamStrongStrawberry
Copy link
Collaborator

@SidestreamStrongStrawberry SidestreamStrongStrawberry commented Jul 7, 2025

This PR depends on #1
And implements

@SidestreamStrongStrawberry SidestreamStrongStrawberry marked this pull request as ready for review July 7, 2025 16:14
@SidestreamStrongStrawberry SidestreamStrongStrawberry changed the base branch from main to create-deploy-script July 7, 2025 16:15
@SidestreamStrongStrawberry
Copy link
Collaborator Author

SidestreamStrongStrawberry commented Jul 8, 2025

CCTP Transaction test (transfer 1 usdc)

  1. Pre-requirement: enough testnet USDC from Circle USDC faucet. This is required by the LitePSM mock contract which expects USDC to be present on the deployer wallet (for the swapUSDSToUSDC call to work).
  2. Call Controller.mintUsds
    • usdsAmount: 1000000000000000000
    • tx
  3. Call Controller.swapUSDSToUSDC
    • usdcAmount: 1000000 (usdc uses 6 decimals)
    • tx
  4. Call Controller.transferUSDCToCCTP
    • usdcAmount: 1000000
    • destinationDomain: 5 (solana devnet)
    • tx
  5. Get offchain attestation message from Iris (docs)
    • Query https://iris-api-sandbox.circle.com/messages/0/{transferUSDCToCCTP_transaction_hash_from_above}
    • Note down returned messages[0].message and messages[0].attestation to be used in the next step
    • example response using tx above
  6. Receive USDC on solana devnet
    • Copy repo: https://github.com/circlefin/solana-cctp-contracts/tree/master/examples (link can be found here)
    • Follow the readme instruction for v1 Receive Message
      • cd examples
      • cp .env.example .env
      • Update .env
        MESSAGE_HEX= messages[0].message
        ATTESTATION_HEX= messages[0].attestation
        REMOTE_TOKEN_HEX=0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 # USDC on Sepolia
        REMOTE_EVM_DOMAIN=0 # CCTP domain id for Sepolia
        USER_TOKEN_ACCOUNT= RECIPIENT_TOKEN_ACCOUNT
        
      • Update devnetUser.json
      • npm install
      • npm run receiveMessage
    • tx

Base automatically changed from create-deploy-script to main July 14, 2025 07:41
Copy link
Collaborator

@SidestreamColdMelon SidestreamColdMelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ✅ Checked testTransferUSDCToCCTP
  • ✅ Checked provided transactions
  • ✅ Received confirmation that one Star team was able to also test it end-to-end

@SidestreamColdMelon SidestreamColdMelon merged commit 406dd73 into main Jul 15, 2025
1 check passed
@SidestreamColdMelon SidestreamColdMelon deleted the add-cctp-support branch July 15, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants