Conversation
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
|
|
||
| # enum Environment with sui-prod sui-staging sui-dev | ||
| # enum Environment with environment name and RPC URL | ||
| class Environment(str, Enum): |
There was a problem hiding this comment.
avoid double specification of environment, from a single enum we have both values
| self.__update_token_task = asyncio.create_task(self.__refresh_token()) | ||
| self.__is_connected = True | ||
| self.__contracts_config = (await self.exchange_data_api.get_exchange_info()).contracts_config | ||
| # set contracts and rpc calls |
There was a problem hiding this comment.
on init we construct the RPC call class and settings dyncamically.
User description
Quick solution to better deposit interface
PR Type
Enhancement
Description
Enhanced
Environmentenum to include RPC URLs and propertiesRefactored SDK initialization for dynamic contract and RPC setup
Added
deposit_to_asset_bankmethod for asset depositsImproved code structure and removed redundant parameters
Changes walkthrough 📝
bluefin_pro_sdk.py
Refactor environment handling and add deposit methodpython/sdk/src/bluefin_pro_sdk.py
Environmentenum to store both environment name and RPC URL,with accessor properties.
BluefinProSdk.__init__to remove redundant parameters anddynamically configure contracts and RPC calls.
deposit_to_asset_bankasync method for depositing assets to theexternal asset bank.
initfor dynamic asset andcontract info.
RpcUrlenum and streamlined environment handling.