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
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/rgsw/mod.rs
src/rgsw/mod.rs
mod keygen; mod runtime; pub(crate) use keygen::*; pub(crate) use runtime::*; #[cfg(test)] pub(crate) mod tests { use std::{fmt::Debug, marker::PhantomData, vec}; use itertools::{izip, Itertools}; use rand::{thread_rng, Rng}; use crate::{ backend::{GetModulus, ModInit, ModularOpsU64, Modulus...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
true
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/shortint/enc_dec.rs
src/shortint/enc_dec.rs
use itertools::Itertools; use crate::{ bool::BoolEvaluator, random::{DefaultSecureRng, RandomFillUniformInModulus}, utils::WithLocal, Decryptor, Encryptor, KeySwitchWithId, Matrix, MatrixEntity, MatrixMut, MultiPartyDecryptor, RowMut, SampleExtractor, }; /// Fhe UInt8 /// /// Note that `Self.data`...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/shortint/mod.rs
src/shortint/mod.rs
mod enc_dec; mod ops; pub type FheUint8 = enc_dec::FheUint8<Vec<u64>>; use std::cell::RefCell; use crate::bool::{BoolEvaluator, BooleanGates, FheBool, RuntimeServerKey}; thread_local! { static DIV_ZERO_ERROR: RefCell<Option<FheBool>> = RefCell::new(None); } /// Returns Boolean ciphertext indicating whether la...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/shortint/ops.rs
src/shortint/ops.rs
use itertools::{izip, Itertools}; use crate::bool::BooleanGates; pub(super) fn half_adder<E: BooleanGates>( evaluator: &mut E, a: &mut E::Ciphertext, b: &E::Ciphertext, key: &E::Key, ) -> E::Ciphertext { let carry = evaluator.and(a, b, key); evaluator.xor_inplace(a, b, key); carry } pub(s...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/backend/word_size.rs
src/backend/word_size.rs
use itertools::izip; use num_traits::{WrappingAdd, WrappingMul, WrappingSub, Zero}; use super::{ArithmeticOps, GetModulus, ModInit, Modulus, VectorOps}; pub struct WordSizeModulus<T> { modulus: T, } impl<T> ModInit for WordSizeModulus<T> where T: Modulus, { type M = T; fn new(modulus: T) -> Self { ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/backend/power_of_2.rs
src/backend/power_of_2.rs
use itertools::izip; use crate::{ArithmeticOps, ModInit, VectorOps}; use super::{GetModulus, Modulus}; pub(crate) struct ModulusPowerOf2<T> { modulus: T, /// Modulus mask: (1 << q) - 1 mask: u64, } impl<T> ArithmeticOps for ModulusPowerOf2<T> { type Element = u64; #[inline] fn add(&self, a: ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/backend/mod.rs
src/backend/mod.rs
use num_traits::ToPrimitive; use crate::{utils::log2, Row}; mod modulus_u64; mod power_of_2; mod word_size; pub use modulus_u64::ModularOpsU64; pub(crate) use power_of_2::ModulusPowerOf2; pub trait Modulus { type Element; /// Modulus value if it fits in Element fn q(&self) -> Option<Self::Element>; ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/backend/modulus_u64.rs
src/backend/modulus_u64.rs
use itertools::izip; use num_traits::WrappingMul; use super::{ ArithmeticLazyOps, ArithmeticOps, GetModulus, ModInit, Modulus, ShoupMatrixFMA, VectorOps, }; use crate::RowMut; pub struct ModularOpsU64<T> { q: u64, q_twice: u64, logq: usize, barrett_mu: u128, barrett_alpha: usize, modulus: ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/mp_api.rs
src/bool/mp_api.rs
use std::{cell::RefCell, sync::OnceLock}; use crate::{ backend::{ModularOpsU64, ModulusPowerOf2}, ntt::NttBackendU64, random::{DefaultSecureRng, NewWithSeed}, utils::{Global, WithLocal}, }; use super::{evaluator::InteractiveMultiPartyCrs, keys::*, parameters::*, ClientKey}; pub(crate) type BoolEvalua...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/parameters.rs
src/bool/parameters.rs
use num_traits::{ConstZero, FromPrimitive, PrimInt}; use crate::{ backend::Modulus, decomposer::{Decomposer, NumInfo}, utils::log2, }; pub(crate) trait DoubleDecomposerCount { type Count; fn a(&self) -> Self::Count; fn b(&self) -> Self::Count; } pub(crate) trait DoubleDecomposerParams { t...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/ni_mp_api.rs
src/bool/ni_mp_api.rs
use std::{cell::RefCell, sync::OnceLock}; use crate::{ backend::ModulusPowerOf2, bool::parameters::ParameterVariant, random::DefaultSecureRng, utils::{Global, WithLocal}, ModularOpsU64, NttBackendU64, }; use super::{ evaluator::NonInteractiveMultiPartyCrs, keys::{ CommonReferenceSe...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/print_noise.rs
src/bool/print_noise.rs
use std::{fmt::Debug, iter::Sum}; use itertools::izip; use num_traits::{FromPrimitive, PrimInt, Zero}; use rand_distr::uniform::SampleUniform; use crate::{ backend::{GetModulus, Modulus}, decomposer::{Decomposer, NumInfo, RlweDecomposer}, lwe::{decrypt_lwe, lwe_key_switch}, parameters::{BoolParameters...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
true
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/mod.rs
src/bool/mod.rs
mod evaluator; mod keys; pub(crate) mod parameters; #[cfg(feature = "interactive_mp")] mod mp_api; #[cfg(feature = "non_interactive_mp")] mod ni_mp_api; #[cfg(feature = "non_interactive_mp")] pub use ni_mp_api::*; #[cfg(feature = "interactive_mp")] pub use mp_api::*; use crate::RowEntity; pub type ClientKey = keys...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/evaluator.rs
src/bool/evaluator.rs
use std::{ collections::HashMap, fmt::{Debug, Display}, marker::PhantomData, usize, }; use itertools::{izip, Itertools}; use num_traits::{FromPrimitive, One, PrimInt, ToPrimitive, WrappingAdd, WrappingSub, Zero}; use rand_distr::uniform::SampleUniform; use crate::{ backend::{ArithmeticOps, GetModu...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
true
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/src/bool/keys.rs
src/bool/keys.rs
use std::{collections::HashMap, marker::PhantomData}; use crate::{ backend::{ModInit, VectorOps}, pbs::WithShoupRepr, random::{NewWithSeed, RandomFillUniformInModulus}, utils::ToShoup, Matrix, MatrixEntity, MatrixMut, RowEntity, RowMut, }; use super::parameters::{BoolParameters, CiphertextModulus}...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
true
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/benches/ntt.rs
benches/ntt.rs
use bin_rs::{Ntt, NttBackendU64, NttInit}; use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion}; use itertools::Itertools; use rand::{thread_rng, Rng}; use rand_distr::Uniform; fn forward_matrix(a: &mut [Vec<u64>], nttop: &NttBackendU64) { a.iter_mut().for_each(|r| nttop.forward(r.as...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/benches/modulus.rs
benches/modulus.rs
use bin_rs::{ ArithmeticLazyOps, ArithmeticOps, Decomposer, DefaultDecomposer, ModInit, ModularOpsU64, ShoupMatrixFMA, VectorOps, }; use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion}; use itertools::{izip, Itertools}; use rand::{thread_rng, Rng}; use rand_distr::Uniform; fn de...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/non_interactive_fheuint8.rs
examples/non_interactive_fheuint8.rs
use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; fn function1(a: u8, b: u8, c: u8, d: u8) -> u8 { ((a + b) * c) * d } fn function1_fhe(a: &FheUint8, b: &FheUint8, c: &FheUint8, d: &FheUint8) -> FheUint8 { &(&(a + b) * c) * d } fn function2(a: u8, b: u8, c: u8, d: u8) -> u8...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/interactive_fheuint8.rs
examples/interactive_fheuint8.rs
use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; fn function1(a: u8, b: u8, c: u8, d: u8) -> u8 { ((a + b) * c) * d } fn function1_fhe(a: &FheUint8, b: &FheUint8, c: &FheUint8, d: &FheUint8) -> FheUint8 { &(&(a + b) * c) * d } fn function2(a: u8, b: u8, c: u8, d: u8) -> u8...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/if_and_else.rs
examples/if_and_else.rs
use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; /// Code that runs when conditional branch is `True` fn circuit_branch_true(a: &FheUint8, b: &FheUint8) -> FheUint8 { a + b } /// Code that runs when conditional branch is `False` fn circuit_branch_false(a: &FheUint8, b: &FheUint...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/bomberman.rs
examples/bomberman.rs
use std::fmt::Debug; use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; struct Coordinates<T>(T, T); impl<T> Coordinates<T> { fn new(x: T, y: T) -> Self { Coordinates(x, y) } fn x(&self) -> &T { &self.0 } fn y(&self) -> &T { &self.1 } ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/meeting_friends.rs
examples/meeting_friends.rs
use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; struct Location<T>(T, T); impl<T> Location<T> { fn new(x: T, y: T) -> Self { Location(x, y) } fn x(&self) -> &T { &self.0 } fn y(&self) -> &T { &self.1 } } fn should_meet(a: &Location...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
phantomzone-org/phantom-zone
https://github.com/phantomzone-org/phantom-zone/blob/a8e6c276273bbe2cb7f2508ba07d1d192a467c13/examples/div_by_zero.rs
examples/div_by_zero.rs
use itertools::Itertools; use phantom_zone::*; use rand::{thread_rng, Rng, RngCore}; fn main() { set_parameter_set(ParameterSelector::NonInteractiveLTE2Party); // set application's common reference seed let mut seed = [0u8; 32]; thread_rng().fill_bytes(&mut seed); set_common_reference_seed(seed); ...
rust
MIT
a8e6c276273bbe2cb7f2508ba07d1d192a467c13
2026-01-04T20:23:25.934339Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/lib.rs
ipc/wallet/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::str::FromStr; use anyhow::anyhow; use serde::{Deserialize, Serialize}; mod evm; mod fvm; #[cfg(feature = "with-ethers")] pub use crate::evm::{random_eth_key_info, EthKeyAddress}; pub use crate::evm::{ KeyInfo as EvmKeyInfo, KeyStore a...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/evm/memory.rs
ipc/wallet/src/evm/memory.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Memory key store use crate::evm::{KeyInfo, KeyStore}; use anyhow::{anyhow, Result}; use std::collections::HashMap; use std::hash::Hash; #[derive(Default)] pub struct MemoryKeyStore<T> { pub(crate) data: HashMap<T, KeyInfo>, pub(crate) d...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/evm/mod.rs
ipc/wallet/src/evm/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Ethereum wallet key store. mod memory; mod persistent; use anyhow::Result; use std::fmt::{Display, Formatter}; use std::hash::Hash; use zeroize::Zeroize; #[cfg(feature = "with-ethers")] use std::str::FromStr; pub use crate::evm::persistent::{...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/evm/persistent.rs
ipc/wallet/src/evm/persistent.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Persistent file key store use crate::evm::memory::MemoryKeyStore; use crate::evm::{KeyInfo, KeyStore}; use anyhow::anyhow; use anyhow::Result; use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::fs; use std::fs::File; us...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/errors.rs
ipc/wallet/src/fvm/errors.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use std::io; use thiserror::Error; #[derive(Debug, PartialEq, Eq, Error)] pub enum Error { /// info that corresponds to key does not exist #[error("Key inf...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/serialization.rs
ipc/wallet/src/fvm/serialization.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT pub mod json { use base64::{prelude::BASE64_STANDARD, Engine}; use fvm_shared::crypto::signature::{Signature, SignatureType}; use serde::{de, Deserialize...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/wallet_helpers.rs
ipc/wallet/src/fvm/wallet_helpers.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use blake2b_simd::Params; use bls_signatures::{PrivateKey as BlsPrivate, Serialize}; use fvm_shared::{ address::Address, crypto::signature::{Signature, Signa...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/utils.rs
ipc/wallet/src/fvm/utils.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use std::fs::File; use std::io::Result; /// Restricts permissions on a file to user-only: 0600 #[cfg(unix)] pub fn set_user_perm(file: &File) -> Result<()> { us...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/keystore.rs
ipc/wallet/src/fvm/keystore.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use std::{ fmt::Display, fs::{self, create_dir, File}, io::{BufReader, BufWriter, ErrorKind, Read, Write}, path::{Path, PathBuf}, }; use ahash::{Has...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/mod.rs
ipc/wallet/src/fvm/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT pub mod errors; pub mod keystore; mod serialization; pub mod utils; pub mod wallet; pub mod wallet_helpers; pub use errors::*; pub use keystore::*; pub use utils::*;...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/wallet/src/fvm/wallet.rs
ipc/wallet/src/fvm/wallet.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT // Copyright 2019-2023 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use std::{convert::TryFrom, str::FromStr}; use ahash::{HashMap, HashMapExt}; use fvm_shared::{ address::Address, crypto::signature::{Signature, SignatureTyp...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/subnet.rs
ipc/api/src/subnet.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT /// This type definitions are borrowed from /// https://github.com/consensus-shipyard/ipc-actors/blob/main/subnet-actor/src/types.rs /// to ensure that they are in sync in this project. /// However, we should either deprecate the native actors, or ma...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/evm.rs
ipc/api/src/evm.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Type conversion for IPC Agent struct with solidity contract struct use crate::address::IPCAddress; use crate::checkpoint::BottomUpCheckpoint; use crate::checkpoint::BottomUpMsgBatch; use crate::cross::{IpcEnvelope, IpcMsgKind}; use crate::stakin...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/lib.rs
ipc/api/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use ethers::utils::hex; use fvm_shared::{address::Address, econ::TokenAmount}; use ipc_types::EthAddress; use serde::de::Error as SerdeError; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; pub mod address; pub mod checkpoint;...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/address.rs
ipc/api/src/address.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use crate::error::Error; use crate::subnet_id::SubnetID; use crate::{deserialize_human_readable_str, HumanReadable}; use fvm_shared::address::{Address, Protocol}; use serde::ser::Error as SerializeError; use serde_tuple::{Deserialize_tuple, Serialize_...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/error.rs
ipc/api/src/error.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use thiserror::Error; #[derive(Debug, Error, PartialEq, Eq)] pub enum Error { #[error("invalid subnet id {0}: {1}")] InvalidID(String, String), #[error("invalid IPC address")] InvalidIPCAddr, #[error("fvm shared address error")] ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/gateway.rs
ipc/api/src/gateway.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT /// This type definitions are borrowed from /// https://github.com/consensus-shipyard/ipc-actors/tree/main/gateway /// to ensure that they are in sync in this project. /// However, we should either deprecate the native actors, or make /// them use th...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/runtime.rs
ipc/api/src/runtime.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use crate::checkpoint::{BottomUpCheckpoint, Validators}; use fil_actors_runtime::runtime::Runtime; use fvm_shared::address::Address; use fvm_shared::econ::TokenAmount; impl BottomUpCheckpoint { /// Agents may set the source of a checkpoint using...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/staking.rs
ipc/api/src/staking.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Staking module related types and functions use crate::{eth_to_fil_amount, ethers_address_to_fil_address}; use ethers::utils::hex; use fvm_shared::address::Address; use fvm_shared::econ::TokenAmount; use ipc_actors_abis::{lib_staking_change_log, ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/checkpoint.rs
ipc/api/src/checkpoint.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Cross network messages related struct and utility functions. use crate::cross::IpcEnvelope; use crate::subnet_id::SubnetID; use crate::HumanReadable; use cid::multihash::Code; use cid::multihash::MultihashDigest; use cid::Cid; use ethers::utils::...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/validator.rs
ipc/api/src/validator.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fvm_shared::{address::Address, econ::TokenAmount}; use ipc_actors_abis::subnet_actor_getter_facet; use crate::{ eth_to_fil_amount, ethers_address_to_fil_address, evm::{fil_to_eth_amount, payload_to_evm_address}, }; #[derive(Clone, Debug...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/subnet_id.rs
ipc/api/src/subnet_id.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fnv::FnvHasher; use fvm_shared::address::Address; use lazy_static::lazy_static; use serde_tuple::{Deserialize_tuple, Serialize_tuple}; use std::fmt; use std::fmt::Write; use std::hash::{Hash, Hasher}; use std::str::FromStr; use crate::as_human_re...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/api/src/cross.rs
ipc/api/src/cross.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Cross network messages related struct and utility functions. use crate::address::IPCAddress; use crate::subnet_id::SubnetID; use crate::HumanReadable; use anyhow::anyhow; use fvm_shared::address::Address; use fvm_shared::econ::TokenAmount; use se...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/link.rs
ipc/types/src/link.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::actor_error; use std::any::type_name; use std::marker::PhantomData; use super::{CodeType, TCid, TCidContent}; use crate::tcid_ops; use anyhow::Result; use fvm_ipld_blockstore::Blockstore; use fvm_ipld_encoding::CborStore; use s...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/lib.rs
ipc/types/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::{fmt::Display, marker::PhantomData}; use cid::{multihash::Code, Cid}; pub use self::actor_error::*; pub mod actor_error; mod amt; mod ethaddr; mod hamt; mod link; mod taddress; mod uints; pub use amt::TAmt; pub use ethaddr::*;...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/hamt.rs
ipc/types/src/hamt.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::actor_error; use std::any::type_name; use std::marker::PhantomData; use super::{make_empty_map, make_map_with_root_and_bitwidth}; use crate::tcid_ops; use anyhow::{anyhow, Result}; use fvm_ipld_blockstore::{Blockstore, MemoryBl...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/ethaddr.rs
ipc/types/src/ethaddr.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use std::str::FromStr; use crate::uints::U256; use fvm_ipld_encoding::{serde, strict_bytes}; use fvm_shared::address::Address; use fvm_shared::ActorID; const EAM_ACTOR_ID: u64 = 10; /// A Filecoin address as represented in the FEVM runt...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/taddress.rs
ipc/types/src/taddress.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT #![allow(clippy::upper_case_acronyms)] // this is to disable warning for BLS use std::{convert::TryFrom, fmt::Display, marker::PhantomData, str::FromStr}; use serde::de::Error; use fvm_shared::address::{Address, Payload}; #[derive(Clon...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/amt.rs
ipc/types/src/amt.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use crate::actor_error; use std::any::type_name; use std::marker::PhantomData; use crate::tcid_ops; use super::{TCid, TCidContent}; use anyhow::{anyhow, Result}; use fvm_ipld_amt::Amt; use fvm_ipld_amt::Error as AmtError; use fvm_ipld_bl...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/uints.rs
ipc/types/src/uints.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT // to silence construct_uint! clippy warnings // see https://github.com/paritytech/parity-common/issues/660 #![allow(clippy::ptr_offset_with_cast, clippy::assign_op_pattern)] use serde::{Deserialize, Serialize}; //use substrate_bn::arith;...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/types/src/actor_error.rs
ipc/types/src/actor_error.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: Apache-2.0, MIT use fvm_ipld_encoding::de::DeserializeOwned; use fvm_ipld_encoding::ipld_block::IpldBlock; use std::fmt::Display; use fvm_shared::error::ExitCode; use thiserror::Error; /// The error type returned by actor method calls. #[derive(Error, D...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lib.rs
ipc/provider/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Ipc agent sdk, contains the json rpc client to interact with the IPC agent rpc server. use crate::manager::{GetBlockHashResult, TopDownQueryPayload}; use anyhow::anyhow; use base64::Engine; use config::Config; use fvm_shared::{ address::Addre...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/checkpoint.rs
ipc/provider/src/checkpoint.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Bottom up checkpoint manager use crate::config::Subnet; use crate::manager::{BottomUpCheckpointRelayer, EthSubnetManager}; use anyhow::{anyhow, Result}; use futures_util::future::try_join_all; use fvm_shared::address::Address; use fvm_shared::clo...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/client.rs
ipc/provider/src/lotus/client.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::collections::HashMap; use std::fmt::Debug; use std::str::FromStr; use std::sync::{Arc, RwLock}; use anyhow::{anyhow, Result}; use async_trait::async_trait; use base64::Engine; use cid::multihash::MultihashDigest; use cid::Cid; use fvm_ipld_e...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/mod.rs
ipc/provider/src/lotus/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::collections::HashMap; use std::fmt::Debug; use anyhow::Result; use async_trait::async_trait; use cid::Cid; use fvm_shared::address::Address; use fvm_shared::clock::ChainEpoch; use fvm_shared::econ::TokenAmount; use serde::de::DeserializeOwn...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/tests.rs
ipc/provider/src/lotus/message/tests.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fvm_shared::address::Address; use std::str::FromStr; use crate::lotus::message::deserialize::{ deserialize_ipc_address_from_map, deserialize_subnet_id_from_map, deserialize_token_amount_from_str, }; use crate::manager::SubnetInfo; use fvm...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/state.rs
ipc/provider/src/lotus/message/state.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use anyhow::anyhow; use base64::Engine; use fil_actors_runtime::cbor; use fvm_ipld_encoding::RawBytes; use serde::de::DeserializeOwned; use serde::Deserialize; use crate::lotus::message::CIDMap; #[derive(Debug, Deserialize)] #[serde(rename_all = "Pa...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/deserialize.rs
ipc/provider/src/lotus/message/deserialize.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Deserialization utils for lotus/ipc types. use fvm_shared::address::Address; use fvm_shared::bigint::BigInt; use fvm_shared::econ::TokenAmount; use ipc_api::address::IPCAddress; use ipc_api::subnet_id::SubnetID; use serde::de::{Error, MapAccess};...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/chain.rs
ipc/provider/src/lotus/message/chain.rs
use cid::Cid; // Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use serde::{Deserialize, Serialize}; use serde_json::Value; use crate::lotus::message::CIDMap; /// A simplified struct representing a `Block` response that does not decode the responses fully. #[derive(Debug, Deserialize)] #[serde(rena...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/serialize.rs
ipc/provider/src/lotus/message/serialize.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fvm_shared::econ::TokenAmount; use ipc_api::subnet_id::SubnetID; use serde::Serializer; pub fn serialize_subnet_id_to_str<S>(id: &SubnetID, s: S) -> Result<S::Ok, S::Error> where S: Serializer, { s.serialize_str(&id.to_string()) } pub fn...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/mod.rs
ipc/provider/src/lotus/message/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! This module contains the various response types to be used byt the lotus api. use std::str::FromStr; use anyhow::anyhow; use cid::Cid; use serde::{Deserialize, Serialize}; #[cfg(test)] mod tests; pub mod chain; pub mod deserialize; pub mod ipc...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/wallet.rs
ipc/provider/src/lotus/message/wallet.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use anyhow::anyhow; use fvm_shared::crypto::signature::SignatureType; use serde::{Deserialize, Serialize}; use strum::{AsRefStr, Display, EnumString}; #[derive(Debug, Deserialize, Serialize, PartialEq, Eq, Display, EnumString, AsRefStr)] pub enum Wal...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/mpool.rs
ipc/provider/src/lotus/message/mpool.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use crate::lotus::message::deserialize::{ deserialize_address_from_str, deserialize_some_token_amount_from_num, deserialize_some_token_amount_from_str, deserialize_token_amount_from_str, }; use crate::lotus::message::CIDMap; use cid::Cid; use ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/lotus/message/ipc.rs
ipc/provider/src/lotus/message/ipc.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fvm_ipld_encoding::RawBytes; use fvm_shared::clock::ChainEpoch; use fvm_shared::econ::TokenAmount; use fvm_shared::MethodNum; use ipc_api::address::IPCAddress; use ipc_api::subnet_id::SubnetID; use serde::{Deserialize, Serialize}; use crate::lot...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/jsonrpc/tests.rs
ipc/provider/src/jsonrpc/tests.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use futures_util::StreamExt; use serde_json::json; use url::Url; use crate::jsonrpc::{JsonRpcClient, JsonRpcClientImpl, NO_PARAMS}; /// The default endpoints for public lotus node. If the urls fail in running tests, need to /// check these endpoints...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/jsonrpc/mod.rs
ipc/provider/src/jsonrpc/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use anyhow::{anyhow, Result}; use async_channel::{Receiver, Sender}; use async_trait::async_trait; use futures_util::{SinkExt, StreamExt}; use reqwest::header::HeaderValue; use reqwest::Client; use serde::de::DeserializeOwned; use serde::Deserialize; ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/manager/subnet.rs
ipc/provider/src/manager/subnet.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::collections::{BTreeMap, HashMap}; use anyhow::Result; use async_trait::async_trait; use fvm_shared::clock::ChainEpoch; use fvm_shared::{address::Address, econ::TokenAmount}; use ipc_api::checkpoint::{ BottomUpCheckpoint, BottomUpCheckpo...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/manager/mod.rs
ipc/provider/src/manager/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT pub use crate::lotus::message::ipc::SubnetInfo; pub use evm::{EthManager, EthSubnetManager}; pub use subnet::{ BottomUpCheckpointRelayer, GetBlockHashResult, SubnetGenesisInfo, SubnetManager, TopDownFinalityQuery, TopDownQueryPayload, }; pub ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/manager/evm/manager.rs
ipc/provider/src/manager/evm/manager.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::borrow::Borrow; use std::collections::{BTreeMap, HashMap}; use std::sync::{Arc, RwLock}; use std::time::Duration; use ethers_contract::{ContractError, EthLogDecode, LogMeta}; use ipc_actors_abis::{ checkpointing_facet, gateway_getter_fa...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
true
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/manager/evm/mod.rs
ipc/provider/src/manager/evm/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT mod manager; use async_trait::async_trait; use fvm_shared::clock::ChainEpoch; use ipc_api::subnet_id::SubnetID; use super::subnet::SubnetManager; pub use manager::EthSubnetManager; use ipc_actors_abis::subnet_actor_checkpointing_facet; #[async_tr...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/config/subnet.rs
ipc/provider/src/config/subnet.rs
use std::time::Duration; // Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use fvm_shared::address::Address; use ipc_api::subnet_id::SubnetID; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DurationSeconds}; use url::Url; use crate::config::deserialize::{ deserialize_address_fr...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/config/tests.rs
ipc/provider/src/config/tests.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use std::str::FromStr; use fvm_shared::address::Address; use indoc::formatdoc; use ipc_api::subnet_id::SubnetID; use ipc_types::EthAddress; use url::Url; use crate::config::Config; // Arguments for the config's fields const REPO_PATH: &str = "~/.ip...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/config/deserialize.rs
ipc/provider/src/config/deserialize.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Deserialization utils for config mod. use crate::config::Subnet; use fvm_shared::address::Address; use ipc_api::subnet_id::SubnetID; use ipc_types::EthAddress; use serde::de::Error; use serde::{Deserialize, Deserializer}; use std::collections::Ha...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/config/serialize.rs
ipc/provider/src/config/serialize.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Serialization utils for config mod. use crate::config::Subnet; use anyhow::anyhow; use fvm_shared::address::{Address, Payload}; use ipc_api::subnet_id::SubnetID; use ipc_types::EthAddress; use serde::ser::{Error, SerializeSeq}; use serde::Seriali...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/provider/src/config/mod.rs
ipc/provider/src/config/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Provides a simple way of reading configuration files. //! //! Reads a TOML config file for the IPC Agent and deserializes it in a type-safe way into a //! [`Config`] struct. pub mod deserialize; pub mod subnet; pub mod serialize; #[cfg(test)] mo...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/lib.rs
ipc/cli/src/lib.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use anyhow::Result; use async_trait::async_trait; use clap::Args; use fvm_shared::address::Network; use num_traits::cast::FromPrimitive; mod commands; pub use commands::*; use ipc_provider::config::Config; /// The trait that represents the abstract...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/main.rs
ipc/cli/src/main.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use tracing_subscriber::prelude::*; use tracing_subscriber::{fmt, EnvFilter}; #[tokio::main] async fn main() { tracing_subscriber::registry() .with(fmt::layer()) .with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilte...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/mod.rs
ipc/cli/src/commands/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! This mod contains the different command line implementations. mod checkpoint; mod config; mod crossmsg; // mod daemon; mod subnet; mod util; mod wallet; use crate::commands::checkpoint::CheckpointCommandsArgs; use crate::commands::crossmsg::Cros...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/daemon.rs
ipc/cli/src/commands/daemon.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! The Daemon command line handler that prints the info about IPC Agent. use std::fmt::Debug; use std::sync::{Arc, RwLock}; use std::time::Duration; use async_trait::async_trait; use clap::Args; use ipc_wallet::Wallet; use tokio_graceful_shutdown::...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/util/mod.rs
ipc/cli/src/commands/util/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use crate::{CommandLineHandler, GlobalArguments}; use clap::{Args, Subcommand}; use self::f4::{EthToF4Addr, EthToF4AddrArgs}; mod f4; #[derive(Debug, Args)] #[command(name = "util", about = "util commands")] #[command(args_conflicts_with_subcomman...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/util/f4.rs
ipc/cli/src/commands/util/f4.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! F4 address util use async_trait::async_trait; use clap::Args; use fvm_shared::address::Address; use ipc_types::EthAddress; use std::fmt::Debug; use std::str::FromStr; use crate::{CommandLineHandler, GlobalArguments}; pub(crate) struct EthToF4Ad...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/crossmsg/topdown_cross.rs
ipc/cli/src/commands/crossmsg/topdown_cross.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! List top down cross messages use std::fmt::Debug; use std::str::FromStr; use async_trait::async_trait; use clap::Args; use fvm_shared::clock::ChainEpoch; use ipc_api::subnet_id::SubnetID; use crate::commands::get_ipc_provider; use crate::{Comma...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/crossmsg/mod.rs
ipc/cli/src/commands/crossmsg/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use self::fund::{FundWithToken, FundWithTokenArgs, PreFund, PreFundArgs}; use self::release::{PreRelease, PreReleaseArgs}; use self::topdown_cross::{ LatestParentFinality, LatestParentFinalityArgs, ListTopdownMsgs, ListTopdownMsgsArgs, }; use crat...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/crossmsg/release.rs
ipc/cli/src/commands/crossmsg/release.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Release cli command handler. use async_trait::async_trait; use clap::Args; use ipc_api::subnet_id::SubnetID; use std::{fmt::Debug, str::FromStr}; use crate::{ f64_to_token_amount, get_ipc_provider, require_fil_addr_from_str, CommandLineHandl...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/crossmsg/fund.rs
ipc/cli/src/commands/crossmsg/fund.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Fund cli command handler. use async_trait::async_trait; use clap::Args; use fvm_shared::bigint::BigInt; use fvm_shared::econ::TokenAmount; use ipc_api::subnet_id::SubnetID; use num_traits::Num; use std::{fmt::Debug, str::FromStr}; use crate::{ ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/crossmsg/propagate.rs
ipc/cli/src/commands/crossmsg/propagate.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Propagate cli command handler. use async_trait::async_trait; use clap::Args; use std::fmt::Debug; use crate::{CommandLineHandler, GlobalArguments}; /// The command to propagate a message in the postbox. pub(crate) struct Propagate; #[async_tra...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/list.rs
ipc/cli/src/commands/wallet/list.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet list cli handler use async_trait::async_trait; use clap::Args; use ipc_wallet::{EthKeyAddress, EvmKeyStore, WalletType}; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, CommandLineHandler, GlobalArguments}; pub(...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/default.rs
ipc/cli/src/commands/wallet/default.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet remove cli handler use async_trait::async_trait; use clap::Args; use ipc_wallet::{EvmKeyStore, WalletType}; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, CommandLineHandler, GlobalArguments}; pub(crate) struct...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/balances.rs
ipc/cli/src/commands/wallet/balances.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet balances cli handler use async_trait::async_trait; use clap::Args; use futures_util::future::join_all; use fvm_shared::{address::Address, econ::TokenAmount}; use ipc_api::ethers_address_to_fil_address; use ipc_api::subnet_id::SubnetID; use...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/mod.rs
ipc/cli/src/commands/wallet/mod.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT use crate::{CommandLineHandler, GlobalArguments}; use crate::commands::wallet::balances::{WalletBalances, WalletBalancesArgs}; use crate::commands::wallet::new::{WalletNew, WalletNewArgs}; use clap::{Args, Subcommand}; use self::default::{ Walle...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/export.rs
ipc/cli/src/commands/wallet/export.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet export cli handler use anyhow::anyhow; use async_trait::async_trait; use base64::{prelude::BASE64_STANDARD, Engine}; use clap::Args; use fvm_shared::address::Address; use ipc_provider::{lotus::message::wallet::WalletKeyType, IpcProvider, Lo...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/import.rs
ipc/cli/src/commands/wallet/import.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet import cli handler use anyhow::bail; use async_trait::async_trait; use clap::{ArgGroup, Args}; use ipc_wallet::WalletType; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, CommandLineHandler, GlobalArguments}; pu...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/remove.rs
ipc/cli/src/commands/wallet/remove.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet remove cli handler use async_trait::async_trait; use clap::Args; use ipc_wallet::{EvmKeyStore, WalletType}; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, CommandLineHandler, GlobalArguments}; pub(crate) struct...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/wallet/new.rs
ipc/cli/src/commands/wallet/new.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Wallet new cli handler use async_trait::async_trait; use clap::Args; use ipc_provider::lotus::message::wallet::WalletKeyType; use ipc_wallet::WalletType; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, CommandLineHandle...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/subnet/list_subnets.rs
ipc/cli/src/commands/subnet/list_subnets.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! List subnets cli command use async_trait::async_trait; use clap::Args; use ipc_api::subnet_id::SubnetID; use std::fmt::Debug; use std::str::FromStr; use crate::{get_ipc_provider, require_fil_addr_from_str, CommandLineHandler, GlobalArguments}; ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/subnet/kill.rs
ipc/cli/src/commands/subnet/kill.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! Kill a subnet cli command handler. use async_trait::async_trait; use clap::Args; use ipc_api::subnet_id::SubnetID; use std::{fmt::Debug, str::FromStr}; use crate::{get_ipc_provider, require_fil_addr_from_str, CommandLineHandler, GlobalArguments}...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false
ChainSafe/Delorean-Protocol
https://github.com/ChainSafe/Delorean-Protocol/blob/7f0f8b8a48f44486434bae881ba85785f6f7cf64/ipc/cli/src/commands/subnet/send_value.rs
ipc/cli/src/commands/subnet/send_value.rs
// Copyright 2022-2024 Protocol Labs // SPDX-License-Identifier: MIT //! SendValue cli handler use async_trait::async_trait; use clap::Args; use ipc_api::subnet_id::SubnetID; use std::{fmt::Debug, str::FromStr}; use crate::{ f64_to_token_amount, get_ipc_provider, require_fil_addr_from_str, CommandLineHandler, ...
rust
Apache-2.0
7f0f8b8a48f44486434bae881ba85785f6f7cf64
2026-01-04T20:23:10.651123Z
false