LiFi Contract Types
Complete TypeScript type definitions for LiFi’s cross-chain bridge protocol. Build type-safe integrations with 20+ bridge providers using ethers.js v5.
TypeScript
Quick Start
Get up and running with LiFi Contract Types in minutes.
Import contract types
Import the contract types and factories you need:
The package exports both contract type definitions and factory classes for every facet.
Key Features
Everything you need to build cross-chain applications with LiFi.
20+ Bridge Integrations
Support for Across, Hop, Stargate, Celer, and 15+ more bridge protocols.
Type-Safe Contracts
Full TypeScript definitions for all contracts, structs, and events.
Ethers.js v5
Built-in factory classes for seamless ethers.js integration.
Diamond Pattern
EIP-2535 Diamond Standard architecture for upgradeable contracts.
Swap Functionality
Generic DEX swap support for multi-hop cross-chain transactions.
Event Handling
Strongly-typed event listeners and filters for all contract events.
Explore by Topic
Dive deeper into specific areas of the LiFi contract ecosystem.
Core Types
BridgeData, SwapData, and core LiFi interface definitions.
Bridge Facets
Complete reference for all supported bridge protocol integrations.
Swap Facets
DEX aggregation and token swap functionality.
Utility Facets
Fee collection, withdrawals, and access management.
Ready to Build?
Start integrating LiFi’s cross-chain bridge infrastructure into your application today.