ERCs
ERC-7683 — Cross-Chain Intents
eips.ethereum.org/EIPS/eip-7683
A standard order format for cross-chain swaps. A user signs an Order on the source chain; a filler (anyone) submits it to the origin settler and fulfills it on the destination settler. Filler bears the cross-chain risk; user gets atomicity guarantees.
import {
hash_gasless_order,
sign_gasless_order,
type GaslessCrossChainOrder,
} from "@ethernauta/erc/7683";
import { open } from "@ethernauta/erc/7683/extensions/origin-settler";
import { fill } from "@ethernauta/erc/7683/extensions/destination-settler";
// example: the curried hash/sign primitives + the two settler methods are imported
void hash_gasless_order;
void sign_gasless_order;
void open;
void fill;
type _Order = GaslessCrossChainOrder;
Surface
Order primitives
| Export | Purpose |
|---|
Order | The order shape (Valibot-derived type). |
order_hash | EIP-712 hash of an order. |
sign_order | Produce a signed order. |
| typed-data builder | For path-2 signing. |
Origin settler (@ethernauta/erc/7683/origin_settler)
| Method | Shape | Purpose |
|---|
open({ order, signature, originFillerData }) | Signable<Hash32> | Submit an order on the source chain. |
resolve({ order }) | Callable<ResolvedOrder> | Pre-fill the order’s effective resolution. |
Destination settler (@ethernauta/erc/7683/destination_settler)
| Method | Shape | Purpose |
|---|
fill({ orderId, originData, fillerData }) | Signable<Hash32> | Filler fulfillment call. |
See also