Skip to content

Commit

Permalink
feat!: continue removing old testnets references (#164)
Browse files Browse the repository at this point in the history
* chore: continue removing old testnets references

* chore: undo changes to CHANGELOG

---------

Co-authored-by: Mathias Möller <mathias@li.finance>
  • Loading branch information
rialco and mathiasmoeller committed Apr 24, 2023
1 parent 996520e commit 1dc005b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 254 deletions.
10 changes: 0 additions & 10 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,11 @@ export enum ChainKey {
ARN = 'arn',

// Testnets
ROP = 'rop',
RIN = 'rin',
GOR = 'gor',
METT = 'mett',
DIOT = 'diot',
KOV = 'kov',
MUM = 'mum',
ARBT = 'arbt',
ARBG = 'arbg',
OPTT = 'optt',
OPTG = 'optg',
BSCT = 'bsct',
HECT = 'hect',
Expand Down Expand Up @@ -161,16 +156,11 @@ export enum ChainId {
ARN = 42170,

// Testnets
ROP = 3,
RIN = 4,
GOR = 5,
METT = 12,
DIOT = 13,
KOV = 42,
MUM = 80001,
ARBT = 421611,
ARBG = 421613,
OPTT = 69,
OPTG = 420,
BSCT = 97,
HECT = 256,
Expand Down
139 changes: 0 additions & 139 deletions src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,10 @@ const basicCoins: BasicCoin[] = [
},

// Testnets
[ChainId.ROP]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.RIN]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.GOR]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.KOV]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.ONET]: {
address: '0x268d6ff391b41b36a13b1693bd25f87fb4e4b392',
decimals: 18,
Expand All @@ -130,18 +118,10 @@ const basicCoins: BasicCoin[] = [
address: '0xd66c6b4f0be8ce5b39d52e0fd1344c389929b378',
decimals: 18,
},
[ChainId.OPTT]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.OPTG]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.ARBT]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.ARBG]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
Expand Down Expand Up @@ -352,22 +332,10 @@ const basicCoins: BasicCoin[] = [
},

