🟢
warp.green | Docs
  • Users
    • FAQ
    • Creating a New Wrapped CAT
    • Contact Us
  • Developers
    • Introduction
    • Contract Addresses
    • warp.green
      • EVM - Sending And Receiving Messages
      • Chia - Sending Messages
      • Chia - Receiving Messages
      • Collecting Signatures
    • ERC-20 Bridge
      • Wrapping ERC-20s
      • Unwrapping ERC-20s
      • MilliETH
    • CAT Bridge
      • Wrapping CATs
      • Unwrapping CATs
  • Validators
    • Wallets
    • Deployment
    • Attestations
    • Rekeying
Powered by GitBook
On this page
  1. Developers
  2. CAT Bridge

Wrapping CATs

PreviousCAT BridgeNextUnwrapping CATs

Last updated 1 year ago

To wrap CATs, they first need to be locked into vault coins. The 'CAT Locker' puzzle asserts the creation of a new vault coin and then creates a message to the WrappedCAT contract. The creation of the coin is done by asserting an announcement from the settlement payments puzzle, which also powers Chia offers.

On the EVM side, the user has to simply relay the message by calling the receiveMessage function on the Portal contract, which will transmit message contents and other information to the WrappedCAT contract. The ERC-20 tokens representing the CAT will then be minted to the address specified when bridging was initiated on Chia.

Note that a WrappedCAT contract needs to be deployed and properly initialized on the destination chain before a CAT can be bridged.

Overview of the Chia-side transaction that initiates CAT wrapping, along with steps.