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 @@ -2678,6 +2678,17 @@ export const allCoinsAndTokens = [
Networks.main.mon
),

// Story testnet tokens
erc20Token(
'f9a9c36f-8938-4206-bf0d-5016a861c58f',
'tip:usdc',
'Testnet Story USDC',
6,
'0x8c7c52eabb0fcbcaebce2556d9a719d539ea02d8',
UnderlyingAsset['tip:usdc'],
Networks.test.ip
),

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 @@ -2898,6 +2898,9 @@ export enum UnderlyingAsset {
'xdc:srx' = 'xdc:srx',
'xdc:weth' = 'xdc:weth',

// Story testnet tokens
'tip:usdc' = 'tip:usdc',

// Arbitrum testnet tokens
'tarbeth:link' = 'tarbeth:link',
'tarbeth:xsgd' = 'tarbeth:xsgd',
Expand Down
4 changes: 3 additions & 1 deletion modules/statics/src/tokenConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export interface TokenNetwork {
bera: { tokens: EthLikeTokenConfig[] };
mon: { tokens: EthLikeTokenConfig[] };
xdc: { tokens: EthLikeTokenConfig[] };
ip: { tokens: EthLikeTokenConfig[] };
apt: {
tokens: AptTokenConfig[];
nftCollections: AptNFTCollectionConfig[];
Expand Down Expand Up @@ -1119,8 +1120,9 @@ export const getEthLikeTokens = (network: 'Mainnet' | 'Testnet'): EthLikeTokenMa

const getFormattedTokensByNetwork = (network: 'Mainnet' | 'Testnet', coinMap: typeof coins) => {
const networkType = network === 'Mainnet' ? NetworkType.MAINNET : NetworkType.TESTNET;

const ethLikeTokenMap = getEthLikeTokens(network);
return {
...ethLikeTokenMap,
eth: {
tokens: getFormattedErc20Tokens(coinMap).filter((token) => token.network === network),
nfts: getFormattedErc721Tokens(coinMap).filter((token) => token.network === network),
Expand Down