diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index f5bbe4e9fe..138a78bc00 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -96,6 +96,7 @@ import quartz from './quartz'; import realis from './realis'; import riochain from './riochain'; import robonomics from './robonomics'; +import rootnet from './rootnet'; import shibuya from './shibuya'; import shiden from './shiden'; import snowbridge from './snowbridge'; @@ -246,6 +247,7 @@ const spec: Record = { realis, 'riochain-runtime': riochain, robonomics, + root: rootnet, shibuya, shiden, snowbridge, diff --git a/packages/apps-config/src/api/spec/rootnet.ts b/packages/apps-config/src/api/spec/rootnet.ts new file mode 100644 index 0000000000..50855433ff --- /dev/null +++ b/packages/apps-config/src/api/spec/rootnet.ts @@ -0,0 +1,32 @@ +// Copyright 2017-2022 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { OverrideBundleDefinition } from '@polkadot/types/types'; + +// structs need to be in order +/* eslint-disable sort-keys */ + +const definitions: OverrideBundleDefinition = { + types: [ + { + // on all versions + minmax: [0, undefined], + types: { + AccountId: 'EthereumAccountId', + AccountId20: 'EthereumAccountId', + AccountId32: 'EthereumAccountId', + Address: 'AccountId', + LookupSource: 'AccountId', + Lookup0: 'AccountId', + EthereumSignature: { + r: 'H256', + s: 'H256', + v: 'U8' + }, + ExtrinsicSignature: 'EthereumSignature' + } + } + ] +}; + +export default definitions; diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 897f6cf478..70baf25608 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -61115,6 +61115,30 @@ export const typesBundle = { } ] }, + "root": { + "types": [ + { + "minmax": [ + 0, + null + ], + "types": { + "AccountId": "EthereumAccountId", + "AccountId20": "EthereumAccountId", + "AccountId32": "EthereumAccountId", + "Address": "AccountId", + "LookupSource": "AccountId", + "Lookup0": "AccountId", + "EthereumSignature": { + "r": "H256", + "s": "H256", + "v": "U8" + }, + "ExtrinsicSignature": "EthereumSignature" + } + } + ] + }, "shibuya": { "types": [ { diff --git a/packages/apps-config/src/settings/ethereumChains.ts b/packages/apps-config/src/settings/ethereumChains.ts index f41c00e9ba..d54316ee0f 100644 --- a/packages/apps-config/src/settings/ethereumChains.ts +++ b/packages/apps-config/src/settings/ethereumChains.ts @@ -12,5 +12,6 @@ export const ethereumChains = [ 'alt-producer', 'flash-layer', 'armonia-eva', - 'armonia-wall-e' + 'armonia-wall-e', + 'root' ];