Skip to content

Commit 97be6dc

Browse files
feat: add support for new tokens in ERC20 and OFC ERC20 definitions
Ticket: WIN-7847
1 parent 312f74a commit 97be6dc

File tree

7 files changed

+88
-5
lines changed

7 files changed

+88
-5
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import { ada } from './ada';
5252
import { avaxp } from './avaxp';
5353
import { BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base';
5454
import { canton } from './canton';
55-
import { erc20Coins } from './coins/erc20Coins';
55+
import { erc20Tokens } from './coins/erc20Tokens';
5656
import { avaxTokens } from './coins/avaxTokens';
5757
import { bscTokens } from './coins/bscTokens';
5858
import { polygonTokens } from './coins/polygonTokens';
@@ -139,7 +139,7 @@ import { adaTokens } from './coins/adaTokens';
139139
export const allCoinsAndTokens = [
140140
...lightningCoins,
141141
...utxoCoins,
142-
...erc20Coins,
142+
...erc20Tokens,
143143
...avaxTokens,
144144
...bscTokens,
145145
...polygonTokens,

modules/statics/src/base.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,11 @@ export enum UnderlyingAsset {
23052305
'eth:kpk' = 'eth:kpk',
23062306
'eth:devve' = 'eth:devve',
23072307
'eth:fbtc' = 'eth:fbtc',
2308+
'eth:byzusd' = 'eth:byzusd',
2309+
'eth:audm' = 'eth:audm',
2310+
'eth:usdi' = 'eth:usdi',
2311+
'eth:tea' = 'eth:tea',
2312+
'eth:ofc' = 'eth:ofc',
23082313

23092314
'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ' = 'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ',
23102315
'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M' = 'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M',
@@ -2578,6 +2583,7 @@ export enum UnderlyingAsset {
25782583
'polygon:zig' = 'polygon:zig',
25792584
'polygon:brl1' = 'polygon:brl1',
25802585
'polygon:cnktplus' = 'polygon:cnktplus',
2586+
'polygon:mmt54' = 'polygon:mmt54',
25812587
// Polygon NFTs
25822588
// generic NFTs
25832589
'erc721:polygontoken' = 'erc721:polygontoken',

modules/statics/src/coins/erc20Coins.ts renamed to modules/statics/src/coins/erc20Tokens.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE,
2525
} from '../coinFeatures';
2626

27-
export const erc20Coins = [
27+
export const erc20Tokens = [
2828
erc20(
2929
'3cdd1d41-b561-4c0c-aa82-72c52ebe69e5',
3030
'eth:kava',
@@ -14016,4 +14016,47 @@ export const erc20Coins = [
1401614016
'0xc96de26018a54d51c097160568752c4e3bd6c364',
1401714017
UnderlyingAsset['eth:fbtc']
1401814018
),
14019+
erc20(
14020+
'f2327bcc-41a0-446d-b482-4d1148c24343',
14021+
'eth:byzusd',
14022+
'Byzantine Prime USD',
14023+
18,
14024+
'0x30cacd22f178c9e57b0b010e1f9432881aa530c4',
14025+
UnderlyingAsset['eth:byzusd']
14026+
),
14027+
14028+
erc20(
14029+
'17d33c86-258a-47b7-abab-486b5e349965',
14030+
'eth:audm',
14031+
'Macropod Stablecoin',
14032+
18,
14033+
'0x081599e4936d12c46bd48913b2329115cd26cbdd',
14034+
UnderlyingAsset['eth:audm']
14035+
),
14036+
14037+
erc20(
14038+
'bb874b3f-8844-4d92-82cf-c3dcfdcfebd0',
14039+
'eth:usdi',
14040+
'USDi',
14041+
6,
14042+
'0xaf1157149ff040dad186a0142a796d901bef1cf1',
14043+
UnderlyingAsset['eth:usdi']
14044+
),
14045+
erc20(
14046+
'4ff37854-c686-4114-bbf2-6bfeeb7e14b1',
14047+
'eth:tea',
14048+
'Tea',
14049+
18,
14050+
'0x7ea7ea50ed58bc4d0a9194bcd328e21f7be80c2b',
14051+
UnderlyingAsset['eth:tea']
14052+
),
14053+
14054+
erc20(
14055+
'c72cb819-15bc-4265-8efb-c0421edda866',
14056+
'eth:ofc',
14057+
'OneFootball Club',
14058+
18,
14059+
'0x9cb7a4ef0cae65b07362bc679a0b874041e3da53',
14060+
UnderlyingAsset['eth:ofc']
14061+
),
1401914062
];

modules/statics/src/coins/ofcCoins.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,6 +3217,14 @@ export const ofcCoins = [
32173217
18,
32183218
UnderlyingAsset['polygon:brl1']
32193219
),
3220+
ofcPolygonErc20(
3221+
'bb845778-42b3-4277-a291-a0d703e5961e',
3222+
'ofcpolygon:mmt54',
3223+
'METWAVE MINE',
3224+
15,
3225+
UnderlyingAsset['polygon:mmt54']
3226+
),
3227+
32203228
tofcPolygonErc20(
32213229
'62f4329d-11cd-4875-b91b-9ceae66c9439',
32223230
'ofctpolygon:link',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,6 +4533,23 @@ export const tOfcErc20Coins = [
45334533
),
45344534
ofcerc20('c71454e2-c51c-40df-8605-e57f2d97ed53', 'ofceth:yu', 'Yala Stablecoin', 18, UnderlyingAsset['eth:yu']),
45354535
ofcerc20('72427813-ec17-4100-8d6d-844a3f71f34e', 'ofceth:fbtc', 'Function Bitcoin', 8, UnderlyingAsset['eth:fbtc']),
4536+
ofcerc20(
4537+
'e050aeab-a9c9-4962-b42f-d350c88efb37',
4538+
'ofceth:byzusd',
4539+
'Byzantine Prime USD',
4540+
18,
4541+
UnderlyingAsset['eth:byzusd']
4542+
),
4543+
ofcerc20(
4544+
'c3bbb0f5-a0d8-4651-ac4b-3727383f59ec',
4545+
'ofceth:audm',
4546+
'Macropod Stablecoin',
4547+
18,
4548+
UnderlyingAsset['eth:audm']
4549+
),
4550+
ofcerc20('884a97f2-5808-4614-814e-2cd1d17d29df', 'ofceth:usdi', 'USDi', 6, UnderlyingAsset['eth:usdi']),
4551+
ofcerc20('f4e98148-b703-4608-b416-67cd89c8a9f0', 'ofceth:tea', 'Tea', 18, UnderlyingAsset['eth:tea']),
4552+
ofcerc20('727298fe-56c5-477a-92af-5b4139e792ea', 'ofceth:ofc', 'OneFootball Club', 18, UnderlyingAsset['eth:ofc']),
45364553
];
45374554

45384555
function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {

modules/statics/src/coins/polygonTokens.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,15 @@ export const polygonTokens = [
11141114
UnderlyingAsset['polygon:brl1'],
11151115
POLYGON_TOKEN_FEATURES
11161116
),
1117+
polygonErc20(
1118+
'93611666-ac86-4859-805d-2604aea6a748',
1119+
'polygon:mmt54',
1120+
'METWAVE MINE',
1121+
15,
1122+
'0x36178970375da9f363104555149a0bcaf80c777b',
1123+
UnderlyingAsset['polygon:mmt54'],
1124+
POLYGON_TOKEN_FEATURES
1125+
),
11171126
// testnet polygon tokens
11181127
tpolygonErc20(
11191128
'09ba76d0-331e-4b75-bb75-739285c3e03a',

modules/statics/test/unit/tokenNamingConvention.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { erc20Coins } from '../../src/coins/erc20Coins';
1+
import { erc20Tokens } from '../../src/coins/erc20Tokens';
22
import { cosmosTokens } from '../../src/coins/cosmosTokens';
33
import { avaxTokens } from '../../src/coins/avaxTokens';
44
import { bscTokens } from '../../src/coins/bscTokens';
@@ -9,7 +9,7 @@ import { NetworkType } from '../../src/networks';
99

1010
describe('Token Naming Convention Tests', function () {
1111
const allTokens = [
12-
...erc20Coins,
12+
...erc20Tokens,
1313
...cosmosTokens,
1414
...avaxTokens,
1515
...bscTokens,

0 commit comments

Comments
 (0)