@@ -244,29 +244,30 @@ pub struct BaseCallFilter;
244
244
impl Contains < RuntimeCall > for BaseCallFilter {
245
245
fn contains ( c : & RuntimeCall ) -> bool {
246
246
match c {
247
- RuntimeCall :: Funding ( call) =>
247
+ RuntimeCall :: Funding ( call) => {
248
248
if cfg ! ( feature = "development-settings" ) {
249
249
true
250
250
} else {
251
251
matches ! (
252
252
call,
253
- pallet_funding:: Call :: create_project { .. } |
254
- pallet_funding:: Call :: remove_project { .. } |
255
- pallet_funding:: Call :: edit_project { .. } |
256
- pallet_funding:: Call :: start_evaluation { .. } |
257
- pallet_funding:: Call :: evaluate { .. } |
258
- pallet_funding:: Call :: end_evaluation { .. } |
259
- pallet_funding:: Call :: bid { .. } |
260
- pallet_funding:: Call :: end_funding { .. } |
261
- pallet_funding:: Call :: start_settlement { .. } |
262
- pallet_funding:: Call :: settle_evaluation { .. } |
263
- pallet_funding:: Call :: settle_bid { .. } |
264
- pallet_funding:: Call :: mark_project_as_settled { .. } |
265
- pallet_funding:: Call :: start_offchain_migration { .. } |
266
- pallet_funding:: Call :: confirm_offchain_migration { .. } |
267
- pallet_funding:: Call :: mark_project_ct_migration_as_finished { .. }
253
+ pallet_funding:: Call :: create_project { .. }
254
+ | pallet_funding:: Call :: remove_project { .. }
255
+ | pallet_funding:: Call :: edit_project { .. }
256
+ | pallet_funding:: Call :: start_evaluation { .. }
257
+ | pallet_funding:: Call :: evaluate { .. }
258
+ | pallet_funding:: Call :: end_evaluation { .. }
259
+ | pallet_funding:: Call :: bid { .. }
260
+ | pallet_funding:: Call :: end_funding { .. }
261
+ | pallet_funding:: Call :: start_settlement { .. }
262
+ | pallet_funding:: Call :: settle_evaluation { .. }
263
+ | pallet_funding:: Call :: settle_bid { .. }
264
+ | pallet_funding:: Call :: mark_project_as_settled { .. }
265
+ | pallet_funding:: Call :: start_offchain_migration { .. }
266
+ | pallet_funding:: Call :: confirm_offchain_migration { .. }
267
+ | pallet_funding:: Call :: mark_project_ct_migration_as_finished { .. }
268
268
)
269
- } ,
269
+ }
270
+ } ,
270
271
_ => true ,
271
272
}
272
273
}
@@ -300,19 +301,20 @@ impl InstanceFilter<RuntimeCall> for Type {
300
301
) ,
301
302
proxy:: Type :: Governance => matches ! (
302
303
c,
303
- RuntimeCall :: Treasury ( ..) |
304
- RuntimeCall :: Democracy ( ..) |
305
- RuntimeCall :: Council ( ..) |
306
- RuntimeCall :: TechnicalCommittee ( ..) |
307
- RuntimeCall :: Elections ( ..) |
308
- RuntimeCall :: Preimage ( ..) |
309
- RuntimeCall :: Scheduler ( ..)
304
+ RuntimeCall :: Treasury ( ..)
305
+ | RuntimeCall :: Democracy ( ..)
306
+ | RuntimeCall :: Council ( ..)
307
+ | RuntimeCall :: TechnicalCommittee ( ..)
308
+ | RuntimeCall :: Elections ( ..)
309
+ | RuntimeCall :: Preimage ( ..)
310
+ | RuntimeCall :: Scheduler ( ..)
310
311
) ,
311
312
proxy:: Type :: Staking => {
312
313
matches ! ( c, RuntimeCall :: ParachainStaking ( ..) )
313
314
} ,
314
- proxy:: Type :: IdentityJudgement =>
315
- matches ! ( c, RuntimeCall :: Identity ( pallet_identity:: Call :: provide_judgement { .. } ) ) ,
315
+ proxy:: Type :: IdentityJudgement => {
316
+ matches ! ( c, RuntimeCall :: Identity ( pallet_identity:: Call :: provide_judgement { .. } ) )
317
+ } ,
316
318
}
317
319
}
318
320
@@ -1502,6 +1504,15 @@ impl_runtime_apis! {
1502
1504
fn contribution_tokens( account: AccountId ) -> Vec <( ProjectId , Balance ) > {
1503
1505
Funding :: contribution_tokens( account)
1504
1506
}
1507
+
1508
+ fn evaluations_of( account: AccountId , project_id: Option <ProjectId >) -> Vec <EvaluationInfoOf <Runtime >> {
1509
+ Funding :: evaluations_of( account, project_id)
1510
+ }
1511
+
1512
+
1513
+ fn participations_of( account: AccountId , project_id: Option <ProjectId >) -> Vec <BidInfoOf <Runtime >> {
1514
+ Funding :: participations_of( account, project_id)
1515
+ }
1505
1516
}
1506
1517
1507
1518
impl pallet_funding:: functions:: runtime_api:: ProjectInformation <Block , Runtime > for Runtime {
0 commit comments