Skip to content

Commit

Permalink
[IND-465] Add support for liquidation handler to use a single SQL fun…
Browse files Browse the repository at this point in the history
…ction. Also fix fill and order models since clientMetadata is a nullable field. (#734)

* [IND-465] Add support for liquidation handler to use a single SQL function.

Also fix fill model since clientMetadata is a nullable field and the database already reflects that it is nullable.
  • Loading branch information
lcwik authored and vincentwschau committed Nov 9, 2023
1 parent 600d741 commit a803088
Show file tree
Hide file tree
Showing 6 changed files with 560 additions and 146 deletions.
2 changes: 1 addition & 1 deletion indexer/packages/postgres/src/models/fill-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class FillModel extends Model {
transactionHash: { type: 'string' },
createdAt: { type: 'string', format: 'date-time' },
createdAtHeight: { type: 'string', pattern: IntegerPattern },
clientMetadata: { type: 'string', pattern: IntegerPattern },
clientMetadata: { type: ['string', 'null'], pattern: IntegerPattern },
fee: { type: 'string', pattern: NumericPattern },
},
};
Expand Down
Loading

0 comments on commit a803088

Please sign in to comment.