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

Implement LoomProvider2 for /eth endpoint #282

Open
enlight opened this issue Jul 1, 2019 · 1 comment
Open

Implement LoomProvider2 for /eth endpoint #282

enlight opened this issue Jul 1, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@enlight
Copy link
Contributor

enlight commented Jul 1, 2019

We need to start migrating loom-js over to the /eth JSON-RPC interface. Soon it should be possible to send Ethereum txs to the /eth endpoint, at which point it'll be possible to use something like Metamask without a LoomProvider (just using web3). Nonce management is still going to be tricky though, the /eth endpoint will only support what is essentially the basic NonceTxMiddleware

export class NonceTxMiddleware implements ITxMiddlewareHandler {

The basic nonce management will be good enough for simple frontends, but it won't work for some gaming use cases that need something like the cached & speculative nonce middleware, so we'll need a new LoomProvider2 that does querying via /eth, but uses the nonce middleware to manage nonces.

@enlight enlight added the enhancement New feature or request label Jul 1, 2019
@eduardonunesp
Copy link
Contributor

LoomProvider2 will have deeper integration with Web3 now that version 1.2.1 reached a stable cycle and the past issues with the lib are fixed, the next step is to put LoomProvider2 on loom-js, I'm working on that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants