shieldProposalFixture function
SendProposal
shieldProposalFixture({})
A neutral SHIELD SendProposal for Recv-3 tests — isShield == true, NO
transparent recipient (privacy-positive), gross/fee/net consistent
(changeZat == totalZat - feeZat), the lone output in the shielded pool.
Implementation
SendProposal shieldProposalFixture({
int proposalId = 42,
int totalZat = 500000, // gross transparent being shielded
int feeZat = 15000,
}) {
final netShielded = totalZat - feeZat;
return sendProposalFixture(
proposalId: proposalId,
totalZat: totalZat,
feeZat: feeZat,
changeZat: netShielded,
isShield: true,
steps: [
ProposalStep(
recipients: [
ProposalRecipient(pool: OutputPool.orchard, amountZat: netShielded),
],
),
],
);
}