Skip to content

Commit 52322ae

Browse files
committed
feat(statics): add testToken (SOL) to BitGoJS statics
Add testToken as a test-only SOL token to @bitgo/statics, including the UnderlyingAsset enum entries, on-chain SPL token factory, and OFC factory. Changes: - modules/statics/src/base.ts: add `tsol:testtoken` (test on-chain) and `sol:testtoken` (mainnet-style key for OFC reference) to the UnderlyingAsset enum - modules/statics/src/coins/solTokens.ts: add tsolToken entry with UUID fcb25a47, mint So111...(Wrapped SOL placeholder), 9 decimals - modules/statics/src/coins/ofcCoins.ts: add ofcsolToken entry with UUID 4b17b883, name ofc:sol:testtoken, 9 decimals This is a dry-run/test token to validate the Linear ticket workflow. The contract address is the well-known Wrapped SOL mint reused as a placeholder — not a real deployment. Ticket: SCAAS-10508 Session-Id: 1f2f5086-425e-4b36-98e8-d4f6db085910 Task-Id: 02c1b714-0b9e-4965-9550-a1054a116828
1 parent 82bdebe commit 52322ae

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,7 @@ export enum UnderlyingAsset {
12661266
'tsol:t22mint' = 'tsol:t22mint',
12671267
'tsol:t1test' = 'tsol:t1test',
12681268
'tsol:ttkb' = 'tsol:ttkb',
1269+
'tsol:testtoken' = 'tsol:testtoken',
12691270
GAS = 'gas',
12701271
GATE = 'gate',
12711272
GBPT = 'gbpt',
@@ -3989,6 +3990,7 @@ export enum UnderlyingAsset {
39893990
'sol:slx' = 'sol:slx',
39903991
'sol:ab1' = 'sol:ab1',
39913992
'sol:bils' = 'sol:bils',
3993+
'sol:testtoken' = 'sol:testtoken',
39923994

39933995
'tsol:txsgd' = 'sol:txsgd',
39943996
'tsol:txusd' = 'sol:txusd',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6353,6 +6353,13 @@ export const ofcCoins = [
63536353
UnderlyingAsset['sol:jsol']
63546354
),
63556355
ofcsolToken('a903ea3b-de91-4d57-9fc1-56fdf8b3b249', 'ofcsol:bils', 'BILS', 6, UnderlyingAsset['sol:bils']),
6356+
ofcsolToken(
6357+
'4b17b883-3371-4c33-a487-ac208ccb3c23',
6358+
'ofc:sol:testtoken',
6359+
'testToken',
6360+
9,
6361+
UnderlyingAsset['sol:testtoken'],
6362+
),
63566363
ofcBscToken('3a9daeda-7e08-494d-a47c-d2c89dd1c735', 'ofcbsc:godl', 'GODL', 18, UnderlyingAsset['bsc:godl']),
63576364
ofcBscToken('93a459bc-c661-4001-be26-9175046c9a36', 'ofcbsc:gdl', 'GDL', 18, UnderlyingAsset['bsc:gdl']),
63586365
ofcBscToken('9febc919-85af-48eb-9821-e9d18e4cd98e', 'ofcbsc:usgd', 'USGD', 18, UnderlyingAsset['bsc:usgd']),

modules/statics/src/coins/solTokens.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4194,4 +4194,13 @@ export const solTokens = [
41944194
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN],
41954195
ProgramID.Token2022ProgramId
41964196
),
4197+
tsolToken(
4198+
'fcb25a47-43bd-498d-a011-143fc9513f71',
4199+
'tsol:testtoken',
4200+
'testToken',
4201+
9,
4202+
'So11111111111111111111111111111111111111112',
4203+
'So11111111111111111111111111111111111111112',
4204+
UnderlyingAsset['tsol:testtoken'],
4205+
),
41974206
];

0 commit comments

Comments
 (0)