Skip to content

Conversation

@tomek0123456789
Copy link
Contributor

@tomek0123456789 tomek0123456789 commented Jul 11, 2023

Introduced changes

  • wait_for_accept parameter in Client.wait_for_tx and Contract.wait_for_acceptance methods is now deprecated
  • added retries parameter

  • This PR contains breaking changes

@tomek0123456789 tomek0123456789 changed the base branch from development to drknzz/starknet-0.12.0 July 11, 2023 11:25
@tomek0123456789 tomek0123456789 changed the title Deprecated wait_for_accept parameter Deprecate wait_for_accept parameter Jul 11, 2023
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch coverage: 77.77% and project coverage change: +10.09 🎉

Comparison is base (0015a5a) 87.45% compared to head (394d67c) 97.55%.

❗ Current head 394d67c differs from pull request most recent head 65648af. Consider uploading reports for the commit 65648af to get more accurate results

Additional details and impacted files
@@                     Coverage Diff                     @@
##           drknzz/starknet-0.12.0    #1102       +/-   ##
===========================================================
+ Coverage                   87.45%   97.55%   +10.09%     
===========================================================
  Files                          92       92               
  Lines                        4258     4260        +2     
===========================================================
+ Hits                         3724     4156      +432     
+ Misses                        534      104      -430     
Impacted Files Coverage Δ
starknet_py/contract.py 99.62% <66.66%> (+6.90%) ⬆️
starknet_py/net/client.py 93.15% <80.00%> (+16.33%) ⬆️

... and 52 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

first_run = True
try:
while True:
result = await self.get_transaction_receipt(tx_hash=tx_hash)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would probably need to catch failed receipt fetch, and retry

------------
.. currentmodule:: starknet_py.net.client

1. `wait_for_accept` parameter in :meth:`Client.wait_for_tx` and :meth:`SentTransaction.wait_for_acceptance` have been deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. `wait_for_accept` parameter in :meth:`Client.wait_for_tx` and :meth:`SentTransaction.wait_for_acceptance` have been deprecated.
1. `wait_for_accept` parameter in :meth:`Client.wait_for_tx` and :meth:`SentTransaction.wait_for_acceptance` has been deprecated.

@drknzz drknzz changed the base branch from drknzz/starknet-0.12.0 to development July 12, 2023 08:09
@drknzz drknzz changed the base branch from development to drknzz/starknet-0.12.0 July 12, 2023 08:09
@drknzz drknzz merged commit 6527700 into drknzz/starknet-0.12.0 Jul 12, 2023
@drknzz drknzz deleted the tomek/wait-for-transaction-removal branch July 12, 2023 08:17
drknzz added a commit that referenced this pull request Jul 13, 2023
* Remove PENDING tx status

* Update .gitignore

* Use Cairo v2.0.0-rc5

* Use cairo-lang 0.12.0a0

* Add compile_contracts_v2.sh

* Add new syntax contracts

* Add complex abi v1 contract

* Bump devnet

* Add more new syntax contracts

* Add more v2 syntax contracts

* Remove unused contract

* Update tests

* Use devnet 0.5.5a0

* Use devnet 0.5.5

* Use Cairo v2.0.0

* Update contracts to Cairo v2.0.0

* Update tests

* Extend hello2.cairo

* Format

* Add abi_types.cairo

* V1_DIR -> V2_DIR

* Shape + Schemas

* AbiParserV2

* Lint, Format, Typecheck

* Compile v1.1.0 contracts on CI

* Remove unused variables

* Remove cache-rust

* Fix typing

* Update checks.yml

* Run tests on v1 and v2 contracts

* Export manifest path

* Update checks.yml

* Update checks.yml

* Add compiled contracts

* Download artifacts

* Clean up

* Deprecate `wait_for_accept` parameter in `Client.wait_for_tx`  (#1102)

* deprecated wait_for_transaction parameter

* added poe precommit task

* added note in migration guide

* migration guide fix

* logic change

* logic change

* formatting

* added retries below 0 check

* typos

* fixed logic

* docstring fix

* deprecated wait_for_transaction parameter

* added poe precommit task

* added note in migration guide

* migration guide fix

* logic change

* logic change

* formatting

* added retries below 0 check

* typos

* fixed logic

* docstring fix

* Handle no status in RPC

---------

Co-authored-by: drknzz <kamil.jankowski.x@gmail.com>

* Fix v2 nested types

* Remove unused _get_struct

* Remove wait_for_tx NOT_RECEIVED tests

* Fix nested types v2 tests

* Fix nested types v1

* Fix template structs

* Update migration guide

---------

Co-authored-by: Tomasz Miśkowicz <tomasz.miskowicz@swmansion.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants