Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3036,6 +3036,17 @@ export const allCoinsAndTokens = [
Networks.test.plume
),

// HederaEVM testnet token
erc20Token(
'e2926ac1-9225-4b83-9f8b-51f805040c13',
'thbarevm:hbarnativetoken',
'Testnet HBAREVM Native Token',
18,
'0x0000000000000000000000000000000000728a62',
UnderlyingAsset['thbarevm:hbarnativetoken'],
Networks.test.hederaEVM
),

hederaCoin(
'98aad956-27ee-45dd-aa43-6a23c9a1d1d0',
'hbar',
Expand Down
3 changes: 3 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3374,6 +3374,9 @@ export enum UnderlyingAsset {
// Hbar Testnet tokens
'thbar:txsgd' = 'thbar:txsgd',

// Hbarevm TEstnet Tokens
'thbarevm:hbarnativetoken' = 'thbarevm:hbarnativetoken',

// Nep141 tokens
'near:usdc' = 'near:usdc',
'near:usdt' = 'near:usdt',
Expand Down
7 changes: 6 additions & 1 deletion modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,12 @@ describe('create token map using config details', () => {
it('should create ERC721 tokens for all coins supporting ERC721 using createToken', () => {
// Get all ERC721 token configs from allCoinsAndTokens that support ERC721
const erc721TokenConfigs = allCoinsAndTokens
.filter((coin) => coin.isToken && coins.get(coin.family).features.includes(CoinFeature.SUPPORTS_ERC721))
.filter(
(coin) =>
coin.isToken &&
coins.get(coin.family).features.includes(CoinFeature.SUPPORTS_ERC721) &&
coin.asset === UnderlyingAsset.ERC721
)
.map((coin) => coin);

for (const tokenConfig of erc721TokenConfigs) {
Expand Down