-
Notifications
You must be signed in to change notification settings - Fork 15
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 --current-treasury-value and --treasury-donation to transaction build and friends #778
Conversation
de41efe
to
53f5350
Compare
110e911
to
7a16057
Compare
7a16057
to
528f47e
Compare
528f47e
to
2096e19
Compare
2096e19
to
b2b9781
Compare
@@ -735,14 +751,18 @@ runTxBuild :: () | |||
-> Maybe Word | |||
-> [(VotingProcedures era, Maybe (ScriptWitness WitCtxStake era))] | |||
-> [(Proposal era, Maybe (ScriptWitness WitCtxStake era))] | |||
-> Maybe TxCurrentTreasuryValue |
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 are already querying the node state in transaction build
command. What we should do is modify queryStateForBalancedTx
to return the currency treasury value and this will allow us to avoid exposing a cli argument for the current treasury value.
build-raw
will still need the argument however (as you've already done 👍 ).
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.
@Jimbo4350> OK I see, will do 👍
b2b9781
to
6762dbd
Compare
Putting draft until the required change in |
e6bda53
to
66ad2c5
Compare
…uilding functions
66ad2c5
to
1d055c5
Compare
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.
LGTM!
@@ -126,6 +128,7 @@ data TransactionBuildCmdArgs era = TransactionBuildCmdArgs | |||
, mUpdateProposalFile :: !(Maybe (Featured ShelleyToBabbageEra era (Maybe UpdateProposalFile))) | |||
, voteFiles :: ![(VoteFile In, Maybe (ScriptWitnessFiles WitCtxStake))] | |||
, proposalFiles :: ![(ProposalFile In, Maybe (ScriptWitnessFiles WitCtxStake))] | |||
, treasuryDonation :: !(Maybe TxTreasuryDonation) |
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.
👍
txUpdateProposal mOverrideWits votingProcedures proposals _outputOptions = shelleyBasedEraConstraints sbe $ do | ||
txUpdateProposal mOverrideWits votingProcedures proposals | ||
mCurrentTreasuryValue mTreasuryDonation | ||
_outputOptions = shelleyBasedEraConstraints sbe $ do |
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.
Separately, can you investigate why we ignore _outputOptions
?
Changelog
Context
Fixes #590
How to trust this PR
We tested this new feature in
cardano-testnet
in thiscardano-node
PR: IntersectMBO/cardano-node#5866Checklist
CurrentTreasuryValue
type from API instead of introducing a new one (see how API PR is received)