Skip to content

Commit

Permalink
change to mxc chain
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhenbin committed Apr 24, 2023
1 parent ee29544 commit b59b4e3
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_CHAIN_ID="1"
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847"
REACT_APP_NETWORK_URL="https://wannsee-rpc.mxc.com"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

"@uniswap/sdk": "3.0.3-beta.1",
"@uniswap/sdk": "file:../SwapV2-sdk",

# Uniswap Interface

[![Tests](https://github.com/Uniswap/uniswap-interface/workflows/Tests/badge.svg)](https://github.com/Uniswap/uniswap-interface/actions?query=workflow%3ATests)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@typescript-eslint/eslint-plugin": "^2.31.0",
"@typescript-eslint/parser": "^2.31.0",
"@uniswap/default-token-list": "^1.3.1",
"@mxczkevm/swapsdk": "1.0.0",
"@uniswap/sdk": "file:../SwapV2-sdk",
"@uniswap/token-lists": "^1.0.0-beta.15",
"@uniswap/v2-core": "1.0.0",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ const NETWORK_LABELS: { [chainId in ChainId]: string | null } = {
[ChainId.RINKEBY]: 'Rinkeby',
[ChainId.ROPSTEN]: 'Ropsten',
[ChainId.GÖRLI]: 'Görli',
[ChainId.KOVAN]: 'Kovan'
[ChainId.KOVAN]: 'Kovan',
[ChainId.WANNSEE]: 'Wannsee'
}

export default function Header() {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getNetworkLibrary(): Web3Provider {
}

export const injected = new InjectedConnector({
// 1, 3, 4, 5, 42,
// supportedChainIds: [1, 3, 4, 5, 42]
supportedChainIds: [5167003]
})

Expand Down
5 changes: 3 additions & 2 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AbstractConnector } from '@web3-react/abstract-connector'

import { fortmatic, injected, portis, walletconnect, walletlink } from '../connectors'

export const ROUTER_ADDRESS = '0xB20FEffA2587190CEFFf673f6581A7Ee22572327'
export const ROUTER_ADDRESS = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'

// a list of tokens by chain
type ChainTokenList = {
Expand All @@ -22,7 +22,8 @@ const WETH_ONLY: ChainTokenList = {
[ChainId.ROPSTEN]: [WETH[ChainId.ROPSTEN]],
[ChainId.RINKEBY]: [WETH[ChainId.RINKEBY]],
[ChainId.GÖRLI]: [WETH[ChainId.GÖRLI]],
[ChainId.KOVAN]: [WETH[ChainId.KOVAN]]
[ChainId.KOVAN]: [WETH[ChainId.KOVAN]],
[ChainId.WANNSEE]: [WETH[ChainId.WANNSEE]]
}

// used to construct intermediary pairs for trading
Expand Down
3 changes: 2 additions & 1 deletion src/constants/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const V1_FACTORY_ADDRESSES: { [chainId in ChainId]: string } = {
[ChainId.ROPSTEN]: '0x9c83dCE8CA20E9aAF9D3efc003b2ea62aBC08351',
[ChainId.RINKEBY]: '0xf5D915570BC477f9B8D6C0E980aA81757A3AaC36',
[ChainId.GÖRLI]: '0x6Ce570d02D73d4c384b46135E87f8C592A8c86dA',
[ChainId.KOVAN]: '0xD3E51Ef092B2845f10401a0159B2B96e8B6c3D30'
[ChainId.KOVAN]: '0xD3E51Ef092B2845f10401a0159B2B96e8B6c3D30',
[ChainId.WANNSEE]: '0x08fB320fE06bbf5801e6e927a110A292FB4cBF11'
}

const V1_FACTORY_INTERFACE = new Interface(V1_FACTORY_ABI)
Expand Down
3 changes: 2 additions & 1 deletion src/state/lists/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const EMPTY_LIST: TokenAddressMap = {
[ChainId.RINKEBY]: {},
[ChainId.ROPSTEN]: {},
[ChainId.GÖRLI]: {},
[ChainId.MAINNET]: {}
[ChainId.MAINNET]: {},
[ChainId.WANNSEE]: {}
}

const listCache: WeakMap<TokenList, TokenAddressMap> | null =
Expand Down
6 changes: 2 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2574,10 +2574,8 @@
resolved "https://registry.yarnpkg.com/@uniswap/lib/-/lib-1.1.1.tgz#0afd29601846c16e5d082866cbb24a9e0758e6bc"
integrity sha512-2yK7sLpKIT91TiS5sewHtOa7YuM8IuBXVl4GZv2jZFys4D2sY7K5vZh6MqD25TPA95Od+0YzCVq6cTF2IKrOmg==

"@uniswap/[email protected]":
version "3.0.3-beta.1"
resolved "https://registry.yarnpkg.com/@uniswap/sdk/-/sdk-3.0.3-beta.1.tgz#ef758f45e1f7050e098956fce097aedb87e0ceed"
integrity sha512-8MqfVDXAHHcAnUxBAaoHdeGmLUc8Tu4GZ4n7kLabKlF2b4RUS/jnuUIdzOR9QPMdY/avw3gH/OtTxH2elDNShw==
"@uniswap/sdk@file:../SwapV2-sdk":
version "1.0.0"
dependencies:
"@uniswap/v2-core" "^1.0.0"
big.js "^5.2.2"
Expand Down

0 comments on commit b59b4e3

Please sign in to comment.