defi-state-querier 0.4.25__py3-none-any.whl → 0.4.26__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/jobs/processors/multi_state_processor.py +2 -2
  3. defi_services/jobs/processors/state_processor.py +2 -2
  4. defi_services/jobs/queriers/state_querier.py +4 -4
  5. defi_services/services/dex/pancakeswap_service.py +1 -1
  6. defi_services/services/dex/pancakeswap_v2_service.py +1 -1
  7. defi_services/services/dex/uniswap_v2_service.py +1 -1
  8. defi_services/services/dex/uniswap_v3_service.py +2 -2
  9. defi_services/services/lending/aave_v2_services.py +2 -2
  10. defi_services/services/lending/aave_v3_services.py +4 -4
  11. defi_services/services/lending/apeswap_services.py +3 -3
  12. defi_services/services/lending/compound_service.py +3 -3
  13. defi_services/services/lending/compound_v3_services.py +1 -1
  14. defi_services/services/lending/flux_services.py +3 -3
  15. defi_services/services/lending/granary_services.py +1 -1
  16. defi_services/services/lending/iron_bank_service.py +4 -4
  17. defi_services/services/lending/justlend_service.py +3 -3
  18. defi_services/services/lending/liqee_service.py +3 -3
  19. defi_services/services/lending/morpho_aave_v2_services.py +2 -2
  20. defi_services/services/lending/morpho_aave_v3_services.py +2 -2
  21. defi_services/services/lending/morpho_compound_services.py +5 -5
  22. defi_services/services/lending/onyx_service.py +4 -4
  23. defi_services/services/lending/silo_services.py +3 -3
  24. defi_services/services/lending/strike_service.py +3 -3
  25. defi_services/services/lending/trava_services.py +2 -2
  26. defi_services/services/lending/uwu_services.py +2 -2
  27. defi_services/services/lending/valas_services.py +1 -1
  28. defi_services/services/lending/venus_services.py +7 -7
  29. defi_services/services/lending/wepiggy_services.py +4 -4
  30. defi_services/utils/convert_address.py +2 -2
  31. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.26.dist-info}/METADATA +1 -1
  32. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.26.dist-info}/RECORD +35 -35
  33. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.26.dist-info}/LICENSE +0 -0
  34. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.26.dist-info}/WHEEL +0 -0
  35. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.26.dist-info}/top_level.txt +0 -0
defi_services/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.25"
1
+ __version__ = "0.4.26"
@@ -31,11 +31,11 @@ class MultiStateProcessor:
31
31
 
32
32
  @staticmethod
33
33
  def check_address(address):
34
- return Web3.isAddress(address)
34
+ return Web3.is_address(address)
35
35
 
36
36
  @staticmethod
37
37
  def checksum_address(address):
38
- return Web3.toChecksumAddress(address)
38
+ return Web3.to_checksum_address(address)
39
39
 
40
40
  def init_rpc_call_information(
41
41
  self, wallet: str, query_id: str, entity_id: str, query_type: str, block_number: int = 'latest', **kwargs):
@@ -39,11 +39,11 @@ class StateProcessor:
39
39
 
40
40
  @staticmethod
41
41
  def check_address(address):
42
- return Web3.isAddress(address)
42
+ return Web3.is_address(address)
43
43
 
44
44
  @staticmethod
45
45
  def checksum_address(address):
46
- return Web3.toChecksumAddress(address)
46
+ return Web3.to_checksum_address(address)
47
47
 
48
48
  def init_rpc_call_information(
49
49
  self, wallet: str, query_id: str, entity_id: str, query_type: str, block_number: int = 'latest', **kwargs):
@@ -112,7 +112,7 @@ class StateQuerier:
112
112
  @staticmethod
113
113
  def add_native_token_balance_rpc_call(
114
114
  fn_paras: str = None, call_id: str = None, block_number: int = "latest"):
115
- eth_call = GetBalance(Web3.toChecksumAddress(fn_paras), block_number, call_id)
115
+ eth_call = GetBalance(Web3.to_checksum_address(fn_paras), block_number, call_id)
116
116
  return eth_call
117
117
 
118
118
  def add_rpc_call(self, abi: dict, fn_name: str, contract_address: str,
@@ -120,12 +120,12 @@ class StateQuerier:
120
120
  args = []
121
121
  if fn_paras:
122
122
  for item in fn_paras:
123
- if self._w3.isAddress(item):
124
- item = self._w3.toChecksumAddress(item)
123
+ if self._w3.is_address(item):
124
+ item = self._w3.to_checksum_address(item)
125
125
  args.append(item)
126
126
 
127
127
  data_call = encode_eth_call_data(abi=abi, fn_name=fn_name, args=args)
128
- eth_call = EthCall(to=self._w3.toChecksumAddress(contract_address), block_number=block_number,
128
+ eth_call = EthCall(to=self._w3.to_checksum_address(contract_address), block_number=block_number,
129
129
  data=data_call, abi=abi, fn_name=fn_name, id=call_id)
130
130
  return eth_call
131
131
 
@@ -38,7 +38,7 @@ class PancakeSwapServices(PancakeSwapV2Services):
38
38
  masterchef_addr = self.pool_info.get('master_chef_address')
39
39
 
40
40
  master_chef_contract = web3.eth.contract(abi=self.masterchef_abi,
41
- address=web3.toChecksumAddress(masterchef_addr))
41
+ address=web3.to_checksum_address(masterchef_addr))
42
42
  pool_length = master_chef_contract.functions.poolLength().call()
43
43
 
44
44
  rpc_calls = {}
@@ -42,7 +42,7 @@ class PancakeSwapV2Services(UniswapV2Services):
42
42
  masterchef_addr = self.pool_info.get('master_chef_address')
43
43
 
44
44
  master_chef_contract = web3.eth.contract(abi=self.masterchef_abi,
45
- address=web3.toChecksumAddress(masterchef_addr))
45
+ address=web3.to_checksum_address(masterchef_addr))
46
46
  pool_length = master_chef_contract.functions.poolLength().call()
47
47
 
48
48
  rpc_calls = {}
@@ -41,7 +41,7 @@ class UniswapV2Services(DexProtocolServices):
41
41
  factory_addr = self.pool_info.get('factory_address')
42
42
 
43
43
  factory_contract = web3.eth.contract(
44
- address=web3.toChecksumAddress(factory_addr), abi=self.factory_abi)
44
+ address=web3.to_checksum_address(factory_addr), abi=self.factory_abi)
45
45
  pool_length = factory_contract.functions.allPairsLength().call()
