Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregator service #71

Merged
merged 15 commits into from
May 2, 2023
Merged

Aggregator service #71

merged 15 commits into from
May 2, 2023

Conversation

aasseman
Copy link
Contributor

No description provided.

Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
Copy link
Contributor

@ColePBryan ColePBryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! Just some minor tweaks and pedantic comments. I think I found some comments for my own code while reviewing this, so there might be a little hypocrisy to this review. 😬

tap_aggregator/Cargo.toml Outdated Show resolved Hide resolved
tap_aggregator/Cargo.toml Outdated Show resolved Hide resolved
tap_aggregator/src/aggregator.rs Outdated Show resolved Hide resolved
tap_aggregator/src/aggregator.rs Show resolved Hide resolved
tap_aggregator/src/server.rs Show resolved Hide resolved
tap_aggregator/src/aggregator.rs Outdated Show resolved Hide resolved
tap_aggregator/src/aggregator.rs Outdated Show resolved Hide resolved
tap_aggregator/src/aggregator.rs Outdated Show resolved Hide resolved
tap_aggregator/src/main.rs Show resolved Hide resolved
tap_aggregator/src/server.rs Show resolved Hide resolved
@aasseman aasseman force-pushed the aggregator_service branch from fa72dbd to cd65c7d Compare May 1, 2023 20:54
@aasseman
Copy link
Contributor Author

aasseman commented May 2, 2023

I added a verify() to EIP712SignedMessage:
e389d5c a7e3e7d

@aasseman aasseman force-pushed the aggregator_service branch from 2e73e25 to a7e3e7d Compare May 2, 2023 00:39
@github-actions
Copy link

github-actions bot commented May 2, 2023

Coverage after merging aggregator_service into main will be

83.55%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
tap_aggregator/src
   aggregator.rs85.84%100%100%82.98%23–26, 33–36, 47–50, 60–63
   main.rs5.56%100%11.11%3.70%13–15, 17, 21–22, 25–27, 30, 33–38, 41–45, 47, 9
   server.rs90.48%100%100%87.50%48–52, 65
tap_core/src
   eip_712_signed_message.rs83.78%100%80%85.19%56
   lib.rs87.50%100%87.50%87.50%17
   receipt_aggregate_voucher.rs92.11%100%85.71%93.55%21
tap_core/src/adapters/test
   collateral_adapter_mock.rs82.98%100%71.43%85%25–26, 44, 50–52
   collateral_adapter_test.rs100%100%100%100%
   rav_storage_adapter_mock.rs94.74%100%83.33%96.88%7
   rav_storage_adapter_test.rs100%100%100%100%
   receipt_checks_adapter_mock.rs87.18%100%83.33%87.88%49, 53–55
   receipt_checks_adapter_test.rs95.83%100%100%95%53
   receipt_storage_adapter_mock.rs97.37%100%92.31%98.41%7
   receipt_storage_adapter_test.rs100%100%100%100%
tap_core/src/tap_receipt
   mod.rs66.67%100%50%75%
   receipt.rs79.41%100%77.78%80%20, 44
   received_receipt.rs82.42%100%75.86%83.82%100–102, 109–111, 113–115, 160, 171, 185–187, 95–97

@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
@semiotic-ai semiotic-ai deleted a comment from github-actions bot May 2, 2023
Emitting ethers_core::types::SignatureError::VerificationError instead
of tap_core::Error::InvalidCheckError during signature checks.

Signed-off-by: Alexis Asseman <[email protected]>
@github-actions
Copy link

github-actions bot commented May 2, 2023

Coverage after merging aggregator_service into main will be

84.67%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
tap_aggregator/src
   aggregator.rs92.45%100%100%90.70%37–40, 50–53
   main.rs5.56%100%11.11%3.70%13–15, 17, 21–22, 25–27, 30, 33–38, 41–45, 47, 9
   server.rs90.48%100%100%87.50%48–52, 65
tap_core/src
   eip_712_signed_message.rs83.78%100%80%85.19%56
   lib.rs87.50%100%87.50%87.50%17
   receipt_aggregate_voucher.rs92.11%100%85.71%93.55%21
tap_core/src/adapters/test
   collateral_adapter_mock.rs82.98%100%71.43%85%25–26, 44, 50–52
   collateral_adapter_test.rs100%100%100%100%
   rav_storage_adapter_mock.rs94.74%100%83.33%96.88%7
   rav_storage_adapter_test.rs100%100%100%100%
   receipt_checks_adapter_mock.rs87.18%100%83.33%87.88%49, 53–55
   receipt_checks_adapter_test.rs95.83%100%100%95%53
   receipt_storage_adapter_mock.rs97.37%100%92.31%98.41%7
   receipt_storage_adapter_test.rs100%100%100%100%
tap_core/src/tap_receipt
   mod.rs66.67%100%50%75%
   receipt.rs79.41%100%77.78%80%20, 44
   received_receipt.rs82.42%100%75.86%83.82%100–102, 109–111, 113–115, 160, 171, 185–187, 95–97

@github-actions
Copy link

github-actions bot commented May 2, 2023

Coverage after merging aggregator_service into main will be

84.69%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
tap_aggregator/src
   aggregator.rs92.45%100%100%90.70%40–43, 53–56
   main.rs5.56%100%11.11%3.70%12, 16–18, 20, 24–25, 28–30, 33, 36–41, 44–48, 50
   server.rs90.63%100%100%87.76%51–55, 68
tap_core/src
   eip_712_signed_message.rs83.78%100%80%85.19%56
   lib.rs87.50%100%87.50%87.50%17
   receipt_aggregate_voucher.rs92.11%100%85.71%93.55%21
tap_core/src/adapters/test
   collateral_adapter_mock.rs82.98%100%71.43%85%25–26, 44, 50–52
   collateral_adapter_test.rs100%100%100%100%
   rav_storage_adapter_mock.rs94.74%100%83.33%96.88%7
   rav_storage_adapter_test.rs100%100%100%100%
   receipt_checks_adapter_mock.rs87.18%100%83.33%87.88%49, 53–55
   receipt_checks_adapter_test.rs95.83%100%100%95%53
   receipt_storage_adapter_mock.rs97.37%100%92.31%98.41%7
   receipt_storage_adapter_test.rs100%100%100%100%
tap_core/src/tap_receipt
   mod.rs66.67%100%50%75%
   receipt.rs79.41%100%77.78%80%20, 44
   received_receipt.rs82.42%100%75.86%83.82%100–102, 109–111, 113–115, 160, 171, 185–187, 95–97

@aasseman aasseman marked this pull request as ready for review May 2, 2023 19:04
@aasseman aasseman merged commit c83fcec into main May 2, 2023
@aasseman aasseman deleted the aggregator_service branch May 2, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants