diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-13 09:36:33 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 688d277b30b287f66f0dbd49f2a23cab8b256219 (patch) | |
tree | 97519ff71a2cd9e62c185f04556cd7b4cb6b62d8 /packages/pipeline/src/parsers/relayer_registry/index.ts | |
parent | 329c68f610843ebded9ca31fc9cd6f3eed744a8e (diff) | |
download | dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar.gz dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar.bz2 dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar.lz dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar.xz dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.tar.zst dexon-0x-contracts-688d277b30b287f66f0dbd49f2a23cab8b256219.zip |
Configure linter with --format stylish and fix linter errors
Diffstat (limited to 'packages/pipeline/src/parsers/relayer_registry/index.ts')
-rw-r--r-- | packages/pipeline/src/parsers/relayer_registry/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/pipeline/src/parsers/relayer_registry/index.ts b/packages/pipeline/src/parsers/relayer_registry/index.ts index a61f4e62a..346f570bd 100644 --- a/packages/pipeline/src/parsers/relayer_registry/index.ts +++ b/packages/pipeline/src/parsers/relayer_registry/index.ts @@ -3,6 +3,10 @@ import * as R from 'ramda'; import { RelayerResponse, RelayerResponseNetwork } from '../../data_sources/relayer-registry'; import { Relayer } from '../../entities'; +/** + * Parses a raw relayer registry response into an array of Relayer entities. + * @param rawResp raw response from the relayer-registry json file. + */ export function parseRelayers(rawResp: Map<string, RelayerResponse>): Relayer[] { const parsedAsObject = R.mapObjIndexed(parseRelayer, rawResp); return R.values(parsedAsObject); |