pub struct RegisterContractEffect {
pub verifier: Verifier,
pub program_id: ProgramId,
pub state_commitment: StateCommitment,
pub contract_name: ContractName,
pub timeout_window: Option<TimeoutWindow>,
}Expand description
Used by the Hyli node to recognize contract registration. Simply output this struct in your HyliOutput registered_contracts. See uuid-tld for examples.
Fields§
§verifier: VerifierVerifier to use for transactions sent to this new contract.
program_id: ProgramIdOther verifier data, such as a Risc0 program ID or noir public key. Transactions sent to this contract will have to match this program ID.
state_commitment: StateCommitmentInitial state commitment of the contract to register.
contract_name: ContractNameName of the contract to register.
timeout_window: Option<TimeoutWindow>Optionally set the timeout window for the contract. If the contract exists, the timeout window will be unchanged, otherwise, the default value will be used.
Trait Implementations§
Source§impl BorshDeserialize for RegisterContractEffect
impl BorshDeserialize for RegisterContractEffect
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for RegisterContractEffect
impl Clone for RegisterContractEffect
Source§impl ComposeSchema for RegisterContractEffect
impl ComposeSchema for RegisterContractEffect
Source§impl Debug for RegisterContractEffect
impl Debug for RegisterContractEffect
Source§impl Default for RegisterContractEffect
impl Default for RegisterContractEffect
Source§impl<'de> Deserialize<'de> for RegisterContractEffect
impl<'de> Deserialize<'de> for RegisterContractEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RegisterContractEffect
Source§impl From<RegisterContractAction> for RegisterContractEffect
impl From<RegisterContractAction> for RegisterContractEffect
Source§fn from(action: RegisterContractAction) -> Self
fn from(action: RegisterContractAction) -> Self
Converts to this type from the input type.
Source§impl Hashed<TxHash> for RegisterContractEffect
Available on crate feature full only.
impl Hashed<TxHash> for RegisterContractEffect
Available on crate feature
full only.Source§impl PartialEq for RegisterContractEffect
impl PartialEq for RegisterContractEffect
Source§impl Serialize for RegisterContractEffect
impl Serialize for RegisterContractEffect
impl StructuralPartialEq for RegisterContractEffect
Auto Trait Implementations§
impl Freeze for RegisterContractEffect
impl RefUnwindSafe for RegisterContractEffect
impl Send for RegisterContractEffect
impl Sync for RegisterContractEffect
impl Unpin for RegisterContractEffect
impl UnsafeUnpin for RegisterContractEffect
impl UnwindSafe for RegisterContractEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.