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

Api client extensions: SubstrateeRegistryApi + AcountApi + ChainApi #268

Merged
merged 14 commits into from
Jun 29, 2021

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Jun 8, 2021

Add api client extensions.

I introduced this now with the testing in mind while developing/testing the broadcasting of sidechain blocks.

Because: Having the node-api behind a trait allows introducing easily a MockApi that returns hard-coded answers.

Note: Merge #267 first.

@clangenb clangenb marked this pull request as draft June 8, 2021 11:07
@clangenb
Copy link
Contributor Author

clangenb commented Jun 8, 2021

Converted this to draft. I will also add ChainApi, which simply wraps some other api-client methods to mock them in tests.

@clangenb clangenb marked this pull request as ready for review June 8, 2021 13:34
@clangenb clangenb changed the title Api client extensions: SubstrateeRegistryApi + ApiClientExt Api client extensions: SubstrateeRegistryApi + AcountApi + ChainApi Jun 9, 2021
@clangenb clangenb force-pushed the api-client-extensions branch from 25e53f7 to ca8c4fb Compare June 23, 2021 13:05
@clangenb clangenb requested a review from brenzi June 23, 2021 14:10
This was referenced Jun 23, 2021
@clangenb
Copy link
Contributor Author

ready to merge

Copy link
Collaborator

@brenzi brenzi left a comment

Choose a reason for hiding this comment

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

I'd like to see a unit test using this abstraction soon ;-) but won't block the PR because of this

@brenzi brenzi merged commit 3f4bc86 into master Jun 29, 2021
@clangenb clangenb deleted the api-client-extensions branch June 29, 2021 09:50
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