Skip to content

Commit

Permalink
Add more data about the Pontus-X ParaTime
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 16, 2024
1 parent e585a2b commit 23e24e8
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions .changelog/1259.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more data about the Pontus-X ParaTime
8 changes: 8 additions & 0 deletions src/app/components/LayerPicker/LayerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const getDetails = (t: TFunction): Details => ({
chainDecimalId: '23295',
docs: docs.sapphire,
},
[Layer.pontusx]: {
description: t('layerPicker.testnet.pontusx'),
rpcHttp: 'https://pontusx.not.si:443',
// rpcWebSockets: 'wss://testnet.sapphire.oasis.dev/ws', // TODO: fix this
chainHexId: '0x7ec8',
chainDecimalId: '32456',
docs: docs.pontusx1,
},
},
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ describe('SearchResultsView', () => {
isFree: true,
hasUsedCoinGecko: false,
},
[Ticker.EUROe]: {
isLoading: false,
isFree: true,
hasUsedCoinGecko: false,
},
}}
title="test search"
networkForTheme={Network.mainnet}
Expand Down Expand Up @@ -74,6 +79,11 @@ describe('SearchResultsView', () => {
isFree: true,
hasUsedCoinGecko: false,
},
[Ticker.EUROe]: {
isLoading: false,
isFree: true,
hasUsedCoinGecko: false,
},
}}
/>,
)
Expand Down
6 changes: 6 additions & 0 deletions src/coin-gecko/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export const useTokenPrice = (ticker: NativeTicker): TokenPriceInfo => {
isLoading: false,
isFree: true,
}
case Ticker.EUROe:
return {
hasUsedCoinGecko: false,
isLoading: false,
isFree: true,
}
default:
exhaustedTypeWarning('Checking price of unknown token', ticker)
return {
Expand Down
10 changes: 5 additions & 5 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line no-restricted-imports
import { Layer } from './oasis-nexus/generated/api'
import { getTickerForNetwork, NativeTicker } from './types/ticker'
import { getTickerForNetwork, NativeTicker, Ticker } from './types/ticker'
import { SearchScope } from './types/searchScope' // We get this from the generated code to avoid circular imports

export const consensusDecimals = 9
Expand Down Expand Up @@ -125,11 +125,11 @@ const pontusxConfig: LayerConfig = {
runtimeId: undefined,
},
testnet: {
activeNodes: 8, // TODO use correct number
address: 'oasis1qqczuf3x6glkgjuf0xgtcpjjw95r3crf7y2323xd', // TODO use correct address
// See max_batch_gas https://github.com/oasisprotocol/sapphire-paratime/blob/main/runtime/src/lib.rs#L166
activeNodes: 1,
address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c',
blockGasLimit: 15_000_000,
runtimeId: '000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c',
runtimeId: '0000000000000000000000000000000000000000000000004febe52eb412b421',
ticker: Ticker.EUROe,
},
local: {
activeNodes: undefined,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@
},
"testnet": {
"emerald": "The Testnet of the EVM Compatible ParaTime providing a smart contract development environment.",
"sapphire": "The Testnet of the official confidential EVM Compatible ParaTime providing a smart contract development environment with EVM compatibility."
"sapphire": "The Testnet of the official confidential EVM Compatible ParaTime providing a smart contract development environment with EVM compatibility.",
"pontusx": "The Testnet of the official confidential EVM Compatible ParaTime offering a smart contract development environment that is compatible with the Ethereum Virtual Machine (EVM) focused on building a Federated Data Economy."
}
},
"home": {
Expand Down
1 change: 1 addition & 0 deletions src/types/ticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export type NativeTicker = (typeof Ticker)[keyof typeof Ticker]
export const Ticker = {
ROSE: 'ROSE',
TEST: 'TEST',
EUROe: 'EUROe',
} as const

const networkTicker: Record<Network, NativeTicker> = {
Expand Down

0 comments on commit 23e24e8

Please sign in to comment.