forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenshiro.ts
36 lines (28 loc) · 831 Bytes
/
genshiro.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import eqDefs from '@equilab/definitions';
import { createCustomAccount, u64FromCurrency } from './equilibrium';
const { genshiro } = eqDefs;
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;