From 129fe0d900ddc6cf50baa3e148dcd62fbc583266 Mon Sep 17 00:00:00 2001 From: henrikdent <38038840+henrikdent@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:48:09 +0700 Subject: [PATCH] Add DENTNet ledger support (via generic Polkadot app) --- packages/hw-ledger/src/defaults.ts | 1 + packages/networks/src/defaults/genesis.ts | 3 +++ packages/networks/src/defaults/ledger.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/packages/hw-ledger/src/defaults.ts b/packages/hw-ledger/src/defaults.ts index 4dd0230b81..02aa6f3ba2 100644 --- a/packages/hw-ledger/src/defaults.ts +++ b/packages/hw-ledger/src/defaults.ts @@ -51,6 +51,7 @@ export const prevLedgerRecord: Record = { // Any chains moving forward that are supported by the PolkadotGenericApp from ledger will input their names below. export const genericLedgerApps = { bittensor: 'Bittensor', + dentnet: 'DENTNet', encointer: 'Encointer', integritee: 'Integritee' }; diff --git a/packages/networks/src/defaults/genesis.ts b/packages/networks/src/defaults/genesis.ts index 0579e70209..fdc483ea45 100644 --- a/packages/networks/src/defaults/genesis.ts +++ b/packages/networks/src/defaults/genesis.ts @@ -49,6 +49,9 @@ export const knownGenesis: KnownGenesis = { darwinia: [ '0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6' ], + dentnet: [ + '0x0313f6a011d128d22f996703cbab05162e2fdc9e031493314fe6db79979c5ca7' + ], 'dock-mainnet': [ '0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae', '0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9' diff --git a/packages/networks/src/defaults/ledger.ts b/packages/networks/src/defaults/ledger.ts index 4b4bcfe138..b12105f2b3 100644 --- a/packages/networks/src/defaults/ledger.ts +++ b/packages/networks/src/defaults/ledger.ts @@ -18,6 +18,7 @@ export const knownLedger: KnownLedger = { centrifuge: 0x000002eb, composable: 0x00000162, darwinia: 0x00000162, + dentnet: 0x000002de, 'dock-mainnet': 0x00000252, edgeware: 0x0000020b, encointer: 0x000001b2,