Skip to content

Commit 3333cb4

Browse files
prajwalu142bitgobot
authored andcommitted
feat(statics): onboard txlm:TUSDC test token for XLM signing tests
Add the TUSDC test token (asset code TUSDC, issuer GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ) to the @bitgo/statics token registry as a testnet Stellar token. The token uses the ALPHANUM12 encoding (5-char asset code) on Stellar XDR, which is the exact type that the parent ticket (CSHLD-1407) adds HSM firmware support for. Having this token registered in the SDK allows end-to-end signing tests against a real testnet ALPHANUM12 asset without relying on the existing TST (ALPHANUM4) token. Changes: - modules/statics/src/base.ts: add txlm:TUSDC-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ to the UnderlyingAsset enum (Stellar testnet tokens section) - modules/statics/src/allCoinsAndTokens.ts: register the token via tstellarToken() with 7 decimal places and domain bitgo.com Ticket: CSHLD-1447 Session-Id: bb58b0aa-c314-4212-8901-e1cfc7a3c8db Task-Id: 31db5ad2-ab59-4d9f-8c21-6acc91a05c08
1 parent be532f1 commit 3333cb4

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6424,6 +6424,17 @@ export const allCoinsAndTokens = [
64246424
'',
64256425
'TXLM:BTGT'
64266426
),
6427+
tstellarToken(
6428+
'fcd97a11-2f68-4add-941d-a2f765852da1',
6429+
'txlm:TUSDC-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ',
6430+
'Test USD Coin',
6431+
7,
6432+
UnderlyingAsset['txlm:TUSDC-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ'],
6433+
'bitgo.com',
6434+
AccountCoin.DEFAULT_FEATURES,
6435+
'',
6436+
'TXLM:TUSDC'
6437+
),
64276438
// CECHO-1893 batch 0803 tokens
64286439
tstellarToken(
64296440
'02f4297e-e0dc-4a14-af6c-15e0063d1ec6',

modules/statics/src/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2963,6 +2963,7 @@ export enum UnderlyingAsset {
29632963
'txlm:TST-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ' = 'txlm:TST-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ',
29642964
'txlm:BTGT-GCCUFJV5P32QGVZVW73SF7P53ZH2OXJ5C3DYSXDECSRCP3FU2GJ2PXGE' = 'txlm:BTGT-GCCUFJV5P32QGVZVW73SF7P53ZH2OXJ5C3DYSXDECSRCP3FU2GJ2PXGE',
29652965
'txlm:yGHS-GCF46XLX3R7OXIDAFZ3HH6DEY5VT3BJJRSTKSSOKPLGNH6H7QYV3A2OA' = 'txlm:yGHS-GCF46XLX3R7OXIDAFZ3HH6DEY5VT3BJJRSTKSSOKPLGNH6H7QYV3A2OA',
2966+
'txlm:TUSDC-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ' = 'txlm:TUSDC-GC26PEYGETD7L6PUW2VCU3PSC7LCLRRPOSUILSHD2RT23IQUEAN4TQBQ',
29662967

29672968
// Algorand testnet tokens
29682969
'talgo:USON-16026728' = 'talgo:USON-16026728',

0 commit comments

Comments
 (0)