NethermindEth / warp

Warp - Bringing Solidity to Starknet at warp speed. Warp is a Solidity to Cairo Compiler, this allows teams to write/migrate Solidity to Cairo for easy onboarding into the StarkNet ecosystem.
https://nethermind.io/warp/
Apache License 2.0
754 stars 70 forks source link

Felt as a Cairo Custom Type #988

Closed rodrigo-pino closed 1 year ago

rodrigo-pino commented 1 year ago

Cairo 1 introduces uX, an unsigned integer equivalent to each of Soiditys uintX. It is expected from the Warp of the future to take advantage of this new types due to all the advantages they offer compared to simple felts. Warp 3.0 should transpile uintX types as uX.

The problem arise when there is need of the Felt type, Warp 3.0 is left without a mechanism to write simple felts. Examples where felts are needed: