Skip to content

feat(statics): add TestToken on sol token definitions#9327

Draft
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
feat/SCAAS-10518-sdk-token-add
Draft

feat(statics): add TestToken on sol token definitions#9327
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
feat/SCAAS-10518-sdk-token-add

Conversation

@bitgo-ai-agent-dev

Copy link
Copy Markdown

What

  • Add 'tsol:test' and 'sol:test' to the UnderlyingAsset enum in base.ts
  • Add tsolToken() call in coins/solTokens.ts with Token2022 program, UUID 430b6729-cdc8-48b7-9afc-7f5885657029, contract address So11111111111111111111111111111111111111117, 9 decimals
  • Add ofcsolToken() call in coins/ofcCoins.ts with UUID 846a4d93-9688-4059-88a4-f4ecba43cf8f referencing sol:test

Why

  • TestToken (symbol: TEST) needs to be onboarded to the @bitgo/statics package so the SDK recognises the token on Solana testnet and OFC. This is part of the dry-run / automation validation for the token onboarding flow (parent ticket SCAAS-10518). The token uses the Token2022 program.

Decision log

  1. sol:test mainnet entry — The OFC entry references UnderlyingAsset['sol:test'] (mainnet asset key) rather than the testnet tsol:test. No mainnet sol:test entry existed, so it was added alongside the testnet entry. This matches the pattern used by sol:gousd/tsol:gousd and other tokens with OFC support.

  2. Insertion position in base.tstsol:test is inserted after tsol:ttkb (end of the tsol block near other test tokens); sol:test is inserted after sol:bils (end of the recent sol additions block). Both follow existing grouping conventions rather than strict alphabetical order across the whole file, matching how other recent token entries are placed.

  3. Trailing commas — Added trailing commas on the last argument of the new tsolToken() and ofcsolToken() calls to match the style of the surrounding entries.

Test plan

  • TypeScript type check (tsc --noEmit) passes with no errors on modules/statics
  • 'tsol:test' confirmed absent before change (grep found no prior entry)
  • 'sol:test' confirmed absent before change
  • All three files modified: base.ts, coins/solTokens.ts, coins/ofcCoins.ts
  • No existing entries modified or removed

Out of scope

None identified.

Ticket: SCAAS-10518

Add TestToken (Symbol: TEST) on Solana testnet to @bitgo/statics.
Token uses the Token2022 program and has both an on-chain testnet
entry and an OFC entry.

Changes:
- base.ts: add UnderlyingAsset enum entries for 'tsol:test' (testnet)
  and 'sol:test' (mainnet, required for OFC reference)
- coins/solTokens.ts: add tsolToken() with Token2022ProgramId, UUID
  430b6729-cdc8-48b7-9afc-7f5885657029, contract address
  So11111111111111111111111111111111111111117, 9 decimals
- coins/ofcCoins.ts: add ofcsolToken() with UUID
  846a4d93-9688-4059-88a4-f4ecba43cf8f referencing sol:test

Ticket: SCAAS-10518
Session-Id: 3204ab6c-43bb-45c6-95e3-8506852c9094
Task-Id: 9d08caab-b8f4-49f4-a5cd-d96f76a66f45
@linear-code

linear-code Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

SCAAS-10518

@bitgo-ai-agent-dev

Copy link
Copy Markdown
Author

@claude please review this PR

@bitgo-ai-agent-dev
bitgo-ai-agent-dev Bot force-pushed the feat/SCAAS-10518-sdk-token-add branch from b85f5ca to 935ccf6 Compare July 22, 2026 12:22
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.

1 participant