diff --git a/.changeset/tall-knives-end.md b/.changeset/tall-knives-end.md new file mode 100644 index 000000000000..0dbae57f6a32 --- /dev/null +++ b/.changeset/tall-knives-end.md @@ -0,0 +1,15 @@ +--- +"@ledgerhq/types-cryptoassets": minor +"@ledgerhq/hw-app-exchange": minor +"@ledgerhq/cryptoassets": minor +"@ledgerhq/types-live": minor +"@ledgerhq/crypto-icons-ui": minor +"@ledgerhq/coin-evm": minor +"ledger-live-desktop": minor +"live-mobile": minor +"@ledgerhq/live-common": minor +"@ledgerhq/coin-framework": minor +"@ledgerhq/live-cli": minor +--- + +Add PulseChain evm network diff --git a/apps/cli/src/live-common-setup-base.ts b/apps/cli/src/live-common-setup-base.ts index ff2370140a86..9ee15b3767ed 100644 --- a/apps/cli/src/live-common-setup-base.ts +++ b/apps/cli/src/live-common-setup-base.ts @@ -82,6 +82,8 @@ setSupportedCurrencies([ "klaytn", "polygon_zk_evm", "polygon_zk_evm_testnet", + "pulsechain", + "pulsechain_testnet", "base", "base_sepolia", "stacks", diff --git a/apps/ledger-live-desktop/src/live-common-set-supported-currencies.ts b/apps/ledger-live-desktop/src/live-common-set-supported-currencies.ts index 418f4e80f3d1..42c320505ad9 100644 --- a/apps/ledger-live-desktop/src/live-common-set-supported-currencies.ts +++ b/apps/ledger-live-desktop/src/live-common-set-supported-currencies.ts @@ -77,6 +77,8 @@ setSupportedCurrencies([ "klaytn", "polygon_zk_evm", "polygon_zk_evm_testnet", + "pulsechain", + "pulsechain_testnet", "base", "base_sepolia", "stacks", diff --git a/apps/ledger-live-mobile/src/live-common-setup.ts b/apps/ledger-live-mobile/src/live-common-setup.ts index e6e4e721f9ad..e20cdce65002 100644 --- a/apps/ledger-live-mobile/src/live-common-setup.ts +++ b/apps/ledger-live-mobile/src/live-common-setup.ts @@ -110,6 +110,8 @@ setSupportedCurrencies([ "klaytn", "polygon_zk_evm", "polygon_zk_evm_testnet", + "pulsechain", + "pulsechain_testnet", "base", "base_sepolia", "stacks", diff --git a/apps/ledger-live-mobile/src/newArch/features/Web3Hub/utils/api/mocks/manifests.ts b/apps/ledger-live-mobile/src/newArch/features/Web3Hub/utils/api/mocks/manifests.ts index 4d5356930336..ab2f1ad8fe66 100644 --- a/apps/ledger-live-mobile/src/newArch/features/Web3Hub/utils/api/mocks/manifests.ts +++ b/apps/ledger-live-mobile/src/newArch/features/Web3Hub/utils/api/mocks/manifests.ts @@ -129,6 +129,8 @@ export const mocks: AppManifest[] = [ "klaytn", "polygon_zk_evm", "polygon_zk_evm_testnet", + "pulsechain", + "pulsechain_testnet", "base", "base_goerli", "base_sepolia", diff --git a/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx b/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx index a3806464fd17..d4e2060fe363 100644 --- a/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx +++ b/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx @@ -87,6 +87,8 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { const coreum = useFeature("currencyCoreum"); const polygonZkEvm = useFeature("currencyPolygonZkEvm"); const polygonZkEvmTestnet = useFeature("currencyPolygonZkEvmTestnet"); + const pulseChain = useFeature("currencyPulseChain"); + const pulseChainTestnet = useFeature("currencyPulseChainTestnet"); const base = useFeature("currencyBase"); const baseSepolia = useFeature("currencyBaseSepolia"); const klaytn = useFeature("currencyKlaytn"); @@ -136,6 +138,8 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { coreum, polygon_zk_evm: polygonZkEvm, polygon_zk_evm_testnet: polygonZkEvmTestnet, + pulsechain: pulseChain, + pulsechain_testnet: pulseChainTestnet, base, base_sepolia: baseSepolia, klaytn, @@ -184,6 +188,8 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { coreum, polygonZkEvm, polygonZkEvmTestnet, + pulseChain, + pulseChainTestnet, base, baseSepolia, klaytn, diff --git a/libs/coin-framework/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap b/libs/coin-framework/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap index f0e049bd042b..702243d6b2e4 100644 --- a/libs/coin-framework/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap +++ b/libs/coin-framework/src/currencies/__snapshots__/formatCurrencyUnit.test.ts.snap @@ -238,6 +238,10 @@ exports[`formatCurrencyUnit with custom options with locale de-DE should correct exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format PosW unit (posw) 1`] = `"123.456.789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format QRL unit (QRL) 1`] = `"123.456.789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale de-DE should correctly format Qtum unit (qtum) 1`] = `"123.456.789,00000000- -QTUM"`; @@ -564,6 +568,10 @@ exports[`formatCurrencyUnit with custom options with locale en-US should correct exports[`formatCurrencyUnit with custom options with locale en-US should correctly format PosW unit (posw) 1`] = `"123,456,789.00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale en-US should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0.012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale en-US should correctly format PulseChain unit (Pulse) 1`] = `"0.012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale en-US should correctly format QRL unit (QRL) 1`] = `"123,456,789.00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale en-US should correctly format Qtum unit (qtum) 1`] = `"123,456,789.00000000- -QTUM"`; @@ -890,6 +898,10 @@ exports[`formatCurrencyUnit with custom options with locale es-ES should correct exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format PosW unit (posw) 1`] = `"123.456.789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format QRL unit (QRL) 1`] = `"123.456.789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale es-ES should correctly format Qtum unit (qtum) 1`] = `"123.456.789,00000000- -QTUM"`; @@ -1216,6 +1228,10 @@ exports[`formatCurrencyUnit with custom options with locale fr-FR should correct exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format PosW unit (posw) 1`] = `"123 456 789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format QRL unit (QRL) 1`] = `"123 456 789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale fr-FR should correctly format Qtum unit (qtum) 1`] = `"123 456 789,00000000- -QTUM"`; @@ -1542,6 +1558,10 @@ exports[`formatCurrencyUnit with custom options with locale ja-JP should correct exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format PosW unit (posw) 1`] = `"123,456,789.00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0.012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format PulseChain unit (Pulse) 1`] = `"0.012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format QRL unit (QRL) 1`] = `"123,456,789.00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale ja-JP should correctly format Qtum unit (qtum) 1`] = `"123,456,789.00000000- -QTUM"`; @@ -1868,6 +1888,10 @@ exports[`formatCurrencyUnit with custom options with locale ko-KR should correct exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format PosW unit (posw) 1`] = `"123,456,789.00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0.012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format PulseChain unit (Pulse) 1`] = `"0.012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format QRL unit (QRL) 1`] = `"123,456,789.00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale ko-KR should correctly format Qtum unit (qtum) 1`] = `"123,456,789.00000000- -QTUM"`; @@ -2194,6 +2218,10 @@ exports[`formatCurrencyUnit with custom options with locale pt-BR should correct exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format PosW unit (posw) 1`] = `"123.456.789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format QRL unit (QRL) 1`] = `"123.456.789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale pt-BR should correctly format Qtum unit (qtum) 1`] = `"123.456.789,00000000- -QTUM"`; @@ -2520,6 +2548,10 @@ exports[`formatCurrencyUnit with custom options with locale ru-RU should correct exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format PosW unit (posw) 1`] = `"123 456 789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format QRL unit (QRL) 1`] = `"123 456 789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale ru-RU should correctly format Qtum unit (qtum) 1`] = `"123 456 789,00000000- -QTUM"`; @@ -2846,6 +2878,10 @@ exports[`formatCurrencyUnit with custom options with locale tr-TR should correct exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format PosW unit (posw) 1`] = `"123.456.789,00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0,012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format PulseChain unit (Pulse) 1`] = `"0,012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format QRL unit (QRL) 1`] = `"123.456.789,00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale tr-TR should correctly format Qtum unit (qtum) 1`] = `"123.456.789,00000000- -QTUM"`; @@ -3172,6 +3208,10 @@ exports[`formatCurrencyUnit with custom options with locale zh-CN should correct exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format PosW unit (posw) 1`] = `"123,456,789.00000000- -POSW"`; +exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0.012345678900000000- -tPLS"`; + +exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format PulseChain unit (Pulse) 1`] = `"0.012345678900000000- -PLS"`; + exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format QRL unit (QRL) 1`] = `"123,456,789.00000000- -QRL"`; exports[`formatCurrencyUnit with custom options with locale zh-CN should correctly format Qtum unit (qtum) 1`] = `"123,456,789.00000000- -QTUM"`; @@ -3498,6 +3538,10 @@ exports[`formatCurrencyUnit with default options should correctly format Polygon exports[`formatCurrencyUnit with default options should correctly format PosW unit (posw) 1`] = `"123,456,789"`; +exports[`formatCurrencyUnit with default options should correctly format PulseChain Testnet unit (Test Pulse) 1`] = `"0.0123456"`; + +exports[`formatCurrencyUnit with default options should correctly format PulseChain unit (Pulse) 1`] = `"0.0123456"`; + exports[`formatCurrencyUnit with default options should correctly format QRL unit (QRL) 1`] = `"123,456,789"`; exports[`formatCurrencyUnit with default options should correctly format Qtum unit (qtum) 1`] = `"123,456,789"`; diff --git a/libs/coin-modules/coin-evm/src/__tests__/unit/editTransaction/__snapshots__/getFormattedFeeFields.test.ts.snap b/libs/coin-modules/coin-evm/src/__tests__/unit/editTransaction/__snapshots__/getFormattedFeeFields.test.ts.snap index 2b59c5c6e0ff..911869faa3ca 100644 --- a/libs/coin-modules/coin-evm/src/__tests__/unit/editTransaction/__snapshots__/getFormattedFeeFields.test.ts.snap +++ b/libs/coin-modules/coin-evm/src/__tests__/unit/editTransaction/__snapshots__/getFormattedFeeFields.test.ts.snap @@ -423,6 +423,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -954,6 +972,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0105 REOSC", @@ -1485,6 +1521,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -2016,6 +2070,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -2547,6 +2619,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0105 REOSC", @@ -3078,6 +3168,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0105 REOSC", @@ -3609,6 +3717,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -4140,6 +4266,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -4671,6 +4815,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0105 REOSC", @@ -5202,6 +5364,24 @@ exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly } `; +exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000105 tPLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000105 PLS", + "formattedGasPrice": "5 beat", + "formattedMaxFeePerGas": "0 beat", + "formattedMaxPriorityFeePerGas": "0 beat", +} +`; + exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0105 REOSC", @@ -5733,6 +5913,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -6264,6 +6462,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0042 REOSC", @@ -6795,6 +7011,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -7326,6 +7560,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -7857,6 +8109,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0042 REOSC", @@ -8388,6 +8658,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0042 REOSC", @@ -8919,6 +9207,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -9450,6 +9756,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -9981,6 +10305,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0,000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0,000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0,0042 REOSC", @@ -10512,6 +10854,24 @@ exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly } `; +exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly format fee fields for PulseChain Testnet unit 1`] = ` +{ + "formattedFeeValue": "0.000042 tPLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + +exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly format fee fields for PulseChain unit 1`] = ` +{ + "formattedFeeValue": "0.000042 PLS", + "formattedGasPrice": "0 beat", + "formattedMaxFeePerGas": "2 beat", + "formattedMaxPriorityFeePerGas": "1 beat", +} +`; + exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly format fee fields for REOSC unit 1`] = ` { "formattedFeeValue": "0.0042 REOSC", diff --git a/libs/ledger-live-common/src/apps/polyfill.ts b/libs/ledger-live-common/src/apps/polyfill.ts index f509c82ed908..7446b14e2571 100644 --- a/libs/ledger-live-common/src/apps/polyfill.ts +++ b/libs/ledger-live-common/src/apps/polyfill.ts @@ -62,6 +62,7 @@ function declareDep(name: string, dep: string): void { ["Paraswap", "Ethereum"], ["POAP", "Ethereum"], ["Polygon", "Ethereum"], + ["PulseChain", "Ethereum"], ["Rarible", "Ethereum"], ["Ricochet", "Ethereum"], ["RocketPool", "Ethereum"], diff --git a/libs/ledger-live-common/src/apps/react.test.ts b/libs/ledger-live-common/src/apps/react.test.ts index 485c66484ea3..cfea2befdce9 100644 --- a/libs/ledger-live-common/src/apps/react.test.ts +++ b/libs/ledger-live-common/src/apps/react.test.ts @@ -19,8 +19,8 @@ calculateDependencies(); const mockedState = initState( mockListAppsResult( - "Bitcoin, Bitcoin Legacy, Ethereum, Litecoin, Dogecoin, Ethereum Classic, XRP, Bitcoin Cash, Decred, Aave, Polygon, Binance Smart Chain", - "Litecoin (outdated), Ethereum, Ethereum Classic, Aave, Polygon, Binance Smart Chain", + "Bitcoin, Bitcoin Legacy, Ethereum, Litecoin, Dogecoin, Ethereum Classic, XRP, Bitcoin Cash, Decred, Aave, Polygon, Binance Smart Chain, PulseChain", + "Litecoin (outdated), Ethereum, Ethereum Classic, Aave, Polygon, Binance Smart Chain, PulseChain", deviceInfo155, ), ); @@ -57,6 +57,7 @@ test("Apps hooks - useAppUninstallNeedsDeps - Expect dep apps", () => { "Aave", "Polygon", "Binance Smart Chain", + "PulseChain", ]); }); test("Apps hooks - useAppUninstallNeedsDeps - Expect no dep apps", () => { @@ -139,7 +140,7 @@ test("Apps hooks - useAppsSections - Correct number of installed apps", () => { }, }), ); - expect(result.current.device.length).toBe(6); + expect(result.current.device.length).toBe(7); }); test("Apps hooks - useAppsSections - Correct number of catalog apps", () => { const { result } = renderHook(() => @@ -152,7 +153,7 @@ test("Apps hooks - useAppsSections - Correct number of catalog apps", () => { }, }), ); - expect(result.current.catalog.length).toBe(12); + expect(result.current.catalog.length).toBe(13); }); test("Apps hooks - useAppsSections - Correct number of catalog apps with query", () => { const { result } = renderHook(() => @@ -184,8 +185,8 @@ test("Apps hooks - useAppsSections - Correct number of installed apps with query const mockedStateWithInstallQueue = { ...initState( mockListAppsResult( - "Bitcoin, Bitcoin Legacy, Ethereum, Litecoin, Dogecoin, Ethereum Classic, XRP, Bitcoin Cash, Decred, Aave, Polygon, Binance Smart Chain", - "Litecoin (outdated), Ethereum, Ethereum Classic, Aave, Polygon, Binance Smart Chain", + "Bitcoin, Bitcoin Legacy, Ethereum, Litecoin, Dogecoin, Ethereum Classic, XRP, Bitcoin Cash, Decred, Aave, Polygon, Binance Smart Chain, PulseChain", + "Litecoin (outdated), Ethereum, Ethereum Classic, Aave, Polygon, Binance Smart Chain, PulseChain", deviceInfo155, ), ), @@ -214,6 +215,7 @@ test('Apps hooks - useAppsSections - Sort "device" category apps with installing "Aave", "Polygon", "Binance Smart Chain", + "PulseChain", ]); expect(installQueueResult.current.device.map(elt => elt.name)).toMatchObject([ // Apps being installed @@ -226,5 +228,6 @@ test('Apps hooks - useAppsSections - Sort "device" category apps with installing "Aave", "Polygon", "Binance Smart Chain", + "PulseChain", ]); }); diff --git a/libs/ledger-live-common/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap b/libs/ledger-live-common/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap index 2ec1816a5d98..1070f36417bd 100644 --- a/libs/ledger-live-common/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +++ b/libs/ledger-live-common/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap @@ -1590,6 +1590,7 @@ exports[`sortCurrenciesByIds snapshot 1`] = ` "boba", "moonriver", "polygon_zk_evm", + "pulsechain", "base", "neon_evm", "lukso", diff --git a/libs/ledger-live-common/src/families/evm/config.ts b/libs/ledger-live-common/src/families/evm/config.ts index 25e97982bfbc..6453f90ebe22 100644 --- a/libs/ledger-live-common/src/families/evm/config.ts +++ b/libs/ledger-live-common/src/families/evm/config.ts @@ -555,6 +555,22 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, }, }, + config_currency_pulsechain: { + type: "object", + default: { + status: { + type: "active", + }, + node: { + type: "external", + uri: "https://rpc.pulsechain.com", + }, + explorer: { + type: "blockscout", + uri: "https://api.scan.pulsechain.com/api", + }, + }, + }, config_currency_base: { type: "object", default: { @@ -669,6 +685,22 @@ const evmConfig: CurrencyLiveConfigDefinition = { explorer: { type: "etherscan", uri: "https://api-testnet-zkevm.polygonscan.com/api" }, }, }, + config_currency_pulsechain_testnet: { + type: "object", + default: { + status: { + type: "active", + }, + node: { + type: "external", + uri: "https://rpc.v4.testnet.pulsechain.com", + }, + explorer: { + type: "blockscout", + uri: "https://api.scan.v4.testnet.pulsechain.com/api", + }, + }, + }, config_currency_base_sepolia: { type: "object", default: { diff --git a/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts b/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts index 4e5ebf851286..332f05f8946b 100644 --- a/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts +++ b/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts @@ -57,6 +57,8 @@ export const CURRENCY_DEFAULT_FEATURES = { currencyPersistence: DEFAULT_FEATURE, currencyPolygonZkEvm: DEFAULT_FEATURE, currencyPolygonZkEvmTestnet: DEFAULT_FEATURE, + currencyPulseChain: DEFAULT_FEATURE, + currencyPulseChainTestnet: DEFAULT_FEATURE, currencyQuicksilver: DEFAULT_FEATURE, currencyRsk: DEFAULT_FEATURE, currencySecretNetwork: DEFAULT_FEATURE, diff --git a/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts b/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts index 3e224b5d7b17..a704b21bd2eb 100644 --- a/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts +++ b/libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts @@ -86,6 +86,8 @@ const abandonSeedAddresses: Partial> = { klaytn: EVM_DEAD_ADDRESS, polygon_zk_evm: EVM_DEAD_ADDRESS, polygon_zk_evm_testnet: EVM_DEAD_ADDRESS, + pulsechain: EVM_DEAD_ADDRESS, + pulsechain_testnet: EVM_DEAD_ADDRESS, base: EVM_DEAD_ADDRESS, base_sepolia: EVM_DEAD_ADDRESS, stacks: "SP3KS7VMY2ZNE6SB88PHR4SKRK2EEPHS8N8MCCBR9", diff --git a/libs/ledgerjs/packages/cryptoassets/src/currencies.test.ts b/libs/ledgerjs/packages/cryptoassets/src/currencies.test.ts index 508af68c9b39..93dc9dfff3e5 100644 --- a/libs/ledgerjs/packages/cryptoassets/src/currencies.test.ts +++ b/libs/ledgerjs/packages/cryptoassets/src/currencies.test.ts @@ -63,7 +63,18 @@ currencies.forEach(c => { c.keywords?.forEach(k => { test(`should find ${c.name} with keyword ${k}`, () => { - expect(findCryptoCurrencyByKeyword(k)).toEqual(c); + const result = findCryptoCurrencyByKeyword(k); + // Check if the result matches the current currency or its mainnet/testnet counterpart + if (result === c) { + expect(result).toEqual(c); + } else if (c.isTestnetFor && result?.id === c.isTestnetFor) { + expect(result.id).toEqual(c.isTestnetFor); + } else if (result?.isTestnetFor === c.id) { + expect(result.isTestnetFor).toEqual(c.id); + } else { + // If none of the above conditions are met, the test should fail + expect(result).toEqual(c); + } }); }); }); diff --git a/libs/ledgerjs/packages/cryptoassets/src/currencies.ts b/libs/ledgerjs/packages/cryptoassets/src/currencies.ts index e649a1ce3265..920a7dca37c2 100644 --- a/libs/ledgerjs/packages/cryptoassets/src/currencies.ts +++ b/libs/ledgerjs/packages/cryptoassets/src/currencies.ts @@ -4003,6 +4003,89 @@ export const cryptocurrenciesById: Record = { }, ], }, + pulsechain: { + type: "CryptoCurrency", + id: "pulsechain", + coinType: CoinType.ETH, + name: "PulseChain", + managerAppName: "Ethereum", + ticker: "PLS", + scheme: "pulsechain", + color: "#a928ff", + family: "evm", + blockAvgTime: 10, + ethereumLikeInfo: { + chainId: 369, + }, + units: [ + { + name: "Pulse", + code: "PLS", + magnitude: 18, + }, + { + name: "beat", + code: "beat", + magnitude: 9, + }, + { + name: "impulse", + code: "impulse", + magnitude: 0, + }, + ], + explorerViews: [ + { + tx: "https://scan.pulsechain.com/tx/$hash", + address: "https://scan.pulsechain.com/address/$address", + token: "https://scan.pulsechain.com/token/$contractAddress", + }, + ], + keywords: ["pulse", "pls", "pulsechain", "pulse chain"], + explorerId: "pls", + }, + pulsechain_testnet: { + type: "CryptoCurrency", + id: "pulsechain_testnet", + coinType: CoinType.ETH, + name: "PulseChain Testnet", + managerAppName: "Ethereum", + ticker: "tPLS", + scheme: "pulsechain_testnet", + color: "#2894ff", + family: "evm", + blockAvgTime: 10, + isTestnetFor: "pulsechain", + ethereumLikeInfo: { + chainId: 943, + }, + units: [ + { + name: "Test Pulse", + code: "tPLS", + magnitude: 18, + }, + { + name: "beat", + code: "beat", + magnitude: 9, + }, + { + name: "impulse", + code: "impulse", + magnitude: 0, + }, + ], + explorerViews: [ + { + tx: "https://scan.v4.testnet.pulsechain.com/#/tx/$hash", + address: "https://scan.v4.testnet.pulsechain.com/#/address/$address", + token: "https://scan.v4.testnet.pulsechain.com/#/token/$contractAddress", + }, + ], + keywords: ["pulse", "pls", "pulsechain", "pulse chain", "tpls", "test pulse"], + explorerId: "pls", + }, base: { type: "CryptoCurrency", id: "base", diff --git a/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-hash.json b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-hash.json new file mode 100644 index 000000000000..3cc762b5501e --- /dev/null +++ b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-hash.json @@ -0,0 +1 @@ +"" \ No newline at end of file diff --git a/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures-hash.json b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures-hash.json new file mode 100644 index 000000000000..3cc762b5501e --- /dev/null +++ b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures-hash.json @@ -0,0 +1 @@ +"" \ No newline at end of file diff --git a/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures.json b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures.json new file mode 100644 index 000000000000..3cc762b5501e --- /dev/null +++ b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20-signatures.json @@ -0,0 +1 @@ +"" \ No newline at end of file diff --git a/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20.json b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20.json new file mode 100644 index 000000000000..0637a088a01e --- /dev/null +++ b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/erc20.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/index.ts b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/index.ts new file mode 100644 index 000000000000..9e2e69e7a7a7 --- /dev/null +++ b/libs/ledgerjs/packages/cryptoassets/src/data/evm/369/index.ts @@ -0,0 +1,4 @@ +export { default as tokens } from "./erc20.json"; +export { default as signatures } from "./erc20-signatures.json"; +export { default as hash } from "./erc20-hash.json"; +export { default as signaturesHash } from "./erc20-signatures-hash.json"; diff --git a/libs/ledgerjs/packages/types-cryptoassets/src/index.ts b/libs/ledgerjs/packages/types-cryptoassets/src/index.ts index 680a14b72a40..c1b0ba68553e 100644 --- a/libs/ledgerjs/packages/types-cryptoassets/src/index.ts +++ b/libs/ledgerjs/packages/types-cryptoassets/src/index.ts @@ -86,6 +86,8 @@ export type CryptoCurrencyId = | "polkadot" | "polygon" | "poswallet" + | "pulsechain" + | "pulsechain_testnet" | "qrl" | "qtum" | "quicksilver" @@ -180,6 +182,7 @@ export type LedgerExplorerId = | "ltc" | "pivx" | "posw" + | "pls" | "qtum" | "strat" | "zec" diff --git a/libs/ledgerjs/packages/types-live/src/feature.ts b/libs/ledgerjs/packages/types-live/src/feature.ts index b1ebcd158956..6aa640713523 100644 --- a/libs/ledgerjs/packages/types-live/src/feature.ts +++ b/libs/ledgerjs/packages/types-live/src/feature.ts @@ -105,6 +105,8 @@ export type CurrencyFeatures = { currencyCoreum: DefaultFeature; currencyPolygonZkEvm: DefaultFeature; currencyPolygonZkEvmTestnet: DefaultFeature; + currencyPulseChain: DefaultFeature; + currencyPulseChainTestnet: DefaultFeature; currencyBase: DefaultFeature; currencyBaseSepolia: DefaultFeature; currencyKlaytn: DefaultFeature; diff --git a/libs/ui/packages/crypto-icons/src/svg/PLS.svg b/libs/ui/packages/crypto-icons/src/svg/PLS.svg new file mode 100644 index 000000000000..f02bff417f4b --- /dev/null +++ b/libs/ui/packages/crypto-icons/src/svg/PLS.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/libs/ui/packages/crypto-icons/src/svg/TPLS.svg b/libs/ui/packages/crypto-icons/src/svg/TPLS.svg new file mode 100644 index 000000000000..f02bff417f4b --- /dev/null +++ b/libs/ui/packages/crypto-icons/src/svg/TPLS.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + +