Add ferrum to list of eth chains (#9450)
* add ferrum network * [feat] add ferrum parachain to list of eth chain * [fix] remove duplicate node list * fix CI * fix wrong AccountId32 map * update types bundle
This commit is contained in:
parent
44aabb4e4a
commit
b91a96986e
31
packages/apps-config/src/api/spec/ferrum.ts
Normal file
31
packages/apps-config/src/api/spec/ferrum.ts
Normal file
@ -0,0 +1,31 @@
|
||||
// Copyright 2017-2023 @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',
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
Lookup0: 'AccountId',
|
||||
EthereumSignature: {
|
||||
r: 'H256',
|
||||
s: 'H256',
|
||||
v: 'U8'
|
||||
},
|
||||
ExtrinsicSignature: 'EthereumSignature'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -47,6 +47,7 @@ import equilibrium from './equilibrium.js';
|
||||
import fantour from './fantour.js';
|
||||
// See https://github.com/polkadot-js/apps/pull/9243
|
||||
// import fragnova from './fragnova.js';
|
||||
import ferrum from './ferrum.js';
|
||||
import frequency from './frequency.js';
|
||||
import galital from './galital.js';
|
||||
import galitalParachain from './galital-parachain.js';
|
||||
@ -195,6 +196,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
// See https://github.com/polkadot-js/apps/pull/9243
|
||||
// fragnova,
|
||||
// 'fragnova-testnet': fragnova,
|
||||
'ferrum-parachain': ferrum,
|
||||
frequency,
|
||||
'frequency-rococo': frequency,
|
||||
galital,
|
||||
|
||||
@ -54001,6 +54001,29 @@ export const typesBundle = {
|
||||
}
|
||||
]
|
||||
},
|
||||
"ferrum-parachain": {
|
||||
"types": [
|
||||
{
|
||||
"minmax": [
|
||||
0,
|
||||
null
|
||||
],
|
||||
"types": {
|
||||
"AccountId": "EthereumAccountId",
|
||||
"AccountId20": "EthereumAccountId",
|
||||
"Address": "AccountId",
|
||||
"LookupSource": "AccountId",
|
||||
"Lookup0": "AccountId",
|
||||
"EthereumSignature": {
|
||||
"r": "H256",
|
||||
"s": "H256",
|
||||
"v": "U8"
|
||||
},
|
||||
"ExtrinsicSignature": "EthereumSignature"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"frequency": {
|
||||
"rpc": {
|
||||
"frequency": {
|
||||
|
||||
@ -293,7 +293,7 @@ export const testChains: Omit<EndpointOption, 'teleport'>[] = [
|
||||
{
|
||||
info: 'ferrum',
|
||||
providers: {
|
||||
// Ferrum: 'wss://testnet.dev.svcs.ferrumnetwork.io' // https://github.com/polkadot-js/apps/issues/9224
|
||||
FerrumNetwork: 'wss://testnet.dev.svcs.ferrumnetwork.io'
|
||||
},
|
||||
text: 'Ferrum Testnet',
|
||||
ui: {
|
||||
|
||||
@ -25,5 +25,6 @@ export const ethereumChains = [
|
||||
'thebifrost-mainnet',
|
||||
'dracones',
|
||||
'dracones-dwarf',
|
||||
'subspace-evm-domain'
|
||||
'subspace-evm-domain',
|
||||
'ferrum-parachain'
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user