Update Shiden parachain types (fix #6172) (#6206)

This commit is contained in:
Aleksandr Krupenkin 2021-09-27 16:48:32 +03:00 committed by GitHub
parent fe0dc2c48f
commit 4059a06529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 45 deletions

View File

@ -71,7 +71,6 @@ import parallel from './parallel';
import parami from './parami';
import phoenix from './phoenix';
import plasm from './plasm';
import plasmParachain from './plasm-parachain';
import polkadex from './polkadex';
import polkafoundry from './polkafoundry';
import polymesh from './polymesh';
@ -80,6 +79,7 @@ import prism from './prism';
import realis from './realis';
import riochain from './riochain';
import robonomics from './robonomics';
import shiden from './shiden';
import snowbridge from './snowbridge';
import soraSubstrate from './soraSubstrate';
import spanner from './spanner';
@ -198,13 +198,13 @@ const spec: Record<string, OverrideBundleDefinition> = {
'phoenix-node': phoenix,
'phoenix-parachain': phoenix,
plasm,
'plasm-parachain': plasmParachain,
polymesh,
'pontem-node': pontem,
prism,
realis,
'riochain-runtime': riochain,
robonomics,
shiden,
snowbridge,
'sora-substrate': soraSubstrate,
spanner,

View File

@ -1,43 +0,0 @@
// Copyright 2017-2021 @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: {
Address: 'AccountId',
LookupSource: 'AccountId',
ChainId: {
_enum: {
RelayChain: null,
Parachain: 'ParaId'
}
},
XCurrencyId: {
chain_id: 'ChainId',
currency_id: 'Bytes'
},
CurrencyIdOf: 'CurrencyId',
CurrencyId: {
_enum: {
Token: 'TokenSymbol'
}
},
TokenSymbol: {
_enum: ['ACA', 'AUSD', 'DOT', 'XBTC', 'LDOT', 'RENBTC', 'SDN', 'PLM']
},
AmountOf: 'Amount',
Amount: 'i128'
}
}
]
};
export default definitions;

View File

@ -0,0 +1,21 @@
// Copyright 2017-2021 @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: {
Keys: 'AccountId'
}
}
]
};
export default definitions;