@@ -292,6 +292,7 @@ describe('Neutron / Chain Manager', () => {
292
292
} ) ;
293
293
294
294
test ( 'execute timelocked: success' , async ( ) => {
295
+ const cronParamsBefore = await cronQuerier . params ( ) ;
295
296
await waitSeconds ( 10 ) ;
296
297
297
298
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -302,6 +303,12 @@ describe('Neutron / Chain Manager', () => {
302
303
303
304
const cronParams = await cronQuerier . params ( ) ;
304
305
expect ( cronParams . params . limit ) . toEqual ( 42n ) ;
306
+ // check that every params field before proposal execution differs from the field after proposal execution
307
+ expect (
308
+ Object . keys ( cronParamsBefore ) . every (
309
+ ( key ) => cronParamsBefore [ key ] !== cronParams [ key ] ,
310
+ ) ,
311
+ ) . toBeTrue ( ) ;
305
312
} ) ;
306
313
} ) ;
307
314
@@ -336,6 +343,7 @@ describe('Neutron / Chain Manager', () => {
336
343
} ) ;
337
344
338
345
test ( 'execute timelocked: success' , async ( ) => {
346
+ const tokenfactoryParamsBefore = await tokenfactoryQuerier . params ( ) ;
339
347
await waitSeconds ( 10 ) ;
340
348
341
349
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -358,6 +366,12 @@ describe('Neutron / Chain Manager', () => {
358
366
denomCreator : 'neutron1m9l358xunhhwds0568za49mzhvuxx9ux8xafx2' ,
359
367
} ,
360
368
] ) ;
369
+ // check that every params field before proposal execution differs from the field after proposal execution
370
+ expect (
371
+ Object . keys ( tokenfactoryParamsBefore ) . every (
372
+ ( key ) => tokenfactoryParamsBefore [ key ] !== tokenfactoryParams [ key ] ,
373
+ ) ,
374
+ ) . toBeTrue ( ) ;
361
375
} ) ;
362
376
} ) ;
363
377
@@ -390,6 +404,7 @@ describe('Neutron / Chain Manager', () => {
390
404
} ) ;
391
405
392
406
test ( 'execute timelocked: success' , async ( ) => {
407
+ const dexParamsBefore = await dexQuerier . params ( ) ;
393
408
await waitSeconds ( 10 ) ;
394
409
395
410
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -403,6 +418,12 @@ describe('Neutron / Chain Manager', () => {
403
418
expect ( dexParams . params . paused ) . toEqual ( true ) ;
404
419
expect ( dexParams . params . maxJitsPerBlock ) . toEqual ( 11n ) ;
405
420
expect ( dexParams . params . goodTilPurgeAllowance ) . toEqual ( 50000n ) ;
421
+ // check that every params field before proposal execution differs from the field after proposal execution
422
+ expect (
423
+ Object . keys ( dexParamsBefore ) . every (
424
+ ( key ) => dexParamsBefore [ key ] !== dexParams [ key ] ,
425
+ ) ,
426
+ ) . toBeTrue ( ) ;
406
427
} ) ;
407
428
} ) ;
408
429
@@ -429,6 +450,7 @@ describe('Neutron / Chain Manager', () => {
429
450
} ) ;
430
451
431
452
test ( 'execute timelocked: success' , async ( ) => {
453
+ const dynamicfeesParamsBefore = await dynamicfeesQuerier . params ( ) ;
432
454
await waitSeconds ( 10 ) ;
433
455
434
456
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -441,6 +463,12 @@ describe('Neutron / Chain Manager', () => {
441
463
expect ( dynamicfeesParams . params . ntrnPrices ) . toEqual ( [
442
464
{ denom : 'newdenom' , amount : '0.5' } ,
443
465
] ) ;
466
+ // check that every params field before proposal execution differs from the field after proposal execution
467
+ expect (
468
+ Object . keys ( dynamicfeesParamsBefore ) . every (
469
+ ( key ) => dynamicfeesParamsBefore [ key ] !== dynamicfeesParams [ key ] ,
470
+ ) ,
471
+ ) . toBeTrue ( ) ;
444
472
} ) ;
445
473
} ) ;
446
474
@@ -469,6 +497,7 @@ describe('Neutron / Chain Manager', () => {
469
497
} ) ;
470
498
471
499
test ( 'execute timelocked: success' , async ( ) => {
500
+ const globalfeeParamsBefore = await globalfeeQuerier . params ( ) ;
472
501
await waitSeconds ( 10 ) ;
473
502
474
503
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -487,6 +516,12 @@ describe('Neutron / Chain Manager', () => {
487
516
expect ( globalfeeParams . params . maxTotalBypassMinFeeMsgGasUsage ) . toEqual (
488
517
12345n ,
489
518
) ;
519
+ // check that every params field before proposal execution differs from the field after proposal execution
520
+ expect (
521
+ Object . keys ( globalfeeParamsBefore ) . every (
522
+ ( key ) => globalfeeParamsBefore [ key ] !== globalfeeParams [ key ] ,
523
+ ) ,
524
+ ) . toBeTrue ( ) ;
490
525
} ) ;
491
526
} ) ;
492
527
@@ -525,6 +560,7 @@ describe('Neutron / Chain Manager', () => {
525
560
} ) ;
526
561
527
562
test ( 'execute timelocked: success' , async ( ) => {
563
+ const ccvParamsBefore = await ccvQuerier . queryParams ( ) ;
528
564
await waitSeconds ( 10 ) ;
529
565
530
566
await subdaoMember1 . executeTimelockedProposal ( proposalId ) ;
@@ -568,6 +604,14 @@ describe('Neutron / Chain Manager', () => {
568
604
nanos : 0 ,
569
605
seconds : 43n ,
570
606
} ) ;
607
+ // field 'enabled' is readonly, and should not be changed, always equals true
608
+ delete ccvParamsBefore [ 'enabled' ] ;
609
+ // check that every params field before proposal execution differs from the field after proposal execution
610
+ expect (
611
+ Object . keys ( ccvParamsBefore ) . every (
612
+ ( key ) => ccvParamsBefore [ key ] !== ccvParams [ key ] ,
613
+ ) ,
614
+ ) . toBeTrue ( ) ;
571
615
} ) ;
572
616
} ) ;
573
617
0 commit comments