MyCrypto/common/reducers/swap/schema.ts

10 lines
261 B
TypeScript

import { schema } from 'normalizr';
export const allIds = (byIds: { [name: string]: {} }) => {
return Object.keys(byIds);
};
export const option = new schema.Entity('options');
export const bityRate = new schema.Entity('bityRates', {
options: [option]
});