-
Notifications
You must be signed in to change notification settings - Fork 818
feat: CairoTypeOption CairoTypeResult CairoTypeCustomEnum and others #1484
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
base: cairotypes/all
Are you sure you want to change the base?
feat: CairoTypeOption CairoTypeResult CairoTypeCustomEnum and others #1484
Conversation
Added a commit to solve problems of recursive decompose. |
Added a commit to solve several problems of recursive encoding. |
@tabaktoni
|
@tabaktoni |
Motivation and Resolution
In the frame of the new parsing strategy, implementation of Cairo option & Cairo result type.
Usage related changes
No user change.
Development related changes
Current
CairoOption
,CairoResult
&CairoCustomEnum
classes remains unchanged, and is used by users.New
CairoTypeOption
&CairoTypeResult
class is created in conformity with theCairoType
interface, and is used to encode/decode to Starknet API. Can be used by user, or is automatically created from aCairoOption
.Added also CairoNonZero, CairoEth, CairoEthAddress, CairoBool classes, CairoStruct.
Also handling of ContractAddress & ClassHash (are in fact just felt252).
Checklist: