@zondax/beryx
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -78,19 +78,9 @@ "use strict"; | ||
this.convertHash = (value, destFormat) => __awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.client.get(`${this.servicePath}/tools/convert/hash`, { | ||
method: 'GET', | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
data: JSON.stringify({ value, destination_format: destFormat }), | ||
}); | ||
const subPath = destFormat == 'eth' ? 'FilToEth' : 'EthToFil'; | ||
const response = yield this.client.get(`${this.servicePath}/convert/hash/${subPath}/${value}`); | ||
return response.data; | ||
}); | ||
this.convertAddress = (value, destFormat) => __awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.client.get(`${this.servicePath}/tools/convert/address`, { | ||
method: 'GET', | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
data: JSON.stringify({ value, destination_format: destFormat }), | ||
}); | ||
const subPath = destFormat == 'eth' ? 'FilToEth' : 'EthToFil'; | ||
const response = yield this.client.get(`${this.servicePath}/convert/address/${subPath}/${value}`); | ||
return response.data; | ||
@@ -97,0 +87,0 @@ }); |
@@ -9,2 +9,2 @@ "use strict"; | ||
exports.DataPrefixPath = 'fil/data'; | ||
exports.ToolsPrefixPath = 'fil/data'; | ||
exports.ToolsPrefixPath = 'fil/tools'; |
{ | ||
"name": "@zondax/beryx", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Beryx indexes and exposes via a public API Filecoin historical and real-time data. We provide historical transactions of every account, interactions with multisig accounts, fees details and many more.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
29541
358