#[non_exhaustive]pub struct ContractCodeTarget {
pub address: QuaiAddress,
pub genesis: Hash32,
pub expected_runtime: Option<Hash32>,
}Expand description
Explicit account and trusted network/runtime constraints, with no deployment hash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: QuaiAddressAccount whose code should appear.
genesis: Hash32Required nonzero genesis identity, rechecked in every observation.
expected_runtime: Option<Hash32>Optional expected runtime Keccak; mismatched nonempty code fails immediately.
Implementations§
Source§impl ContractCodeTarget
impl ContractCodeTarget
Sourcepub async fn observe<T: Transport>(
&self,
provider: &Provider<T>,
) -> Result<Option<ContractCodeObservation>, ProviderError>
pub async fn observe<T: Transport>( &self, provider: &Provider<T>, ) -> Result<Option<ContractCodeObservation>, ProviderError>
One bounded code observation. Empty code or changed canonical anchors return None; other failures stop. Nonempty code must satisfy the target. Appearance is not authenticated finality, ABI/proxy semantics or execution proof.
Trait Implementations§
Source§impl Clone for ContractCodeTarget
impl Clone for ContractCodeTarget
impl Copy for ContractCodeTarget
Auto Trait Implementations§
impl Forget for ContractCodeTarget
impl Freeze for ContractCodeTarget
impl Move for ContractCodeTarget
impl RefUnwindSafe for ContractCodeTarget
impl Send for ContractCodeTarget
impl Sync for ContractCodeTarget
impl Unpin for ContractCodeTarget
impl UnsafeUnpin for ContractCodeTarget
impl UnwindSafe for ContractCodeTarget
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