Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support starknet_getCompiledCasm #1514

Draft
wants to merge 21 commits into
base: franciszekjob/1498-rpc-0.8.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ffcc501
Remove unused import
franciszekjob Oct 29, 2024
c2db084
Add `get_compiled_casm` in `Client` and `FullNodeClient`
franciszekjob Oct 29, 2024
3feacdd
Add `get_compiled_casm` in `Client` and `FullNodeClient`
franciszekjob Oct 29, 2024
d2a2691
Add schemas for deprecated, core and Starknet hints
franciszekjob Oct 29, 2024
d0e20b7
Remove todos; Add validation error
franciszekjob Oct 29, 2024
8bb768e
Merge branch 'franciszekjob/1498-rpc-0.8.0' of https://github.com/sof…
franciszekjob Nov 3, 2024
28229b7
Add dataclasses
franciszekjob Nov 3, 2024
f1e68ee
Remove unnecessary file
franciszekjob Nov 3, 2024
31c2553
Remove unnecessary file
franciszekjob Nov 3, 2024
c5b5cd5
Move enums to `client_models.py`
franciszekjob Nov 4, 2024
0cdcb89
Refactor serialization and deserialization in schemas
franciszekjob Nov 4, 2024
4cc441c
Merge branch 'franciszekjob/1498-rpc-0.8.0' of https://github.com/sof…
franciszekjob Nov 4, 2024
1cce722
Minor refactor of serialize/deserialize methods
franciszekjob Nov 4, 2024
65c3e7b
Format
franciszekjob Nov 4, 2024
69497d7
Remove `pythonic_hints` from `CasmClass`
franciszekjob Nov 4, 2024
cbb6042
Format
franciszekjob Nov 4, 2024
2421806
Add todo for `get_compiled_casm` test
franciszekjob Nov 4, 2024
0c2cc36
Add `make_dataclass()` to schemas
franciszekjob Nov 4, 2024
2c9c736
Fix cyclic imports test
franciszekjob Nov 4, 2024
ebaa859
Fix circular imports
franciszekjob Nov 7, 2024
03fa3f2
Merge branch 'franciszekjob/1498-rpc-0.8.0' of https://github.com/sof…
franciszekjob Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions starknet_py/net/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
BlockStateUpdate,
BlockTransactionTrace,
Call,
CasmClass,
ContractStorageKeys,
DeclareTransactionResponse,
DeployAccountTransactionResponse,
Expand Down Expand Up @@ -340,3 +341,12 @@ async def get_messages_status(
:param l1_transaction_hash: Hash of the L1 transaction
:return: Status of the messages
"""

@abstractmethod
async def get_compiled_casm(self, class_hash: int) -> CasmClass:
"""
Get the contract class definition in the given block associated with the given hash.

:param class_hash: Hash of the contract class whose CASM will be returned
:return: CasmClass object
"""
Loading
Loading