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
2 changes: 1 addition & 1 deletion src/chains/foundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const foundryChainNameMap: Record<ChainId, string> = {
[ChainId.FLW]: 'flow',
[ChainId.HMI]: 'hemi',
[ChainId.MON]: 'monad',
[ChainId.STA]: 'hyperevm',
[ChainId.STA]: 'stable',

// Custom chains
[7777777 as ChainId]: 'zora',
Expand Down
24 changes: 24 additions & 0 deletions src/chains/supportedChains.evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1789,4 +1789,28 @@ export const supportedEVMChains: EVMChain[] = [
],
},
},

{
key: ChainKey.STA,
chainType: ChainType.EVM,
name: 'Stable',
coin: CoinKey.GUSDT,
id: ChainId.STA,
mainnet: true,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/stable.svg',
relayerSupported: false,
multicallAddress: multicallAddresses[ChainId.STA],
metamask: {
chainId: prefixChainId(ChainId.STA),
blockExplorerUrls: ['https://stablescan.xyz/'],
chainName: 'Stable',
nativeCurrency: {
name: 'gasUSDT',
symbol: CoinKey.GUSDT,
decimals: 18,
},
rpcUrls: ['https://rpc.stable.xyz'],
},
},
]
30 changes: 30 additions & 0 deletions src/coins/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2869,6 +2869,10 @@ export const basicCoins: BasicCoin[] = [
address: '0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
decimals: 6,
},
[ChainId.STA]: {
address: '0x779Ded0c9e1022225f8E0630b35a9b54bE713736',
decimals: 6,
},
},
},

Expand Down Expand Up @@ -3021,6 +3025,21 @@ export const basicCoins: BasicCoin[] = [
},
},

// gasUSDT (Stable Chain native)
{
key: CoinKey.GUSDT,
name: 'gasUSDT',
logoURI:
'https://static.debank.com/image/ink_token/logo_url/0x0200c29006150606b650577bbe7b6248f58470c1/8bba37fddc2774e06a94b8952e3e3ad7.png',
verified: true,
chains: {
[ChainId.STA]: {
address: '0x0000000000000000000000000000000000001000',
decimals: 18,
},
},
},

// > Bitcoin
{
key: CoinKey.BTC,
Expand Down Expand Up @@ -3812,6 +3831,17 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
logoURI:
'https://static.debank.com/image/ink_token/logo_url/0xfbbf3f86a29467f3866d0ab37b8c72b5ca1b159f/d75d4109e99126aa282e2da1e5267db7.png',
},
// Stable uses USDTO as their wrapped native token
[ChainId.STA]: {
address: '0x779Ded0c9e1022225f8E0630b35a9b54bE713736',
symbol: 'USDT0',
decimals: 6,
chainId: ChainId.STA,
coinKey: CoinKey.USDT0,
name: 'USD₮0',
logoURI:
'https://static.debank.com/image/ink_token/logo_url/0x0200c29006150606b650577bbe7b6248f58470c1/8bba37fddc2774e06a94b8952e3e3ad7.png',
},
}
export const findDefaultCoin = (coinKey: CoinKey): Coin => {
const coin = defaultCoins.find((coin) => coin.key === coinKey)
Expand Down
1 change: 1 addition & 0 deletions src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
[ChainId.FLW]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.HMI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.MON]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.STA]: '0xcA11bde05977b3631167028862bE2a173976CA11',

// TODO
// [ChainId.EXP]: '', // TODO
Expand Down
Loading