update dist

This commit is contained in:
woodser 2023-07-25 09:15:40 -04:00
parent 1dc0a31555
commit ceeeab36cd
7 changed files with 25 additions and 25 deletions

View file

@ -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) {