Skip to content

Commit

Permalink
Merge pull request #35 from invariant-labs/add-moon-token
Browse files Browse the repository at this point in the history
add MOON token to the testnet
  • Loading branch information
wojciech-cichocki authored Apr 16, 2024
2 parents 7a3686e + 4a63792 commit e958f16
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
24 changes: 18 additions & 6 deletions src/store/consts/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,20 @@ export const WETH_TEST: Token = {
address: new PublicKey('So11111111111111111111111111111111111111112'),
decimals: 9,
name: 'Ether',
logoURI: 'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/2FPyTwcZLUg1MDrwsyoP4D6s1tM7hAkHYRjkNb5w6Pxk/logo.png',
logoURI:
'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/2FPyTwcZLUg1MDrwsyoP4D6s1tM7hAkHYRjkNb5w6Pxk/logo.png',
coingeckoId: 'ethereum'
}

export const MOON_TEST: Token = {
symbol: 'MOON',
address: new PublicKey('JChWwuoqpXZZn6WjSCssjaozj4u65qNgvGFsV6eJ2g8S'),
decimals: 5,
name: 'Moon Inu',
logoURI: 'https://raw.githubusercontent.com/moon-meme/assets/main/Moon.png',
coingeckoId: ''
}

enum EclipseNetworks {
TEST = 'https://testnet.dev2.eclipsenetwork.xyz', // TODO: TEST and MAIN temporarily set to the same endpoint as DEV; they are unvailable to change to on frontend anyways
MAIN = 'https://staging-rpc-eu.dev2.eclipsenetwork.xyz',
Expand All @@ -101,7 +111,12 @@ const MAX_U64 = new BN('18446744073709551615')
export const tokensPrices: Record<NetworkType, Record<string, TokenPriceData>> = {
Devnet: { USDC_DEV: { price: 1 }, BTC_DEV: { price: 64572.0 }, WETH_DEV: { price: 3430.21 } },
Mainnet: {},
Testnet: { USDC_TEST: { price: 1 }, BTC_TEST: { price: 64572.0 }, WETH_TEST: { price: 3430.21 } },
Testnet: {
USDC_TEST: { price: 1 },
BTC_TEST: { price: 64572.0 },
WETH_TEST: { price: 3430.21 },
MOON_TEST: { price: 0.00000005735 }
},
Localnet: {}
}
export const tokens: Record<NetworkType, Token[]> = {
Expand Down Expand Up @@ -222,10 +237,7 @@ export const airdropTokens: Record<NetworkType, PublicKey[]> = {
export const airdropQuantities: Record<NetworkType, number[]> = {
Devnet: [100 * 10 ** USDC_DEV.decimals, 0.0025 * 10 ** BTC_DEV.decimals],
Mainnet: [],
Testnet: [
10 * 10 ** USDC_TEST.decimals,
0.00025 * 10 ** BTC_TEST.decimals
],
Testnet: [10 * 10 ** USDC_TEST.decimals, 0.00025 * 10 ** BTC_TEST.decimals],
Localnet: []
}

Expand Down
4 changes: 3 additions & 1 deletion src/store/consts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
BTC_DEV,
BTC_TEST,
MAX_U64,
MOON_TEST,
NetworkType,
PRICE_DECIMAL,
Token,
Expand Down Expand Up @@ -400,7 +401,8 @@ export const getNetworkTokensList = (networkType: NetworkType): Record<string, T
return {
[USDC_TEST.address.toString()]: USDC_TEST,
[BTC_TEST.address.toString()]: BTC_TEST,
[WETH_TEST.address.toString()]: WETH_TEST
[WETH_TEST.address.toString()]: WETH_TEST,
[MOON_TEST.address.toString()]: MOON_TEST
}
default:
return {}
Expand Down

0 comments on commit e958f16

Please sign in to comment.