Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
2eca50be
Unverified
Commit
2eca50be
authored
Jun 22, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove defunct arbitrum kovan testnet
parent
be2ce18b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
48 deletions
+10
-48
index.ts
src/connectors/index.ts
+0
-2
addresses.ts
src/constants/addresses.ts
+10
-17
chains.ts
src/constants/chains.ts
+0
-2
routing.ts
src/constants/routing.ts
+0
-5
tokens.ts
src/constants/tokens.ts
+0
-7
updater.tsx
src/state/transactions/updater.tsx
+0
-1
getExplorerLink.ts
src/utils/getExplorerLink.ts
+0
-13
getLibrary.ts
src/utils/getLibrary.ts
+0
-1
No files found.
src/connectors/index.ts
View file @
2eca50be
...
...
@@ -27,7 +27,6 @@ const NETWORK_URLS: {
[
SupportedChainId
.
ROPSTEN
]:
`https://ropsten.infura.io/v3/
${
INFURA_KEY
}
`
,
[
SupportedChainId
.
GOERLI
]:
`https://goerli.infura.io/v3/
${
INFURA_KEY
}
`
,
[
SupportedChainId
.
KOVAN
]:
`https://kovan.infura.io/v3/
${
INFURA_KEY
}
`
,
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
`https://kovan5.arbitrum.io/rpc`
,
[
SupportedChainId
.
ARBITRUM_ONE
]:
`https://arb1.arbitrum.io/rpc`
,
}
...
...
@@ -37,7 +36,6 @@ const SUPPORTED_CHAIN_IDS: SupportedChainId[] = [
SupportedChainId
.
GOERLI
,
SupportedChainId
.
RINKEBY
,
SupportedChainId
.
ROPSTEN
,
SupportedChainId
.
ARBITRUM_KOVAN
,
SupportedChainId
.
ARBITRUM_ONE
,
]
...
...
src/constants/addresses.ts
View file @
2eca50be
...
...
@@ -8,7 +8,6 @@ type AddressMap = { [chainId: number]: string }
export
const
UNI_ADDRESS
:
AddressMap
=
constructSameAddressMap
(
'
0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
'
,
false
)
export
const
MULTICALL2_ADDRESSES
:
AddressMap
=
{
...
constructSameAddressMap
(
'
0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696
'
,
false
),
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
0xc80e33a6f02cf08557a0ca3d94d1474d73f64bc1
'
,
[
SupportedChainId
.
ARBITRUM_ONE
]:
'
0x021CeAC7e681dBCE9b5039d2535ED97590eB395c
'
,
}
export
const
V2_FACTORY_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
V2_FACTORY_ADDRESS
,
false
)
...
...
@@ -37,18 +36,12 @@ export const MERKLE_DISTRIBUTOR_ADDRESS: AddressMap = {
export
const
ARGENT_WALLET_DETECTOR_ADDRESS
:
AddressMap
=
{
[
SupportedChainId
.
MAINNET
]:
'
0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8
'
,
}
export
const
V3_CORE_FACTORY_ADDRESSES
:
AddressMap
=
{
...
constructSameAddressMap
(
V3_FACTORY_ADDRESS
,
true
),
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
0xf594DEF7751440197879149f46E98b334E6DF1fa
'
,
}
export
const
QUOTER_ADDRESSES
:
AddressMap
=
{
...
constructSameAddressMap
(
'
0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6
'
,
true
),
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
0xAC06b88FA9adB7584A659b190F37F085352cB783
'
,
}
export
const
NONFUNGIBLE_POSITION_MANAGER_ADDRESSES
:
AddressMap
=
{
...
constructSameAddressMap
(
'
0xC36442b4a4522E871399CD717aBDD847Ab11FE88
'
,
true
),
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
0x9E1498aE1F508E86462e8A0F213CF385A6622464
'
,
}
export
const
V3_CORE_FACTORY_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
V3_FACTORY_ADDRESS
,
true
)
export
const
QUOTER_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
'
0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6
'
,
true
)
export
const
NONFUNGIBLE_POSITION_MANAGER_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
'
0xC36442b4a4522E871399CD717aBDD847Ab11FE88
'
,
true
)
export
const
ENS_REGISTRAR_ADDRESSES
:
AddressMap
=
{
[
SupportedChainId
.
MAINNET
]:
'
0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
'
,
[
SupportedChainId
.
ROPSTEN
]:
'
0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
'
,
...
...
@@ -58,10 +51,10 @@ export const ENS_REGISTRAR_ADDRESSES: AddressMap = {
export
const
SOCKS_CONTROLLER_ADDRESSES
:
AddressMap
=
{
[
SupportedChainId
.
MAINNET
]:
'
0x65770b5283117639760beA3F867b69b3697a91dd
'
,
}
export
const
SWAP_ROUTER_ADDRESSES
:
AddressMap
=
{
...
constructSameAddressMap
(
'
0xE592427A0AEce92De3Edee1F18E0157C05861564
'
,
true
)
,
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
0x6ae2DE23F2BE35B3921ba15DA52e4b173667dCb9
'
,
}
export
const
SWAP_ROUTER_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
'
0xE592427A0AEce92De3Edee1F18E0157C05861564
'
,
true
)
export
const
V3_MIGRATOR_ADDRESSES
:
AddressMap
=
constructSameAddressMap
(
'
0xA5644E29708357803b5A882D272c41cC0dF92B34
'
,
true
...
...
src/constants/chains.ts
View file @
2eca50be
...
...
@@ -4,7 +4,6 @@ export enum SupportedChainId {
RINKEBY
=
4
,
GOERLI
=
5
,
KOVAN
=
42
,
ARBITRUM_KOVAN
=
144545313136048
,
ARBITRUM_ONE
=
42161
,
}
...
...
@@ -14,6 +13,5 @@ export const NETWORK_LABELS: { [chainId in SupportedChainId | number]: string }
[
SupportedChainId
.
ROPSTEN
]:
'
Ropsten
'
,
[
SupportedChainId
.
GOERLI
]:
'
Görli
'
,
[
SupportedChainId
.
KOVAN
]:
'
Kovan
'
,
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
'
kArbitrum
'
,
[
SupportedChainId
.
ARBITRUM_ONE
]:
'
Arbitrum One
'
,
}
src/constants/routing.ts
View file @
2eca50be
...
...
@@ -55,7 +55,6 @@ const WETH_ONLY: ChainTokenList = {
[
SupportedChainId
.
RINKEBY
]:
[
WETH9_EXTENDED
[
SupportedChainId
.
RINKEBY
]],
[
SupportedChainId
.
GOERLI
]:
[
WETH9_EXTENDED
[
SupportedChainId
.
GOERLI
]],
[
SupportedChainId
.
KOVAN
]:
[
WETH9_EXTENDED
[
SupportedChainId
.
KOVAN
]],
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
[
WETH9_EXTENDED
[
SupportedChainId
.
ARBITRUM_KOVAN
]],
[
SupportedChainId
.
ARBITRUM_ONE
]:
[
WETH9_EXTENDED
[
SupportedChainId
.
ARBITRUM_ONE
]],
}
// used to construct intermediary pairs for trading
...
...
@@ -99,10 +98,6 @@ export const COMMON_BASES: ChainCurrencyList = {
[
4
]:
[
ExtendedEther
.
onChain
(
4
),
WETH9_EXTENDED
[
4
]],
[
5
]:
[
ExtendedEther
.
onChain
(
5
),
WETH9_EXTENDED
[
5
]],
[
42
]:
[
ExtendedEther
.
onChain
(
42
),
WETH9_EXTENDED
[
42
]],
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
[
ExtendedEther
.
onChain
(
SupportedChainId
.
ARBITRUM_KOVAN
),
WETH9_EXTENDED
[
SupportedChainId
.
ARBITRUM_KOVAN
],
],
[
SupportedChainId
.
ARBITRUM_ONE
]:
[
ExtendedEther
.
onChain
(
SupportedChainId
.
ARBITRUM_ONE
),
WETH9_EXTENDED
[
SupportedChainId
.
ARBITRUM_ONE
],
...
...
src/constants/tokens.ts
View file @
2eca50be
...
...
@@ -32,13 +32,6 @@ export const UNI: { [chainId: number]: Token } = {
}
export
const
WETH9_EXTENDED
:
{
[
chainId
:
number
]:
Token
}
=
{
...
WETH9
,
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
new
Token
(
SupportedChainId
.
ARBITRUM_KOVAN
,
'
0x4A5e4A42dC430f669086b417AADf2B128beFEfac
'
,
18
,
'
WETH9
'
,
'
Wrapped Ether
'
),
[
SupportedChainId
.
ARBITRUM_ONE
]:
new
Token
(
SupportedChainId
.
ARBITRUM_ONE
,
'
0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
'
,
...
...
src/state/transactions/updater.tsx
View file @
2eca50be
...
...
@@ -33,7 +33,6 @@ export function shouldCheck(lastBlockNumber: number, tx: TxInterface): boolean {
const
RETRY_OPTIONS_BY_CHAIN_ID
:
{
[
chainId
:
number
]:
RetryOptions
}
=
{
[
SupportedChainId
.
ARBITRUM_ONE
]:
{
n
:
10
,
minWait
:
250
,
maxWait
:
1000
},
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
{
n
:
10
,
minWait
:
250
,
maxWait
:
1000
},
}
const
DEFAULT_RETRY_OPTIONS
:
RetryOptions
=
{
n
:
3
,
minWait
:
1000
,
maxWait
:
3000
}
...
...
src/utils/getExplorerLink.ts
View file @
2eca50be
...
...
@@ -22,19 +22,6 @@ export enum ExplorerDataType {
* @param type the type of the data
*/
export
function
getExplorerLink
(
chainId
:
number
,
data
:
string
,
type
:
ExplorerDataType
):
string
{
if
(
chainId
===
SupportedChainId
.
ARBITRUM_KOVAN
)
{
switch
(
type
)
{
case
ExplorerDataType
.
TRANSACTION
:
return
`https://explorer5.arbitrum.io/#/tx/
${
data
}
`
case
ExplorerDataType
.
ADDRESS
:
return
`https://explorer5.arbitrum.io/#/address/
${
data
}
`
case
ExplorerDataType
.
BLOCK
:
return
`https://explorer5.arbitrum.io/#/block/
${
data
}
`
default
:
return
`https://explorer5.arbitrum.io`
}
}
if
(
chainId
===
SupportedChainId
.
ARBITRUM_ONE
)
{
switch
(
type
)
{
case
ExplorerDataType
.
TRANSACTION
:
...
...
src/utils/getLibrary.ts
View file @
2eca50be
...
...
@@ -3,7 +3,6 @@ import { SupportedChainId } from '../constants/chains'
const
NETWORK_POLLING_INTERVALS
:
{
[
chainId
:
number
]:
number
}
=
{
[
SupportedChainId
.
ARBITRUM_ONE
]:
1
_000
,
[
SupportedChainId
.
ARBITRUM_KOVAN
]:
1
_000
,
}
export
default
function
getLibrary
(
provider
:
any
):
Web3Provider
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment