type def update (#6612)

* type def update

* Lint errors fix
This commit is contained in:
Bobo 2021-11-30 10:09:10 +01:00 committed by GitHub
parent b168051f1e
commit e40d3fdc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 0 deletions

View File

@ -88,6 +88,7 @@ import quartz from './quartz';
import realis from './realis';
import riochain from './riochain';
import robonomics from './robonomics';
import shibuya from './shibuya';
import shiden from './shiden';
import snowbridge from './snowbridge';
import soraSubstrate from './soraSubstrate';
@ -225,6 +226,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
realis,
'riochain-runtime': riochain,
robonomics,
shibuya,
shiden,
snowbridge,
'sora-substrate': soraSubstrate,

View File

@ -0,0 +1,52 @@
// 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',
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
AmountOf: 'Amount',
Amount: 'i128',
SmartContract: {
_enum: {
Evm: 'H160',
Wasm: 'AccountId'
}
},
EraStakingPoints: {
total: 'Balance',
stakers: 'BTreeMap<AccountId, Balance>',
formerStakedEra: 'EraIndex',
claimedRewards: 'Balance'
},
PalletDappsStakingEraStakingPoints: {
total: 'Balance',
stakers: 'BTreeMap<AccountId, Balance>',
formerStakedEra: 'EraIndex',
claimedRewards: 'Balance'
},
EraRewardAndStake: {
rewards: 'Balance',
staked: 'Balance'
},
PalletDappsStakingEraRewardAndStake: {
rewards: 'Balance',
staked: 'Balance'
},
EraIndex: 'u32'
}
}
]
};
export default definitions;

View File

@ -29,10 +29,20 @@ const definitions: OverrideBundleDefinition = {
formerStakedEra: 'EraIndex',
claimedRewards: 'Balance'
},
PalletDappsStakingEraStakingPoints: {
total: 'Balance',
stakers: 'BTreeMap<AccountId, Balance>',
formerStakedEra: 'EraIndex',
claimedRewards: 'Balance'
},
EraRewardAndStake: {
rewards: 'Balance',
staked: 'Balance'
},
PalletDappsStakingEraRewardAndStake: {
rewards: 'Balance',
staked: 'Balance'
},
EraIndex: 'u32'
}
}