Skip to content

Commit 5891490

Browse files
authored
Add support for uniswap v4 and Unichain (#38)
1 parent f9a3592 commit 5891490

File tree

156 files changed

+5492
-2043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+5492
-2043
lines changed

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.29.2"
2+
"flutter": "3.32.2"
33
}

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: subosito/flutter-action@v2
3131
with:
3232
channel: "stable"
33-
flutter-version: 3.29.2
33+
flutter-version: 3.32.2
3434
- name: Install dependencies
3535
run: flutter pub get && dart run build_runner build --delete-conflicting-outputs && flutter gen-l10n && dart run routefly && dart run web3kit:generate_abis
3636
- name: Run tests

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"flutterMode": "release",
1111
"toolArgs": [
1212
"--dart-define=env=local",
13+
],
14+
"args": [
15+
"--web-experimental-hot-reload"
1316
]
1417
},
1518
{
@@ -21,6 +24,9 @@
2124
"flutterMode": "debug",
2225
"toolArgs": [
2326
"--dart-define=env=local",
27+
],
28+
"args": [
29+
"--web-experimental-hot-reload"
2430
]
2531
},
2632
{
@@ -31,6 +37,9 @@
3137
"program": "./lib/main.dart",
3238
"toolArgs": [
3339
"--dart-define=env=local",
40+
],
41+
"args": [
42+
"--web-experimental-hot-reload"
3443
]
3544
},
3645
]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"dart.flutterSdkPath": ".fvm/versions/3.29.2",
2+
"dart.flutterSdkPath": ".fvm/versions/3.32.2",
33
"dart.lineLength": 120
44
}

assets/icons/text.document.svg

Lines changed: 12 additions & 0 deletions
Loading

assets/logos/unichain.svg

Lines changed: 3 additions & 0 deletions
Loading

lib/abis/uniswap_permit2.abi.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "address",
11+
"name": "",
12+
"type": "address"
13+
},
14+
{
15+
"internalType": "address",
16+
"name": "",
17+
"type": "address"
18+
}
19+
],
20+
"name": "allowance",
21+
"outputs": [
22+
{
23+
"internalType": "uint160",
24+
"name": "amount",
25+
"type": "uint160"
26+
},
27+
{
28+
"internalType": "uint48",
29+
"name": "expiration",
30+
"type": "uint48"
31+
},
32+
{
33+
"internalType": "uint48",
34+
"name": "nonce",
35+
"type": "uint48"
36+
}
37+
],
38+
"stateMutability": "view",
39+
"type": "function"
40+
},
41+
{
42+
"inputs": [
43+
{
44+
"internalType": "address",
45+
"name": "token",
46+
"type": "address"
47+
},
48+
{
49+
"internalType": "address",
50+
"name": "spender",
51+
"type": "address"
52+
},
53+
{
54+
"internalType": "uint160",
55+
"name": "amount",
56+
"type": "uint160"
57+
},
58+
{
59+
"internalType": "uint48",
60+
"name": "expiration",
61+
"type": "uint48"
62+
}
63+
],
64+
"name": "approve",
65+
"outputs": [],
66+
"stateMutability": "nonpayable",
67+
"type": "function"
68+
}
69+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"type": "function",
4+
"name": "modifyLiquidities",
5+
"inputs": [
6+
{
7+
"name": "unlockData",
8+
"type": "bytes",
9+
"internalType": "bytes"
10+
},
11+
{
12+
"name": "deadline",
13+
"type": "uint256",
14+
"internalType": "uint256"
15+
}
16+
],
17+
"outputs": [],
18+
"stateMutability": "payable"
19+
}
20+
]

0 commit comments

Comments
 (0)