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

Add ability to use LoomProvider with the /eth endpoint #299

Merged
merged 39 commits into from
Sep 24, 2019

Conversation

redben
Copy link
Contributor

@redben redben commented Aug 15, 2019

No description provided.

@redben redben marked this pull request as ready for review August 20, 2019 13:30
src/helpers.ts Outdated Show resolved Hide resolved
src/tests/helpers.ts Outdated Show resolved Hide resolved
src/tests/helpers.ts Outdated Show resolved Hide resolved
src/tests/e2e_tests.ts Outdated Show resolved Hide resolved
src/tests/e2e/loom-provider-web3-tests.ts Outdated Show resolved Hide resolved
src/tests/e2e/loom-provider-web3-tests.ts Outdated Show resolved Hide resolved
src/loom-provider.ts Outdated Show resolved Hide resolved
src/loom-provider.ts Outdated Show resolved Hide resolved
src/client.ts Outdated Show resolved Hide resolved
src/internal/ws-rpc-client.ts Outdated Show resolved Hide resolved
src/client.ts Outdated Show resolved Hide resolved
redben added 2 commits August 21, 2019 17:40
- remove Client.readClient
- Client.sendWeb3MsgAsync
- Client.sendWeb3MsgAsync revert code in getevmfilterchanges
- update LoomProvider accordingly
src/helpers.ts Outdated Show resolved Hide resolved
src/tests/e2e/loom-provider-web3-tests.ts Outdated Show resolved Hide resolved
@redben
Copy link
Contributor Author

redben commented Aug 28, 2019

One test still fails... didn't we disable blueprint?

Calls via HTTP

contractAddr = await client.getContractAddressAsync('BluePrint')
>> Error: Failed to resolve contract address

@redben redben requested a review from enlight August 29, 2019 16:26
@enlight enlight changed the title Loom provider eth endpoint Add ability to use LoomProvider with the Loom /eth endpoint Sep 24, 2019
@enlight enlight changed the title Add ability to use LoomProvider with the Loom /eth endpoint Add ability to use LoomProvider with the /eth endpoint Sep 24, 2019
@enlight
Copy link
Contributor

enlight commented Sep 24, 2019

This is an intermediate step that will allow us to start using the Web3 JSON-RPC methods provided by Loom nodes on the /eth endpoint. The end goal is to switch over to a completely new version of LoomProvider that's being built in #303 but that still requires some work in loomchain, as well as extensive testing.

One annoying limitation of the changes in this PR is that a single Client instance can't be used to interact with both the /eth and /query endpoints, so any one Client instance can only interact with EVM contracts, or Go contracts, but not both at once.

Copy link
Contributor

@enlight enlight left a comment

Choose a reason for hiding this comment

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

LGTM

@enlight enlight merged commit 1123281 into master Sep 24, 2019
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