Add Root Network types (#8034)
This commit is contained in:
parent
abff0317aa
commit
9a8e1821a1
@ -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<string, OverrideBundleDefinition> = {
|
||||
realis,
|
||||
'riochain-runtime': riochain,
|
||||
robonomics,
|
||||
root: rootnet,
|
||||
shibuya,
|
||||
shiden,
|
||||
snowbridge,
|
||||
|
||||
32
packages/apps-config/src/api/spec/rootnet.ts
Normal file
32
packages/apps-config/src/api/spec/rootnet.ts
Normal file
@ -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;
|
||||
@ -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": [
|
||||
{
|
||||
|
||||
@ -12,5 +12,6 @@ export const ethereumChains = [
|
||||
'alt-producer',
|
||||
'flash-layer',
|
||||
'armonia-eva',
|
||||
'armonia-wall-e'
|
||||
'armonia-wall-e',
|
||||
'root'
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user