We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MintValue
We want to add a data-backed version of MintValue, since MintValue is a field of the TxInfo from the Plutus V3 ScriptContext.
In Plutus Tx, a type is data-backed if it is representationally equivalent to BuiltinData. For more info see https://plutus.cardano.intersectmbo.org/docs/working-with-scripts/optimizing-scripts-with-asData, specifically the section on ScriptContext.
BuiltinData
ScriptContext
Therefore, we need the following to be done:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We want to add a data-backed version of MintValue, since
MintValue
is a field of the TxInfo from the Plutus V3 ScriptContext.In Plutus Tx, a type is data-backed if it is representationally equivalent to
BuiltinData
. For more info see https://plutus.cardano.intersectmbo.org/docs/working-with-scripts/optimizing-scripts-with-asData, specifically the section onScriptContext
.Therefore, we need the following to be done:
MintValue
module in https://github.com/IntersectMBO/plutus/tree/master/plutus-ledger-api/src/PlutusLedgerApi/V3/Data. This module should introduce a data-backed version of theMintValue
type linked to above. See https://github.com/IntersectMBO/plutus/blob/master/plutus-ledger-api/src/PlutusLedgerApi/V1/Value.hs and https://github.com/IntersectMBO/plutus/blob/master/plutus-ledger-api/src/PlutusLedgerApi/V1/Data/Value.hs for a model of a regular type and its corresponding data-backed type. Add tests and test the functional equivalence between the two types.MintValue
, the data-backed version of the API should use the new data-backedMintValue
.The text was updated successfully, but these errors were encountered: