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

Feat/33 convenient way to gather user balances #34

Merged
merged 5 commits into from Jun 22, 2023

Conversation

radicleart
Copy link
Collaborator

Provides streamlined api endpoints for;

  1. /bridge-api/:network/v1/btc/tx/commit-deposit-data/:stxAddress/:revealFee
  2. /bridge-api/:network/v1/btc/tx/commit-deposit/:data
    for withdrawals
  3. /bridge-api/:network/v1/btc/tx/commit-withdrawal-data/:signature/:amount
  4. /bridge-api/:network/v1/btc/tx/commit-withdrawal/:data/:sbtcWallet/:compression
    and fetch the taproot commitment sccript data
  5. /bridge-api/:network/v1/btc/tx/commitment/:stxAddress/:revealFee

In addition

  1. gathering user balance data for all wallet addresses including; sBTC, STX, Cardinal BTC, Ordinal BTC
  2. condenses info passed to UI for non user related data - reduces the complexity and number of api calls.

Addition of end point to bridge api to determine the commit data for electrum plugin
1. /bridge-api/:network/v1/btc/tx/commit-deposit-data/:stxAddress/:revealFee
2. /bridge-api/:network/v1/btc/tx/commit-deposit/:data
for withdrawals
3. /bridge-api/:network/v1/btc/tx/commit-withdrawal-data/:signature/:amount
4. /bridge-api/:network/v1/btc/tx/commit-withdrawal/:data/:sbtcWallet/:compression
and fetch the taproot commitment sccript data
5. /bridge-api/:network/v1/btc/tx/commitment/:stxAddress/:revealFee
@radicleart radicleart linked an issue Jun 22, 2023 that may be closed by this pull request
@radicleart radicleart self-assigned this Jun 22, 2023
@radicleart radicleart added the enhancement New feature or request label Jun 22, 2023
@radicleart radicleart merged commit ed38811 into main Jun 22, 2023
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

Successfully merging this pull request may close these issues.

Convenient way to gather user balances
1 participant