refactor: bye bye @avalabs/bridge-sdk, hello @avalabs/bridge-unified #57
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.
Description
@avalabs/bridge-sdk
(not really, though)@avalabs/bridge-unified
(comes in with CTTP, ICTT (erc20-erc20) and Avalanche Bridge integrations)Changes
@avalabs/bridge-sdk
are still left - during the migration phase, some people may have oldBridgeTransaction
s either in progress or completed, but not acknowledged in the UI yet. We may need a schema migration, depending on how the UnifiedBridgeSDK handles BTC tracking.useAvalancheBridge()
/useBtcBridge()
/useEthBridge()
/useUnifiedBridge()
hooks. The old, loyaluseBridge()
which previously combined the powers of them all is now enough to handle everything.BridgeFormETH
/BridgeFormBTC
/BridgeFormAvax
orBridgeFormUnified
. There is a new sheriff in the Components town - the simpleBridgeForm
got promoted and is used directly byBridge.tsx
page.The new user path
User may change the source network at any point (either by changing it in the form, or via the networks widget)
* If asset is present on the new network, the token & amount is kept in-tact.
* If asset is not present on the new network, form is reset.
Testing
Screenshots:
N/A
Checklist for the author