aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/schemas
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-09 07:45:48 +0800
committerFabio Berger <me@fabioberger.com>2018-11-09 07:45:48 +0800
commit857a35d4f71c1c954033c3b0505250e18be21cfb (patch)
tree47dc81508fe8d71b0c0acfcd24b36fa8455c6ae6 /packages/contract-wrappers/src/schemas
parent8b06b3627426c3f9eda3262d0b6479d55cc4c9ad (diff)
downloaddexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar.gz
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar.bz2
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar.lz
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar.xz
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.tar.zst
dexon-0x-contracts-857a35d4f71c1c954033c3b0505250e18be21cfb.zip
Fix validateOrderFillableOrThrowAsync method so it also checks order signature, cancelled, cancelledUpTo, and throws helpful error messages
Diffstat (limited to 'packages/contract-wrappers/src/schemas')
-rw-r--r--packages/contract-wrappers/src/schemas/validate_order_fillable_opts_schema.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/schemas/validate_order_fillable_opts_schema.ts b/packages/contract-wrappers/src/schemas/validate_order_fillable_opts_schema.ts
new file mode 100644
index 000000000..2e111af04
--- /dev/null
+++ b/packages/contract-wrappers/src/schemas/validate_order_fillable_opts_schema.ts
@@ -0,0 +1,7 @@
+export const validateOrderFillableOptsSchema = {
+ id: '/ValidateOrderFillableOpts',
+ properties: {
+ expectedFillTakerTokenAmount: { $ref: '/wholeNumberSchema' },
+ },
+ type: 'object',
+};