aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/types.ts
diff options
context:
space:
mode:
authorAndrew Maurer <git@maurer.me>2018-10-13 23:09:50 +0800
committerGitHub <noreply@github.com>2018-10-13 23:09:50 +0800
commit69e9dbd68323439ac817e71c610dfae3716bee26 (patch)
tree6b2791f09132524963ae5e0bb58afffcb3720736 /packages/asset-buyer/src/types.ts
parentdc56ce454967d2bf0d5e8c93389c0fa71a9d1cc5 (diff)
parenta424c2adfabbbd9313b4f5ddeeeaebd0811fd1cd (diff)
downloaddexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.gz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.bz2
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.lz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.xz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.zst
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.zip
Merge branch 'development' into development
Diffstat (limited to 'packages/asset-buyer/src/types.ts')
-rw-r--r--packages/asset-buyer/src/types.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/types.ts b/packages/asset-buyer/src/types.ts
index b96795bb6..6218f4ba4 100644
--- a/packages/asset-buyer/src/types.ts
+++ b/packages/asset-buyer/src/types.ts
@@ -77,18 +77,22 @@ export interface BuyQuoteRequestOpts {
/**
* ethAmount: The desired amount of eth to spend. Defaults to buyQuote.worstCaseQuoteInfo.totalEthAmount.
* takerAddress: The address to perform the buy. Defaults to the first available address from the provider.
+ * gasLimit: The amount of gas to send with a transaction (in Gwei). Defaults to an eth_estimateGas rpc call.
+ * gasPrice: Gas price in Wei to use for a transaction
* feeRecipient: The address where affiliate fees are sent. Defaults to null address (0x000...000).
*/
export interface BuyQuoteExecutionOpts {
ethAmount?: BigNumber;
takerAddress?: string;
+ gasLimit?: number;
+ gasPrice?: BigNumber;
feeRecipient: string;
}
/**
* networkId: The ethereum network id. Defaults to 1 (mainnet).
* orderRefreshIntervalMs: The interval in ms that getBuyQuoteAsync should trigger an refresh of orders and order states. Defaults to 10000ms (10s).
- * expiryBufferSeconds: The number of seconds to add when calculating whether an order is expired or not. Defaults to 15s.
+ * expiryBufferSeconds: The number of seconds to add when calculating whether an order is expired or not. Defaults to 300s (5m).
*/
export interface AssetBuyerOpts {
networkId: number;