aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 17:18:41 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 17:18:41 +0800
commit02d36d7c9c5ce0ba4c3d97d60e7d5eab2e924496 (patch)
tree7936fc096efbb9a5fee903f0452123fc6bc501d7 /src
parent9daca6a4be95a87a63e293300d0768e3e63162d2 (diff)
downloaddexon-0x-contracts-02d36d7c9c5ce0ba4c3d97d60e7d5eab2e924496.tar.gz
dexon-0x-contracts-02d36d7c9c5ce0ba4c3d97d60e7d5eab2e924496.tar.zst
dexon-0x-contracts-02d36d7c9c5ce0ba4c3d97d60e7d5eab2e924496.zip
Make txOpts optional
Diffstat (limited to 'src')
-rw-r--r--src/types.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/types.ts b/src/types.ts
index fa3560ef8..aa699110b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -67,15 +67,15 @@ export interface ExchangeContract extends ContractInstance {
};
fill: {
(orderAddresses: OrderAddresses, orderValues: OrderValues, fillAmount: BigNumber.BigNumber,
- shouldCheckTransfer: boolean, v: number, r: string, s: string, txOpts: TxOpts): ContractResponse;
+ shouldCheckTransfer: boolean, v: number, r: string, s: string, txOpts?: TxOpts): ContractResponse;
estimateGas: (orderAddresses: OrderAddresses, orderValues: OrderValues, fillAmount: BigNumber.BigNumber,
- shouldCheckTransfer: boolean, v: number, r: string, s: string, txOpts: TxOpts) => number;
+ shouldCheckTransfer: boolean, v: number, r: string, s: string, txOpts?: TxOpts) => number;
};
cancel: {
(orderAddresses: OrderAddresses, orderValues: OrderValues, cancelAmount: BigNumber.BigNumber,
- txOpts: TxOpts): ContractResponse;
+ txOpts?: TxOpts): ContractResponse;
estimateGas: (orderAddresses: OrderAddresses, orderValues: OrderValues, cancelAmount: BigNumber.BigNumber,
- txOpts: TxOpts) => number;
+ txOpts?: TxOpts) => number;
};
filled: {
call: (orderHash: string) => BigNumber.BigNumber;
@@ -95,10 +95,10 @@ export interface TokenContract extends ContractInstance {
allowance: {
call: (ownerAddress: string, allowedAddress: string) => Promise<BigNumber.BigNumber>;
};
- transfer: (toAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => Promise<boolean>;
+ transfer: (toAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts?: TxOpts) => Promise<boolean>;
transferFrom: (fromAddress: string, toAddress: string, amountInBaseUnits: BigNumber.BigNumber,
- txOpts: TxOpts) => Promise<boolean>;
- approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => void;
+ txOpts?: TxOpts) => Promise<boolean>;
+ approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts?: TxOpts) => void;
}
export interface TokenRegistryContract extends ContractInstance {