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/vm/topdown/src/finality/mod.rs
fendermint/vm/topdown/src/finality/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT mod fetch; mod null; use crate::error::Error; use crate::BlockHash; use async_stm::{abort, StmResult}; use ipc_api::cross::IpcEnvelope; use ipc_api::staking::StakingChangeRequest; pub use fetch::CachedFinalityProvider; pub(crate) type ...
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/null.rs
fendermint/vm/topdown/src/finality/null.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::finality::{ ensure_sequential, topdown_cross_msgs, validator_changes, ParentViewPayload, }; use crate::{BlockHash, BlockHeight, Config, Error, IPCParentFinality, SequentialKeyCache}; use async_stm::{abort, atomically, Stm, ...
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/sync/syncer.rs
fendermint/vm/topdown/src/sync/syncer.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! The inner type of parent syncer use crate::finality::ParentViewPayload; use crate::proxy::ParentQueryProxy; use crate::sync::{query_starting_finality, ParentFinalityStateQuery}; use crate::voting::{self, VoteTally}; use crate::{ i...
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/sync/tendermint.rs
fendermint/vm/topdown/src/sync/tendermint.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! The tendermint aware syncer use crate::proxy::ParentQueryProxy; use crate::sync::syncer::LotusParentSyncer; use crate::sync::ParentFinalityStateQuery; use anyhow::Context; /// Tendermint aware syncer pub(crate) struct TendermintAware...
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/sync/mod.rs
fendermint/vm/topdown/src/sync/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! A constant running process that fetch or listener to parent state mod syncer; mod tendermint; use crate::proxy::ParentQueryProxy; use crate::sync::syncer::LotusParentSyncer; use crate::sync::tendermint::TendermintAwareSyncer; 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/vm/topdown/tests/smt_voting.rs
fendermint/vm/topdown/tests/smt_voting.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! State Machine Test for the finality voting tally component. //! //! The test simulates random events that the tally can receive, such as votes received //! over gossip, power table updates, block being executed, and tests that the tal...
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/resolver/src/ipld.rs
fendermint/vm/resolver/src/ipld.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{future::Future, time::Duration}; use async_stm::{atomically, queues::TQueueLike}; use ipc_api::subnet_id::SubnetID; use ipc_ipld_resolver::Resolver; use crate::pool::{ResolveQueue, ResolveTask}; /// The IPLD Resolver takes re...
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/resolver/src/lib.rs
fendermint/vm/resolver/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT pub mod ipld; pub mod pool;
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/resolver/src/pool.rs
fendermint/vm/resolver/src/pool.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{collections::HashSet, hash::Hash}; use async_stm::{ queues::{tchan::TChan, TQueueLike}, Stm, TVar, }; use cid::Cid; use ipc_api::subnet_id::SubnetID; /// CIDs we need to resolve from a specific source subnet, or our ow...
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/event/src/lib.rs
fendermint/vm/event/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT pub type BlockHeight = u64; /// Hex encoded block hash. pub type BlockHashHex<'a> = &'a str; #[derive(Debug, Default)] pub struct NewParentView<'a> { pub is_null: bool, pub block_height: BlockHeight, pub block_hash: Option<Bl...
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/message/src/lib.rs
fendermint/vm/message/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use cid::{multihash, multihash::MultihashDigest, Cid}; use fvm_ipld_encoding::{to_vec, Error as IpldError, DAG_CBOR}; use serde::Serialize; pub mod cetf; pub mod chain; pub mod conv; pub mod ipc; pub mod query; pub mod signed; /// Calcul...
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/message/src/chain.rs
fendermint/vm/message/src/chain.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use serde::{Deserialize, Serialize}; use crate::{cetf::CetfMessage, ipc::IpcMessage, signed::SignedMessage}; /// The different kinds of messages that can appear in blocks, ie. the transactions /// we can receive from Tendermint through 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/vm/message/src/cetf.rs
fendermint/vm/message/src/cetf.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use fendermint_actor_cetf::BlsSignature; use serde::{Deserialize, Serialize}; /// Messages involved in Cetf. #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] #[allow(clippy::large_enum_variant)] pub enum CetfMessage { ...
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/message/src/query.rs
fendermint/vm/message/src/query.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use cid::Cid; use fvm_ipld_encoding::RawBytes; use fvm_shared::{ address::Address, econ::TokenAmount, error::ExitCode, message::Message as FvmMessage, version::NetworkVersion, }; use serde::{Deserialize, Serialize}; use serde_with:...
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/message/src/signed.rs
fendermint/vm/message/src/signed.rs
// Copyright 2022-2024 Protocol Labs // Copyright 2019-2022 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::anyhow; use cid::multihash::MultihashDigest; use cid::Cid; use ethers_core::types as et; use ethers_core::types::transaction::eip2718::TypedTransaction; use fendermint_crypto::{PublicKe...
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/message/src/ipc.rs
fendermint/vm/message/src/ipc.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use cid::Cid; use fvm_shared::{ address::Address, clock::ChainEpoch, crypto::signature::Signature, econ::TokenAmount, }; use ipc_api::subnet_id::SubnetID; use serde::{Deserialize, Serialize}; /// Messages involved in InterPlanetary 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/vm/message/src/conv/from_fvm.rs
fendermint/vm/message/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. use std::str::FromStr; use anyhow::anyhow; use anyhow::bail; use ethers_core::types as et; use fendermint_crypto::{RecoveryId, Signature}; use fendermint_vm_actor_inte...
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/message/src/conv/from_eth.rs
fendermint/vm/message/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::{Eip1559TransactionRequest, NameOrAddress, H160, U256}; use fendermint_vm_actor_interface::{ eam::{self, EthAddress}, evm, }; use fvm_ip...
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/message/src/conv/mod.rs
fendermint/vm/message/src/conv/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT pub mod from_eth; pub mod from_fvm; #[cfg(test)] pub mod tests { use fendermint_crypto::{PublicKey, SecretKey}; use fendermint_testing::arb::{ArbMessage, ArbTokenAmount}; use fendermint_vm_actor_interface::{ eam::{sel...
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/message/tests/golden.rs
fendermint/vm/message/tests/golden.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// Examples of `ChainMessage`, which is what the client has to send, /// or at least what appears in blocks. mod chain { use fendermint_testing::golden_cbor; use fendermint_vm_message::{chain::ChainMessage, ipc::IpcMessage}; ...
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/genesis/src/lib.rs
fendermint/vm/genesis/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! A Genesis data structure similar to [genesis.Template](https://github.com/filecoin-project/lotus/blob/v1.20.4/genesis/types.go) //! in Lotus, which is used to [initialize](https://github.com/filecoin-project/lotus/blob/v1.20.4/chain/ge...
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/genesis/src/arb.rs
fendermint/vm/genesis/src/arb.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::{ ipc, Account, Actor, ActorMeta, Collateral, Genesis, Multisig, PermissionMode, Power, SignerAddr, Validator, ValidatorKey, }; use cid::multihash::MultihashDigest; use fendermint_crypto::SecretKey; use fendermint_testin...
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/genesis/tests/golden.rs
fendermint/vm/genesis/tests/golden.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// JSON based test so we can parse data from the disk where it's nice to be human readable. mod json { use fendermint_testing::golden_json; use fendermint_vm_genesis::Genesis; use quickcheck::Arbitrary; golden_json! { "ge...
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/snapshot/src/lib.rs
fendermint/vm/snapshot/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT mod car; mod client; mod error; mod manager; mod manifest; mod state; /// The file name to export the CAR to. const SNAPSHOT_FILE_NAME: &str = "snapshot.car"; /// The file name in snapshot directories that contains the manifest. const MA...
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/snapshot/src/manifest.rs
fendermint/vm/snapshot/src/manifest.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::path::{Path, PathBuf}; use anyhow::Context; use fendermint_vm_interpreter::fvm::state::{ snapshot::{BlockHeight, SnapshotVersion}, FvmStateParams, }; use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha256}; 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/snapshot/src/manager.rs
fendermint/vm/snapshot/src/manager.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::path::{Path, PathBuf}; use std::time::Duration; use crate::manifest::{file_checksum, list_manifests, write_manifest, SnapshotManifest}; use crate::state::SnapshotState; use crate::{car, SnapshotClient, SnapshotItem, PARTS_DIR_NA...
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/snapshot/src/state.rs
fendermint/vm/snapshot/src/state.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{fs::File, io, path::PathBuf, sync::Arc, time::SystemTime}; use anyhow::{bail, Context}; use async_stm::TVar; use fendermint_vm_interpreter::fvm::state::snapshot::{BlockStateParams, Snapshot}; use fvm_ipld_blockstore::Blockstore...
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/snapshot/src/client.rs
fendermint/vm/snapshot/src/client.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{path::PathBuf, sync::Arc, time::SystemTime}; use async_stm::{abort, Stm, StmResult, TVar}; use fendermint_vm_interpreter::fvm::state::{ snapshot::{BlockHeight, SnapshotVersion}, FvmStateParams, }; use crate::{ mani...
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/snapshot/src/error.rs
fendermint/vm/snapshot/src/error.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use fendermint_vm_interpreter::fvm::state::snapshot::SnapshotVersion; /// Possible errors with snapshots. #[derive(Debug, thiserror::Error)] pub enum SnapshotError { #[error("incompatible snapshot version: {0}")] IncompatibleVers...
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/snapshot/src/car/streamer.rs
fendermint/vm/snapshot/src/car/streamer.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use cid::Cid; use futures::{AsyncRead, Future, Stream}; use std::pin::Pin; use std::task::{Context, Poll}; use fvm_ipld_car::CarReader; use fvm_ipld_car::Error as CarError; type BlockStreamerItem = Result<(Cid, Vec<u8>), CarError>; type...
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/snapshot/src/car/chunker.rs
fendermint/vm/snapshot/src/car/chunker.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use futures::{AsyncWrite, Future}; use std::io::{Error as IoError, Result as IoResult}; use std::path::PathBuf; use std::pin::Pin; use std::task::{Context, Poll}; use tokio_util::compat::TokioAsyncWriteCompatExt; type BoxedFutureFile = P...
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/snapshot/src/car/mod.rs
fendermint/vm/snapshot/src/car/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! CAR file chunking utilities //! //! See https://ipld.io/specs/transport/car/carv1/ use anyhow::{self, Context as AnyhowContext}; use futures::{future, StreamExt}; use std::path::Path; use tokio_util::compat::TokioAsyncReadCompatExt; ...
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/snapshot/tests/golden.rs
fendermint/vm/snapshot/tests/golden.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// JSON based test so we can parse data from the disk where it's nice to be human readable. mod json { use fendermint_testing::golden_json; use fendermint_vm_snapshot::SnapshotManifest; use quickcheck::Arbitrary; golden_j...
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/core/src/lib.rs
fendermint/vm/core/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT pub mod chainid; mod timestamp; pub use timestamp::Timestamp;
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/core/src/timestamp.rs
fendermint/vm/core/src/timestamp.rs
use std::time::SystemTime; // Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use serde::{Deserialize, Serialize}; /// Unix timestamp (in seconds). #[derive(Clone, Debug, Copy, Serialize, Deserialize, PartialEq, Eq)] pub struct Timestamp(pub u64); impl Timestamp { pub fn as_secs(&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/vm/core/src/chainid.rs
fendermint/vm/core/src/chainid.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::HashMap; use std::hash::Hasher; use fvm_shared::bigint::Integer; use fvm_shared::chainid::ChainID; use lazy_static::lazy_static; use regex::Regex; use thiserror::Error; lazy_static! { /// Well known Filecoin cha...
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/interpreter/src/bytes.rs
fendermint/vm/interpreter/src/bytes.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::{anyhow, Context}; use async_trait::async_trait; use cid::Cid; use fendermint_vm_genesis::Genesis; use fendermint_vm_message::chain::ChainMessage; use fvm_ipld_encoding::Error as IpldError; use crate::{ chain::{ChainMessag...
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/interpreter/src/lib.rs
fendermint/vm/interpreter/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use async_trait::async_trait; pub mod bytes; pub mod chain; pub mod fvm; pub mod signed; #[cfg(feature = "arb")] mod arb; /// Initialize the chain state. /// /// This could be from the original genesis file, or perhaps a checkpointed sn...
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/interpreter/src/chain.rs
fendermint/vm/interpreter/src/chain.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::fvm::state::ipc::GatewayCaller; use crate::fvm::{topdown, FvmApplyRet, PowerUpdates}; use crate::ExtendVoteInterpreter; use crate::{ fvm::state::FvmExecState, fvm::FvmMessage, signed::{SignedMessageApplyRes, SignedMe...
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/interpreter/src/signed.rs
fendermint/vm/interpreter/src/signed.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::{anyhow, Context}; use async_trait::async_trait; use fendermint_vm_core::chainid::HasChainID; use fendermint_vm_message::{ query::FvmQuery, signed::{chain_id_bytes, DomainHash, SignedMessage, SignedMessageError}, }; 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/vm/interpreter/src/arb.rs
fendermint/vm/interpreter/src/arb.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use fendermint_testing::arb::{ArbCid, ArbTokenAmount}; use fendermint_vm_core::{chainid, Timestamp}; use fvm_shared::version::NetworkVersion; use quickcheck::{Arbitrary, Gen}; use crate::fvm::state::FvmStateParams; impl Arbitrary for Fv...
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/interpreter/src/fvm/genesis.rs
fendermint/vm/interpreter/src/fvm/genesis.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::{BTreeSet, HashMap}; use std::marker::PhantomData; use std::path::{Path, PathBuf}; use anyhow::{anyhow, Context}; use async_trait::async_trait; use ethers::abi::Tokenize; use ethers::core::types as et; use fendermin...
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/interpreter/src/fvm/externs.rs
fendermint/vm/interpreter/src/fvm/externs.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::anyhow; use cid::{ multihash::{Code, MultihashDigest}, Cid, }; use fendermint_vm_actor_interface::chainmetadata::CHAINMETADATA_ACTOR_ID; use fvm::{ externs::{Chain, Consensus, Externs, Rand}, state_tree::StateTr...
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/interpreter/src/fvm/upgrades.rs
fendermint/vm/interpreter/src/fvm/upgrades.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::BTreeMap; use anyhow::bail; use fendermint_vm_core::chainid; use fvm_ipld_blockstore::Blockstore; use fvm_shared::chainid::ChainID; use std::collections::btree_map::Entry::{Occupied, Vacant}; use super::state::{sna...
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/interpreter/src/fvm/bundle.rs
fendermint/vm/interpreter/src/fvm/bundle.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::path::{Path, PathBuf}; use std::str::FromStr; fn workspace_dir() -> PathBuf { let output = std::process::Command::new(env!("CARGO")) .arg("locate-project") .arg("--workspace") .arg("--message-format=p...
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/interpreter/src/fvm/broadcast.rs
fendermint/vm/interpreter/src/fvm/broadcast.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::time::Duration; use anyhow::{anyhow, bail, Context}; use ethers::types as et; use fendermint_rpc::response::decode_fevm_return_data; use fvm_ipld_encoding::RawBytes; use fvm_shared::error::ExitCode; use fvm_shared::{address::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/interpreter/src/fvm/check.rs
fendermint/vm/interpreter/src/fvm/check.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use async_trait::async_trait; use fvm_ipld_blockstore::Blockstore; use fvm_ipld_encoding::RawBytes; use fvm_shared::{address::Address, error::ExitCode}; use crate::CheckInterpreter; use super::{state::FvmExecState, store::ReadOnlyBlock...
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/interpreter/src/fvm/extend.rs
fendermint/vm/interpreter/src/fvm/extend.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::HashMap; use anyhow::bail; use anyhow::Context; use async_trait::async_trait; use bls_signatures::Serialize as _; use fendermint_actor_cetf::BlsSignature; use fendermint_actor_cetf::Tag; use num_traits::ToBytes; 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/vm/interpreter/src/fvm/mod.rs
fendermint/vm/interpreter/src/fvm/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::path::PathBuf; mod broadcast; mod check; mod checkpoint; mod custom_kernel; mod exec; pub mod extend; mod externs; mod genesis; mod query; pub mod state; pub mod store; pub mod upgrades; #[cfg(any(test, feature = "bundle"))] 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/interpreter/src/fvm/checkpoint.rs
fendermint/vm/interpreter/src/fvm/checkpoint.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::HashMap; use std::time::Duration; use anyhow::{anyhow, Context}; use ethers::abi::Tokenizable; use tendermint::block::Height; use tendermint_rpc::endpoint::commit; use tendermint_rpc::{endpoint::validators, Client, ...
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/interpreter/src/fvm/query.rs
fendermint/vm/interpreter/src/fvm/query.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use async_trait::async_trait; use cid::Cid; use fendermint_vm_message::query::{ActorState, FvmQuery, GasEstimate, StateParams}; use fvm_ipld_blockstore::Blockstore; use fvm_ipld_encoding::RawBytes; use fvm_shared::{ bigint::BigInt, eco...
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/interpreter/src/fvm/custom_kernel.rs
fendermint/vm/interpreter/src/fvm/custom_kernel.rs
// Copyright 2021-2023 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use ambassador::Delegate; use cid::Cid; use fvm::call_manager::CallManager; use fvm::gas::Gas; use fvm::kernel::prelude::*; use fvm::kernel::Result; use fvm::kernel::{ ActorOps, CryptoOps, DebugOps, EventOps, IpldBlockOps, MessageOps, ...
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/interpreter/src/fvm/exec.rs
fendermint/vm/interpreter/src/fvm/exec.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::Context; use async_trait::async_trait; use fvm_ipld_encoding::CborStore; use std::collections::HashMap; use tendermint::block::Height; use fendermint_vm_actor_interface::{ cetf::{CETFSYSCALL_ACTOR_ADDR, CETFSYSCALL_ACTOR_...
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/interpreter/src/fvm/topdown.rs
fendermint/vm/interpreter/src/fvm/topdown.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! Topdown finality related util functions use crate::chain::TopDownFinalityProvider; use crate::fvm::state::ipc::GatewayCaller; use crate::fvm::state::FvmExecState; use crate::fvm::FvmApplyRet; use anyhow::Context; use fendermint_vm_top...
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/interpreter/src/fvm/state/genesis.rs
fendermint/vm/interpreter/src/fvm/state/genesis.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::sync::Arc; use anyhow::{anyhow, bail, Context}; use cid::{multihash::Code, Cid}; use ethers::{abi::Tokenize, core::abi::Abi}; use fendermint_actors::Manifest as CustomActorManifest; use fendermint_vm_actor_interface::{ accou...
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/interpreter/src/fvm/state/check.rs
fendermint/vm/interpreter/src/fvm/state/check.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::{anyhow, Context}; use cid::Cid; use fendermint_vm_core::chainid::HasChainID; use fvm::state_tree::StateTree; use fvm_ipld_blockstore::Blockstore; use fvm_shared::chainid::ChainID; use crate::fvm::store::ReadOnlyBlockstore; ...
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/interpreter/src/fvm/state/cetf.rs
fendermint/vm/interpreter/src/fvm/state/cetf.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::fvm::store::ReadOnlyBlockstore; use anyhow::anyhow; use cid::Cid; use fendermint_actor_cetf::{BlockHeight, Tag}; use fendermint_vm_actor_interface::cetf::CETFSYSCALL_ACTOR_ID; use fvm::state_tree::StateTree; use fvm_ipld_blockst...
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/interpreter/src/fvm/state/mod.rs
fendermint/vm/interpreter/src/fvm/state/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT pub mod cetf; mod check; mod exec; pub mod fevm; mod genesis; pub mod ipc; mod query; pub mod snapshot; use std::sync::Arc; pub use check::FvmCheckState; pub use exec::{BlockHash, FvmExecState, FvmStateParams, FvmUpdatableParams}; pub u...
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/interpreter/src/fvm/state/query.rs
fendermint/vm/interpreter/src/fvm/state/query.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::HashMap; use std::{cell::RefCell, sync::Arc}; use anyhow::{anyhow, Context}; use cid::Cid; use fendermint_vm_actor_interface::system::{ is_system_addr, State as SystemState, SYSTEM_ACTOR_ADDR, }; use fendermint...
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/interpreter/src/fvm/state/snapshot.rs
fendermint/vm/interpreter/src/fvm/state/snapshot.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::fvm::state::FvmStateParams; use crate::fvm::store::ReadOnlyBlockstore; use anyhow::anyhow; use cid::multihash::{Code, MultihashDigest}; use cid::Cid; use futures_core::Stream; use fvm::state_tree::StateTree; use fvm_ipld_blocks...
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/interpreter/src/fvm/state/fevm.rs
fendermint/vm/interpreter/src/fvm/state/fevm.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::any::type_name; use std::fmt::Debug; use std::{marker::PhantomData, sync::Arc}; use crate::fvm::FvmApplyRet; use anyhow::{anyhow, bail, Context}; use ethers::abi::{AbiDecode, AbiEncode, Detokenize}; 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/interpreter/src/fvm/state/exec.rs
fendermint/vm/interpreter/src/fvm/state/exec.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::collections::{HashMap, HashSet}; use anyhow::Ok; use cid::Cid; use fendermint_vm_genesis::PowerScale; use fvm::{ call_manager::DefaultCallManager, engine::MultiEngine, executor::{ApplyFailure, ApplyKind, ApplyRet, 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/interpreter/src/fvm/state/ipc.rs
fendermint/vm/interpreter/src/fvm/state/ipc.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::{anyhow, Context}; use ethers::types as et; use fvm_ipld_blockstore::Blockstore; use fvm_shared::econ::TokenAmount; use fvm_shared::ActorID; use fendermint_crypto::{PublicKey, SecretKey}; use fendermint_vm_actor_interface::i...
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/interpreter/src/fvm/store/memory.rs
fendermint/vm/interpreter/src/fvm/store/memory.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{ collections::HashMap, sync::{Arc, RwLock}, }; use anyhow::Result; use cid::Cid; use fvm_ipld_blockstore::Blockstore; /// An in-memory blockstore that can be shared between threads, /// unlike [fvm_ipld_blockstore::mem...
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/interpreter/src/fvm/store/mod.rs
fendermint/vm/interpreter/src/fvm/store/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use cid::Cid; use fvm_ipld_blockstore::Blockstore; use fvm_shared::EMPTY_ARR_CID; pub mod memory; #[derive(Clone)] pub struct ReadOnlyBlockstore<DB>(DB); impl<DB> ReadOnlyBlockstore<DB> { pub fn new(store: DB) -> Self { Self...
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/interpreter/tests/golden.rs
fendermint/vm/interpreter/tests/golden.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// JSON based test in case we want to configure the FvmStateParams by hand. mod json { use fendermint_testing::golden_json; use fendermint_vm_interpreter::fvm::state::FvmStateParams; use quickcheck::Arbitrary; golden_json...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/rocksdb/src/namespaces.rs
fendermint/rocksdb/src/namespaces.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// List all column families to help keep them unique. /// /// # Example /// /// ``` /// use fendermint_rocksdb::namespaces; /// /// namespaces!(MySpace { foo, bar }); /// /// let ms = MySpace::default(); /// let nss = ms.values(); /// le...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/rocksdb/src/lib.rs
fendermint/rocksdb/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT mod rocks; #[cfg(feature = "blockstore")] pub mod blockstore; #[cfg(feature = "kvstore")] mod kvstore; pub mod namespaces; pub use rocks::{Error as RocksDbError, RocksDb, RocksDbConfig};
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/rocksdb/src/kvstore.rs
fendermint/rocksdb/src/kvstore.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::anyhow; use fendermint_storage::Decode; use fendermint_storage::Encode; use fendermint_storage::KVResult; use fendermint_storage::KVTransaction; use fendermint_storage::KVWritable; use fendermint_storage::KVWrite; use fendermin...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/rocksdb/src/blockstore.rs
fendermint/rocksdb/src/blockstore.rs
use std::sync::Arc; // Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::anyhow; use cid::Cid; use fvm_ipld_blockstore::Blockstore; use rocksdb::{BoundColumnFamily, OptimisticTransactionDB, WriteBatchWithTransaction}; use crate::RocksDb; impl Blockstore for RocksDb { fn ge...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/rocksdb/src/rocks/config.rs
fendermint/rocksdb/src/rocks/config.rs
// Copyright 2022-2024 Protocol Labs // Copyright 2019-2022 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use anyhow::anyhow; use rocksdb::{ BlockBasedOptions, Cache, DBCompactionStyle, DBCompressionType, DataBlockIndexType, LogLevel, Options, }; use serde::{Deserialize, Serialize}; /// Only 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/rocksdb/src/rocks/error.rs
fendermint/rocksdb/src/rocks/error.rs
// Copyright 2022-2024 Protocol Labs // Copyright 2019-2022 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use thiserror::Error; /// Database error #[derive(Debug, Error)] pub enum Error { #[error(transparent)] Database(#[from] rocksdb::Error), #[error("{0}")] Other(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/rocksdb/src/rocks/mod.rs
fendermint/rocksdb/src/rocks/mod.rs
// Copyright 2022-2024 Protocol Labs // Copyright 2019-2022 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use rocksdb::{ ColumnFamilyDescriptor, ErrorKind, OptimisticTransactionDB, Options, WriteBatchWithTransaction, }; use std::{path::Path, sync::Arc}; mod config; mod error; pub use config::Rock...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/crypto/src/lib.rs
fendermint/crypto/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use base64::engine::GeneralPurpose; use base64::engine::{DecodePaddingMode, GeneralPurposeConfig}; use base64::{alphabet, Engine}; use rand::Rng; use zeroize::{Zeroize, ZeroizeOnDrop, Zeroizing}; pub use libsecp256k1::{PublicKey, Recover...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/abci/src/lib.rs
fendermint/abci/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT mod application; pub use application::{AbciResult, Application, ApplicationService}; pub mod util;
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/abci/src/application.rs
fendermint/abci/src/application.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use async_trait::async_trait; use futures::future::FutureExt; use std::{ future::Future, pin::Pin, task::{Context, Poll}, }; use tendermint::abci::{request, response, Request, Response}; use tower::Service; use tower_abci::BoxE...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/abci/src/util.rs
fendermint/abci/src/util.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT /// Take the first transactions until the first one that would exceed the maximum limit. /// /// The function does not skip or reorder transaction even if a later one would stay within the limit. pub fn take_until_max_size<T: AsRef<[u8]>>...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/fendermint/abci/examples/kvstore.rs
fendermint/abci/examples/kvstore.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT //! Example ABCI application, an in-memory key-value store. use async_stm::{atomically, TVar}; use async_trait::async_trait; use fendermint_abci::{ util::take_until_max_size, AbciResult as Result, Application, ApplicationService, }; u...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/validation/src/lib.rs
validation/src/lib.rs
#![allow(suspicious_double_ref_op)] #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] use std::path::PathBuf; use std::{collections::BTreeMap, fmt::Display, process::ExitCode}; #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] use comfy_table::{modifiers::UTF8_SOLID_INNER_BORDERS, presets...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/validation/src/diff.rs
validation/src/diff.rs
use std::fmt::Write; use anyhow::Error; use colored::Colorize; #[derive(Debug, Clone, serde::Serialize)] #[serde(transparent)] pub struct Diff(String); impl std::fmt::Display for Diff { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } } impl Diff { pub fn new...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/scripts/protobuf-list-modules-response/src/main.rs
scripts/protobuf-list-modules-response/src/main.rs
use std::fs; use std::path::PathBuf; use anyhow::Result; use modsurfer_convert::{ api::{ListModulesResponse, Module as ProtoModule}, to_api, }; use modsurfer_module::Module; use modsurfer::ModuleParser; use protobuf::Message; #[tokio::main] async fn main() -> Result<()> { let args = std::env::args().skip(...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/demangle/src/lib.rs
demangle/src/lib.rs
/// Demangle function name, currently supports C++ and Rust pub fn demangle_function_name(name: impl Into<String>) -> String { let name = name.into(); if let Ok(name) = cpp_demangle::Symbol::new(&name) { if let Ok(name) = name.demangle(&cpp_demangle::DemangleOptions::default()) { return nam...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/proto/v1/src/api.rs
proto/v1/src/api.rs
// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
true
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/proto/v1/src/mod.rs
proto/v1/src/mod.rs
// @generated pub mod api;
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/api/src/mock_client.rs
api/src/mock_client.rs
use std::{collections::HashMap, sync::Mutex}; use anyhow::Result; use async_trait::async_trait; use lazy_static::lazy_static; #[cfg(not(feature = "mock-empty"))] use modsurfer_convert::api::ListModulesResponse; use modsurfer_module::{Export, Import, Module, SourceLanguage}; use url::Url; use crate::{ApiClient, Lis...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/api/src/lib.rs
api/src/lib.rs
use std::collections::HashMap; #[cfg(not(feature = "mock"))] mod client; mod interop; mod sort; #[cfg(feature = "mock")] mod mock_client; #[cfg(feature = "mock")] pub use mock_client::Client; #[cfg(not(feature = "mock"))] pub use client::Client; pub use interop::{List, Persisted}; pub use sort::{SortDirection, S...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/api/src/sort.rs
api/src/sort.rs
use modsurfer_convert::api::{Direction, Field}; #[derive(PartialEq, Clone, Debug)] pub enum SortDirection { Asc, Desc, } impl SortDirection { pub fn default() -> SortDirection { SortDirection::Desc } pub fn from_str(f: &str) -> Option<SortDirection> { match f.to_lowercase().as_str...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/api/src/client.rs
api/src/client.rs
use std::collections::HashMap; use anyhow::Result; use async_trait::async_trait; use modsurfer_convert::{ api::{self, Sort}, to_api, Audit, }; use modsurfer_module::{Export, Import, Module}; use modsurfer_validation::Report; use protobuf::{self, EnumOrUnknown, Message, MessageField, SpecialFields}; use reqwest...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/api/src/interop.rs
api/src/interop.rs
use modsurfer_convert::{api, from_api}; use modsurfer_module::Module; /// A type returned from the API acting as a collection of results, with some additional data about /// how the results were constructed (including the offset and limit from the caller). #[derive(Default, PartialEq)] pub struct List<T> { inner: ...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/plugins/src/lib.rs
plugins/src/lib.rs
pub const MODSURFER_WASM: &[u8] = include_bytes!("modsurfer.wasm");
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/lib.rs
cli/src/lib.rs
mod cmd; pub use cmd::exec::{Cli, Hash, Id, Limit, MetadataEntry, Offset, OutputFormat, Version};
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/main.rs
cli/src/main.rs
use std::{env, path::PathBuf, process::ExitCode}; use anyhow::Result; use clap::{Arg, ArgAction, Command}; use modsurfer_convert::AuditOutcome; use url::Url; mod cmd; use cmd::{Cli, Hash, Id, Limit, MetadataEntry, Offset, OutputFormat, Version}; const BASE_URL_ENV: &'static str = "MODSURFER_BASE_URL"; const DEFAULT...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/cmd/mod.rs
cli/src/cmd/mod.rs
pub mod api_result; pub mod exec; pub mod generate; #[allow(unused_imports)] pub use exec::*;
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/cmd/generate.rs
cli/src/cmd/generate.rs
use std::fs::File; use std::io::Write; use std::path::PathBuf; use anyhow::Result; use serde_yaml; use modsurfer_validation::{generate_checkfile, Module as ModuleParser}; pub async fn checkfile_from_module(wasm: &PathBuf, output: &PathBuf) -> Result<()> { let module_data = tokio::fs::read(wasm).await?; let m...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/cmd/exec.rs
cli/src/cmd/exec.rs
#![allow(unused)] use std::io::Write; use std::ops::Sub; use std::path::Path; use std::process::ExitCode; use std::{collections::HashMap, ffi::OsString, path::PathBuf}; use anyhow::{anyhow, Result}; use human_bytes::human_bytes; use modsurfer_api::{ApiClient, Client, Persisted}; use modsurfer_convert::{Audit, AuditOut...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/cli/src/cmd/api_result.rs
cli/src/cmd/api_result.rs
use std::fmt::Display; use comfy_table::{modifiers::UTF8_SOLID_INNER_BORDERS, presets::UTF8_FULL, Row, Table}; use modsurfer_module::SourceLanguage; use serde::{ser::SerializeStruct, Serialize}; #[derive(Serialize)] pub struct ApiResults<'a> { pub results: Vec<ApiResult<'a>>, } pub struct ApiResult<'a> { pub...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/module/src/lib.rs
module/src/lib.rs
pub use anyhow::Error; mod function; mod module; mod source_language; pub use function::{Function, FunctionType, ValType}; pub use module::{Export, Import, Module}; pub use source_language::SourceLanguage;
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/module/src/module.rs
module/src/module.rs
use std::collections::{HashMap, HashSet}; use crate::{Function, SourceLanguage}; use serde; use url; #[derive(Debug, Default, Clone, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)] pub struct Import { pub module_name: String, pub func: Function, } #[derive(Debug, Default, Clone, PartialEq, Eq, s...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/module/src/function.rs
module/src/function.rs
#[derive(Debug, Default, Clone, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct Function { pub name: String, pub ty: FunctionType, } #[derive(Debug, Default, Clone, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct FunctionType { pub params: Vec<ValType>, pub...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false
dylibso/modsurfer
https://github.com/dylibso/modsurfer/blob/71ae2ca8e06917b33281bd0b75843ee60edccba8/module/src/source_language.rs
module/src/source_language.rs
use std::ffi::OsString; /// Detected from the `producers` section in the wasm binary, or from other implicit values within /// the wasm binary. /// See more: <https://github.com/WebAssembly/tool-conventions/blob/main/ProducersSection.md> #[non_exhaustive] #[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::...
rust
Apache-2.0
71ae2ca8e06917b33281bd0b75843ee60edccba8
2026-01-04T20:22:33.912580Z
false