plutus_ledger_api::csl::pla_to_csl

Trait TryFromPLA

Source
pub trait TryFromPLA<T> {
    // Required method
    fn try_from_pla(val: &T) -> Result<Self, TryFromPLAError>
       where Self: Sized;
}
Expand description

Convert a plutus-ledger-api type to its cardano-serialization-lib counterpart try_to_csl_with accepts extra data where the PLA data itself is not enough

Required Methods§

Source

fn try_from_pla(val: &T) -> Result<Self, TryFromPLAError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl TryFromPLA<PlutusData> for PlutusData

Source§

impl TryFromPLA<Credential> for Credential

Source§

impl TryFromPLA<StakingCredential> for Credential

Source§

impl TryFromPLA<OutputDatum> for Option<OutputDatum>

Source§

fn try_from_pla( pla_output_datum: &OutputDatum, ) -> Result<Option<OutputDatum>, TryFromPLAError>

Source§

impl TryFromPLA<i64> for Int

Source§

impl TryFromPLA<u64> for BigNum

Source§

impl TryFromPLA<AddressWithExtraInfo<'_>> for Address

Source§

impl TryFromPLA<CertificateIndex> for BigNum

Source§

impl TryFromPLA<ChainPointer> for Pointer

Source§

impl TryFromPLA<RewardAddressWithExtraInfo<'_>> for RewardAddress

Source§

impl TryFromPLA<Slot> for BigNum

Source§

impl TryFromPLA<TransactionIndex> for BigNum

Source§

impl TryFromPLA<Ed25519PubKeyHash> for Ed25519KeyHash

Source§

impl TryFromPLA<Datum> for PlutusData

Source§

impl TryFromPLA<DatumHash> for DataHash

Source§

impl TryFromPLA<RedeemerWithExtraInfo<'_>> for Redeemer

Source§

impl TryFromPLA<MintingPolicyHash> for PolicyID

Source§

impl TryFromPLA<ScriptHash> for ScriptHash

Source§

impl TryFromPLA<TransactionHash> for TransactionHash

Source§

impl TryFromPLA<TransactionInput> for TransactionInput

Source§

impl TryFromPLA<TokenName> for AssetName

Source§

impl TryFromPLA<Value> for Value

Source§

impl TryFromPLA<TransactionOutputWithExtraInfo<'_>> for TransactionOutput

Source§

impl TryFromPLA<WithdrawalsWithExtraInfo<'_>> for Withdrawals

Source§

impl TryFromPLA<TransactionHash> for TransactionHash

Source§

impl TryFromPLA<TransactionInput> for TransactionInput

Source§

impl TryFromPLA<BTreeMap<TokenName, BigInt>> for Assets

Source§

impl TryFromPLA<BTreeMap<TokenName, BigInt>> for MintAssets

Source§

impl TryFromPLA<Vec<(PlutusData, PlutusData)>> for PlutusMap

Source§

impl TryFromPLA<Vec<PlutusData>> for PlutusList

Source§

impl TryFromPLA<Vec<TransactionInput>> for TransactionInputs

Source§

impl TryFromPLA<Vec<TransactionInput>> for TransactionInputs

Source§

impl TryFromPLA<BigInt> for u32

Source§

impl TryFromPLA<BigInt> for BigInt

Source§

impl TryFromPLA<BigInt> for BigNum

Source§

impl TryFromPLA<BigInt> for Int

Implementors§