Skip to content

feat: add spl token operations builder for sol #6583

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raj-bitgo
Copy link
Contributor

  • Add mint/burn transaction builder for sol
  • Could support more instructions in the future

TICKET: TMS-1218

- Add mint/burn transaction builder for sol
- Could support more instructions in the future

TICKET: TMS-1218
@raj-bitgo raj-bitgo requested a review from a team as a code owner July 30, 2025 08:06
Comment on lines 110 to 123
export interface SplTokenOperation {
type: 'mint' | 'burn';
mintAddress?: string;
amount: string;
tokenName?: string;
decimalPlaces?: number;
programId?: string;
// For mint operations
destinationAddress?: string;
// For burn operations
accountAddress?: string;
// Authority address for both mint and burn
authorityAddress: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of having a combined SplTokenOperation, can we use a union of supported SPL operations,

Suggested change
export interface SplTokenOperation {
type: 'mint' | 'burn';
mintAddress?: string;
amount: string;
tokenName?: string;
decimalPlaces?: number;
programId?: string;
// For mint operations
destinationAddress?: string;
// For burn operations
accountAddress?: string;
// Authority address for both mint and burn
authorityAddress: string;
}
export type SplTokenOperation = Mint | Burn

@raj-bitgo raj-bitgo marked this pull request as draft July 31, 2025 06:13
TICKET: TMS-1218
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.

2 participants