Skip to content

Commit

Permalink
add EP
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-fireblocks committed Nov 18, 2024
1 parent 8dad09a commit 49ed584
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/ncw-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,8 @@ export class NcwApiClient implements NcwSdk {
public async getUnspentInputs(walletId: string, accountId: number, assetId: string): Promise<UnspentInputsResponse[]> {
return await this.apiClient.issueGetRequest(`/v1/ncw/${walletId}/accounts/${accountId}/${assetId}/unspent_inputs`);
}

public async deleteSigningAlgorithm(walletId: string, algorithm: SigningAlgorithm): Promise<void> {
return await this.apiClient.issueGetRequest(`/v1/ncw/${walletId}/remove_signing_algorithm/${algorithm}`);
}
}
13 changes: 11 additions & 2 deletions src/ncw-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,21 @@ export interface NcwSdk {
getUnspentInputs(walletId: string, accountId: number, assetId: string): Promise<UnspentInputsResponse[]>;

/**
* refresh a NCW asset balance
* set required algorithms for a wallet
*
* @param {string} walletId
* @param {string} walletId
* @param {SigningAlgorithm[]} algorithms
* @return {*} {Promise<void>}
*/
setWalletRequiredAlgorithms(walletId: string, algorithms: SigningAlgorithm[]): Promise<void>;

/**
* delete signing algorithms for a wallet
*
* @param {string} walletId
* @param {SigningAlgorithm} algorithm
* @return {*} {Promise<void>}
*/
deleteSigningAlgorithm(walletId: string, algorithm: SigningAlgorithm): Promise<void>;

}

0 comments on commit 49ed584

Please sign in to comment.