-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from cosmology-tech/chain-registry/v2
Chain registry/v2
- Loading branch information
Showing
93 changed files
with
3,968 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,52 @@ | ||
name: Run Tests | ||
name: Run Workflow Tests 🧪 | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
types: [opened, reopened] | ||
|
||
types: [opened, push, reopened] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository 🛎️ | ||
- name: Checkout Repository 📥 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' # Ensures submodules are also checked out | ||
|
||
- name: Setup Node.js | ||
- name: Setup Node.js 🌐 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
|
||
- name: Install Dependencies | ||
- name: Update Git Submodules 🔄 | ||
run: | | ||
git submodule update --remote | ||
cd packages/chain-registry/chain-registry | ||
git fetch | ||
git checkout 5b5b73004a1acf84ed65694121828ddb6cb34de4 | ||
- name: Install Dependencies 🧶 | ||
run: yarn install | ||
|
||
- name: Build Project | ||
- name: Build Project 🏗️ | ||
run: yarn build | ||
|
||
- name: Test @chain-registry/keplr | ||
- name: Test @chain-registry/keplr 🔍 | ||
run: cd packages/keplr && yarn test | ||
|
||
- name: Test @chain-registry/cosmostation | ||
- name: Test @chain-registry/cosmostation 🔍 | ||
run: cd packages/cosmostation && yarn test | ||
|
||
- name: Test @chain-registry/utils | ||
- name: Test @chain-registry/utils 🔍 | ||
run: cd packages/utils && yarn test | ||
|
||
- name: Test @chain-registry/client | ||
- name: Test @chain-registry/client 🔍 | ||
run: cd packages/client && yarn test | ||
|
||
- name: Test @chain-registry/workflows 🔍 | ||
run: cd workflows/workflows && yarn test | ||
|
||
- name: Test @chain-registry/cli 🔍 | ||
run: cd workflows/cli && yarn test |
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,90 @@ | ||
export interface Asset { | ||
deprecated?: boolean; | ||
description?: string; | ||
extended_description?: string; | ||
denom_units: DenomUnit[]; | ||
type_asset?: "sdk.coin" | "cw20" | "erc20" | "ics20" | "snip20" | "snip25" | "bitcoin-like" | "evm-base" | "svm-base" | "substrate"; | ||
address?: string; | ||
base: string; | ||
name: string; | ||
display: string; | ||
symbol: string; | ||
traces?: (IbcTransition | IbcCw20Transition | NonIbcTransition)[]; | ||
ibc?: { | ||
source_channel: string; | ||
dst_channel: string; | ||
source_denom: string; | ||
}; | ||
logo_URIs?: { | ||
png?: string; | ||
svg?: string; | ||
}; | ||
images?: { | ||
image_sync?: Pointer; | ||
png?: string; | ||
svg?: string; | ||
theme?: { | ||
primary_color_hex?: string; | ||
circle?: boolean; | ||
dark_mode?: boolean; | ||
}; | ||
}[]; | ||
coingecko_id?: string; | ||
keywords?: string[]; | ||
socials?: { | ||
website?: string; | ||
twitter?: string; | ||
}; | ||
} | ||
export interface DenomUnit { | ||
denom: string; | ||
exponent: number; | ||
aliases?: string[]; | ||
} | ||
export interface Pointer { | ||
chain_name: string; | ||
base_denom?: string; | ||
} | ||
export interface IbcTransition { | ||
type: "ibc"; | ||
counterparty: { | ||
chain_name: string; | ||
base_denom: string; | ||
channel_id: string; | ||
}; | ||
chain: { | ||
channel_id: string; | ||
path: string; | ||
}; | ||
} | ||
export interface IbcCw20Transition { | ||
type: "ibc-cw20"; | ||
counterparty: { | ||
chain_name: string; | ||
base_denom: string; | ||
port: string; | ||
channel_id: string; | ||
}; | ||
chain: { | ||
port: string; | ||
channel_id: string; | ||
path: string; | ||
}; | ||
} | ||
export interface NonIbcTransition { | ||
type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage"; | ||
counterparty: { | ||
chain_name: string; | ||
base_denom: string; | ||
contract?: string; | ||
}; | ||
chain?: { | ||
contract: string; | ||
}; | ||
provider: string; | ||
} | ||
export interface AssetList { | ||
$schema?: string; | ||
chain_name: string; | ||
assets: Asset[]; | ||
} |
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,159 @@ | ||
export interface Peer { | ||
id: string; | ||
address: string; | ||
provider?: string; | ||
} | ||
export interface Endpoint { | ||
address: string; | ||
provider?: string; | ||
archive?: boolean; | ||
} | ||
export interface Explorer { | ||
kind?: string; | ||
url?: string; | ||
tx_page?: string; | ||
account_page?: string; | ||
} | ||
export interface FeeToken { | ||
denom: string; | ||
fixed_min_gas_price?: number; | ||
low_gas_price?: number; | ||
average_gas_price?: number; | ||
high_gas_price?: number; | ||
gas_costs?: { | ||
cosmos_send?: number; | ||
ibc_transfer?: number; | ||
}; | ||
} | ||
export interface StakingToken { | ||
denom: string; | ||
} | ||
export interface Pointer { | ||
chain_name: string; | ||
base_denom?: string; | ||
} | ||
export interface Chain { | ||
$schema?: string; | ||
chain_name: string; | ||
chain_id: string; | ||
pre_fork_chain_name?: string; | ||
pretty_name?: string; | ||
website?: string; | ||
update_link?: string; | ||
status?: "live" | "upcoming" | "killed"; | ||
network_type?: "mainnet" | "testnet" | "devnet"; | ||
bech32_prefix: string; | ||
bech32_config?: { | ||
bech32PrefixAccAddr?: string; | ||
bech32PrefixAccPub?: string; | ||
bech32PrefixValAddr?: string; | ||
bech32PrefixValPub?: string; | ||
bech32PrefixConsAddr?: string; | ||
bech32PrefixConsPub?: string; | ||
}; | ||
daemon_name?: string; | ||
node_home?: string; | ||
key_algos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254")[]; | ||
slip44?: number; | ||
alternative_slip44s?: number[]; | ||
fees?: { | ||
fee_tokens: FeeToken[]; | ||
}; | ||
staking?: { | ||
staking_tokens: StakingToken[]; | ||
lock_duration?: { | ||
blocks?: number; | ||
time?: string; | ||
}; | ||
}; | ||
codebase?: { | ||
git_repo?: string; | ||
recommended_version?: string; | ||
go_version?: string; | ||
compatible_versions?: string[]; | ||
binaries?: { | ||
"linux/amd64"?: string; | ||
"linux/arm64"?: string; | ||
"darwin/amd64"?: string; | ||
"darwin/arm64"?: string; | ||
"windows/amd64"?: string; | ||
"windows/arm64"?: string; | ||
}; | ||
cosmos_sdk_version?: string; | ||
consensus?: { | ||
type: "tendermint" | "cometbft" | "sei-tendermint"; | ||
version?: string; | ||
}; | ||
cosmwasm_version?: string; | ||
cosmwasm_enabled?: boolean; | ||
cosmwasm_path?: string; | ||
ibc_go_version?: string; | ||
ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; | ||
genesis?: { | ||
name?: string; | ||
genesis_url: string; | ||
ics_ccv_url?: string; | ||
}; | ||
versions?: { | ||
name: string; | ||
tag?: string; | ||
height?: number; | ||
proposal?: number; | ||
previous_version_name?: string; | ||
next_version_name?: string; | ||
recommended_version?: string; | ||
go_version?: string; | ||
compatible_versions?: string[]; | ||
cosmos_sdk_version?: string; | ||
consensus?: { | ||
type: "tendermint" | "cometbft" | "sei-tendermint"; | ||
version?: string; | ||
}; | ||
cosmwasm_version?: string; | ||
cosmwasm_enabled?: boolean; | ||
cosmwasm_path?: string; | ||
ibc_go_version?: string; | ||
ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; | ||
binaries?: { | ||
"linux/amd64"?: string; | ||
"linux/arm64"?: string; | ||
"darwin/amd64"?: string; | ||
"darwin/arm64"?: string; | ||
"windows/amd64"?: string; | ||
"windows/arm64"?: string; | ||
}; | ||
}[]; | ||
}; | ||
images?: { | ||
image_sync?: Pointer; | ||
png?: string; | ||
svg?: string; | ||
theme?: { | ||
primary_color_hex?: string; | ||
circle?: boolean; | ||
dark_mode?: boolean; | ||
}; | ||
layout?: "logo" | "logomark" | "logotype"; | ||
text_position?: "top" | "bottom" | "left" | "right" | "integrated"; | ||
}[]; | ||
logo_URIs?: { | ||
png?: string; | ||
svg?: string; | ||
}; | ||
description?: string; | ||
peers?: { | ||
seeds?: Peer[]; | ||
persistent_peers?: Peer[]; | ||
}; | ||
apis?: { | ||
rpc?: Endpoint[]; | ||
rest?: Endpoint[]; | ||
grpc?: Endpoint[]; | ||
wss?: Endpoint[]; | ||
"grpc-web"?: Endpoint[]; | ||
"evm-http-jsonrpc"?: Endpoint[]; | ||
}; | ||
explorers?: Explorer[]; | ||
keywords?: string[]; | ||
extra_codecs?: ("ethermint" | "injective")[]; | ||
} |
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,40 @@ | ||
export interface ChainOperatorInfo { | ||
address?: string; | ||
} | ||
export interface ChainInfo { | ||
chain_name: string; | ||
client_id: string; | ||
connection_id: string; | ||
} | ||
export interface ChannelInfo { | ||
channel_id: string; | ||
port_id: string; | ||
client_id?: string; | ||
connection_id?: string; | ||
} | ||
export interface IBCData { | ||
$schema?: string; | ||
chain_1: ChainInfo; | ||
chain_2: ChainInfo; | ||
channels: { | ||
chain_1: ChannelInfo; | ||
chain_2: ChannelInfo; | ||
ordering: "ordered" | "unordered"; | ||
version: string; | ||
fee_version?: string; | ||
description?: string; | ||
tags?: { | ||
status?: "live" | "upcoming" | "killed"; | ||
preferred?: boolean; | ||
dex?: string; | ||
properties?: string; | ||
}; | ||
}[]; | ||
operators?: { | ||
chain_1: ChainOperatorInfo; | ||
chain_2: ChainOperatorInfo; | ||
memo: string; | ||
name: string; | ||
discord_handle?: string; | ||
}[]; | ||
} |
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,11 @@ | ||
export interface MemoKeys { | ||
$schema?: string; | ||
memo_keys: { | ||
key: string; | ||
description: string; | ||
git_repo: string; | ||
memo: { | ||
[key: string]: unknown; | ||
}; | ||
}[]; | ||
} |
Oops, something went wrong.