diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-27 07:42:48 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:24 +0800 |
commit | ce7027d11f79299c237dd5baa14b835e1d57f036 (patch) | |
tree | 1c846f076e8ec8e6a808a89ef9269b99b9898546 /packages/pipeline/src/utils | |
parent | 3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01 (diff) | |
download | dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar.gz dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar.bz2 dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar.lz dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar.xz dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.tar.zst dexon-sol-tools-ce7027d11f79299c237dd5baa14b835e1d57f036.zip |
Add preliminary support for scraping orders from SRA endpoints (no pagination, only RR support for now)
Diffstat (limited to 'packages/pipeline/src/utils')
-rw-r--r-- | packages/pipeline/src/utils/index.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/pipeline/src/utils/index.ts b/packages/pipeline/src/utils/index.ts new file mode 100644 index 000000000..8fe7f9685 --- /dev/null +++ b/packages/pipeline/src/utils/index.ts @@ -0,0 +1,8 @@ +import { BigNumber } from '@0xproject/utils'; + +export function bigNumbertoStringOrNull(n: BigNumber): string | null { + if (n == null) { + return null; + } + return n.toString(); +} |