ghost-portal/packages/apps-config/src/api/spec/genshiro.ts
Alex D 236c053841
update eq types (#5769)
Co-authored-by: Alex D <pr0fedt@gmail.com>
2021-07-05 17:38:45 +02:00

35 lines
807 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import { genshiro } from '@equilab/definitions';
import { createCustomAccount, u64FromCurrency } from './equilibrium';
const definitions: OverrideBundleDefinition = {
derives: {
...genshiro.instances.balances.reduce(
(all, cur) => ({
...all,
[cur]: {
customAccount: createCustomAccount(cur, (currency: string) => ({ 0: u64FromCurrency(currency) }), 'CompatAccountData')
}
}),
{}
)
},
instances: genshiro.instances,
types: [
{
// on all versions
minmax: [0, undefined],
types: genshiro.types
}
]
};
export default definitions;