Skip to content

Commit 9b1582c

Browse files
authored
Merge pull request #9031 from BitGo/feat/SCAAS-9540-SCAAS-9748-onboard-gousd-scaasacme
feat(statics): onboard GoUSD and SCAASACME tokens
2 parents 88064e8 + 3d5723d commit 9b1582c

9 files changed

Lines changed: 270 additions & 0 deletions

File tree

modules/sdk-coin-tempo/test/resources/tempo.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ export const TESTNET_TOKENS = {
3131
address: '0x20c000000000000000000000e4662b69291ab60a',
3232
name: 'ttempo:stgusd1',
3333
},
34+
gousd: {
35+
address: '0x20c000000000000000000000abbd755acb373233',
36+
name: 'ttempo:gousd',
37+
},
38+
stgGoUSD: {
39+
address: '0x20c0000000000000000000004005ba0e59b1e1e5',
40+
name: 'ttempo:stggousd',
41+
},
42+
scaasacme: {
43+
address: '0x20c0000000000000000000007b20a5729bbc4f2d',
44+
name: 'ttempo:scaasacme',
45+
},
46+
stgScaasacme: {
47+
address: '0x20c000000000000000000000d846672b70a3dbf9',
48+
name: 'ttempo:stgscaasacme',
49+
},
3450
};
3551

