Skip to content

Commit e140bc7

Browse files
chore: added new tokens for baseeth, lineath, seievm and flow
TICKET: WIN-7285
1 parent b01a9c1 commit e140bc7

File tree

5 files changed

+306
-6
lines changed

5 files changed

+306
-6
lines changed

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,21 @@ export function getTokenConstructor(tokenConfig: TokenConfig): CoinConstructor |
962962
case 'apt':
963963
case 'tapt':
964964
return AptToken.createTokenConstructor(tokenConfig as AptTokenConfig);
965+
case 'flow':
966+
case 'tflow': {
967+
const coinNames = { Mainnet: 'flow', Testnet: 'tflow' };
968+
return EthLikeErc20Token.createTokenConstructor(tokenConfig as EthLikeTokenConfig, coinNames);
969+
}
970+
case 'seievm':
971+
case 'tseievm': {
972+
const coinNames = { Mainnet: 'seievm', Testnet: 'tseievm' };
973+
return EthLikeErc20Token.createTokenConstructor(tokenConfig as EthLikeTokenConfig, coinNames);
974+
}
975+
case 'lineaeth':
976+
case 'tlineaeth': {
977+
const coinNames = { Mainnet: 'lineaeth', Testnet: 'tlineaeth' };
978+
return EthLikeErc20Token.createTokenConstructor(tokenConfig as EthLikeTokenConfig, coinNames);
979+
}
965980
case 'stx':
966981
case 'tstx':
967982
return Sip10Token.createTokenConstructor(tokenConfig as Sip10TokenConfig);

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 171 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ export const allCoinsAndTokens = [
825825
CoinFeature.EVM_COMPATIBLE_UI,
826826
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
827827
CoinFeature.EVM_NON_BITGO_RECOVERY,
828+
CoinFeature.SUPPORTS_ERC20,
828829
]
829830
),
830831
account(
@@ -843,6 +844,7 @@ export const allCoinsAndTokens = [
843844
CoinFeature.EVM_COMPATIBLE_UI,
844845
CoinFeature.EVM_NON_BITGO_RECOVERY,
845846
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
847+
CoinFeature.SUPPORTS_ERC20,
846848
],
847849
KeyCurve.Secp256k1,
848850
'',
@@ -1983,6 +1985,7 @@ export const allCoinsAndTokens = [
19831985
CoinFeature.EVM_COMPATIBLE_IMS,
19841986
CoinFeature.EVM_COMPATIBLE_UI,
19851987
CoinFeature.EVM_COMPATIBLE_WP,
1988+
CoinFeature.SUPPORTS_ERC20,
19861989
]
19871990
),
19881991
account(
@@ -2126,6 +2129,15 @@ export const allCoinsAndTokens = [
21262129
BaseUnit.ETH,
21272130
CELO_FEATURES
21282131
),
2132+
erc20Token(
2133+
'16c438c1-714a-4ad7-bdb1-fb8d2575c466',
2134+
'tbaseeth:usdc',
2135+
'Testnet USDC',
2136+
6,
2137+
'0x036cbd53842c5426634e7929541ec2318f3dcf7e',
2138+
UnderlyingAsset['tbaseeth:usdc'],
2139+
Networks.test.basechain
2140+
),
21292141
erc20Token(
21302142
'03b67719-a5d5-4ae3-a050-252b948f4daa',
21312143
'baseeth:aero',
@@ -2136,13 +2148,166 @@ export const allCoinsAndTokens = [
21362148
Networks.main.basechain
21372149
),
21382150
erc20Token(
2139-
'16c438c1-714a-4ad7-bdb1-fb8d2575c466',
2140-
'tbaseeth:usdc',
2141-
'Testnet USDC',
2151+
'07e33515-183e-400b-a681-53a7e4b6df02',
2152+
'baseeth:usdc',
2153+
'USDC',
21422154
6,
2143-
'0x036cbd53842c5426634e7929541ec2318f3dcf7e',
2144-
UnderlyingAsset['tbaseeth:usdc'],
2145-
Networks.test.basechain
2155+
'0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
2156+
UnderlyingAsset['baseeth:usdc'],
2157+
Networks.main.basechain
2158+
),
2159+
erc20Token(
2160+
'3d542986-403f-4302-aa57-95f4dec26727',
2161+
'baseeth:wbtc',
2162+
'Wrapped BTC',
2163+
8,
2164+
'0x0555e30da8f98308edb960aa94c0db47230d2b9c',
2165+
UnderlyingAsset['baseeth:wbtc'],
2166+
Networks.main.basechain
2167+
),
2168+
erc20Token(
2169+
'b7e7a9f6-4563-45d0-ba5f-260c2f363638',
2170+
'baseeth:usde',
2171+
'Ethena USDe',
2172+
18,
2173+
'0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
2174+
UnderlyingAsset['baseeth:usde'],
2175+
Networks.main.basechain
2176+
),
2177+
erc20Token(
2178+
'525a07c9-4df0-4e79-8e65-9cf74e07cd5b',
2179+
'baseeth:trust',
2180+
'Trust',
2181+
18,
2182+
'0x6cd905df2ed214b22e0d48ff17cd4200c1c6d8a3',
2183+
UnderlyingAsset['baseeth:trust'],
2184+
Networks.main.basechain
2185+
),
2186+
erc20Token(
2187+
'e8be1d67-4e15-4865-af1c-a0c4dc1902f3',
2188+
'baseeth:flk',
2189+
'Fleek',
2190+
18,
2191+
'0xe0969ec84456b7e4d3dd2181fb5265edbb63f7bd',
2192+
UnderlyingAsset['baseeth:flk'],
2193+
Networks.main.basechain
2194+
),
2195+
erc20Token(
2196+
'3842a6cf-1bd5-4741-ad09-1071e8f5e26c',
2197+
'seievm:usdc',
2198+
'USDC',
2199+
6,
2200+
'0xe15fc38f6d8c56af07bbcbe3baf5708a2bf42392',
2201+
UnderlyingAsset['seievm:usdc'],
2202+
Networks.main.seievm
2203+
),
2204+
erc20Token(
2205+
'94cbea4e-c56d-4b43-aa38-83c8806eda3e',
2206+
'seievm:weth',
2207+
'Wrapped Ether',
2208+
18,
2209+
'0x160345fc359604fc6e70e3c5facbde5f7a9342d8',
2210+
UnderlyingAsset['seievm:weth'],
2211+
Networks.main.seievm
2212+
),
2213+
erc20Token(
2214+
'c4f2a3af-15df-4dc8-95ff-55150d150c30',
2215+
'seievm:wbtc',
2216+
'Wrapped BTC',
2217+
8,
2218+
'0x0555e30da8f98308edb960aa94c0db47230d2b9c',
2219+
UnderlyingAsset['seievm:wbtc'],
2220+
Networks.main.seievm
2221+
),
2222+
erc20Token(
2223+
'af997171-f1c5-4938-b88c-0bfd2b98aed4',
2224+
'seievm:usd0',
2225+
'USD₮0',
2226+
6,
2227+
'0x9151434b16b9763660705744891fa906f660ecc5',
2228+
UnderlyingAsset['seievm:usd0'],
2229+
Networks.main.seievm
2230+
),
2231+
erc20Token(
2232+
'0ad7a932-bccf-4f37-a201-69ae3571bfa7',
2233+
'lineaeth:linea',
2234+
'Linea',
2235+
18,
2236+
'0x1789e0043623282d5dcc7f213d703c6d8bafbb04',
2237+
UnderlyingAsset['lineaeth:linea'],
2238+
Networks.main.lineaeth
2239+
),
2240+
erc20Token(
2241+
'fa924bd1-eb96-4e40-aecc-447e64aea7dc',
2242+
'lineaeth:usdt',
2243+
'Linea USDT',
2244+
6,
2245+
'0xa219439258ca9da29e9cc4ce5596924745e12b93',
2246+
UnderlyingAsset['lineaeth:usdt'],
2247+
Networks.main.lineaeth
2248+
),
2249+
erc20Token(
2250+
'8a2e3d48-f8f2-441b-9c64-cbed6e607d1a',
2251+
'lineaeth:usdc',
2252+
'Linea USDC',
2253+
6,
2254+
'0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
2255+
UnderlyingAsset['lineaeth:usdc'],
2256+
Networks.main.lineaeth
2257+
),
2258+
erc20Token(
2259+
'5fd24ec5-2312-4c44-8323-6a2a1fec401b',
2260+
'flow:usdf',
2261+
'USD Flow',
2262+
6,
2263+
'0x2aabea2058b5ac2d339b163c6ab6f2b6d53aabed',
2264+
UnderlyingAsset['flow:usdf'],
2265+
Networks.main.flow
2266+
),
2267+
erc20Token(
2268+
'107f05d3-fe76-40a0-97aa-72478eddbe39',
2269+
'flow:wflow',
2270+
'Wrapped Flow',
2271+
18,
2272+
'0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e',
2273+
UnderlyingAsset['flow:wflow'],
2274+
Networks.main.flow
2275+
),
2276+
erc20Token(
2277+
'cf416c79-0c47-4fe8-b534-1fff088332f3',
2278+
'flow:weth',
2279+
'WETH',
2280+
18,
2281+
'0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590',
2282+
UnderlyingAsset['flow:weth'],
2283+
Networks.main.flow
2284+
),
2285+
erc20Token(
2286+
'7c6e8a37-6f6a-4f9a-9b38-fa43d61bc3d9',
2287+
'baseeth:icnt',
2288+
'Impossible Cloud Network Token',
2289+
18,
2290+
'0xe0cd4cacddcbf4f36e845407ce53e87717b6601d',
2291+
UnderlyingAsset['baseeth:icnt'],
2292+
Networks.main.basechain
2293+
),
2294+
erc20Token(
2295+
'f5df6b74-c009-4d28-95e6-3cc7e66427b6',
2296+
'baseeth:weth',
2297+
'Wrapped Ether',
2298+
18,
2299+
'0x4200000000000000000000000000000000000006',
2300+
UnderlyingAsset['baseeth:weth'],
2301+
Networks.main.basechain
2302+
),
2303+
erc20Token(
2304+
'e8c95214-a0d1-42b7-8ea1-64857c324216',
2305+
'baseeth:morpho',
2306+
'Morpho Token',
2307+
18,
2308+
'0xbaa5cc21fd487b8fcc2f632f3f4e8d37262a0842',
2309+
UnderlyingAsset['baseeth:morpho'],
2310+
Networks.main.basechain
21462311
),
21472312
hederaCoin(
21482313
'98aad956-27ee-45dd-aa43-6a23c9a1d1d0',

modules/statics/src/base.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,10 +2743,34 @@ export enum UnderlyingAsset {
27432743

27442744
// BaseETH mainnet tokens
27452745
'baseeth:aero' = 'baseeth:aero',
2746+
'baseeth:icnt' = 'baseeth:icnt',
2747+
'baseeth:morpho' = 'baseeth:morpho',
2748+
'baseeth:weth' = 'baseeth:weth',
2749+
'baseeth:usdc' = 'baseeth:usdc',
2750+
'baseeth:wbtc' = 'baseeth:wbtc',
2751+
'baseeth:usde' = 'baseeth:usde',
2752+
'baseeth:trust' = 'baseeth:trust',
2753+
'baseeth:flk' = 'baseeth:flk',
27462754

27472755
// BaseETH testnet tokens
27482756
'tbaseeth:usdc' = 'tbaseeth:usdc',
27492757

2758+
// Seievm mainnet tokens
2759+
'seievm:usdc' = 'seievm:usdc',
2760+
'seievm:weth' = 'seievm:weth',
2761+
'seievm:wbtc' = 'seievm:wbtc',
2762+
'seievm:usd0' = 'seievm:usd0',
2763+
2764+
//Linea mainnet tokens
2765+
'lineaeth:linea' = 'lineaeth:linea',
2766+
'lineaeth:usdt' = 'lineaeth:usdt',
2767+
'lineaeth:usdc' = 'lineaeth:usdc',
2768+
2769+
// Flow mainnet tokens
2770+
'flow:weth' = 'flow:weth',
2771+
'flow:usdf' = 'flow:usdf',
2772+
'flow:wflow' = 'flow:wflow',
2773+
27502774
// Arbitrum testnet tokens
27512775
'tarbeth:link' = 'tarbeth:link',
27522776
'tarbeth:xsgd' = 'tarbeth:xsgd',

modules/statics/src/coins.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export function createToken(token: AmsTokenConfig): Readonly<BaseCoin> | undefin
4848
avaxc: avaxErc20,
4949
baseeth: erc20Token,
5050
bera: beraErc20,
51+
flow: erc20Token,
52+
lineaeth: erc20Token,
53+
seievm: erc20Token,
5154
bsc: bscToken,
5255
celo: celoToken,
5356
cosmos: cosmosToken,
@@ -108,6 +111,9 @@ export function createToken(token: AmsTokenConfig): Readonly<BaseCoin> | undefin
108111
case 'baseeth':
109112
case 'bera':
110113
case 'bsc':
114+
case 'flow':
115+
case 'lineaeth':
116+
case 'seievm':
111117
case 'celo':
112118
case 'eth':
113119
case 'opeth':

0 commit comments

Comments
 (0)