Skip to content

Commit bb36c0a

Browse files
authored
Merge pull request #7787 from BitGo/erc721
feat: add Testnet HBAREVM token
2 parents 0eb3975 + f1c1f90 commit bb36c0a

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,6 +3036,17 @@ export const allCoinsAndTokens = [
30363036
Networks.test.plume
30373037
),
30383038

3039+
// HederaEVM testnet token
3040+
erc20Token(
3041+
'e2926ac1-9225-4b83-9f8b-51f805040c13',
3042+
'thbarevm:hbarnativetoken',
3043+
'Testnet HBAREVM Native Token',
3044+
18,
3045+
'0x0000000000000000000000000000000000728a62',
3046+
UnderlyingAsset['thbarevm:hbarnativetoken'],
3047+
Networks.test.hederaEVM
3048+
),
3049+
30393050
hederaCoin(
30403051
'98aad956-27ee-45dd-aa43-6a23c9a1d1d0',
30413052
'hbar',

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,6 +3374,9 @@ export enum UnderlyingAsset {
33743374
// Hbar Testnet tokens
33753375
'thbar:txsgd' = 'thbar:txsgd',
33763376

3377+
// Hbarevm TEstnet Tokens
3378+
'thbarevm:hbarnativetoken' = 'thbarevm:hbarnativetoken',
3379+
33773380
// Nep141 tokens
33783381
'near:usdc' = 'near:usdc',
33793382
'near:usdt' = 'near:usdt',

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)