Enum casper_types::Transform
source · pub enum Transform {
Show 19 variants
Identity,
WriteCLValue(CLValue),
WriteAccount(AccountHash),
WriteContractWasm,
WriteContract,
WriteContractPackage,
WriteDeployInfo(DeployInfo),
WriteEraInfo(EraInfo),
WriteTransfer(Transfer),
WriteBid(Box<Bid>),
WriteWithdraw(Vec<WithdrawPurse>),
AddInt32(i32),
AddUInt64(u64),
AddUInt128(U128),
AddUInt256(U256),
AddUInt512(U512),
AddKeys(Vec<NamedKey>),
Failure(String),
WriteUnbonding(Vec<UnbondingPurse>),
}
Expand description
The actual transformation performed while executing a deploy.
Variants§
Identity
A transform having no effect.
WriteCLValue(CLValue)
Writes the given CLValue to global state.
WriteAccount(AccountHash)
Writes the given Account to global state.
WriteContractWasm
Writes a smart contract as Wasm to global state.
WriteContract
Writes a smart contract to global state.
WriteContractPackage
Writes a smart contract package to global state.
WriteDeployInfo(DeployInfo)
Writes the given DeployInfo to global state.
WriteEraInfo(EraInfo)
Writes the given EraInfo to global state.
WriteTransfer(Transfer)
Writes the given Transfer to global state.
WriteBid(Box<Bid>)
Writes the given Bid to global state.
WriteWithdraw(Vec<WithdrawPurse>)
Writes the given Withdraw to global state.
AddInt32(i32)
Adds the given i32
.
AddUInt64(u64)
Adds the given u64
.
AddUInt128(U128)
Adds the given U128
.
AddUInt256(U256)
Adds the given U256
.
AddUInt512(U512)
Adds the given U512
.
AddKeys(Vec<NamedKey>)
Adds the given collection of named keys.
Failure(String)
A failed transformation, containing an error message.
WriteUnbonding(Vec<UnbondingPurse>)
Writes the given Unbonding to global state.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Transform
impl<'de> Deserialize<'de> for Transform
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
source§impl Distribution<Transform> for Standard
impl Distribution<Transform> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Transform
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Transform
Generate a random value of
T
, using rng
as the source of randomness.source§impl PartialEq for Transform
impl PartialEq for Transform
source§impl ToBytes for Transform
impl ToBytes for Transform
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for Transform
impl StructuralEq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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