3652
// Valid checksummed test recipient address

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,6 +3550,20 @@ export const allCoinsAndTokens = [
35503550
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
35513551
]
35523552
),
3553+
tip20Token(
3554+
'95acea50-87a0-4e7f-b84e-e98ad27ee757',
3555+
'tempo:gousd',
3556+
'goUSD',
3557+
6,
3558+
'0x20c0000000000000000000006d194f9810e6f886',
3559+
UnderlyingAsset['tempo:gousd'],
3560+
[
3561+
...TEMPO_FEATURES,
3562+
CoinFeature.STABLECOIN,
3563+
CoinFeature.EVM_NON_BITGO_RECOVERY,
3564+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3565+
]
3566+
),
35533567
tip20Token(
35543568
'9dd63f8e-3f35-4d10-a623-fe7358ad66a4',
35553569
'tempo:usdt0',
@@ -3649,6 +3663,62 @@ export const allCoinsAndTokens = [
36493663
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
36503664
]
36513665
),
3666+
ttip20Token(
3667+
'07cd2cf3-490d-4776-84cf-e1bb47cf3cc0',
3668+
'ttempo:gousd',
3669+
'Testnet goUSD',
3670+
6,
3671+
'0x20c000000000000000000000abbd755acb373233',
3672+
UnderlyingAsset['ttempo:gousd'],
3673+
[
3674+
...TEMPO_FEATURES,
3675+
CoinFeature.STABLECOIN,
3676+
CoinFeature.EVM_NON_BITGO_RECOVERY,
3677+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3678+
]
3679+
),
3680+
ttip20Token(
3681+
'0ac48bf9-e8dd-442e-ba8e-a800b525f68a',
3682+
'ttempo:stggousd',
3683+
'Testnet goUSD',
3684+
6,
3685+
'0x20c0000000000000000000004005ba0e59b1e1e5',
3686+
UnderlyingAsset['ttempo:stggousd'],
3687+
[
3688+
...TEMPO_FEATURES,
3689+
CoinFeature.STABLECOIN,
3690+
CoinFeature.EVM_NON_BITGO_RECOVERY,
3691+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3692+
]
3693+
),
3694+
ttip20Token(
3695+
'79428fe9-cfdb-43b2-8b95-9d0ca2c04a8d',
3696+
'ttempo:stgscaasacme',
3697+
'Testnet Acme USD',
3698+
6,
3699+
'0x20c000000000000000000000d846672b70a3dbf9',
3700+
UnderlyingAsset['ttempo:stgscaasacme'],
3701+
[
3702+
...TEMPO_FEATURES,
3703+
CoinFeature.STABLECOIN,
3704+
CoinFeature.EVM_NON_BITGO_RECOVERY,
3705+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3706+
]
3707+
),
3708+
ttip20Token(
3709+
'250efa18-66a4-43c7-a01c-c037505d0d19',
3710+
'ttempo:scaasacme',
3711+
'Testnet Acme USD',
3712+
6,
3713+
'0x20c0000000000000000000007b20a5729bbc4f2d',
3714+
UnderlyingAsset['ttempo:scaasacme'],
3715+
[
3716+
...TEMPO_FEATURES,
3717+
CoinFeature.STABLECOIN,
3718+
CoinFeature.EVM_NON_BITGO_RECOVERY,
3719+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3720+
]
3721+
),
36523722
canton(
36533723
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
36543724
'canton',

modules/statics/src/base.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,9 @@ export enum UnderlyingAsset {
12221222
'tsol:stggospcx' = 'tsol:stggospcx',
12231223
'sol:gospcx' = 'sol:gospcx',
12241224
'sol:usd1' = 'sol:usd1',
1225+
'sol:gousd' = 'sol:gousd',
1226+
'tsol:gousd' = 'tsol:gousd',
1227+
'tsol:stggousd' = 'tsol:stggousd',
12251228
'sol:usdm1' = 'sol:usdm1',
12261229
'tsol:slnd' = 'tsol:slnd',
12271230
'tsol:orca' = 'tsol:orca',
@@ -1923,6 +1926,8 @@ export enum UnderlyingAsset {
19231926
'hteth:stgsofid' = 'hteth:stgsofid',
19241927
'hteth:usd1' = 'hteth:usd1',
19251928
'hteth:stgusd1' = 'hteth:stgusd1',
1929+
'hteth:stgscaasacme' = 'hteth:stgscaasacme',
1930+
'hteth:scaasacme' = 'hteth:scaasacme',
19261931
'hteth:cusd' = 'hteth:cusd',
19271932
'hteth:fyusd' = 'hteth:fyusd',
19281933
'hteth:stgcusd' = 'hteth:stgcusd',
@@ -3111,6 +3116,8 @@ export enum UnderlyingAsset {
31113116
'tbsc:busd' = 'tbsc:busd',
31123117
'tbsc:usd1' = 'tbsc:usd1',
31133118
'tbsc:stgusd1' = 'tbsc:stgusd1',
3119+
'tbsc:stgscaasacme' = 'tbsc:stgscaasacme',
3120+
'tbsc:scaasacme' = 'tbsc:scaasacme',
31143121
'bsc:city' = 'bsc:city',
31153122
'bsc:fdusd' = 'bsc:fdusd',
31163123
'bsc:floki' = 'bsc:floki',
@@ -4061,6 +4068,7 @@ export enum UnderlyingAsset {
40614068
'tempo:usdc' = 'tempo:usdc',
40624069
'tempo:usd1' = 'tempo:usd1',
40634070
'tempo:usdt0' = 'tempo:usdt0',
4071+
'tempo:gousd' = 'tempo:gousd',
40644072

40654073
// Tempo testnet tokens
40664074
'ttempo:pathusd' = 'ttempo:pathusd',
@@ -4069,6 +4077,10 @@ export enum UnderlyingAsset {
40694077
'ttempo:thetausd' = 'ttempo:thetausd',
40704078
'ttempo:usd1' = 'ttempo:usd1',
40714079
'ttempo:stgusd1' = 'ttempo:stgusd1',
4080+
'ttempo:gousd' = 'ttempo:gousd',
4081+
'ttempo:stggousd' = 'ttempo:stggousd',
4082+
'ttempo:stgscaasacme' = 'ttempo:stgscaasacme',
4083+
'ttempo:scaasacme' = 'ttempo:scaasacme',
40724084

40734085
// Prividium Ethereum testnet tokens
40744086
'tprividiumeth:USB-ESCROW-D' = 'tprividiumeth:USB-ESCROW-D',

modules/statics/src/coins/bscTokens.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,4 +1715,22 @@ export const bscTokens = [
17151715
UnderlyingAsset['bsc:hybond'],
17161716
BSC_TOKEN_FEATURES
17171717
),
1718+
tbscToken(
1719+
'2d4e4f61-1acd-416c-9d38-3d80d95a38d4',
1720+
'tbsc:stgscaasacme',
1721+
'Testnet Acme USD',
1722+
6,
1723+
'0x3273bfa01f481b13b5fb31f3d47252ea3da2308a',
1724+
UnderlyingAsset['tbsc:stgscaasacme'],
1725+
[...BSC_TOKEN_FEATURES, CoinFeature.STABLECOIN]
1726+
),
1727+
tbscToken(
1728+
'661d9dfc-a267-47e9-ba45-cfb598c58eb3',
1729+
'tbsc:scaasacme',
1730+
'Testnet Acme USD',
1731+
6,
1732+
'0x1494a12f1a60ed1d21ab98f00eb629e5cd16bc17',
1733+
UnderlyingAsset['tbsc:scaasacme'],
1734+
[...BSC_TOKEN_FEATURES, CoinFeature.STABLECOIN]
1735+
),
17181736
];

modules/statics/src/coins/erc20Coins.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12857,6 +12857,30 @@ export const erc20Coins = [
1285712857
undefined,
1285812858
Networks.test.hoodi
1285912859
),
12860+
terc20(
12861+
'5add4bd7-9889-4639-b130-083d083ebbe4',
12862+
'hteth:stgscaasacme',
12863+
'Testnet Acme USD',
12864+
6,
12865+
'0x3273bfa01f481b13b5fb31f3d47252ea3da2308a',
12866+
UnderlyingAsset['hteth:stgscaasacme'],
12867+
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN],
12868+
undefined,
12869+
undefined,
12870+
Networks.test.hoodi
12871+
),
12872+
terc20(
12873+
'3ecfecc1-c910-483f-af54-b737452ceb00',
12874+
'hteth:scaasacme',
12875+
'Testnet Acme USD',
12876+
6,
12877+
'0xadebc52bb71dbc09729d6c0727a507fd42b2944e',
12878+
UnderlyingAsset['hteth:scaasacme'],
12879+
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN],
12880+
undefined,
12881+
undefined,
12882+
Networks.test.hoodi
12883+
),
1286012884
terc20(
1286112885
'8e4f9c4c-2b03-4ad4-8019-ace4bbda3acd',
1286212886
'hteth:sofid',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,10 @@ export const ofcCoins = [
16141614
...SOL_TOKEN_FEATURES,
16151615
CoinFeature.STABLECOIN,
16161616
]),
1617+
ofcsolToken('4cde3d6b-1b58-49f2-a689-6242d819ed3d', 'ofcsol:gousd', 'goUSD', 6, UnderlyingAsset['sol:gousd'], [
1618+
...SOL_TOKEN_FEATURES,
1619+
CoinFeature.STABLECOIN,
1620+
]),
16171621
ofcsolToken('d398e9e1-1a3e-4307-9e31-e1dbc03aa0f0', 'ofcsol:sofid', 'SoFiUSD', 6, UnderlyingAsset['sol:sofid'], [
16181622
...SOL_TOKEN_FEATURES,
16191623
CoinFeature.STABLECOIN,
@@ -2024,6 +2028,22 @@ export const ofcCoins = [
20242028
UnderlyingAsset['sol:usd1'],
20252029
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
20262030
),
2031+
tofcsolToken(
2032+
'cc4c424f-d4e1-4674-8c5f-a1f6754ebde5',
2033+
'ofctsol:gousd',
2034+
'Testnet goUSD',
2035+
6,
2036+
UnderlyingAsset['tsol:gousd'],
2037+
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
2038+
),
2039+
tofcsolToken(
2040+
'0ed96aeb-fdb5-4426-81b2-05791d4c21d8',
2041+
'ofctsol:stggousd',
2042+
'Testnet goUSD',
2043+
6,
2044+
UnderlyingAsset['tsol:stggousd'],
2045+
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
2046+
),
20272047
tofcsolToken(
20282048
'c9ee21a5-d000-45b6-a045-cb307810434b',
20292049
'ofctsol:trump',
@@ -3218,6 +3238,24 @@ export const ofcCoins = [
32183238
undefined,
32193239
[CoinFeature.STABLECOIN]
32203240
),
3241+
tofcBscToken(
3242+
'b94eff50-b8aa-4503-9b56-c6f7fb32bcde',
3243+
'ofctbsc:stgscaasacme',
3244+
'Testnet Acme USD',
3245+
6,
3246+
UnderlyingAsset['tbsc:stgscaasacme'],
3247+
undefined,
3248+
[CoinFeature.STABLECOIN]
3249+
),
3250+
tofcBscToken(
3251+
'6e4c653e-a614-4a68-8a6b-eba76fb37515',
3252+
'ofctbsc:scaasacme',
3253+
'Testnet Acme USD',
3254+
6,
3255+
UnderlyingAsset['tbsc:scaasacme'],
3256+
undefined,
3257+
[CoinFeature.STABLECOIN]
3258+
),
32213259
ofcPolygonErc20(
32223260
'547ce68f-cb4c-4618-bef3-9a0ebe9facd2',
32233261
'ofcpolygon:sbc',
@@ -5104,6 +5142,7 @@ export const ofcCoins = [
51045142
),
51055143
ofcTempoToken('c9a90ee0-6546-413c-9cbe-94fdc14985c5', 'ofctempo:usdc', 'USDC', 6, UnderlyingAsset['tempo:usdc']),
51065144
ofcTempoToken('05ac1283-5e72-4cba-8b0f-38cbd23a25c6', 'ofctempo:usd1', 'USD1', 6, UnderlyingAsset['tempo:usd1']),
5145+
ofcTempoToken('11894b40-38da-4c52-80c3-a824bb452e69', 'ofctempo:gousd', 'goUSD', 6, UnderlyingAsset['tempo:gousd']),
51075146
ofcTempoToken('554f9084-4ac8-466a-8675-3de33ffd47d7', 'ofctempo:usdt0', 'USDT0', 6, UnderlyingAsset['tempo:usdt0']),
51085147
// Tempo testnet OFC tokens
51095148
tofcTempoToken(
@@ -5148,6 +5187,34 @@ export const ofcCoins = [
51485187
6,
51495188
UnderlyingAsset['ttempo:stgusd1']
51505189
),
5190+
tofcTempoToken(
5191+
'7cbcd988-0cec-4d42-849c-d6a00591d862',
5192+
'ofcttempo:gousd',
5193+
'Testnet goUSD',
5194+
6,
5195+
UnderlyingAsset['ttempo:gousd']
5196+
),
5197+
tofcTempoToken(
5198+
'3c728a90-7dc9-4ae9-962f-e18417dffdc2',
5199+
'ofcttempo:stggousd',
5200+
'Testnet goUSD',
5201+
6,
5202+
UnderlyingAsset['ttempo:stggousd']
5203+
),
5204+
tofcTempoToken(
5205+
'8876a3e5-5b6d-4184-8c26-0520b5a4a89b',
5206+
'ofcttempo:stgscaasacme',
5207+
'Testnet Acme USD',
5208+
6,
5209+
UnderlyingAsset['ttempo:stgscaasacme']
5210+
),
5211+
tofcTempoToken(
5212+
'3407563d-4e99-46d5-8d87-16ef1adeb9b3',
5213+
'ofcttempo:scaasacme',
5214+
'Testnet Acme USD',
5215+
6,
5216+
UnderlyingAsset['ttempo:scaasacme']
5217+
),
51515218
ofc('6f0246cf-b792-483a-b720-9755b158c614', 'ofcunieth', 'Unichain', 18, UnderlyingAsset.UNIETH, CoinKind.CRYPTO),
51525219
tofc(
51535220
'4efb1377-8439-410a-b460-2aeeff944fb2',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,6 +4568,34 @@ export const tOfcErc20Coins = [
45684568
undefined,
45694569
'hteth'
45704570
),
4571+
tofcerc20(
4572+
'59a31295-88d3-4142-9e88-c8e500888aef',
4573+
'ofchteth:stgscaasacme',
4574+
'Testnet Acme USD',
4575+
6,
4576+
UnderlyingAsset['hteth:stgscaasacme'],
4577+
undefined,
4578+
[CoinFeature.STABLECOIN],
4579+
undefined,
4580+
undefined,
4581+
undefined,
4582+
undefined,
4583+
'hteth'
4584+
),
4585+
tofcerc20(
4586+
'03ebbbe2-6ba3-45c9-ad82-4f86ae48be69',
4587+
'ofchteth:scaasacme',
4588+
'Testnet Acme USD',
4589+
6,
4590+
UnderlyingAsset['hteth:scaasacme'],
4591+
undefined,
4592+
[CoinFeature.STABLECOIN],
4593+
undefined,
4594+
undefined,
4595+
undefined,
4596+
undefined,
4597+
'hteth'
4598+
),
45714599
tofcerc20(
45724600
'145b2e09-453d-4861-8f54-5791d295bd96',
45734601
'ofchteth:stgsofid',

modules/statics/src/coins/solTokens.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4099,4 +4099,37 @@ export const solTokens = [
40994099
SOL_TOKEN_FEATURES,
41004100
ProgramID.Token2022ProgramId
41014101
),
4102+
solToken(
4103+
'7b7edb2a-3952-4083-8df9-cf16baa8d82c',
4104+
'sol:gousd',
4105+
'goUSD',
4106+
6,
4107+
'7vXcrS2iHjBhQwP6RhAPhZaTGKjodfGPr2H3GDaqmnPN',
4108+
'7vXcrS2iHjBhQwP6RhAPhZaTGKjodfGPr2H3GDaqmnPN',
4109+
UnderlyingAsset['sol:gousd'],
4110+
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN],
4111+
ProgramID.Token2022ProgramId
4112+
),
4113+
tsolToken(
4114+
'5f4de23d-67b5-4a8f-bb31-9c1c72f62489',
4115+
'tsol:gousd',
4116+
'Testnet goUSD',
4117+
6,
4118+
'BtY9vAphvWWtwFoThckHP9ciY9Mvy2nLyhiYKeRhb3Ds',
4119+
'BtY9vAphvWWtwFoThckHP9ciY9Mvy2nLyhiYKeRhb3Ds',
4120+
UnderlyingAsset['tsol:gousd'],
4121+
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN],
4122+
ProgramID.Token2022ProgramId
4123+
),
4124+
tsolToken(
4125+
'0b18da3c-a072-42cb-a3bf-3818af269287',
4126+
'tsol:stggousd',
4127+
'Testnet goUSD',
4128+
6,
4129+
'Ec7mXJZtXnbn34Mt9LaLZe3DRmEZmWCxcNrAmvK4HKaS',
4130+
'Ec7mXJZtXnbn34Mt9LaLZe3DRmEZmWCxcNrAmvK4HKaS',
4131+
UnderlyingAsset['tsol:stggousd'],
4132+
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN],
4133+
ProgramID.Token2022ProgramId
4134+
),
41024135
];

modules/statics/test/unit/tokenNamingConvention.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ describe('Token Naming Convention Tests', function () {
6363
'hteth:qxmp',
6464
'hteth:stgqxmp',
6565
'hteth:usd1',
66+
'hteth:stgscaasacme',
67+
'hteth:scaasacme',
6668
'hteth:amstest',
6769
'hterc18dp',
6870
'hteth:bgerchv2',

0 commit comments

Comments
 (0)