ghost-portal/packages/apps-config/src/api/spec/polkafoundry.ts
hoangnl dc9edcb518
Update polkafoundy (#5246)
* update types spec, logo, color for polkafoundry parachain

* add halongbay testnet

* update types to single-quotes

* moving position to fix lint error

Co-authored-by: chuoikhungbo <quanvantruong73@gmail.cp>
2021-05-10 09:12:20 +02:00

42 lines
979 B
TypeScript

// 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: {
RelayChainAccountId: 'H256',
RoundIndex: 'u32',
SettingStruct: {
bond_duration: 'u32',
blocks_per_round: 'u32',
desired_target: 'u32'
},
Bond: {
owner: 'AccountId',
amount: 'Balance'
},
UnBondChunk: {
value: 'Balance',
round: 'u32'
},
StakingNominators: {
nominations: 'Vec<Bond>',
total: 'Balance',
unbonding: 'Vec<UnBondChunk>',
claimed_rewards: 'Vec<u32>'
}
}
}
]
};
export default definitions;