-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support RSK #141
Support RSK #141
Conversation
Deploy preview for kind-kilby-95344f processing. Built with commit 671f054 https://app.netlify.com/sites/kind-kilby-95344f/deploys/5c0efe890097d42028d328f2 |
@fvictorio could you merge the changes from |
Merged and resolved conflicts. I tested that everything works in native-to-erc between Sokol and Kovan. I couldn't test it between RSK and Sokol because the bridge address I have ( |
# Conflicts: # README.md
@akolotov e2e tests were failing because the success alert after transaction was processed was missing, so I fixed that. The only thing is that on the success alert we used to display a message with the transaction hash (with the link to explorer) from the event that generated the transfer on the other network. Now that we don't use events to check if the transaction was processed, we don't have a way to get that transaction hash. So for example the message only displays: If this is OK then I think all the changes are done for this PR. If displaying the tx hash on the alert is important, then we can try using both approaches, using events when the network supports |
@patitonar thanks for looking after this PR. I agree that we need a parameter in the These options will also allow to make decision if we need to display elements that depends on events: the event tab, the bridge statistic elements on the statistics tab. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added a comment as a separate note.
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Statistics page
- Tokens Deposits/Withdraws sections also uses Events to get that information. So I think the Statistics tab should also not be displayed if we can't use events.
- Status page
- List of authorities is generated by listening to events
ValidatorAdded
andValidatorRemoved
. So it shouldn't be displayed if we can't use events. - On
configuration
section. The Authorities count is calculated from the previously mentioned list of validators. In this case I think we can usevalidatorCount
method fromBridgeValidators
contract to get this information.
- Remove link from menu - Redirect to `/` if trying to access directly
…k doesn't support events
Hidden from the menu for non-event based networks.
Done
Done Also, implemented redirect for the urls that are not supported in a non-event based network. So if the user tries to access: |
Do you have ideas why the deployment checks failed? |
- Remove dependency - Create local utils with the same evaluations than `yn`
Yes, |
@patitonar if you have no more comments please approve the PR and I will merge it. Thanks! |
This PR does some modifications that allow the bridge UI to work with RSK:
getLogs
RPC method.