-
Notifications
You must be signed in to change notification settings - Fork 36
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
SDK: Support for depositor proxies #776
Merged
Merged
Commits on Jan 18, 2024
-
Introduce support for depositor proxies
Here we introduce the concept of a `DepositorProxy` contract. A `DepositProxy` can reveal deposits to the Bridge, on behalf of the user (i.e. original depositor). Once minting is completed, the `DepositProxy` receives minted TBTC and can provide additional services to the user, such as routing the minted TBTC tokens to another protocols, in an automated way. To expose this feature to the SDK users, we are adding a new `initiateDepositWithProxy` function. This function triggers the deposit flow with support of the given `DepositProxy`.
Configuration menu - View commit details
-
Copy full SHA for 445126b - Browse repository at this point
Copy the full SHA 445126bView commit details -
Call proper Bridge function depending on the existence of extra data
If extra data is set, the deposit should be revealed using the `revealDepositWithExtraData` function of the Ethereum `Bridge`. Otherwise, the regular `revealDeposit` should be used.
Configuration menu - View commit details
-
Copy full SHA for 41ce3b5 - Browse repository at this point
Copy the full SHA 41ce3b5View commit details -
Expose
EthereumDepositorProxy
classThe `EthereumDepositorProxy` is a base class meant to facilitate integration with Ethereum depositor proxies.
Configuration menu - View commit details
-
Copy full SHA for 761dd75 - Browse repository at this point
Copy the full SHA 761dd75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b3fb1d - Browse repository at this point
Copy the full SHA 6b3fb1dView commit details
Commits on Jan 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 082953b - Browse repository at this point
Copy the full SHA 082953bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f79a9 - Browse repository at this point
Copy the full SHA 14f79a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd9756b - Browse repository at this point
Copy the full SHA bd9756bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40a1a9c - Browse repository at this point
Copy the full SHA 40a1a9cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.