Skip to content

Commit

Permalink
Update tokenization DTOs and deprecate unused method (#179)
Browse files Browse the repository at this point in the history
* Update tokenization DTO

* Adding back constructorParams

* Minor formatting issue

* Removing constructor params
  • Loading branch information
phanigovindaraju authored May 28, 2024
1 parent 4e92720 commit 5edd2bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 0 additions & 3 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2938,9 +2938,6 @@ def upload_contract_template(self, request: ContractUploadRequest):

def get_contract_template(self, template_id: str):
return self._get_request(f"/v1/tokenization/templates/{template_id}")

def get_contract_template_constructor(self, template_id: str, with_docs: bool=False):
return self._get_request(f"/v1/tokenization/templates/{template_id}/constructor?withDocs=${with_docs}")

def get_contract_template_deploy_function(self, template_id: str, with_docs: bool=False):
return self._get_request(f"/v1/tokenization/templates/{template_id}/deploy_function?withDocs=${with_docs}")
Expand Down
12 changes: 8 additions & 4 deletions fireblocks_sdk/tokenization_api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ def __init__(self, inputs: List[ParameterWithValue], name: Optional[str] = ""):


class EVMTokenCreateParams(BaseDictClass):
def __init__(self, contract_id: str, constructor_params: Optional[List[ParameterWithValue]] = None):
def __init__(
self,
contract_id: str,
deploy_function_params: Optional[List[ParameterWithValue]] = None
):
self.contract_id = contract_id
self.constructor_params = constructor_params
self.deploy_function_params = deploy_function_params


class StellarRippleCreateParams(BaseDictClass):
Expand Down Expand Up @@ -82,11 +86,11 @@ def __init__(
self,
asset_id: str,
vault_account_id: str,
constructor_parameters: Optional[List[ParameterWithValue]] = None
deploy_function_params: Optional[List[ParameterWithValue]] = None
):
self.asset_id = asset_id
self.vault_account_id = vault_account_id
self.constructor_parameters = constructor_parameters
self.deploy_function_params = deploy_function_params


class AbiFunction(BaseDictClass):
Expand Down

0 comments on commit 5edd2bc

Please sign in to comment.