aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/utils
diff options
context:
space:
mode:
authorJake Ellowitz <jake.ellowitz@gmail.com>2018-11-20 11:11:51 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commit72c45d9ea90237d87053fd1ddc751fc699527937 (patch)
tree140a9b62ec450fa2cfb2ac39c90265638ab2ce0c /packages/pipeline/src/utils
parent75df8a0e8b375f198555f55bd6ed47af75c2b043 (diff)
downloaddexon-sol-tools-72c45d9ea90237d87053fd1ddc751fc699527937.tar.gz
dexon-sol-tools-72c45d9ea90237d87053fd1ddc751fc699527937.tar.zst
dexon-sol-tools-72c45d9ea90237d87053fd1ddc751fc699527937.zip
metadata and trusted sources in same raw table
Diffstat (limited to 'packages/pipeline/src/utils')
-rw-r--r--packages/pipeline/src/utils/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/pipeline/src/utils/index.ts b/packages/pipeline/src/utils/index.ts
index b66ab40ab..732c259d7 100644
--- a/packages/pipeline/src/utils/index.ts
+++ b/packages/pipeline/src/utils/index.ts
@@ -50,6 +50,9 @@ class BigNumberTransformer implements ValueTransformer {
export const bigNumberTransformer = new BigNumberTransformer();
+/**
+ * Returns the unix timestamp of the current hour
+ */
export function getHourInUnixTime(): number {
const currentTime: number = Date.now();
// tslint:disable-next-line