// Testnets
[ChainId.ROP]: {
address: '0x31f42841c2db5173425b5223809cf3a38fede360', // on para 0xad6d458402f60fd3bd25163575031acdce07538d, on faucet 0xf80a32a835f79d7787e8a8ee5721d0feafd78108
decimals: 18,
},
[ChainId.RIN]: {
address: '0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea',
decimals: 18,
},
[ChainId.GOR]: {
address: '0xdc31ee1784292379fbb2964b3b9c4124d8f89c60', // other: 0xc61ba16e864efbd06a9fe30aab39d18b8f63710a'
decimals: 18,
},
[ChainId.KOV]: {
address: '0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa', // other: 0xc61ba16e864efbd06a9fe30aab39d18b8f63710a'
decimals: 18,
},
[ChainId.MUM]: {
address: '0xb224913ce3851b0a0d7c0fb461eef40f2e31ddb8',
decimals: 18,
Expand Down Expand Up @@ -605,18 +573,6 @@ const basicCoins: BasicCoin[] = [
},

// Testnets
[ChainId.ROP]: {
address: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83',
decimals: 6,
},
[ChainId.RIN]: {
address: '0xd9ba894e0097f8cc2bbc9d24d308b98e36dc6d02',
decimals: 6,
},
[ChainId.KOV]: {
address: '0x07de306ff27a2b630b1141956844eb1552b956b5',
decimals: 6,
},
[ChainId.GOR]: {
address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
decimals: 6,
Expand Down Expand Up @@ -745,14 +701,6 @@ const basicCoins: BasicCoin[] = [
},

// Testnets
[ChainId.ROP]: {
address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f',
decimals: 6,
},
[ChainId.RIN]: {
address: '0x4dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b',
decimals: 6,
},
[ChainId.GOR]: {
address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
decimals: 6,
Expand Down Expand Up @@ -834,14 +782,6 @@ const basicCoins: BasicCoin[] = [
logoURI: 'https://xpollinate.io/icon192.png',
verified: false,
chains: {
[ChainId.ROP]: {
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
decimals: 18,
},
[ChainId.RIN]: {
address: '0x9ac2c46d7acc21c881154d57c0dc1c55a3139198',
decimals: 18,
},
[ChainId.GOR]: {
address: '0x8a1cad3703e0beae0e0237369b4fcd04228d1682',
decimals: 18,
Expand All @@ -850,18 +790,10 @@ const basicCoins: BasicCoin[] = [
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
decimals: 18,
},
[ChainId.ARBT]: {
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
decimals: 18,
},
[ChainId.BSCT]: {
address: '0xd86bcb7d85163fbc81756bb9cc22225d6abccadb',
decimals: 18,
},
[ChainId.OPTT]: {
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
decimals: 18,
},
},
},

Expand Down Expand Up @@ -1068,30 +1000,14 @@ const basicCoins: BasicCoin[] = [
},

// Testnets
[ChainId.ROP]: {
address: '0xc778417e063141139fce010982780140aa0cd5ab',
decimals: 18,
},
[ChainId.RIN]: {
address: '0xc778417e063141139fce010982780140aa0cd5ab',
decimals: 18,
},
[ChainId.GOR]: {
address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
decimals: 18,
},
[ChainId.KOV]: {
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
decimals: 18,
},
[ChainId.MUM]: {
address: '0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa',
decimals: 18,
},
[ChainId.OPTT]: {
address: '0x4200000000000000000000000000000000000006',
decimals: 18,
},
[ChainId.OPTG]: {
address: '0x4200000000000000000000000000000000000006',
decimals: 18,
Expand Down Expand Up @@ -1649,28 +1565,6 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
},

// Testnets
[ChainId.ROP]: {
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
address: '0xc778417e063141139fce010982780140aa0cd5ab',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.ROP,
coinKey: CoinKey.WETH,
name: 'WETH',
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.RIN]: {
// https://rinkeby.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
address: '0xc778417e063141139fce010982780140aa0cd5ab',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.RIN,
coinKey: CoinKey.WETH,
name: 'WETH',
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.GOR]: {
// https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
Expand All @@ -1682,17 +1576,6 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.KOV]: {
// https://kovan.etherscan.io/address/0xd0a1e359811322d97991e03f863a0c30c2cf029c
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.KOV,
coinKey: CoinKey.WETH,
name: 'WETH',
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.MUM]: {
// https://mumbai.polygonscan.com/token/0x9c3c9283d3e44854697cd22d3faa240cfb032889
address: '0x9c3c9283d3e44854697cd22d3faa240cfb032889',
Expand All @@ -1713,17 +1596,6 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
name: 'WRAPPED ONE',
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
},
[ChainId.ARBT]: {
// https://testnet.arbiscan.io/token/0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681
address: '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.ARBT,
coinKey: CoinKey.WETH,
name: 'WETH',
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.ARBG]: {
// https://goerli.arbiscan.io/token/0x42da9eE191833756c618778145A86E6709f70C9b
address: '0x42da9eE191833756c618778145A86E6709f70C9b',
Expand All @@ -1735,17 +1607,6 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.OPTT]: {
// https://kovan-optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
address: '0x4200000000000000000000000000000000000006',
symbol: 'WETH',
decimals: 18,
chainId: ChainId.OPTT,
coinKey: CoinKey.WETH,
name: 'WETH',
logoURI:
'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
},
[ChainId.OPTG]: {
// https://blockscout.com/optimism/goerli/address/0x4200000000000000000000000000000000000006
address: '0x4200000000000000000000000000000000000006',
Expand Down
100 changes: 0 additions & 100 deletions src/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1152,72 +1152,6 @@ export const supportedExchanges: Array<Exchange> = [
},

// TESTNETS
// 3 - Ropsten
{
key: 'uniswap-rop',
name: 'Uniswap',
chainId: ChainId.ROP,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
webUrl: 'https://app.uniswap.org/',
tokenlistUrl:
'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
initCodeHash:
'0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
baseTokens: [
findDefaultToken(CoinKey.ETH, ChainId.ROP),
findDefaultToken(CoinKey.WETH, ChainId.ROP),
],
},

// TODO: sushiswap does not work properly
// {
// key: 'sushiswap-rop',
// name: 'SushiSwap',
// chainId: ChainId.ROP,
// logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
// webUrl: 'https://app.sushi.com/swap',
// tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/ropsten.json',
// routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
// factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
// initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
// },

// 4 - Rinkeby
{
key: 'uniswap-rin',
name: 'Uniswap',
chainId: ChainId.RIN,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
webUrl: 'https://app.uniswap.org/',
tokenlistUrl:
'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
initCodeHash:
'0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
baseTokens: [
findDefaultToken(CoinKey.ETH, ChainId.RIN),
findDefaultToken(CoinKey.WETH, ChainId.RIN),
],
},

// TODO: sushiswap does not work properly
// {
// key: 'sushiswap-rin',
// name: 'SushiSwap',
// chainId: ChainId.RIN,
// logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
// webUrl: 'https://app.sushi.com/swap',
// tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/rinkeby.json',
// routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
// factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
// initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
// },

// 5 - Goerli
{
key: 'uniswap-gor',
Expand Down Expand Up @@ -1252,40 +1186,6 @@ export const supportedExchanges: Array<Exchange> = [
// baseTokens: [],
// },

// 42 - Kovan
{
key: 'uniswap-kov',
name: 'Uniswap',
chainId: ChainId.KOV,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
webUrl: 'https://app.uniswap.org/',
tokenlistUrl:
'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
initCodeHash:
'0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
baseTokens: [
findDefaultToken(CoinKey.ETH, ChainId.KOV),
findDefaultToken(CoinKey.WETH, ChainId.KOV),
],
},

// TODO: sushiswap does not work properly
// {
// key: 'sushiswap-kov',
// name: 'SushiSwap',
// chainId: ChainId.KOV,
// logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
// webUrl: 'https://app.sushi.com/swap',
// tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/kovan.json',
// routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
// factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
// initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
// baseTokens: [],
// },

// 1666700000 - HARMONY TESTNET
// TODO: Only sushiswap support ONET but official swap website also does not work correctly

Expand Down

0 comments on commit 1dc005b

Please sign in to comment.