repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/bls12_381/benches/groups.rs
zkcrypto/bls12_381/benches/groups.rs
#[macro_use] extern crate criterion; extern crate bls12_381; use bls12_381::*; use criterion::{black_box, Criterion}; fn criterion_benchmark(c: &mut Criterion) { // Pairings { let g = G1Affine::generator(); let h = G2Affine::generator(); c.bench_function("full pairing", move |b| { ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/consts.rs
zkcrypto/src/consts.rs
use crate::kzg_types::{ZG1, ZG2}; use bls12_381::{Fp as ZFp, Fp2 as ZFp2, G1Projective, G2Projective}; pub const SCALE_FACTOR: u64 = 5; pub const NUM_ROOTS: usize = 32; #[rustfmt::skip] pub const SCALE2_ROOT_OF_UNITY: [[u64; 4]; 32] = [ [0x0000000000000001, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/das.rs
zkcrypto/src/das.rs
use crate::kzg_proofs::FFTSettings; use crate::kzg_types::ZFr as BlstFr; use kzg::{DASExtension, Fr}; use std::cmp::Ordering; impl FFTSettings { fn das_fft_extension_stride(&self, ab: &mut [BlstFr], stride: usize) { match ab.len().cmp(&2_usize) { Ordering::Less => {} Ordering::Great...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/lib.rs
zkcrypto/src/lib.rs
pub mod consts; pub mod das; pub mod eip_4844; pub mod eip_7594; pub mod fft; pub mod fft_g1; pub mod fk20_proofs; pub mod kzg_proofs; pub mod kzg_types; pub mod poly; pub mod recover; pub mod utils; pub mod zero_poly;
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/eip_4844.rs
zkcrypto/src/eip_4844.rs
extern crate alloc; #[cfg(feature = "c_bindings")] use crate::utils::PRECOMPUTATION_TABLES; #[cfg(feature = "c_bindings")] use crate::{ kzg_proofs::KZGSettings, kzg_types::{ZFr, ZG1, ZG2}, }; #[cfg(feature = "c_bindings")] use core::ptr; use kzg::eip_4844::load_trusted_setup_rust; #[cfg(feature = "c_bindings")...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/kzg_proofs.rs
zkcrypto/src/kzg_proofs.rs
#![allow(non_camel_case_types)] use crate::kzg_types::{ZFp, ZFr, ZG1Affine, ZG1ProjAddAffine}; use crate::kzg_types::{ZFr as BlstFr, ZG1, ZG2}; use crate::poly::PolyData; use bls12_381::{ multi_miller_loop, Fp12 as ZFp12, G1Affine, G2Affine, G2Prepared, MillerLoopResult, }; use kzg::common_utils::log2_pow2; use kzg...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/eip_7594.rs
zkcrypto/src/eip_7594.rs
extern crate alloc; use kzg::EcBackend; use crate::kzg_proofs::FFTSettings; use crate::kzg_proofs::KZGSettings; use crate::kzg_types::ZFp; use crate::kzg_types::ZFr; use crate::kzg_types::ZG1Affine; use crate::kzg_types::ZG1ProjAddAffine; use crate::kzg_types::ZG1; use crate::kzg_types::ZG2; use crate::poly::PolyData...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/poly.rs
zkcrypto/src/poly.rs
extern crate alloc; use alloc::string::String; use alloc::vec; use alloc::vec::Vec; use crate::consts::SCALE_FACTOR; use crate::kzg_proofs::FFTSettings as ZFFTSettings; use crate::kzg_types::ZFr; use kzg::common_utils::{log2_pow2, log2_u64, next_pow_of_2}; use kzg::{FFTFr, FFTSettings, FFTSettingsPoly, Fr, Poly}; #[...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/kzg_types.rs
zkcrypto/src/kzg_types.rs
use crate::consts::{ G1_GENERATOR, G1_IDENTITY, G1_NEGATIVE_GENERATOR, G2_GENERATOR, G2_NEGATIVE_GENERATOR, SCALE2_ROOT_OF_UNITY, }; use crate::fft_g1::g1_linear_combination; use crate::kzg_proofs::{ expand_root_of_unity, pairings_verify, FFTSettings as ZFFTSettings, KZGSettings as ZKZGSettings, }; use crat...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
true
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/zero_poly.rs
zkcrypto/src/zero_poly.rs
use super::kzg_proofs::FFTSettings; use crate::kzg_types::ZFr as BlstFr; use crate::poly::PolyData; use kzg::common_utils::next_pow_of_2; use kzg::{FFTFr, Fr, ZeroPoly}; use std::cmp::{min, Ordering}; pub(crate) fn pad_poly(poly: &PolyData, new_length: usize) -> Result<Vec<BlstFr>, String> { if new_length <= poly...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/fk20_proofs.rs
zkcrypto/src/fk20_proofs.rs
use crate::consts::G1_IDENTITY; use crate::kzg_proofs::{FFTSettings, KZGSettings}; use crate::kzg_types::{ZFp, ZFr as BlstFr, ZG1Affine, ZG1ProjAddAffine, ZG1, ZG2}; use crate::poly::PolyData; use kzg::common_utils::reverse_bit_order; use kzg::{FFTFr, FK20MultiSettings, FK20SingleSettings, Fr, G1Mul, Poly, FFTG1, G1}; ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/utils.rs
zkcrypto/src/utils.rs
use crate::{ kzg_proofs::FFTSettings, kzg_types::{ZFp, ZFr, ZG1Affine, ZG1ProjAddAffine, ZG1}, }; use bls12_381::{G1Projective, G2Projective, Scalar}; use kzg::{ eip_4844::PrecomputationTableManager, eth::{ self, c_bindings::{blst_fp, blst_fp2, blst_fr, blst_p1, blst_p2, CKZGSettings}, ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/fft_g1.rs
zkcrypto/src/fft_g1.rs
use crate::consts::G1_GENERATOR; use crate::kzg_proofs::FFTSettings; use crate::kzg_types::{ZFp, ZFr, ZG1Affine, ZG1ProjAddAffine, ZG1}; use kzg::msm::precompute::PrecomputationTable; use kzg::{Fr as KzgFr, G1Mul}; use kzg::{FFTG1, G1}; use std::ops::MulAssign; #[warn(unused_variables)] pub fn g1_linear_combination( ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/recover.rs
zkcrypto/src/recover.rs
use crate::consts::SCALE_FACTOR; use crate::kzg_proofs::FFTSettings; use crate::kzg_types::ZFr as BlstFr; use crate::poly::PolyData; use kzg::{FFTFr, Fr, Poly, PolyRecover, ZeroPoly}; #[cfg(feature = "parallel")] use kzg::common_utils::next_pow_of_2; #[cfg(feature = "parallel")] static mut INVERSE_FACTORS: Vec<BlstF...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/src/fft.rs
zkcrypto/src/fft.rs
use crate::kzg_proofs::FFTSettings; use crate::kzg_types::ZFr as BlstFr; use kzg::{FFTFr, Fr as FFr}; impl FFTFr<BlstFr> for FFTSettings { fn fft_fr(&self, data: &[BlstFr], inverse: bool) -> Result<Vec<BlstFr>, String> { if data.len() > self.max_width { return Err(String::from("data length is l...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/consts.rs
zkcrypto/tests/consts.rs
#[cfg(test)] mod tests { use kzg_bench::tests::consts::{ expand_roots_is_plausible, new_fft_settings_is_plausible, roots_of_unity_are_plausible, roots_of_unity_is_the_expected_size, roots_of_unity_out_of_bounds_fails, }; use rust_kzg_zkcrypto::consts::SCALE2_ROOT_OF_UNITY; use rust_kzg_z...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/das.rs
zkcrypto/tests/das.rs
#[cfg(test)] mod tests { use kzg_bench::tests::das::{das_extension_test_known, das_extension_test_random}; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; #[test] fn das_extension_test_known_() { das_extension_test_known::<ZFr, FFTSettings>(); } ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/eip_4844.rs
zkcrypto/tests/eip_4844.rs
#[cfg(test)] mod tests { use kzg::eip_4844::{ blob_to_kzg_commitment_rust, blob_to_polynomial, bytes_to_blob, compute_blob_kzg_proof_rust, compute_challenge_rust, compute_kzg_proof_rust, compute_powers, evaluate_polynomial_in_evaluation_form, verify_blob_kzg_proof_batch_rust, verify_...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/kzg_proofs.rs
zkcrypto/tests/kzg_proofs.rs
#[cfg(test)] mod tests { use kzg_bench::tests::kzg_proofs::{ commit_to_nil_poly, commit_to_too_long_poly_returns_err, proof_multi, proof_single, trusted_setup_in_correct_form, }; use rust_kzg_zkcrypto::eip_7594::ZBackend; use rust_kzg_zkcrypto::kzg_proofs::generate_trusted_setup; #[...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/eip_7594.rs
zkcrypto/tests/eip_7594.rs
#[cfg(test)] mod tests { use kzg::eip_4844::bytes_to_blob; use kzg_bench::tests::eip_7594::{ test_vectors_compute_cells, test_vectors_compute_cells_and_kzg_proofs, test_vectors_compute_verify_cell_kzg_proof_batch_challenge, test_vectors_recover_cells_and_kzg_proofs, test_vectors_verify_c...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/poly.rs
zkcrypto/tests/poly.rs
#[cfg(test)] mod tests { use kzg_bench::tests::poly::{ create_poly_of_length_ten, poly_div_by_zero, poly_div_fast_test, poly_div_long_test, poly_div_random, poly_eval_0_check, poly_eval_check, poly_eval_nil_check, poly_inverse_simple_0, poly_inverse_simple_1, poly_mul_direct_test, poly_mul_f...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/zero_poly.rs
zkcrypto/tests/zero_poly.rs
#[cfg(test)] mod tests { use kzg_bench::tests::zero_poly::{ check_test_data, reduce_partials_random, test_reduce_partials, zero_poly_252, zero_poly_all_but_one, zero_poly_known, zero_poly_random, }; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/bls12_381.rs
zkcrypto/tests/bls12_381.rs
#[cfg(test)] mod tests { use kzg::common_utils::log_2_byte; use kzg_bench::tests::bls12_381::*; use rust_kzg_zkcrypto::fft_g1::g1_linear_combination; use rust_kzg_zkcrypto::kzg_proofs::pairings_verify; use rust_kzg_zkcrypto::kzg_types::{ZFp, ZFr, ZG1Affine, ZG1ProjAddAffine, ZG1, ZG2}; #[test] ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/fk20_proofs.rs
zkcrypto/tests/fk20_proofs.rs
#[cfg(test)] mod tests { use kzg_bench::tests::fk20_proofs::*; use rust_kzg_zkcrypto::eip_7594::ZBackend; use rust_kzg_zkcrypto::fk20_proofs::{KzgFK20MultiSettings, KzgFK20SingleSettings}; use rust_kzg_zkcrypto::kzg_proofs::generate_trusted_setup; #[test] fn test_fk_single() { fk_singl...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/fft_g1.rs
zkcrypto/tests/fft_g1.rs
#[cfg(test)] mod tests { use kzg_bench::tests::fft_g1::{compare_sft_fft, roundtrip_fft, stride_fft}; use rust_kzg_zkcrypto::fft_g1::{fft_g1_fast, fft_g1_slow, make_data}; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::{ZFr, ZG1}; #[test] fn roundtrip_fft_() { ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/fft_fr.rs
zkcrypto/tests/fft_fr.rs
#[cfg(test)] mod tests { use kzg_bench::tests::fft_fr::{compare_sft_fft, inverse_fft, roundtrip_fft, stride_fft}; use rust_kzg_zkcrypto::fft::{fft_fr_fast, fft_fr_slow}; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; #[test] fn compare_sft_fft_() { ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/tests/recover.rs
zkcrypto/tests/recover.rs
#[cfg(test)] mod recover_tests { use kzg_bench::tests::recover::*; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr as Fr; use rust_kzg_zkcrypto::poly::PolyData; #[test] fn recover_simple_() { recover_simple::<Fr, FFTSettings, PolyData, PolyData>(); ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/das.rs
zkcrypto/benches/das.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::das::bench_das_extension; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; fn bench_das_extension_(c: &mut Criterion) { bench_das_extension::<ZFr, FFTSettings>(c); } criterion_group! { na...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/eip_4844.rs
zkcrypto/benches/eip_4844.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg::eip_4844::{ blob_to_kzg_commitment_rust, bytes_to_blob, compute_blob_kzg_proof_rust, compute_kzg_proof_rust, verify_blob_kzg_proof_batch_rust, verify_blob_kzg_proof_rust, verify_kzg_proof_rust, }; use kzg_bench::benches::eip_4844::bench_e...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/eip_7594.rs
zkcrypto/benches/eip_7594.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg::eip_4844::{blob_to_kzg_commitment_rust, bytes_to_blob}; use kzg_bench::benches::eip_7594::bench_eip_7594; use rust_kzg_zkcrypto::{eip_4844::load_trusted_setup_filename_rust, eip_7594::ZBackend}; fn bench_eip_7594_(c: &mut Criterion) { bench_eip_...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/poly.rs
zkcrypto/benches/poly.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::poly::bench_new_poly_div; use rust_kzg_zkcrypto::kzg_types::ZFr; use rust_kzg_zkcrypto::poly::PolyData; fn bench_new_poly_div_(c: &mut Criterion) { bench_new_poly_div::<ZFr, PolyData>(c); } criterion_group! { name = benches; ...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/zero_poly.rs
zkcrypto/benches/zero_poly.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::zero_poly::bench_zero_poly; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; use rust_kzg_zkcrypto::poly::PolyData; fn bench_zero_poly_(c: &mut Criterion) { bench_zero_poly::<ZFr, FFTSettings...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/kzg.rs
zkcrypto/benches/kzg.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::kzg::{bench_commit_to_poly, bench_compute_proof_single}; use rust_kzg_zkcrypto::eip_7594::ZBackend; use rust_kzg_zkcrypto::kzg_proofs::generate_trusted_setup; fn bench_commit_to_poly_(c: &mut Criterion) { bench_commit_to_poly::<Z...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/lincomb.rs
zkcrypto/benches/lincomb.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::lincomb::bench_g1_lincomb; use rust_kzg_zkcrypto::fft_g1::g1_linear_combination; use rust_kzg_zkcrypto::kzg_types::{ZFp, ZFr, ZG1Affine, ZG1ProjAddAffine, ZG1}; fn bench_g1_lincomb_(c: &mut Criterion) { bench_g1_lincomb::<ZFr, ZG1...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/fk_20.rs
zkcrypto/benches/fk_20.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::fk20::{bench_fk_multi_da, bench_fk_single_da}; use rust_kzg_zkcrypto::eip_7594::ZBackend; use rust_kzg_zkcrypto::fk20_proofs::{KzgFK20MultiSettings, KzgFK20SingleSettings}; use rust_kzg_zkcrypto::kzg_proofs::generate_trusted_setup; fn...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/recover.rs
zkcrypto/benches/recover.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::recover::bench_recover; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::ZFr; use rust_kzg_zkcrypto::poly::PolyData; fn bench_recover_(c: &mut Criterion) { bench_recover::<ZFr, FFTSettings, PolyDa...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/zkcrypto/benches/fft.rs
zkcrypto/benches/fft.rs
use criterion::{criterion_group, criterion_main, Criterion}; use kzg_bench::benches::fft::{bench_fft_fr, bench_fft_g1}; use rust_kzg_zkcrypto::kzg_proofs::FFTSettings; use rust_kzg_zkcrypto::kzg_types::{ZFr, ZG1}; fn bench_fft_fr_(c: &mut Criterion) { bench_fft_fr::<ZFr, FFTSettings>(c); } fn bench_fft_g1_(c: &mu...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/arkworks3-sppark/build.rs
arkworks3-sppark/build.rs
// Copyright Supranational LLC // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 use std::env; use std::path::PathBuf; fn main() { // account for cross-compilation [by examining environment variable] let target_arch = env::var("CARGO_CFG_TARGET_...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/arkworks3-sppark/src/lib.rs
arkworks3-sppark/src/lib.rs
// Copyright Supranational LLC // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 use ark_bls12_381::{Fr, G1Affine, G1Projective, G2Affine, G2Projective}; use ark_ec::AffineCurve; use ark_ff::PrimeField; use ark_std::Zero; use std::ffi::c_void; pub fn p...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
grandinetech/rust-kzg
https://github.com/grandinetech/rust-kzg/blob/d47acbdf587753f466a5e6842395e03930ae1f96/arkworks3-sppark/benches/lincomb.rs
arkworks3-sppark/benches/lincomb.rs
use blst::{blst_fr, blst_p1_affine, blst_scalar, blst_scalar_from_fr}; use criterion::{criterion_group, criterion_main, Criterion}; use kzg::Fr; use kzg::G1; use rust_kzg_blst::types::fp::FsFp; use rust_kzg_blst::types::fr::FsFr; use rust_kzg_blst::types::g1::{FsG1, FsG1Affine}; extern crate alloc; fn bench_g1_lincom...
rust
Apache-2.0
d47acbdf587753f466a5e6842395e03930ae1f96
2026-01-04T20:22:26.256259Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_balance.rs
tests/integration/test_balance.rs
use serde_json::json; use starknet_rs_core::types::Felt; use crate::common::background_devnet::BackgroundDevnet; use crate::common::constants::{PREDEPLOYED_ACCOUNT_ADDRESS, PREDEPLOYED_ACCOUNT_INITIAL_BALANCE}; use crate::common::utils::FeeUnit; #[tokio::test] async fn getting_balance_of_predeployed_contract() { ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_restart.rs
tests/integration/test_restart.rs
use std::path::Path; use std::sync::Arc; use starknet_rs_accounts::{ Account, AccountFactory, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{BlockId, BlockTag, Felt, StarknetError}; use starknet_rs_core::utils::get_storage_var_address; use starknet_rs_providers:...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_simulate_transactions.rs
tests/integration/test_simulate_transactions.rs
use std::sync::Arc; use serde_json::json; use starknet_core::constants::STRK_ERC20_CONTRACT_ADDRESS; use starknet_rs_accounts::{ Account, AccountError, AccountFactory, ConnectedAccount, ExecutionEncoder, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ Bl...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
true
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_trace.rs
tests/integration/test_trace.rs
use std::sync::Arc; use starknet_core::constants::{ CAIRO_1_ACCOUNT_CONTRACT_SIERRA_HASH, CHARGEABLE_ACCOUNT_ADDRESS, STRK_ERC20_CONTRACT_ADDRESS, }; use starknet_rs_accounts::{ Account, AccountFactory, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ Con...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_deploy.rs
tests/integration/test_deploy.rs
use std::sync::Arc; use starknet_core::constants::UDC_CONTRACT_CLASS_HASH; use starknet_rs_accounts::{Account, AccountError, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ Call, ContractExecutionError, Felt, StarknetError, TransactionExecutionErrorData, }; use starknet_rs_core::utils::get_s...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_get_block_txs_count.rs
tests/integration/test_get_block_txs_count.rs
use starknet_rs_core::types::{BlockId, BlockTag, StarknetError}; use starknet_rs_providers::{Provider, ProviderError}; use crate::common::background_devnet::BackgroundDevnet; #[tokio::test] async fn test_invalid_block() { let devnet = BackgroundDevnet::spawn().await.expect("Could not start Devnet"); let res ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_get_events.rs
tests/integration/test_get_events.rs
use std::sync::Arc; use starknet_rs_accounts::{Account, ConnectedAccount, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ BlockId, BlockStatus, BlockTag, Call, EmittedEvent, EventFilter, Felt, StarknetError, }; use starknet_rs_core::utils::{get_selector_from_name, get_udc_deployed_address}; ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/lib.rs
tests/integration/lib.rs
#![cfg(test)] mod common; mod general_integration_tests; mod general_rpc_tests; mod get_transaction_by_block_id_and_index; mod get_transaction_by_hash; mod get_transaction_receipt_by_hash; mod test_abort_blocks; mod test_accepting_blocks_on_l1; mod test_account_impersonation; mod test_account_selection; mod test_adva...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_messaging.rs
tests/integration/test_messaging.rs
//! This module tests the messaging feature from the starknet-server perspective. //! //! The message contract `cairo_0_l1l2_contract` associates a balance to a user (ContractAddress) //! and contains the following entrypoints: //! * increase_balance -> increases the balance of a user (contract address) for the given a...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
true
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_estimate_message_fee.rs
tests/integration/test_estimate_message_fee.rs
use std::sync::Arc; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{BlockId, BlockTag, EthAddress, Felt, MsgFromL1, StarknetError}; use starknet_rs_core::utils::{UdcUniqueness, get_udc_deployed_address}; use starknet_rs_providers::{Provider, ProviderError}; us...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_blocks.rs
tests/integration/test_subscription_to_blocks.rs
use std::collections::HashMap; use std::time::Duration; use serde_json::json; use starknet_core::constants::ETH_ERC20_CONTRACT_ADDRESS; use starknet_rs_core::types::{BlockId, BlockTag}; use starknet_rs_providers::Provider; use tokio::net::TcpStream; use tokio_tungstenite::{MaybeTlsStream, WebSocketStream, connect_asyn...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/get_transaction_by_block_id_and_index.rs
tests/integration/get_transaction_by_block_id_and_index.rs
use starknet_rs_core::types::{ BlockId, BlockTag, Felt, InvokeTransaction, StarknetError, Transaction, }; use starknet_rs_providers::{Provider, ProviderError}; use crate::common::background_devnet::BackgroundDevnet; #[tokio::test] async fn get_transaction_by_block_id_and_index_happy_path() { let devnet = Back...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_minting.rs
tests/integration/test_minting.rs
use anyhow::anyhow; use serde_json::json; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::Felt; use crate::common::background_devnet::BackgroundDevnet; use crate::common::constants::{ CHAIN_ID, PREDEPLOYED_ACCOUNT_ADDRESS, PREDEPLOYED_ACCOUNT_INITIAL_BALANCE...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_reorg.rs
tests/integration/test_subscription_to_reorg.rs
use std::collections::{HashMap, HashSet}; use serde_json::json; use starknet_rs_core::types::BlockId; use tokio_tungstenite::connect_async; use crate::common::background_devnet::BackgroundDevnet; use crate::common::utils::{ SubscriptionId, assert_no_notifications, receive_rpc_via_ws, subscribe, unsubscribe, }; #...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_fork.rs
tests/integration/test_fork.rs
use std::str::FromStr; use std::sync::Arc; use starknet_rs_accounts::{ Account, AccountFactory, AccountFactoryError, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ BlockId, BlockTag, Call, ContractClass, DeclareTransaction, Felt, FunctionCall, Maybe...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_v3_transactions.rs
tests/integration/test_v3_transactions.rs
use std::sync::Arc; use starknet_rs_accounts::{ Account, AccountDeploymentV3, AccountError, AccountFactory, ConnectedAccount, DeclarationV3, ExecutionEncoding, ExecutionV3, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ BlockId, BlockTag, Call, ExecutionResult, Felt, Flat...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_estimate_fee.rs
tests/integration/test_estimate_fee.rs
use std::sync::Arc; use starknet_core::constants::ENTRYPOINT_NOT_FOUND_ERROR_ENCODED; use starknet_rs_accounts::{ Account, AccountError, AccountFactory, AccountFactoryError, ConnectedAccount, ExecutionEncoder, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_abort_blocks.rs
tests/integration/test_abort_blocks.rs
use serde_json::json; use starknet_rs_core::types::{BlockId, BlockTag, Felt, StarknetError}; use starknet_rs_providers::{Provider, ProviderError}; use crate::assert_eq_prop; use crate::common::background_devnet::BackgroundDevnet; use crate::common::errors::RpcError; use crate::common::utils::{FeeUnit, assert_contains,...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_accepting_blocks_on_l1.rs
tests/integration/test_accepting_blocks_on_l1.rs
use starknet_rs_core::types::{ BlockId, BlockStatus, BlockTag, Felt, MaybePreConfirmedBlockWithTxHashes, SequencerTransactionStatus, StarknetError, }; use starknet_rs_providers::{Provider, ProviderError}; use crate::assert_eq_prop; use crate::common::background_devnet::BackgroundDevnet; use crate::common::erro...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_dump_and_load.rs
tests/integration/test_dump_and_load.rs
use std::path::Path; use std::time; use serde_json::json; use starknet_rs_providers::Provider; use crate::assert_eq_prop; use crate::common::background_devnet::BackgroundDevnet; use crate::common::constants; use crate::common::utils::{ FeeUnit, UniqueAutoDeletableFile, new_contract_factory, send_ctrl_c_signal_and...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_get_class.rs
tests/integration/test_get_class.rs
use std::sync::Arc; use starknet_api::contract_class::compiled_class_hash::{HashVersion, HashableCompiledClass}; use starknet_core::CasmContractClass; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::chain_id; use starknet_rs_core::types::{BlockId, BlockTag, ContractCla...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_blocks_generation.rs
tests/integration/test_blocks_generation.rs
use std::sync::Arc; use std::time; use anyhow::anyhow; use serde_json::json; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ BlockId, BlockStatus, BlockTag, Call, DeclaredClassItem, Felt, FunctionCall, MaybePreConfirmedStateUpdate, NonceUpdate, StateUp...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_advancing_time_on_fork.rs
tests/integration/test_advancing_time_on_fork.rs
use starknet_rs_accounts::{Account, AccountError, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ Call, Felt, StarknetError, TransactionExecutionStatus, TransactionStatus, }; use starknet_rs_core::utils::get_selector_from_name; use starknet_rs_providers::{Provider, ProviderError}; use starkne...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_get_class_hash_at.rs
tests/integration/test_get_class_hash_at.rs
use starknet_core::constants::CAIRO_1_ACCOUNT_CONTRACT_SIERRA_HASH; use starknet_rs_core::types::{BlockId, BlockTag, Felt, StarknetError}; use starknet_rs_providers::{Provider, ProviderError}; use crate::common::background_devnet::BackgroundDevnet; use crate::common::constants::PREDEPLOYED_ACCOUNT_ADDRESS; #[tokio::t...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_account_selection.rs
tests/integration/test_account_selection.rs
use std::sync::Arc; use serde_json::json; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{BlockId, BlockTag, Call, Felt, FunctionCall}; use starknet_rs_core::utils::{get_selector_from_name, get_udc_deployed_address}; use starknet_rs_providers::Provider; use sta...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_restrictive_mode.rs
tests/integration/test_restrictive_mode.rs
use serde_json::json; use crate::common::background_devnet::BackgroundDevnet; use crate::common::errors::RpcError; #[tokio::test] async fn restrictive_mode_with_default_methods_doesnt_affect_other_functionality() { let devnet = BackgroundDevnet::spawn_with_additional_args(&["--restrictive-mode"]) .await ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_old_state.rs
tests/integration/test_old_state.rs
use std::sync::Arc; use starknet_core::constants::{ DEVNET_DEFAULT_L1_DATA_GAS_PRICE, DEVNET_DEFAULT_L1_GAS_PRICE, DEVNET_DEFAULT_L2_GAS_PRICE, UDC_CONTRACT_CLASS_HASH, }; use starknet_rs_accounts::{Account, ExecutionEncoder, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::chain_id::SEPOLIA; use ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/general_rpc_tests.rs
tests/integration/general_rpc_tests.rs
use serde_json::json; use starknet_rs_core::types::{ConfirmedBlockId, SyncStatusType}; use starknet_rs_providers::Provider; use starknet_rs_providers::jsonrpc::JsonRpcError; use crate::common::background_devnet::BackgroundDevnet; use crate::common::constants::RPC_PATH; use crate::common::errors::RpcError; use crate::c...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_account_impersonation.rs
tests/integration/test_account_impersonation.rs
use std::sync::Arc; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{BlockId, BlockTag, Call, ExecutionResult, Felt}; use starknet_rs_core::utils::get_selector_from_name; use starknet_rs_providers::jsonrpc::HttpTransport; use starknet_rs_providers::{JsonRpcClien...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_new_tx_receipts.rs
tests/integration/test_subscription_to_new_tx_receipts.rs
use std::collections::HashMap; use serde_json::json; use starknet_core::constants::CHARGEABLE_ACCOUNT_ADDRESS; use starknet_rs_accounts::{ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ DeclareTransactionReceipt, Felt, InvokeTransactionReceipt, Transaction, TransactionFinalityStatus, Tra...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_events.rs
tests/integration/test_subscription_to_events.rs
use std::collections::HashSet; use serde_json::json; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ BlockId, BlockTag, Call, Felt, InvokeTransactionResult, TransactionFinalityStatus, }; use starknet_rs_core::utils::get_selector_from_name; use starknet_rs_...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_call.rs
tests/integration/test_call.rs
use starknet_rs_accounts::SingleOwnerAccount; use starknet_rs_core::types::{ BlockId, BlockTag, ContractErrorData, Felt, FunctionCall, StarknetError, }; use starknet_rs_core::utils::{cairo_short_string_to_felt, get_selector_from_name}; use starknet_rs_providers::{Provider, ProviderError}; use crate::common::backgr...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/general_integration_tests.rs
tests/integration/general_integration_tests.rs
use serde_json::json; use starknet_rs_core::types::{BlockId, BlockTag, Felt, FunctionCall}; use starknet_rs_core::utils::{ get_selector_from_name, get_storage_var_address, parse_cairo_short_string, }; use starknet_rs_providers::Provider; use crate::common::background_devnet::BackgroundDevnet; use crate::common::co...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_transaction_handling.rs
tests/integration/test_transaction_handling.rs
use std::sync::Arc; use starknet_rs_accounts::{Account, AccountError, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ Call, Felt, InvokeTransactionResult, StarknetError, TransactionExecutionErrorData, }; use starknet_rs_core::utils::get_selector_from_name; use starknet_rs_providers::Provider...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_advancing_time.rs
tests/integration/test_advancing_time.rs
use std::sync::Arc; use std::time; use serde_json::json; use starknet_rs_accounts::{Account, AccountError, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ BlockId, BlockTag, Call, Felt, FunctionCall, StarknetError, TransactionExecutionStatus, TransactionStatus, }; use starknet_rs_core::u...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/get_transaction_receipt_by_hash.rs
tests/integration/get_transaction_receipt_by_hash.rs
use std::sync::Arc; use starknet_rs_accounts::{ Account, AccountFactory, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{ Call, ExecutionResult, Felt, StarknetError, TransactionFinalityStatus, TransactionReceipt, }; use starknet_rs_core::utils::{get_selector_...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_new_txs.rs
tests/integration/test_subscription_to_new_txs.rs
use std::collections::HashMap; use serde_json::json; use starknet_core::constants::CHARGEABLE_ACCOUNT_ADDRESS; use starknet_rs_accounts::{ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ DeclareTransactionV3, DeployAccountTransaction, Felt, InvokeTransactionV3, Transaction, TransactionFin...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_with_invalid_block_id.rs
tests/integration/test_subscription_with_invalid_block_id.rs
use serde_json::json; use starknet_rs_core::types::{BlockId, Felt}; use tokio_tungstenite::connect_async; use crate::common::background_devnet::BackgroundDevnet; use crate::common::utils::{assert_no_notifications, send_text_rpc_via_ws}; fn block_not_found_error() -> serde_json::Value { json!({ "jsonrpc": "2.0", "...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_websocket.rs
tests/integration/test_websocket.rs
use std::sync::Arc; use futures::{SinkExt, StreamExt}; use serde_json::json; use starknet_rs_accounts::{Account, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::types::{ BroadcastedDeclareTransactionV3, DataAvailabilityMode, Felt, Transaction, }; use starknet_rs_signers::Signer; use tokio_tungstenite...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_gas_modification.rs
tests/integration/test_gas_modification.rs
use std::sync::Arc; use serde_json::json; use starknet_core::constants::{ DEVNET_DEFAULT_L1_DATA_GAS_PRICE, DEVNET_DEFAULT_L1_GAS_PRICE, DEVNET_DEFAULT_L2_GAS_PRICE, }; use starknet_rs_accounts::{Account, AccountError, ExecutionEncoding, SingleOwnerAccount}; use starknet_rs_core::chain_id::SEPOLIA; use starknet_rs...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/test_subscription_to_tx_status.rs
tests/integration/test_subscription_to_tx_status.rs
use serde_json::json; use starknet_rs_core::types::{BlockId, Felt}; use tokio::net::TcpStream; use tokio_tungstenite::{MaybeTlsStream, WebSocketStream, connect_async}; use crate::assert_eq_prop; use crate::common::background_devnet::BackgroundDevnet; use crate::common::utils::{ SubscriptionId, assert_no_notificati...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/get_transaction_by_hash.rs
tests/integration/get_transaction_by_hash.rs
use std::sync::Arc; use starknet_rs_accounts::{ Account, AccountFactory, ExecutionEncoding, OpenZeppelinAccountFactory, SingleOwnerAccount, }; use starknet_rs_core::types::{BlockId, BlockTag, Call, Felt, StarknetError}; use starknet_rs_core::utils::get_selector_from_name; use starknet_rs_providers::{Provider, Prov...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/errors.rs
tests/integration/common/errors.rs
use core::fmt; use std::borrow::Cow; use serde::{self, Deserialize, Serialize}; use thiserror::Error; #[derive(Error, Debug)] pub enum TestError { #[error("Could not parse URL")] UrlParseError(#[from] url::ParseError), #[error("Invalid URI")] InvalidUri(#[from] axum::http::uri::InvalidUri), #[er...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/reqwest_client.rs
tests/integration/common/reqwest_client.rs
use std::any::TypeId; use serde::Serialize; use serde::de::DeserializeOwned; use serde_json::json; use super::errors::ReqwestError; #[derive(Clone, Debug)] pub struct HttpEmptyResponseBody; #[derive(Clone, Debug)] pub struct ReqwestClient { url: String, reqwest_client: reqwest::Client, } impl ReqwestClient ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/background_anvil.rs
tests/integration/common/background_anvil.rs
use std::process::Command; use std::str::FromStr; use std::time; use alloy::eips::BlockId; use alloy::primitives::{Address, U256}; use alloy::providers::{Provider, ProviderBuilder}; use alloy::rpc::types::Block; use alloy::signers::Signer; use alloy::signers::local::PrivateKeySigner; use alloy::sol; use reqwest::Statu...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/background_server.rs
tests/integration/common/background_server.rs
use std::time; use super::safe_child::SafeChild; pub(crate) async fn get_acquired_port( process: &mut SafeChild, sleep_time: time::Duration, max_retries: usize, ) -> Result<u16, anyhow::Error> { let pid = process.id(); for _ in 0..max_retries { if let Ok(ports) = listeners::get_ports_by_pi...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/utils.rs
tests/integration/common/utils.rs
use std::fmt::{Debug, LowerHex}; use std::fs; use std::path::Path; use std::process::{Child, Command}; use std::sync::Arc; use std::time::Duration; use alloy::primitives::U256; use futures::{SinkExt, StreamExt, TryStreamExt}; use rand::{Rng, rng}; use serde_json::json; use starknet_api::contract_class::compiled_class_...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/mod.rs
tests/integration/common/mod.rs
#![cfg(test)] #[macro_use] pub mod assertions; pub mod background_anvil; pub mod background_devnet; mod background_server; pub mod constants; pub mod errors; pub mod fees; pub mod reqwest_client; mod safe_child; pub mod utils;
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/safe_child.rs
tests/integration/common/safe_child.rs
use std::process::Child; #[derive(Debug)] pub struct SafeChild { pub process: Child, pub port: Option<u16>, } impl SafeChild { pub fn id(&self) -> u32 { self.process.id() } } /// By implementing Drop, we ensure there are no zombie processes in case of early test failure impl Drop for SafeChil...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/constants.rs
tests/integration/common/constants.rs
use starknet_rs_core::types::Felt; pub const HOST: &str = "127.0.0.1"; pub const SEED: usize = 42; pub const ACCOUNTS: usize = 3; pub const CHAIN_ID: Felt = starknet_rs_core::chain_id::SEPOLIA; // Devnet executable info pub const DEVNET_EXECUTABLE_BINARY_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../ta...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/background_devnet.rs
tests/integration/common/background_devnet.rs
use std::collections::HashMap; use std::fmt::LowerHex; use std::process::{Command, Output, Stdio}; use std::time; use anyhow::anyhow; use lazy_static::lazy_static; use reqwest::{Client, StatusCode}; use serde_json::json; use starknet_rs_core::types::{ BlockId, BlockTag, BlockWithTxHashes, BlockWithTxs, Felt, Funct...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/assertions.rs
tests/integration/common/assertions.rs
/// Asserts that a boolean expression is `true` at runtime, propagating an `Err` if `false`. #[macro_export] macro_rules! assert_prop { ($cond:expr) => { if $cond { Ok(()) } else { Err(anyhow::anyhow!( "Assertion failed: {}", stringify!($cond) ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/tests/integration/common/fees.rs
tests/integration/common/fees.rs
fn extract_overall_fee(simulation_result: &serde_json::Value) -> u128 { let fee_hex = simulation_result["fee_estimation"]["overall_fee"].as_str().unwrap(); let fee_hex_stripped = fee_hex.strip_prefix("0x").unwrap(); u128::from_str_radix(fee_hex_stripped, 16).unwrap() } /// Calculating the fee of a transact...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/contract_storage_key.rs
crates/starknet-devnet-types/src/contract_storage_key.rs
use std::fmt::Display; use super::contract_address::ContractAddress; use crate::patricia_key::StorageKey; #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)] pub struct ContractStorageKey(ContractAddress, StorageKey); impl ContractStorageKey { pub fn new(address: ContractAddress, storage_key: StorageKey)...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/lib.rs
crates/starknet-devnet-types/src/lib.rs
pub mod chain_id; pub mod constants; pub mod contract_storage_key; pub mod error; pub mod patricia_key; pub mod rpc; pub mod serde_helpers; pub mod traits; mod utils; // Re export libraries pub use rpc::{contract_address, contract_class, emitted_event, felt, messaging}; pub use utils::{compile_sierra_contract, compile...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/chain_id.rs
crates/starknet-devnet-types/src/chain_id.rs
use std::fmt::Display; use std::str::FromStr; use starknet_rs_core::chain_id::{MAINNET, SEPOLIA}; use starknet_rs_core::utils::{cairo_short_string_to_felt, parse_cairo_short_string}; use starknet_types_core::felt::Felt; use crate::error::ConversionError; #[derive(Clone, Copy, Debug)] pub enum ChainId { Mainnet, ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/patricia_key.rs
crates/starknet-devnet-types/src/patricia_key.rs
use serde::{Deserialize, Deserializer, Serialize}; use starknet_api::core::PATRICIA_KEY_UPPER_BOUND; use starknet_rs_core::types::Felt; use crate::error::{DevnetResult, Error}; use crate::serde_helpers::hex_string::{ deserialize_to_prefixed_patricia_key, serialize_patricia_key_to_prefixed_hex, }; #[derive(Debug, ...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/error.rs
crates/starknet-devnet-types/src/error.rs
use blockifier::transaction::errors::TransactionExecutionError; use thiserror::Error; #[derive(Error, Debug)] pub enum Error { #[error(transparent)] StarknetApiError(#[from] starknet_api::StarknetApiError), #[error("Conversion error: {0}")] ConversionError(#[from] ConversionError), #[error(transpar...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/utils.rs
crates/starknet-devnet-types/src/utils.rs
use std::io; use cairo_lang_starknet_classes::casm_contract_class::CasmContractClass; use cairo_lang_starknet_classes::contract_class::ContractClass; use serde_json::ser::Formatter; use serde_json::{Map, Value}; use crate::error::{DevnetResult, Error, JsonError}; /// The preserve_order feature enabled in the serde_j...
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false
0xSpaceShard/starknet-devnet
https://github.com/0xSpaceShard/starknet-devnet/blob/64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed/crates/starknet-devnet-types/src/rpc.rs
crates/starknet-devnet-types/src/rpc.rs
pub mod block; pub mod contract_address; pub mod contract_class; pub mod emitted_event; pub mod estimate_message_fee; pub mod eth_address; pub mod felt; pub mod gas_modification; mod macro_utils; pub mod messaging; pub mod state; pub mod transaction_receipt; pub mod transactions;
rust
MIT
64b6efe29cd5215c8f4fe880cf1c97b3ee18a7ed
2026-01-04T20:24:59.412401Z
false