Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42,652 changes: 42,652 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

112 changes: 78 additions & 34 deletions src/consts/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import {
soon,
soonAddresses,
} from '@hyperlane-xyz/registry';
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';
import { ChainMap, ChainMetadata, ExplorerFamily } from '@hyperlane-xyz/sdk';
import { Address, ProtocolType } from '@hyperlane-xyz/utils';

// A map of chain names to ChainMetadata
// Chains can be defined here, in chains.json, or in chains.yaml
// Chains already in the SDK need not be included here unless you want to override some fields
// Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts
export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
export const chains: ChainMap<ChainMetadata & { mailbox?: Address; interchainGasPaymaster?: Address }> = {
solanamainnet: {
...solanamainnet,
// SVM chains require mailbox addresses for the token adapters
Expand All @@ -32,36 +33,79 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
...sonicsvm,
mailbox: sonicsvmAddresses.mailbox,
},
// mycustomchain: {
// protocol: ProtocolType.Ethereum,
// chainId: 123123,
// domainId: 123123,
// name: 'mycustomchain',
// displayName: 'My Chain',
// nativeToken: { name: 'Ether', symbol: 'ETH', decimals: 18 },
// rpcUrls: [{ http: 'https://mycustomchain-rpc.com' }],
// blockExplorers: [
// {
// name: 'MyCustomScan',
// url: 'https://mycustomchain-scan.com',
// apiUrl: 'https://api.mycustomchain-scan.com/api',
// family: ExplorerFamily.Etherscan,
// },
// ],
// blocks: {
// confirmations: 1,
// reorgPeriod: 1,
// estimateBlockTime: 10,
// },
// logoURI: '/logo.svg',
// },
};

// rent account payment for (mostly for) SVM chains added on top of IGP,
// not exact but should be pretty close to actual payment
export const chainsRentEstimate: ChainMap<bigint> = {
eclipsemainnet: BigInt(Math.round(0.00004019 * 10 ** 9)),
solanamainnet: BigInt(Math.round(0.00411336 * 10 ** 9)),
sonicsvm: BigInt(Math.round(0.00411336 * 10 ** 9)),
soon: BigInt(Math.round(0.00000355 * 10 ** 9)),
basesepolia: {
protocol: ProtocolType.Ethereum,
chainId: 84532,
domainId: 84532,
name: 'basesepolia',
displayName: 'Base Sepolia',
nativeToken: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: [{ http: 'https://sepolia.base.org' }],
blockExplorers: [
{
name: 'BaseScan',
url: 'https://sepolia.basescan.org',
apiUrl: 'https://api-sepolia.basescan.org/api',
family: ExplorerFamily.Etherscan,
},
],
blocks: {
confirmations: 1,
reorgPeriod: 1,
estimateBlockTime: 2,
},
mailbox: '0x6966b0E55883d49BFB24539356a2f8A673E02039',
interchainGasPaymaster: '0x99d3b8002107d1c1924f7a5092ba373f4a8924fb',
logoURI: '/base-logo.svg',
},
bsctestnet: {
protocol: ProtocolType.Ethereum,
chainId: 97,
domainId: 97,
name: 'bsctestnet',
displayName: 'BSC Testnet',
nativeToken: { name: 'BNB', symbol: 'BNB', decimals: 18 },
rpcUrls: [{ http: 'https://data-seed-prebsc-1-s1.binance.org:8545' }],
blockExplorers: [
{
name: 'BscScan',
url: 'https://testnet.bscscan.com',
apiUrl: 'https://api-testnet.bscscan.com/api',
family: ExplorerFamily.Etherscan,
},
],
blocks: {
confirmations: 1,
reorgPeriod: 9,
estimateBlockTime: 3,
},
mailbox: '0xF9F6F5646F478d5ab4e20B0F910C92F1CCC9Cc6D',
interchainGasPaymaster: '0x4d14e1223f672c067f50b326e77a0c9b0b7a0a5e',
logoURI: '/bsc-logo.svg',
},
edgentestnet: {
protocol: ProtocolType.Ethereum,
chainId: 3456,
domainId: 3456,
name: 'edgentestnet',
displayName: 'EdgeTestnet',
nativeToken: { name: 'LayerEdge', symbol: 'EDGEN', decimals: 18 },
rpcUrls: [{ http: 'https://testnet-rpc.layeredge.io' }],
blockExplorers: [
{
name: 'EdgeExplorer',
url: 'https://testnet-explorer.layeredge.io',
apiUrl: 'https://testnet-explorer.layeredge.io/api',
family: ExplorerFamily.Blockscout,
},
],
blocks: {
confirmations: 1,
reorgPeriod: 1,
estimateBlockTime: 2,
},
mailbox: '0x9Af611a6Fa2DAC0C3C63D1B1b448Bbc44Bd5b8a3',
interchainGasPaymaster: '0x2c96613cf2f03ce8332c9a7e2a9f8ac1584b45c0',
logoURI: '/edge-logo.svg',
},
};
2 changes: 1 addition & 1 deletion src/consts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const version = process?.env?.NEXT_PUBLIC_VERSION || '0.0.0';
const registryUrl = process?.env?.NEXT_PUBLIC_REGISTRY_URL || undefined;
const registryBranch = process?.env?.NEXT_PUBLIC_REGISTRY_BRANCH || undefined;
const registryProxyUrl = process?.env?.NEXT_PUBLIC_GITHUB_PROXY || 'https://proxy.hyperlane.xyz';
const walletConnectProjectId = process?.env?.NEXT_PUBLIC_WALLET_CONNECT_ID || '';
const walletConnectProjectId ='a9972f6bc128e037dc81f22a1e14e6d9';
const transferBlacklist = process?.env?.NEXT_PUBLIC_TRANSFER_BLACKLIST || '';
const chainWalletWhitelists = JSON.parse(process?.env?.NEXT_PUBLIC_CHAIN_WALLET_WHITELISTS || '{}');
const rpcOverrides = process?.env?.NEXT_PUBLIC_RPC_OVERRIDES || '';
Expand Down
56 changes: 53 additions & 3 deletions src/consts/warpRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,59 @@
import { WarpCoreConfig } from '@hyperlane-xyz/sdk';
import { TokenStandard, WarpCoreConfig } from '@hyperlane-xyz/sdk';

