---
eip: 7683
label: ERC-7683
title: Cross Chain Intents
status: Draft
type: Standards Track
category: ERC
created: 2024-04-11
requires: 7930
official: https://eips.ethereum.org/EIPS/eip-7683
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7683.md
canonical: https://eips.huatuo.xyz/ko/eip-7683/
lang: ko
tldr: 인텐트 프로토콜을 위한 솔버 측 표준. 각 프로토콜이 resolver 컨트랙트를 공개해 불투명한 주문 페이로드를, 어떤 솔버든 평가하고 체결할 수 있는 공통의 단계·변수·지급 목록으로 변환한다.
tags: [intents, cross-chain, solvers, interoperability]
---

# ERC-7683: Cross Chain Intents

> Programmable solvers for intent protocols.

**TL;DR:** 인텐트 프로토콜을 위한 솔버 측 표준. 각 프로토콜이 resolver 컨트랙트를 공개해 불투명한 주문 페이로드를, 어떤 솔버든 평가하고 체결할 수 있는 공통의 단계·변수·지급 목록으로 변환한다.

## 어떤 문제를 해결하나요?

인텐트 프로토콜에서는 사용자가 원하는 것("체인 A에서 체인 B로 100 USDC 옮기기")을 말하면, **솔버**(필러)라 불리는 전문 참여자가 대가를 받고 그 일을 수행합니다. 크로스체인 브리징과 스왑이 대표적인 사용 사례입니다.

현재는 프로토콜마다 고유한 주문 형식, 정산 컨트랙트, 체결 흐름이 있습니다. 솔버는 프로토콜마다 맞춤 연동을 작성해야 하므로 솔버 유동성이 분산되고, 새 프로토콜은 경쟁력 있는 필러를 끌어들이기 어렵습니다. ERC-7683은 솔버가 사용하는 부분만 표준화합니다. 그래서 하나의 "프로그래머블 솔버"가 프로토콜별 코드 없이 여러 프로토콜을 지원할 수 있고, 프로토콜은 에스크로, 정산, 가격 책정, 경매를 원하는 방식으로 자유롭게 설계할 수 있습니다.

## 어떻게 동작하나요?

- 프로토콜은 각 주문을 불투명한 **페이로드**로 인코딩하고 **resolver** 컨트랙트를 배포합니다.
- 솔버는 `eth_call`로 오프체인에서 `resolve(payload)`를 호출합니다. 트랜잭션으로 실행되지 않으므로, 사용자에게 gas 비용을 부담시키지 않고도 복잡한 해석을 할 수 있습니다.
- resolver는 `ResolvedOrder`를 반환합니다.
  - **steps**: 현재는 `Call` 단계(대상, 셀렉터, 인자)이며 `SpendsERC20`, `SpendsGas`, `TimingBounds`, `RevertPolicy`(`ignore` 또는 `abort`), `NeedsStep`, `NeedsVariable` 같은 속성을 가집니다.
  - **variables**: 솔버가 결정하거나 관찰하는 값으로, `PaymentRecipient`, `PaymentChain`, `StepCaller`, `ExecutionOutput`(예: 어떤 단계의 블록 타임스탬프), `Query`(`eth_call`), `QueryEvents`(`eth_getLogs`), `Witness` 같은 역할이 있습니다.
  - **payments**: 솔버에게 주는 `ERC20` 지급으로, 특정 단계에 연결되며 예상 지연 시간이 붙습니다.
  - **assumptions**: resolver가 직접 확인할 수 없는 이름 붙은 조건. 솔버가 (예: 화이트리스트와 대조해) 검증해야 합니다.
- 주소는 [ERC-7930](/eip-7930/) 상호운용 가능 주소이므로 주문이 비 EVM 체인도 참조할 수 있습니다.
- 신뢰 지점은 resolver입니다. 솔버는 resolver 주소를 검토해 화이트리스트에 올린 뒤 그 지시를 따릅니다.

## 샘플 코드

핵심 EVM 인터페이스(스펙에서 발췌):

```solidity
interface IResolver {
    struct Assumption {
        string name;
        bytes data;
    }

    struct ResolvedOrder {
        bytes[] steps;      // IStep ABI calldata, e.g. Call(...)
        bytes[] variables;  // IVariableRole ABI calldata
        bytes[] payments;   // IPayment ABI calldata
        Assumption[] assumptions;
    }

    function resolve(bytes calldata payload) external view returns (ResolvedOrder memory);
}
```

솔버가 오프체인에서 주문을 해석하는 예(ethers v6):

```ts
import { Contract, JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const resolver = new Contract(RESOLVER_ADDRESS, [
  "function resolve(bytes payload) view returns (tuple(bytes[] steps, bytes[] variables, bytes[] payments, tuple(string name, bytes data)[] assumptions))",
], provider);

const order = await resolver.resolve(payload); // eth_call, no gas spent
if (!WHITELISTED_RESOLVERS.has(RESOLVER_ADDRESS)) throw new Error("untrusted resolver");
for (const a of order.assumptions) validateAssumption(a.name, a.data);
```

## 알아둘 점

- **상태: Draft.** 인터페이스가 크게 바뀌었습니다. 이전 초안은 `IOriginSettler.open` / `openFor`, `IDestinationSettler.fill`, 그리고 `maxSpent` / `minReceived`를 가진 `ResolvedCrossChainOrder`를 정의했습니다. 현재 문서는 이를 resolver 모델로 대체하고 그 이유를 설명합니다. 이전 초안용으로 작성된 코드는 호환되지 않습니다.
- resolver는 주문이 선언된 revert 정책을 통해서만 중단될 수 있도록 보장해야 합니다. 그렇지 않다면 단계를 따르는 솔버가 이를 끝까지 수행하고 대가를 받을 수 있어야 합니다.
- 이 ERC가 정산을 안전하게 만들어 주지는 않습니다. 솔버는 자본을 투입한 순간부터 지급이 확정될 때까지 여전히 위험을 지며, resolver가 문서화한 암묵적 가정을 검토해야 합니다.
- 타입이 지워진 `bytes` 형태의 주문 페이로드는 EIP-712 메시지용 box 타입을 제안하는 [EIP-7713](/eip-7713/)의 동기 중 하나였습니다.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7683
