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

Retrieve ETH withdrawal history #26

Open
4 tasks
HDauven opened this issue Mar 12, 2022 · 0 comments
Open
4 tasks

Retrieve ETH withdrawal history #26

HDauven opened this issue Mar 12, 2022 · 0 comments
Labels
Enhancement New feature or request

Comments

@HDauven
Copy link
Contributor

HDauven commented Mar 12, 2022

Is your feature request related to a problem? Please describe.
The ability to retrieve ETH withdrawal history for a given address on the Nahmii bridge.

Describe the solution you'd like
For the SDK to expose a function that filters on ETH withdrawals directed towards the Nahmii bridge. Filtering can be done on events emitted by the bridge contract.

Additional context
There is a distinction between ETH and ERC20 deposits/withdrawals, which has to be accounted for by providing different functions for each.

Stepwise breakdown

  • Filter on L2 bridge events, where the event is WithdrawalInitiated.
  • Filter out non-ETH tokens from the events list, where the token arguments equal the NVM ETH predeploy for the L2 token and a zero address for the L1 token.
  • Return structured events data to the API consumer.

Definition of done

  • The SDK provides a function that returns the ETH withdrawals for a given address.
@HDauven HDauven added the Enhancement New feature or request label Mar 12, 2022
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

1 participant