Skip to content

Implement LoomProvider2 for /eth endpoint #282

@enlight

Description

@enlight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions