Skip to content

catalystsystem/catalyst-intent

Repository files navigation

LI.FI Intent based cross-chain swaps

LI.FI Intent is a cross-chain swap protocol built with the Open Intents Framework, OIF. It allows users to sign intents: What asset they want, how they want etc, etc. which is claimed and then delivered by solvers.

Deployments

Deployed addresses:

  • Compact Address: 0x00000000000000171ede64904551eeDF3C6C9788
  • Input Settler Compact Address: 0x0000000000cd5f7fDEc90a03a31F79E5Fbc6A9Cf
  • Input Settler Escrow Address: 0x000025c3226C00B2Cdc200005a1600509f4e00C0
  • Output Settler Address: 0x0000000000eC36B683C2E6AC89e9A75989C22a2e
  • Polymer Oracle Testnet: 0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00
  • Polymer Oracle Mainnet: 0x0000006ea400569c0040d6e5ba651c00848409be

Open Intents Framework

The OIF is a reference implementation of a modular and composable intent system. LI.FI intent is built as an implementation of it, meaning it is compatible and compliments any other OIF deployment.

For more documentation about the OIF: https://github.com/openintentsframework/oif-contracts

Integration

By integrating LI.FI intents, either as a solver or as an intent issuer, you will also be integrating with the OIF: https://docs.li.fi/lifi-intents/introduction.

Usage

Build

forge build [--sizes]

Test

forge test [--fuzz-runs 10000] [--gas-report --fuzz-seed 10]

Gas report

forge test --gas-report

Coverage

forge coverage --no-match-coverage "(script|test|wormhole/external/wormhole|wormhole/external/callworm/GettersGetter)" [--report lcov]

Deploy

forge script deploy --sig "run(string[])" "[<chains>]" --account <account> --slow --multi --isolate --always-use-create-2-factory --verify --broadcast [-vvvv]

License Notice

This project is licensed under the GNU Lesser General Public License v3.0 only (LGPL-3.0-only).

It also uses the following third-party libraries:

Each library is included under the terms of its respective license. Copies of the license texts can be found in their source files or original repositories.

When distributing this project, please ensure that all relevant license notices are preserved in accordance with their terms.

About

Catalytic Intent System

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •