Skip to content

Commit

Permalink
Merge pull request #1650 from QuickSwap/feat/soneium
Browse files Browse the repository at this point in the history
Feat/soneium
  • Loading branch information
sameepsi authored Jan 15, 2025
2 parents b827f62 + ad1fd50 commit 0bb8ea5
Show file tree
Hide file tree
Showing 29 changed files with 4,506 additions and 3,975 deletions.
4,272 changes: 346 additions & 3,926 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"@uniswap/liquidity-staker": "^1.0.2",
"@uniswap/sdk": "npm:[email protected].33",
"@uniswap/sdk": "npm:[email protected].35",
"@uniswap/sdk-core": "^3.2.2",
"@uniswap/token-lists": "npm:quickswap-token-lists@^1.0.2",
"@uniswap/v2-core": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const Header: React.FC<{ onUpdateNewsletter: (val: boolean) => void }> = ({
});
}

if (isSupportedNetwork)
if (chainId !== ChainId.SONEIUM && isSupportedNetwork)
menuItems.push({
link: '/bridge',
text: t('Bridge'),
Expand Down
2 changes: 2 additions & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import IMX from './imx.json';
import astarZkevm from './astarzkevm.json';
import layerX from './layerx.json';
import minato from './minato.json';
import soneium from './soneium.json';
import orderlyFeeTiers from './orderlyFeeTiers.json';
import { ChainId } from '@uniswap/sdk';

Expand All @@ -29,6 +30,7 @@ const configs: any = {
[ChainId.ASTARZKEVM]: astarZkevm,
[ChainId.LAYERX]: layerX,
[ChainId.MINATO]: minato,
[ChainId.SONEIUM]: soneium,
};

export const getConfig = (network: ChainId | undefined) => {
Expand Down
101 changes: 101 additions & 0 deletions src/config/soneium.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"v3": true,
"v2": false,
"rpc": "https://rpc.soneium.org/",
"blockExplorer": "https://soneium.blockscout.com/",
"chainId": 1868,
"isMainnet": true,
"visible": true,
"networkName": "Soneium",
"nativeCurrencyImage": "/soneium.jpg",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"swap": {
"available": true,
"bestTrade": false,
"proMode": false,
"limitOrder": false,
"liquidityHub": false,
"twapOrder": false,
"crossChain": false
},
"pools": {
"available": true
},
"farm": {
"quickswap": false,
"merkl": false,
"available": false
},
"lair": {
"available": false,
"oldLair": false,
"newLair": false,
"syrup": false
},
"convert": {
"available": false
},
"predictions": {
"available": false
},
"analytics": {
"liquidityHub": false,
"available": true
},
"lending": {
"available": false
},
"migrate": {
"available": false
},
"gamingHub": {
"available": false
},
"leaderboard": {
"available": false
},
"safe": {
"available": false
},
"perps": {
"available": false
},
"hydra": {
"available": false
},
"perpsV2": {
"available": false
},
"bos": {
"available": false
},
"gamma": {
"available": false
},
"unipilot": {
"available": false
},
"defiedge": {
"available": false
},
"bonds": {
"available": false
},
"steer": {
"available": false
},
"dappos": {
"available": false
},
"ichi": {
"available": false
},
"lpLock": {
"available": false
},
"poolInitCodeHash": "0xb3fc09be5eb433d99b1ec89fd8435aaf5ffea75c1879e19028aa2414a14b3c85"
}
231 changes: 231 additions & 0 deletions src/constants/abis/v3/algebra-integral-quoter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_factory",
"type": "address"
},
{
"internalType": "address",
"name": "_WNativeToken",
"type": "address"
},
{
"internalType": "address",
"name": "_poolDeployer",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "WNativeToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "int256",
"name": "amount0Delta",
"type": "int256"
},
{
"internalType": "int256",
"name": "amount1Delta",
"type": "int256"
},
{
"internalType": "bytes",
"name": "path",
"type": "bytes"
}
],
"name": "algebraSwapCallback",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "poolDeployer",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "path",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
}
],
"name": "quoteExactInput",
"outputs": [
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "uint16[]",
"name": "fees",
"type": "uint16[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "address",
"name": "deployer",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "limitSqrtPrice",
"type": "uint160"
}
],
"name": "quoteExactInputSingle",
"outputs": [
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "fee",
"type": "uint16"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "path",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
}
],
"name": "quoteExactOutput",
"outputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint16[]",
"name": "fees",
"type": "uint16[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "address",
"name": "deployer",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "limitSqrtPrice",
"type": "uint160"
}
],
"name": "quoteExactOutputSingle",
"outputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "fee",
"type": "uint16"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 0bb8ea5

Please sign in to comment.