46
46
 
47
47
  rpc_calls = {}
@@ -361,6 +361,6 @@ class UniswapV3Services(DexProtocolServices):
361
361
  return user_data
362
362
 
363
363
  def checksum_address(self, address):
364
- if self.web3.isAddress(address):
365
- address = self.web3.toChecksumAddress(address)
364
+ if self.Web3.is_address(address):
365
+ address = self.web3.to_checksum_address(address)
366
366
  return address
@@ -54,7 +54,7 @@ class AaveV2StateService(ProtocolServices):
54
54
  def get_dapp_asset_info(self, block_number: int = 'latest'):
55
55
  begin = time.time()
56
56
  _w3 = self.state_service.get_w3()
57
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
57
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
58
58
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
59
59
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
60
60
  reserves_info = {}
@@ -430,7 +430,7 @@ class AaveV2StateService(ProtocolServices):
430
430
  rpc_calls = {}
431
431
  tokens = []
432
432
  for token, value in reserves_info.items():
433
- atoken, debt_token = Web3.toChecksumAddress(value['tToken']), Web3.toChecksumAddress(value['dToken'])
433
+ atoken, debt_token = Web3.to_checksum_address(value['tToken']), Web3.to_checksum_address(value['dToken'])
434
434
  tokens += [atoken, debt_token]
435
435
  key = f"getRewardsBalance_{self.name}_{wallet}_{block_number}".lower()
436
436
  rpc_calls[key] = self.get_function_incentive_info(
@@ -59,13 +59,13 @@ class AaveV3StateService(AaveV2StateService):
59
59
  def get_dapp_asset_info(self, block_number: int = 'latest'):
60
60
  _w3 = self.state_service.get_w3()
61
61
  pool_address = self.pool_info.get("address")
62
- pool_contract = _w3.eth.contract(address=_w3.toChecksumAddress(pool_address), abi=self.lending_abi)
62
+ pool_contract = _w3.eth.contract(address=_w3.to_checksum_address(pool_address), abi=self.lending_abi)
63
63
  reserve_list = pool_contract.functions.getReservesList().call(block_identifier=block_number)
64
64
  reserves_info = {}
65
65
  for token in reserve_list:
66
66
  token = token.lower()
67
67
  reserve_data = pool_contract.functions.getReserveData(
68
- _w3.toChecksumAddress(token)).call(block_identifier=block_number)
68
+ _w3.to_checksum_address(token)).call(block_identifier=block_number)
69
69
  reserves_info[token] = {}
70
70
  reserves_info[token]["tToken"] = reserve_data[8].lower()
71
71
  reserves_info[token]["sdToken"] = reserve_data[9].lower()
@@ -293,9 +293,9 @@ class AaveV3StateService(AaveV2StateService):
293
293
  reward_token, ERC20_ABI, "decimals", block_number=block_number)
294
294
  tokens = []
295
295
  for key, value in reserves_info.items():
296
- tokens += [Web3.toChecksumAddress(value["tToken"]), Web3.toChecksumAddress(value["dToken"])]
296
+ tokens += [Web3.to_checksum_address(value["tToken"]), Web3.to_checksum_address(value["dToken"])]
297
297
  key = f"getAllUserRewards_{self.name}_{wallet}_{block_number}".lower()
298
- rpc_calls[key] = self.get_function_incentive_info("getAllUserRewards", [tokens, Web3.toChecksumAddress(wallet)], block_number)
298
+ rpc_calls[key] = self.get_function_incentive_info("getAllUserRewards", [tokens, Web3.to_checksum_address(wallet)], block_number)
299
299
  return rpc_calls
300
300
 
301
301
  def calculate_rewards_balance(
@@ -43,7 +43,7 @@ class ApeSwapStateService(CompoundStateService):
43
43
  block_number: int = "latest"):
44
44
  _w3 = self.state_service.get_w3()
45
45
  comptroller_contract = _w3.eth.contract(
46
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
46
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
47
47
  ctokens = []
48
48
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
49
49
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -52,9 +52,9 @@ class ApeSwapStateService(CompoundStateService):
52
52
  ctokens.append(token)
53
53
 
54
54
  lens_contract = _w3.eth.contract(
55
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
55
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
56
56
  )
57
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
57
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
58
58
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
59
59
  reserves_info = {}
60
60
  for data in metadata:
@@ -50,7 +50,7 @@ class CompoundStateService(ProtocolServices):
50
50
  block_number: int = "latest"):
51
51
  _w3 = self.state_service.get_w3()
52
52
  comptroller_contract = _w3.eth.contract(
53
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
53
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
54
54
  ctokens = []
55
55
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
56
56
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -59,9 +59,9 @@ class CompoundStateService(ProtocolServices):
59
59
  ctokens.append(token)
60
60
 
61
61
  lens_contract = _w3.eth.contract(
62
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
62
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
63
63
  )
64
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
64
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
65
65
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
66
66
  reserves_info = {}
67
67
  for data in metadata:
@@ -51,7 +51,7 @@ class CompoundV3StateService(CompoundStateService):
51
51
  if comets:
52
52
  pools += comets
53
53
  for pool in pools:
54
- contract = w3.eth.contract(address=w3.toChecksumAddress(pool), abi=self.comet_abi)
54
+ contract = w3.eth.contract(address=w3.to_checksum_address(pool), abi=self.comet_abi)
55
55
  base_token = contract.functions.baseToken().call().lower()
56
56
  number_assets = contract.functions.numAssets().call()
57
57
  asset_data = {}
@@ -47,7 +47,7 @@ class FluxStateService(CompoundStateService):
47
47
  block_number: int = "latest"):
48
48
  _w3 = self.state_service.get_w3()
49
49
  comptroller_contract = _w3.eth.contract(
50
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
50
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
51
51
  ctokens = []
52
52
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
53
53
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -56,9 +56,9 @@ class FluxStateService(CompoundStateService):
56
56
  ctokens.append(token)
57
57
 
58
58
  lens_contract = _w3.eth.contract(
59
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
59
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
60
60
  )
61
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
61
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
62
62
  metadata = lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
63
63
  reserves_info = {}
64
64
  for data in metadata:
@@ -61,7 +61,7 @@ class GranaryStateService(ProtocolServices):
61
61
  def get_dapp_asset_info(self, block_number: int = 'latest'):
62
62
  begin = time.time()
63
63
  _w3 = self.state_service.get_w3()
64
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
64
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
65
65
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
66
66
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
67
67
  reserves_info = {}
@@ -53,7 +53,7 @@ class IronBankStateService(CompoundStateService):
53
53
  block_number: int = "latest"):
