-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* constants and utils * solana rest api tools imports * comments and tabs * rename calling getTokens function * Meet SolanaErrors * Implement creating account on getting balance * Move tests and add get_from_dict test * Add test "Metamask creates an account" * Just not ot loose changes * implemented * Fix tests on CI * set NEW_USER_AIRDROP_AMOUNT on CI * improve logging * improve logging of SendTransactionError * spit and polish * extend airdrop tests * spit and polish * spit and polish * move tests * move tests * Get rid off extra data.py * Improve logging * spit and polish * spit and polish * spit and polish * spit and polish * Pass MINIMAL_GAS_PRICE int airdrop tests * spit and polish * move test_operator_spending.py * move test_operator_spending.py * spit and polish * spit and polish * Fix message printing * spit and polish * spit and polish * spit and polish * spit and polish * use error instead of debug * Revert "constants and utils" This reverts commit 5056536. # Conflicts: # proxy/testing/test_eth_sendRawTransaction.py * Emphasize meaning of trx extending functions This reverts commit 5056536. # Conflicts: # proxy/testing/test_eth_sendRawTransaction.py * Resolve @otselik remarks # Conflicts: # proxy/testing/test_eth_sendRawTransaction.py * rollback common/utils.py * Rollback some changes * Resolve remarks * Use exception to check result of get_token_balance_gwei * just not to loose changes * spit and polish * Update tests * Simplify airdrop processing * Spit and polish * Spit and polish * Spit and polish * Freeze changes up * Isolate errors * spit and polish * spit and polish Co-authored-by: rozhkovdmitrii <[email protected]>
- Loading branch information
1 parent
3c6f4bc
commit 6e1864e
Showing
22 changed files
with
360 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from enum import Enum | ||
|
||
|
||
class SolanaErrors(Enum): | ||
AccountNotFound = "Invalid param: could not find account" | ||
|
||
|
||
class SolanaAccountNotFoundError(Exception): | ||
"""Provides special error processing""" | ||
def __init__(self): | ||
super().__init__(SolanaErrors.AccountNotFound.value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from typing import Dict, Optional, Any | ||
|
||
|
||
def get_from_dict(src: Dict, *path) -> Optional[Any]: | ||
"""Provides smart getting values from python dictionary""" | ||
val = src | ||
for key in path: | ||
if not isinstance(val, dict): | ||
return None | ||
val = val.get(key) | ||
if val is None: | ||
return None | ||
return val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.