Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

App connectors: align subscription methods#240

Merged
bpierre merged 5 commits intomasterfrom
align-app-connector-methods
Aug 25, 2020
Merged

App connectors: align subscription methods#240
bpierre merged 5 commits intomasterfrom
align-app-connector-methods

Conversation

@bpierre
Copy link
Copy Markdown
Contributor

@bpierre bpierre commented Aug 25, 2020

This PR aligns the subscription methods with their async counterparts for the Finance, Voting and Tokens app connectors.

It is a breaking change.

Fixes an issue on the Tokens connector where onHolders() was using the
address of the app rather than the address of the token contract. Also
the method now accepts filters like its async counterpart.
The method now accepts filters like its async counterpart.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 25, 2020

Codecov Report

Merging #240 into master will increase coverage by 0.02%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   36.68%   36.70%   +0.02%     
==========================================
  Files         104      104              
  Lines        1922     1926       +4     
  Branches      304      306       +2     
==========================================
+ Hits          705      707       +2     
- Misses       1217     1219       +2     
Flag Coverage Δ
#unittests 36.70% <50.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/connect-finance/src/models/Finance.ts 5.55% <ø> (ø)
packages/connect-finance/src/thegraph/connector.ts 54.83% <0.00%> (ø)
packages/connect-tokens/src/thegraph/connector.ts 75.00% <ø> (ø)
packages/connect-voting/src/models/Vote.ts 85.71% <0.00%> (-4.29%) ⬇️
packages/connect-voting/src/models/Voting.ts 7.69% <ø> (ø)
packages/connect-voting/src/thegraph/connector.ts 54.83% <0.00%> (ø)
packages/connect-tokens/src/models/Tokens.ts 83.33% <77.77%> (-3.34%) ⬇️
packages/connect-tokens/src/connect.ts 92.85% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cabb5be...5e596ed. Read the comment docs.

@bpierre bpierre requested a review from 0xGabi August 25, 2020 15:20
Copy link
Copy Markdown
Contributor

@0xGabi 0xGabi left a comment

Choose a reason for hiding this comment

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

LGTM!

@bpierre bpierre merged commit 259cab7 into master Aug 25, 2020
@bpierre bpierre deleted the align-app-connector-methods branch August 25, 2020 22:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants