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

chore(statics): add babylon to statics #5355

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

MohammedRyaan786
Copy link
Contributor

@MohammedRyaan786 MohammedRyaan786 commented Jan 9, 2025

TICKET: COIN-2691

Added babylon to statics. Currently since mainnet is not yet live, have left the explorer url empty. Have created a ticket to add the mainnet explorer link later on : https://bitgoinc.atlassian.net/browse/COIN-2758

Phase-2 Testnet Network Information
Following is a list of the key network details of the Babylon Phase-2 Testnet (testnet-5):

RPC nodes can be found here
Chain ID: bbn-test-5
Bech32 Configuration can be found here
Token minimum denomination: ubbn (6 decimals)
Human-readable denomination: tbaby (test baby)

Reference - Babylon Github: https://github.com/babylonlabs-io/networks/blob/030a0c7b29b1156840383e09816b4187560c41e4/bbn-test-5/integration/wallet/babylon-wallet.md

@MohammedRyaan786 MohammedRyaan786 force-pushed the COIN-2691-sdk-statics-for-babylon branch 5 times, most recently from 9e413c9 to 9c8ddc0 Compare January 9, 2025 14:40
@MohammedRyaan786 MohammedRyaan786 force-pushed the COIN-2691-sdk-statics-for-babylon branch 2 times, most recently from 0d6e75c to 8aa2d8e Compare January 10, 2025 05:22
@MohammedRyaan786 MohammedRyaan786 marked this pull request as ready for review January 10, 2025 05:59
@MohammedRyaan786 MohammedRyaan786 requested review from a team as code owners January 10, 2025 05:59
account(
'ee22282b-c307-4861-b706-d9a178326ad5',
'tbaby',
'Testnet Baby',
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be named as Testnet Babylon

'baby',
'Babylon',
Networks.main.baby,
6,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please share the babylon docs reference in PR description which highlights 6 decimal places.

Copy link
Contributor Author

@MohammedRyaan786 MohammedRyaan786 Jan 10, 2025

Choose a reason for hiding this comment

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

I've updated the description with the right reference

class Baby extends Mainnet implements AccountNetwork {
name = 'Babylon';
family = CoinFamily.BABY;
explorerUrl = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

We can put explorerUrl as https://babylon.explorers.guru/
Explorers.guru followed similar pattern for other chains, so we can safely assume mainnet explorer URL will be same.

class BabyTestnet extends Testnet implements AccountNetwork {
name = 'Testnet Babylon';
family = CoinFamily.BABY;
explorerUrl = 'https://testnet.babylon.explorers.guru/';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
explorerUrl = 'https://testnet.babylon.explorers.guru/';
explorerUrl = 'https://testnet.babylon.explorers.guru/transaction/';

It should be transactions URL. Applies to mainnet class as well

@MohammedRyaan786 MohammedRyaan786 force-pushed the COIN-2691-sdk-statics-for-babylon branch from 8aa2d8e to 49d5583 Compare January 10, 2025 07:34
@MohammedRyaan786 MohammedRyaan786 merged commit f08a165 into master Jan 10, 2025
6 checks passed
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.

4 participants