-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add lombard btc bridging #478
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
base: main
Are you sure you want to change the base?
Conversation
|
@mikeeus ! |
| const enabled: BridgeType[] = [ | ||
| BridgeType.LOMBARD_BTC_TO_BTCB, | ||
| BridgeType.LOMBARD_BTCB_TO_BTC, | ||
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those will need to be toggled on/off based on new feature flags:
unified-bridge-lombard-btc-to-avaunified-bridge-lombard-ava-to-btc
Feature flags can be added to the FeatureGates enum here:
| export enum FeatureGates { |
UNIFIED_BRIDGE_LOMBARD_BTC_TO_AVA = 'unified-bridge-lombard-btc-to-ava',
UNIFIED_BRIDGE_LOMBARD_AVA_TO_BTC = 'unified-bridge-lombard-ava-to-btc',if (featureFlags[FeatureGates.UNIFIED_BRIDGE_LOMBARD_BTC_TO_AVA]) {
enabled.push(BridgeType.LOMBARD_BTC_TO_BTCB);
} else if (featureFlags[FeatureGates.UNIFIED_BRIDGE_AB_BTC_TO_AVA]) {
// Make sure to not enable both at the same time
enabled.push(BridgeType.AVALANCHE_BTC_AVA);
}
if (featureFlags[FeatureGates.UNIFIED_BRIDGE_LOMBARD_AVA_TO_BTC]) {
enabled.push(BridgeType.LOMBARD_BTCB_TO_BTC);
} else if (featureFlags[FeatureGates.UNIFIED_BRIDGE_AB_AVA_TO_BTC]) {
// Make sure to not enable both at the same time
enabled.push(BridgeType.AVALANCHE_AVA_BTC);
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New feature flags are already created. They're enabled for dev environments and disabled for prod.
Integrates Lombard protocol to enable bidirectional bridging between native BTC and BTCB (Lombard Bitcoin) on Avalanche.