MyCrypto/common/reducers/swap/schema.ts

11 lines
270 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 providerRate = new schema.Entity('providerRates', {
options: [option]
});