Lucid
  • USING LUCID
    • Welcome to Lucid
    • Homepage
    • Explore Page
    • Organisation Summary Page
    • Sidebar Navigation
  • Organisation Creation Page
  • Creating an Organisation
    • 1. Setup Organisation Details
    • 2. Module Selection
    • 3. Module Configuration
    • 4. Safe and Protocol Upgrades Configuration
    • 5. Governor Configuration
    • 6. Veto and Multi-Bridge Configuration
    • 7. Token Configuration
    • 8. Asset Transfer Portals Configuration
    • 9. Review and Deploy Organisation
    • 10. Lucid Post-Deployment Integration
  • Editing an Organisation
  • Modules and integrations
    • Multi-Bridge
      • Multi-Bridge Asset Transfers
      • Multi-Bridge Message and Asset Transfers
      • Resend Transaction
    • Bridge Portals
    • Vested Emission Offerings (VEOs)
      • VEO Purchase Flow
      • VEO Creation Flow
      • VEO Removal Flow
      • Claiming Vested Tokens
    • Wizard | Protocol Upgrades
  • Developer Reference
    • VEOs
      • Vesting Options
      • Price Models
      • Debt Buffer
      • Deposit Interval
    • Message Bridging
      • Sending a Message
      • Message Execution
      • Admin Functions
    • Asset Bridging
      • Bridging Assets
      • Admin Functions
    • Adapters
      • Axelar Adapter
      • CCIP Adapter
      • Connext Adapter
      • Hyperlane Adapter
      • LayerZero Adapter
      • Polymer Adapter
      • Wormhole Adapter
    • Deployed Contracts
      • Multibridge Contracts
      • VEO Contracts
  • API Reference
  • RESOURCES
    • About
    • Fees
      • Lucid Pricing and Fee Structure
      • Fee Estimates for Bridges
    • Frequently Asked Questions
    • Key Terms and Explanations
    • Contact
Powered by GitBook
On this page
  • Fees
  • Interfaces
  1. Developer Reference
  2. Adapters

Connext Adapter

Lucid has developed an adapter that integrates with the Connext messaging bridge to send and receive cross-chain messages.

Fees

Connext does not support on-chain fee quoting. Fees must be calculated off-chain using Connext’s SDK.

When sending or exporting a transaction from the Lucid App, Lucid automatically calculates the required fees for the transaction, including any protocol fees.

Connext does not refund excess gas fees that may be sent during the transaction.

Interfaces

Each adapter implements the following public functions:

relayMessage

function relayMessage( uint256 destChainId, address destination, bytes memory options, bytes calldata message ) external payable returns (bytes32)

Sends a message through the Connext bridge, deducts the protocol fee, and pays the required bridge fee.

  • The Ether value sent by the calling contract must include both the Connext transfer fee and the Lucid protocol fee.

  • Returns a bytes32 value representing the transferId assigned by Connext.

  • Includes a delegate address parameter, which can be used to call Connext-specific functions on the destination chain after the message is received (e.g., forceUpdateSlippage()).

Input Params:

Type
Name
Description

uint256

destChainId

The destination chain ID.

address

destination

The destination address.

bytes

options

An abi-encoded delegate address.

bytes

message

The message to be relayed.


calculateFee

function calculateFee(uint256 amount) public view returns (uint256)

Calculates the Lucid protocol fee based on the bridge fee provided for the Connext message transfer. Returns the fee amount in wei.

Input Params:

Type
Name
Description

uint256

amount

The eth value in wei that is passed to the Bridge to pay for the message transfer

PreviousCCIP AdapterNextHyperlane Adapter

Last updated 27 days ago