Skip to content

Commit

Permalink
Update Tokenization DTOs and deprecate unused route (#276)
Browse files Browse the repository at this point in the history
* Remove constructor endpoint

* Remove constructorParams

* Change EVMTokenCreateParamsDto

* Update parameter name

* Adding back constructor params to support integration tests

* Removing constructor params
  • Loading branch information
phanigovindaraju authored May 28, 2024
1 parent c2dd79c commit 35befcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
13 changes: 0 additions & 13 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1885,19 +1885,6 @@ export class FireblocksSDK {
return await this.apiClient.issueDeleteRequest(`/v1/tokenization/templates/${templateId}`);
}

/**
* @deprecated Use getContractTemplateDeployFunction instead
*
* Get contract template constructor by id
* @param templateId
* @param withDocs
*
* @returns {AbiFunction}
*/
public async getContractTemplateConstructor(templateId: string, withDocs: boolean = false): Promise<AbiFunction> {
return await this.apiClient.issueGetRequest(`/v1/tokenization/templates/${templateId}/constructor?withDocs=${withDocs}`);
}

/**
* Get contract template deploy function by id
* @param templateId
Expand Down
5 changes: 2 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1799,8 +1799,7 @@ interface VendorDto {
export interface ContractDeployRequest {
assetId: string;
vaultAccountId: string;
constructorParameters?: object[];
deployFunctionParameters?: object[];
deployFunctionParams?: object[];
}

export interface SupportedBlockchain {
Expand Down Expand Up @@ -1988,7 +1987,7 @@ export type ParameterWithValueList = ParameterWithValue[] | ParameterWithValueLi

interface EVMTokenCreateParamsDto {
contractId: string;
constructorParams?: Array<ParameterWithValue>;
deployFunctionParams?: Array<ParameterWithValue>;
}

export interface ReadCallFunctionDto {
Expand Down

0 comments on commit 35befcb

Please sign in to comment.