Skip to content

Commit 0a412ad

Browse files
authored
Merge pull request QuickSwap#1651 from QuickSwap/dev2
Dev2
2 parents 3affe96 + 0bb8ea5 commit 0a412ad

File tree

29 files changed

+4506
-3975
lines changed

29 files changed

+4506
-3975
lines changed

package-lock.json

Lines changed: 346 additions & 3926 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@typescript-eslint/eslint-plugin": "^5.3.1",
1919
"@typescript-eslint/parser": "^5.3.1",
2020
"@uniswap/liquidity-staker": "^1.0.2",
21-
"@uniswap/sdk": "npm:quickswap-sdk@3.0.33",
21+
"@uniswap/sdk": "npm:quickswap-sdk@3.0.35",
2222
"@uniswap/sdk-core": "^3.2.2",
2323
"@uniswap/token-lists": "npm:quickswap-token-lists@^1.0.2",
2424
"@uniswap/v2-core": "1.0.0",

src/components/Header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const Header: React.FC<{ onUpdateNewsletter: (val: boolean) => void }> = ({
260260
});
261261
}
262262

263-
if (isSupportedNetwork)
263+
if (chainId !== ChainId.SONEIUM && isSupportedNetwork)
264264
menuItems.push({
265265
link: '/bridge',
266266
text: t('Bridge'),

src/config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import IMX from './imx.json';
1212
import astarZkevm from './astarzkevm.json';
1313
import layerX from './layerx.json';
1414
import minato from './minato.json';
15+
import soneium from './soneium.json';
1516
import orderlyFeeTiers from './orderlyFeeTiers.json';
1617
import { ChainId } from '@uniswap/sdk';
1718

@@ -29,6 +30,7 @@ const configs: any = {
2930
[ChainId.ASTARZKEVM]: astarZkevm,
3031
[ChainId.LAYERX]: layerX,
3132
[ChainId.MINATO]: minato,
33+
[ChainId.SONEIUM]: soneium,
3234
};
3335

3436
export const getConfig = (network: ChainId | undefined) => {

src/config/soneium.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"v3": true,
3+
"v2": false,
4+
"rpc": "https://rpc.soneium.org/",
5+
"blockExplorer": "https://soneium.blockscout.com/",
6+
"chainId": 1868,
7+
"isMainnet": true,
8+
"visible": true,
9+
"networkName": "Soneium",
10+
"nativeCurrencyImage": "/soneium.jpg",
11+
"nativeCurrency": {
12+
"name": "Ether",
13+
"symbol": "ETH",
14+
"decimals": 18
15+
},
16+
"swap": {
17+
"available": true,
18+
"bestTrade": false,
19+
"proMode": false,
20+
"limitOrder": false,
21+
"liquidityHub": false,
22+
"twapOrder": false,
23+
"crossChain": false
24+
},
25+
"pools": {
26+
"available": true
27+
},
28+
"farm": {
29+
"quickswap": false,
30+
"merkl": false,
31+
"available": false
32+
},
33+
"lair": {
34+
"available": false,
35+
"oldLair": false,
36+
"newLair": false,
37+
"syrup": false
38+
},
39+
"convert": {
40+
"available": false
41+
},
42+
"predictions": {
43+
"available": false
44+
},
45+
"analytics": {
46+
"liquidityHub": false,
47+
"available": true
48+
},
49+
"lending": {
50+
"available": false
51+
},
52+
"migrate": {
53+
"available": false
54+
},
55+
"gamingHub": {
56+
"available": false
57+
},
58+
"leaderboard": {
59+
"available": false
60+
},
61+
"safe": {
62+
"available": false
63+
},
64+
"perps": {
65+
"available": false
66+
},
67+
"hydra": {
68+
"available": false
69+
},
70+
"perpsV2": {
71+
"available": false
72+
},
73+
"bos": {
74+
"available": false
75+
},
76+
"gamma": {
77+
"available": false
78+
},
79+
"unipilot": {
80+
"available": false
81+
},
82+
"defiedge": {
83+
"available": false
84+
},
85+
"bonds": {
86+
"available": false
87+
},
88+
"steer": {
89+
"available": false
90+
},
91+
"dappos": {
92+
"available": false
93+
},
94+
"ichi": {
95+
"available": false
96+
},
97+
"lpLock": {
98+
"available": false
99+
},
100+
"poolInitCodeHash": "0xb3fc09be5eb433d99b1ec89fd8435aaf5ffea75c1879e19028aa2414a14b3c85"
101+
}
Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "_factory",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "address",
11+
"name": "_WNativeToken",
12+
"type": "address"
13+
},
14+
{
15+
"internalType": "address",
16+
"name": "_poolDeployer",
17+
"type": "address"
18+
}
19+
],
20+
"stateMutability": "nonpayable",
21+
"type": "constructor"
22+
},
23+
{
24+
"inputs": [],
25+
"name": "WNativeToken",
26+
"outputs": [
27+
{
28+
"internalType": "address",
29+
"name": "",
30+
"type": "address"
31+
}
32+
],
33+
"stateMutability": "view",
34+
"type": "function"
35+
},
36+
{
37+
"inputs": [
38+
{
39+
"internalType": "int256",
40+
"name": "amount0Delta",
41+
"type": "int256"
42+
},
43+
{
44+
"internalType": "int256",
45+
"name": "amount1Delta",
46+
"type": "int256"
47+
},
48+
{
49+
"internalType": "bytes",
50+
"name": "path",
51+
"type": "bytes"
52+
}
53+
],
54+
"name": "algebraSwapCallback",
55+
"outputs": [],
56+
"stateMutability": "view",
57+
"type": "function"
58+
},
59+
{
60+
"inputs": [],
61+
"name": "factory",
62+
"outputs": [
63+
{
64+
"internalType": "address",
65+
"name": "",
66+
"type": "address"
67+
}
68+
],
69+
"stateMutability": "view",
70+
"type": "function"
71+
},
72+
{
73+
"inputs": [],
74+
"name": "poolDeployer",
75+
"outputs": [
76+
{
77+
"internalType": "address",
78+
"name": "",
79+
"type": "address"
80+
}
81+
],
82+
"stateMutability": "view",
83+
"type": "function"
84+
},
85+
{
86+
"inputs": [
87+
{
88+
"internalType": "bytes",
89+
"name": "path",
90+
"type": "bytes"
91+
},
92+
{
93+
"internalType": "uint256",
94+
"name": "amountIn",
95+
"type": "uint256"
96+
}
97+
],
98+
"name": "quoteExactInput",
99+
"outputs": [
100+
{
101+
"internalType": "uint256",
102+
"name": "amountOut",
103+
"type": "uint256"
104+
},
105+
{
106+
"internalType": "uint16[]",
107+
"name": "fees",
108+
"type": "uint16[]"
109+
}
110+
],
111+
"stateMutability": "nonpayable",
112+
"type": "function"
113+
},
114+
{
115+
"inputs": [
116+
{
117+
"internalType": "address",
118+
"name": "tokenIn",
119+
"type": "address"
120+
},
121+
{
122+
"internalType": "address",
123+
"name": "tokenOut",
124+
"type": "address"
125+
},
126+
{
127+
"internalType": "address",
128+
"name": "deployer",
129+
"type": "address"
130+
},
131+
{
132+
"internalType": "uint256",
133+
"name": "amountIn",
134+
"type": "uint256"
135+
},
136+
{
137+
"internalType": "uint160",
138+
"name": "limitSqrtPrice",
139+
"type": "uint160"
140+
}
141+
],
142+
"name": "quoteExactInputSingle",
143+
"outputs": [
144+
{
145+
"internalType": "uint256",
146+
"name": "amountOut",
147+
"type": "uint256"
148+
},
149+
{
150+
"internalType": "uint16",
151+
"name": "fee",
152+
"type": "uint16"
153+
}
154+
],
155+
"stateMutability": "nonpayable",
156+
"type": "function"
157+
},
158+
{
159+
"inputs": [
160+
{
161+
"internalType": "bytes",
162+
"name": "path",
163+
"type": "bytes"
164+
},
165+
{
166+
"internalType": "uint256",
167+
"name": "amountOut",
168+
"type": "uint256"
169+
}
170+
],
171+
"name": "quoteExactOutput",
172+
"outputs": [
173+
{
174+
"internalType": "uint256",
175+
"name": "amountIn",
176+
"type": "uint256"
177+
},
178+
{
179+
"internalType": "uint16[]",
180+
"name": "fees",
181+
"type": "uint16[]"
182+
}
183+
],
184+
"stateMutability": "nonpayable",
185+
"type": "function"
186+
},
187+
{
188+
"inputs": [
189+
{
190+
"internalType": "address",
191+
"name": "tokenIn",
192+
"type": "address"
193+
},
194+
{
195+
"internalType": "address",
196+
"name": "tokenOut",
197+
"type": "address"
198+
},
199+
{
200+
"internalType": "address",
201+
"name": "deployer",
202+
"type": "address"
203+
},
204+
{
205+
"internalType": "uint256",
206+
"name": "amountOut",
207+
"type": "uint256"
208+
},
209+
{
210+
"internalType": "uint160",
211+
"name": "limitSqrtPrice",
212+
"type": "uint160"
213+
}
214+
],
215+
"name": "quoteExactOutputSingle",
216+
"outputs": [
217+
{
218+
"internalType": "uint256",
219+
"name": "amountIn",
220+
"type": "uint256"
221+
},
222+
{
223+
"internalType": "uint16",
224+
"name": "fee",
225+
"type": "uint16"
226+
}
227+
],
228+
"stateMutability": "nonpayable",
229+
"type": "function"
230+
}
231+
]

0 commit comments

Comments
 (0)