yeref 0.24.12__tar.gz → 0.24.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.12
3
+ Version: 0.24.14
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='yeref',
5
- version='0.24.12',
5
+ version='0.24.14',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -8444,16 +8444,20 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
8444
8444
  # }
8445
8445
  # ])
8446
8446
  elif provider == "toncenter":
8447
- key = it.get('testnet') if is_test_only and 'testnet' in it else it.get('mainnet')
8448
- print(f"{is_test_only=}, {key=}")
8447
+ key = next(
8448
+ (it['testnet'] if is_test_only else it['mainnet']
8449
+ for it in keys
8450
+ if (is_test_only and 'testnet' in it)
8451
+ or (not is_test_only and 'mainnet' in it)
8452
+ ),
8453
+ None
8454
+ )
8449
8455
  if key:
8450
8456
  items.append([
8451
8457
  'toncenter',
8452
- f'https://{pfx_testnet}toncenter.com/api/v3/jetton/wallets?owner_address={owner}&jetton_address={master}&limit=1&offset=0',
8453
- {
8454
- 'accept': 'application/json',
8455
- 'X-API-Key': key
8456
- }
8458
+ f'https://{pfx_testnet}toncenter.com/api/v3/jetton/wallets'
8459
+ f'?owner_address={owner}&jetton_address={master}&limit=1&offset=0',
8460
+ {'accept': 'application/json', 'X-API-Key': key}
8457
8461
  ])
8458
8462
 
8459
8463
  while True:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.12
3
+ Version: 0.24.14
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
File without changes
File without changes
File without changes
File without changes
File without changes