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

Plume testnet #133

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
30 changes: 29 additions & 1 deletion src/consts/chains.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';
import { ChainMap, ChainMetadata, ExplorerFamily } from '@hyperlane-xyz/sdk';
import { ProtocolType } from '@hyperlane-xyz/utils';

// A map of chain names to ChainMetadata
// Chains can be defined here, in chains.json, or in chains.yaml
Expand Down Expand Up @@ -28,4 +29,31 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
// },
// logoURI: '/logo.svg',
// },
plumetestnet: {
blockExplorers: [
{
apiUrl: 'https://plume-testnet.explorer.caldera.xyz/api',
family: ExplorerFamily.Blockscout,
name: 'Plume Testnet Explorer',
url: 'https://plume-testnet.explorer.caldera.xyz',
},
],
blocks: {
confirmations: 1,
estimateBlockTime: 3,
reorgPeriod: 1,
},
chainId: 161221135,
displayName: 'Plume Testnet',
domainId: 161221135,
isTestnet: true,
name: 'plumetestnet',
nativeToken: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
protocol: ProtocolType.Ethereum,
rpcUrls: [{ http: 'https://plume-testnet.rpc.caldera.xyz/http' }],
},
};
27 changes: 7 additions & 20 deletions src/consts/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,14 @@ import { WarpTokenConfig } from '../features/tokens/types';
// Tokens can be defined here, in tokens.json, or in tokens.yaml
// The input here is typically the output of the Hyperlane CLI warp deploy command
export const tokenList: WarpTokenConfig = [
// Example collateral token for an EVM chain
// Sepolia Eth to Plume
{
type: 'collateral',
chainId: 5,
address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
hypCollateralAddress: '0x145de8760021c4ac6676376691b78038d3DE9097',
name: 'Weth',
symbol: 'WETH',
type: 'native',
chainId: 11155111,
hypNativeAddress: '0xd99eA1D8b9542D35252504DDd59EDe8C43FB15fd',
name: 'Ether',
symbol: 'ETH',
decimals: 18,
logoURI: '/logos/weth.png', // See public/logos/
},

// Example NFT (ERC721) token for an EVM chain
{
chainId: 5,
name: 'Test721',
symbol: 'TEST721',
decimals: 0,
type: 'collateral',
address: '0x77566D540d1E207dFf8DA205ed78750F9a1e7c55',
hypCollateralAddress: '0xDcbc0faAA269Cf649AC8950838664BB7B355BD6B',
isNft: true,
logoURI: '/logos/weth.png',
},
];
Loading