diff --git a/.changelog/1497.internal.md b/.changelog/1497.internal.md new file mode 100644 index 000000000..7b8729f94 --- /dev/null +++ b/.changelog/1497.internal.md @@ -0,0 +1 @@ +Sync PontusX with API changes diff --git a/src/app/components/LayerPicker/LayerDetails.tsx b/src/app/components/LayerPicker/LayerDetails.tsx index 19673a8d8..eebd744e9 100644 --- a/src/app/components/LayerPicker/LayerDetails.tsx +++ b/src/app/components/LayerPicker/LayerDetails.tsx @@ -76,7 +76,7 @@ const getDetails = (t: TFunction): Details => ({ chainDecimalId: '32456', docs: docs.pontusx1, }, - [Layer.pontusx]: { + [Layer.pontusxtest]: { description: t('layerPicker.testnet.pontusxtest'), // See https://docs.pontus-x.eu/docs/Pontus-X%20Testnet/quick_start#setup-metamask rpcHttp: 'https://rpc.test.pontus-x.eu', diff --git a/src/app/components/Search/search-utils.ts b/src/app/components/Search/search-utils.ts index bf8f12564..87f37cb05 100644 --- a/src/app/components/Search/search-utils.ts +++ b/src/app/components/Search/search-utils.ts @@ -34,7 +34,7 @@ export const searchSuggestionTerms = { }, cipher: undefined, pontusxdev: undefined, - pontusx: undefined, + pontusxtest: undefined, consensus: undefined, }, testnet: { @@ -57,7 +57,7 @@ export const searchSuggestionTerms = { suggestedAccount: '0xC09c6A1d5538E7ed135d6146241c8da11e92130B', suggestedTokenFragment: 'Ocean', }, - pontusx: { + pontusxtest: { suggestedBlock: '390632', // TODO suggestedTransaction: '0x244f71bcc67a0359c0d1e417b302ec3b358193769399e71f0112c58135f0fc82', // TODO suggestedAccount: '0xC09c6A1d5538E7ed135d6146241c8da11e92130B', // TODO diff --git a/src/app/data/pontusx-account-names.ts b/src/app/data/pontusx-account-names.ts index a17732a28..934ac5757 100644 --- a/src/app/data/pontusx-account-names.ts +++ b/src/app/data/pontusx-account-names.ts @@ -94,7 +94,7 @@ export const useSearchForPontusXAccountsByName = ( : namedAccounts?.list.filter(textMatcher).map( (account): AccountNameSearchRuntimeMatch => ({ network, - layer: Layer.pontusx, + layer: Layer.pontusxtest, address: account.address, }), ) diff --git a/src/app/hooks/useAccountMetadata.ts b/src/app/hooks/useAccountMetadata.ts index 9ee2df82e..25d68e045 100644 --- a/src/app/hooks/useAccountMetadata.ts +++ b/src/app/hooks/useAccountMetadata.ts @@ -12,7 +12,7 @@ import { getOasisAddress } from '../utils/helpers' * since this function also includes caching. */ export const useAccountMetadata = (scope: SearchScope, address: string): AccountMetadataInfo => { - const isPontusX = scope.layer === Layer.pontusx || scope.layer === Layer.pontusxdev + const isPontusX = scope.layer === Layer.pontusxtest || scope.layer === Layer.pontusxdev const pontusXData = usePontusXAccountMetadata(address, { enabled: isPontusX }) const oasisData = useOasisAccountMetadata(scope.network, scope.layer, getOasisAddress(address), { enabled: !isPontusX, @@ -24,7 +24,7 @@ export const useSearchForAccountsByName = ( scope: SearchScope, nameFragment = '', ): AccountNameSearchResults => { - const isPontusX = scope.layer === Layer.pontusx || scope.layer === Layer.pontusxdev + const isPontusX = scope.layer === Layer.pontusxtest || scope.layer === Layer.pontusxdev const isValidPontusXSearch = isPontusX && !!nameFragment const pontusXResults = useSearchForPontusXAccountsByName(scope.network, nameFragment, { enabled: isValidPontusXSearch, diff --git a/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx b/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx index aa04be45f..fc3a0b721 100644 --- a/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx +++ b/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx @@ -63,7 +63,7 @@ const getContent = (t: TFunction) => { }, [Layer.cipher]: undefined, [Layer.pontusxdev]: undefined, - [Layer.pontusx]: undefined, + [Layer.pontusxtest]: undefined, }, [Network.testnet]: { [Layer.emerald]: { @@ -118,7 +118,7 @@ const getContent = (t: TFunction) => { url: docs.pontusx3, }, }, - [Layer.pontusx]: { + [Layer.pontusxtest]: { primary: { description: t('learningMaterials.pontusxtestnet.1.description'), header: t('learningMaterials.pontusxtestnet.1.header'), diff --git a/src/app/utils/content.tsx b/src/app/utils/content.tsx index bd7c3f026..e8d110363 100644 --- a/src/app/utils/content.tsx +++ b/src/app/utils/content.tsx @@ -10,7 +10,7 @@ export const getLayerLabels = (t: TFunction): Record => ({ [Layer.sapphire]: t('common.sapphire'), [Layer.cipher]: t('common.cipher'), [Layer.pontusxdev]: t('pontusx.devnet'), - [Layer.pontusx]: t('pontusx.testnet'), + [Layer.pontusxtest]: t('pontusx.testnet'), [Layer.consensus]: t('common.consensus'), }) diff --git a/src/app/utils/faucet-links.ts b/src/app/utils/faucet-links.ts index 1bf0c5823..b5ccd0534 100644 --- a/src/app/utils/faucet-links.ts +++ b/src/app/utils/faucet-links.ts @@ -12,7 +12,7 @@ const faucetLinks: Partial = { [Layer.emerald]: 3, [Layer.cipher]: 4, [Layer.pontusxdev]: 5, - [Layer.pontusx]: 6, + [Layer.pontusxtest]: 6, } export const orderByLayer = (itemA: HasLayer, itemB: HasLayer): number =>