@@ -285,7 +285,7 @@ describe('Listener', () => {
285
285
) ;
286
286
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
287
287
const hash = 'abc' ;
288
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
288
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
289
289
290
290
const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMultisigMock , multisigRepo ) ;
291
291
listener . open ( ) ;
@@ -315,7 +315,7 @@ describe('Listener', () => {
315
315
) ;
316
316
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
317
317
const hash = 'abc' ;
318
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
318
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
319
319
320
320
const reportedTransactions : Transaction [ ] = [ ] ;
321
321
const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMockAlias ) ;
@@ -334,7 +334,10 @@ describe('Listener', () => {
334
334
listener . handleMessage (
335
335
{
336
336
topic : name . toString ( ) ,
337
- data : { meta : { height : '2' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
337
+ data : {
338
+ meta : { height : '2' , hash : 'new hash' , timestamp : '2' , feeMultiplier : 1 } ,
339
+ transaction : transferTransactionDTO . transaction ,
340
+ } ,
338
341
} ,
339
342
null ,
340
343
) ;
@@ -360,7 +363,7 @@ describe('Listener', () => {
360
363
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
361
364
const hash = 'abc' ;
362
365
const hash2 = 'abc2' ;
363
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
366
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
364
367
365
368
const reportedTransactions : Transaction [ ] = [ ] ;
366
369
const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMock ) ;
@@ -379,7 +382,10 @@ describe('Listener', () => {
379
382
listener . handleMessage (
380
383
{
381
384
topic : name . toString ( ) ,
382
- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
385
+ data : {
386
+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
387
+ transaction : transferTransactionDTO . transaction ,
388
+ } ,
383
389
} ,
384
390
null ,
385
391
) ;
@@ -399,7 +405,7 @@ describe('Listener', () => {
399
405
) ;
400
406
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
401
407
const hash = 'abc' ;
402
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
408
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
403
409
404
410
const reportedTransactions : Transaction [ ] = [ ] ;
405
411
const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMockAlias ) ;
@@ -418,7 +424,10 @@ describe('Listener', () => {
418
424
listener . handleMessage (
419
425
{
420
426
topic : name . toString ( ) ,
421
- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
427
+ data : {
428
+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
429
+ transaction : transferTransactionDTO . transaction ,
430
+ } ,
422
431
} ,
423
432
null ,
424
433
) ;
@@ -438,7 +447,7 @@ describe('Listener', () => {
438
447
) ;
439
448
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
440
449
const hash = 'abc' ;
441
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
450
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
442
451
443
452
const reportedTransactions : Transaction [ ] = [ ] ;
444
453
@@ -458,7 +467,10 @@ describe('Listener', () => {
458
467
listener . handleMessage (
459
468
{
460
469
topic : name . toString ( ) ,
461
- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
470
+ data : {
471
+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
472
+ transaction : transferTransactionDTO . transaction ,
473
+ } ,
462
474
} ,
463
475
null ,
464
476
) ;
@@ -487,7 +499,7 @@ describe('Listener', () => {
487
499
) ;
488
500
const transferTransactionDTO = transferTransaction . toJSON ( ) ;
489
501
const hash = 'abc' ;
490
- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
502
+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
491
503
492
504
const reportedTransactions : Transaction [ ] = [ ] ;
493
505
@@ -507,7 +519,10 @@ describe('Listener', () => {
507
519
listener . handleMessage (
508
520
{
509
521
topic : name . toString ( ) ,
510
- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
522
+ data : {
523
+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
524
+ transaction : transferTransactionDTO . transaction ,
525
+ } ,
511
526
} ,
512
527
null ,
513
528
) ;
0 commit comments