Skip to content

Conversation

@yogeshwar-bitgo
Copy link
Contributor

TICKET: WIN-6328

@yogeshwar-bitgo yogeshwar-bitgo force-pushed the WIN-6328-statics branch 3 times, most recently from e057a5f to 92ad8c2 Compare August 21, 2025 08:16
@yogeshwar-bitgo yogeshwar-bitgo marked this pull request as ready for review August 21, 2025 09:26
@yogeshwar-bitgo yogeshwar-bitgo requested review from a team as code owners August 21, 2025 09:26
Copy link
Contributor

@yash-bitgo yash-bitgo left a comment

Choose a reason for hiding this comment

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

looks good

@yogeshwar-bitgo yogeshwar-bitgo merged commit 507673b into master Aug 21, 2025
11 of 12 checks passed
Networks.test.avalancheP,
UnderlyingAsset.AVAXP
),
flrp('84749ce6-a3ca-4270-9970-4e21cca026ca', 'flrp', 'Flare P-Chain', Networks.main.flrP, UnderlyingAsset.FLRP),
Copy link
Contributor

Choose a reason for hiding this comment

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

do we not need to add new coins to coins.ts ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw they are migrated recently here.

@@ -1,3 +1,36 @@
// FlareNetwork interface for Flare-family chains
export interface FlareNetwork {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should extend BaseNetwork.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cChainBlockchainID = '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5';
avaxAssetID = ''; // This is not applicable to our chain, so just any string that passes validation will suffice
networkID = 14;
hrp = 'flare'; //The Human-Readable Part for Bech32 addresses on the network (e.g., avax for Mainnet). It's the prefix before the 1 in an address.
Copy link
Contributor

Choose a reason for hiding this comment

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

update the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cChainBlockchainID = 'vE8M98mEQH6wk56sStD1ML8HApTgSqfJZLk9gQ3Fsd4i6m3Bi';
avaxAssetID = ''; // This is not applicable to our chain, so just any string that passes validation will suffice
networkID = 114;
hrp = 'costwo'; //The Human-Readable Part for Bech32 addresses on the network (e.g., avax for Mainnet). It's the prefix before the 1 in an address.
Copy link
Contributor

Choose a reason for hiding this comment

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

update the comment

forwarderImplementationAddress?: string;
blockchainID?: string;
cChainBlockchainID?: string;
avaxAssetID?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

accountExplorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/address/';
blockchainID = '11111111111111111111111111111111LpoYY';
cChainBlockchainID = 'vE8M98mEQH6wk56sStD1ML8HApTgSqfJZLk9gQ3Fsd4i6m3Bi';
avaxAssetID = ''; // This is not applicable to our chain, so just any string that passes validation will suffice
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not remove this if it's not applicable. We are not using/extending AVAXNetwork, what's forcing us to keep this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since flarejs is extension of avax I thought of keeping it for now, but have removed it here
https://github.com/BitGo/BitGoJS/pull/6770/files

family = CoinFamily.FLRP;
explorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/transactions';
accountExplorerUrl = 'https://coston2.testnet.flarescan.com/blockchain/pvm/address/';
blockchainID = '11111111111111111111111111111111LpoYY';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this same for mainnet and testnet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These settings I got from foundation

});
} else if (coin.family === CoinFamily.FLRP) {
it('does not require custody', () => {
coin.features.includes(CoinFeature.CUSTODY).should.eql(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

If we do not plan to support Custody for FlareP chain, we should add this coinFeature to the disallowedFeatures

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.

6 participants