mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-22 22:40:42 -04:00
bump version to 0.0.5
update dist and typedocs
This commit is contained in:
parent
e9995566cd
commit
60a9c98285
456 changed files with 1128 additions and 645 deletions
19
dist/HavenoClient.js
vendored
19
dist/HavenoClient.js
vendored
|
@ -665,14 +665,29 @@ class HavenoClient {
|
|||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get the primary address of the Monero wallet.
|
||||
*
|
||||
* @return {string} the primary address of the Monero wallet
|
||||
*/
|
||||
async getXmrPrimaryAddress() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this._walletsClient.getXmrPrimaryAddress(new grpc_pb_1.GetXmrPrimaryAddressRequest(), { password: this._password }, function (err, response) {
|
||||
if (err)
|
||||
reject(err);
|
||||
else
|
||||
resolve(response.getPrimaryAddress());
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get a new subaddress in the Monero wallet to receive deposits.
|
||||
*
|
||||
* @return {string} the deposit address (a subaddress in the Haveno wallet)
|
||||
*/
|
||||
async getNewDepositAddress() {
|
||||
async getXmrNewSubaddress() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this._walletsClient.getNewDepositAddress(new grpc_pb_1.GetNewDepositAddressRequest(), { password: this._password }, function (err, response) {
|
||||
this._walletsClient.getXmrNewSubaddress(new grpc_pb_1.GetXmrNewSubaddressRequest(), { password: this._password }, function (err, response) {
|
||||
if (err)
|
||||
reject(err);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue