Skip to content

Commit

Permalink
feat: add tokens (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
myz1237 authored Jun 7, 2024
1 parent 623b976 commit 2140dd4
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
]
},
"dependencies": {
"@lifi/types": "^13.11.1"
"@lifi/types": "^13.12.0"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
Expand Down
25 changes: 25 additions & 0 deletions src/chains/supportedChains.evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,4 +1041,29 @@ export const supportedEVMChains: EVMChain[] = [
rpcUrls: ['https://public-node.rsk.co', 'https://mycrypto.rsk.co'],
},
},

// 1329 - SEI
{
key: ChainKey.SEI,
chainType: ChainType.EVM,
name: 'SEI',
coin: CoinKey.WSEI,
id: 1329,
mainnet: true,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/sei.svg',
multicallAddress: multicallAddresses[ChainId.SEI],

metamask: {
chainId: prefixChainId(1329),
blockExplorerUrls: ['https://seitrace.com/', 'https://seistream.app/'],
chainName: 'SEI v2',
nativeCurrency: {
name: 'Wrapped SEI',
symbol: 'WSEI',
decimals: 18,
},
rpcUrls: ['https://evm-rpc.sei-apis.com'],
},
},
]
22 changes: 22 additions & 0 deletions src/coins/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@ export const basicCoins: BasicCoin[] = [
name: 'rUSDT',
symbol: 'rUSDT',
},
[ChainId.SEI]: {
address: '0xB75D0B03c06A926e488e2659DF1A861F860bD3d1',
decimals: 6,
},
},
},

Expand Down Expand Up @@ -718,6 +722,10 @@ export const basicCoins: BasicCoin[] = [
address: '0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9',
decimals: 6,
},
[ChainId.SEI]: {
address: '0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1',
decimals: 6,
},
},
},
// USDC.e
Expand Down Expand Up @@ -1333,6 +1341,20 @@ export const basicCoins: BasicCoin[] = [
},
},
},

// SEI
{
key: CoinKey.WSEI,
name: CoinKey.WSEI,
logoURI: 'https://cdn.sei.io/sei-app/sei-icon.png',
verified: true,
chains: {
[ChainId.SEI]: {
address: '0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7',
decimals: 18,
},
},
},
// > Solana
{
key: CoinKey.SOL,
Expand Down
1 change: 1 addition & 0 deletions src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
[ChainId.MOD]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.MNT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.BLS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.SEI]: '0xcA11bde05977b3631167028862bE2a173976CA11',

// TODO
// [ChainId.EXP]: '', // TODO
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ __metadata:
dependencies:
"@commitlint/cli": ^17.7.1
"@commitlint/config-conventional": ^17.7.0
"@lifi/types": ^13.11.1
"@lifi/types": ^13.12.0
"@types/jest": ^29.5.4
"@typescript-eslint/eslint-plugin": ^6.5.0
"@typescript-eslint/parser": ^6.5.0
Expand All @@ -1106,10 +1106,10 @@ __metadata:
languageName: unknown
linkType: soft

"@lifi/types@npm:^13.11.1":
version: 13.11.1
resolution: "@lifi/types@npm:13.11.1"
checksum: 96fef9ab058faebd18f1415b8ef1619c7136b81847a8772874c8c780dde9d4427b9e27330ad6972581c3fd052ccc0d8b14c2ce4f114ff74be647e65971596b85
"@lifi/types@npm:^13.12.0":
version: 13.12.0
resolution: "@lifi/types@npm:13.12.0"
checksum: 04f80f460d7f5dacc30a850ca9c3ae23b3a45f49b5d9cf88b5dce1a1423ec246e7bef2960e483154d3c88ca9a014366ce36813500c2dec331865aeec25a85e24
languageName: node
linkType: hard

Expand Down

0 comments on commit 2140dd4

Please sign in to comment.