Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more data about the Pontus-X ParaTime #1259

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
21 changes: 15 additions & 6 deletions src/app/components/LayerPicker/LayerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { useScreenSize } from '../../hooks/useScreensize'
type LayerDetailsContent = {
description: string
rpcHttp: string
rpcWebSockets: string
rpcWebSockets?: string
chainHexId: string
chainDecimalId: string
docs: string
Expand Down Expand Up @@ -68,6 +68,13 @@ const getDetails = (t: TFunction): Details => ({
chainDecimalId: '23295',
docs: docs.sapphire,
},
[Layer.pontusx]: {
description: t('layerPicker.testnet.pontusx'),
rpcHttp: 'https://pontusx.not.si:443',
chainHexId: '0x7ec8',
chainDecimalId: '32456',
docs: docs.pontusx1,
},
},
})

Expand Down Expand Up @@ -143,11 +150,13 @@ const RuntimeDetails: FC<LayerDetailsProps> = props => {
endpoint: details.rpcHttp,
})}
</TextListItem>
<TextListItem>
{t('layerPicker.rpcWebSockets', {
endpoint: details.rpcWebSockets,
})}
</TextListItem>
{details.rpcWebSockets && (
<TextListItem>
{t('layerPicker.rpcWebSockets', {
endpoint: details.rpcWebSockets,
})}
</TextListItem>
)}
<TextListItem>
{t('layerPicker.chainId')}
<TextList>
Expand Down
9 changes: 4 additions & 5 deletions src/app/components/Search/search-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ export const searchSuggestionTerms = {
},
cipher: undefined,
pontusx: {
// TODO: provide proper suggestions
suggestedBlock: '4260',
suggestedTransaction: '0xd9b5c08be1cb74229abedd9b3e1afb8b43228085a6abf72993db415959ab6b35',
suggestedAccount: '0xfA3AC9f65C9D75EE3978ab76c6a1105f03156204',
suggestedTokenFragment: 'USD',
suggestedBlock: '390632',
suggestedTransaction: '0x244f71bcc67a0359c0d1e417b302ec3b358193769399e71f0112c58135f0fc82',
suggestedAccount: '0xC09c6A1d5538E7ed135d6146241c8da11e92130B',
suggestedTokenFragment: 'Ocean',
},
consensus: undefined,
},
Expand Down
7 changes: 3 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,10 @@ 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',
tokens: [NativeToken.EUROe, NativeToken.TEST],
fiatCurrency: 'eur',
},
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 @@ -462,7 +462,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
Loading