@@ -147,6 +147,39 @@ describe('receipt presentation', () => {
147147 ) . toBe ( '$6' )
148148 } )
149149
150+ test ( 'hides side amounts for private Zone activity' , ( ) => {
151+ const amount = { token, value : 5_000n , decimals : 6 }
152+ const privateDeposit : KnownEvent = {
153+ type : 'private-assets-deposited' ,
154+ parts : [
155+ { type : 'action' , value : 'Private Zone Deposit' } ,
156+ { type : 'amount' , value : amount } ,
157+ ] ,
158+ }
159+ const privateWithdrawal : KnownEvent = {
160+ type : 'private-shares-redeemed' ,
161+ parts : [
162+ { type : 'action' , value : 'Private Zone Withdrawal' } ,
163+ { type : 'amount' , value : amount } ,
164+ ] ,
165+ totalAmount : { ...amount , value : 10_000n } ,
166+ }
167+ const publicWithdrawal : KnownEvent = {
168+ ...privateWithdrawal ,
169+ parts : [
170+ { type : 'action' , value : 'Withdraw from Zone 1' } ,
171+ { type : 'amount' , value : amount } ,
172+ ] ,
173+ }
174+
175+ expect ( getReceiptEventSideAmount ( privateDeposit ) ) . toBeUndefined ( )
176+ expect ( getReceiptEventSideAmount ( privateWithdrawal ) ) . toBeUndefined ( )
177+ expect ( getReceiptEventSideAmount ( publicWithdrawal ) ) . toEqual ( {
178+ ...amount ,
179+ value : 10_000n ,
180+ } )
181+ } )
182+
150183 test ( 'derives regular totals from the same visible token flows' , ( ) => {
151184 const presentation = build ( [
152185 {
0 commit comments