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

SDK: Support for depositor proxies #776

Merged
merged 8 commits into from
Jan 19, 2024
Merged

SDK: Support for depositor proxies #776

merged 8 commits into from
Jan 19, 2024

Commits on Jan 18, 2024

  1. 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`.
    lukasz-zimnoch committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    445126b View commit details
    Browse the repository at this point in the history
  2. 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.
    lukasz-zimnoch committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    41ce3b5 View commit details
    Browse the repository at this point in the history
  3. Expose EthereumDepositorProxy class

    The `EthereumDepositorProxy` is a base class meant to facilitate
    integration with Ethereum depositor proxies.
    lukasz-zimnoch committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    761dd75 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b3fb1d View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    082953b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14f79a9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd9756b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40a1a9c View commit details
    Browse the repository at this point in the history