Crate zksync_basic_types

Source
Expand description

The declaration of the most primitive types used in ZKsync network.

Most of them are just re-exported from the web3 crate.

Re-exports§

pub use ethabi;

Modules§

basic_fri_types
Basic types for FRI prover.
commitment
network
The network where the ZKsync resides.
protocol_version
prover_dal
Types exposed by the prover DAL for general-purpose use.
tee_types
url
vm_version
web3
Selected Web3 types copied from the web3 crate.

Structs§

AccountTreeId
Account place in the global state tree is uniquely identified by its address. Binary this type is represented by 160 bit big-endian representation of account address.
H64
H128
Fixed-size uninterpreted hash type with 16 bytes (128 bits) size.
H160
Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
H512
Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
H520
H2048
Bloom hash type with 256 bytes (2048 bits) size.
L1BatchNumber
ZKsync L1 batch sequential index.
L1BlockNumber
Ethereum network block sequential index.
L1ChainId
ChainId in the Ethereum network.
L2BlockNumber
ZKsync network block sequential index.
L2ChainId
ChainId in the ZKsync network.
Nonce
ZKsync account nonce.
PriorityOpId
Unique identifier of the priority operation in the ZKsync network.
U64
Little-endian large integer type Unsigned 64-bit integer.
U128
Little-endian large integer type 128-bit unsigned integer.
U256
Little-endian large integer type 256-bit unsigned integer.

Type Aliases§

Address