Skip to content

Commit b685182

Browse files
authored
Support V3 transactions in the Contract class (#1262)
* Remove TODO #1182 comment that was already done * Move contract deploy related test to `test_deploy` file * Split `prepare` method for: call, invoke_v1 and invoke_v3 * Adjust interaction tests to the new `Contract` interface * Adjust remaining tests * Break down `Contract.declare` into v1, v2 and v3 * Adjust tests to the new `Contract` declare interface * Move `_unpack_provider` function to `contract_utils` * Remove `_get_cairo_version` function from `Contract` class * Split deploy contract methods in `Contract` class * Adjust tests to the new `Contract` deploy interface * Ignore pylint locals for `deploy_contract` methods to fix lint * Add `_declare_contract` function * Rename `CallToSend` to `PreparedCallBase` * Replace Wei with Fri in docstrings * Add test to get balance in STRK * Update docstrings for deploy methods about sepolia network * Add version postfix for `Abi` and `AbiParser` imports * Use query version for fee estimation * Fix docs build and add code examples * Update docstrings
1 parent df9a651 commit b685182

40 files changed

+1038
-395
lines changed

docs/api/contract.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ PreparedFunctionCall
3434
:members:
3535
:member-order: groupwise
3636

37+
------------------------
38+
PreparedFunctionInvokeV1
39+
------------------------
40+
41+
.. autoclass-with-examples:: PreparedFunctionInvokeV1
42+
:exclude-members: __init__, __new__
43+
:members:
44+
:member-order: groupwise
45+
46+
------------------------
47+
PreparedFunctionInvokeV3
48+
------------------------
49+
50+
.. autoclass-with-examples:: PreparedFunctionInvokeV3
51+
:exclude-members: __init__, __new__
52+
:members:
53+
:member-order: groupwise
54+
3755
------------
3856
InvokeResult
3957
------------

0 commit comments

Comments
 (0)