Skip to content

Commit e2c9d9d

Browse files
committed
fix: comments deposit fee methods
1 parent 278f9a6 commit e2c9d9d

File tree

2 files changed

+57
-57
lines changed

2 files changed

+57
-57
lines changed

lib/client.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,43 +1220,43 @@ Accepted values: never, optionally, required
12201220
return response["fee"];
12211221
}
12221222

1223-
/**
1224-
* Get estimates of deposit fees
1225-
*
1226-
* Requires the "Payment information" API key Access Right.
1227-
*
1228-
* https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
1229-
*
1230-
* @param {FeeRequest[]} feeRequests A list of fee requests
1231-
*
1232-
* @return The list of requested fees
1233-
*/
1234-
async getBulkEstimateDepositFees(feeRequests: FeeRequest[]): Promise<Fee[]> {
1235-
return this.post("wallet/crypto/fee/deposit/estimate/bulk", feeRequests);
1236-
}
1237-
1238-
/**
1239-
* Get an estimate of a deposit fee
1240-
*
1241-
* Requires the "Payment information" API key Access Right.
1242-
*
1243-
* https://api.exchange.cryptomkt.com/#estimate-deposit-fee
1244-
*
1245-
* @param {object} params
1246-
* @param {string} params.currency the currency code for deposit
1247-
* @param {string} params.amount the expected deposit amount
1248-
* @param {string} [params.netwrokCode] Optional. Network code
1249-
*
1250-
* @return The expected fee
1251-
*/
1252-
async getEstimateDepositFee(params: {
1253-
currency: string;
1254-
amount: string;
1255-
networkCode?: string;
1256-
}): Promise<string> {
1257-
const response = await this.get("wallet/crypto/fee/deposit/estimate", params);
1258-
return response["fee"];
1259-
}
1223+
// /**
1224+
// * Get estimates of deposit fees
1225+
// *
1226+
// * Requires the "Payment information" API key Access Right.
1227+
// *
1228+
// * https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
1229+
// *
1230+
// * @param {FeeRequest[]} feeRequests A list of fee requests
1231+
// *
1232+
// * @return The list of requested fees
1233+
// */
1234+
// async getBulkEstimateDepositFees(feeRequests: FeeRequest[]): Promise<Fee[]> {
1235+
// return this.post("wallet/crypto/fee/deposit/estimate/bulk", feeRequests);
1236+
// }
1237+
1238+
// /**
1239+
// * Get an estimate of a deposit fee
1240+
// *
1241+
// * Requires the "Payment information" API key Access Right.
1242+
// *
1243+
// * https://api.exchange.cryptomkt.com/#estimate-deposit-fee
1244+
// *
1245+
// * @param {object} params
1246+
// * @param {string} params.currency the currency code for deposit
1247+
// * @param {string} params.amount the expected deposit amount
1248+
// * @param {string} [params.netwrokCode] Optional. Network code
1249+
// *
1250+
// * @return The expected fee
1251+
// */
1252+
// async getEstimateDepositFee(params: {
1253+
// currency: string;
1254+
// amount: string;
1255+
// networkCode?: string;
1256+
// }): Promise<string> {
1257+
// const response = await this.get("wallet/crypto/fee/deposit/estimate", params);
1258+
// return response["fee"];
1259+
// }
12601260

12611261
/**
12621262
* Converts between currencies

test/rest/walletManagement.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,26 @@ describe("wallet management", () => {
160160
fees.forEach(fee => assert(goodFee(fee), "not good fee"))
161161
});
162162
});
163-
describe("get estimate deposit fee", () => {
164-
it("", async function () {
165-
this.timeout(0);
166-
let fee = await client.getEstimateDepositFee({
167-
currency: "CRO",
168-
amount: "100",
169-
});
170-
assert(fee !== "", "not a good fee");
171-
});
172-
});
173-
describe("get bulk estimates deposit fees", () => {
174-
it("", async function () {
175-
this.timeout(0);
176-
let fees = await client.getBulkEstimateDepositFees([
177-
{ currency: "CRO", amount: "100" },
178-
{ currency: "EOS", amount: "12" }
179-
]);
180-
fees.forEach(fee => assert(goodFee(fee), "not good fee"))
181-
});
182-
});
163+
// describe("get estimate deposit fee", () => {
164+
// it("", async function () {
165+
// this.timeout(0);
166+
// let fee = await client.getEstimateDepositFee({
167+
// currency: "CRO",
168+
// amount: "100",
169+
// });
170+
// assert(fee !== "", "not a good fee");
171+
// });
172+
// });
173+
// describe("get bulk estimates deposit fees", () => {
174+
// it("", async function () {
175+
// this.timeout(0);
176+
// let fees = await client.getBulkEstimateDepositFees([
177+
// { currency: "CRO", amount: "100" },
178+
// { currency: "EOS", amount: "12" }
179+
// ]);
180+
// fees.forEach(fee => assert(goodFee(fee), "not good fee"))
181+
// });
182+
// });
183183
describe("check if crypto address belongs to current account", () => {
184184
it("eth belongs", async function () {
185185
this.timeout(0);

0 commit comments

Comments
 (0)