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

Fixed subscription API, and simplified #1809

Merged
merged 1 commit into from
Mar 3, 2019

Conversation

frozeman
Copy link
Contributor

@frozeman frozeman commented Mar 3, 2019

After carefully reading this again, i noticed that there was an issue with the subscription.
One should put the subscription type in, so that the notification can pre-filter based on the subscription type (eth_subscription, ssh_subscription). Athen the returned object is within this subscription type, and mapping of sub IDs can be done properly.

To explain it in short:

// for a
ethereum.send('eth_subscribe'...)
// libs need to do a
ethereum.on('eth_subscription',...)

Also the standard should not talk about JSON RPC, as this provider is meant to abstract that away. Under the hood it probably will have to create a son roc object, depending on how it communicates with the node.

I'm personally not sure if the accountsChanged and networkChanged events should be in this standard.

I certainly think the eth_requestAccounts should be in another standards proposal and not in the initial one here.

Ps. I took the freedom to move myself as the first author, given the fact that this proposal is 1:1 the same as I did in march 2017, with the addition of promises.

After carefully reading this again, i noticed that there was an issue with the subscription.
One should put the subscription type in, so that the notification can pre-filter based on the subscription type (`eth_subscription`, `ssh_subscription`). Athen the returned object is within this subscription type, and mapping of sub IDs can be done properly.

Also the standard should not talk about JSON RPC, as this provider is meant to abstract that away. Under the hood it probably will have to create a son roc object, depending on how it communicates with the node.

I'm personally not sure if the `accountsChanged` and `networkChanged` events should be in this standard.

I certainly think the `eth_requestAccounts` should be in another standards proposal and not in the initial one here.
@eip-automerger eip-automerger merged commit 8c31a9b into ethereum:master Mar 3, 2019
@frozeman frozeman deleted the patch-1 branch March 3, 2019 13:19
@frozeman frozeman restored the patch-1 branch March 3, 2019 13:19
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