nahmii / nahmii-2-sdk

The `@nahmii/sdk` package is an SDK to interact with Nahmii 2.0.
https://www.nahmii.io/
1 stars 2 forks source link

Bridging history and status #23

Open HDauven opened 2 years ago

HDauven commented 2 years ago

Description

Processing and filtering through transactions that have been bridged between L1 and the Nahmii L2 is not a straight forward process. Neither is establishing the status for a given withdrawal or deposit.

To make this class of data more easily accessible for our own internal and third party (d)Apps, the SDK should be extended and expose functionality to enable filtering for this data.

Implementing the proper filtering of bridge transaction reduces the attack surface for faulty implementations and code duplication, decreasing long term maintenance cost and time.

Initiative/goal

This epic and its corresponding issues will provide us with an easy to use interface for analyzing transactions executed towards our L1 <-> L2 bridges and provide valuable metadata for existing and future services, both internally and externally.

Hypothesis

This epic will have achieved its goals if the SDK can provide a simple interface to retrieve deposit and withdrawal history for a given wallet and a given currency, but also is able to figure out the status for a given withdrawal transaction.