Skip to content

Commit 2411bb0

Browse files
feat(statics): add tokens hteth:usd1 and tbsc:usd1
Ticket: TMS-506
1 parent 66abf5e commit 2411bb0

File tree

7 files changed

+97
-0
lines changed

7 files changed

+97
-0
lines changed

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = {
5656
'SC-',
5757
'ST-',
5858
'STLX-',
59+
'TMS-',
5960
'TRUST-',
6061
'USDS-',
6162
'VL-',

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ export enum UnderlyingAsset {
15831583
TUSDS = 'tusds',
15841584
TGOUSD = 'tgousd',
15851585
'hteth:gousd' = 'hteth:gousd',
1586+
'hteth:usd1' = 'hteth:usd1',
15861587
THKD = 'thkd',
15871588
THUNDER = 'thunder',
15881589
TIO = 'tio',
@@ -2244,6 +2245,7 @@ export enum UnderlyingAsset {
22442245
'bsc:pax' = 'bsc:pax',
22452246
'bsc:volt' = 'bsc:volt',
22462247
'tbsc:busd' = 'tbsc:busd',
2248+
'tbsc:usd1' = 'tbsc:usd1',
22472249
'bsc:city' = 'bsc:city',
22482250
'bsc:fdusd' = 'bsc:fdusd',
22492251
'bsc:floki' = 'bsc:floki',

modules/statics/src/coins/bscTokens.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,4 +1154,13 @@ export const bscTokens = [
11541154
UnderlyingAsset['tbsc:busd'],
11551155
BSC_TOKEN_FEATURES
11561156
),
1157+
tbscToken(
1158+
'bfd0daec-f849-4b96-bdb6-6373bffeb9b6',
1159+
'tbsc:usd1',
1160+
'Test USD1 Token',
1161+
18,
1162+
'0xb0652e70b4ad023d5be50a4427bfa556cf8cbb5e',
1163+
UnderlyingAsset['tbsc:usd1'],
1164+
BSC_TOKEN_FEATURES
1165+
),
11571166
];

modules/statics/src/coins/erc20Coins.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10839,6 +10839,18 @@ export const erc20Coins = [
1083910839
undefined,
1084010840
Networks.test.holesky
1084110841
),
10842+
terc20(
10843+
'0354c858-912b-4a65-b3e1-9b29a5f8573a',
10844+
'hteth:usd1',
10845+
'Holesky Testnet USD1',
10846+
18,
10847+
'0x978b411161325c7b689573396d717c828d9f480a',
10848+
UnderlyingAsset['hteth:usd1'],
10849+
undefined,
10850+
undefined,
10851+
undefined,
10852+
Networks.test.holesky
10853+
),
1084210854
terc20(
1084310855
'30179af0-ca75-4cb1-99d9-028bc56bf10e',
1084410856
'tmsn',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
ofcStellarToken,
1212
tofcStellarToken,
1313
ofcBscToken,
14+
tofcBscToken,
1415
ofcAvaxErc20,
1516
tofcAvaxErc20,
1617
ofcArbethErc20,
@@ -1222,6 +1223,13 @@ export const ofcCoins = [
12221223
UnderlyingAsset['bsc:psg']
12231224
),
12241225
ofcBscToken('5c7a8f9e-4b1e-1f2e-9d6f-7c8a1b6f2e5a', 'ofcbsc:telos', 'Telos', 18, UnderlyingAsset['bsc:telos']),
1226+
tofcBscToken(
1227+
'bf8a52e5-f416-46ea-95c2-a920dc204233',
1228+
'ofctbsc:usd1',
1229+
'Test USD1 Token',
1230+
18,
1231+
UnderlyingAsset['tbsc:usd1']
1232+
),
12251233
ofcPolygonErc20(
12261234
'547ce68f-cb4c-4618-bef3-9a0ebe9facd2',
12271235
'ofcpolygon:sbc',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,6 +3225,20 @@ export const tOfcErc20Coins = [
32253225
undefined,
32263226
'hteth'
32273227
),
3228+
tofcerc20(
3229+
'4dc4534c-72b8-4a68-a914-210dae1e5d4d',
3230+
'ofchteth:usd1',
3231+
'Holesky Testnet USD1',
3232+
18,
3233+
UnderlyingAsset['hteth:usd1'],
3234+
undefined,
3235+
undefined,
3236+
undefined,
3237+
undefined,
3238+
undefined,
3239+
undefined,
3240+
'hteth'
3241+
),
32283242
];
32293243

32303244
function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {

modules/statics/src/ofc.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,57 @@ export function ofcBscToken(
10221022
);
10231023
}
10241024

1025+
/**
1026+
* Factory function for testnet ofc bsc token instances.
1027+
*
1028+
* @param id uuid v4
1029+
* @param name unique identifier of the coin
1030+
* @param fullName Complete human-readable name of the coin
1031+
* @param network Network object for this coin
1032+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
1033+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
1034+
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
1035+
* @param prefix? Optional coin prefix. Defaults to empty string
1036+
* @param suffix? Optional coin suffix. Defaults to coin name.
1037+
* @param isToken? Whether or not this account coin is a token of another coin
1038+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
1039+
* @param primaryKeyCurve The elliptic curve for this chain/token
1040+
*/
1041+
export function tofcBscToken(
1042+
id: string,
1043+
name: string,
1044+
fullName: string,
1045+
decimalPlaces: number,
1046+
asset: UnderlyingAsset,
1047+
kind: CoinKind = CoinKind.CRYPTO,
1048+
features: CoinFeature[] = OfcCoin.DEFAULT_FEATURES,
1049+
prefix = '',
1050+
suffix: string = name.replace(/^ofc/, '').toUpperCase(),
1051+
network: OfcNetwork = Networks.test.ofc,
1052+
isToken = true,
1053+
addressCoin = 'tbsc',
1054+
primaryKeyCurve: KeyCurve = KeyCurve.Secp256k1
1055+
) {
1056+
return Object.freeze(
1057+
new OfcCoin({
1058+
id,
1059+
name,
1060+
fullName,
1061+
network,
1062+
prefix,
1063+
suffix,
1064+
features,
1065+
decimalPlaces,
1066+
isToken,
1067+
asset,
1068+
kind,
1069+
addressCoin,
1070+
primaryKeyCurve,
1071+
baseUnit: BaseUnit.BSC,
1072+
})
1073+
);
1074+
}
1075+
10251076
/**
10261077
* Factory function for mainnet ofc xrp instances.
10271078
*

0 commit comments

Comments
 (0)