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: BBN/BTC env #565

Merged
merged 3 commits into from
Dec 25, 2024
Merged

feat: BBN/BTC env #565

merged 3 commits into from
Dec 25, 2024

Conversation

gbarkhatov
Copy link
Contributor

@gbarkhatov gbarkhatov commented Dec 24, 2024

  • Adds an ability to use env variables for both BTC and BBN wallets
  • Mainnet
    • BBN Mainnet & BTC Testnet
  • Signet
    • BTC Signet & BBN Signet
  • Combos above can be changed
  • Network config is split to BTC and BBN part
  • Types of expected returns are inhereted from bbn-wallet-connect

Closes #563

@gbarkhatov gbarkhatov linked an issue Dec 24, 2024 that may be closed by this pull request
@jeremy-babylonlabs
Copy link
Contributor

nice work!

@gbarkhatov
Copy link
Contributor Author

@jrwbabylonlab are you happy with the change? If yes and no requests - please merge it, or ping me so I will merge it

chainId: bbnTestnet.chainId,
rpc: bbnTestnet.rpc,
chainData: bbnTestnet,
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: probably best to not include the mainnet for now, just to avoid some confusion

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A seperate question on this. I wonder how would private mainnet config should look like. It connects to mainnet btc, but still a testing env 🤔

@jrwbabylonlab
Copy link
Collaborator

I will merge ur PR for now

@jrwbabylonlab jrwbabylonlab merged commit 993e257 into main Dec 25, 2024
1 check passed
@jrwbabylonlab jrwbabylonlab deleted the feat/bbn-env branch December 25, 2024 22:30
@@ -0,0 +1,58 @@
export const BBN_DEVNET_RPC_URL = "https://babylon-testnet-rpc.nodes.guru";
export const BBN_DEVNET_LCD_URL = "https://babylon-testnet-api.nodes.guru";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbarkhatov just notice a typo here. BBN_DEVNET_LCD_URL has devnet in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Able to switch BBN network
4 participants