File tree Expand file tree Collapse file tree 8 files changed +50
-7
lines changed Expand file tree Collapse file tree 8 files changed +50
-7
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ export const loadRound =
93
93
roundEndTime = Date . parse ( v2Round . applicationsEndTime ) / 1000 ;
94
94
break ;
95
95
96
+ case "allov2.EasyRetroFundingStrategy" :
97
+ roundPayoutStrategy = RoundCategory . Retrofunding ;
98
+ applicationsStartTime =
99
+ Date . parse ( v2Round . applicationsStartTime ) / 1000 ;
100
+ applicationsEndTime =
101
+ Date . parse ( v2Round . applicationsEndTime ) / 1000 ;
102
+ roundStartTime = Date . parse ( v2Round . applicationsStartTime ) / 1000 ;
103
+ roundEndTime = Date . parse ( v2Round . applicationsEndTime ) / 1000 ;
104
+ break ;
105
+
96
106
case "allov1.QF" :
97
107
case "allov2.DonationVotingMerkleDistributionDirectTransferStrategy" :
98
108
default :
Original file line number Diff line number Diff line change @@ -97,6 +97,11 @@ export default function RoundListItem({
97
97
Direct Grant
98
98
</ span >
99
99
) : null }
100
+ { roundPayoutStrategy === RoundCategory . Retrofunding ? (
101
+ < span className = { `text-${ colorScheme ?. text } text-sm` } >
102
+ Retrofunding
103
+ </ span >
104
+ ) : null }
100
105
</ Badge >
101
106
</ span >
102
107
) ;
Original file line number Diff line number Diff line change 16
16
"test:watch" : " vitest watch"
17
17
},
18
18
"dependencies" : {
19
- "@allo-team/allo-v2-sdk" : " 1.0.79 " ,
19
+ "@allo-team/allo-v2-sdk" : " 1.1.1 " ,
20
20
"@ethersproject/abstract-signer" : " ^5.7.0" ,
21
21
"@ethersproject/providers" : " ^5.7.2" ,
22
22
"@gitcoin/gitcoin-chain-data" : " ^1.0.43" ,
Original file line number Diff line number Diff line change 8
8
DonationVotingMerkleDistributionDirectTransferStrategyAbi ,
9
9
DonationVotingMerkleDistributionStrategy ,
10
10
DonationVotingMerkleDistributionStrategyTypes ,
11
+ EasyRetroFundingStrategy ,
11
12
Registry ,
12
13
RegistryAbi ,
13
14
StrategyFactory ,
@@ -730,6 +731,23 @@ export class AlloV2 implements Allo {
730
731
break ;
731
732
}
732
733
734
+ case RoundCategory . Retrofunding : {
735
+ const strategyInstance = new EasyRetroFundingStrategy ( {
736
+ chain : this . chainId ,
737
+ poolId : BigInt ( args . roundId ) ,
738
+ } ) ;
739
+
740
+ registerRecipientTx = strategyInstance . getRegisterRecipientData ( {
741
+ registryAnchor : args . projectId ,
742
+ recipientAddress : metadata . application . recipient ,
743
+ metadata : {
744
+ protocol : 1n ,
745
+ pointer : ipfsResult . value ,
746
+ } ,
747
+ } ) ;
748
+ break ;
749
+ }
750
+
733
751
default :
734
752
throw new AlloError ( "Unsupported strategy" ) ;
735
753
}
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ export type RoundPayoutTypeNew =
350
350
| "allov2.DirectAllocationStrategy"
351
351
| "" ; // This is to handle the cases where the strategyName is not set in a round, mostly spam rounds
352
352
353
- export type RoundStrategyType = "QuadraticFunding" | "DirectGrants" ;
353
+ export type RoundStrategyType = "QuadraticFunding" | "DirectGrants" | "Retrofunding" ;
354
354
355
355
export function getRoundStrategyTitle ( name : string ) {
356
356
switch ( getRoundStrategyType ( name ) ) {
@@ -359,6 +359,9 @@ export function getRoundStrategyTitle(name: string) {
359
359
360
360
case "QuadraticFunding" :
361
361
return "Quadratic Funding" ;
362
+
363
+ case "Retrofunding" :
364
+ return "Retro Funding" ;
362
365
}
363
366
}
364
367
@@ -375,6 +378,9 @@ export function getRoundStrategyType(name: string): RoundStrategyType {
375
378
case "allov2.DonationVotingMerkleDistributionDirectTransferStrategy" :
376
379
return "QuadraticFunding" ;
377
380
381
+ case "allov2.EasyRetroFundingStrategy" :
382
+ return "Retrofunding" ;
383
+
378
384
default :
379
385
throw new Error ( `Unknown round strategy type: ${ name } ` ) ;
380
386
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export type RoundVisibilityType = "public" | "private";
18
18
export enum RoundCategory {
19
19
QuadraticFunding ,
20
20
Direct ,
21
+ Retrofunding ,
21
22
}
22
23
23
24
export type ApplicationStatus =
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ export const strategyNameToCategory = (
42
42
case "allov2.DirectGrantsLiteStrategy" :
43
43
return RoundCategory . Direct ;
44
44
45
+ case "allov2.EasyRetroFundingStrategy" :
46
+ return RoundCategory . Retrofunding ;
47
+
45
48
case "allov1.QF" :
46
49
case "allov2.DonationVotingMerkleDistributionDirectTransferStrategy" :
47
50
return RoundCategory . QuadraticFunding ;
You can’t perform that action at this time.
0 commit comments