@@ -565,93 +565,6 @@ mod tests {
565
565
}
566
566
} ) ;
567
567
568
- /// This Campaign has a token from the GANACHE_1 chain instead of the GANACHE_1337 one like the others
569
- static CAMPAIGN_3 : Lazy < Campaign > = Lazy :: new ( || {
570
- use chrono:: TimeZone ;
571
- use primitives:: {
572
- campaign:: { Active , Pricing , Validators } ,
573
- targeting:: Rules ,
574
- validator:: ValidatorDesc ,
575
- EventSubmission ,
576
- } ;
577
-
578
- let channel = Channel {
579
- leader : VALIDATORS [ & LEADER ] . address . into ( ) ,
580
- follower : VALIDATORS [ & FOLLOWER ] . address . into ( ) ,
581
- guardian : * GUARDIAN_2 ,
582
- token : SNAPSHOT_CONTRACTS_1 . token . info . address ,
583
- nonce : 1_u64 . into ( ) ,
584
- } ;
585
-
586
- let leader_desc = ValidatorDesc {
587
- id : VALIDATORS [ & LEADER ] . address . into ( ) ,
588
- url : VALIDATORS [ & LEADER ] . sentry_url . to_string ( ) ,
589
- // min_validator_fee for token: 0.000_010
590
- // fee per 1000 (pro mille) = 0.00003000 (UnifiedNum)
591
- // fee per 1 payout: payout * fee / 1000 = payout * 0.00000003
592
- fee : 3_000 . into ( ) ,
593
- fee_addr : None ,
594
- } ;
595
-
596
- let follower_desc = ValidatorDesc {
597
- id : VALIDATORS [ & FOLLOWER ] . address . into ( ) ,
598
- url : VALIDATORS [ & FOLLOWER ] . sentry_url . to_string ( ) ,
599
- // min_validator_fee for token: 0.000_010
600
- // fee per 1000 (pro mille) = 0.00002000 (UnifiedNum)
601
- // fee per 1 payout: payout * fee / 1000 = payout * 0.00000002
602
- fee : 2_000 . into ( ) ,
603
- fee_addr : None ,
604
- } ;
605
-
606
- let validators = Validators :: new ( ( leader_desc, follower_desc) ) ;
607
-
608
- Campaign {
609
- id : "0xa78f3492481b41a688488a7aa1ff17df"
610
- . parse ( )
611
- . expect ( "Should parse" ) ,
612
- channel,
613
- creator : * ADVERTISER ,
614
- // 20.00000000
615
- budget : UnifiedNum :: from ( 2_000_000_000 ) ,
616
- validators,
617
- title : Some ( "Dummy Campaign in Chain #1" . to_string ( ) ) ,
618
- pricing_bounds : vec ! [
619
- (
620
- IMPRESSION ,
621
- Pricing {
622
- // 0.00003000
623
- // Per 1000 = 0.03000000
624
- min: 3_000 . into( ) ,
625
- // 0.00005000
626
- // Per 1000 = 0.05000000
627
- max: 5_000 . into( ) ,
628
- } ,
629
- ) ,
630
- (
631
- CLICK ,
632
- Pricing {
633
- // 0.00006000
634
- // Per 1000 = 0.06000000
635
- min: 6_000 . into( ) ,
636
- // 0.00010000
637
- // Per 1000 = 0.10000000
638
- max: 10_000 . into( ) ,
639
- } ,
640
- ) ,
641
- ]
642
- . into_iter ( )
643
- . collect ( ) ,
644
- event_submission : Some ( EventSubmission { allow : vec ! [ ] } ) ,
645
- ad_units : vec ! [ DUMMY_AD_UNITS [ 0 ] . clone( ) , DUMMY_AD_UNITS [ 1 ] . clone( ) ] ,
646
- targeting_rules : Rules :: new ( ) ,
647
- created : Utc . ymd ( 2021 , 2 , 1 ) . and_hms ( 7 , 0 , 0 ) ,
648
- active : Active {
649
- to : Utc . ymd ( 2099 , 1 , 30 ) . and_hms ( 0 , 0 , 0 ) ,
650
- from : None ,
651
- } ,
652
- }
653
- } ) ;
654
-
655
568
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 4 ) ]
656
569
// #[ignore = "for now"]
657
570
async fn run_full_test ( ) {
0 commit comments