-
Notifications
You must be signed in to change notification settings - Fork 87
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
base: franciszekjob/1498-rpc-0.8.0
Are you sure you want to change the base?
Support starknet_getCompiledCasm
#1514
Conversation
…tware-mansion/starknet.py into franciszekjob/1498-2-get-compiled-casm
…tware-mansion/starknet.py into franciszekjob/1498-2-get-compiled-casm
note: Fore some reason circular imports test is failing, will address it later. |
…tware-mansion/starknet.py into franciszekjob/1498-2-get-compiled-casm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please re-request after fixing circular imports and adding tests
|
||
prime: int | ||
bytecode: List[int] | ||
hints: List[Tuple[int, Hint]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be an array?
hints: List[Tuple[int, Hint]] | |
hints: List[Tuple[int, List[Hint]]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to have all casm related structures in a separate file if possible
Relates #1498
Introduced changes
Support
starknet_getCompiledCasm
Add
get_compiled_casm
method inFullNodeClient
andClient
Add CASM-related dataclasses:
AssertCurrentAccessIndicesIsEmpty
,AssertAllKeysUsed
,AssertLeAssertThirdArcExcluded
,AssertAllAccessesUsed
,AssertLtAssertValidInput
,Felt252DictRead
,Felt252DictWrite
,AllocSegment
,TestLessThan
,TestLessThanOrEqual
,TestLessThenOrEqualAddress
,WideMul128
,DivMod
,Uint256DivMod
,Uint512DivModByUint256
,SquareRoot
,Uint256SquareRoot
,LinearSplit
,AllocFelt252Dict
,Felt252DictEntryInit
,Felt252DictEntryUpdate
,GetSegmentArenaIndex
,InitSquashData
,GetCurrentAccessIndex
,ShouldSkipSquashLoop
,GetCurrentAccessDelta
,ShouldContinueSquashLoop
,GetNextDictKey
,AssertLeFindSmallArcs
,AssertLeIsFirstArcExcluded
,AssertLeIsSecondArcExcluded
,RandomEcPoint
,FieldSqrt
,DebugPrint
,AllocConstantSize
,U256InvModN
,EvalCircuit
,SystemCall
,Cheatcode
This PR contains breaking changes
CasmClass
:pythonic_hints
hints
type fromList[Any]
toList[Tuple[int, Hint]]