Skip to content

Commit b0d8d45

Browse files
Merge pull request #5971 from BitGo/manas/WIN-5208-network-feature-token-map
feat: added new constants to map network family to features for token
2 parents 8682739 + f742fce commit b0d8d45

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { AccountCoin } from './account';
2+
import { CoinFamily, CoinFeature } from './base';
3+
import {
4+
APT_FEATURES,
5+
BSC_TOKEN_FEATURES,
6+
POLYGON_TOKEN_FEATURES,
7+
SOL_TOKEN_FEATURES,
8+
STX_TOKEN_FEATURES,
9+
SUI_TOKEN_FEATURES,
10+
} from './coinFeatures';
11+
12+
export const networkFeatureMapForTokens: Partial<Record<CoinFamily, CoinFeature[]>> = {
13+
algo: AccountCoin.DEFAULT_FEATURES,
14+
apt: APT_FEATURES,
15+
arbeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
16+
avaxc: AccountCoin.DEFAULT_FEATURES,
17+
bera: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
18+
bsc: BSC_TOKEN_FEATURES,
19+
celo: AccountCoin.DEFAULT_FEATURES,
20+
eth: AccountCoin.DEFAULT_FEATURES,
21+
eos: AccountCoin.DEFAULT_FEATURES,
22+
hbar: AccountCoin.DEFAULT_FEATURES,
23+
opeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
24+
polygon: POLYGON_TOKEN_FEATURES,
25+
sol: SOL_TOKEN_FEATURES,
26+
stx: STX_TOKEN_FEATURES,
27+
sui: SUI_TOKEN_FEATURES,
28+
trx: AccountCoin.DEFAULT_FEATURES,
29+
xlm: AccountCoin.DEFAULT_FEATURES,
30+
xrp: AccountCoin.DEFAULT_FEATURES,
31+
};

0 commit comments

Comments
 (0)