From 64169078c8a30e6b3f674ffaba473cd2d0125f26 Mon Sep 17 00:00:00 2001 From: Shahar Cohen Date: Sun, 6 Aug 2023 09:09:42 -0700 Subject: [PATCH 1/2] Adding support for setting admin quorum via API' --- src/fireblocks-sdk.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index 026e63ed..422ffd51 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -1032,6 +1032,17 @@ export class FireblocksSDK { return await this.apiClient.issuePostRequest(url, body, requestOptions); } + /** + * update the threshold of the admin quorum count + */ + public async setAdminQuorumThreshold(adminThreshold: number , requestOptions?: RequestOptions): Promise { + const url = `/v1/admin_quorum`; + + const body = {adminThreshold}; + + return await this.apiClient.issuePutRequest(url, body); + } + /** * Get max spendable amount per asset and vault */ From 96188fb5954c9bdc4d5b027f3f9c6ee9f208f924 Mon Sep 17 00:00:00 2001 From: SCFireblocks Date: Tue, 22 Aug 2023 11:47:20 -0700 Subject: [PATCH 2/2] update response param --- src/fireblocks-sdk.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index 422ffd51..ce27a707 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -90,7 +90,7 @@ import { SmartTransfersTicketsFilters, SmartTransfersTicketTermPayload, SmartTransfersTicketTermFundPayload, - SmartTransfersTicketTermResponse, + SmartTransfersTicketTermResponse, SetAdminOperationResponse, } from "./types"; import { AxiosProxyConfig, AxiosResponse } from "axios"; import { PIIEncryption } from "./pii-client"; @@ -1035,7 +1035,7 @@ export class FireblocksSDK { /** * update the threshold of the admin quorum count */ - public async setAdminQuorumThreshold(adminThreshold: number , requestOptions?: RequestOptions): Promise { + public async setAdminQuorumThreshold(adminThreshold: number , requestOptions?: RequestOptions): Promise { const url = `/v1/admin_quorum`; const body = {adminThreshold};