Skip to content

Foundation Mission Request: ERC-7683 Integration with Native Interoperability [TECHNICAL] #275

@opjulian

Description

@opjulian

Proposed Foundation Mission Request: ERC-7683 Integration with Native Interoperability

Season 7 Intent: A set of interoperable Stage 1 chains doing $250m per month in cross-chain asset transfer

Total grant amount: 26k OP

Should this Foundation Mission be fulfilled by one or multiple teams: One

OP Labs or Optimism Unlimited Sponsor: zainbacchus

Reviewing Body: Developer Advisory Board Foundation Mission Team

Submit by: April 16th

Selection by: April 25th

Start date: April 28th (Please note Missions must be completed within 12 months (i.e. marked as done)

Any questions? You can reach the DAB via the new #dab-general channel in the Optimism Superchain Devs discord: https://discord.gg/QSdZHfHq


Develop and deploy an ERC-7683-compliant settlement system that leverages Superchain's native interoperability for secure and efficient cross-chain transactions. This system will standardize cross-chain intents, enabling seamless interactions across the Superchain ecosystem.

What is required to execute this Mission:

  1. ERC-7683 Implementation:
    • Develop a settlement system adhering to the ERC-7683 standard for cross-chain intents.
    • Ensure compatibility with ERC-7683 order structures, including GaslessCrossChainOrder and OnchainCrossChainOrder.
    • Implement settlement interfaces IOriginSettler and IDestinationSettler as defined in the standard.
  2. Superchain Interoperability Integration:
    • Utilize Superchain's native message relaying via IL2ToL2CrossDomainMessenger for cross-chain intent verification.
  3. End-to-End Process Validation:
    • Develop a comprehensive flow to validate the full settlement process on testnet environments.
    • Operate a filler on testnet to test and confirm the complete settlement workflow.

Solution Criteria:

  • User Deposit & Order Creation:

    Users create a compliant OnchainCrossChainOrder or GaslessCrossChainOrder and escrow tokens by invoking open or openFor on the IOriginSettler contract, thereby locking funds and defining the cross-chain intent.

  • Filler Initiation on Destination Chain:

    A filler detects the escrowed deposit and credits the user's account on the destination chain by calling the fill function on the IDestinationSettler contract.

  • Interchain Settlement Messaging:

    Post-filling, the filler invokes a function on the destination settler, triggering a fill confirmation sent to the origin settler contract via Superchain's native interoperability.

  • Atomicity:

    Provide fillers the option to execute the fill and message initiation within a single transaction or separately, ensuring flexibility.

  • Batching:

    Implement an option for fillers to batch fill confirmations into a single message to optimize gas costs on both chains. If immediate batching support is unfeasible, design interfaces to accommodate future batching capabilities.

  • Verification & Filler Repayment:

    Upon receiving and verifying one or more messages, the origin settler should release the depositor’s escrowed funds to the filler.

Security & Reliability:

  • Superchain Native Interoperability:

    Leverage Superchain's native interoperability to facilitate trust-minimized settlements.

  • ERC-7683 Compliance:

    Ensure all order structures and settlement contracts conform to the ERC-7683 standard.

  • Robust Security Measures:

    Incorporate proof validation, replay protection, and settler logic to prevent unauthorized fund releases.

Milestones & Deliverables:

  1. Specification & Design:
    • Develop a detailed implementation plan, including design approach and system architecture.
  2. Development & Open-Source Repository:
    • Establish an open-source code repository to track progress and facilitate community collaboration.
  3. Testnet Deployment:
    • Deploy the system on testnets (e.g., Unichain Sepolia and OP Sepolia).
    • Demonstrate successful cross-chain intent fulfillment on testnet environments.
  4. Audits:
    • Conduct comprehensive security audits to ensure system robustness and reliability.
  5. Mainnet Deployment:
    • Deploy the audited system on mainnets (e.g., Unichain and OP Mainnet).
    • Validate successful cross-chain intent fulfillment on mainnet environments.

Impact Assessment:

  • Testnet Demonstration:

    Successful execution of ERC-7683 cross-chain intents secured by Superchain's native interoperability on testnets.

  • Open-Source Contribution:

    Availability of the ERC-7683 implementation as an open-source resource for the broader community, facilitating future development.

  • Economic Activity:

    Achievement of a target volume (e.g., $XYZ) in transactions between Unichain and OP Mainnet using the settlement contract.

Go-to-Market Strategy:

Upon successful audit and testnet validation, the Superchain settlement contract will be adopted by protocols such as Across to facilitate cross-chain orders between OP Mainnet and Unichain Mainnet upon the launch of interoperability features.

Resources:

This mission aims to enhance the Superchain ecosystem's decentralization, interoperability, and resilience by integrating ERC-7683 with native interoperability features, thereby providing a standardized framework for secure and efficient cross-chain transactions.

Note - please leverage the [Superchain Dev Docs](https://docs.optimism.io/stack/interop/explainer) and [[Superchain Devnet](https://docs.optimism.io/stack/interop/tools/devnet)](https://docs.optimism.io/stack/interop/tools/devnet) to prototype the Superchain interop integration.

Application Instructions

To apply for this Foundation Mission, please complete the form in the expandable section below and leave your response as a comment on this issue thread. Submissions will be open until April 11th*, at which time the Foundation will review all submissions and select individuals/teams to complete the work defined here.*

Submission Form

Copy the entire application below and leave a comment on this issue with your answers completed. A representative from the Optimism Foundation or the Developer Advisory Board may reach out using the contact info provided to request more information as necessary.

Foundation Mission Application

Please verify that your team members below:

  • Team Lead: Please specify the best point of contact for your team
  • Contact info:
  • L2 recipient address:
  • Please list the members of your team and link to any previous work:

What makes your team best-suited to execute this Mission?

  • [...]
  • [...]

Please describe your proposed solution based on the above Solution Criteria (if applicable):

  • [...]
  • [...]

Please outline your step-by-step plan to execute this Mission, including expected deadlines to complete each piece of work:

  • [...]
  • [...]

Please define the [critical milestone(s)](https://gov.optimism.io/t/collective-grant-policies/5833#p-25088-critical-milestones-and-clawback-8) that should be used to determine whether you’ve executed on this proposal:

  • [...]
  • [...]

Please list any additional support your team would require to execute this mission (financial, technical, etc.):

  • [...]
  • [...]

Please check the following to make sure you understand the terms of the Optimism Foundation Mission program:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions