Skip to content

Commit 71a23ac

Browse files
committed
feat: add Testnet HBAREVM token
ticket: win-8414
1 parent 2d778e1 commit 71a23ac

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,6 +3455,8 @@ export enum UnderlyingAsset {
34553455
GBP = 'gbp',
34563456
SGD = 'sgd',
34573457
USD = 'usd',
3458+
3459+
'thbarevm:hbarnativetoken' = 'thbarevm:hbarnativetoken',
34583460
}
34593461

34603462
/**

modules/statics/src/coins/erc20Coins.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CoinFeature, UnderlyingAsset } from '../base';
2-
import { AccountCoin, erc20, terc20 } from '../account';
2+
import { AccountCoin, erc20, terc20, erc20Token } from '../account';
33
import { Networks } from '../networks';
44
import {
55
ACCOUNT_COIN_DEFAULT_FEATURES,
@@ -14195,4 +14195,13 @@ export const erc20Coins = [
1419514195
'0x4d1c297d39c5c1277964d0e3f8aa901493664530',
1419614196
UnderlyingAsset['eth:puffer']
1419714197
),
14198+
erc20Token(
14199+
'e2926ac1-9225-4b83-9f8b-51f805040c13',
14200+
'thbarevm:hbarnativetoken',
14201+
'Testnet HBAREVM Native Token',
14202+
18,
14203+
'0x0000000000000000000000000000000000728a62',
14204+
UnderlyingAsset['thbarevm:hbarnativetoken'],
14205+
Networks.test.hederaEVM
14206+
),
1419814207
];

modules/statics/test/unit/coins.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,12 @@ describe('create token map using config details', () => {
13031303
it('should create ERC721 tokens for all coins supporting ERC721 using createToken', () => {
13041304
// Get all ERC721 token configs from allCoinsAndTokens that support ERC721
13051305
const erc721TokenConfigs = allCoinsAndTokens
1306-
.filter((coin) => coin.isToken && coins.get(coin.family).features.includes(CoinFeature.SUPPORTS_ERC721))
1306+
.filter(
1307+
(coin) =>
1308+
coin.isToken &&
1309+
coins.get(coin.family).features.includes(CoinFeature.SUPPORTS_ERC721) &&
1310+
coin.asset === UnderlyingAsset.ERC721
1311+
)
13071312
.map((coin) => coin);
13081313

13091314
for (const tokenConfig of erc721TokenConfigs) {

0 commit comments

Comments
 (0)