Module core

Source

Structs§

ClassHash
The hash of a ContractClass.
CompiledClassHash
The hash of a compiled ContractClass.
ContractAddress
EntryPointSelector
The selector of an EntryPoint.
EthAddress
An Ethereum address.
EventCommitment
The commitment on the events in a Block.
GlobalRoot
The root of the global state at a Block and StateUpdate.
Nonce
A general type for nonces.
PatriciaKey
A key for nodes of a Patricia tree.
ReceiptCommitment
The commitment on the receipts in a Block.
SequencerContractAddress
SequencerPublicKey
A public key of a sequencer.
StateDiffCommitment
TransactionCommitment
The commitment on the transactions in a Block.

Enums§

ChainId
A chain id.

Constants§

BLOCK_HASH_TABLE_ADDRESS
The address of a contract, used for example in StateDiff, DeclareTransaction, and BlockHeader.
CONTRACT_ADDRESS_DOMAIN_SIZE
The size of the contract address domain.
CONTRACT_ADDRESS_PREFIX
The prefix used in the calculation of a contract address.
MAX_STORAGE_ITEM_SIZE
The maximal size of storage var.
PATRICIA_KEY_UPPER_BOUND

Statics§

L2_ADDRESS_UPPER_BOUND
The address upper bound; it is defined to be congruent with the storage var address upper bound.

Functions§

ascii_as_felt
Felt.
calculate_contract_address
felt_to_u128