Add Root Network types (#8034)

This commit is contained in:
Aidan Starke 2022-08-23 18:53:04 +12:00 committed by GitHub
parent abff0317aa
commit 9a8e1821a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 1 deletions

View File

@ -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,

View 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;

View File

@ -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": [
{

View File

@ -12,5 +12,6 @@ export const ethereumChains = [
'alt-producer',
'flash-layer',
'armonia-eva',
'armonia-wall-e'
'armonia-wall-e',
'root'
];