aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/models/order.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-18 02:27:38 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:01:16 +0800
commitdda44500c52a4b72f6a27fb2384a3f43100a1b26 (patch)
tree49de937e27a2e0bfbc925493c881f411366df513 /packages/pipeline/src/models/order.ts
parent7b81bd831fb4b43380ba4bc256d154ab0b5f8fca (diff)
downloaddexon-0x-contracts-dda44500c52a4b72f6a27fb2384a3f43100a1b26.tar.gz
dexon-0x-contracts-dda44500c52a4b72f6a27fb2384a3f43100a1b26.tar.zst
dexon-0x-contracts-dda44500c52a4b72f6a27fb2384a3f43100a1b26.zip
Rebase pipeline branch off development
Diffstat (limited to 'packages/pipeline/src/models/order.ts')
-rw-r--r--packages/pipeline/src/models/order.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/pipeline/src/models/order.ts b/packages/pipeline/src/models/order.ts
new file mode 100644
index 000000000..dadae2883
--- /dev/null
+++ b/packages/pipeline/src/models/order.ts
@@ -0,0 +1,30 @@
+const order = {
+ tableName: 'orders',
+ tableProperties: {
+ id: {
+ type: 'key',
+ },
+ timestamp: {
+ type: 'timestamp',
+ required: true,
+ },
+ block_number: {
+ type: 'bigint',
+ required: true,
+ },
+ },
+};
+const logToOrderSchemaMapping: any = {
+ exchangeContractAddress: 'exchange_contract_address',
+ maker: 'maker',
+ makerTokenAddress: 'maker_token',
+ makerTokenAmount: 'maker_amount',
+ makerFee: 'maker_fee',
+ taker: 'taker',
+ takerTokenAddress: 'taker_token',
+ takerTokenAmount: 'taker_amount',
+ takerFee: 'taker_fee',
+ expirationUnixTimestampSec: 'expiration_unix_timestamp_sec',
+ salt: 'salt',
+};
+export { order, logToOrderSchemaMapping };