fireblocks-sdk
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -5,7 +5,7 @@ ### Changelog | ||
#### [v1.13.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.9.0...v1.13.0) | ||
#### [v1.14.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.9.0...v1.14.0) | ||
> 17 February 2022 | ||
> 3 March 2022 | ||
- added get exchange by asset [`#75`](https://github.com/fireblocks/fireblocks-sdk-js/pull/75) | ||
- Add assetId to gas-station configuration [`#76`](https://github.com/fireblocks/fireblocks-sdk-js/pull/76) | ||
@@ -12,0 +12,0 @@ #### [v1.9.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.8.2...v1.9.0) |
@@ -407,7 +407,7 @@ import { IAuthProvider } from "./iauth-provider"; | ||
*/ | ||
getGasStationInfo(): Promise<GasStationInfo>; | ||
getGasStationInfo(assetId?: string): Promise<GasStationInfo>; | ||
/** | ||
* Set configuration of the Gas Station account | ||
*/ | ||
setGasStationConfiguration(gasThreshold: string, gasCap: string, maxGasPrice?: string): Promise<OperationSuccessResponse>; | ||
setGasStationConfiguration(gasThreshold: string, gasCap: string, maxGasPrice?: string, assetId?: string): Promise<OperationSuccessResponse>; | ||
/** | ||
@@ -414,0 +414,0 @@ * Drop an ETH based transaction |
@@ -778,5 +778,8 @@ "use strict"; | ||
*/ | ||
getGasStationInfo() { | ||
getGasStationInfo(assetId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `/v1/gas_station`; | ||
let url = `/v1/gas_station`; | ||
if (assetId) { | ||
url += `/${assetId}`; | ||
} | ||
return yield this.apiClient.issueGetRequest(url); | ||
@@ -788,5 +791,8 @@ }); | ||
*/ | ||
setGasStationConfiguration(gasThreshold, gasCap, maxGasPrice) { | ||
setGasStationConfiguration(gasThreshold, gasCap, maxGasPrice, assetId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `/v1/gas_station/configuration`; | ||
let url = `/v1/gas_station/configuration`; | ||
if (assetId) { | ||
url += `/${assetId}`; | ||
} | ||
const body = { gasThreshold, gasCap, maxGasPrice }; | ||
@@ -793,0 +799,0 @@ return yield this.apiClient.issuePutRequest(url, body); |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"main": "dist/fireblocks-sdk.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts", |
Sorry, the diff of this file is not supported yet
125576
2202