Expand description
Contains core functions and types that are widely used but have no real home of their own.
This includes many trivial wrappers around Felt which help by providing additional type safety.
Re-exports§
pub use signature::BlockCommitmentSignature;pub use state_update::StateUpdate;
Modules§
- casm_
class - class_
definition - consts
- Repeated constants used around pathfinder
- event
- hash
- Contains the FeltHash trait and implementations thereof for the Pedersen and Poseidon hashes.
- integration_
testing - macro_
prelude - prelude
- receipt
- signature
- state_
update - test_
utils - Various test utils used in other pathfinder related crates
- transaction
- trie
Macros§
- account_
deployment_ data_ elem - account_
deployment_ data_ elem_ bytes - block_
commitment_ signature_ elem - block_
commitment_ signature_ elem_ bytes - block_
hash - block_
hash_ bytes - byte_
code_ offset - byte_
code_ offset_ bytes - call_
param - call_
param_ bytes - call_
result_ value - call_
result_ value_ bytes - casm_
hash - casm_
hash_ bytes - class_
commitment - class_
commitment_ bytes - class_
commitment_ leaf_ hash - class_
commitment_ leaf_ hash_ bytes - class_
hash - class_
hash_ bytes - constructor_
param - constructor_
param_ bytes - contract_
address - contract_
address_ bytes - contract_
address_ salt - contract_
address_ salt_ bytes - contract_
nonce - contract_
nonce_ bytes - contract_
root - contract_
root_ bytes - contract_
state_ hash - contract_
state_ hash_ bytes - entry_
point - entry_
point_ bytes - event_
commitment - event_
commitment_ bytes - event_
data - event_
data_ bytes - event_
key - event_
key_ bytes - fee
- fee_
bytes - felt
- Creates a Felt from a hex string literal verified at compile time.
- felt_
bytes - Creates a
pathfinder_crypto::Feltfrom a byte slice, resulting in compile-time error when invalid. - l1_
to_ l2_ message_ nonce - l1_
to_ l2_ message_ nonce_ bytes - l1_
to_ l2_ message_ payload_ elem - l1_
to_ l2_ message_ payload_ elem_ bytes - l2_
to_ l1_ message_ payload_ elem - l2_
to_ l1_ message_ payload_ elem_ bytes - paymaster_
data_ elem - paymaster_
data_ elem_ bytes - proposal_
commitment - proposal_
commitment_ bytes - public_
key - public_
key_ bytes - receipt_
commitment - receipt_
commitment_ bytes - sequencer_
address - sequencer_
address_ bytes - sierra_
hash - sierra_
hash_ bytes - state_
commitment - state_
commitment_ bytes - state_
diff_ commitment - state_
diff_ commitment_ bytes - storage_
address - storage_
address_ bytes - storage_
commitment - storage_
commitment_ bytes - storage_
value - storage_
value_ bytes - transaction_
commitment - transaction_
commitment_ bytes - transaction_
hash - transaction_
hash_ bytes - transaction_
nonce - transaction_
nonce_ bytes - transaction_
signature_ elem - transaction_
signature_ elem_ bytes
Structs§
- Account
Deployment Data Elem - Block
Commitment Signature Elem - Block
Hash - Block
Header - Block
Header Builder - Block
Number - A Starknet block number.
- Block
Timestamp - The timestamp of a Starknet block.
- Byte
Code Offset - Call
Param - Call
Result Value - Casm
Hash - ChainId
- Class
Commitment - Class
Commitment Leaf Hash - Class
Hash - Consensus
Info - Constructor
Param - Contract
Address - Contract
Address Salt - Contract
Class - Contract
Nonce - Contract
Root - Contract
State Hash - Entry
Point - Ethereum
Address - An Ethereum address.
- Event
Commitment - Event
Data - Event
Key - Fee
- From
Slice Error - GasPrice
- Starknet gas price.
- GasPrice
Hex - A hex representation of a GasPrice.
- L1Block
Number - An Ethereum block number.
- L1To
L2Message Nonce - L1To
L2Message Payload Elem - L1Transaction
Hash - An Ethereum transaction hash.
- L2To
L1Message Payload Elem - Paymaster
Data Elem - Proposal
Commitment - Public
Key - Receipt
Commitment - Resource
Amount - Starknet resource bound: amount.
- Resource
Price PerUnit - Starknet resource bound: price per unit.
- Sequencer
Address - Sierra
Hash - Signed
Block Header - Starknet
Version - State
Commitment - State
Diff Commitment - Storage
Address - Storage
Commitment - Storage
Value - Tip
- TipHex
- Transaction
Commitment - Transaction
Hash - Transaction
Index - A Starknet transaction index.
- Transaction
Nonce - Transaction
Signature Elem - Transaction
Version - Starknet transaction version.
Enums§
- Allowed
Origins - BlockId
- A way of identifying a specific block that has been finalized.
- Chain
- Starknet chain.
- Ethereum
Chain - Ethereum network chains running Starknet.
- L1Data
Availability Mode
Functions§
- calculate_
class_ commitment_ leaf_ hash - Calculate class commitment tree leaf hash value.
- truncated_
keccak - See: https://github.com/starkware-libs/cairo-lang/blob/64a7f6aed9757d3d8d6c28bd972df73272b0cb0a/src/starkware/starknet/public/abi.py#L21-L26