In the Plutus library, AssetId
is defined in module Cardano.Api.Value
as
data AssetId = AdaAssetId | AssetId !PolicyId !AssetName
while AssetClass
is defined in module Plutus.V1.Ledger.Value
as
newtype AssetClass = AssetClass { unAssetClass :: (CurrencySymbol, TokenName) }
, as of the time of writing this question.
Does AssetId
and AssetClass
have any difference in its meaning. What is the purpose of having two definitions?