54
54
  _w3 = self.state_service.get_w3()
55
55
  comptroller_contract = _w3.eth.contract(
56
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
56
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
57
57
  ctokens = []
58
58
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
59
59
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -62,9 +62,9 @@ class IronBankStateService(CompoundStateService):
62
62
  ctokens.append(token)
63
63
 
64
64
  lens_contract = _w3.eth.contract(
65
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
65
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
66
66
  )
67
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
67
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
68
68
  reserves_info = {}
69
69
  queries = {}
70
70
  for token in tokens:
@@ -91,7 +91,7 @@ class IronBankStateService(CompoundStateService):
91
91
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
92
92
 
93
93
  if underlying != Token.native_token:
94
- underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
94
+ underlying_contract = _w3.eth.contract(address=Web3.to_checksum_address(underlying), abi=ERC20_ABI)
95
95
  underlying_decimal = underlying_contract.functions.decimals().call()
96
96
  else:
97
97
  underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
@@ -42,12 +42,12 @@ class JustLendStateService(CompoundStateService):
42
42
  block_number: int = "latest"):
43
43
  _w3 = self.state_service.get_w3()
44
44
  comptroller_contract = _w3.eth.contract(
45
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
45
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
46
46
  ctokens = []
47
47
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
48
48
  ctokens.append(token)
49
49
 
50
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
50
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
51
51
  reserves_info = {}
52
52
  queries = {}
53
53
  for token in tokens:
@@ -74,7 +74,7 @@ class JustLendStateService(CompoundStateService):
74
74
  liquidation_threshold = decoded_data.get(markets)[1] / 10 ** 18
75
75
 
76
76
  if underlying != Token.native_token:
77
- underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
77
+ underlying_contract = _w3.eth.contract(address=Web3.to_checksum_address(underlying), abi=ERC20_ABI)
78
78
  underlying_decimal = underlying_contract.functions.decimals().call()
79
79
  else:
80
80
  underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
@@ -53,13 +53,13 @@ class LiqeeStateService(CompoundStateService):
53
53
  block_number: int = "latest"):
54
54
  _w3 = self.state_service.get_w3()
55
55
  comptroller_contract = _w3.eth.contract(
56
- address=_w3.toChecksumAddress(self.pool_info.get("controllerAddress")), abi=self.controller_abi)
56
+ address=_w3.to_checksum_address(self.pool_info.get("controllerAddress")), abi=self.controller_abi)
57
57
  ctokens = []
58
58
  for token in comptroller_contract.functions.getAlliTokens().call(block_identifier=block_number):
59
59
  ctokens.append(token)
60
60
  reserves_info = {}
61
61
  for token in ctokens:
62
- address = _w3.toChecksumAddress(token)
62
+ address = _w3.to_checksum_address(token)
63
63
  contract = _w3.eth.contract(address=address, abi=self.lquee_token_abi)
64
64
  underlying = contract.functions.underlying().call(block_identifier=block_number)
65
65
  liquidation_threshold = comptroller_contract.functions.markets(address).call(block_identifier=block_number)
@@ -182,7 +182,7 @@ class LiqeeStateService(CompoundStateService):
182
182
  reserves_info: dict = None,
183
183
  block_number: int = "latest",
184
184
  ):
185
- fn_paras = [Web3.toChecksumAddress(wallet)]
185
+ fn_paras = [Web3.to_checksum_address(wallet)]
186
186
  rpc_call = self.get_lending_function_info("getAccountRewardAmount", fn_paras, block_number)
187
187
  get_reward_id = f"getAccountRewardAmount_{self.name}_{wallet}_{block_number}".lower()
188
188
  return {get_reward_id: rpc_call}
@@ -57,10 +57,10 @@ class MorphoAaveV2StateService(MorphoCompoundStateService):
57
57
  block_number: int = "latest"):
58
58
  begin = time.time()
59
59
  _w3 = self.state_service.get_w3()
60
- pool_address = Web3.toChecksumAddress(self.aave_info['address'])
60
+ pool_address = Web3.to_checksum_address(self.aave_info['address'])
61
61
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
62
62
  comptroller_contract = _w3.eth.contract(
63
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
63
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
64
64
  markets = comptroller_contract.functions.getMarketsCreated().call(block_identifier=block_number)
65
65
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
66
66
  reserves_info = {}
@@ -55,10 +55,10 @@ class MorphoAaveV3StateService(MorphoCompoundStateService):
55
55
  block_number: int = "latest"):
56
56
  begin = time.time()
57
57
  _w3 = self.state_service.get_w3()
58
- pool_address = Web3.toChecksumAddress(self.aave_info['address'])
58
+ pool_address = Web3.to_checksum_address(self.aave_info['address'])
59
59
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
60
60
  comptroller_contract = _w3.eth.contract(
61
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
61
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
62
62
  markets = comptroller_contract.functions.marketsCreated().call(block_identifier=block_number)
63
63
  markets = [i.lower() for i in markets]
64
64
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
@@ -56,7 +56,7 @@ class MorphoCompoundStateService(ProtocolServices):
56
56
  block_number: int = "latest"):
57
57
  _w3 = self.state_service.get_w3()
58
58
  comptroller_contract = _w3.eth.contract(
59
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
59
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
60
60
  ctokens = []
61
61
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
62
62
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -65,9 +65,9 @@ class MorphoCompoundStateService(ProtocolServices):
65
65
  ctokens.append(token)
66
66
 
67
67
  compound_lens_contract = _w3.eth.contract(
68
- address=Web3.toChecksumAddress(self.compound_info.get("lensAddress")), abi=self.compound_lens_abi
68
+ address=Web3.to_checksum_address(self.compound_info.get("lensAddress")), abi=self.compound_lens_abi
69
69
  )
70
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
70
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
71
71
  metadata = compound_lens_contract.functions.cTokenMetadataAll(tokens).call(block_identifier=block_number)
72
72
  reserves_info = {}
73
73
  for data in metadata:
@@ -196,8 +196,8 @@ class MorphoCompoundStateService(ProtocolServices):
196
196
  if not reserves_info:
197
197
  reserves_info = self.pool_info.get("reservesList")
198
198
  params = [
199
- [Web3.toChecksumAddress(value.get(self.market_key)) for key, value in reserves_info.items()],
200
- Web3.toChecksumAddress(wallet)
199
+ [Web3.to_checksum_address(value.get(self.market_key)) for key, value in reserves_info.items()],
200
+ Web3.to_checksum_address(wallet)
201
201
  ]
202
202
  rpc_call = self.get_lens_function_info("getUserUnclaimedRewards", params, block_number)
203
203
  get_reward_id = f"getUserUnclaimedRewards_{self.name}_{wallet}_{block_number}".lower()
@@ -49,7 +49,7 @@ class OnyxStateService(CompoundStateService):
49
49
  block_number: int = "latest"):
