defi-state-querier 0.5.14__py3-none-any.whl → 0.5.15__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
defi_services/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.5.14"
1
+ __version__ = "0.5.15"
@@ -30,6 +30,7 @@ class Chain:
30
30
  moonriver = '0x505'
31
31
  blast = '0xee'
32
32
  oasis_sapphire = '0x5afe'
33
+ zeta = '0x1b58'
33
34
 
34
35
  native_decimals = {
35
36
  tron: 6,
@@ -36,7 +36,8 @@ class DexInfo:
36
36
  # Dex.sushi: SushiSwapV2Services
37
37
  # }
38
38
  arbitrum = {
39
- Dex.sushi_v2: SUSHISWAP_V2_ARBITRUM_INFO
39
+ Dex.sushi_v2: SUSHISWAP_V2_ARBITRUM_INFO,
40
+ Dex.uniswap_v3: UNISWAP_V3_ARBITRUM_INFO
40
41
  }
41
42
  mapping = {
42
43
  Chain.ethereum: ethereum,
@@ -47,4 +48,3 @@ class DexInfo:
47
48
  Chain.arbitrum: arbitrum,
48
49
  # Chain.optimism: optimism,
49
50
  }
50
-
@@ -45,7 +45,8 @@ class DexServices:
45
45
  # Dex.sushi: SushiSwapV2Services
46
46
  # }
47
47
  arbitrum = {
48
- Dex.sushi_v2: SushiSwapV2Services
48
+ Dex.sushi_v2: SushiSwapV2Services,
49
+ Dex.uniswap_v3: UniswapV3Services
49
50
  }
50
51
  mapping = {
51
52
  Chain.ethereum: ethereum,
@@ -18,5 +18,15 @@ UNISWAP_V3_ETH_INFO = {
18
18
  'NFT_manager_abi': UNISWAP_V3_NFT_TOKEN_MANGAGER_ABI,
19
19
  'pool_abi': UNISWAP_V3_POOL_ABI,
20
20
  'forked': 'uniswap-v3'
21
+ }
22
+
21
23
 
24
+ UNISWAP_V3_ARBITRUM_INFO = {
25
+ 'factory_address': '0x1f98431c8ad98523631ae4a59f267346ea31f984',
26
+ 'factory_abi': UNISWAP_V3_FACTORY_ABI,
27
+ 'staker_address': '0xe34139463ba50bd61336e0c446bd8c0867c6fe65',
28
+ 'NFT_manager_address': '0xc36442b4a4522e871399cd717abdd847ab11fe88',
29
+ 'NFT_manager_abi': UNISWAP_V3_NFT_TOKEN_MANGAGER_ABI,
30
+ 'pool_abi': UNISWAP_V3_POOL_ABI,
31
+ 'forked': 'uniswap-v3'
22
32
  }
@@ -5,7 +5,7 @@ from defi_services.abis.token.erc20_abi import ERC20_ABI
5
5
  from defi_services.constants.chain_constant import Chain
6
6
  from defi_services.constants.entities.dex_constant import Dex
7
7
  from defi_services.jobs.queriers.state_querier import StateQuerier
8
- from defi_services.services.dex.dex_info.uniswap_info import UNISWAP_V3_ETH_INFO
8
+ from defi_services.services.dex.dex_info.uniswap_info import UNISWAP_V3_ETH_INFO, UNISWAP_V3_ARBITRUM_INFO
9
9
  from defi_services.services.dex_protocol_services import DexProtocolServices
10
10
  from defi_services.utils.get_fees import get_fees
11
11
  from defi_services.utils.sqrt_price_math import get_token_amount_of_user, get_token_amount_of_pool
@@ -15,7 +15,8 @@ logger = logging.getLogger("UniSwap V3 State Service")
15
15
 
16
16
  class UniswapV3Info:
17
17
  mapping = {
18
- Chain.ethereum: UNISWAP_V3_ETH_INFO
18
+ Chain.ethereum: UNISWAP_V3_ETH_INFO,
19
+ Chain.arbitrum: UNISWAP_V3_ARBITRUM_INFO
19
20
  }
20
21
 
21
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.5.14
3
+ Version: 0.5.15
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=eZCvGSWzmhAuX33aknAmdOv-0F6FE4joo5igjfie5QI,23
1
+ defi_services/__init__.py,sha256=L6LoKMlJx-n68Agaz17S4PydD7S5Z4lwW3o79dy3l1c,23
2
2
  defi_services/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  defi_services/abis/multicall_v3_abi.py,sha256=0aPxjrJJFU17fODjvYFRDn5Y5J1yi_AJKc8v1uohNGY,12352
4
4
  defi_services/abis/dex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -294,7 +294,7 @@ defi_services/abis/vault/lido/lido_withdrawl_queue.py,sha256=qKdsXQLKlNU3a_Nk68q
294
294
  defi_services/abis/vault/lido/lido_wsteth.py,sha256=DJhMToJS43vV2r5WP2kZSiagt7R8MtKFT8u1xJBjZKU,8780
295
295
  defi_services/abis/vault/lido/lidor_accounting_oracle_hash_consensus.py,sha256=TWCLaccDgvWJZZKLAeoznYgGi3g3M_hFqoo3KE_L7K8,21039
296
296
  defi_services/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
297
- defi_services/constants/chain_constant.py,sha256=llTCq697jtt64a_6QRxZK71Q3SMeoIyOY8RJXw5i5s8,1067
297
+ defi_services/constants/chain_constant.py,sha256=-f-tLfL7LfEq_Iy-ss6KKYFL57ksyhA4anzIcAlYSvI,1087
298
298
  defi_services/constants/cosmos_decimals_constant.py,sha256=SjFkFbkvxVAk0jtok_1EaBh69ZE8S1fFAbVn6bdJO4s,13635
299
299
  defi_services/constants/db_constant.py,sha256=gDMFFjhPOgQHuS9sPOTFbsfSdIfdWQEE4tGlxHQhNsE,2566
300
300
  defi_services/constants/mongo_constant.py,sha256=qsDIq2Gg5MkBGaEOh4Fd9y6fOOidF4gGPnQwtaPon3E,398
@@ -305,8 +305,8 @@ defi_services/constants/token_constant.py,sha256=dGO_i-L_LLx4mSA0wIG4FoaL-OWOAd5
305
305
  defi_services/constants/ton_decimals_constant.py,sha256=zMbbiIi2a9ZQSHEt8tLY0FnQtMi1qybkXMeFkKeEw3g,50657
306
306
  defi_services/constants/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
307
307
  defi_services/constants/entities/dex_constant.py,sha256=oCt8RS-0KjFW5zR5IU1Ys49nYCCAraY8pTivOpXoyvs,343
308
- defi_services/constants/entities/dex_info_constant.py,sha256=6sLHxCmRz_6HW8WRe27FkOS-FGR-zC354iCTcEIjp78,1604
309
- defi_services/constants/entities/dex_services.py,sha256=fpfgQgLBUzjWYTWJ9PAglBGN4Lj8333sPuN3KUORItw,2158
308
+ defi_services/constants/entities/dex_info_constant.py,sha256=gFjF6gWLZ-e_iLoUeSF-bPZKOwbmxVoMeyaA2wGZESM,1653
309
+ defi_services/constants/entities/dex_services.py,sha256=OWY_Q7m8R0_Gz_ficgCH497_SFZvd84TYuKOfSNZQ08,2201
310
310
  defi_services/constants/entities/lending_constant.py,sha256=uUb3CnIlZP0lqdVPUt4IdlUXZwNpsMVDTmqMw0NK47g,1009
311
311
  defi_services/constants/entities/lending_services.py,sha256=EeCRUi-K4O3MlB6m5f9QKMYlTtPb5VtYd7hVSkAh_38,4958
312
312
  defi_services/constants/entities/vault_constant.py,sha256=IGGd4--T-BQcm8mlU8XAJ_hkZglrdAeZff5h-oMcMqg,84
@@ -346,13 +346,13 @@ defi_services/services/dex/sushiswap_service.py,sha256=1_vCvLjQZmjOK55xUpotAgrQK
346
346
  defi_services/services/dex/sushiswap_v2_service.py,sha256=QyOVdTv06sWR_SYphxGGxla3eMN3Q8sRjXU6vPPTr4Q,3834
347
347
  defi_services/services/dex/sushiswap_v3_service.py,sha256=fTBJfbyU4nSei_XCWxHKRZxzPRNwLrda3VORgKRAnYo,3141
348
348
  defi_services/services/dex/uniswap_v2_service.py,sha256=ps8_-JW0ZjqFCLicap1zY0kenBoa3t43hZZNKI33WI0,10476
349
- defi_services/services/dex/uniswap_v3_service.py,sha256=lr3-CqJJ52ivyJWnQNEt2-V95gOMHc1_z529y_9TwZ8,18662
349
+ defi_services/services/dex/uniswap_v3_service.py,sha256=Un-xubxkyw9Zo-FC1hkyMbXNcGTYc_bz3ZDykauDz8s,18738
350
350
  defi_services/services/dex/dex_info/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
351
351
  defi_services/services/dex/dex_info/pancakeswap_info.py,sha256=dLtYR9_ZpKN3dme5gDZ-Oi7gnYRx2GMRRI1D9eQ3y5w,2075
352
352
  defi_services/services/dex/dex_info/quickswap_info.py,sha256=79ul5xG6rKa2IVj2ptJrQzTyG9A5vweHodU28B1lpro,963
353
353
  defi_services/services/dex/dex_info/spookyswap_info.py,sha256=oNwWsFsXE0R7b72ZDCmrhDOKwN_-T7y3N0sX26TmhIA,535
354
354
  defi_services/services/dex/dex_info/sushiswap_info.py,sha256=VnfZR6c4bsjWTTaTPxO1c1W2fjhspHQfanSP2uCFuu8,4219
355
- defi_services/services/dex/dex_info/uniswap_info.py,sha256=RhEXmbERg_k5NsgMKnlrgRHE7LKbyWL0wxHUy3Vt4mM,897
355
+ defi_services/services/dex/dex_info/uniswap_info.py,sha256=ffVWA6c-GRlmzBLzJXuKvYtZPqHBZVOBuR0da8LYyF0,1304
356
356
  defi_services/services/eth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
357
  defi_services/services/eth/eth_services.py,sha256=b6nEcgGHVFdRjqT2RZqvjfRuh56yjWgwLj74YNhiHGM,3719
358
358
  defi_services/services/lending/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -470,8 +470,8 @@ defi_services/utils/memory_storage.py,sha256=BOT8laB0iVSCGE-oDlpWJQLbSC6X2blKX4z
470
470
  defi_services/utils/sqrt_price_math.py,sha256=9lgUeWFT4wjl3Vq3b7-jZ2bGvvZx7dDBSfVnM3lsZ8o,5575
471
471
  defi_services/utils/thread_proxy.py,sha256=5Z8biAyEReUkh3vfJSvEv7GwMe3CsE5M8CbghkQtePw,2951
472
472
  defi_services/utils/ton_decode_address.py,sha256=EWKwmC7KtbXpdKgiNK-5j-5lX7fCr17I4EWYs9b43eU,443
473
- defi_state_querier-0.5.14.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
474
- defi_state_querier-0.5.14.dist-info/METADATA,sha256=fib3UEORv3q3_ML8vsZ3eY0Hk0Qvs3E0_pC056zV6tM,4413
475
- defi_state_querier-0.5.14.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
476
- defi_state_querier-0.5.14.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
477
- defi_state_querier-0.5.14.dist-info/RECORD,,
473
+ defi_state_querier-0.5.15.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
474
+ defi_state_querier-0.5.15.dist-info/METADATA,sha256=x9nO764DZ3Z7pZoNwEe1dpEUd2LLFgS9lyUAY1ppH2A,4413
475
+ defi_state_querier-0.5.15.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
476
+ defi_state_querier-0.5.15.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
477
+ defi_state_querier-0.5.15.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5