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

Update docs: Finance, Tokens and Voting #236

Merged
merged 25 commits into from
Aug 26, 2020
Merged

Conversation

bpierre
Copy link
Contributor

@bpierre bpierre commented Aug 25, 2020

Builds on #233 (should be merged after).

It documents the possibility of omitting the callback in onX methods, and also adds objects that were not documented:

Finance:

  • TokenBalance
  • Transaction

Tokens:

  • Token
  • TokenHolder

Voting:

  • Vote
  • Cast

bpierre added 24 commits August 21, 2020 02:56
This is needed to pass errors with subscriptions, the same way we do it
for the async functions by throwing errors.

Contains the following changes:

- Add the add SubscriptionCallback type.
- Add types to all the subscriptions methods.
- Move all the subscription methods to use node-style callbacks.
- Update documentation and examples.
Rather than separate ones, which creates less updates.
Together, this utility and type can be used to help app connectors
declare their subscriptions easily.
@bpierre bpierre changed the base branch from master to react-improvements August 25, 2020 09:24
@bpierre bpierre requested a review from 0xGabi August 25, 2020 15:27
Base automatically changed from react-improvements to master August 26, 2020 00:19
@bpierre bpierre merged commit f4f081f into master Aug 26, 2020
@bpierre bpierre deleted the documentation-updates branch August 26, 2020 00:22
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