Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update monero-ts to v0.9.4 #250

Merged
merged 5 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions dist/HavenoClient.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as grpcWeb from "grpc-web";
import { GetVersionClient, AccountClient, MoneroConnectionsClient, DisputesClient, DisputeAgentsClient, NotificationsClient, WalletsClient, PriceClient, OffersClient, PaymentAccountsClient, TradesClient, ShutdownServerClient, MoneroNodeClient } from './protobuf/GrpcServiceClientPb';
import { MarketPriceInfo, MarketDepthInfo, XmrBalanceInfo, OfferInfo, TradeInfo, XmrTx, XmrDestination, NotificationMessage, UrlConnection } from "./protobuf/grpc_pb";
import { PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, Attachment, DisputeResult, Dispute, ChatMessage, MoneroNodeSettings } from "./protobuf/pb_pb";
import { OfferDirection, PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, Attachment, DisputeResult, Dispute, ChatMessage, MoneroNodeSettings } from "./protobuf/pb_pb";
/**
* Haveno daemon client.
*/
Expand Down Expand Up @@ -392,18 +392,18 @@ export default class HavenoClient {
* Get available offers to buy or sell XMR.
*
* @param {string} assetCode - traded asset code
* @param {string|undefined} direction - "buy" or "sell" (default all)
* @param {OfferDirection|undefined} direction - "buy" or "sell" (default all)
* @return {OfferInfo[]} the available offers
*/
getOffers(assetCode: string, direction?: string): Promise<OfferInfo[]>;
getOffers(assetCode: string, direction?: OfferDirection): Promise<OfferInfo[]>;
/**
* Get the user's posted offers to buy or sell XMR.
*
* @param {string|undefined} assetCode - traded asset code
* @param {string|undefined} direction - "buy" or "sell" XMR (default all)
* @param {OfferDirection|undefined} direction - get offers to buy or sell XMR (default all)
* @return {OfferInfo[]} the user's created offers
*/
getMyOffers(assetCode?: string, direction?: string): Promise<OfferInfo[]>;
getMyOffers(assetCode?: string, direction?: OfferDirection): Promise<OfferInfo[]>;
/**
* Get my offer by id.
*
Expand All @@ -414,7 +414,7 @@ export default class HavenoClient {
/**
* Post an offer.
*
* @param {string} direction - "buy" or "sell" XMR
* @param {OfferDirection} direction - "buy" or "sell" XMR
* @param {bigint} amount - amount of XMR to trade
* @param {string} assetCode - asset code to trade for XMR
* @param {string} paymentAccountId - payment account id
Expand All @@ -426,7 +426,7 @@ export default class HavenoClient {
* @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
*/
postOffer(direction: string, 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): Promise<OfferInfo>;
/**
* Remove a posted offer, releasing its reserved funds.
*
Expand Down
21 changes: 11 additions & 10 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.

2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import HavenoClient from "./HavenoClient";
import HavenoError from "./utils/HavenoError";
import HavenoError from "./types/HavenoError";
import HavenoUtils from "./utils/HavenoUtils";
export { HavenoClient };
export { HavenoError };
Expand Down
2 changes: 1 addition & 1 deletion dist/index.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/protobuf/pb_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7734,7 +7734,7 @@ export enum SupportType {
REFUND = 3,
}
export enum OfferDirection {
OFFER_DIRECTION_ERROR = 0,
OFFER_DIRECTION_UNDEFINED = 0,
BUY = 1,
SELL = 2,
}
Expand Down
2 changes: 1 addition & 1 deletion dist/protobuf/pb_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -61579,7 +61579,7 @@ proto.io.haveno.protobuffer.SupportType = {
* @enum {number}
*/
proto.io.haveno.protobuffer.OfferDirection = {
OFFER_DIRECTION_ERROR: 0,
OFFER_DIRECTION_UNDEFINED: 0,
BUY: 1,
SELL: 2
};
Expand Down
2 changes: 1 addition & 1 deletion dist/protobuf/pb_pb.js.map

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions dist/types/HavenoError.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Haveno error with message and code.
*/
export default class HavenoError extends Error {
code: number | undefined;
/**
* Create the error with a message and code.
*
* @param {string} msg - the error message
* @param {number} code
*/
constructor(msg: string, code?: number);
}
19 changes: 19 additions & 0 deletions dist/types/HavenoError.js

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

1 change: 1 addition & 0 deletions dist/types/HavenoError.js.map

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

80 changes: 45 additions & 35 deletions package-lock.json

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

Loading
Loading