Skip to content

🤖 LaPoste is a utility contract designed to simplify cross-chain communication and token transfers between different blockchain networks. It provides a single entry point for cross-chain interactions and leverages Chainlink's CCIP for secure and reliable message and token transfers.

License

Notifications You must be signed in to change notification settings

stake-dao/laposte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaPoste

LaPoste is a utility contract designed to simplify cross-chain communication and token transfers between different blockchain networks. It provides a single entry point for cross-chain interactions and leverages Chainlink's Cross-Chain Interoperability Protocol (CCIP) for secure and reliable message and token transfers.

Key Components

  1. LaPoste: The main contract that serves as the entry point for sending and receiving cross-chain messages and tokens.

  2. TokenFactory: Manages the creation, minting, and burning of wrapped tokens across different chains.

  3. Adapter: Implements the specific logic for interacting with Chainlink's CCIP, handling the cross-chain communication protocol.

  4. Token: A standard ERC20 token contract used for creating wrapped versions of tokens on different chains.

How It Works

  1. Sending Messages and Tokens:

    • Users interact with the LaPoste contract to send messages and tokens across chains.
    • If tokens are involved, the TokenFactory handles the locking or burning of tokens on the source chain.
    • The Adapter is used to send the message through Chainlink's CCIP.
  2. Receiving Messages and Tokens:

    • The Adapter receives messages from CCIP and forwards them to LaPoste.
    • LaPoste processes the message, minting or unlocking tokens if necessary using the TokenFactory.
    • If the message contains a payload, it's forwarded to the intended receiver contract.
  3. Token Wrapping:

    • When tokens are transferred across chains, the TokenFactory creates wrapped versions of the tokens on the destination chain if they don't already exist.
    • This allows for seamless token transfers between different blockchain networks.

Features

  • Send and receive cross-chain messages
  • Transfer tokens between different blockchain networks
  • Automatic creation of wrapped tokens on destination chains
  • Support for multiple EVM-compatible chains, including Mainnet, Avalanche, Polygon, Arbitrum, Optimism, BNB Chain, Base, zkSync, Gnosis, Linea, Scroll, Celo, and Blast

Deployment Addresses

Contract Address Networks
TokenFactory 0x96006425Da428E45c282008b00004a00002B345e Ethereum, Polygon, Arbitrum, Optimism, Base
LaPoste 0xF0000058000021003E4754dCA700C766DE7601C2 Ethereum, Polygon, Arbitrum, Optimism, Base
Adapter 0xbF0000F5C600B1a84FE08F8d0013002ebC0064fe Ethereum, Polygon, Arbitrum, Optimism, Base

Known Limitations

  • It relies on having all contracts deployed at the same address on all supported chains.
  • The system depends on the reliability and security of Chainlink's CCIP for cross-chain communication.

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). For more details, see the LICENSE file in the project root.

About

🤖 LaPoste is a utility contract designed to simplify cross-chain communication and token transfers between different blockchain networks. It provides a single entry point for cross-chain interactions and leverages Chainlink's CCIP for secure and reliable message and token transfers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published