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 1a8cef4 commit 51f9793
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 5 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
8 changes: 4 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
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: 3,
address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c',
blockGasLimit: 15_000_000,
runtimeId: '000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c',
runtimeId: '0000000000000000000000000000000000000000000000004febe52eb412b421',
ticker: Ticker.EUROe,

Check failure on line 132 in src/config.ts

View workflow job for this annotation

GitHub Actions / lint

Cannot find name 'Ticker'.
},
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 51f9793

Please sign in to comment.