Skip to content

Conversation

@haritkapadia
Copy link
Contributor

@haritkapadia haritkapadia commented Aug 18, 2025

Description

Use SolStakingType from public-types instead of StakingType from BitGoJS for SOL staking transaction builders.

Issue Number

Ticket: SC-2789

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • BREAKING CHANGE: txBuilder.stakingType now uses SolStakingType from public-types instead of StakingType from BitGoJS.

How Has This Been Tested?

The project compiles.

The StakingType enum definition has been removed, so if the project compiles, then all references to the enum have been removed.

@haritkapadia haritkapadia force-pushed the harit/use-public-types-staking-type branch 3 times, most recently from 8d2ced6 to 584c2dc Compare August 20, 2025 13:51
@haritkapadia haritkapadia marked this pull request as ready for review August 20, 2025 13:54
@haritkapadia haritkapadia requested review from a team as code owners August 20, 2025 13:54
@@ -1,3 +1,4 @@
import { SolStakingType } from '@bitgo/public-types';
Copy link
Contributor

Choose a reason for hiding this comment

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

use SolStakingTypeEnum instead. We are using the type enum directly, not from external

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

if (isJito) return StakingType.JITO;
if (isMarinade) return StakingType.MARINADE;
if (isNative) return StakingType.NATIVE;
if (isJito) return 'JITO';
Copy link
Contributor

Choose a reason for hiding this comment

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

SolStakingTypeEnum.JITO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@haritkapadia haritkapadia force-pushed the harit/use-public-types-staking-type branch from 584c2dc to 86898f6 Compare August 20, 2025 16:46
BREAKING CHANGE: txBuilder.stakingType now uses SolStakingTypeEnum
from public-types instead of StakingType from BitGoJS.

Ticket: SC-2789
@haritkapadia haritkapadia force-pushed the harit/use-public-types-staking-type branch from 86898f6 to 3487704 Compare August 20, 2025 16:48
@haritkapadia haritkapadia merged commit 3679dc3 into master Aug 20, 2025
11 of 12 checks passed
@haritkapadia haritkapadia deleted the harit/use-public-types-staking-type branch August 20, 2025 17:15
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.

3 participants