-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DevnetClient implementation (#1393)
* unknown=EXCLUDE ramoved * devnet version bump to 0.1.2 and test fix * fix tests with pending block * delete print * devnet client setup * default values added * time rpc calls * time advancing tests * add 'generate_block' for set_time * mint tests * add test_predeployd_accounts * class description update * block create and drop * dump, load, restart * add account impersonate * abort blocks tests * account impersonation test * more account impersonation tests * postman hooks * constant rename * account impersonation test fix * Rename fixtures in client_devnet tests * Change loading of MyString contract * Skip test if contract_dir v1 marked * Simplify __init__ * Update description for get_account_balance * Rename dataclass Mint and IncreasedTimeResponse * Rename advancing_time_test.py file * Rename 'devnet_forking_mode_client' fixture * Refactor 'get_start_devnet_command' function * Rename 'account_impersonated' fixture * Remove testnet address * Remove unnecessary accunt fixture * Add PriceUnit enum type for unit paremeter * Add env variable in workflows * Fix time advancing test * Refactor RpcHttpClient * Migrate allow_none -> load_default=None in specific MarshmallowSchema * Migrate default -> dump_default in specific MarshmallowSchema * Update unit types * Fix 'Hash' type handling * Fix names in 'time_test.py' * Add comment to address in 'account_to_impersonate' fixture * Rename directory devnet -> devnet_utils * Add docs for DevnetClient * Correct the description * Improve readability 'test_impersonated_account_should_fail' * Rename MintSchema -> MintResponseSchema * Change dataclass types from Hash to int * Remove unnecessary 'Optional' type wrapper * Change default value in 'get_account_balance()' block_tag * Add function that converts int to eth address '_to_eth_address' * Fix payload datatype serialization in 'send_message_to_l2' * Update docs after devnet client tests * Add docstrings for postman methods
- Loading branch information
Showing
24 changed files
with
982 additions
and
11 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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ API | |
|
||
api/client | ||
api/full_node_client | ||
api/devnet_client | ||
api/account | ||
api/client_models | ||
api/client_errors | ||
|
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,8 @@ | ||
DevnetClient | ||
============ | ||
|
||
.. py:module:: starknet_py.devnet_utils.devnet_client | ||
.. autoclass-with-examples:: DevnetClient | ||
:members: | ||
:member-order: groupwise |
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
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
Empty file.
Oops, something went wrong.