50
50
  _w3 = self.state_service.get_w3()
51
51
  comptroller_contract = _w3.eth.contract(
52
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
52
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
53
53
  ctokens = []
54
54
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
55
55
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -58,9 +58,9 @@ class OnyxStateService(CompoundStateService):
58
58
  ctokens.append(token)
59
59
 
60
60
  lens_contract = _w3.eth.contract(
61
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
61
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
62
62
  )
63
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
63
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
64
64
  metadata = lens_contract.functions.oTokenMetadataAll(tokens).call(block_identifier=block_number)
65
65
  reserves_info = {}
66
66
  for data in metadata:
@@ -199,7 +199,7 @@ class OnyxStateService(CompoundStateService):
199
199
  )
200
200
  key = f"oTokenBalances_{self.name}_{wallet}_{token}_{block_number}".lower()
201
201
  rpc_calls[key] = self.get_lens_function_info(
202
- "oTokenBalances", [value.get("cToken"), Web3.toChecksumAddress(wallet)])
202
+ "oTokenBalances", [value.get("cToken"), Web3.to_checksum_address(wallet)])
203
203
  return rpc_calls
204
204
 
205
205
  def calculate_wallet_deposit_borrow_balance(
@@ -64,15 +64,15 @@ class SiloStateService(ProtocolServices):
64
64
  ):
65
65
  _w3 = self.state_service.get_w3()
66
66
  repository_contract = _w3.eth.contract(
67
- address=_w3.toChecksumAddress(self.pool_info.get("repositoryAddress")), abi=self.repository_abi)
67
+ address=_w3.to_checksum_address(self.pool_info.get("repositoryAddress")), abi=self.repository_abi)
68
68
  result = {}
69
69
  if not tokens:
70
70
  tokens = self.pool_info.get("reservesList").keys()
71
71
  for token in tokens:
72
- silo_token = repository_contract.functions.getSilo(_w3.toChecksumAddress(token)).call(block_identifier=block_number)
72
+ silo_token = repository_contract.functions.getSilo(_w3.to_checksum_address(token)).call(block_identifier=block_number)
73
73
  if not silo_token:
74
74
  continue
75
- contract = _w3.eth.contract(address=_w3.toChecksumAddress(silo_token), abi=self.silo_abi)
75
+ contract = _w3.eth.contract(address=_w3.to_checksum_address(silo_token), abi=self.silo_abi)
76
76
  assets = contract.functions.getAssets().call()
77
77
  main_asset = contract.functions.siloAsset().call()
78
78
  all_assets = [i.lower() for i in assets]
@@ -47,7 +47,7 @@ class StrikeStateService(CompoundStateService):
47
47
  block_number: int = "latest"):
48
48
  _w3 = self.state_service.get_w3()
