@replicode/parallax
Advanced tools
Comparing version 1.2.61 to 1.2.62
@@ -20,2 +20,3 @@ import { ParallaxOptions } from './parallax.options'; | ||
userWallets(userID: string): Promise<Parallax.Wallet[]>; | ||
getWallet(walletID: string): Promise<Parallax.Wallet>; | ||
getWallets(walletIDs: string[]): Promise<Parallax.Wallet[]>; | ||
@@ -22,0 +23,0 @@ removeWallet(userID: string, chain: string, address: string): Promise<Boolean>; |
@@ -214,2 +214,14 @@ "use strict"; | ||
} | ||
async getWallet(walletID) { | ||
let route = `/wallet/${walletID}`; | ||
try { | ||
let response = await this.client.get(route); | ||
let wallets = response.data; | ||
return wallets; | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async getWallets(walletIDs) { | ||
@@ -216,0 +228,0 @@ let route = `/wallet/batch`; |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.2.61", | ||
"version": "1.2.62", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -250,2 +250,14 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
async getWallet(walletID: string):Promise<Parallax.Wallet> { | ||
let route = `/wallet/${walletID}`; | ||
try { | ||
let response:AxiosResponse = await this.client.get(route); | ||
let wallets: Parallax.Wallet = response.data as Parallax.Wallet; | ||
return wallets; | ||
} catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async getWallets(walletIDs:string[]):Promise<Parallax.Wallet[]> { | ||
@@ -252,0 +264,0 @@ let route = `/wallet/batch`; |
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
67130
1520