NEWTON
Asked
4 months ago
2
views
0
How do I import a uint256 in Cairo?
And what is the best practice for figuring out where to find good import libraries?
ㅤ This question was originally posted on Triality
0
You would import uint256 using the following import statement
from starkware.cairo.common.uint256 import Uint256
And for find libraries to import and how to import them there is a pretty good summary at https://perama-v.github.io/cairo/cairo-common-library/. But always the easiest thing is to google or go straight to github in the starkware-libs and find what you are looking for https://github.com/starkware-libs/cairo-lang/tree/master/src/starkware/cairo/common.
ㅤ This answer was originally posted on Triality
answered
4 months ago
Cairo: How to reassign Uint256 in a conditional
Cairo error "Expected expression of type 'starkware.cairo.common.uint256.Uint256' to have an address."
How do you optimize gas in Cairo with Uint256/felt?
Cairo Error: 'range_check_ptr' cannot be used as an implicit return value. Consider using a 'with' statement.
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
Writing a "not" operation in Cairo
Cairo: How do I initialize an array in cairo
Is Kakarot equivalent to Arbitrum?
Cairo: What is the difference between let and tempvar?
Is there anything wrong with the testnet?
Why should I run a Pathfinder node?
Issue with generating _abi.json file
How do I connect my DAPP to a private Starknet network using starknetjs?
Is there something going on the testnet StarkNet?