49
49
  comptroller_contract = _w3.eth.contract(
50
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
50
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
51
51
  ctokens = []
52
52
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
53
53
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -56,9 +56,9 @@ class StrikeStateService(CompoundStateService):
56
56
  ctokens.append(token)
57
57
 
58
58
  lens_contract = _w3.eth.contract(
59
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
59
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
60
60
  )
61
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
61
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
62
62
  metadata = lens_contract.functions.sTokenMetadataAll(tokens).call(block_identifier=block_number)
63
63
  reserves_info = {}
64
64
  for data in metadata:
@@ -53,7 +53,7 @@ class TravaStateService(ProtocolServices):
53
53
  def get_dapp_asset_info(self, block_number: int = 'latest'):
54
54
  begin = time.time()
55
55
  _w3 = self.state_service.get_w3()
56
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
56
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
57
57
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
58
58
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
59
59
  reserves_info = {}
@@ -396,7 +396,7 @@ class TravaStateService(ProtocolServices):
396
396
  rpc_calls = {}
397
397
  tokens = []
398
398
  for token, value in reserves_info.items():
399
- atoken, debt_token = Web3.toChecksumAddress(value['tToken']), Web3.toChecksumAddress(value['dToken'])
399
+ atoken, debt_token = Web3.to_checksum_address(value['tToken']), Web3.to_checksum_address(value['dToken'])
400
400
  tokens += [atoken, debt_token]
401
401
  key = f"getRewardsBalance_{self.name}_{wallet}_{block_number}".lower()
402
402
  rpc_calls[key] = self.get_function_incentive_info(
@@ -48,7 +48,7 @@ class UwuStateService(ProtocolServices):
48
48
  def get_dapp_asset_info(self, block_number: int = 'latest'):
49
49
  begin = time.time()
50
50
  _w3 = self.state_service.get_w3()
51
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
51
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
52
52
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
53
53
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
54
54
  reserves_info = {}
@@ -287,7 +287,7 @@ class UwuStateService(ProtocolServices):
287
287
  rpc_calls = {}
288
288
  tokens = []
289
289
  for token, value in reserves_info.items():
290
- atoken, debt_token = Web3.toChecksumAddress(value['tToken']), Web3.toChecksumAddress(value['dToken'])
290
+ atoken, debt_token = Web3.to_checksum_address(value['tToken']), Web3.to_checksum_address(value['dToken'])
291
291
  tokens += [atoken, debt_token]
292
292
  key = f"claimableReward_{self.name}_{wallet}_{block_number}".lower()
293
293
  rpc_calls[key] = self.get_function_incentive_info(
@@ -51,7 +51,7 @@ class ValasStateService(ProtocolServices):
51
51
  def get_dapp_asset_info(self, block_number: int = 'latest'):
52
52
  begin = time.time()
53
53
  _w3 = self.state_service.get_w3()
54
- pool_address = Web3.toChecksumAddress(self.pool_info['address'])
54
+ pool_address = Web3.to_checksum_address(self.pool_info['address'])
55
55
  contract = _w3.eth.contract(address=pool_address, abi=self.lending_abi)
56
56
  reserves_list = contract.functions.getReservesList().call(block_identifier=block_number)
57
57
  reserves_info = {}
@@ -50,7 +50,7 @@ class VenusStateService(CompoundStateService):
50
50
  block_number: int = "latest"):
51
51
  _w3 = self.state_service.get_w3()
52
52
  comptroller_contract = _w3.eth.contract(
53
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
53
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
54
54
  ctokens = []
55
55
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
56
56
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -59,7 +59,7 @@ class VenusStateService(CompoundStateService):
59
59
  ctokens.append(token)
60
60
 
61
61
  reserves_info = {}
62
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
62
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
63
63
  queries = {}
64
64
  for token in tokens:
65
65
  key = f"underlying_{token}_{block_number}".lower()
@@ -83,7 +83,7 @@ class VenusStateService(CompoundStateService):
83
83
  ltv = liquidation_threshold
84
84
 
85
85
  if underlying != Token.native_token:
86
- underlying_contract = _w3.eth.contract(address=Web3.toChecksumAddress(underlying), abi=ERC20_ABI)
86
+ underlying_contract = _w3.eth.contract(address=Web3.to_checksum_address(underlying), abi=ERC20_ABI)
87
87
  underlying_decimal = underlying_contract.functions.decimals().call()
88
88
  else:
89
89
  underlying_decimal = Chain.native_decimals.get(self.chain_id, 18)
@@ -152,9 +152,9 @@ class VenusStateService(CompoundStateService):
152
152
  def calculate_rewards_balance(
153
153
  self, wallet: str, reserves_info: dict, decoded_data: dict, block_number: int = "latest"):
154
154
  w3 = self.state_service.get_w3()
155
- contract = w3.eth.contract(address=w3.toChecksumAddress(self.pool_info.get("lensAddress")), abi = self.lens_abi)
155
+ contract = w3.eth.contract(address=w3.to_checksum_address(self.pool_info.get("lensAddress")), abi = self.lens_abi)
156
156
  # get_reward_id = f"pendingRewards_{self.name}_{wallet}_{block_number}".lower()
157
- return_data = contract.functions.pendingRewards(w3.toChecksumAddress(wallet), w3.toChecksumAddress(self.pool_info.get("comptrollerAddress"))).call(block_identifier=block_number)
157
+ return_data = contract.functions.pendingRewards(w3.to_checksum_address(wallet), w3.to_checksum_address(self.pool_info.get("comptrollerAddress"))).call(block_identifier=block_number)
158
158
  rewards = return_data[2]
159
159
  for item in return_data[-1]:
160
160
  rewards += item[-1]
@@ -365,7 +365,7 @@ class VenusStateService(CompoundStateService):
365
365
  reserves_info: dict = None,
366
366
  block_number: int = "latest"
367
367
  ):
368
- tokens = [Web3.toChecksumAddress(value['cToken']) for key, value in reserves_info.items()]
368
+ tokens = [Web3.to_checksum_address(value['cToken']) for key, value in reserves_info.items()]
369
369
  key = f"vTokenMetadataAll_{self.pool_info.get('lensAddress')}_{block_number}".lower()
370
370
  return {
371
371
  key: self.get_lens_function_info("vTokenMetadataAll", tokens, block_number)
@@ -373,7 +373,7 @@ class VenusStateService(CompoundStateService):
373
373
 
374
374
  def ctoken_underlying_price_all(
375
375
  self, reserves_info, block_number: int = 'latest'):
376
- tokens = [Web3.toChecksumAddress(value['cToken']) for key, value in reserves_info.items()]
376
+ tokens = [Web3.to_checksum_address(value['cToken']) for key, value in reserves_info.items()]
377
377
  key = f"vTokenUnderlyingPriceAll_{self.pool_info.get('lensAddress')}_{block_number}".lower()
378
378
  return {
379
379
  key: self.get_lens_function_info("cTokenUnderlyingPriceAll", tokens, block_number)
@@ -56,7 +56,7 @@ class WepiggyStateService(CompoundStateService):
56
56
  block_number: int = "latest"):
57
57
  _w3 = self.state_service.get_w3()
58
58
  comptroller_contract = _w3.eth.contract(
59
- address=_w3.toChecksumAddress(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
59
+ address=_w3.to_checksum_address(self.pool_info.get("comptrollerAddress")), abi=self.comptroller_abi)
60
60
  ctokens = []
61
61
  for token in comptroller_contract.functions.getAllMarkets().call(block_identifier=block_number):
62
62
  # if token in [ContractAddresses.LUNA.lower(), ContractAddresses.UST.lower(), ContractAddresses.LUNA,
@@ -65,16 +65,16 @@ class WepiggyStateService(CompoundStateService):
65
65
  ctokens.append(token)
66
66
 
67
67
  lens_contract = _w3.eth.contract(
68
- address=Web3.toChecksumAddress(self.pool_info.get("lensAddress")), abi=self.lens_abi
68
+ address=Web3.to_checksum_address(self.pool_info.get("lensAddress")), abi=self.lens_abi
69
69
  )
70
- tokens = [Web3.toChecksumAddress(i) for i in ctokens]
70
+ tokens = [Web3.to_checksum_address(i) for i in ctokens]
71
71
  reserves_info = {}
72
72
  for token in tokens:
73
73
  if token.lower() == '0xef86384cf696929c3227428f539e740ee12fcdc7':
74
74
  reserves_info[token.lower()] = self.pool_info.get("reservesList").get(
75
75
  "0xf88506b0f1d30056b9e5580668d5875b9cd30f23")
76
76
  continue
77
- data = lens_contract.functions.pTokenMetadata(Web3.toChecksumAddress(token)).call(
77
+ data = lens_contract.functions.pTokenMetadata(Web3.to_checksum_address(token)).call(
78
78
  block_identifier=block_number)
79
79
  underlying = data[2].lower()
80
80
  ctoken = data[0].lower()
@@ -21,11 +21,11 @@ def convert_address_dict(data):
21
21
  if isinstance(data, dict):
22
22
  result = {}
23
23
  for key, value in data.items():
24
- if Web3.isAddress(key):
24
+ if Web3.is_address(key):
25
25
  key = hex_to_base58(key)
26
26
  if isinstance(value, dict):
27
27
  value = convert_address_dict(value)
28
- if Web3.isAddress(value):
28
+ if Web3.is_address(value):
29
29
  value = hex_to_base58(value)
30
30
  result[key] = value
31
31
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.4.25
3
+ Version: 0.4.26
4
4
  Summary: Calculate apy, apr, and wallet information,... in decentralized applications.
5
5
  Home-page: https://github.com/Centic-io/defi-state-querier
6
6
  Author: Viet-Bang Pham
@@ -1,4 +1,4 @@
1
- defi_services/__init__.py,sha256=2KhS4HNlDzv_pmrC0ssutBbIG8FVsE-4OUVNs-FKmXw,23
1
+ defi_services/__init__.py,sha256=lR0PxzTAjaaJQ_3Wm5vE1PfTgOS8pdhmsmn4OrIioB0,23
2
2
  defi_services/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  defi_services/abis/dex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  defi_services/abis/dex/biswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -252,13 +252,13 @@ defi_services/constants/entities/vault_services.py,sha256=IMmQc15wS1KA7EuQqM_Ara
252
252
  defi_services/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
253
  defi_services/jobs/processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
254
254
  defi_services/jobs/processors/cosmos_state_processor.py,sha256=2S5fhqHQ4pUtRaLnbFJNUo4jKc5MHq7HA-0FHebOJyo,1334
255
- defi_services/jobs/processors/multi_state_processor.py,sha256=20pYx-vpOvJwYNM4NvRrc149V4DM_RZGhJ6EQDQ0oJw,4749
255
+ defi_services/jobs/processors/multi_state_processor.py,sha256=uMv1kVkkBV_GkYnMVaE8UgAhdnu7J_FzU6-fAoXCqjo,4752
256
256
  defi_services/jobs/processors/solana_state_processor.py,sha256=szsBYrkEV8kBzuA_iaSVescnwKJ2MHoTbut5kORbWTs,4065
257
- defi_services/jobs/processors/state_processor.py,sha256=EqHSjL4hgGX51n54d1WLlNdbxE2W39byGzzJd8ghMHM,7288
257
+ defi_services/jobs/processors/state_processor.py,sha256=Ze_5isU_l_APB262E-VV_4KZwEG6W0XE6PikJZIcAoM,7291
258
258
  defi_services/jobs/processors/substrate_state_processor.py,sha256=KkiY1NkaxnizNJBTfn4twB-zuQo3fT3akOlbie8VF5g,3940
259
259
  defi_services/jobs/queriers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
260
260
  defi_services/jobs/queriers/solana_state_querier.py,sha256=TQELYo6GUoF8s-LfetqYbclNaH8bakQqC7y2ifACIb8,3239
261
- defi_services/jobs/queriers/state_querier.py,sha256=CACVB3UOpka37qgDY1aS00zIJJFrkIPvmBULIMEeZRQ,7299
261
+ defi_services/jobs/queriers/state_querier.py,sha256=-bx71x2ZobwuAlc2pVp5Ju_fxYt48wLrs8IdLN1KJVs,7306
262
262
  defi_services/jobs/queriers/substrate_state_querier.py,sha256=_T0Dk06sP_uBKaxgj2J_EBtJDoq-hi8jU7Np4iuO0LA,3858
263
263
  defi_services/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
264
  defi_services/services/cosmos_token_services.py,sha256=6z_eE7lF5tY461VJ6uVoG18hOdXKeWR4NgDDP-MGI0k,1603
@@ -269,8 +269,8 @@ defi_services/services/solana_token_services.py,sha256=NQKUHGMBe9eQciOaY3N20rPbI
269
269
  defi_services/services/substrate_token_services.py,sha256=HsjceBHo0fxQIcXgDaV0OBANLuggRwXAEPt7ASB0BKk,2904
270
270
  defi_services/services/token_services.py,sha256=ncGdOpATIb9tGFa9cY1dQq3hFRwbhcYwIz0we9tNWNY,2766
271
271
  defi_services/services/dex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
272
- defi_services/services/dex/pancakeswap_service.py,sha256=MR3x5lvZrZWqrAiSwIe-0ANBhGJ9u0iWvpYDFrxW8_w,4635
273
- defi_services/services/dex/pancakeswap_v2_service.py,sha256=iEWF2u40zLj0C0zvIon40lCKU-jMeCXs63RApNmpJ1o,13096
272
+ defi_services/services/dex/pancakeswap_service.py,sha256=cN_L7897l8dh7DnNuHo6fcnYa-JLHI7yLLzBW1C9RlI,4637
273
+ defi_services/services/dex/pancakeswap_v2_service.py,sha256=ppRruxXHKeY3BQY5DxBQoNDjNIc6kqo3Wjgd6mO9CcA,13098
274
274
  defi_services/services/dex/pancakeswap_v3_service.py,sha256=TR1OjlFeUEoxbYBJuyeshdciHuBmUiTJHMRog5OxwO0,21543
275
275
  defi_services/services/dex/quickswap_v2_service.py,sha256=vpjBNcPlxwOW-WqTuxYKK2coVZhXDjK39nEq8X6awQU,1155
276
276
  defi_services/services/dex/quickswap_v3_service.py,sha256=21jGmrwoVrY8N2x0aiNBr8de88Ji2DtQ0xVYbHFw8Mg,11690
@@ -278,8 +278,8 @@ defi_services/services/dex/spookyswap_v2_service.py,sha256=CBM0_NZTsiqBxkIHm_Ll-
278
278
  defi_services/services/dex/sushiswap_service.py,sha256=1_vCvLjQZmjOK55xUpotAgrQKqywL8txhPpBUQuFHMw,3099
279
279
  defi_services/services/dex/sushiswap_v2_service.py,sha256=QyOVdTv06sWR_SYphxGGxla3eMN3Q8sRjXU6vPPTr4Q,3834
280
280
  defi_services/services/dex/sushiswap_v3_service.py,sha256=fTBJfbyU4nSei_XCWxHKRZxzPRNwLrda3VORgKRAnYo,3141
281
- defi_services/services/dex/uniswap_v2_service.py,sha256=q2p92JKxAmzSs5JzH5QJsGNWUZ0rgurpYC981y7uR9k,10474
282
- defi_services/services/dex/uniswap_v3_service.py,sha256=WnIFSUszgGrEjox3n4aOBpZQkBwe3uKboC5c6341QgQ,18659
281
+ defi_services/services/dex/uniswap_v2_service.py,sha256=ps8_-JW0ZjqFCLicap1zY0kenBoa3t43hZZNKI33WI0,10476
282
+ defi_services/services/dex/uniswap_v3_service.py,sha256=R-YbfXeCnGRPWlOY1zefrQ7oT-MsRMQH6Y3wkLE9R0s,18662
283
283
  defi_services/services/dex/dex_info/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
284
284
  defi_services/services/dex/dex_info/pancakeswap_info.py,sha256=dLtYR9_ZpKN3dme5gDZ-Oi7gnYRx2GMRRI1D9eQ3y5w,2075
285
285
  defi_services/services/dex/dex_info/quickswap_info.py,sha256=79ul5xG6rKa2IVj2ptJrQzTyG9A5vweHodU28B1lpro,963
@@ -287,31 +287,31 @@ defi_services/services/dex/dex_info/spookyswap_info.py,sha256=oNwWsFsXE0R7b72ZDC
287
287
  defi_services/services/dex/dex_info/sushiswap_info.py,sha256=VnfZR6c4bsjWTTaTPxO1c1W2fjhspHQfanSP2uCFuu8,4219
288
288
  defi_services/services/dex/dex_info/uniswap_info.py,sha256=RhEXmbERg_k5NsgMKnlrgRHE7LKbyWL0wxHUy3Vt4mM,897
289
289
  defi_services/services/lending/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
290
- defi_services/services/lending/aave_v2_services.py,sha256=RTurCor1K_DGsT_k2WNIHgrIj-ouWQsgMKIUT7ykVdw,21607
291
- defi_services/services/lending/aave_v3_services.py,sha256=6iMU189Qxgsd2wvQVezFOXRrkMLsOI-kXp5DsLUXPB0,16153
292
- defi_services/services/lending/apeswap_services.py,sha256=pum1i3rcAbpd7HY7WYGHlUNoXsaiIzyi17um1qnt4Eg,4731
293
- defi_services/services/lending/compound_service.py,sha256=_OOcSJZ2ZM0zcxWZeoS3A2aegogKRmpgfF9Fe73mgmg,21911
294
- defi_services/services/lending/compound_v3_services.py,sha256=l-8Z8k-GsS3rCNNNcSkMiXtLCTNaZ9fwKAtfxfvH3Hw,17126
290
+ defi_services/services/lending/aave_v2_services.py,sha256=SiuBz9wKeUfg0rsGdSqt6c9TzElnbv8Xaqu71QN6WQw,21613
291
+ defi_services/services/lending/aave_v3_services.py,sha256=HKLKJR_x--I5bO-wW5I9_PxA0x-y2HN4K-SFUnhbz8M,16163
292
+ defi_services/services/lending/apeswap_services.py,sha256=UrLhXVzGvim_xfs54hSJ1qeTH6ber4xh01j5PWFl4C8,4737
293
+ defi_services/services/lending/compound_service.py,sha256=8r7pAs8KaaakDuHg4BUICW4zLD-ihm_DQETYwnAFc98,21917
294
+ defi_services/services/lending/compound_v3_services.py,sha256=wsUavP2LAJCxmr8A0MPXLDb_YmANT_3DcSlgEgXuJv4,17128
295
295
  defi_services/services/lending/cream_services.py,sha256=vtah0kMHAxztenWbJp4CxEcBMF0XUBglGRk6p9d-oiU,1644
296
- defi_services/services/lending/flux_services.py,sha256=3lmF0V81psxCsDuykTgA6024OBGgntea3pPKjc-_b8k,12611
296
+ defi_services/services/lending/flux_services.py,sha256=C9WJ2MIBK4xTaXIHF3yBVu52xGCNzO4Ed5DWyxWTTeE,12617
297
297
  defi_services/services/lending/geist_services.py,sha256=UI5D-MbMqplrt7D4krSFdpaREKOT81k8boD_XhGGpUQ,1035
298
- defi_services/services/lending/granary_services.py,sha256=Z34sE21DcmBgfl7YPDBIYKoInnnbh10_5mEoC8wqTDQ,16461
299
- defi_services/services/lending/iron_bank_service.py,sha256=TgjRcd-7IjC1g8il3ZCnxHu9yGMGLIuQAuaxABvWNjY,15577
300
- defi_services/services/lending/justlend_service.py,sha256=2yGDfQcEkvVRl2dZZaSXIRx3Dx4jRlm0MmbIC08I4eQ,8868
301
- defi_services/services/lending/liqee_service.py,sha256=oZKueLnlhsTH9a9XxRuWQ8xIOxzw-6Sb1oubM9_C34Q,17134
302
- defi_services/services/lending/morpho_aave_v2_services.py,sha256=qUaSVisEck6dqj5f_eETxZseaBNQqvNFZNrOkInphPg,8470
303
- defi_services/services/lending/morpho_aave_v3_services.py,sha256=_dRWGi_CnG-87icCl2OdbGtP_FgcpKhXmH-eWSfPgZE,8266
304
- defi_services/services/lending/morpho_compound_services.py,sha256=QYijw7k9FJ2B58_hrUcCcSQCmMKAG8x8Uc2wUcfzDOM,14902
305
- defi_services/services/lending/onyx_service.py,sha256=TMuUJDvJiXffp6IrcNjoNSpp9XGULZVTdsk6T1i_y5o,15393
298
+ defi_services/services/lending/granary_services.py,sha256=kmKaaZA1Poj4EwspijIQ5AQnykUgamvNmz-8gMMD_RI,16463
299
+ defi_services/services/lending/iron_bank_service.py,sha256=GuXoXEbR4gkkNYfAyFkDtVeI3-knq3kFnLBeWVuUvv8,15585
300
+ defi_services/services/lending/justlend_service.py,sha256=az1OxDAqDKjT7jZ2CiNS4sfKXjhS04kD6FWB4ZT16mQ,8874
301
+ defi_services/services/lending/liqee_service.py,sha256=dBMlQpREqSzZY2_JCpJDxnWl9A8fWxa56KhsDNd--as,17140
302
+ defi_services/services/lending/morpho_aave_v2_services.py,sha256=o1Ke6tS3sSbwN4WAg0s284VOiJlKTxAu_20rNY6NC4Y,8474
303
+ defi_services/services/lending/morpho_aave_v3_services.py,sha256=bW0TSP-VpMPd0nm-a_gaN1LvaRU_iEbmnaKs7DVkJQw,8270
304
+ defi_services/services/lending/morpho_compound_services.py,sha256=38AXwi-7yxSrRghS3OCRZrOy9cfJnC3k-yNf1Ep27Ds,14912
305
+ defi_services/services/lending/onyx_service.py,sha256=CqQcenVidyKYIxNlaTliaYmSI8zV7_zxK_wCQE5s-r4,15401
306
306
  defi_services/services/lending/radiant_v2_services.py,sha256=ywjZ4sb2UQlbc4wBWz7mn9P6y19AvGVsgroDXl46fgc,3021
307
- defi_services/services/lending/silo_services.py,sha256=8HCPsq2MqzHNKiKb894xgcjZLo7ncgzkxVK31wCo4L8,16720
307
+ defi_services/services/lending/silo_services.py,sha256=yLw90u_IXEqE3NbfhVAhG1y8qQqo26xSbYXXlh4lL3g,16726
308
308
  defi_services/services/lending/spark_services.py,sha256=68_egY0yOT7YIOVbd8rbHJBJEsL0sOr0zSsTSdw0BUY,1042
309
- defi_services/services/lending/strike_service.py,sha256=8rYJ41S66SyEtE7RyKFOdYGjq0XKQhfgPKRjMAURgNc,13791
310
- defi_services/services/lending/trava_services.py,sha256=EokudVkG9OvgIclLkwb8zQEs-W1bOpjn-saN2oqZZA0,19097
311
- defi_services/services/lending/uwu_services.py,sha256=m5LNC2cLvguIUWXB1NnQ9DxetnXfpZz5ueKzSmLoJ94,13839
312
- defi_services/services/lending/valas_services.py,sha256=cZ0Tgoq-AO5NMEs2i2mTzjrsC4EH59l6O3B6Tso4rKQ,22445
313
- defi_services/services/lending/venus_services.py,sha256=vALh-wDlOQye8DdOo_B6lkrhV15N7MFrp7aEni-Gg54,16507
314
- defi_services/services/lending/wepiggy_services.py,sha256=RyUa6Bq7pcYtliWWIgNsddSNF-axicQiq4t3mtUWsK4,15676
309
+ defi_services/services/lending/strike_service.py,sha256=ZQ9B6Xngo64njwqABOO3CH-ESFmUmQWbisCgVXYKjak,13797
310
+ defi_services/services/lending/trava_services.py,sha256=EpCzEweNuq-n38oxWtdPHZstrJf5BlY9rmwUjkMOxSs,19103
311
+ defi_services/services/lending/uwu_services.py,sha256=lRGQMsDmDrpzOhHqy4ELW7aFe4JUaBoWZbgVb7Yo6mY,13845
312
+ defi_services/services/lending/valas_services.py,sha256=gz4jgcJpOEbLH5NqPgwfcUlLCoSbjyHqz7B9Qf1rWWI,22447
313
+ defi_services/services/lending/venus_services.py,sha256=LhSG2H16kZn8AqIS7DAOy0kxP8N2O_ZUAEl9Eho4Ujo,16523
314
+ defi_services/services/lending/wepiggy_services.py,sha256=x10QkYpn47wgNvmDeMGgmzJxv7WPte6hqR3MCBRgMbM,15684
315
315
  defi_services/services/lending/lending_info/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
316
316
  defi_services/services/lending/lending_info/arbitrum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
317
  defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py,sha256=8lpLYjXE2bKijTeWjRQH4XUFhG3s7df3J3r5oZEZcjA,3556
@@ -383,7 +383,7 @@ defi_services/services/vault/vault_info/fantom/__init__.py,sha256=47DEQpj8HBSa-_
383
383
  defi_services/services/vault/vault_info/fantom/trava_ftm.py,sha256=dy8us4Lt0jrS9ZfaeXD4qz3OA4QwDPMRDkkxyNrJUUU,1165
384
384
  defi_services/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
385
385
  defi_services/utils/apy.py,sha256=zQ9wrID79uccLj9pJI5Q9KhTDWXeBt9JaEVjNnYmnyg,356
386
- defi_services/utils/convert_address.py,sha256=UdElOSrUKsKIB90sYbrRPUlO6KfIruf3Q6KiMaL8_4k,1070
386
+ defi_services/utils/convert_address.py,sha256=56u9xFXGKKwEV0Ir8NTdJzSBWmbuNBo9WfufLS-uwG4,1072
387
387
  defi_services/utils/get_fees.py,sha256=L8Xivqev5M73IC2s7FaEP97EDymoazw_YhJBOja73c8,1742
388
388
  defi_services/utils/graph_operations.py,sha256=2-onMqflUqOrbVsy7JGFyeTMOcwTgPoZ3uGWruWMA_k,6271
389
389
  defi_services/utils/init_dex_services.py,sha256=kbSoq4BR8lu8kURUoDOaOS4A-ynv4CgqS0kDA5IcZlA,529
@@ -393,8 +393,8 @@ defi_services/utils/market_service.py,sha256=imPtPHBkpEx5JnhqeIWYqbCjsIEm8IKBYHN
393
393
  defi_services/utils/memory_storage.py,sha256=BOT8laB0iVSCGE-oDlpWJQLbSC6X2blKX4zuQbs4inc,851
394
394
  defi_services/utils/sqrt_price_math.py,sha256=9lgUeWFT4wjl3Vq3b7-jZ2bGvvZx7dDBSfVnM3lsZ8o,5575
395
395
  defi_services/utils/thread_proxy.py,sha256=5Z8biAyEReUkh3vfJSvEv7GwMe3CsE5M8CbghkQtePw,2951
396
- defi_state_querier-0.4.25.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
397
- defi_state_querier-0.4.25.dist-info/METADATA,sha256=z0J9RHdnd8wEBy8Bk1cvbu3nvKzNSza65UzuFIzcbV8,4376
398
- defi_state_querier-0.4.25.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
399
- defi_state_querier-0.4.25.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
400
- defi_state_querier-0.4.25.dist-info/RECORD,,
396
+ defi_state_querier-0.4.26.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
397
+ defi_state_querier-0.4.26.dist-info/METADATA,sha256=RWDX0wrAOkLX1vUu62d9bpuM2nFqm-kfqTJTHRp9RSY,4376
398
+ defi_state_querier-0.4.26.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
399
+ defi_state_querier-0.4.26.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
400
+ defi_state_querier-0.4.26.dist-info/RECORD,,