File tree Expand file tree Collapse file tree 6 files changed +50
-282
lines changed
round-manager/src/features/round Expand file tree Collapse file tree 6 files changed +50
-282
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { useEffect } from "react";
10
10
import { useDispatch , useSelector } from "react-redux" ;
11
11
import { Link } from "react-router-dom" ;
12
12
import { loadRound } from "../../actions/rounds" ;
13
- import { roundApplicationViewPath } from "../../routes" ;
14
13
import { ApplicationCardType , RoundSupport } from "../../types" ;
15
14
import {
16
15
formatDate ,
@@ -196,6 +195,9 @@ export default function ApplicationCard({
196
195
return null ;
197
196
}
198
197
198
+ const applicationViewLink = `https://beta.checker.gitcoin.co/view/application/
199
+ ${ applicationData . chainId } /${ applicationData . roundID } /${ applicationData . application . id } ` ;
200
+
199
201
return (
200
202
< Box
201
203
p = { 2 }
@@ -241,13 +243,7 @@ export default function ApplicationCard({
241
243
</ a >
242
244
</ p >
243
245
) }
244
- < Link
245
- to = { roundApplicationViewPath (
246
- applicationData . chainId . toString ( ) ,
247
- applicationData . roundID ,
248
- applicationData . application . metadataCid || ""
249
- ) }
250
- >
246
+ < Link to = { applicationViewLink } target = "_blank" >
251
247
< Button
252
248
backgroundColor = "purple.100"
253
249
color = "purple.600"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import NewProject from "./components/grants/New";
23
23
import Project from "./components/grants/Show" ;
24
24
import RoundApply from "./components/rounds/Apply" ;
25
25
import RoundShow from "./components/rounds/Show" ;
26
- import ViewApplication from "./components/rounds/ViewApplication" ;
27
26
import history from "./history" ;
28
27
import reportWebVitals from "./reportWebVitals" ;
29
28
import { slugs } from "./routes" ;
@@ -138,10 +137,6 @@ root.render(
138
137
path = { slugs . roundApplication }
139
138
element = { < RoundApply /> }
140
139
/>
141
- < Route
142
- path = { slugs . roundApplicationView }
143
- element = { < ViewApplication /> }
144
- />
145
140
< Route path = "*" element = { < PageNotFound /> } />
146
141
</ Routes >
147
142
</ Layout >
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export const slugs = {
6
6
newGrant : `/projects/new` ,
7
7
round : `/chains/:chainId/rounds/:roundId` ,
8
8
roundApplication : `/chains/:chainId/rounds/:roundId/apply` ,
9
- roundApplicationView : `/chains/:chainId/rounds/:roundId/view/:ipfsHash` ,
10
9
} ;
11
10
12
11
export const rootPath = ( ) => slugs . root ;
@@ -39,9 +38,3 @@ export const roundApplicationPathForProject = (
39
38
roundId : string ,
40
39
projectId : string
41
40
) => `/round/${ chainId } /${ roundId } /${ projectId } ` ;
42
-
43
- export const roundApplicationViewPath = (
44
- chainId : string ,
45
- roundId : string ,
46
- ipfsHash : string
47
- ) => `/chains/${ chainId } /rounds/${ roundId } /view/${ ipfsHash } ` ;
Original file line number Diff line number Diff line change @@ -630,6 +630,19 @@ export class AlloV2 implements Allo {
630
630
blockNumber : receipt . blockNumber ,
631
631
} ) ;
632
632
633
+ // sync pool with checker
634
+ await fetch ( "https://api.checker.gitcoin.co/api/pools" , {
635
+ method : "POST" ,
636
+ headers : {
637
+ "Content-Type" : "application/json" ,
638
+ } ,
639
+ body : JSON . stringify ( {
640
+ alloPoolId : parseInt ( poolCreatedEvent . poolId , 10 ) . toString ( ) ,
641
+ chainId : this . chainId ,
642
+ skipEvaluation : false ,
643
+ } ) ,
644
+ } ) ;
645
+
633
646
emit ( "indexingStatus" , success ( void 0 ) ) ;
634
647
635
648
return success ( {
@@ -749,6 +762,19 @@ export class AlloV2 implements Allo {
749
762
blockNumber : receipt . blockNumber ,
750
763
} ) ;
751
764
765
+ // sync pool with checker
766
+ await fetch ( "https://api.checker.gitcoin.co/api/pools" , {
767
+ method : "POST" ,
768
+ headers : {
769
+ "Content-Type" : "application/json" ,
770
+ } ,
771
+ body : JSON . stringify ( {
772
+ alloPoolId : args . roundId . toString ( ) ,
773
+ chainId : this . chainId ,
774
+ skipEvaluation : false ,
775
+ } ) ,
776
+ } ) ;
777
+
752
778
emit ( "indexingStatus" , success ( null ) ) ;
753
779
754
780
return success ( args . projectId ) ;
You can’t perform that action at this time.
0 commit comments