mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-23 05:01:26 -05:00
update dist
This commit is contained in:
parent
1dc0a31555
commit
ceeeab36cd
4
dist/HavenoClient.d.ts
vendored
4
dist/HavenoClient.d.ts
vendored
@ -423,10 +423,10 @@ export default class HavenoClient {
|
|||||||
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
* @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 {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
||||||
* @param {number} triggerPrice - price to remove offer (optional)
|
* @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
|
* @return {OfferInfo} the posted offer
|
||||||
*/
|
*/
|
||||||
postOffer(direction: string, amount: bigint, assetCode: string, paymentAccountId: string, buyerSecurityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, splitOutput?: boolean, minAmount?: bigint): Promise<OfferInfo>;
|
postOffer(direction: string, amount: bigint, assetCode: string, paymentAccountId: string, buyerSecurityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, reserveExactAmount?: boolean, minAmount?: bigint): Promise<OfferInfo>;
|
||||||
/**
|
/**
|
||||||
* Remove a posted offer, releasing its reserved funds.
|
* Remove a posted offer, releasing its reserved funds.
|
||||||
*
|
*
|
||||||
|
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 {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 {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
||||||
* @param {number} triggerPrice - price to remove offer (optional)
|
* @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
|
* @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 {
|
try {
|
||||||
const request = new grpc_pb_1.PostOfferRequest()
|
const request = new grpc_pb_1.PostOfferRequest()
|
||||||
.setDirection(direction)
|
.setDirection(direction)
|
||||||
@ -998,8 +998,8 @@ class HavenoClient {
|
|||||||
request.setMarketPriceMarginPct(marketPriceMarginPct);
|
request.setMarketPriceMarginPct(marketPriceMarginPct);
|
||||||
if (triggerPrice)
|
if (triggerPrice)
|
||||||
request.setTriggerPrice(triggerPrice.toString());
|
request.setTriggerPrice(triggerPrice.toString());
|
||||||
if (splitOutput)
|
if (reserveExactAmount)
|
||||||
request.setSplitOutput(splitOutput);
|
request.setReserveExactAmount(reserveExactAmount);
|
||||||
return (await this._offersClient.postOffer(request, { password: this._password })).getOffer();
|
return (await this._offersClient.postOffer(request, { password: this._password })).getOffer();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
2
dist/HavenoClient.js.map
vendored
2
dist/HavenoClient.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/protobuf/grpc_pb.d.ts
vendored
6
dist/protobuf/grpc_pb.d.ts
vendored
@ -1499,8 +1499,8 @@ export class PostOfferRequest extends jspb.Message {
|
|||||||
getTriggerPrice(): string;
|
getTriggerPrice(): string;
|
||||||
setTriggerPrice(value: string): PostOfferRequest;
|
setTriggerPrice(value: string): PostOfferRequest;
|
||||||
|
|
||||||
getSplitOutput(): boolean;
|
getReserveExactAmount(): boolean;
|
||||||
setSplitOutput(value: boolean): PostOfferRequest;
|
setReserveExactAmount(value: boolean): PostOfferRequest;
|
||||||
|
|
||||||
getPaymentAccountId(): string;
|
getPaymentAccountId(): string;
|
||||||
setPaymentAccountId(value: string): PostOfferRequest;
|
setPaymentAccountId(value: string): PostOfferRequest;
|
||||||
@ -1524,7 +1524,7 @@ export namespace PostOfferRequest {
|
|||||||
minAmount: string,
|
minAmount: string,
|
||||||
buyerSecurityDepositPct: number,
|
buyerSecurityDepositPct: number,
|
||||||
triggerPrice: string,
|
triggerPrice: string,
|
||||||
splitOutput: boolean,
|
reserveExactAmount: boolean,
|
||||||
paymentAccountId: string,
|
paymentAccountId: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
dist/protobuf/grpc_pb.js
vendored
12
dist/protobuf/grpc_pb.js
vendored
@ -14510,7 +14510,7 @@ proto.io.haveno.protobuffer.PostOfferRequest.toObject = function(includeInstance
|
|||||||
minAmount: jspb.Message.getFieldWithDefault(msg, 7, "0"),
|
minAmount: jspb.Message.getFieldWithDefault(msg, 7, "0"),
|
||||||
buyerSecurityDepositPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
buyerSecurityDepositPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
||||||
triggerPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
triggerPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||||
splitOutput: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
reserveExactAmount: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
||||||
paymentAccountId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
paymentAccountId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -14586,7 +14586,7 @@ proto.io.haveno.protobuffer.PostOfferRequest.deserializeBinaryFromReader = funct
|
|||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
var value = /** @type {boolean} */ (reader.readBool());
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
msg.setSplitOutput(value);
|
msg.setReserveExactAmount(value);
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
@ -14684,7 +14684,7 @@ proto.io.haveno.protobuffer.PostOfferRequest.serializeBinaryToWriter = function(
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = message.getSplitOutput();
|
f = message.getReserveExactAmount();
|
||||||
if (f) {
|
if (f) {
|
||||||
writer.writeBool(
|
writer.writeBool(
|
||||||
10,
|
10,
|
||||||
@ -14864,10 +14864,10 @@ proto.io.haveno.protobuffer.PostOfferRequest.prototype.setTriggerPrice = functio
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional bool split_output = 10;
|
* optional bool reserve_exact_amount = 10;
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
proto.io.haveno.protobuffer.PostOfferRequest.prototype.getSplitOutput = function() {
|
proto.io.haveno.protobuffer.PostOfferRequest.prototype.getReserveExactAmount = function() {
|
||||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -14876,7 +14876,7 @@ proto.io.haveno.protobuffer.PostOfferRequest.prototype.getSplitOutput = function
|
|||||||
* @param {boolean} value
|
* @param {boolean} value
|
||||||
* @return {!proto.io.haveno.protobuffer.PostOfferRequest} returns this
|
* @return {!proto.io.haveno.protobuffer.PostOfferRequest} returns this
|
||||||
*/
|
*/
|
||||||
proto.io.haveno.protobuffer.PostOfferRequest.prototype.setSplitOutput = function(value) {
|
proto.io.haveno.protobuffer.PostOfferRequest.prototype.setReserveExactAmount = function(value) {
|
||||||
return jspb.Message.setProto3BooleanField(this, 10, value);
|
return jspb.Message.setProto3BooleanField(this, 10, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
6
dist/protobuf/pb_pb.d.ts
vendored
6
dist/protobuf/pb_pb.d.ts
vendored
@ -5875,8 +5875,8 @@ export class OpenOffer extends jspb.Message {
|
|||||||
getTriggerPrice(): number;
|
getTriggerPrice(): number;
|
||||||
setTriggerPrice(value: number): OpenOffer;
|
setTriggerPrice(value: number): OpenOffer;
|
||||||
|
|
||||||
getSplitOutput(): boolean;
|
getReserveExactAmount(): boolean;
|
||||||
setSplitOutput(value: boolean): OpenOffer;
|
setReserveExactAmount(value: boolean): OpenOffer;
|
||||||
|
|
||||||
getScheduledTxHashesList(): Array<string>;
|
getScheduledTxHashesList(): Array<string>;
|
||||||
setScheduledTxHashesList(value: Array<string>): OpenOffer;
|
setScheduledTxHashesList(value: Array<string>): OpenOffer;
|
||||||
@ -5911,7 +5911,7 @@ export namespace OpenOffer {
|
|||||||
offer?: Offer.AsObject,
|
offer?: Offer.AsObject,
|
||||||
state: OpenOffer.State,
|
state: OpenOffer.State,
|
||||||
triggerPrice: number,
|
triggerPrice: number,
|
||||||
splitOutput: boolean,
|
reserveExactAmount: boolean,
|
||||||
scheduledTxHashesList: Array<string>,
|
scheduledTxHashesList: Array<string>,
|
||||||
scheduledAmount: string,
|
scheduledAmount: string,
|
||||||
splitOutputTxHash: string,
|
splitOutputTxHash: string,
|
||||||
|
12
dist/protobuf/pb_pb.js
vendored
12
dist/protobuf/pb_pb.js
vendored
@ -48268,7 +48268,7 @@ proto.io.haveno.protobuffer.OpenOffer.toObject = function(includeInstance, msg)
|
|||||||
offer: (f = msg.getOffer()) && proto.io.haveno.protobuffer.Offer.toObject(includeInstance, f),
|
offer: (f = msg.getOffer()) && proto.io.haveno.protobuffer.Offer.toObject(includeInstance, f),
|
||||||
state: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
state: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||||
triggerPrice: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
triggerPrice: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||||
splitOutput: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
reserveExactAmount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
||||||
scheduledTxHashesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
scheduledTxHashesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
||||||
scheduledAmount: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
scheduledAmount: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||||
splitOutputTxHash: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
splitOutputTxHash: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||||
@ -48326,7 +48326,7 @@ proto.io.haveno.protobuffer.OpenOffer.deserializeBinaryFromReader = function(msg
|
|||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
var value = /** @type {boolean} */ (reader.readBool());
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
msg.setSplitOutput(value);
|
msg.setReserveExactAmount(value);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
@ -48403,7 +48403,7 @@ proto.io.haveno.protobuffer.OpenOffer.serializeBinaryToWriter = function(message
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = message.getSplitOutput();
|
f = message.getReserveExactAmount();
|
||||||
if (f) {
|
if (f) {
|
||||||
writer.writeBool(
|
writer.writeBool(
|
||||||
4,
|
4,
|
||||||
@ -48542,10 +48542,10 @@ proto.io.haveno.protobuffer.OpenOffer.prototype.setTriggerPrice = function(value
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional bool split_output = 4;
|
* optional bool reserve_exact_amount = 4;
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
proto.io.haveno.protobuffer.OpenOffer.prototype.getSplitOutput = function() {
|
proto.io.haveno.protobuffer.OpenOffer.prototype.getReserveExactAmount = function() {
|
||||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -48554,7 +48554,7 @@ proto.io.haveno.protobuffer.OpenOffer.prototype.getSplitOutput = function() {
|
|||||||
* @param {boolean} value
|
* @param {boolean} value
|
||||||
* @return {!proto.io.haveno.protobuffer.OpenOffer} returns this
|
* @return {!proto.io.haveno.protobuffer.OpenOffer} returns this
|
||||||
*/
|
*/
|
||||||
proto.io.haveno.protobuffer.OpenOffer.prototype.setSplitOutput = function(value) {
|
proto.io.haveno.protobuffer.OpenOffer.prototype.setReserveExactAmount = function(value) {
|
||||||
return jspb.Message.setProto3BooleanField(this, 4, value);
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user