Skip to content

Commit

Permalink
to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
barakfireblocks committed Aug 22, 2024
1 parent df5c47b commit f446d7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions fireblocks_sdk/api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ def to_dict(self):
for rescan_tx in self.rescan_txs:
self.txs_to_validate.append(rescan_tx.to_dict())

class RescanTxResponse:
def __init__(self, tx_hashes, base_asset, network_protocol):
self.txHashes = tx_hashes
self.baseAsset = base_asset
self.networkProtocol = network_protocol

class PagedVaultAccountsRequestFilters:
""" Optional filters to apply for request
Expand Down
3 changes: 2 additions & 1 deletion fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
TokenOwnershipSpamUpdatePayload,
RescanTx,
RescanTxRequest,
RescanTxResponse,
)
from .tokenization_api_types import \
CreateTokenRequest, \
Expand Down Expand Up @@ -2110,7 +2111,7 @@ def get_max_bip44_index_used(self, vault_account_id, asset_id):

return self._get_request(url)

def rescan_transactions(self, rescan_txs: List[RescanTx]):
def rescan_transactions(self, rescan_txs: List[RescanTx]) -> list[RescanTxResponse]:
"""initiate rescan for given transactions
Args:
rescan_txs: (Array of RescanTx): the transaction asset_id and hash for rescan
Expand Down

0 comments on commit f446d7b

Please sign in to comment.