Expand description
Utilities for performing commonly used algorithms in Starknet.
Structs§
- NonAscii
Name Error - The string provided contains non-ASCII characters.
- UdcUnique
Settings - The uniqueness settings when using
UdcUniqueness::Unique
for contract deployment.
Enums§
- Cairo
Short String ToFelt Error - Possible errors for encoding a Cairo short string.
- Parse
Cairo Short String Error - Possible errors for decoding a Cairo short string.
- UdcUniqueness
- The uniqueness settings for UDC deployments.
Functions§
- cairo_
short_ string_ to_ felt - Converts Cairo short string to
Felt
. - get_
contract_ address - Computes the target contract address of a “native” contract deployment. Use
get_udc_deployed_address
instead if you want to compute the target address for deployments through the Universal Deployer Contract. - get_
selector_ from_ name - Calculates the entrypoint selector from a human-readable function name.
- get_
storage_ var_ address - Calculates the standard storage slot address of storage variable in a Cairo contract.
- get_
udc_ deployed_ address - Computes the target contract address for deployments through the Universal Deploy Contract.
- normalize_
address - Normalizes an address to be in the range of
[0, 2^251 - 256)
. - parse_
cairo_ short_ string - Converts
Felt
to Cairo short string. - starknet_
keccak - A variant of eth-keccak that computes a value that fits in a Starknet field element. It performs a standard Keccak-256 but with the 6 most significant bits removed.