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 |
|---|---|---|---|---|---|---|---|---|
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/actors/chainmetadata/src/lib.rs | fendermint/actors/chainmetadata/src/lib.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
#[cfg(feature = "fil-actor")]
mod actor;
mod shared;
pub use shared::*;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/actors/chainmetadata/src/actor.rs | fendermint/actors/chainmetadata/src/actor.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fil_actors_runtime::actor_dispatch;
use fil_actors_runtime::actor_error;
use fil_actors_runtime::builtin::singletons::SYSTEM_ACTOR_ADDR;
use fil_actors_runtime::runtime::{ActorCode, Runtime};
use fil_actors_runtime::ActorDowncast;
use... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/actors/chainmetadata/src/shared.rs | fendermint/actors/chainmetadata/src/shared.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use fvm_ipld_amt::Amt;
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::tuple::{Deserialize_tuple, Serialize_tuple};
use fvm_shared::{clock::ChainEpoch, METHOD_CONSTRUCTOR};
use num_derive::FromPrimitive;
// The ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/actors/eam/src/lib.rs | fendermint/actors/eam/src/lib.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fil_actor_eam::{EamActor, Method};
use fil_actors_runtime::runtime::builtins::Type;
use fil_actors_runtime::runtime::{ActorCode, Runtime};
use fil_actors_runtime::ActorError;
use fil_actors_runtime::EAM_ACTOR_ID;
use fvm_ipld_blocksto... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/actors/eam/src/state.rs | fendermint/actors/eam/src/state.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use fil_actors_runtime::runtime::Runtime;
use fil_actors_runtime::{ActorError, Map2, DEFAULT_HAMT_CONFIG};
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::tuple::*;
use fvm_shared::address::Address;
use fvm_share... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/src/lib.rs | fendermint/testing/contract-test/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, Context, Result};
use byteorder::{BigEndian, WriteBytesExt};
use cid::Cid;
use fendermint_vm_core::Timestamp;
use fendermint_vm_interpreter::fvm::PowerUpdates;
use fvm_shared::{bigint::Zero, clock::ChainEpoch, econ::T... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/src/ipc/subnet.rs | fendermint/testing/contract-test/src/ipc/subnet.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fendermint_vm_actor_interface::eam::EthAddress;
use fendermint_vm_actor_interface::ipc::subnet::SubnetActorErrors;
use fendermint_vm_genesis::{Collateral, Validator};
use fendermint_vm_interpreter::fvm::state::fevm::{
ContractCall... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/src/ipc/registry.rs | fendermint/testing/contract-test/src/ipc/registry.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::Context;
use fendermint_vm_actor_interface::eam::EthAddress;
use fendermint_vm_actor_interface::init::builtin_actor_eth_addr;
use fendermint_vm_actor_interface::ipc::SUBNETREGISTRY_ACTOR_ID;
use fendermint_vm_interpreter::fvm:... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/src/ipc/mod.rs | fendermint/testing/contract-test/src/ipc/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
pub mod registry;
pub mod subnet;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/tests/smt_staking.rs | fendermint/testing/contract-test/tests/smt_staking.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//#![allow(unused)]
//! State Machine Test for the Staking contracts.
//!
//! The test simulates random actions validators can take, such as depositing and withdrawing
//! collateral, and executes these actions on the actual Solidity contr... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/tests/run_upgrades.rs | fendermint/testing/contract-test/tests/run_upgrades.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
mod staking;
use anyhow::{Context, Ok};
use async_trait::async_trait;
use ethers::types::U256;
use fendermint_contract_test::Tester;
use fendermint_rpc::response::decode_fevm_return_data;
use rand::rngs::StdRng;
use rand::SeedableRng;
us... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/tests/staking/state.rs | fendermint/testing/contract-test/tests/staking/state.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::collections::{BTreeMap, VecDeque};
use arbitrary::Unstructured;
use fendermint_crypto::{PublicKey, SecretKey};
use fendermint_testing::arb::{ArbSubnetAddress, ArbSubnetID, ArbTokenAmount};
use fendermint_vm_actor_interface::eam:... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/tests/staking/mod.rs | fendermint/testing/contract-test/tests/staking/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use arbitrary::{Arbitrary, Unstructured};
use fendermint_testing::arb::ArbTokenAmount;
use fvm_shared::{bigint::Integer, econ::TokenAmount};
pub mod machine;
pub mod state;
fn choose_amount(u: &mut Unstructured<'_>, max: &TokenAmount) -... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/contract-test/tests/staking/machine.rs | fendermint/testing/contract-test/tests/staking/machine.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{cell::RefCell, collections::HashSet, sync::Arc};
use arbitrary::{Arbitrary, Unstructured};
use fendermint_contract_test::ipc::{registry::RegistryCaller, subnet::SubnetCaller};
use fendermint_crypto::{PublicKey, SecretKey};
use f... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/graph-test/src/lib.rs | fendermint/testing/graph-test/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Run tests against a local Fendermint docker container node:
//! 0. The default `graph-fendermint`, `graph-cometbft` and `graph-ethapi` triplet
//! 1. The Graph docker-compose setup connecting to Fendermint through the Ethereum API
//!
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/smoke-test/src/lib.rs | fendermint/testing/smoke-test/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Run some tests against a pair of Fendermint and Tendermint docker containers running locally.
//!
//! Example:
//!
//! ```text
//! cd fendermint/testing/smoke-test
//! cargo make
//! ```
//!
//! Make sure you installed cargo-make by ru... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/lib.rs | fendermint/testing/materializer/src/lib.rs | use ethers::providers::{Http, Provider};
// Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use multihash::MultihashDigest;
use serde::{Deserialize, Serialize};
use std::fmt::Formatter;
use std::{
fmt::{Debug, Display},
path::{Path, PathBuf},
};
#[allow(unused_variables, dead_code... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/validation.rs | fendermint/testing/materializer/src/validation.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail, Ok};
use async_trait::async_trait;
use either::Either;
use ethers::types::H160;
use fendermint_vm_genesis::Collateral;
use fvm_shared::{chainid::ChainID, econ::TokenAmount};
use std::{
collections::{BTreeMap,... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/manifest.rs | fendermint/testing/materializer/src/manifest.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// See https://github.com/cometbft/cometbft/blob/v0.38.5/test/e2e/pkg/manifest.go for inspiration.
use anyhow::{bail, Context};
use fvm_shared::econ::TokenAmount;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
use std::{c... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/materializer.rs | fendermint/testing/materializer/src/materializer.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use async_trait::async_trait;
use either::Either;
use ethers::types::H160;
use fvm_shared::{chainid::ChainID, econ::TokenAmount};
use std::collections::BTreeMap;
use url::Url;
use fendermint_vm_genesis::Collateral;
use crate::{
manif... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/logging.rs | fendermint/testing/materializer/src/logging.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use async_trait::async_trait;
use either::Either;
use ethers::types::H160;
use fendermint_vm_genesis::Collateral;
use fvm_shared::{chainid::ChainID, econ::TokenAmount};
use std::{collections::BTreeMap, fmt::Display};
use url::Url;
use cra... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/testnet.rs | fendermint/testing/materializer/src/testnet.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail, Context};
use async_recursion::async_recursion;
use either::Either;
use fvm_shared::chainid::ChainID;
use std::{
collections::{BTreeMap, BTreeSet},
fmt::Display,
marker::PhantomData,
};
use url::Url;
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/arb.rs | fendermint/testing/materializer/src/arb.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use ethers::{
core::rand::{rngs::StdRng, SeedableRng},
types::H160,
};
use fendermint_vm_core::chainid;
use lazy_static::lazy_static;
use std::{
cmp::min,
collections::BTreeMap,
ops::{Mul, SubAssign},
};
use url::Url;
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/node.rs | fendermint/testing/materializer/src/docker/node.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{
collections::BTreeMap,
fmt::Display,
path::{Path, PathBuf},
str::FromStr,
time::{Duration, Instant},
};
use anyhow::{anyhow, bail, Context};
use bollard::Docker;
use ethers::{providers::Middleware, types::H... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/runner.rs | fendermint/testing/materializer/src/docker/runner.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{collections::HashMap, fmt::Display};
use anyhow::{bail, Context};
use bollard::{
container::{
AttachContainerOptions, AttachContainerResults, Config, CreateContainerOptions,
RemoveContainerOptions,
},
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/relayer.rs | fendermint/testing/materializer/src/docker/relayer.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{fmt::Display, path::Path};
use anyhow::Context;
use bollard::Docker;
use crate::{
docker::{
runner::{split_cmd, DockerRunner},
user_id, FENDERMINT_IMAGE,
},
manifest::EnvMap,
materials::{Default... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/network.rs | fendermint/testing/materializer/src/docker/network.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{collections::HashMap, fmt::Display};
use anyhow::{anyhow, Context};
use bollard::{
network::{CreateNetworkOptions, ListNetworksOptions},
service::{Network, NetworkCreateResponse},
Docker,
};
use crate::TestnetName;... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/container.rs | fendermint/testing/materializer/src/docker/container.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, Context};
use futures::StreamExt;
use std::collections::HashMap;
use bollard::{
container::{ListContainersOptions, LogsOptions},
secret::{ContainerInspectResponse, ContainerStateStatusEnum},
service::Cont... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/mod.rs | fendermint/testing/materializer/src/docker/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail, Context};
use async_trait::async_trait;
use bollard::{
container::{ListContainersOptions, RemoveContainerOptions},
network::ListNetworksOptions,
secret::{ContainerSummary, Network},
Docker,
};
us... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | true |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/docker/dropper.rs | fendermint/testing/materializer/src/docker/dropper.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use bollard::{
container::{RemoveContainerOptions, StopContainerOptions},
Docker,
};
/// Timeout before we kill the container if it doesn't want to stop.
const KILL_TIMEOUT_SECS: i64 = 5;
/// Commands to destroy docker construct... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/materials/mod.rs | fendermint/testing/materializer/src/materials/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{os::unix::fs::PermissionsExt, path::Path};
mod defaults;
use anyhow::Context;
pub use defaults::*;
use serde::{de::DeserializeOwned, Serialize};
/// Type family of all the things a [Materializer] can create.
///
/// Kept sepa... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/src/materials/defaults.rs | fendermint/testing/materializer/src/materials/defaults.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{
fmt::{Debug, Display},
path::{Path, PathBuf},
};
use anyhow::Context;
use ethers::core::rand::Rng;
use fendermint_crypto::{to_b64, PublicKey, SecretKey};
use fendermint_vm_actor_interface::{eam::EthAddress, init::built... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/docker.rs | fendermint/testing/materializer/tests/docker.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Utility methods and entry point for tests using the docker materializer.
//!
//! # Example
//!
//! `cargo test -p fendermint_materializer --test docker -- --nocapture`
use std::{
collections::BTreeSet,
env::current_dir,
pa... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/golden.rs | fendermint/testing/materializer/tests/golden.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
mod json {
use fendermint_materializer::manifest::Manifest;
use fendermint_testing::golden_json;
use quickcheck::Arbitrary;
golden_json! { "manifest/json", manifest, Manifest::arbitrary }
}
mod yaml {
use fendermint_m... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/docker_tests/layer2.rs | fendermint/testing/materializer/tests/docker_tests/layer2.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail, Context};
use ethers::core::types as et;
use ethers::providers::Middleware;
use futures::FutureExt;
use std::sync::Arc;
use std::time::Duration;
use fendermint_materializer::{HasEthApi, ResourceId};
use fendermi... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/docker_tests/standalone.rs | fendermint/testing/materializer/tests/docker_tests/standalone.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::time::{Duration, Instant};
use anyhow::{bail, Context};
use ethers::{
core::k256::ecdsa::SigningKey,
middleware::SignerMiddleware,
providers::{JsonRpcClient, Middleware, PendingTransaction, Provider},
signers::{S... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/docker_tests/mod.rs | fendermint/testing/materializer/tests/docker_tests/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! These test modules are all imported by the top level `docker.rs` module,
//! so that they can be annotated with the `#[serial]` macro and run one by one,
//! sharing their materializer state.
// Tests using the manifest bearing their ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/materializer/tests/docker_tests/root_only.rs | fendermint/testing/materializer/tests/docker_tests/root_only.rs | use std::time::Duration;
// Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail};
use ethers::{providers::Middleware, types::U64};
use fendermint_materializer::HasEthApi;
use futures::FutureExt;
use crate::with_testnet;
const MANIFEST: &str = "root-only.yaml";
#[s... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/lib.rs | fendermint/testing/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
#[cfg(feature = "arb")]
pub mod arb;
#[cfg(feature = "golden")]
pub mod golden;
#[cfg(feature = "smt")]
pub mod smt;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/smt.rs | fendermint/testing/src/smt.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use arbitrary::Unstructured;
/// State machine tests inspired by [ScalaCheck](https://github.com/typelevel/scalacheck/blob/main/doc/UserGuide.md#stateful-testing)
/// and [quickcheck-state-machine](https://hackage.haskell.org/package/quic... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/golden.rs | fendermint/testing/src/golden.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use serde::{de::DeserializeOwned, Serialize};
use std::fmt::Debug;
use std::fs::File;
use std::io::{Read, Write};
use std::path::Path;
/// Path to a golden file.
fn path(prefix: &str, name: &str, ext: &str) -> String {
/... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/cid.rs | fendermint/testing/src/arb/cid.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Unfortunately ref-fvm depends on cid:0.8.6, which depends on quickcheck:0.9
//! whereas here we use quickcheck:0.1. This causes conflicts and the `Arbitrary`
//! implementations for `Cid` are not usable to us, nor can we patch all `cid... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/address.rs | fendermint/testing/src/arb/address.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::address::Address;
use quickcheck::{Arbitrary, Gen};
/// Unfortunately an arbitrary `DelegatedAddress` can be inconsistent with bytes that do not correspond to its length.
#[derive(Clone, Debug)]
pub struct ArbAddress(pub A... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/mod.rs | fendermint/testing/src/arb/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
mod address;
mod cid;
mod message;
mod subnetid;
mod token;
pub use crate::arb::address::ArbAddress;
pub use crate::arb::cid::ArbCid;
pub use crate::arb::message::ArbMessage;
pub use crate::arb::subnetid::{ArbSubnetAddress, ArbSubnetID};... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/message.rs | fendermint/testing/src/arb/message.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::message::Message;
use quickcheck::{Arbitrary, Gen};
use super::{ArbAddress, ArbTokenAmount};
#[derive(Clone, Debug)]
pub struct ArbMessage(pub Message);
impl Arbitrary for ArbMessage {
fn arbitrary(g: &mut Gen) -> Se... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/subnetid.rs | fendermint/testing/src/arb/subnetid.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::address::Address;
use ipc_api::subnet_id::SubnetID;
#[derive(Debug, Clone)]
pub struct ArbSubnetAddress(pub Address);
#[derive(Debug, Clone)]
pub struct ArbSubnetID(pub SubnetID);
impl quickcheck::Arbitrary for ArbSubnet... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/src/arb/token.rs | fendermint/testing/src/arb/token.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use ethers::types::U256;
use fvm_shared::{
bigint::{BigInt, Integer, Sign, MAX_BIGINT_SIZE},
econ::TokenAmount,
};
use lazy_static::lazy_static;
use quickcheck::Gen;
use std::str::FromStr;
lazy_static! {
/// The max below is t... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/delorean-cli/src/lib.rs | fendermint/testing/delorean-cli/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Run tests against multiple Fendermint+CometBFT docker container pairs locally:
//! 0. The default `snapshot-fendermint` and `snapshot-cometbft` pair
//! 1. A `snapshot-cometbft-1` and `snapshot-cometbft-2`, using `scripts/node-1.env` a... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/delorean-cli/src/main.rs | fendermint/testing/delorean-cli/src/main.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Helper commands for interacting with the Delorean/CETF actor via RPC
//!
//! The example assumes that Tendermint and Fendermint have been started
//! and are running locally.
//!
//! # Usage
//! ```text
//! cargo run --example delorea... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/testing/snapshot-test/src/lib.rs | fendermint/testing/snapshot-test/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Run tests against multiple Fendermint+CometBFT docker container pairs locally:
//! 0. The default `snapshot-fendermint` and `snapshot-cometbft` pair
//! 1. A `snapshot-cometbft-1` and `snapshot-cometbft-2`, using `scripts/node-1.env` a... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/lib.rs | fendermint/eth/api/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::anyhow;
use axum::routing::{get, post};
use fvm_shared::econ::TokenAmount;
use jsonrpc_v2::Data;
use std::{net::ToSocketAddrs, sync::Arc, time::Duration};
use tower_http::cors::CorsLayer;
mod apis;
mod cache;
mod client;
mod ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/filters.rs | fendermint/eth/api/src/filters.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{
collections::HashMap,
pin::Pin,
sync::Arc,
time::{Duration, Instant},
};
use anyhow::{anyhow, Context};
use ethers_core::types as et;
use fendermint_rpc::{client::FendermintClient, query::QueryClient};
use fend... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | true |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/state.rs | fendermint/eth/api/src/state.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Tendermint RPC helper methods for the implementation of the APIs.
use std::borrow::Cow;
use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::time::Duration;
use anyhow::{anyhow, Context};
use cid::... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/client.rs | fendermint/eth/api/src/client.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{pin::Pin, time::Duration};
use anyhow::Context;
use async_trait::async_trait;
use fendermint_rpc::client::{http_client, ws_client};
use futures::Future;
use tendermint_rpc::{
error::ErrorDetail, query::Query, Client, Error,... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/error.rs | fendermint/eth/api/src/error.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use ethers_contract::{ContractRevert, EthError};
use fendermint_vm_actor_interface::ipc::subnet::SubnetActorErrors;
use fvm_shared::error::ExitCode;
use lazy_static::lazy_static;
use regex::Regex;
use serde::Serialize;
use crate::state::... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/mpool.rs | fendermint/eth/api/src/mpool.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Utilities related to caching and buffering Ethereum transactions.
use std::{collections::BTreeMap, time::Duration};
use ethers_core::types as et;
use fendermint_rpc::{
client::TendermintClient, message::SignedMessageFactory, Fende... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/cache.rs | fendermint/eth/api/src/cache.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::{
sync::{Arc, Mutex},
time::Duration,
};
use anyhow::Context;
use cid::Cid;
use lru_time_cache::LruCache;
use tendermint_rpc::Client;
use fvm_shared::{
address::{Address, Payload},
ActorID,
};
use fendermint_rp... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/conv/from_fvm.rs | fendermint/eth/api/src/conv/from_fvm.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Helper methods to convert between FVM and Ethereum data formats.
pub use fendermint_vm_message::conv::from_fvm::*;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/conv/from_eth.rs | fendermint/eth/api/src/conv/from_eth.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Helper methods to convert between Ethereum and FVM data formats.
use ethers_core::types as et;
use ethers_core::types::transaction::eip2718::TypedTransaction;
pub use fendermint_vm_message::conv::from_eth::*;
use fvm_shared::{error:... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/conv/from_tm.rs | fendermint/eth/api/src/conv/from_tm.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Helper methods to convert between Ethereum and Tendermint data formats.
use std::collections::HashSet;
use std::str::FromStr;
use anyhow::{anyhow, Context};
use ethers_core::types::{self as et};
use fendermint_vm_actor_interface::ea... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/conv/mod.rs | fendermint/eth/api/src/conv/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
pub mod from_eth;
pub mod from_fvm;
pub mod from_tm;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/handlers/http.rs | fendermint/eth/api/src/handlers/http.rs | // Copyright 2022-2024 Protocol Labs
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT
// Based on https://github.com/ChainSafe/forest/blob/v0.8.2/node/rpc/src/rpc_http_handler.rs
use axum::http::{HeaderMap, StatusCode};
use axum::response::IntoResponse;
use jsonrpc_v2::{RequestObje... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/handlers/mod.rs | fendermint/eth/api/src/handlers/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
pub mod http;
pub mod ws;
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/handlers/ws.rs | fendermint/eth/api/src/handlers/ws.rs | // Copyright 2022-2024 Protocol Labs
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT
// Based on https://github.com/ChainSafe/forest/blob/v0.8.2/node/rpc/src/rpc_ws_handler.rs
use axum::{
extract::{
ws::{Message, WebSocket},
WebSocketUpgrade,
},
http::H... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/apis/eth.rs | fendermint/eth/api/src/apis/eth.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// See the following for inspiration:
// * https://github.com/evmos/ethermint/blob/ebbe0ffd0d474abd745254dc01e60273ea758dae/rpc/namespaces/ethereum/eth/api.go#L44
// * https://github.com/filecoin-project/lotus/blob/v1.23.1-rc2/api/api_ful... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | true |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/apis/web3.rs | fendermint/eth/api/src/apis/web3.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::Context;
use cid::multihash::MultihashDigest;
use jsonrpc_v2::Params;
use tendermint::abci;
use tendermint_rpc::Client;
use crate::{JsonRpcData, JsonRpcResult};
/// Returns the current client version.
pub async fn client_ver... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/apis/mod.rs | fendermint/eth/api/src/apis/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// See https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
// and https://ethereum.github.io/execution-apis/api-documentation/
use crate::HybridClient;
use jsonrpc_v2::{MapRouter, ServerBuilder};
use paste::paste;
mo... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/apis/net.rs | fendermint/eth/api/src/apis/net.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::Context;
use ethers_core::types as et;
use fendermint_rpc::query::QueryClient;
use fendermint_vm_message::query::FvmQueryHeight;
use tendermint_rpc::endpoint::net_info;
use tendermint_rpc::Client;
use crate::{JsonRpcData, Jso... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/gas/mod.rs | fendermint/eth/api/src/gas/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::{
bigint::{BigInt, Zero},
econ::TokenAmount,
message::Message,
};
// Copy of https://github.com/filecoin-project/ref-fvm/blob/fvm%40v3.3.1/fvm/src/gas/outputs.rs
mod output;
// https://github.com/filecoin-proj... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/src/gas/output.rs | fendermint/eth/api/src/gas/output.rs | // Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::econ::TokenAmount;
#[derive(Clone, Default)]
pub(crate) struct GasOutputs {
pub base_fee_burn: TokenAmount,
pub over_estimation_burn: TokenAmount,
pub miner_penalty: TokenAmount,
pub miner_tip: TokenAmount... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/examples/ethers.rs | fendermint/eth/api/examples/ethers.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Example of using the Ethereum JSON-RPC facade with the Ethers provider.
//!
//! The example assumes that the following has been started and running in the background:
//! 1. Fendermint ABCI application
//! 2. Tendermint Core / Comet B... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/examples/query_blockhash.rs | fendermint/eth/api/examples/query_blockhash.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Example of using the Ethereum JSON-RPC facade with the Ethers provider.
//!
//! The example assumes that the following has been started and running in the background:
//! 1. Fendermint ABCI application
//! 2. Tendermint Core / Comet B... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/examples/greeter.rs | fendermint/eth/api/examples/greeter.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Example of using the Ethereum JSON-RPC facade with the Ethers provider.
//!
//! The example assumes that the following has been started and running in the background:
//! 1. Fendermint ABCI application
//! 2. Tendermint Core / Comet B... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/api/examples/common/mod.rs | fendermint/eth/api/examples/common/mod.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Example of using the Ethereum JSON-RPC facade with the Ethers provider.
//!
//! The example assumes that the following has been started and running in the background:
//! 1. Fendermint ABCI application
//! 2. Tendermint Core / Comet B... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/eth/hardhat/src/lib.rs | fendermint/eth/hardhat/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::{anyhow, bail, Context};
use ethers_core::types as et;
use serde::Deserialize;
use std::{
cmp::Ord,
collections::{BTreeMap, HashMap, HashSet, VecDeque},
hash::Hash,
path::{Path, PathBuf},
};
/// Contract sourc... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/ethaccount.rs | fendermint/vm/actor_interface/src/ethaccount.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
define_code!(ETHACCOUNT { code_id: 16 });
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/evm.rs | fendermint/vm/actor_interface/src/evm.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use fvm_ipld_encoding::RawBytes;
use fvm_shared::METHOD_CONSTRUCTOR;
use serde_tuple::{Deserialize_tuple, Serialize_tuple};
pub use fil_actors_evm_shared::uints;
use crate::eam::EthAddress;
define_code!(EVM { code_id: 14 ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/placeholder.rs | fendermint/vm/actor_interface/src/placeholder.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Placeholders can be used for delegated address types.
//! The FVM automatically creates one if the recipient of a transaction
//! doesn't exist. Then, the executor replaces the code later based on
//! the namespace in the delegated add... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/eam.rs | fendermint/vm/actor_interface/src/eam.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::fmt::{Debug, Display};
use cid::multihash::MultihashDigest;
use fendermint_crypto::PublicKey;
use fvm_ipld_encoding::{
strict_bytes,
tuple::{Deserialize_tuple, Serialize_tuple},
};
use fvm_shared::{
address::{Address... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/diamond.rs | fendermint/vm/actor_interface/src/diamond.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Helper data structures to declare diamond pattern contracts.
// See https://medium.com/@MarqyMarq/how-to-implement-the-diamond-standard-69e87dae44e6
use std::collections::HashMap;
use ethers::abi::Abi;
use fvm_shared::ActorID;
#[de... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/lib.rs | fendermint/vm/actor_interface/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! The modules in this crate a thin interfaces to builtin-actors,
//! so that the rest of the system doesn't have to copy-paste things
//! such as actor IDs, method numbers, method parameter data types.
//!
//! This is similar to how the ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/cron.rs | fendermint/vm/actor_interface/src/cron.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_ipld_encoding::tuple::*;
use fvm_shared::address::Address;
use fvm_shared::MethodNum;
use fvm_shared::METHOD_CONSTRUCTOR;
define_singleton!(CRON { id: 3, code_id: 3 });
/// Cron actor methods available.
#[repr(u64)]
pub enum Meth... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/chainmetadata.rs | fendermint/vm/actor_interface/src/chainmetadata.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
define_id!(CHAINMETADATA { id: 48 });
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/cetf.rs | fendermint/vm/actor_interface/src/cetf.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
define_id!(CETFSYSCALL { id: 49 });
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/system.rs | fendermint/vm/actor_interface/src/system.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use fvm_ipld_encoding::tuple::*;
use fvm_shared::address::Address;
use lazy_static::lazy_static;
use crate::eam::EthAddress;
define_singleton!(SYSTEM { id: 0, code_id: 1 });
lazy_static! {
/// The Ethereum null-address... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/init.rs | fendermint/vm/actor_interface/src/init.rs | use std::collections::{BTreeMap, BTreeSet};
// Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use anyhow::Context;
use cid::multihash::MultihashDigest;
use cid::Cid;
use fendermint_vm_genesis::{Actor, ActorMeta};
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::tuple::*;
use f... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/burntfunds.rs | fendermint/vm/actor_interface/src/burntfunds.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// The burnt funds actor is just an Account actor.
define_id!(BURNT_FUNDS { id: 99 });
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/reward.rs | fendermint/vm/actor_interface/src/reward.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// The reward actor is a singleton, but for now let's just use a
// simple account, instead of the one in the built-in actors library,
// because that has too many Filecoin mainnet specific things.
define_id!(REWARD { id: 2 });
| rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/multisig.rs | fendermint/vm/actor_interface/src/multisig.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use cid::Cid;
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::tuple::*;
use fvm_ipld_hamt::Hamt;
use fvm_shared::{address::Address, clock::ChainEpoch, econ::TokenAmount, ActorID, HAMT_BIT_WIDTH};
use serde::{Deserialize, Serial... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/ipc.rs | fendermint/vm/actor_interface/src/ipc.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
// The IPC actors have bindings in `ipc_actors_abis`.
// Here we define stable IDs for them, so we can deploy the
// Solidity contracts during genesis.
use anyhow::Context;
use ethers::core::abi::Tokenize;
use ethers::core::types as et;
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/actor_interface/src/account.rs | fendermint/vm/actor_interface/src/account.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_ipld_encoding::tuple::*;
use fvm_shared::address::Address;
define_code!(ACCOUNT { code_id: 4 });
/// State includes the address for the actor
#[derive(Serialize_tuple, Deserialize_tuple, Debug, Clone)]
pub struct State {
pub ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/encoding/src/lib.rs | fendermint/vm/encoding/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use fvm_shared::address::Address;
use fvm_shared::bigint::BigInt;
use fvm_shared::econ::TokenAmount;
use ipc_api::subnet_id::SubnetID;
use num_traits::Num;
use serde::de::{DeserializeOwned, Error};
use serde::{de, Deserialize, Serialize, S... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/lib.rs | fendermint/vm/topdown/src/lib.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
mod cache;
mod error;
mod finality;
pub mod sync;
pub mod convert;
pub mod proxy;
mod toggle;
pub mod voting;
use async_stm::Stm;
use async_trait::async_trait;
use ethers::utils::hex;
use fvm_shared::clock::ChainEpoch;
use ipc_api::cros... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/convert.rs | fendermint/vm/topdown/src/convert.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
//! Handles the type conversion to ethers contract types
use crate::IPCParentFinality;
use anyhow::anyhow;
use ethers::types::U256;
use ipc_actors_abis::{gateway_getter_facet, top_down_finality_facet};
impl TryFrom<IPCParentFinality> for... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/toggle.rs | fendermint/vm/topdown/src/toggle.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use crate::finality::ParentViewPayload;
use crate::{
BlockHash, BlockHeight, CachedFinalityProvider, Error, IPCParentFinality,
ParentFinalityProvider, ParentViewProvider,
};
use anyhow::anyhow;
use async_stm::{Stm, StmResult};
use... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/error.rs | fendermint/vm/topdown/src/error.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use crate::{BlockHeight, SequentialAppendError};
use thiserror::Error;
/// The errors for top down checkpointing
#[derive(Error, Debug, Eq, PartialEq, Clone)]
pub enum Error {
#[error("Incoming items are not order sequentially")]
... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/voting.rs | fendermint/vm/topdown/src/voting.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use async_stm::{abort, atomically_or_err, retry, Stm, StmResult, TVar};
use serde::{de::DeserializeOwned, Serialize};
use std::hash::Hash;
use std::{fmt::Debug, time::Duration};
use crate::{BlockHash, BlockHeight};
// Usign this type be... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/cache.rs | fendermint/vm/topdown/src/cache.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use num_traits::PrimInt;
use std::collections::{vec_deque, VecDeque};
use std::fmt::Debug;
/// The key value cache such that:
/// 1. Key must be numeric
/// 2. Keys must be sequential
#[derive(Clone)]
pub struct SequentialKeyCache<K, V> ... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/proxy.rs | fendermint/vm/topdown/src/proxy.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use crate::BlockHeight;
use anyhow::anyhow;
use async_trait::async_trait;
use fvm_shared::clock::ChainEpoch;
use ipc_api::cross::IpcEnvelope;
use ipc_api::staking::StakingChangeRequest;
use ipc_api::subnet_id::SubnetID;
use ipc_provider::... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
ChainSafe/Delorean-Protocol | https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/vm/topdown/src/finality/fetch.rs | fendermint/vm/topdown/src/finality/fetch.rs | // Copyright 2022-2024 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use crate::finality::null::FinalityWithNull;
use crate::finality::ParentViewPayload;
use crate::proxy::ParentQueryProxy;
use crate::{
handle_null_round, BlockHash, BlockHeight, Config, Error, IPCParentFinality,
ParentFinalityProvi... | rust | Apache-2.0 | 7f0f8b8a48f44486434bae881ba85785f6f7cf64 | 2026-01-04T20:23:10.651123Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.