mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-23 06:50:55 -04:00
update dist
This commit is contained in:
parent
1dc0a31555
commit
ceeeab36cd
7 changed files with 25 additions and 25 deletions
8
dist/HavenoClient.js
vendored
8
dist/HavenoClient.js
vendored
|
@ -979,10 +979,10 @@ class HavenoClient {
|
|||
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
||||
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
||||
* @param {number} triggerPrice - price to remove offer (optional)
|
||||
* @param {number} splitOutput - create a new output reserved for the offer, incurring an on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
||||
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
||||
* @return {OfferInfo} the posted offer
|
||||
*/
|
||||
async postOffer(direction, amount, assetCode, paymentAccountId, buyerSecurityDepositPct, price, marketPriceMarginPct, triggerPrice, splitOutput, minAmount) {
|
||||
async postOffer(direction, amount, assetCode, paymentAccountId, buyerSecurityDepositPct, price, marketPriceMarginPct, triggerPrice, reserveExactAmount, minAmount) {
|
||||
try {
|
||||
const request = new grpc_pb_1.PostOfferRequest()
|
||||
.setDirection(direction)
|
||||
|
@ -998,8 +998,8 @@ class HavenoClient {
|
|||
request.setMarketPriceMarginPct(marketPriceMarginPct);
|
||||
if (triggerPrice)
|
||||
request.setTriggerPrice(triggerPrice.toString());
|
||||
if (splitOutput)
|
||||
request.setSplitOutput(splitOutput);
|
||||
if (reserveExactAmount)
|
||||
request.setReserveExactAmount(reserveExactAmount);
|
||||
return (await this._offersClient.postOffer(request, { password: this._password })).getOffer();
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue