@replicode/parallax
Advanced tools
Comparing version 1.1.51 to 1.1.52
@@ -29,2 +29,3 @@ "use strict"; | ||
ParallaxModule = ParallaxModule_1 = __decorate([ | ||
(0, common_1.Global)(), | ||
(0, common_1.Module)({}) | ||
@@ -31,0 +32,0 @@ ], ParallaxModule); |
@@ -16,3 +16,4 @@ import { ParallaxOptions } from './parallax.options'; | ||
collectionStats(collectionID: string): Promise<Parallax.CollectionStats>; | ||
addWallet(blockchain: string, network: string, address: string): Promise<boolean>; | ||
} | ||
//# sourceMappingURL=parallax.service.d.ts.map |
@@ -94,21 +94,2 @@ "use strict"; | ||
} | ||
async addWallet(userID, chain, address) { | ||
let route = `/user/wallet`; | ||
let body = { | ||
address: address | ||
}; | ||
const headers = {}; | ||
headers[HEADER_EXTERNAL_ID] = userID; | ||
try { | ||
let response = await this.client.post(route, body, { | ||
headers: headers | ||
}); | ||
let didAdd = response.data; | ||
return didAdd; | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async removeWallet(userID, chain, address) { | ||
@@ -178,5 +159,3 @@ let route = `/user/wallet/${address}`; | ||
try { | ||
let response = await this.client.post(route, body, { | ||
headers: headers | ||
}); | ||
let response = await this.client.post(route, body); | ||
let didAdd = response.data; | ||
@@ -183,0 +162,0 @@ return didAdd; |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.1.51", | ||
"version": "1.1.52", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -1,5 +0,6 @@ | ||
import { DynamicModule, Module } from '@nestjs/common'; | ||
import { DynamicModule, Global, Module } from '@nestjs/common'; | ||
import { ParallaxService } from './parallax.service'; | ||
import { ParallaxOptions } from './parallax.options'; | ||
@Global() | ||
@Module({}) | ||
@@ -6,0 +7,0 @@ export class ParallaxModule { |
@@ -108,26 +108,2 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
async addWallet(userID:string, chain:string, address:string):Promise<Boolean> { | ||
let route = `/user/wallet`; | ||
let body = { | ||
address: address | ||
}; | ||
const headers = {}; | ||
headers[HEADER_EXTERNAL_ID] = userID; | ||
try { | ||
let response:AxiosResponse = await this.client.post(route, body, { | ||
headers: headers | ||
}); | ||
let didAdd: Boolean = response.data as Boolean; | ||
return didAdd; | ||
} catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
async removeWallet(userID:string, chain:string, address:string):Promise<Boolean> { | ||
@@ -212,5 +188,3 @@ | ||
try { | ||
let response:AxiosResponse = await this.client.post(route, body, { | ||
headers: headers | ||
}); | ||
let response:AxiosResponse = await this.client.post(route, body); | ||
let didAdd: boolean = response.data as boolean; | ||
@@ -217,0 +191,0 @@ return didAdd; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33311
710