pub struct Chain {
pub best: Head,
pub entropy: EntropyBuffer,
pub finalized: Head,
pub accounts: BTreeMap<u32, ServiceAccount>,
}Expand description
Chain environment
Fields§
§best: HeadBest block
entropy: EntropyBufferEntropy buffer
finalized: HeadFinalized block
accounts: BTreeMap<u32, ServiceAccount>Service accounts
Implementations§
Source§impl Chain
impl Chain
Sourcepub fn service(&self, service: ServiceId) -> Result<OpaqueHash>
pub fn service(&self, service: ServiceId) -> Result<OpaqueHash>
Find a service code
Sourcepub fn refine_context(&self) -> RefineContext
pub fn refine_context(&self) -> RefineContext
Get the refine context
TODO: support prerequisites
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more