Skip to content

Commit

Permalink
Merge branch 'haveno-dex:master' into task-add-xhr
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Dec 27, 2024
2 parents c0fff3b + 1d50b00 commit ed92157
Show file tree
Hide file tree
Showing 816 changed files with 6,981 additions and 6,286 deletions.
9 changes: 6 additions & 3 deletions dist/HavenoClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export default class HavenoClient {
/**
* Delete a payment account.
*
* @param paymentAccountId {string} the id of the payment account to delete
* @param {string} paymentAccountId the id of the payment account to delete
*/
deletePaymentAccount(paymentAccountId: string): Promise<void>;
/**
Expand Down Expand Up @@ -437,9 +437,11 @@ export default class HavenoClient {
* @param {number} triggerPrice - price to remove offer (optional)
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
* @param {boolean} isPrivateOffer - whether the offer is private (default = false)
* @param {boolean} buyerAsTakerWithoutDeposit - waive buyer as taker deposit and fee (default false)
* @return {OfferInfo} the posted offer
*/
postOffer(direction: OfferDirection, amount: bigint, assetCode: string, paymentAccountId: string, securityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, minAmount?: bigint, reserveExactAmount?: boolean): Promise<OfferInfo>;
postOffer(direction: OfferDirection, amount: bigint, assetCode: string, paymentAccountId: string, securityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, minAmount?: bigint, reserveExactAmount?: boolean, isPrivateOffer?: boolean, buyerAsTakerWithoutDeposit?: boolean): Promise<OfferInfo>;
/**
* Remove a posted offer, releasing its reserved funds.
*
Expand All @@ -452,9 +454,10 @@ export default class HavenoClient {
* @param {string} offerId - id of the offer to take
* @param {string} paymentAccountId - id of the payment account
* @param {bigint|undefined} amount - amount the taker chooses to buy or sell within the offer range (default is max offer amount)
* @param {string|undefined} challenge - the challenge to use for the private offer
* @return {TradeInfo} the initialized trade
*/
takeOffer(offerId: string, paymentAccountId: string, amount?: bigint): Promise<TradeInfo>;
takeOffer(offerId: string, paymentAccountId: string, amount?: bigint, challenge?: string): Promise<TradeInfo>;
/**
* Get a trade by id.
*
Expand Down
21 changes: 15 additions & 6 deletions dist/HavenoClient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/HavenoClient.js.map

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions dist/protobuf/grpc_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,8 @@ export class PostOfferRequest extends jspb.Message {
getMinAmount(): string;
setMinAmount(value: string): PostOfferRequest;

getBuyerSecurityDepositPct(): number;
setBuyerSecurityDepositPct(value: number): PostOfferRequest;
getSecurityDepositPct(): number;
setSecurityDepositPct(value: number): PostOfferRequest;

getTriggerPrice(): string;
setTriggerPrice(value: string): PostOfferRequest;
Expand All @@ -1537,6 +1537,12 @@ export class PostOfferRequest extends jspb.Message {
getPaymentAccountId(): string;
setPaymentAccountId(value: string): PostOfferRequest;

getIsPrivateOffer(): boolean;
setIsPrivateOffer(value: boolean): PostOfferRequest;

getBuyerAsTakerWithoutDeposit(): boolean;
setBuyerAsTakerWithoutDeposit(value: boolean): PostOfferRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PostOfferRequest.AsObject;
static toObject(includeInstance: boolean, msg: PostOfferRequest): PostOfferRequest.AsObject;
Expand All @@ -1554,10 +1560,12 @@ export namespace PostOfferRequest {
marketPriceMarginPct: number,
amount: string,
minAmount: string,
buyerSecurityDepositPct: number,
securityDepositPct: number,
triggerPrice: string,
reserveExactAmount: boolean,
paymentAccountId: string,
isPrivateOffer: boolean,
buyerAsTakerWithoutDeposit: boolean,
}
}

Expand Down Expand Up @@ -1707,6 +1715,12 @@ export class OfferInfo extends jspb.Message {
getSplitOutputTxFee(): string;
setSplitOutputTxFee(value: string): OfferInfo;

getIsPrivateOffer(): boolean;
setIsPrivateOffer(value: boolean): OfferInfo;

getChallenge(): string;
setChallenge(value: string): OfferInfo;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OfferInfo.AsObject;
static toObject(includeInstance: boolean, msg: OfferInfo): OfferInfo.AsObject;
Expand Down Expand Up @@ -1748,6 +1762,8 @@ export namespace OfferInfo {
arbitratorSigner: string,
splitOutputTxHash: string,
splitOutputTxFee: string,
isPrivateOffer: boolean,
challenge: string,
}
}

Expand Down Expand Up @@ -2367,6 +2383,9 @@ export class TakeOfferRequest extends jspb.Message {
getAmount(): string;
setAmount(value: string): TakeOfferRequest;

getChallenge(): string;
setChallenge(value: string): TakeOfferRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TakeOfferRequest.AsObject;
static toObject(includeInstance: boolean, msg: TakeOfferRequest): TakeOfferRequest.AsObject;
Expand All @@ -2380,6 +2399,7 @@ export namespace TakeOfferRequest {
offerId: string,
paymentAccountId: string,
amount: string,
challenge: string,
}
}

Expand Down
Loading

0 comments on commit ed92157

Please sign in to comment.