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§
Sourcefn network_context(&self) -> Result<NetworkContext, ExecutionError>
fn network_context(&self) -> Result<NetworkContext, ExecutionError>
Network information (epoch, version, etc.).
Sourcefn tipset_cid(&self, epoch: i64) -> Result<Cid<64>, ExecutionError>
fn tipset_cid(&self, epoch: i64) -> Result<Cid<64>, ExecutionError>
The CID of the tipset at the specified epoch.