aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-09-28 04:28:11 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-09-28 04:28:11 +0800
commit1d4506427fd3eb277f42c02887f33265dac6a783 (patch)
tree41824a855e0d168c8da0f92af6b870e4043088c3 /src/types.ts
parentbe12c5b5386410db9a1a28e86e944864c808c4c9 (diff)
downloaddexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar.gz
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar.bz2
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar.lz
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar.xz
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.tar.zst
dexon-sol-tools-1d4506427fd3eb277f42c02887f33265dac6a783.zip
Add OrderTransactionOpts to enable optional validation to exchange_wrapper
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 2d069f596..02230b0ab 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -452,3 +452,11 @@ export interface ValidateOrderFillableOpts {
export interface MethodOpts {
defaultBlock?: Web3.BlockParam;
}
+
+/*
+ * shouldValidate: Flag indicating whether the library should make attempts to validate a transaction before
+ * broadcasting it. For example, order has a valid signature, maker has sufficient funds, etc.
+ */
+export interface OrderTransactionOpts {
+ shouldValidate: boolean;
+}