-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
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
Add Plutus minting script doc #2883
Conversation
5c10440
to
a12d31f
Compare
a12d31f
to
898ef88
Compare
b8055c4
to
c374b81
Compare
c374b81
to
14a13e7
Compare
--mint-script-file "scripts/plutus/scripts/anyone-can-mint.plutus" \ | ||
--mint-redeemer-file "scripts/plutus/data/42.redeemer" \ | ||
--mint-execution-units "($plutusrequiredspace, $plutusrequiredtime)" \ | ||
--tx-out "$dummyaddress+$spendable + 5 2dce00a8d52ccd0c53be5165dd7a7e8e1d08d87f05f8f91047ca5d0b.4D696C6C6172436F696E0A" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth explaining the format used here policyId.assetName
or refer to https://github.com/input-output-hk/cardano-documentation/blob/master/content/07-native-tokens/03-getting-started.mdx#understanding-values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^ page not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0612a5d
to
ee8c24c
Compare
|
||
You can find an example redeemer at: `scripts/plutus/data/42.redeemer` | ||
|
||
For more information regarding `tx-in-collateral` and `mint-execution-units` see [here](plutus-spending-script-example.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see plutus-spending-script-example.md
contains no meaningful information about either those. It does use tx-in-execution-units
and explains
$plutusrequiredtime
and$plutusrequiredspace
- These make up the Plutus script execution budget and are part of the$txfee
but gives no information how to calculate them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we have the --calculate-plutus-script-cost
flag in the build
command that will output the script cost. I'll add this to the docs. Outside of this I believe its a guessing game.
For more information regarding `tx-in-collateral` and `mint-execution-units` see [here](plutus-spending-script-example.md). | ||
|
||
```bash | ||
cardano-cli transaction build-raw \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for preferring build-raw
to build
here? Is it to make the fees more explicit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think build
did not exist at the time
ee8c24c
to
7df9ae3
Compare
e8c46b7
to
a2ada5a
Compare
a2ada5a
to
c054d46
Compare
No description provided.