-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for JSON and YAML chain and token configs (#88)
- Add support for JSON and YAML chain and token configs - Update some stale docs - Cleanup default chain and token const files
- Loading branch information
Showing
16 changed files
with
173 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# A map of chain names to ChainMetadata | ||
# Chains can be defined here, in chains.json, or in chains.ts | ||
# 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 | ||
--- | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# A list of Warp UI token configs | ||
# Tokens 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 | ||
--- | ||
# Replace this [] with your token list | ||
[] | ||
# Example using a native token: | ||
# - type: native | ||
# chainId: 11155111 | ||
# name: 'Ether' | ||
# symbol: 'ETH' | ||
# decimals: 18 | ||
# hypNativeAddress: '0xEa44A29da87B5464774978e6A4F4072A4c048949' | ||
# logoURI: '/logos/weth.png' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ChainMetadata } from '@hyperlane-xyz/sdk'; | ||
import { ProtocolType } from '@hyperlane-xyz/utils'; | ||
|
||
export const cosmosDefaultChain: ChainMetadata = { | ||
protocol: ProtocolType.Cosmos, | ||
name: 'cosmoshub', | ||
chainId: 'cosmoshub-4', | ||
displayName: 'Cosmos Hub', | ||
domainId: 1234, // TODO | ||
bech32Prefix: 'cosmos', | ||
slip44: 118, | ||
rpcUrls: [ | ||
{ http: 'https://rpc-cosmoshub.blockapsis.com' }, | ||
{ http: 'https://lcd-cosmoshub.blockapsis.com' }, | ||
], | ||
nativeToken: { | ||
name: 'Atom', | ||
symbol: 'ATOM', | ||
decimals: 6, | ||
}, | ||
logoURI: '/logos/cosmos.svg', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ea94576
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hyperlane-warp-template – ./
usenexus.org
nautbridge.com
hyperlane-warp-template.vercel.app
hyperlane-warp-template-abacus-works.vercel.app
hyperlane-warp-template-git-main-abacus-works.vercel.app