MyCrypto/common/reducers/swap/schema.ts

10 lines
261 B
TypeScript
Raw Normal View History

2017-12-11 17:44:53 +00:00
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]
});