spacejam_service/vm/
refine.rs

1//! Refine related types
2
3use crate::{OpaqueHash, ServiceId, Vec};
4use serde::{Deserialize, Serialize};
5
6/// Refine parameters
7#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Default)]
8pub struct RefineParams {
9    /// (c) the core index
10    #[serde(with = "codec::compact")]
11    pub core: u16,
12
13    /// (i) the work item index
14    #[serde(with = "codec::compact")]
15    pub index: u16,
16
17    /// (w_s) the service id
18    #[serde(with = "codec::compact")]
19    pub id: ServiceId,
20
21    /// (y) the payload
22    pub payload: Vec<u8>,
23
24    /// (p) the work package hash
25    pub package: OpaqueHash,
26}