Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
forge --version
id: version

- name: Run Forge fmt
run: |
forge fmt --check
id: fmt

- name: Run Forge build
run: |
forge build
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

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: `0x000000c9eC71B1a39055Ec631200ED0022140074`
- Input Settler Escrow Address: `0x000001bf3F3175BD007f3889b50000c7006E72c0`
- Output Settler Address: `0x00000000D7278408CE7a490015577c41e57143a5`
- 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.
Expand Down
82 changes: 67 additions & 15 deletions script/deploy.s.sol

Large diffs are not rendered by default.

20 changes: 16 additions & 4 deletions script/polymer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,31 @@
"implementation": {
"sepolia": {
"polymer": "0x03Fb5bFA4EB2Cba072A477A372bB87880A60fC96",
"oracle": "0x009379002e03ec0017000030002f63d9d44d0128"
"oracle": "0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00"
},
"basesepolia": {
"polymer": "0x03Fb5bFA4EB2Cba072A477A372bB87880A60fC96",
"oracle": "0x009379002e03ec0017000030002f63d9d44d0128"
"oracle": "0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00"
},
"arbitrumsepolia": {
"polymer": "0x03Fb5bFA4EB2Cba072A477A372bB87880A60fC96",
"oracle": "0x009379002e03ec0017000030002f63d9d44d0128"
"oracle": "0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00"
},
"optimismsepolia": {
"polymer": "0x03Fb5bFA4EB2Cba072A477A372bB87880A60fC96",
"oracle": "0x009379002e03ec0017000030002f63d9d44d0128"
"oracle": "0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00"
},
"base": {
"polymer": "0x95ccEAE71605c5d97A0AC0EA13013b058729d075",
"oracle": "0x0000006EA400569c0040d6e5Ba651c00848409Be"
},
"arbitrum": {
"polymer": "0x95ccEAE71605c5d97A0AC0EA13013b058729d075",
"oracle": "0x0000006EA400569c0040d6e5Ba651c00848409Be"
},
"optimism": {
"polymer": "0x95ccEAE71605c5d97A0AC0EA13013b058729d075",
"oracle": "0x0000006EA400569c0040d6e5Ba651c00848409Be"
}
},
"chainids": [
Expand Down
6 changes: 5 additions & 1 deletion script/polymer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { ChainMap } from "OIF/src/oracles/ChainMap.sol";

import { multichain } from "./multichain.s.sol";

import { console } from "forge-std/console.sol";

contract deployPolymer is multichain {
error NotExpectedAddress(string name, address expected, address actual);

Expand All @@ -16,7 +18,9 @@ contract deployPolymer is multichain {

constructor() {
polymerSalts[0x03Fb5bFA4EB2Cba072A477A372bB87880A60fC96] =
0x00000000000000000000000000000000000000006e659189a2473edd56090014;
0x00000000000000000000000000000000000000003f5a1d9c8d66f846fc58000c;
polymerSalts[0x95ccEAE71605c5d97A0AC0EA13013b058729d075] =
0x00000000000000000000000000000000000000004f09241f65a03e2a3e020030;
}

function run(
Expand Down