Skip to content

Commit

Permalink
Properly Set up Pontus-X devnet and testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed May 29, 2024
1 parent 6ab38a4 commit fc16892
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 23 deletions.
11 changes: 9 additions & 2 deletions src/app/components/LayerPicker/LayerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,20 @@ const getDetails = (t: TFunction): Details => ({
chainDecimalId: '23295',
docs: docs.sapphire,
},
[Layer.pontusx]: {
description: t('layerPicker.testnet.pontusx'),
[Layer.pontusxdev]: {
description: t('layerPicker.testnet.pontusxdev'),
rpcHttp: 'https://pontusx.not.si:443',
chainHexId: '0x7ec8',
chainDecimalId: '32456',
docs: docs.pontusx1,
},
[Layer.pontusx]: {
description: t('layerPicker.testnet.pontusxtest'),
rpcHttp: 'https://pontusx.not.si:443',
chainHexId: '0x7ec9',
chainDecimalId: '32457',
docs: docs.pontusx1,
},
},
})

Expand Down
24 changes: 12 additions & 12 deletions src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,35 +103,35 @@ const getContent = (t: TFunction) => {
[Layer.cipher]: undefined,
[Layer.pontusxdev]: {
primary: {
description: t('learningMaterials.pontusx.1.description'),
header: t('learningMaterials.pontusx.1.header'),
description: t('learningMaterials.pontusxdevnet.1.description'),
header: t('learningMaterials.pontusxdevnet.1.header'),
url: docs.pontusx1,
},
secondary: {
description: t('learningMaterials.pontusx.2.description'),
header: t('learningMaterials.pontusx.2.header'),
description: t('learningMaterials.pontusxdevnet.2.description'),
header: t('learningMaterials.pontusxdevnet.2.header'),
url: docs.pontusx2,
},
tertiary: {
description: t('learningMaterials.pontusx.2.description'),
header: t('learningMaterials.pontusx.3.header'),
description: t('learningMaterials.pontusxdevnet.3.description'),
header: t('learningMaterials.pontusxdevnet.3.header'),
url: docs.pontusx3,
},
},
[Layer.pontusx]: {
primary: {
description: t('learningMaterials.pontusx.1.description'),
header: t('learningMaterials.pontusx.1.header'),
description: t('learningMaterials.pontusxtestnet.1.description'),
header: t('learningMaterials.pontusxtestnet.1.header'),
url: docs.pontusx1,
},
secondary: {
description: t('learningMaterials.pontusx.2.description'),
header: t('learningMaterials.pontusx.2.header'),
description: t('learningMaterials.pontusxtestnet.2.description'),
header: t('learningMaterials.pontusxtestnet.2.header'),
url: docs.pontusx2,
},
tertiary: {
description: t('learningMaterials.pontusx.2.description'),
header: t('learningMaterials.pontusx.3.header'),
description: t('learningMaterials.pontusxtestnet.3.description'),
header: t('learningMaterials.pontusxtestnet.3.header'),
url: docs.pontusx3,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/utils/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const getLayerLabels = (t: TFunction): Record<Layer, string> => ({
[Layer.emerald]: t('common.emerald'),
[Layer.sapphire]: t('common.sapphire'),
[Layer.cipher]: t('common.cipher'),
[Layer.pontusxdev]: t('common.pontusx'), // TODO
[Layer.pontusx]: t('common.pontusx'), // TODO
[Layer.pontusxdev]: t('pontusx.devnet'),
[Layer.pontusx]: t('pontusx.testnet'),
[Layer.consensus]: t('common.consensus'),
})

Expand Down
6 changes: 3 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const pontusxDevConfig: LayerConfig = {
tokens: [NativeToken.EUROe],
},
testnet: {
activeNodes: 1,
activeNodes: 3,
address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c',
blockGasLimit: 15_000_000,
runtimeId: '0000000000000000000000000000000000000000000000004febe52eb412b421',
Expand All @@ -144,9 +144,9 @@ const pontusxTestConfig: LayerConfig = {
},
testnet: {
activeNodes: 1,
address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c',
address: 'oasis1qr02702pr8ecjuff2z3es254pw9xl6z2yg9qcc6c', // TODO
blockGasLimit: 15_000_000,
runtimeId: '0000000000000000000000000000000000000000000000004febe52eb412b421',
runtimeId: '00000000000000000000000000000000000000000000000004a6f9071c007069',
tokens: [NativeToken.EUROe, NativeToken.TEST],
fiatCurrency: 'eur',
},
Expand Down
26 changes: 22 additions & 4 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"paratime": "Paratime",
"parentheses": "({{subject}})",
"percentage": "Percentage",
"pontusx": "Pontus-X",
"proposal": "Proposal",
"proposer": "Proposer",
"rank": "Rank",
Expand Down Expand Up @@ -295,7 +294,21 @@
"header": "Add the {{ layer }} Testnet to Hardhat",
"description": "Open up your hardhat.config.ts and drop in these lines."
},
"pontusx": {
"pontusxdevnet": {
"1": {
"header": "What is the Pontus-X Network?",
"description": "The Pontus-X Network is our 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."
},
"2": {
"header": "Devnet Parameters",
"description": "The Devnet for Pontus-X may undergo frequent version upgrades."
},
"3": {
"header": "Adding the Pontus-X Devnet to Hardhat",
"description": "To integrate with Pontus-X devnet, open your hardhat.config.ts file and insert the following configurations."
}
},
"pontusxtestnet": {
"1": {
"header": "What is the Pontus-X Network?",
"description": "The Pontus-X Network is our 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."
Expand All @@ -306,7 +319,7 @@
},
"3": {
"header": "Adding the Pontus-X Testnet to Hardhat",
"description": "To integrate with Pontus-X, open your hardhat.config.ts file and insert the following configurations."
"description": "To integrate with Pontus-X testnet, open your hardhat.config.ts file and insert the following configurations."
}
},
"token": {
Expand Down Expand Up @@ -516,7 +529,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.",
"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."
"pontusxdev": "The Devnet 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.",
"pontusxtest": "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 Expand Up @@ -564,6 +578,10 @@
"online": "Online",
"outdated": "Out-of-date"
},
"pontusx": {
"devnet": "Pontus-X devnet",
"testnet": "Pontus-X testnet"
},
"search": {
"placeholder": "Address, Block, Contract, Transaction hash, Token name, etc.",
"error": {
Expand Down

0 comments on commit fc16892

Please sign in to comment.