Trait forest_filecoin::shim::fvm_latest::kernel::NetworkOps

source ·
pub trait NetworkOps {
    // Required methods
    fn network_context(&self) -> Result<NetworkContext, ExecutionError>;
    fn tipset_cid(&self, epoch: i64) -> Result<Cid<64>, ExecutionError>;
}
Expand description

Network-related operations.

Required Methods§

source

fn network_context(&self) -> Result<NetworkContext, ExecutionError>

Network information (epoch, version, etc.).

source

fn tipset_cid(&self, epoch: i64) -> Result<Cid<64>, ExecutionError>

The CID of the tipset at the specified epoch.

Implementors§