diff --git a/.changelog/1259.trivial.md b/.changelog/1259.trivial.md new file mode 100644 index 0000000000..bdb7553762 --- /dev/null +++ b/.changelog/1259.trivial.md @@ -0,0 +1 @@ +Add more data about the Pontus-X ParaTime diff --git a/src/app/components/LayerPicker/LayerDetails.tsx b/src/app/components/LayerPicker/LayerDetails.tsx index aa32f6e7fa..e411bcc084 100644 --- a/src/app/components/LayerPicker/LayerDetails.tsx +++ b/src/app/components/LayerPicker/LayerDetails.tsx @@ -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, + }, }, }) diff --git a/src/app/pages/SearchResultsPage/__tests__/SearchResultsList.test.tsx b/src/app/pages/SearchResultsPage/__tests__/SearchResultsList.test.tsx index cf9ef0771f..010383d83b 100644 --- a/src/app/pages/SearchResultsPage/__tests__/SearchResultsList.test.tsx +++ b/src/app/pages/SearchResultsPage/__tests__/SearchResultsList.test.tsx @@ -36,6 +36,11 @@ describe('SearchResultsView', () => { isFree: true, hasUsedCoinGecko: false, }, + [Ticker.EUROe]: { + isLoading: false, + isFree: true, + hasUsedCoinGecko: false, + }, }} title="test search" networkForTheme={Network.mainnet} @@ -74,6 +79,11 @@ describe('SearchResultsView', () => { isFree: true, hasUsedCoinGecko: false, }, + [Ticker.EUROe]: { + isLoading: false, + isFree: true, + hasUsedCoinGecko: false, + }, }} />, ) diff --git a/src/coin-gecko/api.ts b/src/coin-gecko/api.ts index 9e6afb431f..bb7df822f9 100644 --- a/src/coin-gecko/api.ts +++ b/src/coin-gecko/api.ts @@ -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 { diff --git a/src/config.ts b/src/config.ts index 69f9d23ed7..9448be91b1 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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: 3, + address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c', blockGasLimit: 15_000_000, - runtimeId: '000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c', + runtimeId: '0000000000000000000000000000000000000000000000004febe52eb412b421', + ticker: Ticker.EUROe, }, local: { activeNodes: undefined, diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 1d88ea6b71..520c58644f 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -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": { diff --git a/src/types/ticker.ts b/src/types/ticker.ts index 5c7a19b737..cee89b2966 100644 --- a/src/types/ticker.ts +++ b/src/types/ticker.ts @@ -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 = {