Skip to main content
Archived documentation for @eco-incorp/sauce@0.99.16. Install this release with npm install --save-exact @eco-incorp/sauce@0.99.16. Links to guides outside this tab open current documentation.
Circle’s Cross-Chain Transfer Protocol moves native USDC between chains. Its depositForBurn burns it on this chain, Circle attests the burn, and a receiveMessage on the destination mints it there.

When to use it

  • Move USDC to another chain as native USDC, with Circle’s attestation as the only trust.
  • Only the burn happens in the program’s transaction. The mint is a separate transaction on the destination, sent by anyone with the attestation.

Pitfalls for a program

  • Approve the TokenMessenger for the amount first.
  • destinationDomain is Circle’s domain id, not the chain id: each chain’s file in chains gives its CCTP domain.
  • mintRecipient and destinationCaller are 32-byte words: an EVM address fits as is, and a destinationCaller of 0 lets anyone complete the mint.
  • minFinalityThreshold 2000 waits for standard finality; 1000 asks for a fast transfer, for which maxFee (in USDC units, taken on the destination) must cover Circle’s fee.

In a Sauce program

Burn the Pot’s USDC on Base for recipient on Arbitrum:

Notes

  • Domains are Circle’s numbering; the registry records them per chain.

Its names in a program

On Ethereum, Cctp is a namespace: its contracts need no import.

Deployments

ABI

TokenMessengerABI

import TokenMessengerABI from "./protocols/cctp/TokenMessengerABI.json"; Speaks for: tokenMessenger.
  • depositForBurn(uint256 amount, uint32 destinationDomain, bytes32 mintRecipient, address burnToken, bytes32 destinationCaller, uint256 maxFee, uint32 minFinalityThreshold)

Next steps