Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
PieWol committed May 13, 2024
1 parent a404193 commit 4b86bb9
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions evaluations/PoCS_2_PieWol.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Evaluation


- **Status:** in progress
- **Status:** accepted
- **Application Document:** https://github.com/w3f/Grants-Program/blob/master/applications/PoCS.md
- **Milestone:** 2
- **Previously successfully merged evaluation:** All evaluations by PieWol
Expand All @@ -10,47 +10,31 @@
**Milestone 2**
| Number | Deliverable | Accepted | Link | Evaluation Notes |
| ------ | ----------- | :------: | ---- |----------------- |
|0a.|License| <ul><li>[x] </li></ul> | [Apache 2.0](https://github.com/auguth/pocs/blob/master/LICENSE) | - |
|0a.|License| <ul><li>[x] </li></ul> | [Apache 2.0](https://github.com/auguth/pocs/blob/master/LICENSE) | ok |
|0b.|Documentation| <ul><li>[x] </li></ul> | [Pallet Contracts](https://auguth.github.io/pocs/target/doc/pallet_contracts/) , [Pallet Staking](https://auguth.github.io/pocs/target/doc/pallet_staking/) | okay |
|0c.|Testing Guide | <ul><li>[ ] </li></ul> | [Testing guide](https://github.com/auguth/pocs/blob/master/TESTING-GUIDE.md) | nice, changes were good. benchmarks are not passing.|
|0c.|Testing Guide | <ul><li>[x] </li></ul> | [Testing guide](https://github.com/auguth/pocs/blob/master/TESTING-GUIDE.md) | nice, changes were good.|
|0d.|Docker | <ul><li>[x] </li></ul> | [Dockerfile](https://github.com/auguth/pocs/blob/master/Dockerfile) , [Docker Compose](https://github.com/auguth/pocs/blob/master/docker-compose.yml) , [DockerImage Pull](https://github.com/auguth/pocs/blob/master/README.md#docker-pull)| docker works |
|0e.| Article | <ul><li>[x] </li></ul> | [Article (Draft)](https://github.com/auguth/pocs/blob/master/ARTICLE.md)| okay |
|1.| Modify pallet staking for PoCS |<ul><li>[ ] </li></ul> | [PoCS x NPoS (Milestone 2 - Core) PR#29](https://github.com/auguth/pocs/pull/29)| Thanks for changing to a minimum stake score. please check the benchmarks.|
|0e.| Article | <ul><li>[x] </li></ul> | [Article](https://medium.com/@auguthresearch/pocs-x-npos-d164688223fc)| ok|
|1.| Modify pallet staking for PoCS |<ul><li>[x] </li></ul> | [PoCS x NPoS (Milestone 2 - Core) PR#29](https://github.com/auguth/pocs/pull/29)| Thanks for changing to a minimum stake score.|

## General Notes
Thank you for the changes you have introduced. The article is now focussed on this very milestone.

There is still a lot of warnings emitted on compilation which are really easy to fix.

## Tests pallet-staking
All regular tests are passing. Runtime benchmarks are throwing some errors.
## Testing
Great simplification of the testing guide!

<details>
benchmarks are now passing.

error[E0046]: not all trait items implemented, missing: `score_update_worst_case`
--> /root/pocs/pallets/staking/src/pallet/impls.rs:1429:1
|
1429 | impl<T: Config> SortedListProvider<T::AccountId> for UseValidatorsMap<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `score_update_worst_case` in implementation
|
= help: implement the missing item: `fn score_update_worst_case(_: &<T as frame_system::Config>::AccountId, _: bool) -> <Self as frame_election_provider_support::SortedListProvider<<T as frame_system::Config>::AccountId>>::Score { todo!() }`
```
test result: ok. 312 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 239.33s
test result: ok. 160 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.12s
```

error[E0046]: not all trait items implemented, missing: `score_update_worst_case`
--> /root/pocs/pallets/staking/src/pallet/impls.rs:1495:1
|
1495 | impl<T: Config> SortedListProvider<T::AccountId> for UseNominatorsAndValidatorsMap<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `score_update_worst_case` in implementation
|
= help: implement the missing item: `fn score_update_worst_case(_: &<T as frame_system::Config>::AccountId, _: bool) -> <Self as frame_election_provider_support::SortedListProvider<<T as frame_system::Config>::AccountId>>::Score { todo!() }`

For more information about this error, try `rustc --explain E0046`.
warning: `pallet-staking` (lib) generated 1 warning
error: could not compile `pallet-staking` (lib) due to 2 previous errors; 1 warning emitted
</details>


## Testing Guide
Great simplification of the testing guide!



Expand Down

0 comments on commit 4b86bb9

Please sign in to comment.