Skip to content

Commit

Permalink
Add taiko (#198)
Browse files Browse the repository at this point in the history
* 0.0.199

* USDC.e

* 0.0.200

* 0.0.200

* Add taoUSD and zkEVM USDC.e

* 0.0.201

* 0.0.201

* Add rETH, rsETH and wstETH

* 0.0.202

* 0.0.202

* Add blast

* 0.0.203

* 0.0.203

* Add Kava

* 0.0.204

* 0.0.204

* Add Scroll

* 0.0.205

* 0.0.205

* Add scroll token names

* 0.0.206

* coingecko for scroll

* 0.0.207

* 0.0.206

* 0.0.207

* Fix axlLqdr

* 0.0.208

* Add algebra integral contract and wBTC on Blast

* 0.0.209

* Add mpDAO vaults

* 0.0.210

* Remove duplicate vaults

* Remove duplicate vaults addition

* 0.0.211

* 0.0.208

* 0.0.209

* 0.0.210

* 0.0.211

* update Pancake vaults for Bril UI integration

* 0.0.212

* Add CELO coingecko ID

* 0.0.213

* Add Arthera

* 0.0.214

* Remove Horiza and Zero

* 0.0.215

* Fix token table name for Arthera

* 0.0.216

* Add Taiko

---------

Co-authored-by: Tatyana Stemkovski <[email protected]>
  • Loading branch information
tstemko and Tatyana Stemkovski authored Jun 4, 2024
1 parent ec42aea commit 7832b79
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ichidao/ichi-sdk",
"version": "0.0.213",
"version": "0.0.216",
"description": "",
"main": "dist/index.js",
"module": "index.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const tokenNameWithChainPrefix = (tokenName: TokenName | string, chainId:
return `opbnb_${tokenName}` as TokenTableName
case ChainId.Scroll:
return `scroll_${tokenName}` as TokenTableName
case ChainId.Taiko:
return `taiko_${tokenName}` as TokenTableName
case ChainId.zkEVM:
return `zkevm_${tokenName}` as TokenTableName
case ChainId.zkSync:
Expand Down
18 changes: 18 additions & 0 deletions src/crypto/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum ChainId {
Mantle = 5000,
opBNB = 204,
Scroll = 534352,
Taiko = 167000,
zkEVM = 1101,
zkSync = 324,
}
Expand Down Expand Up @@ -401,6 +402,23 @@ export const SUPPORTED_NETWORKS: SupportedNetworkList = {
}
}
},
[ChainId.Taiko]: {
chainId: ChainId.Taiko,
name: 'Taiko',
color: 'linear-gradient(90deg, rgba(161,128,217,1) 0%, rgba(130,71,229,1) 100%)',
icon: generateIconUrl(ChainId.Taiko, 'svg'),
env: 'mainnet',
scanLink: 'https://taikoscan.io/',
scanName: 'taikoscan',
coingecko: 'taiko',
rpc: {
rpcUrl: 'https://rpc.mainnet.taiko.xyz',
nativeCurrency: {
symbol: 'ETH',
name: 'ETH'
}
}
},
[ChainId.zkEVM]: {
chainId: ChainId.zkEVM,
name: 'Polygon_zkEVM',
Expand Down
7 changes: 7 additions & 0 deletions src/crypto/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export const providerCacheReference: Record<ChainId, ProviderCache> = {
cacheHit: 0,
cacheMiss: 0
},
[ChainId.Taiko]: {
lastUdated: 0,
cacheHit: 0,
cacheMiss: 0
},
[ChainId.zkEVM]: {
lastUdated: 0,
cacheHit: 0,
Expand Down Expand Up @@ -265,6 +270,8 @@ const getRpcEnvName = (chainId: ChainId): EnvUtils.EnvName => {
return EnvUtils.EnvName.POLYGON_RPC_HOSTS;
case ChainId.Scroll:
return EnvUtils.EnvName.SCROLL_RPC_HOSTS;
case ChainId.Taiko:
return EnvUtils.EnvName.TAIKO_RPC_HOSTS;
case ChainId.zkEVM:
return EnvUtils.EnvName.ZKEVM_RPC_HOSTS;
case ChainId.zkSync:
Expand Down
2 changes: 2 additions & 0 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export namespace EnvUtils {
OPBNB_RPC_HOSTS = 'OPBNB_RPC_HOSTS',
POLYGON_RPC_HOSTS = 'POLYGON_RPC_HOSTS',
SCROLL_RPC_HOSTS = 'SCROLL_RPC_HOSTS',
TAIKO_RPC_HOSTS = 'TAIKO_RPC_HOSTS',
ZKEVM_RPC_HOSTS = 'ZKEVM_RPC_HOSTS',
ZKSYNC_RPC_HOSTS = 'ZKSYNC_RPC_HOSTS',
MUMBAI_RPC_HOSTS = 'MUMBAI_RPC_HOSTS',
Expand Down Expand Up @@ -53,6 +54,7 @@ export namespace EnvUtils {
GATSBY_OPBNB_RPC_HOSTS = 'GATSBY_OPBNB_RPC_HOSTS',
GATSBY_POLYGON_RPC_HOSTS = 'GATSBY_POLYGON_RPC_HOSTS',
GATSBY_SCROLL_RPC_HOSTS = 'GATSBY_SCROLL_RPC_HOSTS',
GATSBY_TAIKO_RPC_HOSTS = 'GATSBY_TAIKO_RPC_HOSTS',
GATSBY_ZKEVM_RPC_HOSTS = 'GATSBY_ZKEVM_RPC_HOSTS',
GATSBY_ZKSYNC_RPC_HOSTS = 'GATSBY_ZKSYNC_RPC_HOSTS',
GATSBY_MUMBAI_RPC_HOSTS = 'GATSBY_MUMBAI_RPC_HOSTS',
Expand Down

0 comments on commit 7832b79

Please sign in to comment.