From 763aa611da1b441d1e323f2f62fad7cbc4726b77 Mon Sep 17 00:00:00 2001 From: Gleiser Oliveira Date: Tue, 10 Dec 2024 19:39:12 -0600 Subject: [PATCH 1/2] feat: add Base/Base Sepolia networks --- apps/evm/package.json | 10 +-- .../src/hooks/useIsFeatureEnabled/index.tsx | 13 ++++ apps/evm/src/libs/contracts/config/index.ts | 44 ++++++++++++- apps/evm/src/libs/tokens/img/cbbtc.svg | 12 ++++ .../tokens/infos/commonTokens/baseSepolia.ts | 33 +++++++++- packages/chains/src/types.ts | 2 + yarn.lock | 63 +++++++++++-------- 7 files changed, 145 insertions(+), 32 deletions(-) create mode 100644 apps/evm/src/libs/tokens/img/cbbtc.svg diff --git a/apps/evm/package.json b/apps/evm/package.json index 1d07a2116d..44d1b9b2ce 100644 --- a/apps/evm/package.json +++ b/apps/evm/package.json @@ -120,14 +120,14 @@ "@types/recharts": "^1.8.23", "@types/redux-actions": "^2.6.2", "@types/styled-components": "^5.1.26", - "@venusprotocol/governance-contracts": "^2.5.0", - "@venusprotocol/isolated-pools": "3.6.0", - "@venusprotocol/oracle": "2.6.0", + "@venusprotocol/governance-contracts": "2.5.0-dev.8", + "@venusprotocol/isolated-pools": "3.7.0-dev.7", + "@venusprotocol/oracle": "2.7.0", "@venusprotocol/protocol-reserve": "2.4.0", "@venusprotocol/stylelint-config": "*", - "@venusprotocol/token-bridge": "2.3.0", + "@venusprotocol/token-bridge": "2.4.0-dev.1", "@venusprotocol/typescript-config": "*", - "@venusprotocol/venus-protocol": "9.3.0", + "@venusprotocol/venus-protocol": "9.4.0-dev.5", "@vitejs/plugin-react": "^4.3.3", "@vitest/coverage-v8": "^2.1.5", "autoprefixer": "^10.4.16", diff --git a/apps/evm/src/hooks/useIsFeatureEnabled/index.tsx b/apps/evm/src/hooks/useIsFeatureEnabled/index.tsx index f29fccdc22..6c106c3ee7 100644 --- a/apps/evm/src/hooks/useIsFeatureEnabled/index.tsx +++ b/apps/evm/src/hooks/useIsFeatureEnabled/index.tsx @@ -43,6 +43,8 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_MAINNET, ChainId.OPTIMISM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], marketParticipantCounts: [ ChainId.BSC_MAINNET, @@ -56,6 +58,7 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_SEPOLIA, ChainId.OPTIMISM_MAINNET, + ChainId.BASE_SEPOLIA, ], isolatedPools: [ ChainId.BSC_MAINNET, @@ -64,6 +67,8 @@ export const featureFlags = { ChainId.SEPOLIA, ChainId.ARBITRUM_ONE, ChainId.ARBITRUM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], bridgeRoute: [ ChainId.BSC_MAINNET, @@ -78,6 +83,8 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_MAINNET, ChainId.OPTIMISM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], wrapUnwrapNativeToken: [ ChainId.BSC_MAINNET, @@ -92,6 +99,8 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_MAINNET, ChainId.OPTIMISM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], governanceSearch: [ ChainId.BSC_TESTNET, @@ -106,6 +115,8 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_MAINNET, ChainId.OPTIMISM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], omnichainGovernance: [ ChainId.BSC_TESTNET, @@ -120,6 +131,8 @@ export const featureFlags = { ChainId.ZKSYNC_MAINNET, ChainId.OPTIMISM_MAINNET, ChainId.OPTIMISM_SEPOLIA, + ChainId.BASE_MAINNET, + ChainId.BASE_SEPOLIA, ], gaslessTransactions: [ChainId.ZKSYNC_SEPOLIA, ChainId.ZKSYNC_MAINNET], web3DomainNames: [ChainId.BSC_MAINNET, ChainId.ETHEREUM, ChainId.ARBITRUM_ONE], diff --git a/apps/evm/src/libs/contracts/config/index.ts b/apps/evm/src/libs/contracts/config/index.ts index 858b373c27..59166ee441 100644 --- a/apps/evm/src/libs/contracts/config/index.ts +++ b/apps/evm/src/libs/contracts/config/index.ts @@ -2,6 +2,8 @@ import { abi as OmnichainGovernanceExecutorAbi } from '@venusprotocol/governance import { abi as GovernorBravoDelegateAbi } from '@venusprotocol/governance-contracts/artifacts/contracts/Governance/GovernorBravoDelegate.sol/GovernorBravoDelegate.json'; import venusGovernanceArbitrumOneDeployments from '@venusprotocol/governance-contracts/deployments/arbitrumone_addresses.json'; import venusGovernanceArbitrumSepoliaDeployments from '@venusprotocol/governance-contracts/deployments/arbitrumsepolia_addresses.json'; +// TODO: add venusGovernanceBaseMainnetDeployments +import venusGovernanceBaseSepoliaDeployments from '@venusprotocol/governance-contracts/deployments/basesepolia_addresses.json'; import venusGovernanceBscMainnetDeployments from '@venusprotocol/governance-contracts/deployments/bscmainnet_addresses.json'; import venusGovernanceBscTestnetDeployments from '@venusprotocol/governance-contracts/deployments/bsctestnet_addresses.json'; import venusGovernanceEthereumDeployments from '@venusprotocol/governance-contracts/deployments/ethereum_addresses.json'; @@ -21,6 +23,8 @@ import { abi as RewardsDistributorAbi } from '@venusprotocol/isolated-pools/arti import { abi as VBep20Abi } from '@venusprotocol/isolated-pools/artifacts/contracts/VToken.sol/VToken.json'; import isolatedPoolsArbitrumOneDeployments from '@venusprotocol/isolated-pools/deployments/arbitrumone_addresses.json'; import isolatedPoolsArbitrumSepoliaDeployments from '@venusprotocol/isolated-pools/deployments/arbitrumsepolia_addresses.json'; +// TODO: add isolatedPoolsBaseMainnetDeployments once deployed +import isolatedPoolsBaseSepoliaDeployments from '@venusprotocol/isolated-pools/deployments/basesepolia_addresses.json'; import isolatedPoolsBscMainnetDeployments from '@venusprotocol/isolated-pools/deployments/bscmainnet_addresses.json'; import isolatedPoolsBscTestnetDeployments from '@venusprotocol/isolated-pools/deployments/bsctestnet_addresses.json'; import isolatedPoolsEthereumDeployments from '@venusprotocol/isolated-pools/deployments/ethereum_addresses.json'; @@ -34,6 +38,8 @@ import isolatedPoolsZkSyncSepoliaDeployments from '@venusprotocol/isolated-pools import { abi as ResilientOracleAbi } from '@venusprotocol/oracle/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json'; import venusOracleArbitrumOneDeployments from '@venusprotocol/oracle/deployments/arbitrumone_addresses.json'; import venusOracleArbitrumSepoliaDeployments from '@venusprotocol/oracle/deployments/arbitrumsepolia_addresses.json'; +import venusOracleBaseMainnetDeployments from '@venusprotocol/oracle/deployments/basemainnet_addresses.json'; +import venusOracleBaseSepoliaDeployments from '@venusprotocol/oracle/deployments/basesepolia_addresses.json'; import venusOracleBscMainnetDeployments from '@venusprotocol/oracle/deployments/bscmainnet_addresses.json'; import venusOracleBscTestnetDeployments from '@venusprotocol/oracle/deployments/bsctestnet_addresses.json'; import venusOracleEthereumDeployments from '@venusprotocol/oracle/deployments/ethereum_addresses.json'; @@ -49,6 +55,8 @@ import { abi as XVSProxyOFTSrc } from '@venusprotocol/token-bridge/artifacts/con import { abi as XvsTokenOmnichainAbi } from '@venusprotocol/token-bridge/artifacts/contracts/Bridge/token/XVS.sol/XVS.json'; import tokenBridgeArbitrumOneDeployments from '@venusprotocol/token-bridge/deployments/arbitrumone_addresses.json'; import tokenBridgeArbitrumSepoliaDeployments from '@venusprotocol/token-bridge/deployments/arbitrumsepolia_addresses.json'; +// TODO: add tokenBridgeBaseMainnetDeployments once deployed +import tokenBridgeBaseSepoliaDeployments from '@venusprotocol/token-bridge/deployments/basesepolia_addresses.json'; import tokenBridgeBscMainnetDeployments from '@venusprotocol/token-bridge/deployments/bscmainnet_addresses.json'; import tokenBridgeBscTestnetDeployments from '@venusprotocol/token-bridge/deployments/bsctestnet_addresses.json'; import tokenBridgeEthereumDeployments from '@venusprotocol/token-bridge/deployments/ethereum_addresses.json'; @@ -78,6 +86,8 @@ import { abi as XvsStoreAbi } from '@venusprotocol/venus-protocol/artifacts/cont import { abi as XvsVaultAbi } from '@venusprotocol/venus-protocol/artifacts/contracts/XVSVault/XVSVault.sol/XVSVault.json'; import venusProtocolArbitrumOneDeployments from '@venusprotocol/venus-protocol/deployments/arbitrumone_addresses.json'; import venusProtocolArbitrumSepoliaDeployments from '@venusprotocol/venus-protocol/deployments/arbitrumsepolia_addresses.json'; +// TODO: add venusProtocolBaseMainnetDeployments once deployed +import venusProtocolBaseSepoliaDeployments from '@venusprotocol/venus-protocol/deployments/basesepolia_addresses.json'; import venusProtocolBscMainnetDeployments from '@venusprotocol/venus-protocol/deployments/bscmainnet_addresses.json'; import venusProtocolBscTestnetDeployments from '@venusprotocol/venus-protocol/deployments/bsctestnet_addresses.json'; import venusProtocolEthereumDeployments from '@venusprotocol/venus-protocol/deployments/ethereum_addresses.json'; @@ -153,6 +163,9 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: isolatedPoolsZkSyncMainnetDeployments.addresses.PoolLens, [ChainId.OPTIMISM_SEPOLIA]: isolatedPoolsOptimismSepoliaDeployments.addresses.PoolLens, [ChainId.OPTIMISM_MAINNET]: isolatedPoolsOptimismMainnetDeployments.addresses.PoolLens, + // add BASE_MAINNET once deployed + //[ChainId.BASE_MAINNET]: isolatedPoolsBaseMainnetDeployments.addresses.PoolLens, + [ChainId.BASE_SEPOLIA]: isolatedPoolsBaseSepoliaDeployments.addresses.PoolLens, }, }, { @@ -174,6 +187,10 @@ export const contracts: ContractConfig[] = [ isolatedPoolsOptimismSepoliaDeployments.addresses.PoolRegistry_Proxy, [ChainId.OPTIMISM_MAINNET]: isolatedPoolsOptimismMainnetDeployments.addresses.PoolRegistry_Proxy, + // add BASE_MAINNET once deployed + // [ChainId.BASE_MAINNET]: + // isolatedPoolsBaseMainnetDeployments.addresses.PoolRegistry_Proxy, + [ChainId.BASE_SEPOLIA]: isolatedPoolsBaseSepoliaDeployments.addresses.PoolRegistry_Proxy, }, }, { @@ -214,6 +231,9 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: tokenBridgeZkSyncMainnetDeployments.addresses.XVS, [ChainId.OPTIMISM_SEPOLIA]: tokenBridgeOptimismSepoliaDeployments.addresses.XVS, [ChainId.OPTIMISM_MAINNET]: tokenBridgeOptimismMainnetDeployments.addresses.XVS, + // add BASE_MAINNET once deployed + // [ChainId.BASE_MAINNET]: , + [ChainId.BASE_SEPOLIA]: tokenBridgeBaseSepoliaDeployments.addresses.XVS, }, }, { @@ -232,6 +252,9 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: venusProtocolZkSyncMainnetDeployments.addresses.XVSVaultProxy, [ChainId.OPTIMISM_SEPOLIA]: venusProtocolOptimismSepoliaDeployments.addresses.XVSVaultProxy, [ChainId.OPTIMISM_MAINNET]: venusProtocolOptimismMainnetDeployments.addresses.XVSVaultProxy, + // add BASE_MAINNET once deployed + // [ChainId.BASE_MAINNET]: , + [ChainId.BASE_SEPOLIA]: venusProtocolBaseSepoliaDeployments.addresses.XVSVaultProxy, }, }, { @@ -250,6 +273,9 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: venusProtocolZkSyncMainnetDeployments.addresses.XVSStore, [ChainId.OPTIMISM_SEPOLIA]: venusProtocolOptimismSepoliaDeployments.addresses.XVSStore, [ChainId.OPTIMISM_MAINNET]: venusProtocolOptimismMainnetDeployments.addresses.XVSStore, + // TODO: add BASE_MAINNET once deployed + // [ChainId.BASE_MAINNET]: , + [ChainId.BASE_SEPOLIA]: venusProtocolBaseSepoliaDeployments.addresses.XVSStore, }, }, { @@ -284,6 +310,11 @@ export const contracts: ContractConfig[] = [ venusGovernanceOptimismMainnetDeployments.addresses.OmnichainGovernanceExecutor, [ChainId.OPTIMISM_SEPOLIA]: venusGovernanceOptimismSepoliaDeployments.addresses.OmnichainGovernanceExecutor, + // TODO: add BASE_MAINNET once deployed + // [ChainId.BASE_MAINNET]: + // , + [ChainId.BASE_SEPOLIA]: + venusGovernanceBaseSepoliaDeployments.addresses.OmnichainGovernanceExecutor, }, }, { @@ -326,6 +357,8 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: '0xFEa0f491061cdb017041D6da43c98b6383097557', [ChainId.OPTIMISM_MAINNET]: '0xd130B43062D875a4B7aF3f8fc036Bc6e9D3E1B3E', [ChainId.OPTIMISM_SEPOLIA]: '0xd130B43062D875a4B7aF3f8fc036Bc6e9D3E1B3E', + [ChainId.BASE_MAINNET]: '0xd130B43062D875a4B7aF3f8fc036Bc6e9D3E1B3E', + [ChainId.BASE_SEPOLIA]: '0xd130B43062D875a4B7aF3f8fc036Bc6e9D3E1B3E', }, }, { @@ -344,6 +377,8 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: '0xF9cda624FBC7e059355ce98a31693d299FACd963', [ChainId.OPTIMISM_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', [ChainId.OPTIMISM_SEPOLIA]: '0xca11bde05977b3631167028862be2a173976ca11', + [ChainId.BASE_MAINNET]: '0xca11bde05977b3631167028862be2a173976ca11', + [ChainId.BASE_SEPOLIA]: '0xca11bde05977b3631167028862be2a173976ca11', }, }, { @@ -362,6 +397,8 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: venusOracleZkSyncMainnetDeployments.addresses.ResilientOracle, [ChainId.OPTIMISM_SEPOLIA]: venusOracleOptimismSepoliaDeployments.addresses.ResilientOracle, [ChainId.OPTIMISM_MAINNET]: venusOracleOptimismMainnetDeployments.addresses.ResilientOracle, + [ChainId.BASE_MAINNET]: venusOracleBaseMainnetDeployments.addresses.ResilientOracle, + [ChainId.BASE_SEPOLIA]: venusOracleBaseSepoliaDeployments.addresses.ResilientOracle, }, }, { @@ -418,6 +455,8 @@ export const contracts: ContractConfig[] = [ [ChainId.ZKSYNC_MAINNET]: tokenBridgeZkSyncMainnetDeployments.addresses.XVSProxyOFTDest, [ChainId.OPTIMISM_SEPOLIA]: tokenBridgeOptimismSepoliaDeployments.addresses.XVSProxyOFTDest, [ChainId.OPTIMISM_MAINNET]: tokenBridgeOptimismMainnetDeployments.addresses.XVSProxyOFTDest, + // TODO: add BASE_MAINNET once deployed + [ChainId.BASE_SEPOLIA]: tokenBridgeBaseSepoliaDeployments.addresses.XVSProxyOFTDest, }, }, { @@ -603,7 +642,10 @@ export const contracts: ContractConfig[] = [ isolatedPoolsOptimismSepoliaDeployments.addresses.NativeTokenGateway_vWETH_Core, }, [ChainId.BASE_MAINNET]: {}, - [ChainId.BASE_SEPOLIA]: {}, + [ChainId.BASE_SEPOLIA]: { + [isolatedPoolsBaseSepoliaDeployments.addresses.Comptroller_Core.toLowerCase()]: + isolatedPoolsBaseSepoliaDeployments.addresses.NativeTokenGateway_vWETH_Core, + }, }, }, ]; diff --git a/apps/evm/src/libs/tokens/img/cbbtc.svg b/apps/evm/src/libs/tokens/img/cbbtc.svg new file mode 100644 index 0000000000..bab981ce60 --- /dev/null +++ b/apps/evm/src/libs/tokens/img/cbbtc.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts b/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts index 83ba1f61f2..77daa4f306 100644 --- a/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts +++ b/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts @@ -1,5 +1,9 @@ import { NATIVE_TOKEN_ADDRESS } from 'constants/address'; +import cbbtcLogo from 'libs/tokens/img/cbbtc.svg'; import ethLogo from 'libs/tokens/img/eth.svg'; +import usdcNativeLogo from 'libs/tokens/img/usdcNative.svg'; +import wethLogo from 'libs/tokens/img/weth.svg'; +import xvsLogo from 'libs/tokens/img/xvs.svg'; import type { Token } from 'types'; const ethToken: Token = { @@ -10,4 +14,31 @@ const ethToken: Token = { isNative: true, }; -export const tokens: Token[] = [ethToken]; +export const tokens: Token[] = [ + ethToken, + { + address: '0x4200000000000000000000000000000000000006', + decimals: 18, + symbol: 'WETH', + asset: wethLogo, + tokenWrapped: ethToken, + }, + { + address: '0x0948001047A07e38F685f9a11ea1ddB16B234af9', + decimals: 8, + symbol: 'cbBTC', + asset: cbbtcLogo, + }, + { + address: '0xFa264c13d657180e65245a9C3ac8d08b9F5Fc54D', + decimals: 6, + symbol: 'USDC', + asset: usdcNativeLogo, + }, + { + address: '0xE657EDb5579B82135a274E85187927C42E38C021', + decimals: 18, + symbol: 'XVS', + asset: xvsLogo, + }, +]; diff --git a/packages/chains/src/types.ts b/packages/chains/src/types.ts index 2fa09afb38..64164c1110 100644 --- a/packages/chains/src/types.ts +++ b/packages/chains/src/types.ts @@ -22,6 +22,7 @@ export enum MainnetChainId { ARBITRUM_ONE = ChainId.ARBITRUM_ONE, ZKSYNC_MAINNET = ChainId.ZKSYNC_MAINNET, OPTIMISM_MAINNET = ChainId.OPTIMISM_MAINNET, + BASE_MAINNET = ChainId.BASE_MAINNET, } export enum TestnetChainId { @@ -31,6 +32,7 @@ export enum TestnetChainId { ARBITRUM_SEPOLIA = ChainId.ARBITRUM_SEPOLIA, ZKSYNC_SEPOLIA = ChainId.ZKSYNC_SEPOLIA, OPTIMISM_SEPOLIA = ChainId.OPTIMISM_SEPOLIA, + BASE_SEPOLIA = ChainId.BASE_SEPOLIA, } export interface ChainMetadata { diff --git a/yarn.lock b/yarn.lock index 0c83fc5aa5..ed53d9af5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6669,6 +6669,15 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== +"@venusprotocol/governance-contracts@2.5.0-dev.8": + version "2.5.0-dev.8" + resolved "https://registry.yarnpkg.com/@venusprotocol/governance-contracts/-/governance-contracts-2.5.0-dev.8.tgz#6ca85f3ddbd8fb7195a94963b6c810205c2d3602" + integrity sha512-5tvua8muTBoiQebvezbWE3V8sjUBVkd64vfD7Sk330ngpm2KlL+KtFMl81EMUPhmLMPmCvBWd3dH3EksIqe+LA== + dependencies: + "@venusprotocol/solidity-utilities" "2.0.0" + hardhat-deploy-ethers "^0.3.0-beta.13" + module-alias "^2.2.2" + "@venusprotocol/governance-contracts@^2.3.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@venusprotocol/governance-contracts/-/governance-contracts-2.3.0.tgz#caa729f28a36df066ff02a799ac7394fae3ef996" @@ -6687,19 +6696,10 @@ hardhat-deploy-ethers "^0.3.0-beta.13" module-alias "^2.2.2" -"@venusprotocol/governance-contracts@^2.5.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@venusprotocol/governance-contracts/-/governance-contracts-2.5.0.tgz#abf26966720aa246ea2450f29347161b7ca1ce94" - integrity sha512-0JcNFdqxTny0jrFHab1xX+wlSsPZctDhtmxfsxwAhK7ME6b/A+6/KYQWoXYNrldlogrwEQOeXM96x3y6uigsyQ== - dependencies: - "@venusprotocol/solidity-utilities" "2.0.0" - hardhat-deploy-ethers "^0.3.0-beta.13" - module-alias "^2.2.2" - -"@venusprotocol/isolated-pools@3.6.0": - version "3.6.0" - resolved "https://registry.yarnpkg.com/@venusprotocol/isolated-pools/-/isolated-pools-3.6.0.tgz#336c18f1a68750b11e2b99dd96d21c4ed135a00f" - integrity sha512-mQxLNfXp1yCNwtFgMcffg/ojpbpMWT14TVYxDzqWBK/YR+LE+7yA+JBRzDtGvIsZTPgy0d7IRO/N06ex/y/bdA== +"@venusprotocol/isolated-pools@3.7.0-dev.7": + version "3.7.0-dev.7" + resolved "https://registry.yarnpkg.com/@venusprotocol/isolated-pools/-/isolated-pools-3.7.0-dev.7.tgz#3401474b2aa52ea531172948a1042fae538c74ed" + integrity sha512-UstRhmp5ULF4HKaUGVjPx33MkO6Vzqso5GgQkEtdjzCCeWSDb4NcY500tfACAvku7raFZz98lqo/8wF/IcwkoA== dependencies: "@nomiclabs/hardhat-ethers" "^2.2.3" "@openzeppelin/contracts" "^4.8.3" @@ -6711,10 +6711,10 @@ hardhat-deploy "^0.11.14" module-alias "^2.2.2" -"@venusprotocol/oracle@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@venusprotocol/oracle/-/oracle-2.6.0.tgz#5d15949214c9b33856f3e2c3f12fef18efdef068" - integrity sha512-8NnCYBHBmSDhbRsyoWFVLtjJh0o4hb03s8OHKce70ZqsdOLb7C7rfhRCD7msv+TaM4dEpZDEqKvQ0uAR6MmL+Q== +"@venusprotocol/oracle@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@venusprotocol/oracle/-/oracle-2.7.0.tgz#e307e8b5f7a4a529a701bb011ac62d00db51f220" + integrity sha512-rMVkTGrtz1KNKrvgw1NE4dIW3pHQEHX/TcF6KsMzziCIx/6dHZqOsa8RDH4Bg8TeKSieknZ8pKdH+wJHIDTZmw== dependencies: "@chainlink/contracts" "^0.5.1" "@defi-wonderland/smock" "2.3.5" @@ -6777,10 +6777,10 @@ resolved "https://registry.yarnpkg.com/@venusprotocol/solidity-utilities/-/solidity-utilities-2.0.3.tgz#d672b744d53999716c07b7dfe2431140add0458e" integrity sha512-HlOUQx+DBBQB3CulJjAwYEqriJVX3gjlmWbYl+lqN+yr1sk+U3NWbNnLjixw7pMjW8yM5bZWjt8MD3SqbaPccA== -"@venusprotocol/token-bridge@2.3.0", "@venusprotocol/token-bridge@^2.3.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@venusprotocol/token-bridge/-/token-bridge-2.3.0.tgz#fa7c0a9ef360d70cd0c2a91f35574e03eaf83a70" - integrity sha512-t+QCf/DQe/GR2v93Carnwou+KB8DPgNMdp2dYLknW6fFs9KINyrXOHLSLvmQeE3N0IAuFLwi24xby8pnGfnUOA== +"@venusprotocol/token-bridge@2.4.0-dev.1": + version "2.4.0-dev.1" + resolved "https://registry.yarnpkg.com/@venusprotocol/token-bridge/-/token-bridge-2.4.0-dev.1.tgz#a1a5b58f982e6928a4a9efe53bdbb365c5e25e03" + integrity sha512-jI5sWLQX2Yib+AaDkTxO6kXVJaos3/DVIDJ2bgvAeTQndV7GiVbz9L5t9ORDkG8LovlO/010MhXJTkkA53fBVA== dependencies: "@layerzerolabs/solidity-examples" "^1.0.0" "@openzeppelin/contracts" "^4.8.3" @@ -6803,10 +6803,23 @@ ethers "^5.7.0" module-alias "^2.2.2" -"@venusprotocol/venus-protocol@9.3.0": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@venusprotocol/venus-protocol/-/venus-protocol-9.3.0.tgz#236aea4133be699e1cd141425e6642e5ef0f33be" - integrity sha512-EQS+VnyD1Nn/8WbGlPpuHOGObKT18K2t2trK3qVDiH4Vb02dBxVcf5OLEzRddLEtkEJLKmkayeM2uJeOxmlpAQ== +"@venusprotocol/token-bridge@^2.3.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@venusprotocol/token-bridge/-/token-bridge-2.3.0.tgz#fa7c0a9ef360d70cd0c2a91f35574e03eaf83a70" + integrity sha512-t+QCf/DQe/GR2v93Carnwou+KB8DPgNMdp2dYLknW6fFs9KINyrXOHLSLvmQeE3N0IAuFLwi24xby8pnGfnUOA== + dependencies: + "@layerzerolabs/solidity-examples" "^1.0.0" + "@openzeppelin/contracts" "^4.8.3" + "@openzeppelin/contracts-upgradeable" "^4.8.3" + "@openzeppelin/hardhat-upgrades" "^1.21.0" + "@solidity-parser/parser" "^0.13.2" + ethers "^5.7.0" + module-alias "^2.2.2" + +"@venusprotocol/venus-protocol@9.4.0-dev.5": + version "9.4.0-dev.5" + resolved "https://registry.yarnpkg.com/@venusprotocol/venus-protocol/-/venus-protocol-9.4.0-dev.5.tgz#1ce5ff2e91c94cf0ccc49e847921c123566201f1" + integrity sha512-bj//wHmEmq7NMeMjjKzWcTwhjWk02FKOTGPSb66BZS+O63sACGTJ/7bIFFusPzX/iNmRfpy3uWHjtJ/hT8TUxA== dependencies: "@nomicfoundation/hardhat-ethers" "^3.0.0" "@openzeppelin/contracts" "4.9.3" From 5ed4f130d24d7fe44a838d19f6d012697be4872d Mon Sep 17 00:00:00 2001 From: Gleiser Oliveira Date: Tue, 10 Dec 2024 19:39:49 -0600 Subject: [PATCH 2/2] chore: add changeset --- .changeset/shy-ducks-destroy.md | 5 +++++ apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/shy-ducks-destroy.md diff --git a/.changeset/shy-ducks-destroy.md b/.changeset/shy-ducks-destroy.md new file mode 100644 index 0000000000..f06cfc3df2 --- /dev/null +++ b/.changeset/shy-ducks-destroy.md @@ -0,0 +1,5 @@ +--- +"@venusprotocol/evm": minor +--- + +add Base/Base Sepolia networks diff --git a/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts b/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts index 77daa4f306..12eb23d5d6 100644 --- a/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts +++ b/apps/evm/src/libs/tokens/infos/commonTokens/baseSepolia.ts @@ -1,7 +1,7 @@ import { NATIVE_TOKEN_ADDRESS } from 'constants/address'; import cbbtcLogo from 'libs/tokens/img/cbbtc.svg'; import ethLogo from 'libs/tokens/img/eth.svg'; -import usdcNativeLogo from 'libs/tokens/img/usdcNative.svg'; +import usdcLogo from 'libs/tokens/img/usdc.svg'; import wethLogo from 'libs/tokens/img/weth.svg'; import xvsLogo from 'libs/tokens/img/xvs.svg'; import type { Token } from 'types'; @@ -33,7 +33,7 @@ export const tokens: Token[] = [ address: '0xFa264c13d657180e65245a9C3ac8d08b9F5Fc54D', decimals: 6, symbol: 'USDC', - asset: usdcNativeLogo, + asset: usdcLogo, }, { address: '0xE657EDb5579B82135a274E85187927C42E38C021',