pub struct Contract(_);
Expand description
Deployable representation of a contract code.
Implementations
Calculate the code root from a contract.
https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/identifiers.md#contract-id
Calculate and return the contract id, provided a salt and a code root.
https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/identifiers.md#contract-id
Trait Implementations
type Error = Infallible
type Error = Infallible
Error implementation of the storage functions
fn insert(
&mut self,
key: &ContractId,
value: &Contract
) -> Result<Option<Contract>, Infallible>
fn insert(
&mut self,
key: &ContractId,
value: &Contract
) -> Result<Option<Contract>, Infallible>
Append K->V
mapping to the storage. Read more
Remove K->V
mapping from the storage. Read more
Retrieve Cow<V>
such as K->V
.
Return true
if there is a K
mapping to a value in the storage.
type Error = InterpreterError
type Error = InterpreterError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Contract
impl UnwindSafe for Contract
Blanket Implementations
Mutably borrows from an owned value. Read more