// A list of Warp Route token configs
// These configs will be merged with the warp routes in the configured registry
// The input here is typically the output of the Hyperlane CLI warp deploy command
export const warpRouteConfigs: WarpCoreConfig = {
tokens: [],
options: {},
tokens: [
{
chainName: 'basesepolia',
standard: TokenStandard.EvmHypCollateral,
decimals: 18,
symbol: 'EDGEN',
name: 'LayerEdge',
addressOrDenom: '0x35c8cD01312257e98c70c2e6cdC1a3aE6e338769',
collateralAddressOrDenom: '0xaCB36D5ff50D3A811282b7E334c418A8D37D29b8',
connections: [
{
token: 'ethereum|bsctestnet|0x0bd1e41fD7fBC3A41daA33fd9B8eE36D832C3677',
},
{
token: 'ethereum|edgentestnet|0x37ec16e00C39a84A082dFAb74Af450DedD50Bf77',
},
],
},
{
chainName: 'bsctestnet',
standard: TokenStandard.EvmHypSynthetic,
decimals: 18,
symbol: 'EDGEN',
name: 'LayerEdge',
addressOrDenom: '0x0bd1e41fD7fBC3A41daA33fd9B8eE36D832C3677',
connections: [
{
token: 'ethereum|basesepolia|0x35c8cD01312257e98c70c2e6cdC1a3aE6e338769',
},
{
token: 'ethereum|edgentestnet|0x37ec16e00C39a84A082dFAb74Af450DedD50Bf77',
},
],
},
{
chainName: 'edgentestnet',
standard: TokenStandard.EvmHypNative,
decimals: 18,
symbol: 'EDGEN',
name: 'LayerEdge',
addressOrDenom: '0x37ec16e00C39a84A082dFAb74Af450DedD50Bf77',
connections: [
{
token: 'ethereum|basesepolia|0x35c8cD01312257e98c70c2e6cdC1a3aE6e338769',
},
{
token: 'ethereum|bsctestnet|0x0bd1e41fD7fBC3A41daA33fd9B8eE36D832C3677',
},
],
},
],
options: {},
};
Loading