-
Notifications
You must be signed in to change notification settings - Fork 756
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
Create cairoDataTypes for all Cairo Types #1116
Comments
After Completing this step next step is to make request and response parsers configurable for each type. This would introduce flexibility in default parsing In addition to Abi-Wan configurability we would have a complete circle for typing system. |
Please can I be assigned to this |
You can be assigned to one type you would like to adapt, chose one and it is yours (like Felt or arrays) |
I'll like to be assigned to work on enums |
I will like to be assigned to work on Arrays |
I will like to work on felts |
Just to point out enums are a pretty complex topic, here are the existing dir with the current implementation. |
@Calebux @Immanuelolivia1 @raizo07 hi! |
@tabaktoni 👋 what's the status of these? |
@b0rza hi! it's up for the taking :) |
Feature
I created CairoUint256 Class as an example of how should Cairo types be represented in js.
@PhilippeR26 created CairoUint512 base on the same concept
We should have all Cairo Types represented this way as a Class. It would give the dev flexibility to use any final form of that type he would need for the case. For example, Felt can be represented as hex-string or BigInt or any other supported format. If it is class-based then the class holds value and all export transformations inside itself for any case usage.
What we need:
How to Dev
PR should contain:
Update 1
What's left and the order of development:
u8, u16, u32 (usize), u64, u128, bool, ByteArray (bytes31 aka long string), tuple, struct, Secp256k1Point,
i8, i16, i32, i64, i128, ContractAddress, EthAddress, StorageAddress, ClassHash
serialization_of_Cairo_types
The text was updated successfully, but these errors were encountered: