Commit 49fbb85
authored
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 methods1 parent 92ca763 commit 49fbb85
File tree
24 files changed
+982
-11
lines changed- .github/workflows
- docs
- api
- starknet_py
- abi
- v1
- v2
- devnet_utils
- net
- schemas/rpc
- tests/e2e
- account
- client_devnet
- fixtures
- docs/code_examples
- fixtures
24 files changed
+982
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| 296 | + | |
| 297 | + | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
Whitespace-only changes.
0 commit comments