Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update blast.svg in ezeth branch #163

Open
wants to merge 12 commits into
base: ezeth
Choose a base branch
from
5 changes: 5 additions & 0 deletions public/logos/blast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/logos/ezeth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 51 additions & 14 deletions src/consts/chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,54 @@
# Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts
---
# Example using local anvil chain:
# anvil1:
# chainId: 31337
# domainId: 31337
# name: anvil1
# protocol: ethereum
# rpcUrls:
# - http: http://127.0.0.1:8545
# anvil2:
# chainId: 31338
# domainId: 31338
# name: anvil2
# protocol: ethereum
# rpcUrls:
# - http: http://127.0.0.1:8555
blast:
blockExplorers:
- apiUrl: https://api.routescan.io/v2/network/mainnet/evm/81457/etherscan/api
family: routescan
name: Blast Explorer
url: https://blastexplorer.io
blocks:
confirmations: 1
estimateBlockTime: 2
reorgPeriod: 1
chainId: 81457
logoURI: /logos/blast.svg
displayName: Blast
domainId: 81457
gasCurrencyCoinGeckoId: ethereum
name: blast
nativeToken:
decimals: 18
name: Ether
symbol: ETH
protocol: ethereum
rpcUrls:
- http: https://rpc.blast.io
technicalStack: other
ethereum:
blockExplorers:
- apiUrl: https://api.etherscan.io/api
family: etherscan
name: Etherscan
url: https://etherscan.io
- apiUrl: https://eth.blockscout.com/api
family: blockscout
name: Blockscout
url: https://blockscout.com/eth/mainnet
blocks:
confirmations: 7
estimateBlockTime: 13
reorgPeriod: 14
chainId: 1
displayName: Ethereum
domainId: 1
gnosisSafeTransactionServiceUrl: https://safe-transaction-mainnet.safe.global/
name: ethereum
nativeToken:
decimals: 18
name: Ether
symbol: ETH
protocol: ethereum
rpcUrls:
- http: https://ethereum.publicnode.com
- http: https://cloudflare-eth.com
2 changes: 1 addition & 1 deletion src/consts/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const links = {
docs: 'https://docs.hyperlane.xyz',
gasDocs: 'https://docs.hyperlane.xyz/docs/reference/hooks/interchain-gas',
chains: 'https://docs.hyperlane.xyz/docs/resources/domains',
twitter: 'https://twitter.com/hyperlane_xyz',
twitter: 'https://twitter.com/hyperlane',
blog: 'https://medium.com/hyperlane',
};
45 changes: 26 additions & 19 deletions src/consts/tokens.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# A list of Warp UI token configs and other options for the WarpCore
# Configs can be defined here, in tokens.json, or in tokens.ts
# The input here is typically the output of the Hyperlane CLI warp deploy command
---
tokens:
# Eth Mainnet HypNative token
- chainName: sepolia
standard: EvmHypNative
- chainName: blast
standard: EvmHypCollateral
logoURI: /logos/ezeth.svg
name: Renzo Restaked ETH
symbol: ezETH
totalSupply: '84034563542140831711954'
decimals: 18
symbol: ETH
name: Ether
addressOrDenom: '0x767C51a91CC9dEF2F24C35c340649411D6390320'
logoURI: '/logos/weth.png'
type: xERC20
token: '0x2416092f143378750bb29b79eD961ab195CcEea5'
owner: '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba'
mailbox: '0x3a867fCfFeC2B790970eeBDC9023E75B0a172aa7'
addressOrDenom: '0xA34ceDf9068C5deE726C67A4e1DCfCc2D6E2A7fD'
collateralAddressOrDenom: '0x2416092f143378750bb29b79eD961ab195CcEea5'
connections:
- { token: ethereum|alfajores|0x8bF6Ca2Dca1DF703Cb9144cef6A4d86abA7776C4 }
- chainName: alfajores
standard: EvmHypSynthetic
- token: ethereum|ethereum|0x8dfbEA2582F41c8C4Eb25252BbA392fd3c09449A
- chainName: ethereum
standard: EvmHypCollateral
logoURI: /logos/ezeth.svg
name: Renzo Restaked ETH
symbol: ezETH
totalSupply: '84034563542140831711954'
decimals: 18
symbol: ETH
name: Ether
addressOrDenom: '0x8bF6Ca2Dca1DF703Cb9144cef6A4d86abA7776C4'
logoURI: '/logos/weth.png'
type: xERC20Lockbox
token: '0xC8140dA31E6bCa19b287cC35531c2212763C2059'
owner: '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba'
mailbox: '0xc005dc82818d67AF737725bD4bf75435d065D239'
addressOrDenom: '0x8dfbEA2582F41c8C4Eb25252BbA392fd3c09449A'
collateralAddressOrDenom: '0xbf5495Efe5DB9ce00f80364C8B423567e58d2110'
connections:
- { token: ethereum|sepolia|0x767C51a91CC9dEF2F24C35c340649411D6390320 }
- token: ethereum|blast|0xA34ceDf9068C5deE726C67A4e1DCfCc2D6E2A7fD
17 changes: 9 additions & 8 deletions src/features/transfer/useTokenTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,15 @@ async function executeTransfer({

const warpCore = getWarpCore();

const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
originTokenAmount,
destination,
});
if (!isCollateralSufficient) {
toast.error('Insufficient collateral on destination for transfer');
throw new Error('Insufficient destination collateral');
}
// TODO: replace after https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3851
// const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
// originTokenAmount,
// destination,
// });
// if (!isCollateralSufficient) {
// toast.error('Insufficient collateral on destination for transfer');
// throw new Error('Insufficient destination collateral');
// }

addTransfer({
timestamp: new Date().getTime(),
Expand Down