@replicode/parallax
Advanced tools
Comparing version 1.2.43 to 1.2.44
@@ -20,2 +20,3 @@ import { ParallaxOptions } from './parallax.options'; | ||
userWallets(userID: string): Promise<Parallax.Wallet[]>; | ||
getWallets(walletIDs: string[]): Promise<Parallax.Wallet[]>; | ||
removeWallet(userID: string, chain: string, address: string): Promise<Boolean>; | ||
@@ -22,0 +23,0 @@ removeAllWallets(userID: string): Promise<Boolean>; |
@@ -215,2 +215,17 @@ "use strict"; | ||
} | ||
async getWallets(walletIDs) { | ||
let route = `/wallet`; | ||
let body = { | ||
walletIDs: walletIDs | ||
}; | ||
try { | ||
let response = await this.client.post(route, body); | ||
let wallets = response.data; | ||
return wallets; | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async removeWallet(userID, chain, address) { | ||
@@ -217,0 +232,0 @@ let route = `/user/wallet/${address}`; |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.2.43", | ||
"version": "1.2.44", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -250,2 +250,19 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
async getWallets(walletIDs:string[]):Promise<Parallax.Wallet[]> { | ||
let route = `/wallet`; | ||
let body = { | ||
walletIDs: walletIDs | ||
}; | ||
try { | ||
let response:AxiosResponse = await this.client.post(route, body); | ||
let wallets: Parallax.Wallet[] = response.data as Parallax.Wallet[]; | ||
return wallets; | ||
} catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async removeWallet(userID:string, chain:string, address:string):Promise<Boolean> { | ||
@@ -252,0 +269,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60675
1380