diff --git a/packages/types/src/codec/AbstractInt.ts b/packages/types/src/codec/AbstractInt.ts index f77c7ffa6b..6c14dd1a12 100644 --- a/packages/types/src/codec/AbstractInt.ts +++ b/packages/types/src/codec/AbstractInt.ts @@ -7,7 +7,7 @@ import type { UIntBitLength } from './types'; import BN from 'bn.js'; -import { assert, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util'; +import { assert, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_QUINTILL, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util'; export const DEFAULT_UINT_BITS = 64; @@ -17,7 +17,7 @@ const MAX_NUMBER_BITS = 52; const MUL_P = new BN(1_00_00); const FORMATTERS: [string, BN][] = [ - ['Perquintill', new BN(1_000_000_000_000)], + ['Perquintill', BN_QUINTILL], ['Perbill', BN_BILLION], ['Permill', BN_MILLION], ['Percent', BN_HUNDRED] diff --git a/packages/types/src/interfaces/parachains/definitions.ts b/packages/types/src/interfaces/parachains/definitions.ts index 76b84255a8..4bcce2e06f 100644 --- a/packages/types/src/interfaces/parachains/definitions.ts +++ b/packages/types/src/interfaces/parachains/definitions.ts @@ -225,6 +225,9 @@ export default { ParaInfo: { scheduling: 'Scheduling' }, + ParaLifecycle: { + _enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingToParachain', 'DowngradingToParathread', 'OutgoingParathread', 'OutgoingParachain'] + }, ParaPastCodeMeta: { upgradeTimes: 'Vec', lastPruned: 'Option'